You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will get an error in calculating the color scale if you have values in each country that exceed 1000, which result in a fill color grade of each country = "#000NaN" (Which is black)
.
Solution for this in setValues function.
If you have a value that exceed 1000 (E.g 1200) you should remove the comma from max variable
// line 576 replace for(varccinvalues){val=parseFloat(values[cc]);if(val>max){max=values[cc];}if(val&&val<min){min=val;}}// with for(varccinvalues){val=parseFloat(values[cc]);if(val>max){max=values[cc];max=parseInt(max.replace(/,/g,''),10);// Remove comma from the number 1,200 => 1200}if(val&&val<min){min=val;}}// line 582 replacefor(ccinvalues){val=parseFloat(values[cc]);// withfor(ccinvalues){val=parseFloat(parseInt(values[cc].replace(/,/g,''),10));
I'll try to upload patch for this...
The text was updated successfully, but these errors were encountered:
You will get an error in calculating the color scale if you have values in each country that exceed 1000, which result in a fill color grade of each country = "#000NaN" (Which is black)
.
Solution for this in setValues function.
If you have a value that exceed 1000 (E.g 1200) you should remove the comma from max variable
I'll try to upload patch for this...
The text was updated successfully, but these errors were encountered: