Hello,
I have a world map that changes the value of continents and countries as the years change. When I select a year and change the values of the countries and drill back up to the main map (continents), the value of the continents is not updated and shows the previous values. What should I do to coordinate between updating the continents and countries?
Hier ist ein ähnliches Beispiel: https://jsfiddle.net/5erjg4yx/
And my code to change the values with years :
chart.series[0].data.forEach((d, i) => {
d.drilldown = `custom/${d.properties['name'].toLowerCase().replace(' ', '-')}`;
// d.value = App.Constants.getDataWorld.find(v => v[0] === d.properties['hc-key'])[1];
const val = myData.find(v => v[0] === d.properties['hc-key']);
d.value = val ? val[1] : null;
});
Thank you in advance for your help.
Sincerely yours