Reputation: 7289
How to disable dragging of Highcharts annotations? Can't find any options for it. I tried to add pointerEvents: none
to chart -> annotations -> labelOptions -> style
but this did not help.
Upvotes: 1
Views: 1023
Reputation: 7372
You can set draggable = ""
in annotations property like that:
annotations: [{
labels: [{
point: 'max',
text: 'Max'
}],
draggable: ""
}]
Demo:
https://jsfiddle.net/BlackLabel/Lqxt3y6m/
Or add this line before chart initialization:
Highcharts.Annotation.prototype.defaultOptions.draggable = '';
Demo:
https://jsfiddle.net/BlackLabel/e2zbhyot/
Upvotes: 3