I am drawing a Pie chart in Android using MPAndroidChart. I have two different array list for different teams and need to show both list in combined form on Pie chart. Now i'm having an issue while drawing data on chart.
As you can see in screenshot "caught" type is showing 2 time with different values in chart. How to combine both of them with sum of their respective values?
Related
I am using MPAndroid chart library to show some results into stackbar chart. I am able to create stackedbar chart. But I am facing problems in labeling of bars. I have data of different years and months. I want to label data month wise according to year. I am attaching a picture here to give you better idea, what i want to achieve.I want to label my graph just like in sample picture. I want months divided according to years.
I am currently using MPAndroidChart to display real-time data. I have been able to add points to a line chart and update a radar chart with the data. However, I am having issues with implementing smooth animations when updating the charts.
So, for example, instead of just redrawing the line chart to include a new point of data, I would like the line to gradually extend to a new data point, sliding to the right if an old data point is being replaced (when outside of the visible axis range). And in the radar chart, if a point of data changes from, say, 20 to 60, I would like the point on the chart to smoothly move from the 20 to 60 instead of the chart being completely redrawn.
At the moment, I have found the animateX, animateY, and animateXY methods in the library. However, these only seem to be for initially creating the chart. I need there to be animations while data is continually added to an existing chart. Is it possible with this library? What kinds of tweaks would I need to make?
I recently started using achartengine 1.2.0 for new type of chart, the HEAP one. It works great in general but I've found a one issue with the way the chart handles zero values in series. I do have a chart with 7 bars (each bar is one day of week) and multiple series. I noticed that values in series which are equall to zero are still rendered on chart as a tiny line. Here's the screenshot:
How I can get rid of those lines?
You can try adding MathHelper.NULL_VALUE insted of the zero values.
I am trying to create a line/area chart using achart library, my usecase is to show the chart as green above the predefined point and show the chart as red below the predefined point.
Please help. Please refer the sample chart
You can create two separate series, one to display the line above zero and the second one for the one below.
Hi I am using A chart Engine to display pie chart in android.In my code I want to show values on labels and area corresponding to that vale on legend.But I am unable to get that one.Please can any one helps to me.Thanks in advance.
I want like below
Displaying the pie labels with separate values from the legend labels is not possible in AChartEngine.
However, you can display the pie slice value (age in your case) in the middle of each slice, using:
renderer.setDisplayChartValues(true);
There was a bug in the code that was preventing displaying the chart values when the labels were not displaying. I have just fixed this issue in SVN. You can checkout the code according to this page and run an ant dist in order to build an up to date achartengine.jar file including this fix.
I was also having the same problem but now its solved. Thanks dan...
You can use
renderer.setDisplayValues(true);
This displays the %of distribution in the pie chart itself.