We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

UpdateDataSource Animation restart

Hello,

Im trying to use the updatedatasource from the chart controller to update my chart. This is working fine. But when i do this, the animation of the columns starts from 0 then goes up to the new value. Is there anyway to have to have the animation to start from the current value and then move to the new value? i.e. if the old value it 80 and the new value is 50 if would just animate the column from 80 to 50, not from 0 to 50 which its doing. Please see my video. I have one value that in my data source for the chart that i update like this. 



If the value is null or empty i add the point like this and build the chart.

supplierColumnData[supplier]!.add(SupplierColumnChart(supplier, yieldLoss));

if there value is already there then i do this to update it.

  //just update it
supplierColumnData[supplier]![0] = SupplierColumnChart(supplier, yieldLoss);



Attachment: videobar_c209d5bf.zip

1 Reply

YG Yuvaraj Gajaraj Syncfusion Team April 3, 2023 10:51 AM UTC

Hi Jesse,


We have checked your query and tried to update the y value of the same data point using the updateDataSource method by setting the updatedDataIndexes is working fine for us. While using the updateDataSource method to update the value the series won't be get animated while the value gets changed. So, we kindly request you to share the complete chart code snippet and how did you update the new data in the chart. It will be more helpful to us to provide a solution sooner.


Regards,

Yuvaraj.


Loader.
Live Chat Icon For mobile
Up arrow icon