Skip to content

Commit b094d62

Browse files
committed
plot feature updated
1 parent 5e89e2f commit b094d62

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,13 @@ def CryptoForecast(SelectCrypto):
133133
y="Close",
134134
size="Volume",
135135
title=SelectCrypto,
136-
labels={"Date": "Date", "Close": "Closing Price in USD"},
136+
labels={"Date": "Date", "Close": "Price in USD"},
137137
template="plotly_dark",
138138
#height = 500,
139-
).update_traces(name="Price in USD", mode="lines+markers", marker=dict(color="green", opacity=0.4))
139+
).update_traces(mode="lines+markers", marker=dict(color="green", opacity=0.4))
140+
141+
fig_forecast["data"][0]["showlegend"]=True
142+
fig_forecast["data"][0]["name"]="Actual Price"
140143

141144
fig_forecast.add_trace(
142145
go.Scatter(

0 commit comments

Comments
 (0)