I want to draw graph like shown in the attached image.
I already tried by aChartEngine but it's not working successfully.
You could create a SurfaceView
, in which you can draw to a Canvas
in the onDraw()
method. To draw your graph, you can use the Path
class, and it's moveTo()
and lineTo()
methods. To change the appearance of the lines, use the Paint
class. Then use the Canvases drawPath()
method, which takes a Path
, and a Paint
object. I think it's a bit easier to start with, than OpenGl.
Some tutorial
Update: @Shakti Malik found a pretty good looking library, which looks easy to use: MPAndroidChart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With