WorlMap legend

pull/18/head
Sami Mokaddem 2017-10-26 10:00:57 +02:00
parent ff572cc342
commit 2fd8bd198a
1 changed files with 1 additions and 0 deletions

View File

@ -266,6 +266,7 @@ small {
regionhitsMax = regionhitsMax >= regionhits[regionCode] ? regionhitsMax : regionhits[regionCode]; regionhitsMax = regionhitsMax >= regionhits[regionCode] ? regionhitsMax : regionhits[regionCode];
worldMapObj.series.regions[0].params.max = regionhitsMax; worldMapObj.series.regions[0].params.max = regionhitsMax;
worldMapObj.series.regions[0].legend.render(); worldMapObj.series.regions[0].legend.render();
console.log(worldMapObj);
// Update data // Update data
worldMapObj.series.regions[0].setValues(regionhits); worldMapObj.series.regions[0].setValues(regionhits);
} }