Hello I am trying to plot a histogram and a line chart on the same figure to create a MACD chart. However the histogram data needs to be scaled down so it doesn't overtake the lines. Is there a way to scale the histogram down without scaling the data in my dataframe?
t.head()
Date macd macds macdh
index
0 2020-03-02 0.000000 0.000000 0.000000
1 2020-02-28 0.005048 0.002804 0.002244
2 2020-02-27 -0.000080 0.001622 -0.001702
3 2020-02-26 0.016184 0.006555 0.009629
4 2020-02-25 0.023089 0.011473 0.011615
fig = go.Figure()
fig.add_trace(go.Histogram(
x=t['Date'],
y=t['macdh'],
))
fig.add_trace(go.Scatter(
x=t['Date'],
y=t['macd'],
line_color='dimgray',
opacity=0.8))
fig.add_trace(go.Scatter(
x=t['Date'],
y=t['macds'],
line_color='deepskyblue',
opacity=0.8
))
fig.show()