Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement support for horizontally-shifted data updates #100

Closed
1 task done
t-mullen opened this issue Nov 19, 2018 · 1 comment
Closed
1 task done

Implement support for horizontally-shifted data updates #100

t-mullen opened this issue Nov 19, 2018 · 1 comment

Comments

@t-mullen
Copy link
Contributor

I am submitting a...

  • Feature request

Issue description

When we update data, the point elements are animated vertically from their old data value to their new one. When the updated data is a horizontal translation of the previous (such as a sliding window of realtime data), this causes large and confusing changes in the graph during the animation.

We should add the option to specify the data is a translation and match point elements to their translated values.

For example, we have the data:

{
   labels: [0, 1, 2, 3, 4, 5],
   data: [200, 100, 800, 900, 100, 5]
}

We can update the data, specifying that it is a translation of the previous data.

chart.setData([100, 800, 900, 100, 99], { translation: -1 })

This will probably be difficult to implement given the current codebase, but it's necessary if we want to support real-time data.

@t-mullen t-mullen added type: enhancement 💡 type: icebox 🧊 Not a priority currently, but we'll get to it! labels Nov 19, 2018
@theiliad theiliad added this to IceBox in Q1 2019 Jan 3, 2019
@theiliad
Copy link
Member

This is relevant to our continuous x-scale requirement. Would be great if we can add this functionality once those scale are added.

@theiliad theiliad added this to Dev ToDos in Q3 - 2019 Jun 20, 2019
@ninja511 ninja511 added this to To do in Q4 - 2019 via automation Oct 31, 2019
@ninja511 ninja511 removed this from Dev ToDos in Q3 - 2019 Oct 31, 2019
@ninja511 ninja511 closed this as completed Jan 6, 2020
Q4 - 2019 automation moved this from To do to Done Jan 6, 2020
@theiliad theiliad removed the type: icebox 🧊 Not a priority currently, but we'll get to it! label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Q1 2019
  
IceBox
Q4 - 2019
  
Done
Development

No branches or pull requests

3 participants