gpathak
Posts: 6
Joined: Wed Dec 08, 2021 11:39 pm

HighChart TreeMap is not updating with the new data

I am trying to update my highcharts treemap with new data but it dosen't seem to reflect when I click on update. Only the title getting changed.

Also the option which was suggested on multiple page's dont seems to work:

this.chartOptions.series[0].data = this.datatable; // ERROR
Here is the whole code in https://stackblitz.com/edit/highcharts- ... ate-bv64br and update method:

handleUpdate() {
this.chartOptions.title = {
text: 'updated'
};
this.datatable = [{
name: 'A',
value: 6,
colorValue: 1
}, {
name: 'B',
value: 6,
colorValue: 2
}];
this.chartOptions.data = this.datatable;
this.updateFlag = true;
}
Any suggestion is much appreciated.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: HighChart TreeMap is not updating with the new data

Hi gpathak,

Welcome to our forum and thanks for contacting us with your issue!

I'm not quite sure what is the problem. The demo seems to be working fine, chart is being updated correctly and it doesn't throw any errors. Code looks good too.

Could you try it again?
Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Maps”