feat:添加图表数据

This commit is contained in:
2026-10-01 09:25:01 -07:00
parent dd2fd8bcde
commit ce575ec6a0
32 changed files with 108 additions and 48 deletions
+1
View File
@@ -42,6 +42,7 @@
}
]
},
"chart-dataset",
"chart-encode-xy"
],
"eventOptions": [
+1
View File
@@ -118,6 +118,7 @@
}
]
},
"chart-dataset",
"chart-encode-xy"
],
"eventOptions": [
@@ -143,6 +143,7 @@
}
]
},
"chart-dataset",
{
"key": "bar-line-data",
"label": "数据映射",
+22
View File
@@ -293,6 +293,28 @@
}
]
},
{
"key": "chart-dataset",
"label": "图表数据",
"description": "图表画面上展示的数据,柱子高度、折线点、扇区大小等数值都来自这里",
"fields": [
{
"path": "props.option.dataset.source",
"label": "数据",
"description": "图表展示的数据表,每个对象是一行(一个类目或数据项),键是列名,列名与数据映射字段对应;修改时提交完整的新数组:保留不需要修改的行和列,只改用户提到的数值或行;新增列或改列名时同时修改数据映射字段",
"value_type": "array",
"item_type": "object",
"aliases": [
"数据",
"图表数据",
"数据值",
"示例数据",
"数据集"
],
"panel": false
}
]
},
{
"key": "chart-encode-xy",
"label": "数据映射",
@@ -69,6 +69,7 @@
}
]
},
"chart-dataset",
"chart-encode-item"
],
"eventOptions": [
+1
View File
@@ -82,6 +82,7 @@
}
]
},
"chart-dataset",
"chart-encode-item"
],
"eventOptions": [
+1
View File
@@ -168,6 +168,7 @@
}
]
},
"chart-dataset",
"chart-encode-xy"
],
"eventOptions": [
@@ -137,6 +137,7 @@
}
]
},
"chart-dataset",
"chart-encode-xy",
{
"key": "heatmap-value",
+1
View File
@@ -24,6 +24,7 @@
"chart-grid",
"chart-axis",
"chart-line-series",
"chart-dataset",
"chart-encode-xy"
],
"eventOptions": [
@@ -124,6 +124,7 @@
}
]
},
"chart-dataset",
"chart-encode-xy"
],
"eventOptions": [
+1
View File
@@ -23,6 +23,7 @@
"chart-legend",
"chart-palette",
"chart-item-series",
"chart-dataset",
"chart-encode-item"
],
"eventOptions": [
@@ -65,6 +65,7 @@
}
]
},
"chart-dataset",
"chart-encode-item"
],
"eventOptions": [
+1
View File
@@ -102,6 +102,7 @@
}
]
},
"chart-dataset",
{
"key": "radar-data",
"label": "数据映射",
+1
View File
@@ -43,6 +43,7 @@
}
]
},
"chart-dataset",
"chart-encode-item"
],
"eventOptions": [
+1
View File
@@ -64,6 +64,7 @@
}
]
},
"chart-dataset",
"chart-encode-item"
],
"eventOptions": [
@@ -67,6 +67,7 @@
}
]
},
"chart-dataset",
"chart-encode-xy"
],
"eventOptions": [
@@ -89,6 +89,7 @@
}
]
},
"chart-dataset",
{
"key": "stacked-data",
"label": "数据映射",