I just want to animate a particular slice in the piechart. I have figured out a way to animate the whole chart but didn't find any way to animate a particular slice. Can anyone help to figure this out?
Related
I've searched the wiki, SO, the issues section of https://github.com/PhilJay/MPAndroidChart/issues, but have been unable to find an answer to my question.
I simply want to change the position of the y-axis values above the horizontal grid lines. I can move them into the graph with leftAxis.setPosition(YAxis.YAxisLabelPosition.INSIDE_CHART), but there doesn't seem to be any way to move their position vertically.
Here is what I am trying to achieve:yaxis_label_above
Here is what it currently looks like:
yaxis_label_on_line
Is it possible to move the position of the y-axis labels vertically either up or down?
The AxisValueFormatter interface (Link)
More details please refer to How can I alter the spacing for the Y-Axis Labels in MPAndroidchart?
I want to create a coordinate system like this:
http://xahlee.info/SpecialPlaneCurves_dir/CoordinateSystem_dir/rectangular_coord.png
I tried creating it with AndroidPlot, but I couldn't figure out how.
My main problems: I can't figure out how to draw negative x-values and how to keep the x/y-axis permanent on the screen, even when zooming.
Does someone have an solution for this?
Try this
plot.centerOnDomainOrigin(0);
plot.centerOnRangeOrigin(0);
where plot is XYPlot .
I'm using the AchartEngine libraries to make a pie chart app. But I want to display two dimensional data like this
I can get nice standard pie charts but I know how to do the second dimension. Can anyone please help? The guys on the achartengine-google-support group say it's possible but I was redirected here for tech questions.
Many Thanks
If you take a look at the Budget Pie chart demo it shows you how to highlight a section of your pie chart (https://code.google.com/p/achartengine/source/browse/trunk/achartengine/demo/org/achartengine/chartdemo/demo/chart/BudgetPieChart.java). Take a look at "Project 1" below to see how this looks.
However there is no way to change the radius like you want to in your screenshot above. If you want to achieve this the easiest way would be to extend PieChart and copy over the draw method. In the draw method where it renders highlighted sections (if (seriesRenderer.isHighlighted()) ...) use a different radius instead of translating to an offset.
Is there a way I can apply a pan from code? I want my pie chart to initially display a little off center (down a little bit). Can I do that?
Have a look at renderer API. I guess you should use setInitialRange(double[] range, int scale) function, but I can't be sure from your question: do you mean to 'offset' initially displayed data inside graph or to change whole chart position (a little below) ?
Maybe posting an image could help to understand your need
I am using AndroidPlot and am having a problem with the chart. As my data grows, I would like the chart for older data to move beyond the screen area. Users can use scroll for viewing chart for older data. Can someone help me in achieving this?
I am not entirly clear what you mean but I think looking at the Multi-touch zoom and scroll example will probobly help.