Nazhar commited on
Commit
d8e6761
·
verified ·
1 Parent(s): 0ebe9ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=str(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,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=str(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
 
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