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 Add option to not leave gaps in grouped bar chart · Issue #930 · plotly/plotly.js · GitHub for more info.

I am having the same issue here. The values that have a height = 0 do not even exist in the data set that I plotted.
How can I make Plotly ignore it?