如何在LightningChart JS中禁用图表的动画? [英] How to disable animations for charts in LightningChart JS?

查看:177
本文介绍了如何在LightningChart JS中禁用图表的动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想禁用LightningChart JS图表中的动画.我该怎么办?

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

推荐答案

禁用动画取决于要禁用的动画.

Disabling animations depends on which animations you want to disable.

要禁用轴滚动动画,可以使用:axis.setAnimationScroll(undefined) setAnimationScroll

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

用于xy图表轴缩放axis.setAnimationZoom(undefined)

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

对于漏斗图,金字塔图,蜘蛛图,饼图和量规图. chart.setAnimationsEnabled(false)

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

这篇关于如何在LightningChart JS中禁用图表的动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆