Blackbyrd
Blackbyrd

Reputation: 11

Highcharts Bubble Chart - How to get the size of the point

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

Answers (2)

Bakhshi
Bakhshi

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

Scott Gearhart
Scott Gearhart

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

Related Questions