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

Dumbbell Colors: Choosing specific colors per each datapoint #603

Open
ADAS-sola-samuel opened this issue May 13, 2024 · 1 comment
Open

Comments

@ADAS-sola-samuel
Copy link

Hello, I'm struggling to get my dumbbell apexchart to render a specific datapoint in a sperate color. I've tried to put in more than one pair of HEX values and even mapping the datapoints and using an if statement to return a different pairing on the index of the focused datapoint but it seems to just ignore it and use the first pairing. If you could put together an example, that would be great. Thanks!

Here is what I've got in my options:
dumbbellColors: mappedData?.map(element => { if (element.x !== val) { return ['#008FFB', '#00E396'] } else { return ['#f5e960', '#dfb2f4'] } })

Copy link

github-actions bot commented Aug 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant