How to refresh android mpchart graph without refreshing whole activity

后端 未结 1 1980
情深已故
情深已故 2021-01-25 05:48

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

Thanks in advance.

相关标签:
1条回答
  • 2021-01-25 06:38

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

    chartView.notifyDataSetChanged();
    chartView.invalidate();
    
    0 讨论(0)
提交回复
热议问题