Skip to content

Commit

Permalink
fix legends
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuttlas90 committed Aug 20, 2024
1 parent 3eb5119 commit 38a2e4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/social_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
alt.X('date:N',title="تاریخ")
)
st.altair_chart(chart, use_container_width=True)

error, stock_data = vasahm_query(queries.get_daily_social('rahavard'))
if error:
st.error(stock_data, icon="🚨")
Expand All @@ -60,7 +60,8 @@
stock_data_history = pd.DataFrame(stock_data, columns=["index",
"number",
"date"])

stock_data_history['index'].replace('daily_anslysis_no','تحلیلهای روزانه', inplace=True)
stock_data_history['index'].replace('daily_comment_no','کامنتهای روزانه', inplace=True)
chart = alt.Chart(stock_data_history).mark_bar().encode(
alt.Color('index:N', title="سرفصلها"),
alt.Y('number:Q', title="تعداد کامنت"),
Expand Down

0 comments on commit 38a2e4c

Please sign in to comment.