laloune
laloune

Reputation: 673

offset long series labels with lines

is this possible to offset labels on a bubble chart using little pointer lines, like on this screenshot:

enter image description here

my labels are quite long, this is why I would need to offset them, so that they do not appear in the center of the bubble

Upvotes: 0

Views: 87

Answers (1)

ppotaczek
ppotaczek

Reputation: 39139

You can use annotations with connector shape type.

  annotations: [{
    labelOptions: {
      shape: 'connector',
      ...,
    },
    labels: [{
      point: 'BE',
      y: -80
    }, ...]
  }]

Live demo: https://jsfiddle.net/BlackLabel/58xrhuvz/

API Reference: https://api.highcharts.com/highcharts/annotations

Docs: https://www.highcharts.com/docs/advanced-chart-features/annotations-module

Upvotes: 1

Related Questions