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

Recreate chart when a new datapoint is added or removed #13

Open
jb3 opened this issue Oct 20, 2020 · 0 comments
Open

Recreate chart when a new datapoint is added or removed #13

jb3 opened this issue Oct 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jb3
Copy link
Owner

jb3 commented Oct 20, 2020

When a datapoint is added after the plotter has initialised then a new line will not be created, since the line count is determined from the initial data.

This should be refactored to dynamically recreate the chart once the item count has changed.

This will probably be as simple as a new property defining how many lines we are drawing, on every new item coming in confirm it's the same length, if not then go through the chart initialisation flow again. A more advanced method of doing this would be to just remove the series from the existing chart by updating the chart instance.

@jb3 jb3 added the enhancement New feature or request label Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant