vega / altair

Declarative statistical visualization library for Python
https://altair-viz.github.io/
BSD 3-Clause "New" or "Revised" License
9.23k stars 784 forks source link

improve docs on pie charts #3424

Open francocalvo opened 3 months ago

francocalvo commented 3 months ago

What is your suggestion?

Currently there are very few examples of how to use pie charts.

There are a couple of examples that come to my mind which are complex and general enough to allow for many use cases.

First: image

I know there is currently the laballed example using mark_text and the radius. Sometimes the data is too dense for it to be usable. It would be nice to see how one could create a

EDIT:

I just realized my issue was cut short! The topics I was most interested in were:

Have you considered any alternative solutions?

No response

joelostblom commented 3 months ago

Thanks for the suggestion! Currently there is no way of automatically positioning labels so that they don't overlap. When https://github.com/vega/vega-lite/issues/7228 is implemented in Vega-Lite, this functionality will be available in Altair.

francocalvo commented 3 months ago

Hey! Just got around to read a bit on that issue. Hope that gets implemented soon.

I just realized my issue was cut short! The topics I was most interested in were:

I kept trying to come up with something for the second thing, but couldn't make it. I'm not very savy on visualizations.

Thanks for your time!