PDA

View Full Version : How to interaction on Charts in QML?



tanthinh1510
9th May 2015, 09:02
Hi!
I using Qt 5.4.1 Enterprise and used Qt Charts 2.0 module
I create Line Chart Example and build it to android device

ChartView {
title: "Line"
anchors.fill: parent
antialiasing: true

LineSeries {
name: "LineSeries"
XYPoint { x: 0; y: 0 }
XYPoint { x: 1.1; y: 2.1 }
XYPoint { x: 1.9; y: 3.3 }
XYPoint { x: 2.1; y: 2.1 }
XYPoint { x: 2.9; y: 4.9 }
XYPoint { x: 3.4; y: 3.0 }
XYPoint { x: 4.1; y: 3.3 }
}
}
result is this image (sorry, I can't insert image)
https://www.dropbox.com/s/5eu9nmk1k5zsb5k/chart.jpg?dl=0

How to show axisX and axisY value when I touch or click on Charts?

beemaneni
10th February 2016, 05:35
Any answers for this thread as i needed same functionalty