jvectormap icon indicating copy to clipboard operation
jvectormap copied to clipboard

setValues does not reset min and max values

Open BlaM opened this issue 8 years ago • 2 comments

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).

BlaM avatar Apr 08 '16 15:04 BlaM

This is what I needed, thanks :)
My countries would go black otherwise.

tarnos12 avatar Apr 07 '18 13:04 tarnos12

That works! Thanks

bruno-fernandes avatar Sep 19 '18 15:09 bruno-fernandes