You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2020. It is now read-only.
The current implementation allows duplicate colors in the series data, making it impossible to figure out what bar is related to which legend, for instance.
Additionally, it would be good if the colors were consistent among the charts, so the user could be more comfortable reading the graphs.
I would suggest replacing rand_color for something like:
def initialize
# ...
@current_color = -1
end
def next_color
@current_color = (@current_color + 1) % Graphic::COLORS.size
COLORS[@current_color]
end
The current implementation allows duplicate colors in the series data, making it impossible to figure out what bar is related to which legend, for instance.
Additionally, it would be good if the colors were consistent among the charts, so the user could be more comfortable reading the graphs.
I would suggest replacing rand_color for something like: