apache / apache/echarts

Use OffScreenCanvas API for big data live charts

Open
#9,232 13 comments 18 reactions 1 assignee Claimed by @100pah View on GitHub
new-feature
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### One-line summary [问题简述]
I am creating an application which shows years of historic data and also keeps plotting new live data from a web socket connection, I am facing real performance issues and UI thread goes blocking, I have been searching on it and I think the solution is this. **Make use of** [OffScreenCanvas API](https://developers.google.com/web/updates/2018/08/offscreen-canvas) to render live charts with big data smoothly. It is really easy to use with just one line amendment.
`canvasElement.transferControlToOffscreen()`

### Expected behaviour [期望结果]
Live charts with big data should work smoothly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.