fixed some bugs in legend, working on GeoChart