altair_pandas icon indicating copy to clipboard operation
altair_pandas copied to clipboard

Grouped barchart for <= 12 rows

Open Casyfill opened this issue 5 years ago • 5 comments

It seems to be impossible to control the width of the chart (and generally not useful) with a large number of rows

Casyfill avatar Aug 26 '19 23:08 Casyfill

It seems there is no way to fix the width of the repeat chart (one built using columns), right?

Casyfill avatar Aug 27 '19 01:08 Casyfill

What kind of chart are you asking about?

jakevdp avatar Aug 27 '19 01:08 jakevdp

This one - for a large number of rows it goes beyond the screen.

All charts are available via the notebook below - let me know if you'd prefer to drop it, but seems to be quite useful for testing - and could be used for documentation https://github.com/Casyfill/altair_pandas/blob/grouped-barchart/examples/basic_charts.ipynb

image

Casyfill avatar Aug 27 '19 02:08 Casyfill

Unfortunately, grouped bar charts are currently implemented as faceted charts. Faceted charts cannot be sized top-down. We are working on adding offset as a new channel as a better alternative.

domoritz avatar Aug 27 '19 02:08 domoritz

Personally, I still think that plotting with grouped bar charts are not a great option for a large number of rows anyway - thus made this arbitrary split <=12.

Casyfill avatar Aug 27 '19 02:08 Casyfill