Skip to content

Commit f28b547

Browse files
committed
Update readme
1 parent c408f19 commit f28b547

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,3 +682,28 @@ const config = ref({
682682
```
683683

684684
**Important:** when using the responsive feature, charts must be placed inside a container with fixed dimensions. Avoid setting a 100% height to this container, as it will result in the chart growing infinitely.
685+
686+
# Big data optimization (since v2.4.11)
687+
688+
Very large datasets (> 5k or > 10k datapoints) will cause the browsers rendering engines to slow down, caused by too many SVG DOM elements to render.
689+
The following charts use the LTTB algorithm (Largest-Triangle-Three-Bucket) beyond a certain threshold to downsample the rendered dataset while preserving its shape. These components are the most susceptible to be used with very large datasets:
690+
691+
| Component | Default Threshold | Remark |
692+
| --------------- | ----------------- | --------------------------------------------------------- |
693+
| VueUiXy | 500 | |
694+
| VueUiXyCanvas | 10000 | Since this chart uses canvas, threhsold can be set higher |
695+
| VueUiQuadrant | 500 | |
696+
| VueUiScatter | 500 | |
697+
| VueUiSparkline | 500 | |
698+
| VueUiSparkTrend | 500 | |
699+
700+
The downsample threshold for each component can be set in the config prop passed to components:
701+
702+
```js
703+
const config = ref({
704+
downsample: {
705+
threshold: 500,
706+
},
707+
...// rest of your config
708+
})
709+
```

0 commit comments

Comments
 (0)