Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -687,10 +687,10 @@ with final_recs:
|
|
| 687 |
figure = go.Figure(data=[line_stock], layout=layout)
|
| 688 |
figure.add_scatter(x=plot_sub_pos['Date'], y=plot_sub_pos['Price'], mode='markers',
|
| 689 |
marker=dict(symbol='triangle-up', size=10, color=cs.pos_impacts_color), name='Positive Impact',
|
| 690 |
-
customdata=
|
| 691 |
figure.add_scatter(x=plot_sub_neg['Date'], y=plot_sub_neg['Price'], mode='markers',
|
| 692 |
marker=dict(symbol='triangle-down', size=10, color=cs.neg_impacts_color), name='Negative Impact',
|
| 693 |
-
customdata=
|
| 694 |
figure.update_layout(
|
| 695 |
title={
|
| 696 |
'text': title,
|
|
|
|
| 687 |
figure = go.Figure(data=[line_stock], layout=layout)
|
| 688 |
figure.add_scatter(x=plot_sub_pos['Date'], y=plot_sub_pos['Price'], mode='markers',
|
| 689 |
marker=dict(symbol='triangle-up', size=10, color=cs.pos_impacts_color), name='Positive Impact',
|
| 690 |
+
customdata=plot_sub_pos['Feature'], hovertemplate='%{x}<br>Close: %{y}<br>Feature: %{customdata}<br>')
|
| 691 |
figure.add_scatter(x=plot_sub_neg['Date'], y=plot_sub_neg['Price'], mode='markers',
|
| 692 |
marker=dict(symbol='triangle-down', size=10, color=cs.neg_impacts_color), name='Negative Impact',
|
| 693 |
+
customdata=plot_sub_neg['Feature'], hovertemplate='%{x}<br>Close: %{y}<br>Feature: %{customdata}<br>',)
|
| 694 |
figure.update_layout(
|
| 695 |
title={
|
| 696 |
'text': title,
|