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'] } })
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.
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'] } })