Highcharts:动态更改单列宽度以突出显示一个样本 [英] Highcharts: Dynamically change single column width to highlight one sample
本文介绍了Highcharts:动态更改单列宽度以突出显示一个样本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Highcharts的柱形图中,我们希望通过将其列扩大一点来突出显示一个值/样本......但这似乎是不可能的,是吗?
pointWidth
只影响整个系列。
解决方案
您也可以使用数据属性和修改宽度。
chart.series [0] .data [0] .graphic.attr({
宽度:50
});
In a Highcharts column chart we'd like to highlight one value/sample by drawing its column a little bit wider... But this seems not to be possible, is it?
pointWidth
only affects the whole series.
Maybe I could overlay a second series, but IMHO that's not a nice solution.
解决方案
You can also use data attribute and modify width.
chart.series[0].data[0].graphic.attr({
width:50
});
这篇关于Highcharts:动态更改单列宽度以突出显示一个样本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文