question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding and removing data in v2

See original GitHub issue

As per #1609, we now can replace the entire data object and call update().

However, I’m not able to replicate this behavior, which in v1 was possible by using addData and removeData.

Is there a way to have this behavior in v2? https://www.dropbox.com/s/eovva6wfagq5vg8/moving-chart.mov?dl=0

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:25 (12 by maintainers)

github_iconTop GitHub Comments

8reactions
cmorrisscommented, Feb 12, 2016

Hi, I’m pretty new to chart.js and we’re looking to use it in our product. This feature was very nice in 1.0 and I think it’s a pretty big regression to not support it in 2.0.

I’ve tried putting in the moveChart() function, but it really isn’t the same. It redraws the entire chart which makes it look like it’s all new data instead of just new data coming in at the end.

I hope this can be looked into further for the 2.0 stream as it really is a great feature.

5reactions
simonbrunelcommented, Sep 30, 2016

I’m experimenting some changes in the dataset controller to get notified when data array(s) change and so cleanup meta data and get better animations when values are inserted or removed, and this without adding extra chart APIs. This allows many kind of animations, not only from right to left or left to right. I don’t know if it’s what you guys are looking for but I hope it should make real time charts experience better (see these examples: http://playground.abysscorp.org/chartjs/livecharts/).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ways to add, edit, and delete records - Microsoft Support
To explicitly save your changes, press Shift+Enter. For more information, see Keyboard shortcuts for Access. To save the data, on the Home tab,...
Read more >
How to change, correct & delete data in step 2
You can delete data cells by pressing Backspace once you're in the edit mode in a cell. You can also delete multiple cells....
Read more >
How to Delete Data using Delete Query in MS Access - YouTube
Delete queries are used to delete large amounts of data quickly, or to regularly perform the same delete operations.
Read more >
[Part 2] Add and Remove Table Rows using Angular Material
Adding a new row is as simple as inserting a new object to the dataSource array. A quick recap from the previous tutorial,...
Read more >
Adding and Removing Data - Clarifai Guide
Adding and Removing Data · Add Inputs​ · List Inputs​ · Get Inputs​ · Update Inputs​ · Delete Inputs​.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found