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.

Add ability to remove part of the series' data

See original GitHub issue

Hi there, first off what a great library thank you very much for it!

As I am streaming a lot of data into my chart I need to remove old data items for performance reasons.

I am currently doing this by calling setData on each render pass.

I know that this process could be optimised so my feature suggestion is to add a removeData method to the DataUpdatesConsumer and series API.

I’ll have a crack it myself when I have some time to learn how to debug TS 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
timocovcommented, Dec 31, 2021

Since this ticket was opened we improved updating the data (both setData and update) a lot so probably now you can use any of them to update the data or to implement a strategy of having only a few bars on the chart without performance issues. Let me know if you’re still experiencing the issue or have anything to add here.

1reaction
Tucskycommented, Apr 27, 2020

yes, you can set new data with small count of bars

ended up doing exactly that, and as you said it might not even be needed, chart itself is fast af. I have a module using lightweight charts which is adding new bar every second, I just sleep better knowing it wont have (604800*nb of series) bars after a week of having it open 😁

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the data series in a chart - Microsoft Support
Edit or rearrange a series ... Right-click your chart, and then choose Select Data. ... Click Edit, make your changes, and click OK....
Read more >
Remove part of the legend - Microsoft Power BI Community
Solved: Hallo, is there a possibility to remove only parts of the legend? I have the following diagram: and would like to remove...
Read more >
Adding, Deleting and Updating Records Part 3 Power Apps for ...
In the part 3 video we take a look at how you can use a Microsoft Power App to Add, Edit and Delete...
Read more >
Remove Digits or Keep them in Power BI Using Power Query
There are a couple of useful actions that help a lot in cleaning data ; removing digits, or keeping digits and removing everything...
Read more >
Edit or delete a recording in Voice Memos on iPhone
In the Voice Memos app , you can use the editing tools to fine-tune your recordings. You can remove parts you don't want,...
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