jvectormap
jvectormap copied to clipboard
setValues does not reset min and max values
When working with time retrieved during runtime (i.e. when you draw a map and then later update the values with setValues) the min and max values are not recalculated. My solution to fix this right now is to "undefine" the values of both before I update the values:
chartObject.series.regions[0].params.min = undefined;
chartObject.series.regions[0].params.max = undefined;
chartObject.series.regions[0].setValues(countryVisits);
I guess it would make sense though to have an "recalculate" flag in setValues (or something like that).
This is what I needed, thanks :)
My countries would go black otherwise.
That works! Thanks