I’ve a bar plot with float values as x axis values. I’d like to get the bars located close to each other what I get with
fig = go.Figure()
fig.add_trace(
go.Bar(
name='Class a',
x=[10.1, 20.2, 30.3, 40.4],
y=[1,2,3,4],
)
)
fig.add_trace(
go.Bar(
name='Class b',
x=[10.1, 20.2, 30.3, 40.4],
y=[2,4,6,8],
)
)
However my float values are seperated over a broader range which results in x axis interpreted as range somehow?
fig = go.Figure()
fig.add_trace(
go.Bar(
name='Class a',
x=[61.1, 91.2, 199.3, 200.4],
y=[1,2,3,4],
)
)
fig.add_trace(
go.Bar(
name='Class b',
x=[61.1, 91.2, 199.3, 200.4],
y=[2,4,6,8],
)
)
How can I get the bars close to each other (first picture) with the second case data?