How to disable animations for charts in LightningChart JS?

前端 未结 1 1112
没有蜡笔的小新
没有蜡笔的小新 2021-01-25 02:01

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

1条回答
  •  [愿得一人]
    2021-01-25 02:18

    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)

    0 讨论(0)
提交回复
热议问题