emn178 / angular2-chartjs

Chart.js component for Angular2
MIT License
95 stars 21 forks source link

Updating data results in animation from y-axis rather than current position #48

Open Recodify opened 5 years ago

Recodify commented 5 years ago

Current Behavior

When updating data the chart animation transitions from the Y axis as it would when initially binding data to the chart.

chartbefore

Expected Behavior

When updating data the chart animation should transition from the current position, not the y axis.

chartafter

Cause

Instead of setting the updated data on the existing dataset, a new dataset is created so the transition always appears as it does on the initial bind.

Solution

PR #47

kisamoto commented 4 years ago

Any update on this? Seems to be an on going issue