Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -305,7 +305,7 @@ with news_analysis:
|
|
| 305 |
line=dict(dash='solid', color=cs.close_line_color, width=2),
|
| 306 |
# text=events['Cleaned_Headline'],
|
| 307 |
# hovertext=events['FeatureSentiment'],
|
| 308 |
-
customdata=
|
| 309 |
hovertemplate='%{x}<br>Close: %{y}<br>Feature: %{customdata}<br>',
|
| 310 |
# hoverlabel=dict(font=dict(color=events
|
| 311 |
# ['FeatureSentiment'].apply(lambda x: 'red' if x == 'Negative' else 'blue' if x == 'Neutral' else 'green'))), # Customize the line style, color, and width
|
|
@@ -700,7 +700,7 @@ with final_recs:
|
|
| 700 |
line=dict(dash='solid', color=cs.close_line_color, width=2),
|
| 701 |
# text=events['Cleaned_Headline'],
|
| 702 |
# hovertext=events['FeatureSentiment'],
|
| 703 |
-
customdata=
|
| 704 |
hovertemplate='%{x}<br>Close: %{y}<br>Feature: %{customdata}<br>',
|
| 705 |
# hoverlabel=dict(font=dict(color=events
|
| 706 |
# ['FeatureSentiment'].apply(lambda x: 'red' if x == 'Negative' else 'blue' if x == 'Neutral' else 'green'))), # Customize the line style, color, and width
|
|
|
|
| 305 |
line=dict(dash='solid', color=cs.close_line_color, width=2),
|
| 306 |
# text=events['Cleaned_Headline'],
|
| 307 |
# hovertext=events['FeatureSentiment'],
|
| 308 |
+
customdata=events['Feature'],
|
| 309 |
hovertemplate='%{x}<br>Close: %{y}<br>Feature: %{customdata}<br>',
|
| 310 |
# hoverlabel=dict(font=dict(color=events
|
| 311 |
# ['FeatureSentiment'].apply(lambda x: 'red' if x == 'Negative' else 'blue' if x == 'Neutral' else 'green'))), # Customize the line style, color, and width
|
|
|
|
| 700 |
line=dict(dash='solid', color=cs.close_line_color, width=2),
|
| 701 |
# text=events['Cleaned_Headline'],
|
| 702 |
# hovertext=events['FeatureSentiment'],
|
| 703 |
+
customdata=events['Feature'],
|
| 704 |
hovertemplate='%{x}<br>Close: %{y}<br>Feature: %{customdata}<br>',
|
| 705 |
# hoverlabel=dict(font=dict(color=events
|
| 706 |
# ['FeatureSentiment'].apply(lambda x: 'red' if x == 'Negative' else 'blue' if x == 'Neutral' else 'green'))), # Customize the line style, color, and width
|