How to disable animations for charts in LightningChart JS?

半城伤御伤魂 提交于 2020-02-25 22:00:26

问题


I want to disable the animations that are on in the charts in LightningChart JS. How can I do that?


回答1:


Disabling animations depends on which animations you want to disable.

To disable axis scrolling animation you can use: axis.setAnimationScroll(undefined) setAnimationScroll

For xy chart axis zooming axis.setAnimationZoom(undefined) setAnimationZoom

For Funnel, Pyramid, Spider, Pie and Gauge charts. chart.setAnimationsEnabled(false)



来源:https://stackoverflow.com/questions/57370680/how-to-disable-animations-for-charts-in-lightningchart-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!