-
-
Notifications
You must be signed in to change notification settings - Fork 668
Open
Labels
Description
Please:
- Check for duplicate issues. Please file separate requests as separate issues.
- Describe how to reproduce the bug.
- Use the latest versions of Vega and Vega-Lite.
- Provide an minimal, reproducible example spec in JSON, wrapped by triple backticks like this:
Using field for radius other than the one provided to theta unexpectedly breaks the stack behavior for theta. It seems like radius should be able use a different scale than theta. For example, with the following code, the arcs do not stack on the theta variable as expected.
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{ "segment": 1, "value": 8 },
{ "segment": 2, "value": 7 },
{ "segment": 3, "value": 6 }
]
},
"mark": {"type": "arc", "innerRadius": 20, "stroke": "#fff", "opacity": 0.5},
"encoding": {
"theta": {"field": "segment", "type": "quantitative", "stack": true},
"radius": {"field": "value", "scale": {"type": "sqrt", "zero": true, "rangeMin": 20}}
}
}- If applicable, include error messages and screenshots, GIF videos (e.g. using https://www.cockos.com/licecap/), or working examples (e.g. by clicking share in the Vega-Editor or https://bit.ly/vega-lite-blocks)
-
Working version:
thetaandradiususe same field

-
Broken version:
thetaandradiususe different fields

hydrosquall, vqbc and radiolarian