Reputation: 129
Hello i am using android MPAndroidChart library in my project. I want to refresh chart without refreshing activity page.
Thanks in advance.
Upvotes: 7
Views: 11530
Reputation: 3189
Where ever upon button click or spinner selection you need to update your graph just call a method:
chartView.notifyDataSetChanged();
chartView.invalidate();
Upvotes: 31