Bugfixes: height of legend div on update + updating the number on range-based legends
Bugfix: The range needs to be re-calculated on update when range-based colors are used
Bugfix: The range needs to be also re-calculated on updates when the other range-based colors are used