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
I would like to assign a different color to each bar in a horizontal bar chart, but it seems the color parameter is
only available at the top-level (component) level and not at the row level.
Indeed, I understand this is a bit counterintuitive, but colors need to be declared at the top level.
Colors are attributed per-series, so you need to give a single x value to all bars, with different series:
with #1375#1376 and #1377 , rows now serialize as objects and are able to configure the colours of reference lines & areas. this concept could be reused for this
Activity
lovasoa commentedon Mar 5, 2026
Indeed, I understand this is a bit counterintuitive, but colors need to be declared at the top level.
Colors are attributed per-series, so you need to give a single x value to all bars, with different series:
wissyfaty commentedon Mar 15, 2026
Thanks for the explanation , that makes sense now.
Thanks for the clarification and the example!
81reap commentedon Aug 13, 2026
with #1375 #1376 and #1377 , rows now serialize as objects and are able to configure the colours of reference lines & areas. this concept could be reused for this
lovasoa commentedon Aug 23, 2026
@81reap the new general 'color' row level property could be used for normal datapoints too, finally implementing this feature request
81reap commentedon Aug 25, 2026
raised #1404