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

Crowding of xticks #119

Open
EvanPP opened this issue Mar 30, 2016 · 2 comments
Open

Crowding of xticks #119

EvanPP opened this issue Mar 30, 2016 · 2 comments

Comments

@EvanPP
Copy link

EvanPP commented Mar 30, 2016

For this bar chart (based on a pandas Series), the xticks get crowded, as some of them are quite long.

When the same series is plotted using Bokeh and Plot.ly, the ticks are displayed down at an angle (perhaps these libraries detect the long names and re-orient accordingly)?

With matplotlib and pandas, the names get displayed vertically.

In each of the above cases, the crowding is avoided. In chart.add_serie(), I don't see an option to re-orient. Is this supported in the API? If not, how can I work around this issue?
<img @src="http://imgur.com/xHJ1gfn">

@quetzaluz
Copy link
Contributor

nvd3 offers a few options for this, some of which are configurable through this library. This library already has the xAxis_rotateLabel option which might offer what you need. You can also configure reduceXTicks in nvd3 and I'll see if I can add support for this and put up a PR this weekend (I am not sure how quickly PRs are reviewed for this library).

@quetzaluz
Copy link
Contributor

More axis rendering options are now available in the develop branch of this repo

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