altair_pandas
altair_pandas copied to clipboard
Grouped barchart for <= 12 rows
It seems to be impossible to control the width of the chart (and generally not useful) with a large number of rows
It seems there is no way to fix the width of the repeat chart (one built using columns
), right?
What kind of chart are you asking about?
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
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.
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.