diff --git a/stock_viz.py b/stock_viz.py index a05a2eb..1011d47 100644 --- a/stock_viz.py +++ b/stock_viz.py @@ -158,7 +158,7 @@ def wrd_viz(stringy): """, unsafe_allow_html=True ) - fig = px.treemap( + fjg = px.treemap( data, path=["Sector", "Symbol"], values="Volume", @@ -168,8 +168,8 @@ def wrd_viz(stringy): color_continuous_scale=[(0, "red"), (1, "green")], #title="Current Temperature of The Market", ) - fig.update_layout(margin=dict(t=50, l=25, r=25, b=25),showlegend=False) - st.plotly_chart(fig, use_container_width=True) + fjg.update_layout(margin=dict(t=50, l=25, r=25, b=25),showlegend=False) + st.plotly_chart(fjg, use_container_width=True) with wod_cld_cont: with st.container():