awacke1 commited on
Commit
336729c
·
1 Parent(s): 6857c54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -22
app.py CHANGED
@@ -19,28 +19,6 @@ if uploaded_file is not None:
19
  data = pd.read_csv(uploaded_file)
20
  st.write(data.head())
21
 
22
- if st.sidebar.button("Generate Sunburst Chart"):
23
- # Generate random data for sunburst chart
24
- random_data = [random.randint(1, 100) for i in range(10)]
25
-
26
- # Generate sunburst chart
27
- st.header("Sunburst Chart")
28
- fig = px.sunburst(data, values=random_data)
29
- st.write("A sunburst chart is a type of radial treemap that displays hierarchical data across two dimensions. The innermost circle represents the root node, and each subsequent circle represents a deeper level in the hierarchy.")
30
- st.plotly_chart(fig)
31
-
32
- if st.sidebar.button("Generate Treemap Chart"):
33
- # Generate random data for treemap chart
34
- random_data = [random.randint(1, 100) for i in range(20)]
35
-
36
- # Generate treemap chart
37
- st.header("Treemap Chart")
38
- fig = sp.make_subplots(rows=1, cols=2, specs=[[{'type':'treemap'}, {'type':'treemap'}]])
39
- fig.add_trace(px.treemap(data, values=random_data[:10]))
40
- fig.add_trace(px.treemap(data, values=random_data[10:]))
41
- st.write("A treemap chart is a type of space-filling diagram that displays hierarchical data across two dimensions. Each rectangle represents a single node in the hierarchy, and its size is proportional to a specified value.")
42
- st.plotly_chart(fig)
43
-
44
  if st.sidebar.button("Generate Scatter Plot"):
45
  # Generate random data for scatter plot
46
  random_x = [random.randint(1, 100) for i in range(10)]
 
19
  data = pd.read_csv(uploaded_file)
20
  st.write(data.head())
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  if st.sidebar.button("Generate Scatter Plot"):
23
  # Generate random data for scatter plot
24
  random_x = [random.randint(1, 100) for i in range(10)]