Skip to content
New issue

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

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

Open
cphalpert opened this issue Feb 8, 2019 · 1 comment

Comments

@cphalpert
Copy link
Contributor

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()

@CheeseArchitect
Copy link

CheeseArchitect commented Jan 14, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants