Highcharts剧情乐队动画 [英] Highcharts plotBand animation

查看:112
本文介绍了Highcharts剧情乐队动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个动态调整大小的阴谋带。目前是通过删除旧的和下一步绘制的作品。
是否有任何方法可以以动画方式更新plotBand的位置参数?

I have a plotband that resizes dynamically. At the moment is works by removing old one and drawing next. Is there any way to update plotBand's position parameters in the way it could animate moving?

推荐答案

不属于API ,但可以更新plotBand的选项,演示: http://jsfiddle.net / 2sqpt1aa /

It's not part of the API, but it's possible to update plotBand's options, demo: http://jsfiddle.net/2sqpt1aa/

片段:

var chart = $("#container").highcharts(), // get chart 
    plotBand = chart.xAxis[0].plotLinesAndBands[0]; // get first plotBand

// Update options:
plotBand.options.from = 2010;
plotBand.options.to = 2012;

// Render the plotBand:
plotBand.render();

这篇关于Highcharts剧情乐队动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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