✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Gaps between bars in barchart

how can I remove gaps in barcharts, like in this example:

By gaps, you mean the bars with no height?

Hi thanks for replay.
Lets look at the barchart from 1st link - there is a gap for value_2 - its missing the orange bar - but must there be that gap? Can we just remove the empty space so that blue and green bars will be next to each other.

Also in this link, in case you have 2 axes - why bars assigned to 2nd axis have different tickness than the bars from the 1st axis?

Also I have found that its not a problem with multiple axes. It even happen with single axes:

Why there is so much empty space between the bars for 1, 2 and 3 x value?!

Because bars with height=0 still hold a position in plotly.js.

See https://github.com/plotly/plotly.js/issues/930 for more info.