Histogram with logarithmic xaxis

Hello,

I am trying to plot a plotly.js histogram with both x and y axis logarithmic. The y axis works fine but when I set the x axis to log, the bars disappear. The problem might be similar to this: https://stackoverflow.com/questions/6855710/how-to-have-logarithmic-bins-in-a-python-histogram , but I need some solution for JS.

Does anyone know how to solve this?

Can you share a reproducible example to help us help you?

Sorry for responding so late.

I’ve copied one official histogram example and set the x-axis to ‘log’.

As you can see, the histogram bars aren’t showing up. When you remove ‘log’, everything works fine.

Thank you very much :slight_smile:

See https://github.com/plotly/plotly.js/issues/1844 for more info on the topic.