Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,32 +41,15 @@ else:
|
|
41 |
st.write(df)
|
42 |
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
# Mum (Candle) grafiği oluşturma
|
48 |
-
st.subheader('Candlestick Chart')
|
49 |
-
fig = go.Figure(data=[go.Candlestick(x=df.index,
|
50 |
-
open=df['Open'],
|
51 |
-
high=df['High'],
|
52 |
-
low=df['Low'],
|
53 |
-
close=df['Close'])])
|
54 |
-
|
55 |
-
# Grafik düzenleme
|
56 |
-
fig.update_layout(
|
57 |
-
title=f'{sembol} Candlestick Chart',
|
58 |
-
yaxis_title='Price',
|
59 |
-
xaxis_title='Date',
|
60 |
-
template='plotly_white'
|
61 |
-
)
|
62 |
-
|
63 |
-
# Grafiği gösterme
|
64 |
-
st.plotly_chart(fig)
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
st.subheader('Volume Price Chart')
|
69 |
-
st.plotly_chart(df['Volume'])
|
70 |
|
71 |
# Excel dosyasını indirme
|
72 |
st.subheader('Stock Data Excel File')
|
|
|
41 |
st.write(df)
|
42 |
|
43 |
|
44 |
+
|
45 |
+
# Grafikler
|
46 |
+
st.subheader("Closing Price Chart")
|
47 |
+
st.line_chart(df['Close'])
|
48 |
+
|
49 |
+
st.subheader("Volume Price Chart")
|
50 |
+
st.bar_chart(df['Volume'])
|
51 |
|
52 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
# Excel dosyasını indirme
|
55 |
st.subheader('Stock Data Excel File')
|