Prasanna1622 commited on
Commit
bfbf842
·
verified ·
1 Parent(s): 05da1e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -25,6 +25,20 @@ st.plotly_chart(px.bar(df, x="Name", y=["Solar_Generation__c", "Wind_Generation_
25
  # 4. Charts (Energy + Alert Breakdown)
26
  display_charts(df)
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
 
30
 
 
25
  # 4. Charts (Energy + Alert Breakdown)
26
  display_charts(df)
27
 
28
+ import plotly.express as px
29
+
30
+ st.subheader("📈 Tilt vs Vibration")
31
+
32
+ fig_tv = px.scatter(
33
+ filtered_df,
34
+ x="Tilt_Angle__c", # make sure this is your column name
35
+ y="Vibration_Level__c", # make sure this is your column name
36
+ color="Alert_Level__c",
37
+ hover_name="Name",
38
+ title="Tilt Angle vs Vibration Level"
39
+ )
40
+ st.plotly_chart(fig_tv)
41
+
42
 
43
 
44