mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
Fix blank chart (#5128)
This commit is contained in:
@@ -123,15 +123,17 @@ def display_correlation_interest(
|
||||
)
|
||||
for word in words:
|
||||
df_interest = google_model.get_mentions(word)
|
||||
if df_interest.empty:
|
||||
continue
|
||||
fig.add_scatter(
|
||||
x=df_interest.index,
|
||||
y=df_interest[word],
|
||||
name=word,
|
||||
row=2,
|
||||
col=1,
|
||||
)
|
||||
if not df_interest.empty:
|
||||
df_interest = df_interest.reindex(data.index, method="nearest")
|
||||
|
||||
fig.add_scatter(
|
||||
x=df_interest.index,
|
||||
y=df_interest[word].values,
|
||||
name=word,
|
||||
row=2,
|
||||
col=1,
|
||||
)
|
||||
|
||||
fig.hide_holidays()
|
||||
|
||||
export_data(
|
||||
|
||||
Reference in New Issue
Block a user