在Highcharts柱形图中,我们想通过将其列稍微宽一点来突出显示一个值/样本......但这似乎不可能,是吗?
pointWidth 只影响整个系列.
也许我可以覆盖第二个系列,但恕我直言,这不是一个很好的解决方案.
我想自定义Highcharts图的工具提示.y轴的类型为"columnrange",即它具有y值的间隔:
series: [{
data: [
[-0.547571175, 0.401498266],
[-0.960011899, 0.444655955],
[-0.660727717, 0.862639688],
[-0.446911722, 0.660380453],
[-0.863925256, 0.619544707],
.......
]
}]
Run Code Online (Sandbox Code Playgroud)
工具提示格式化程序应如下所示:
tooltip: {
formatter: function() {
var point = this.points[0];
return '<b>'+ point.x +'</b><br />Interval:'+ point.low +' - '+ point.high;
},
shared: true
}
Run Code Online (Sandbox Code Playgroud)
但是point.low并point.high没有定义......如何获得这些低/高值?
在这里您可以找到一个示例图:http://jsfiddle.net/dmN3N/21/
highcharts ×2