Skip to content Skip to sidebar Skip to footer

How To Refresh Android Mpchart Graph Without Refreshing Whole Activity

Hello i am using android MPAndroidChart library in my project. I want to refresh chart without refreshing activity page. Thanks in advance.

Solution 1:

Where ever upon button click or spinner selection you need to update your graph just call a method:

chartView.notifyDataSetChanged();
chartView.invalidate();

Post a Comment for "How To Refresh Android Mpchart Graph Without Refreshing Whole Activity"