ChartsOrg / Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Apache License 2.0
27.43k stars 5.97k forks source link

Pie chart update data set #5181

Open uditha2233 opened 1 week ago

uditha2233 commented 1 week ago

What did you do?

I tried to update the initial values of the pie chart using below code graphView.data = newData graphView.animate(yAxisDuration: 1) graphView.notifyDataSetChanged()

What did you expect to happen?

Expected to happen a smooth animation on the updated chart slices.

What happened instead?

Entire pie chart redrawn instead of updating only the slices I have updated. I just want to update only the changed slices not the entire chart. Please help to fix this.