專案

一般

配置概況

工作單 #200 » P9701007-整體風險決策比例.json

marlboro chu, 2025-06-30 01:58

 
{
"result" : {
"id" : 612,
"orgId" : 1,
"folderId" : 143,
"folderUid" : "bempo37hjqtq8d",
"uid" : "bemqkj98188w0a",
"name" : "P9701007-整體風險決策比例",
"kind" : 1,
"type" : "piechart",
"description" : "",
"model" : {
"datasource" : {
"type" : "elasticsearch",
"uid" : "f45b49c9-ba56-43c8-b278-a87adffdb57c"
},
"description" : "",
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
},
"custom" : {
"hideFrom" : {
"legend" : false,
"tooltip" : false,
"viz" : false
}
},
"mappings" : [ ],
"unit" : "locale"
},
"overrides" : [ {
"matcher" : {
"id" : "byName",
"options" : "mid"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "yellow",
"mode" : "shades"
}
} ]
}, {
"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" : "semi-dark-red",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "01"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "semi-dark-green",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "02"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "yellow",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "03"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "semi-dark-red",
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "No Response"
},
"properties" : [ {
"id" : "color",
"value" : {
"mode" : "fixed"
}
} ]
}, {
"matcher" : {
"id" : "byName",
"options" : "一般風險"
},
"properties" : [ {
"id" : "color",
"value" : {
"fixedColor" : "semi-dark-green",
"mode" : "fixed"
}
} ]
} ]
},
"gridPos" : {
"h" : 9,
"w" : 6,
"x" : 18,
"y" : 1
},
"id" : 9701006,
"options" : {
"displayLabels" : [ "name", "percent" ],
"legend" : {
"displayMode" : "list",
"placement" : "bottom",
"showLegend" : true
},
"pieType" : "pie",
"reduceOptions" : {
"calcs" : [ "sum" ],
"fields" : "",
"values" : false
},
"tooltip" : {
"mode" : "multi",
"sort" : "none"
}
},
"pluginVersion" : "11.4.0",
"targets" : [ {
"alias" : "",
"bucketAggs" : [ {
"field" : "resultInfo__decisionCode",
"id" : "2",
"settings" : {
"min_doc_count" : "1",
"missing" : "No Response",
"order" : "desc",
"orderBy" : "1",
"size" : "0"
},
"type" : "terms"
}, {
"field" : "create_datetime",
"id" : "3",
"settings" : {
"interval" : "1y",
"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}",
"refId" : "A",
"timeField" : "create_datetime"
} ],
"title" : "A-06. 高風險交易比例",
"transformations" : [ {
"id" : "sortBy",
"options" : {
"fields" : { },
"sort" : [ {
"desc" : true,
"field" : "high"
} ]
}
}, {
"id" : "joinByField",
"options" : { }
}, {
"id" : "calculateField",
"options" : {
"alias" : "normal",
"mode" : "reduceRow",
"reduce" : {
"include" : [ "mid", "low" ],
"reducer" : "sum"
}
}
}, {
"id" : "organize",
"options" : {
"excludeByName" : {
"No Response" : true,
"low" : true,
"mid" : true
},
"includeByName" : { },
"indexByName" : {
"01" : 1,
"02" : 2,
"03" : 3,
"No Response" : 7,
"Time" : 0,
"high" : 6,
"low" : 4,
"mid" : 5
},
"renameByName" : {
"01" : "low",
"02" : "mid",
"03" : "high",
"high" : "高風險",
"low" : "",
"normal" : "一般風險"
}
}
} ],
"type" : "piechart"
},
"version" : 12,
"meta" : {
"folderName" : "R97-Library",
"folderUid" : "bempo37hjqtq8d",
"connectedDashboards" : 3,
"created" : "2025-05-23T16:54:53+08:00",
"updated" : "2025-05-29T15:44:33+08:00",
"createdBy" : {
"avatarUrl" : "/avatar/ce6412d58e966caaa26cac12eb99734b",
"id" : 1,
"name" : "admin"
},
"updatedBy" : {
"avatarUrl" : "/avatar/ce6412d58e966caaa26cac12eb99734b",
"id" : 1,
"name" : "admin"
}
}
}
}
(13-13/26)