Update color legend

* Support scales that does not give min and max bounds
* Bins and no longer lineraly split but respect the width of the bin