Replace the data of AChartEngine's piechart

蓝咒 提交于 2019-12-11 06:43:29

问题


I am drawing piechart using ACartENgine . And I want to replace the data of piechart. To replace I called mSeries.clear(); method to remove all old data and then add new dataset to mSeries. But my problem is while do this all my legends displayed in white color instead of category color. How can I avoid this problem. All I want is replace the data of piechart with new values. Is there any better idea. How can I achieve this? Any one please help me.

Thanks in advance.


回答1:


There is a set(int index, String title, double value) method in the CategorySeries class that you can use.

Just make sure you are using the latest version available here.



来源:https://stackoverflow.com/questions/16476007/replace-the-data-of-achartengines-piechart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!