问题
Hello i am using android MPAndroidChart library in my project. I want to refresh chart without refreshing activity page.
Thanks in advance.
回答1:
Where ever upon button click or spinner selection you need to update your graph just call a method:
chartView.notifyDataSetChanged();
chartView.invalidate();
来源:https://stackoverflow.com/questions/47303952/how-to-refresh-android-mpchart-graph-without-refreshing-whole-activity