Black Lives Matter. Please consider donating to Black Girls Code today.

Histogram with logarithmic xaxis


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: , 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 for more info on the topic.