Bar chart x-axis is unnecessarily spaced where values are ints/longs

First post, Hi everybody :slight_smile:

I’m trying to do a simple bar chart of an id column. Code looks like:

df.id.value_counts().iplot(kind=‘bar’)

The result is a graph in which each bar is spaced according to the value of the id:

Trying to treat id as a string didnt help…:

df.id.astype(str).value_counts().iplot(kind=‘bar’)

plots the same.

With regular pandas bar chart, result is as expected:

Am I using the API wrong or is it a bug?

Nobody encounter that problem? Is this forum active…?

I am with the same problem. What you did?

Hi @kabure,

Could you add a simple reproducible example of what you’ve tried, and the problem you’re running into?

-Jon