New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to plot pie chart with changing data on user click? #85
Comments
@Jeetin9410 |
The sample code you listed will work for updating the pie chart after some time delay....But I want it to change on user click.....Whatever the data user selects....The pie chart respectively to that data should be displayed. |
@Jeetin9410 |
I tried the Custom data Entry code , you mentioned but i was unable to set data in piechart due this syntax |
@Jeetin9410 |
From the beginning , i was using the same i.e "pie.data(data)" and nothing is working accordingly. |
@Jeetin9410 I used the code provided in the previous comment. What version of the library are you using? Please, try to update your library up to the latest version. This approach will work. |
I m using the trial version , and trying to plot pie chart.....In my case the data for pie chart changes on user click.
Please tell me how to implement this thing. What is happening now is that the first data that i used to set in pie, is getting permanent.....and whatever the data i set for next time does not work with pie chart. The piechart shows the same data of very first time.Please help `
private void generateGraph(int unmarked,int absent,int present,int latePresent){
// these are absent, present of student
Log.e( "unG",unmarked+"" );
Log.e( "abG",absent+"" );
Log.e( "PrG",present+"" );
Log.e( "LpG",latePresent+"" );
final Pie pie = AnyChart.pie();
The text was updated successfully, but these errors were encountered: