fix legends so that they work with color scale based color charts