Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing Area Bump Chart Colors Based on Ending Date in Data Series #2557

Closed
shellyscheng opened this issue Apr 2, 2024 · 1 comment
Closed
Labels

Comments

@shellyscheng
Copy link

shellyscheng commented Apr 2, 2024

Hi, I'm trying to use the area bump chart with custom arrays of colors: ["colorA", "colorB", "colorC", ..., "colorZ"]. How can I assign colors based on the ending date (2006's data in the screenshot below) instead of the starting date (2000's data)?

Screenshot 2024-04-02 at 3 01 13 PM

Version: 0.85.1

@plouc
Copy link
Owner

plouc commented May 5, 2024

@shellyscheng, I replied in the discussion you also opened.

There's no builtin support for this, what you could do is to first sort the data by the value for 2006, the colors aren't assigned according to the first values, but according to the order of the input, so this would work.

@plouc plouc closed this as completed May 5, 2024
@plouc plouc added the bump label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants