@@ -83,7 +83,7 @@ def create_gauge_chart(value, title, min_val, max_val, threshold_ranges):
83
83
title = {'text' : title },
84
84
gauge = {
85
85
'axis' : {'range' : [min_val , max_val ]},
86
- 'bar' : {'color' : "darkblue " },
86
+ 'bar' : {'color' : "#6179ED " },
87
87
'steps' : [
88
88
{'range' : threshold_ranges [0 ], 'color' : colors [0 ]},
89
89
{'range' : threshold_ranges [1 ], 'color' : colors [1 ]},
@@ -121,7 +121,7 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
121
121
y = machine_data [metric ],
122
122
name = metric .title (),
123
123
mode = 'lines' ,
124
- line = dict (color = 'blue ' ),
124
+ line = dict (color = '#6179ED ' ),
125
125
hovertemplate =
126
126
'<b>Time</b>: %{x}<br>' +
127
127
'<b>Value</b>: %{y:.2f}<br>'
@@ -135,7 +135,7 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
135
135
y = anomalies [metric ],
136
136
mode = 'markers' ,
137
137
name = 'Anomalies' ,
138
- marker = dict (color = 'red ' , size = 8 , symbol = 'circle' ),
138
+ marker = dict (color = '#e9041e ' , size = 8 , symbol = 'circle' ),
139
139
hovertemplate =
140
140
'<b>Anomaly</b><br>' +
141
141
'<b>Time</b>: %{x}<br>' +
@@ -164,23 +164,23 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
164
164
background-color: #1E2022;
165
165
padding: 15px;
166
166
border-radius: 8px;
167
- border: 1px solid #2E3236 ;
167
+ border: 1px solid #9361f7 ;
168
168
min-height: 120px; /* Fixed height for all metric cards */
169
169
}
170
170
.stMetric:hover {
171
171
background-color: #2E3236;
172
172
border-color: #3E4246;
173
173
}
174
174
.stMetric [data-testid="stMetricLabel"] {
175
- color: #E0E2E6 !important;
175
+ color: #AC85FA !important;
176
176
font-size: 1rem !important;
177
177
}
178
178
.stMetric [data-testid="stMetricValue"] {
179
179
color: #FFFFFF !important;
180
180
font-size: 2rem !important;
181
181
}
182
182
.stMetric [data-testid="stMetricDelta"] {
183
- color: #B0B2B6 !important;
183
+ color: #AC85FA !important;
184
184
}
185
185
.stProgress .st-bo {
186
186
background-color: #00ff00;
@@ -325,7 +325,7 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
325
325
names = status_counts .index ,
326
326
title = "Health Status Distribution" ,
327
327
color_discrete_map = {
328
- 'HEALTHY' : '#00ff00 ' ,
328
+ 'HEALTHY' : '#AC85FA ' ,
329
329
'NEEDS_MAINTENANCE' : '#ffa500' ,
330
330
'CRITICAL' : '#ff0000'
331
331
})
@@ -340,7 +340,7 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
340
340
color = 'health_status' ,
341
341
title = "Failure Risk Scores by Machine" ,
342
342
color_discrete_map = {
343
- 'HEALTHY' : '#00ff00 ' ,
343
+ 'HEALTHY' : 'green ' ,
344
344
'NEEDS_MAINTENANCE' : '#ffa500' ,
345
345
'CRITICAL' : '#ff0000'
346
346
})
0 commit comments