You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To prevent browser freeze, several chart settings were introduced in Taucharts v0.10.0:
6
+
```javascript
7
+
settings: {
8
+
asyncRendering:false,
9
+
renderingTimeout:10000,
10
+
syncRenderingInterval:50,
11
+
handleRenderingErrors:true
12
+
}
13
+
```
14
+
15
+
* Setting `asyncRendering: true` will make a chart render asynchronously by small synchronous chunks, making a browser more responsive to user interactions.
16
+
*`renderingTimeout` is an interval (ms) after which the rendering will be paused, and user will be prompt to continue or cancel. Setting this option to `0` will disable the pause.
17
+
*`syncRenderingInterval` is a minimal interval of synchronous rendering chunks.
18
+
* Setting `handleRenderingErrors: false` will make it easier to debug possible rendering errors.
19
+
20
+
Asynchronous rendering prevents browser from freeze, but will not prevent from running out of memory.
These settings control minimal padding between tick text and tick border on ordinal scale.
30
30
It is 0.25 by default.
31
31
See example where yDensityPadding is set to 30 and xDensityPadding is set to 1:
32
-
https://jsfiddle.net/taucharts/p3jtgt4j/
32
+
https://jsfiddle.net/taucharts/p3jtgt4j/
33
+
34
+
#### animationSpeed
35
+
36
+
Controls the duration of elements animation. By default it is `750` ms. Set `0` to disable animation.
37
+
38
+
#### asyncRendering
39
+
40
+
Setting `asyncRendering: true` will make a browser more responsive, when rendering charts with large amount of data and facets. See more info about asynchronous rendering [here](../advanced/performance.md).
0 commit comments