Adding color code thresholds to standalone GUI to match Grafana
Signed-off-by: coleramos425 <colramos@amd.com>
[ROCm/rocprofiler-compute commit: 6461df96e8]
这个提交包含在:
1 父节点
7b0a70160e
当前提交
663181470a
1 个文件已更改
+27
-1
@@ -365,7 +365,33 @@ def build_table_chart(
|
||||
if IS_DARK
|
||||
else {},
|
||||
style_data_conditional=[
|
||||
{"if": {"row_index": "odd"}, "backgroundColor": "rgb(60, 60, 60)"}
|
||||
{"if": {"row_index": "odd"}, "backgroundColor": "rgb(60, 60, 60)"},
|
||||
{
|
||||
"if": {"column_id": "PoP", "filter_query": "{PoP} > 50"},
|
||||
"backgroundColor": "#ffa90a",
|
||||
"color": "white",
|
||||
},
|
||||
{
|
||||
"if": {"column_id": "PoP", "filter_query": "{PoP} > 80"},
|
||||
"backgroundColor": "#ff120a",
|
||||
"color": "white",
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"column_id": "Avg",
|
||||
"filter_query": "{Unit} = Pct && {Avg} > 50",
|
||||
},
|
||||
"backgroundColor": "#ffa90a",
|
||||
"color": "white",
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"column_id": "Avg",
|
||||
"filter_query": "{Unit} = Pct && {Avg} > 80",
|
||||
},
|
||||
"backgroundColor": "#ff120a",
|
||||
"color": "white",
|
||||
},
|
||||
]
|
||||
if IS_DARK
|
||||
else [],
|
||||
|
||||
在新工单中引用
屏蔽一个用户