Reputation: 11
I want to format the tooltip of my bubble chart but I need to know what property gets me the size of the bubble.
Upvotes: 1
Views: 2045
Reputation: 1339
you can get the radius by accecssing this.point.shapeArgs.r
in formatter
function. just like the solution by @scott-gearhart
Upvotes: 0
Reputation: 1161
If you are using a formatter function you would do something like this:
tooltip :
formatter: function() {
return "My bubble size is : " + this.point.z;
}
}
this.point also has the following properties in the bubble chart tooltip formatter: series, x, and y
For more see: http://api.highcharts.com/highcharts#tooltip.formatter
Upvotes: 3