-
-
Notifications
You must be signed in to change notification settings - Fork 689
Open
Labels
Description
Bug Description
Repro for the bug can be found on this vega editor url.
My spec, minus the data, looks like:
{
"$schema": "https://vega.github.io/schema/vega-lite/v6.json",
"data": {
"values": []
},
"mark": {"type": "line", "point": true},
"encoding": {
"x": {
"field": "maxSpeed.value",
"type": "quantitative",
"title": "Max Speed"
},
"y": {
"field": "weight.value",
"type": "quantitative",
"title": "Weight"
},
"color": {
"field": "type.value",
"type": "nominal",
"title": "Type",
"legend": {"title": "Type", "type": "symbol"}
},
"shape": {
"field": "type.value",
"type": "nominal",
"title": "Type",
"legend": {"title": "Type"}
}
}
}With the above spec I would expect the legend to have one section "Type" and to include one legend value per type, with the color and shape represented per value on the legend:
However, what I get are two distinct legends, one for the shape, and one for the color. If I change the mark to use point like so:
"mark": { "type": "point" },I get a properly combined legend:
Checklist
- I checked for duplicate issues.
Reactions are currently unavailable