chartify icon indicating copy to clipboard operation
chartify copied to clipboard

Source label breaks when y_axis_type='categorical' and long axis tick labels

Open cphalpert opened this issue 6 years ago • 1 comments

import chartify

Generate example data

data = chartify.examples.example_data()

quantity_by_fruit = (data.groupby('fruit')['quantity'].sum().reset_index()) print(quantity_by_fruit.head()) quantity_by_fruit.iloc[0,0] = 'AAAAAAAAAAAAAAAAAAAA' ch = chartify.Chart(False, y_axis_type='categorical') ch.set_title("Vertical bar plot") ch.plot.bar( data_frame=quantity_by_fruit, categorical_columns='fruit', numeric_column='quantity') ch.show()

cphalpert avatar Feb 08 '19 22:02 cphalpert

I am having the exact same problem. This issue still has not been resolved.

Basically, long categorical names serve to push the source label out to the right, beyond the viewable area of the chart. You can make the source label visible by appending a long string at the end.

CheeseArchitect avatar Jan 14 '20 23:01 CheeseArchitect