Question
Annotations labels overlapping when using addAnnotation
I use Highcharts to render a scatter chart.
I'm having an issue when adding annotations on this chart. As I load my data from an asynchronous request based on user settings, I add my data and my annotations on a chart that is already rendered. However, when using addAnnotation function, I can't keep the labels from overlapping.
chart.addAnnotation({
draggable: "",
id: "chartAnnotations",
labels: annotationsLabels,
labelOptions: {
align: "left",
allowOverlap: false,
borderColor: "#5c5c5c",
shape: 'connector'
}
});
Here is a sample adding series and annotation on a pre-rendered chart. https://jsfiddle.net/k29h6oqc/2/
Thank you for your help.
3 38
3