javascript - GWT Highcharts - 禁用系列动画

标签 javascript gwt highcharts gwt-highcharts

在 GWT Highcharts 中绘制系列时如何禁用动画?如果我直接在 JavaScript 中使用 Highcharts,this would be the way to do it 。在我的 GWT 代码中,我尝试了以下操作但没有成功:

chart.setOption("/series/animation", false);

最佳答案

请尝试这种方法:

final Chart chart = new Chart()
    .setLinePlotOptions( new LinePlotOptions()
                    .setAnimation(false);
  )

当然,您需要放置 PlotOptions 的适当子类,而不是 setLinePlotOptionsnew LinePlotOptions()

关于javascript - GWT Highcharts - 禁用系列动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34627641/

相关文章:

javascript - Highcharts - 如何在全局范围内为每种类型的图表设置渐变主题?

javascript - <UL> 列表项未添加到 React 中

javascript - 使用javascript覆盖css文件的 'on the fly' css规则选择器

javascript - 更改 d3.js 强制节点 Canvas 布局中节点组的颜色

google-app-engine - 如何在 Intellij IDEA 12 中部署到 Google App Engine

jquery - Highchart 渲染器按最小值和最大值

javascript - 我可以分离 JavaScript If 条件吗?

gwt - 将 gwt ui-binding 与 google-gin 结合使用

java - 在GWT中,2.5接口(interface)RpcService是否被RemoteService接口(interface)取代?

javascript - Highchart x 轴在特定日期后显示标签,无论 x 轴类别中有什么