We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you have a color encoding with a conditional re-coloring on it for particular values, those re-colorings are not reflected in the legend.
{ "$schema": "https://vega.github.io/schema/vega-lite/v5.json", "data": {"url": "data/cars.json"}, "mark": "point", "encoding": { "x": {"field": "Horsepower", "type": "quantitative"}, "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, "color": { "field": "Origin", "type": "nominal", "condition": {"test": "datum['Origin'] === 'USA'", "value": "red"}, "scale": {"scheme": "category10"} } } }
Produces:
Repro
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Description
If you have a color encoding with a conditional re-coloring on it for particular values, those re-colorings are not reflected in the legend.
Produces:
Repro
Checklist
The text was updated successfully, but these errors were encountered: