{ "order": 9, "key": "gauge-chart", "type": "gauge-chart", "name": "仪表盘", "description": "用指针和进度弧展示单个指标的当前值或完成率", "tags": [ "charts", "仪表盘", "gauge-chart" ], "renderer": "echarts", "group": "charts", "icon": "solar:speedometer-middle-bold", "usage_notes": [ "默认图表数据仅用于演示,不是真实业务数据", "通过顶层 dataId 关联已有数据源,当前后端尚未实现绑定操作" ], "field_groups": [ "node-base", "chart-title", "chart-gauge-value", { "key": "gauge-dial", "label": "表盘", "description": "仪表盘的指针、刻度和表盘宽度", "fields": [ { "path": "props.option.series.0.pointer.show", "label": "显示指针", "description": "是否显示指针", "value_type": "boolean", "default": true, "aliases": [ "指针" ], "panel": false }, { "path": "props.option.series.0.pointer.itemStyle.color", "label": "指针颜色", "description": "指针的颜色", "value_type": "color", "panel": false, "themed": true }, { "path": "props.option.series.0.axisLabel.color", "label": "刻度文字色", "description": "表盘刻度数字的颜色", "value_type": "color", "aliases": [ "刻度颜色" ], "panel": false, "themed": true }, { "path": "props.option.series.0.axisLabel.fontSize", "label": "刻度字号", "description": "表盘刻度数字的大小", "value_type": "number", "minimum": 8, "maximum": 48, "unit": "px", "default": 12, "aliases": [ "刻度大小" ], "panel": false }, { "path": "props.option.series.0.axisLine.lineStyle.width", "label": "表盘宽度", "description": "表盘底弧的粗细", "value_type": "number", "minimum": 1, "maximum": 60, "unit": "px", "aliases": [ "底弧宽度" ], "panel": false }, { "path": "props.option.series.0.progress.width", "label": "进度宽度", "description": "进度弧的粗细", "value_type": "number", "minimum": 1, "maximum": 60, "unit": "px", "aliases": [ "进度条宽度" ], "panel": false } ] }, "chart-dataset", "chart-encode-item" ], "event_groups": [ "dom-events", "chart-events" ], "rows_path": "props.option.dataset.source", "data_source": true, "schema": { "type": "gauge-chart", "name": "仪表盘", "layout": { "x": 0, "y": 0, "width": 320, "height": 280 }, "props": { "option": { "title": { "text": "销售目标完成率", "top": 8, "left": "center", "textStyle": { "fontSize": 16 } }, "tooltip": { "trigger": "item" }, "dataset": { "source": [ { "name": "销售目标完成率", "value": 72 } ] }, "series": [ { "type": "gauge", "min": 0, "max": 100, "startAngle": 210, "endAngle": -30, "center": [ "50%", "58%" ], "radius": "80%", "progress": { "show": true, "width": 12, "itemStyle": { "color": "#409eff" } }, "axisLine": { "lineStyle": { "width": 12 } }, "axisTick": { "show": false }, "splitLine": { "length": 8, "lineStyle": { "width": 1 } }, "axisLabel": { "distance": 16 }, "title": { "offsetCenter": [ 0, "72%" ], "fontSize": 13 }, "detail": { "valueAnimation": true, "offsetCenter": [ 0, "46%" ], "fontSize": 28, "formatter": "{value}%" }, "encode": { "itemName": "name", "value": "value" } } ] } }, "style": null, "events": [] } }