modified createLegendable to use charts' colorAccessor value