This is my simple code:
name_a = df_a[names].unique()[0]
data.add_trace(
go.Bar(
x=df_a[xaxis_col],
y=df_a[yaxis_col],
name=name_a,
hovertemplate="%{y:.3s}",
)
)
data.add_trace(
go.Scatter(
x=df_b[xaxis_col],
y=df_b[yaxis_col]
)
)
figure = go.Figure(data=data)
And iβm getting this graph:
df_a:
xaxis_col | yaxis_col
01 | 3131
02 | 1300
03 | 8331
04 | 3662
05 | 3300
09 | 3231
12 | 450
13 | 700
14 | 1831
df_b:
xaxis_col | yaxis_col
01 | 48993
02 | 66462
03 | 65562
04 | 38700
05 | 40731
06 | 52031
07 | 50531
08 | 34062
09 | 19700
10 | 31381
11 | 36793
12 | 36000
13 | 31500
14 | 29931
15 | 38300
16 | 35800
17 | 37481
18 | 60974
19 | 41700
20 | 38300
21 | 49262
22 | 54200
23 | 48631
24 | 58662
25 | 63481
26 | 37931
27 | 34062
28 | 22450
29 | 54112
30 | 16531
Can you point me, where is the problem?