-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
🦄
- Would you like to work on this feature?
What problem are you trying to solve?
User interactions that cause high frequency updates to the chart can cause the UI to become sluggish. It would be nice if we could move the chart rendering to a separate thread.
Our specific example is we have a slider for selecting the date range shown in a chart. We would like this slider to update the chart in real time as the user moves it to provide instant feedback, but this can lead to reduced framerates, which make the UI feel less responsive.
Describe the solution you'd like
In the chart.js performance documentation it mentions the possibility of using web workers to perform chart rendering in parallel with the main thread here https://www.chartjs.org/docs/3.5.1/general/performance.html#parallel-rendering-with-web-workers-chromium-only.
Accoding to the documentation its only supported by chromium browsers but since most browsers are chromium these days it would allow for much smoother user interactions on the majority of browsers.
Describe alternatives you've considered
No response
Documentation, Adoption, Migration Strategy
No response