The same color is assigned to 2 different consecutive dimension values, even though the color scheme has other available colors This happened while creating a stacked bar chart
How to reproduce the bug
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected results
Colors should alternate across these available ones:
Actual results
For the 3rd and 4th values, they are assigned the same orange color
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):
- browser type and version: Chrome Version 120.0.6099.199
- superset version: 2.1.1
- python version:
python --version
- node.js version:
node -v
- any feature flags active:
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [ ] I have reproduced the issue with at least the latest released version of superset.
- [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
Additional context
Add any other context about the problem here.
Comment From: michael-s-molina
Hi @saramoujahid. I believe this is fixed in 3.0.3 and 3.1.0 which are the officially supported versions. You just need to upgrade your installation to fix the problem.
Comment From: skannan-maf
I am in 3.1.0 and I am seeing Superset selecting same color for 2 different lines in a line chart. Any idea how to workaround this?
Comment From: rusackas
@skannan-maf we're currently supporting 4.x versions, so if you are seeing the issue after an upgrade, let us know with screenshots/repro steps either here or (preferably) on a new/clean Issue report.
Comment From: SundeepBose
Still in v 4.x I see the same. You make a change in color using color scheme option and save. It will show new color properly. But as soon as you refresh the chart the issue comes back....it provide same color to to categories
Comment From: skannan-maf
Overall, as an end user, I need a way to specify a color of my choice for a series in my chart..... |f unspecified, it can use the theme...... This is my expectation as an end user.... (or) While using the scheme, Superset by default should pick colors so that various charts in the dashboard have consistent color choices based on the name of the series.....
Comment From: azsun1
I see that this was falsely claimed to have been fixed in 3.1.0. I am on version 4.0.1 and am still experiencing this issue.