@@ -83,7 +83,7 @@ def create_gauge_chart(value, title, min_val, max_val, threshold_ranges):
8383 title = {'text' : title },
8484 gauge = {
8585 'axis' : {'range' : [min_val , max_val ]},
86- 'bar' : {'color' : "darkblue " },
86+ 'bar' : {'color' : "#6179ED " },
8787 'steps' : [
8888 {'range' : threshold_ranges [0 ], 'color' : colors [0 ]},
8989 {'range' : threshold_ranges [1 ], 'color' : colors [1 ]},
@@ -121,7 +121,7 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
121121 y = machine_data [metric ],
122122 name = metric .title (),
123123 mode = 'lines' ,
124- line = dict (color = 'blue ' ),
124+ line = dict (color = '#6179ED ' ),
125125 hovertemplate =
126126 '<b>Time</b>: %{x}<br>' +
127127 '<b>Value</b>: %{y:.2f}<br>'
@@ -135,7 +135,7 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
135135 y = anomalies [metric ],
136136 mode = 'markers' ,
137137 name = 'Anomalies' ,
138- marker = dict (color = 'red ' , size = 8 , symbol = 'circle' ),
138+ marker = dict (color = '#e9041e ' , size = 8 , symbol = 'circle' ),
139139 hovertemplate =
140140 '<b>Anomaly</b><br>' +
141141 '<b>Time</b>: %{x}<br>' +
@@ -164,23 +164,23 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
164164 background-color: #1E2022;
165165 padding: 15px;
166166 border-radius: 8px;
167- border: 1px solid #2E3236 ;
167+ border: 1px solid #9361f7 ;
168168 min-height: 120px; /* Fixed height for all metric cards */
169169 }
170170 .stMetric:hover {
171171 background-color: #2E3236;
172172 border-color: #3E4246;
173173 }
174174 .stMetric [data-testid="stMetricLabel"] {
175- color: #E0E2E6 !important;
175+ color: #AC85FA !important;
176176 font-size: 1rem !important;
177177 }
178178 .stMetric [data-testid="stMetricValue"] {
179179 color: #FFFFFF !important;
180180 font-size: 2rem !important;
181181 }
182182 .stMetric [data-testid="stMetricDelta"] {
183- color: #B0B2B6 !important;
183+ color: #AC85FA !important;
184184 }
185185 .stProgress .st-bo {
186186 background-color: #00ff00;
@@ -325,7 +325,7 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
325325 names = status_counts .index ,
326326 title = "Health Status Distribution" ,
327327 color_discrete_map = {
328- 'HEALTHY' : '#00ff00 ' ,
328+ 'HEALTHY' : '#AC85FA ' ,
329329 'NEEDS_MAINTENANCE' : '#ffa500' ,
330330 'CRITICAL' : '#ff0000'
331331 })
@@ -340,7 +340,7 @@ def create_time_series(df, machine_id, metric, anomaly_threshold=None):
340340 color = 'health_status' ,
341341 title = "Failure Risk Scores by Machine" ,
342342 color_discrete_map = {
343- 'HEALTHY' : '#00ff00 ' ,
343+ 'HEALTHY' : 'green ' ,
344344 'NEEDS_MAINTENANCE' : '#ffa500' ,
345345 'CRITICAL' : '#ff0000'
346346 })
0 commit comments