i am using AChartEngine library for android and i am drawing a chart using SalesComparisonChart class. but i noticed that the lines drawn does not reach the same value in number, it is drawn below the exact value like below in the photo . in category Oriental the value is 3608 and 4358 but the lines are below those values. Can someone help me ?
Please create an issue in the AChartEngine issue tracker.
Until this will be fixed you can use LineChart instead of the cubic line chart or you can add custom annotations.
series.addAnnotation("text", x, y);
Related
I am using MPAndroidChart, I want to use
setDrawCircles(true);
setDrawValues(true);
only for selected value from line chart in mpchart libary. Means I do not want to draw label and circle on whole data set which can be easily achieved using above methods. I need to draw label and circle only for one value from chart. I have implemented onChartValueSelected and I do not know what should be done in onValueSelected I have tried many things. I achieved this in version 2.5.5 but now I am using version 3.0.0 and facing issue.
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.
Am working on an Android App which displays a line chart using AChartEngine. The line chart displays different values. Sometimes one of the value is mixed with others. In such a case, line chart value how to rotate. This doesn't look nice as you can see here:
https://docs.zoho.com/file/o319te5043ffa559d4aa0b5062026f90c3625
You can do this:
renderer.setXLabelsAngle(angle);
I'm using AChartEngine library for Android and in time charts the x labels do not correspond to points on the graph as you can see in images.
It appears that the graph is slightly shifted to the right.
Any hint?
This can be fixed using this:
renderer.setXRoundedLabels(false);
i am developing an android application using AChartEngine library and i am using PojectStatusChart but i am facing a problem with the x-Axis labels. it is set to dates an i want to change it to Strings but i don't know how to
can someone help me plz ?
The ProjectStatusChart is a time chart, so it has X axis labels as dates. You can either look at another example in the demo package or modify it from time chart to line chart for instance.