You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the text property in a bar trace with a continuous color scale, the textfont.color is static; all bars use the same text color, which results in difficult to read text for some bars (far right bar in screenshot).
The text font color should be dynamic (dark text on light colored bars, light text on dark bars), just like the hover text. Bar traces with discrete colorscales already have this behavior:
No one is working on it as far as I know, and we'd love the help! The right place to solve this is in the underlying Javascript library Plotly.js. We've actually got code that does this for pie charts and treemaps I believe, so it may be quite straightforward to port it to bars :)
Current Behavior (plotly version 4.14.3)
When using the
text
property in a bar trace with a continuous color scale, thetextfont.color
is static; all bars use the same text color, which results in difficult to read text for some bars (far right bar in screenshot).Expected/Desired Behavior
The text font color should be dynamic (dark text on light colored bars, light text on dark bars), just like the hover text. Bar traces with discrete colorscales already have this behavior:
The text was updated successfully, but these errors were encountered: