Modified legend scale to linear

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

View File

@ -227,7 +227,7 @@ small {
min: 0,
max: 10,
scale: ['#003FBF','#0063BF','#0087BF','#00ACBF','#00BFAD','#00BF89','#00BF64','#00BF40','#00BF1C','#08BF00','#2CBF00','#51BF00','#75BF00','#99BF00','#BEBF00','#BF9B00','#BF7700','#BF5200','#BF2E00','#BF0900'],
normalizeFunction: 'polynomial',
normalizeFunction: 'linear',
legend: {
horizontal: true
}
@ -266,7 +266,6 @@ small {
regionhitsMax = regionhitsMax >= regionhits[regionCode] ? regionhitsMax : regionhits[regionCode];
worldMapObj.series.regions[0].params.max = regionhitsMax;
worldMapObj.series.regions[0].legend.render();
console.log(worldMapObj);
// Update data
worldMapObj.series.regions[0].setValues(regionhits);
}