Hi ,
How can we get the tooltip box height and width , when we click on the point.
Please find fiddler example.
http://jsfiddle.net/6abzhxsf/
Thanks
Code: Select all
events: {
click: function () {
var chart = this.chart,
tooltip = chart.tooltip,
tooltipDim = tooltip.label.getBBox();
}
}
wojtek wrote:Hi vijaygudla,
To get tooltip width and height you can use getBBox() method on tooltip label property:
Demo:Code: Select all
events: { click: function () { var chart = this.chart, tooltip = chart.tooltip, tooltipDim = tooltip.label.getBBox(); } }
http://jsfiddle.net/wchmiel/oz4fkcyb/1/
Api reference:
https://api.highcharts.com/class-refere ... nt#getBBox
Kind regards.
Code: Select all
console.log(tooltipDim);