2015-09-03 49 views
0

我創建基於http://www.highcharts.com/demo/column-stackedHighCharts:顯示阿拉y軸的上工具提示

當鼠標上的柱盤旋一個圖表,它顯示了懸停的Y軸和合計值的值。

我希望工具提示顯示所有3 y軸的值以及它們各自的顏色,而不考慮懸停的y軸。

我知道它必須在下面的代碼中完成,但是如何從其中訪問其他y軸?有沒有可能做一些像{series[0].point.y}這樣的事情?沒有什麼我嘗試過。

tooltip: { 
    headerFormat: '<b>{point.x}</b><br/>', 
    pointFormat: '{series.name}: {point.y}<br/>Total: {point.stackTotal}' 
}, 
+0

這是怎麼設置的?因爲懸停一列只涉及到一個y軸,對嗎?或者是什麼? –

回答

4

使用選項

tooltip: { 
     shared:true 
    }, 
相關問題