專案

一般

配置概況

工作單 #199 » P9802003-Daily Risk Prediction Results (_).json

marlboro chu, 2025-06-30 02:03

 
{
"result" : {
"id" : 601,
"orgId" : 1,
"folderId" : 136,
"folderUid" : "bemeqa2prz7k0d",
"uid" : "demer9ayrjqiof",
"name" : "P9802003-Daily Risk Prediction Results (%)",
"kind" : 1,
"type" : "barchart",
"description" : "",
"model" : {
"datasource" : {
"type" : "elasticsearch",
"uid" : "f45b49c9-ba56-43c8-b278-a87adffdb57c"
},
"description" : "",
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
},
"custom" : {
"axisBorderShow" : false,
"axisCenteredZero" : false,
"axisColorMode" : "text",
"axisLabel" : "",
"axisPlacement" : "auto",
"fillOpacity" : 80,
"gradientMode" : "none",
"hideFrom" : {
"legend" : false,
"tooltip" : false,
"viz" : false
},
"lineWidth" : 1,
"scaleDistribution" : {
"type" : "linear"
},
"thresholdsStyle" : {
"mode" : "off"
}
},
"mappings" : [ ],
"thresholds" : {
"mode" : "absolute",
"steps" : [ {
"color" : "green",
"value" : null
} ]
},
"unit" : "percentunit"
},
"overrides" : [ {
"matcher" : {
"id" : "byName",
"options" : "no_response"
},
"properties" : [ ]
}, {
"matcher" : {
"id" : "byName",
"options" : "mid"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "semi-dark-yellow",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "low"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "semi-dark-green",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "high"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "dark-red",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "02"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "semi-dark-yellow",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "01"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "semi-dark-green",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "03"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "dark-red",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "No Response"
},
"properties" : [ {
"id" : "color",
"value" : {
"mode" : "fixed"
}
} ]
} ]
},
"gridPos" : {
"h" : 9,
"w" : 12,
"x" : 12,
"y" : 11
},
"id" : 9802003,
"options" : {
"barRadius" : 0,
"barWidth" : 0.97,
"fullHighlight" : false,
"groupWidth" : 0.7,
"legend" : {
"calcs" : [ ],
"displayMode" : "list",
"placement" : "bottom",
"showLegend" : true
},
"orientation" : "auto",
"showValue" : "never",
"stacking" : "normal",
"tooltip" : {
"mode" : "multi",
"sort" : "none"
},
"xField" : "Time",
"xTickLabelRotation" : 0,
"xTickLabelSpacing" : 100
},
"pluginVersion" : "11.4.0",
"targets" : [ {
"alias" : "",
"bucketAggs" : [ {
"field" : "resultInfo__decisionCode",
"id" : "2",
"settings" : {
"min_doc_count" : "1",
"missing" : "未回應",
"order" : "desc",
"orderBy" : "1",
"size" : "0"
},
"type" : "terms"
}, {
"field" : "create_datetime",
"id" : "4",
"settings" : {
"interval" : "1d",
"min_doc_count" : "0",
"timeZone" : "Asia/Taipei",
"trimEdges" : "0"
},
"type" : "date_histogram"
} ],
"datasource" : {
"type" : "elasticsearch",
"uid" : "f45b49c9-ba56-43c8-b278-a87adffdb57c"
},
"metrics" : [ {
"id" : "1",
"type" : "count"
} ],
"query" : "${decision_query:raw} AND resultInfo__decisionCode : *",
"refId" : "A",
"timeField" : "create_datetime"
}, {
"alias" : "",
"bucketAggs" : [ {
"field" : "create_datetime",
"id" : "2",
"settings" : {
"interval" : "1d",
"timeZone" : "Asia/Taipei"
},
"type" : "date_histogram"
} ],
"datasource" : {
"type" : "elasticsearch",
"uid" : "f45b49c9-ba56-43c8-b278-a87adffdb57c"
},
"hide" : false,
"metrics" : [ {
"id" : "1",
"type" : "count"
} ],
"query" : "${decision_query:raw} ",
"refId" : "B",
"timeField" : "create_datetime"
} ],
"title" : "B-02. Daily Risk Level Distribution (Percentage)",
"transformations" : [ {
"id" : "joinByField",
"options" : { }
}, {
"id" : "organize",
"options" : {
"excludeByName" : { },
"includeByName" : { },
"indexByName" : {
"Count" : 1,
"Time" : 0,
"high" : 4,
"low" : 2,
"mid" : 3,
"未回應" : 5
},
"renameByName" : {
"01" : "low_01",
"02" : "mid_02",
"03" : "high_03",
"未回應" : ""
}
}
}, {
"id" : "calculateField",
"options" : {
"binary" : {
"left" : {
"matcher" : {
"id" : "byName",
"options" : "low_01"
}
},
"operator" : "/",
"right" : {
"matcher" : {
"id" : "byName",
"options" : "Count"
}
}
},
"mode" : "binary",
"reduce" : {
"reducer" : "sum"
}
}
}, {
"id" : "calculateField",
"options" : {
"binary" : {
"left" : {
"matcher" : {
"id" : "byName",
"options" : "mid_02"
}
},
"operator" : "/",
"right" : {
"matcher" : {
"id" : "byName",
"options" : "Count"
}
}
},
"mode" : "binary",
"reduce" : {
"reducer" : "sum"
}
}
}, {
"id" : "calculateField",
"options" : {
"binary" : {
"left" : {
"matcher" : {
"id" : "byName",
"options" : "high_03"
}
},
"operator" : "/",
"right" : {
"matcher" : {
"id" : "byName",
"options" : "Count"
}
}
},
"mode" : "binary",
"reduce" : {
"reducer" : "sum"
}
}
}, {
"id" : "calculateField",
"options" : {
"binary" : {
"left" : {
"matcher" : {
"id" : "byName",
"options" : "mid"
}
},
"operator" : "/",
"right" : {
"matcher" : {
"id" : "byName",
"options" : "Count"
}
}
},
"mode" : "binary",
"reduce" : {
"reducer" : "sum"
}
}
}, {
"id" : "calculateField",
"options" : {
"binary" : {
"left" : {
"matcher" : {
"id" : "byName",
"options" : "low"
}
},
"operator" : "/",
"right" : {
"matcher" : {
"id" : "byName",
"options" : "Count"
}
}
},
"mode" : "binary",
"reduce" : {
"reducer" : "sum"
}
}
}, {
"id" : "calculateField",
"options" : {
"binary" : {
"left" : {
"matcher" : {
"id" : "byName",
"options" : "high"
}
},
"operator" : "/",
"right" : {
"matcher" : {
"id" : "byName",
"options" : "Count"
}
}
},
"mode" : "binary",
"reduce" : {
"reducer" : "sum"
}
}
}, {
"id" : "calculateField",
"options" : {
"binary" : {
"left" : {
"matcher" : {
"id" : "byName",
"options" : "未回應"
}
},
"operator" : "/",
"right" : {
"matcher" : {
"id" : "byName",
"options" : "Count"
}
}
},
"mode" : "binary",
"reduce" : {
"reducer" : "sum"
}
}
}, {
"id" : "organize",
"options" : {
"excludeByName" : {
"Count" : true,
"high" : true,
"high_03" : true,
"low" : true,
"low_01" : true,
"mid" : true,
"mid_02" : true,
"未回應" : true
},
"includeByName" : { },
"indexByName" : {
"Count" : 1,
"Time" : 0,
"high" : 7,
"high / Count" : 13,
"high_03" : 4,
"high_03 / Count" : 10,
"low" : 5,
"low / Count" : 11,
"low_01" : 2,
"low_01 / Count" : 8,
"mid" : 6,
"mid / Count" : 12,
"mid_02" : 3,
"mid_02 / Count" : 9,
"未回應" : 14,
"未回應 / Count" : 15
},
"renameByName" : {
"high / Count" : "high",
"high_03 / Count" : "high",
"low / Count" : "low",
"low_01 / Count" : "low",
"mid / Count" : "mid",
"mid_02 / Count" : "mid",
"未回應 / Count" : "No Response"
}
}
} ],
"type" : "barchart"
},
"version" : 47,
"meta" : {
"folderName" : "R98-Library",
"folderUid" : "bemeqa2prz7k0d",
"connectedDashboards" : 3,
"created" : "2025-05-20T09:26:55+08:00",
"updated" : "2025-05-28T15:44:21+08:00",
"createdBy" : {
"avatarUrl" : "/avatar/ce6412d58e966caaa26cac12eb99734b",
"id" : 1,
"name" : "admin"
},
"updatedBy" : {
"avatarUrl" : "/avatar/ce6412d58e966caaa26cac12eb99734b",
"id" : 1,
"name" : "admin"
}
}
}
}
(23-23/30)