Skip to content

Commit

Permalink
Add scroll zoom to plotly candle (OpenBB-finance#1224)
Browse files Browse the repository at this point in the history
Co-authored-by: didierlopes.eth <[email protected]>
  • Loading branch information
jmaslek and didierlopes.eth authored Jan 20, 2022
1 parent e1c0b07 commit 805574d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_price_target_from_analysts(ticker: str) -> pd.DataFrame:
if "window.analyseChartConfigs.push" in str(script):
# Extract config data:
s_analyst_data = str(script).split("config: ", 1)[1].split(",\r\n", 1)[0]
d_analyst_data = json.loads(s_analyst_data)
d_analyst_data = json.loads(s_analyst_data.split(",\n")[0])
break

df_analyst_data = pd.DataFrame.from_dict(d_analyst_data["Markers"]) # type: ignore
Expand Down

0 comments on commit 805574d

Please sign in to comment.