Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

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

@jb3

Description

@jb3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions