I want to draw this gradient line chart in Android
Custom line chart
Do you know how can I draw this line chart?
You can use this libraries
-AchartEngine
-AFreeChart
-MPAndroidChart
-HoloGraphLibrary
-WilliamChart
or Or you can draw yourself using with View.class
Try out this library. This you can use as per your need.
MPAndroid Chart library... It support customisation.
Related
How can I draw something like the circular chart in image below in android :
How about this libabry.. ? it has pie charts
https://github.com/PhilJay/MPAndroidChart
Documentation is here
try this library
You can draw one by one layers
https://github.com/RamiJ3mli/PercentageChartView
I'm working on a pie chart using the library Achartengine, and I wanted to add shadow to the pie circle, how could I do this ?
I would like to avoid adding and imageView for that.
I am trying to make a simple smooth line chart which show the X axis as date-time on bottom and Y axis as normal left side. I just started using MPAndroidChart API and its example app in Git. In the example Line chart I am not able to find option to change X axis labels to show on bottom instead of top as show currently.
Just like:
Also is there a way to handle date-time data for X axis values ?
Also I tried my hand on Androidplot API but to make the line smooth there I need to make changes in library code which is not compiling at all in my Eclipse and giving errors. Also in Androidplot I did not find an option to show popup with data once I click on line chart.
So if anyone know how to make a smooth line chart using Androidplot API without modifying its library code and how to bring small popup with data in Androidplot API please reply.
// XAxis settings
graph.getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);
graph.getXAxis().setLabelsToSkip(0);
// and
// make the line smooth
graph.getLineData().getDataSets().get(0).lineDataSet.setDrawCubic(true);
Refer this:
http://wptrafficanalyzer.in/blog/android-drawing-line-chart-using-achartengine/
for smooth curve lines please refer this:
How to make line with rounded (smooth) corners with AndroidPlot
Hope this may help you.
AChartEngine is a charting library for Android applications. Using AChartEngine library, we can plot various charts like line chart, area chart, pie chart, time chart, bubble chart etc.
i am using a chart engine to draw graph it works fine but i need to add an outline to the pie chart? how to do that
i have checked this
Link
and the graph should be something like this
graph image
That is not yet supported. You can create an issue in the AChartEngine tracker and ask for this to be implemented.
I am using achartengine and i need some way to draw text and annotations on the graph. Additionally when I slide the graph horizontally the annotations move as well. Is there any way to do it or do I have to implement my own drawing method?
I have edited achartengine source code to add annotations capabilities. You can see it here.