chartjs - 时间序列图上没有平滑的渲染
chartjs - no smooth rendering on time series plot
关于基本的 chartjs 线图
https://www.chartjs.org/samples/latest/charts/line/basic.html
当单击“随机化数据”按钮时,图表会动画化(即呈现平滑)。
但是时间序列图在这里
https://www.chartjs.org/samples/latest/scales/time/financial.html
单击“更新”按钮时渲染不流畅。
如何在时序图上实现平滑渲染
谢谢。
要进行流畅的渲染,您需要 define/increase animation.duration
选项。
options: {
animation: {
duration: 2000
},
...
duration
: The number of milliseconds an animation takes.
关于基本的 chartjs 线图 https://www.chartjs.org/samples/latest/charts/line/basic.html 当单击“随机化数据”按钮时,图表会动画化(即呈现平滑)。
但是时间序列图在这里 https://www.chartjs.org/samples/latest/scales/time/financial.html 单击“更新”按钮时渲染不流畅。
如何在时序图上实现平滑渲染
谢谢。
要进行流畅的渲染,您需要 define/increase animation.duration
选项。
options: {
animation: {
duration: 2000
},
...
duration
: The number of milliseconds an animation takes.