Greetings! I have a left navigation menu with content on the right side in the form of a Highchart. Below is the configuration for my Highchart:
this.InputData = {
chart: { type: 'column' },
title : { text : 'Overview' },
xAxis: {
categories: this._weekValues
},
yAxis: {
allowDecimals: false,
title: { text: 'some title'},
min: 0,
max: 100,
labels: {
formatter:function() {
var pcnt = (this.value / 100) * 100;
return Highcharts.numberFormat(pcnt, 0) + '%';
}
}
}
}
I also have a function that is triggered when the size of my left menu changes:
this.menuEvent.onChangeLeftMenu().subscribe(()=>{
Observable.timer().subscribe(()=>{
console.log('highchart redraw?');
});
});
Is there a way to refresh or resize my chart when the size of my left menu changes? Currently, the chart overflows from my div wrapper. Thank you for your assistance!