我試圖在點擊點上添加一些額外的信息到氣泡圖表,但對於我的生活我無法找到泡泡點的中心!Highcharts氣泡圖點的中心點
這裏發生的事情: http://jsfiddle.net/H07R0D/Mktvz/
和這裏的點click事件
plotOptions: {
bubble: {
cursor: 'pointer',
point: {
events: {
click: function() {
var renderer = this.series.chart.renderer;
var point = this.graphic;
var path = renderer.path(['M',point.cx,point.cy,'L',100,100])
.attr({
'stroke-width': 1,
stroke: 'red'
}).add();
}
}
}
}
}
當點擊一個泡沫,我想借鑑泡沫中心的路徑到任意點(只是測試......)但是繪製的路徑從不在泡泡的中心開始。
除了point.cx和point.cy以外,還有其他值嗎?
看起來不對,監守中心沒有實現。 –
我的小提琴不好,因爲我沒有粘貼好鏈接。謝謝你的評論。 –
啊,不知道有超出cx/cy的偏移量。非常感謝! – TomCDona