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
I started with this chart:
import altair as alt import pandas as pd data = pd.DataFrame({ 'category': ['A', 'B', 'C', 'D'], 'value': [40, 20, 30, 10], 'radius_value': [400, 500, 400, 400] }) chart = alt.Chart(data).mark_arc().encode( theta=alt.Theta(field="value", type="quantitative", stack=True), radius=alt.Radius(field="value", type="quantitative", scale=alt.Scale(zero=True)), color="category:N" ) chart.show()
This draws as expected. I then changed the radius field to "radius_value":
import altair as alt import pandas as pd data = pd.DataFrame({ 'category': ['A', 'B', 'C', 'D'], 'value': [40, 20, 30, 10], 'radius_value': [400, 500, 400, 400] }) chart = alt.Chart(data).mark_arc().encode( theta=alt.Theta(field="value", type="quantitative", stack=True), radius=alt.Radius(field="radius_value", type="quantitative", scale=alt.Scale(zero=True)), color="category:N" ) chart.show()
The stacking no longer applied correctly causing the wedge with a different radius to be rendered separately and on top of the other wedges.
In the compiled vega, the stack transform gains a groupby:["radius_value"] which if removed then renders as expected.
groupby:["radius_value"]
I expected that by supplying the radius as a field I would be able to modify the radius without changing the stacking of the graph.
5.5.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
I started with this chart:
This draws as expected.
I then changed the radius field to "radius_value":
The stacking no longer applied correctly causing the wedge with a different radius to be rendered separately and on top of the other wedges.
In the compiled vega, the stack transform gains a
groupby:["radius_value"]
which if removed then renders as expected.What would you like to happen instead?
I expected that by supplying the radius as a field I would be able to modify the radius without changing the stacking of the graph.
Which version of Altair are you using?
5.5.0
The text was updated successfully, but these errors were encountered: