I started using Highcharts version 12.3 and encountered a problem with an additional element I add to my charts. Left of the hamburger menu I position the word INFO and when clicked I have a Bootstrap procedure popping up window with HTML text. I add the element with this javascript part. This worked with 11.2, see fragment below.
What has changed in 12.3 and how to get this back? The error is in this.exportingGroup.getBBox(); You find he whole chart definition in https://meteo-wagenborgen.nl/beta/testchart.txt (you need to format it for readability, VS code works great).
chart.update({
chart: {
events: {
render() {
const {
x,
y,
width
} = this.exportingGroup.getBBox();
if (!this.customText) {
this.customText = this.renderer.text('Info', x - width - 15, y + 15).add().css({
color: this.title.styles.color
}).css({
cursor: 'pointer'
}).on('click', () => $('#TestChart').modal('show'));
} else {
this.customText.attr({
x: x - width - 15,
y: y + 15
});
}
}
}
}
});





