Skip to content

Commit f6e54ec

Browse files
committed
Add Line Chart in Overview tab
1 parent e416cf2 commit f6e54ec

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/ui/components/overview.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,17 @@
33

44
def render(_data_provider):
55
data = _data_provider.get_stock_info()
6-
st.json(data)
6+
historical_data = _data_provider.get_historical_data(period="max", interval="1d")[
7+
"Close"
8+
]
9+
col1, col2 = st.columns(2, gap="large")
10+
container = st.container()
11+
12+
with col1:
13+
st.line_chart(historical_data, x_label="Date", y_label="Price")
14+
15+
with col2:
16+
st.write("Placeholder for Company Summary")
17+
18+
with container:
19+
st.write(f"{data['longBusinessSummary']}")

0 commit comments

Comments
 (0)