MPAndroidChart is not updating
You are setting the data via setData(...)
but you are not refreshing the View
by calling invalidate()
.
This should do the job:
LineChart chart = ...;
chart.setData(...); // sets data & also calls notifyDataSetChanged()
chart.invalidate(); // refreshes chart