Hello i am using android MPAndroidChart library in my project. I want to refresh chart without refreshing activity page.
Thanks in advance.
Where ever upon button click or spinner selection you need to update your graph just call a method:
chartView.notifyDataSetChanged();
chartView.invalidate();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With