Replies: 1 comment
-
|
Instead of condition, color with a color scale by defining a field and a scale domain and range. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Still new to this.I have a single legend for Color (css color hex values) and items (strings), but I want the legend to show items as text with the circles being the corresponding color of Color. Currently the legend is for Color and items because that is simply where I am, and if I update
"color": {"field": "**Color**", "type": "nominal"in the bar mark to be 'surface', then I do get a legend for Color values only, but my bar colors disappear.On the other hand, if I update
"color": {"field": "**surface**", "type": "nominal"in the point mark to be 'Color', then I get a legend for Color hex values only, not items strings.In all my legends the color of the points is wrong
What I want:

Sample data
Columns
year_id, name_short, name_short_year, surface, Color, year_, CP, date_, W, RIValues
"2025-1536", "Maddy", "Maddy '25", "c", "#b3500495", 2025, "Alex", 2025-01-03T04:00:00.000Z, "L&M", 4'"2025-311", "Lenny", "Lenny '25", "a", "#0a8a1795", 2025, "Alex", 2025-02-06T04:00:00.000Z, "Jerry", 3`
"2025-337", "Vonnie", "Vonnie '25", "b", "#268cff90", 2025, "Alex", 2025-11-23T04:00:00.000Z, "Jenny", 6Current chart & legend

Beta Was this translation helpful? Give feedback.
All reactions