-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
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
Radial chart radius field unexpectedly changes arc stack behavior #7957
Comments
Just ran in this bug. Ah, I really need this radial chart now. Any updates here? |
I am able to reproduce this bug: vega/altair#3204 This bug is making Altair and Vega-Lite incapable to creating radial chart. Is there any plan of fixing it? |
I was wondering if doing this would be possible with plain Vega, and noticed the other examples are using a uniform theta. If we can achieve the desired graph with plain Vega, then this should stay here. If the desired graph isn't producible with plain Vega, we should relocate this issue (using the compiled spec) to the Vega repo References: https://groups.google.com/g/vega-js/c/oaT2fq1dkYs https://observablehq.com/@stanisouce/vega-wind-rose-or-radial-stacked-bar-chart-in-progress |
I have a fix to repair the "Broken Version" by modifying the compiled Vega ( ex ) . This seems correct since the arc with the smallest arc length also has the longest radius, and vice versa, just like in the source data.
Reading @qnzhou 's investigation from Altair into the
I see support for ArchiveOutdated comment on what changed
|
I have a starter for a fix that improves the radial case here . I would like to avoid making this check hyper-specific to |
I dug into this further because while the The only difference was that the existing vega-lite code handles stacked theta well for
Writing it out helped - omitting the |
Please:
Using field for
radius
other than the one provided totheta
unexpectedly breaks thestack
behavior fortheta
. It seems likeradius
should be able use a different scale thantheta
. For example, with the following code, the arcs do not stack on thetheta
variable as expected.Working version:
theta
andradius
use same fieldBroken version:
theta
andradius
use different fieldsThe text was updated successfully, but these errors were encountered: