Bar chart axis not showing duration properly (line chart does)

Hey, I have two charts: Line chart and bar chart with datetimes as y axis. The line chart shows up fine but the bar chart doesn’t show the datetimes correctly:

Bildschirmfoto vom 2017-09-28 21-39-03

Compare to the same data with line chart:

Bildschirmfoto vom 2017-09-28 21-42-30

Is this a known bug?

Can you share a reproducible example?

@etienne hi, here you go (it should viewable if you click on “Edit on CodePen”):

Hmm. thanks for the codepen!

I think something is off with our autorange logic for dates on y-axes. I’ll need to take a closer look at it.

In the meantime, you can set yaxis.range to get the desired result: https://codepen.io/etpinard/pen/PJjjRz?editors=0011

1 Like

Awesome, thanks a lot!

After some investigating, looks like we have a bug with our autorange routine.

You can subscribe to https://github.com/plotly/plotly.js/issues/2049 for the latest development info.

Thanks very much for writing in!

1 Like

Thank you :slight_smile: