-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Legend color turns black if specifying specific colors for each bar #1212
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
Comments
Looks like the legend item fallback is wrong for bar traces. Thanks for pointing this out. |
Reproducible codepen: http://codepen.io/etpinard/pen/JbMbXe |
Thanks for fixing this! It seems that the color of the legend when you deselect a serie it is still black. Normally it's a fade out of the color of the serie. See the codepen: http://codepen.io/etpinard/pen/JbMbXe Regards, |
Hi @etpinard I am facing a similar issue. I am creating a bar chart in Dash plotly, to which I am assigning a color scale for showing diverging colors (not assigning colors per bar but a assigning a scale which can do this automatically as per a measure for reference). However, the legend for this chart appears black. The following is a snippet of what I am trying to achieve: 'data':[ 'layout':[ I do not want to show the continuous color scale itself as shown in : https://plotly.com/python/colorscales/ but the legend itself. Thanks in advance! |
It seems, this problem is occurring again in 2020. |
@nitramwin could you please share a minimal codepen illustrating the bug you noticed? |
@archmoj Thanks for the response. Here it is: https://codepen.io/nitramwin/pen/mdEoxZo |
Thanks @nitramwin. Tracked in #5285. |
For a project I'm using lighter bar colors to display what bars have insufficient datapoints to draw conclusions from it. Unfortunately this results in the legend color being black.
Is there a workaround to fix this problem? If not it would be a nice feature to be able to set the color of the legend manually for each series.
Example:
https://plot.ly/~sijmen/3/
The text was updated successfully, but these errors were encountered: