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
Hello,
I am new to Altair and would like to display a legend that explains the colors used based on conditions in my chart. Here is an example from the documentation:
How can I modify this code to include a legend that explains what the red and blue colors represent? For example, I want the legend to show "red" for values below the cutoff and "blue" for values above the cutoff.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am new to Altair and would like to display a legend that explains the colors used based on conditions in my chart. Here is an example from the documentation:
https://altair-viz.github.io/user_guide/interactions/bindings_widgets.html#data-driven-comparisons
How can I modify this code to include a legend that explains what the red and blue colors represent? For example, I want the legend to show "red" for values below the cutoff and "blue" for values above the cutoff.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions