@worm-print-platform/echarts 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -21
- package/dist/bind.d.ts +1 -1
- package/dist/browser/executor.iife.d.ts +1 -1
- package/dist/browser-bundle.d.ts +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/constants.d.ts +5 -1
- package/dist/defaults.d.ts +1 -1
- package/dist/echarts.d.ts +1 -1
- package/dist/echarts.js +38 -14
- package/dist/executor.iife.global.d.ts +1 -1
- package/dist/executor.iife.global.js +29 -17
- package/dist/i18n/en-US.json +153 -0
- package/dist/i18n/th-TH.json +153 -0
- package/dist/i18n/zh-CN.json +153 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/kinds.d.ts +5 -1
- package/dist/kit.cjs +2 -2
- package/dist/kit.d.ts +1 -1
- package/dist/kit.js +2 -2
- package/dist/label.d.ts +3 -1
- package/dist/marketplace.d.ts +1 -1
- package/dist/marketplace.js +650 -136
- package/dist/node.cjs +46 -19
- package/dist/node.d.ts +1 -1
- package/dist/node.js +46 -19
- package/dist/normalize.d.ts +1 -1
- package/dist/option-utils.d.ts +1 -1
- package/dist/plugin-8R67OtBD.cjs +6 -0
- package/dist/plugin-CKyaiHYF.js +960 -0
- package/dist/plugin.d.ts +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/test-setup.d.ts +7 -0
- package/dist/type-augmentation.d.ts +1 -1
- package/dist/ui.cjs +650 -136
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +650 -136
- package/dist/units.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +29 -3
- package/dist/plugin-BWmSrZ3m.cjs +0 -6
- package/dist/plugin-Dvcrcg_Z.js +0 -933
package/dist/ui.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @worm-print-platform/echarts v1.6.
|
|
2
|
+
* @worm-print-platform/echarts v1.6.2
|
|
3
3
|
* Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
|
|
4
4
|
* SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
|
|
5
5
|
* SPDX-License-Identifier: MIT
|
|
@@ -41,11 +41,480 @@ __export(ui_exports, {
|
|
|
41
41
|
uninstallChartCommonUI: () => uninstallChartCommonUI
|
|
42
42
|
});
|
|
43
43
|
module.exports = __toCommonJS(ui_exports);
|
|
44
|
+
var import_i18n2 = require("@worm-print-platform/core/i18n");
|
|
45
|
+
|
|
46
|
+
// src/i18n/zh-CN.json
|
|
47
|
+
var zh_CN_default = {
|
|
48
|
+
echarts: {
|
|
49
|
+
"echarts.panel.chart": "\u56FE\u8868",
|
|
50
|
+
"echarts.panel.config": "\u914D\u7F6E",
|
|
51
|
+
"echarts.panel.dataSource": "\u6570\u636E\u6E90",
|
|
52
|
+
"echarts.panel.category": "\u7C7B\u76EE",
|
|
53
|
+
"echarts.panel.value": "\u6570\u503C",
|
|
54
|
+
"echarts.panel.series": "\u7CFB\u5217",
|
|
55
|
+
"echarts.panel.chartType.bar": "\u67F1\u72B6",
|
|
56
|
+
"echarts.panel.chartType.barH": "\u6761\u5F62",
|
|
57
|
+
"echarts.panel.chartType.line": "\u6298\u7EBF",
|
|
58
|
+
"echarts.panel.chartType.area": "\u9762\u79EF",
|
|
59
|
+
"echarts.panel.chartType.pie": "\u997C",
|
|
60
|
+
"echarts.panel.chartType.doughnut": "\u73AF\u5F62",
|
|
61
|
+
"echarts.panel.chartType.scatter": "\u6563\u70B9",
|
|
62
|
+
"echarts.panel.chartType.radar": "\u96F7\u8FBE",
|
|
63
|
+
"echarts.panel.chartType.funnel": "\u6F0F\u6597",
|
|
64
|
+
"echarts.panel.chartType.gauge": "\u4EEA\u8868",
|
|
65
|
+
"echarts.panel.dataLabel": "\u6570\u636E\u6807\u7B7E",
|
|
66
|
+
"echarts.panel.valueLabel": "\u6570\u503C\u6807\u7B7E",
|
|
67
|
+
"echarts.panel.hint.dataBinding": "\u6570\u636E\u7531\u6A21\u677F\u7ED1\u5B9A\u9636\u6BB5\u6CE8\u5165\uFF1Aseries/xAxis \u7684 data \u4FDD\u7559 `$data` \u5360\u4F4D\u5373\u53EF\uFF1B\u590D\u6742\u6837\u5F0F\u53EF\u5728\u6A21\u677F JSON \u4E2D\u624B\u5199 chartOption\u3002",
|
|
68
|
+
"echarts.panel.field.dimension": "\u7EF4\u5EA6\u5B57\u6BB5\uFF08\u6BCF\u4E2A\u5B57\u6BB5\u4E00\u4E2A\u7EF4\u5EA6\uFF09",
|
|
69
|
+
"echarts.panel.field.value": "\u6570\u503C\u5B57\u6BB5",
|
|
70
|
+
"echarts.panel.field.valueMulti": "\u6570\u503C\u5B57\u6BB5\uFF08\u591A\u503C\u591A\u7CFB\u5217\uFF09",
|
|
71
|
+
"echarts.panel.default": "\uFF08\u9ED8\u8BA4\uFF09",
|
|
72
|
+
"echarts.panel.current": "\uFF08\u5F53\u524D\uFF09",
|
|
73
|
+
"echarts.panel.defaultFirstArray": "\uFF08\u9ED8\u8BA4\uFF1A\u9876\u5C42\u7B2C\u4E00\u4E2A\u6570\u7EC4\uFF09",
|
|
74
|
+
"echarts.panel.error.invalidOption": "\u56FE\u8868 option \u975E\u6CD5\uFF1A\u9700\u8981\u5BF9\u8C61",
|
|
75
|
+
"echarts.panel.chartFallback": "\u56FE\u8868",
|
|
76
|
+
"echarts.panel.optionDefault": "\uFF08\u9ED8\u8BA4\uFF09",
|
|
77
|
+
"echarts.panel.overflow.default": "\u9ED8\u8BA4",
|
|
78
|
+
"echarts.panel.overflow.none": "\u4E0D\u5904\u7406\uFF08\u663E\u793A\u5B8C\u6574\uFF09",
|
|
79
|
+
"echarts.panel.overflow.truncate": "\u622A\u65AD",
|
|
80
|
+
"echarts.panel.overflow.break": "\u6362\u884C",
|
|
81
|
+
"echarts.panel.fontWeight.default": "\u9ED8\u8BA4",
|
|
82
|
+
"echarts.panel.fontWeight.normal": "\u5E38\u89C4",
|
|
83
|
+
"echarts.panel.fontWeight.bold": "\u52A0\u7C97",
|
|
84
|
+
"echarts.panel.label.distance": "\u8DDD\u79BB",
|
|
85
|
+
"echarts.panel.label.rotate": "\u65CB\u8F6C\uFF08\u5EA6\uFF09",
|
|
86
|
+
"echarts.panel.label.fontSize": "\u5B57\u53F7",
|
|
87
|
+
"echarts.panel.label.fontWeight": "\u5B57\u91CD",
|
|
88
|
+
"echarts.panel.label.color": "\u6587\u5B57\u989C\u8272",
|
|
89
|
+
"echarts.panel.label.backgroundColor": "\u80CC\u666F\u8272",
|
|
90
|
+
"echarts.panel.label.borderColor": "\u8FB9\u6846\u8272",
|
|
91
|
+
"echarts.panel.label.borderWidth": "\u8FB9\u6846\u5BBD\u5EA6",
|
|
92
|
+
"echarts.panel.label.borderRadius": "\u5706\u89D2",
|
|
93
|
+
"echarts.panel.label.padding": "\u5185\u8FB9\u8DDD",
|
|
94
|
+
"echarts.panel.label.show": "\u663E\u793A\u6570\u636E\u6807\u7B7E",
|
|
95
|
+
"echarts.panel.label.content": "\u5185\u5BB9",
|
|
96
|
+
"echarts.panel.label.formatterTitle": "\u6570\u636E\u6807\u7B7E\u5185\u5BB9",
|
|
97
|
+
"echarts.panel.label.formatterCustom": "\u81EA\u5B9A\u4E49 / \u9ED8\u8BA4",
|
|
98
|
+
"echarts.panel.label.formatterPlaceholder": "\u5982 {b}: {c}",
|
|
99
|
+
"echarts.panel.label.overflow": "\u6EA2\u51FA\u5904\u7406",
|
|
100
|
+
"echarts.panel.label.position": "\u4F4D\u7F6E",
|
|
101
|
+
"echarts.panel.label.positionTitle": "\u6807\u7B7E\u4F4D\u7F6E",
|
|
102
|
+
"echarts.panel.label.positionDefault": "\u9ED8\u8BA4",
|
|
103
|
+
"echarts.panel.label.offset": "\u504F\u79FB X / Y",
|
|
104
|
+
"echarts.panel.label.style": "\u6837\u5F0F",
|
|
105
|
+
"echarts.panel.labelLine.fontWeight": "\u5B57\u91CD",
|
|
106
|
+
"echarts.panel.labelLine": "\u5F15\u5BFC\u7EBF",
|
|
107
|
+
"echarts.panel.labelLine.show": "\u663E\u793A\u5F15\u5BFC\u7EBF",
|
|
108
|
+
"echarts.panel.labelLine.length": "\u5F15\u5BFC\u7EBF\u957F\u5EA6",
|
|
109
|
+
"echarts.panel.labelLine.length2": "\u7B2C\u4E8C\u6BB5\u957F\u5EA6",
|
|
110
|
+
"echarts.panel.labelLine.smooth": "\u5E73\u6ED1\u5F15\u5BFC\u7EBF",
|
|
111
|
+
"echarts.panel.dataSourceTitle": "\u6570\u636E\u6E90",
|
|
112
|
+
"echarts.panel.categoryField": "\u7C7B\u76EE\u5B57\u6BB5",
|
|
113
|
+
"echarts.panel.removeField": "\u5220\u9664\u8BE5\u5B57\u6BB5",
|
|
114
|
+
"echarts.panel.addField": "+ \u6DFB\u52A0\u5B57\u6BB5",
|
|
115
|
+
"echarts.panel.seriesField": "\u7CFB\u5217\u62C6\u5206\u5B57\u6BB5",
|
|
116
|
+
"echarts.panel.seriesFieldHint": "\u53EF\u9009\uFF0C\u5982 region\uFF08\u6309\u503C\u62C6\u6210\u591A\u7CFB\u5217\uFF09",
|
|
117
|
+
"echarts.panel.bubbleSize": "\u6C14\u6CE1\u5927\u5C0F",
|
|
118
|
+
"echarts.panel.title": "\u56FE\u8868\u6807\u9898",
|
|
119
|
+
"echarts.panel.titleHint": "\u7559\u7A7A\u4E0D\u663E\u793A\u6807\u9898",
|
|
120
|
+
"echarts.panel.legend": "\u663E\u793A\u56FE\u4F8B",
|
|
121
|
+
"echarts.panel.palette": "\u914D\u8272",
|
|
122
|
+
"echarts.palette.default": "\u9ED8\u8BA4\u84DD",
|
|
123
|
+
"echarts.palette.fresh": "\u6E05\u65B0\u7EFF",
|
|
124
|
+
"echarts.palette.warm": "\u6696\u6A59\u7EA2",
|
|
125
|
+
"echarts.palette.purple": "\u7D2B\u7070",
|
|
126
|
+
"echarts.panel.stack": "\u5806\u53E0\u663E\u793A",
|
|
127
|
+
"echarts.panel.innerRadius": "\u5185\u5F84\uFF08%\uFF09",
|
|
128
|
+
"echarts.panel.paddingTRBL": "\u5185\u8FB9\u8DDD \u4E0A/\u53F3/\u4E0B/\u5DE6 (%)",
|
|
129
|
+
"echarts.panel.paddingTop": "\u4E0A\u8FB9\u8DDD",
|
|
130
|
+
"echarts.panel.paddingRight": "\u53F3\u8FB9\u8DDD\uFF08\u7559\u5916\u7F6E\u6807\u7B7E\uFF09",
|
|
131
|
+
"echarts.panel.paddingBottom": "\u4E0B\u8FB9\u8DDD",
|
|
132
|
+
"echarts.panel.paddingLeft": "\u5DE6\u8FB9\u8DDD",
|
|
133
|
+
"echarts.panel.radius": "\u534A\u5F84\uFF08%\uFF09",
|
|
134
|
+
"echarts.panel.minMax": "\u6700\u5C0F / \u6700\u5927\u503C",
|
|
135
|
+
"echarts.panel.group": "\u56FE\u8868",
|
|
136
|
+
"echarts.series.typeNames.bar": "\u67F1\u72B6\u56FE",
|
|
137
|
+
"echarts.series.typeNames.barH": "\u6761\u5F62\u56FE",
|
|
138
|
+
"echarts.series.typeNames.line": "\u6298\u7EBF\u56FE",
|
|
139
|
+
"echarts.series.typeNames.area": "\u9762\u79EF\u56FE",
|
|
140
|
+
"echarts.series.typeNames.pie": "\u997C\u56FE",
|
|
141
|
+
"echarts.series.typeNames.doughnut": "\u73AF\u5F62\u56FE",
|
|
142
|
+
"echarts.series.typeNames.scatter": "\u6563\u70B9\u56FE",
|
|
143
|
+
"echarts.series.typeNames.radar": "\u96F7\u8FBE\u56FE",
|
|
144
|
+
"echarts.series.typeNames.funnel": "\u6F0F\u6597\u56FE",
|
|
145
|
+
"echarts.series.typeNames.gauge": "\u4EEA\u8868\u76D8",
|
|
146
|
+
"echarts.label.formatter.value": "\u6570\u503C",
|
|
147
|
+
"echarts.label.formatter.nameValue": "\u540D\u79F0: \u6570\u503C",
|
|
148
|
+
"echarts.label.formatter.name": "\u540D\u79F0",
|
|
149
|
+
"echarts.label.formatter.percent": "\u767E\u5206\u6BD4",
|
|
150
|
+
"echarts.label.position.bar.top": "\u9876\u90E8",
|
|
151
|
+
"echarts.label.position.bar.inside": "\u5185\u90E8",
|
|
152
|
+
"echarts.label.position.bar.insideTop": "\u5185\u90E8\u9876\u7AEF",
|
|
153
|
+
"echarts.label.position.bar.bottom": "\u5E95\u90E8",
|
|
154
|
+
"echarts.label.position.bar.insideBottom": "\u5185\u90E8\u5E95\u7AEF",
|
|
155
|
+
"echarts.label.position.bar.right": "\u53F3\u4FA7",
|
|
156
|
+
"echarts.label.position.bar.left": "\u5DE6\u4FA7",
|
|
157
|
+
"echarts.label.position.bar.middle": "\u5C45\u4E2D",
|
|
158
|
+
"echarts.label.position.line.top": "\u9876\u90E8",
|
|
159
|
+
"echarts.label.position.line.bottom": "\u5E95\u90E8",
|
|
160
|
+
"echarts.label.position.line.inside": "\u5185\u90E8",
|
|
161
|
+
"echarts.label.position.line.left": "\u5DE6\u4FA7",
|
|
162
|
+
"echarts.label.position.line.right": "\u53F3\u4FA7",
|
|
163
|
+
"echarts.label.position.pie.outside": "\u5916\u4FA7",
|
|
164
|
+
"echarts.label.position.pie.inside": "\u5185\u90E8",
|
|
165
|
+
"echarts.label.position.pie.center": "\u4E2D\u5FC3",
|
|
166
|
+
"echarts.label.position.scatter.top": "\u9876\u90E8",
|
|
167
|
+
"echarts.label.position.scatter.bottom": "\u5E95\u90E8",
|
|
168
|
+
"echarts.label.position.scatter.left": "\u5DE6\u4FA7",
|
|
169
|
+
"echarts.label.position.scatter.right": "\u53F3\u4FA7",
|
|
170
|
+
"echarts.label.position.scatter.inside": "\u5185\u90E8",
|
|
171
|
+
"echarts.label.position.radar.top": "\u9876\u90E8",
|
|
172
|
+
"echarts.label.position.radar.bottom": "\u5E95\u90E8",
|
|
173
|
+
"echarts.label.position.radar.left": "\u5DE6\u4FA7",
|
|
174
|
+
"echarts.label.position.radar.right": "\u53F3\u4FA7",
|
|
175
|
+
"echarts.label.position.radar.inside": "\u5185\u90E8",
|
|
176
|
+
"echarts.label.position.funnel.outer": "\u5916\u4FA7",
|
|
177
|
+
"echarts.label.position.funnel.inner": "\u5185\u90E8",
|
|
178
|
+
"echarts.label.position.funnel.left": "\u5DE6\u4FA7",
|
|
179
|
+
"echarts.label.position.funnel.right": "\u53F3\u4FA7",
|
|
180
|
+
"echarts.label.position.funnel.top": "\u9876\u90E8",
|
|
181
|
+
"echarts.label.position.funnel.bottom": "\u5E95\u90E8",
|
|
182
|
+
"echarts.meta.chartOption": "\u56FE\u8868 option",
|
|
183
|
+
"echarts.meta.dataSource": "\u6570\u636E\u6E90",
|
|
184
|
+
"echarts.meta.categoryField": "\u7C7B\u76EE\u5B57\u6BB5",
|
|
185
|
+
"echarts.meta.valueFields": "\u6570\u503C\u5B57\u6BB5",
|
|
186
|
+
"echarts.meta.seriesField": "\u7CFB\u5217\u62C6\u5206\u5B57\u6BB5",
|
|
187
|
+
"echarts.meta.bubbleSize": "\u6C14\u6CE1\u5927\u5C0F",
|
|
188
|
+
"echarts.notes.bar": "\u67F1\u72B6\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6BCF\u5B57\u6BB5\u4E00\u4E2A series\uFF1Bseries[].data \u5199 $data \u5360\u4F4D\uFF1B\u56FA\u5B9A\u9AD8\uFF0C\u7981\u6B62 autoHeight",
|
|
189
|
+
"echarts.notes.barH": "\u6A2A\u5411\u6761\u5F62\u56FE\uFF1AxAxis \u4E3A\u6570\u503C\u3001yAxis \u4E3A\u7C7B\u76EE\uFF1B\u7C7B\u76EE\u5199 yAxis.data \u7684 $data \u5360\u4F4D",
|
|
190
|
+
"echarts.notes.line": "\u6298\u7EBF\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF1B\u4E0D\u5199 areaStyle",
|
|
191
|
+
"echarts.notes.area": "\u9762\u79EF\u56FE\uFF1A\u6298\u7EBF + series[].areaStyle\uFF1B\u5176\u4F59\u540C\u6298\u7EBF\u56FE",
|
|
192
|
+
"echarts.notes.pie": "\u997C\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u751F\u6210 { name, value }\uFF1B\u53EA\u9700\u4E00\u4E2A\u6570\u503C\u5B57\u6BB5",
|
|
193
|
+
"echarts.notes.doughnut": "\u73AF\u5F62\u56FE\uFF1A\u997C\u56FE + radius:[\u5185\u5F84,\u5916\u5F84]\uFF1B\u5185\u5F84\u7531\u9762\u677F\u914D\u7F6E",
|
|
194
|
+
"echarts.notes.scatter": "\u6563\u70B9\u56FE\uFF1A\u7C7B\u76EE\u5B57\u6BB5\u4F5C x\u3001\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C y\uFF1BchartBubble \u5F00\u542F\u65F6\u7528\u7B2C\u4E8C\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u70B9\u5927\u5C0F",
|
|
195
|
+
"echarts.notes.radar": "\u96F7\u8FBE\u56FE\uFF1A\u6BCF\u4E2A\u6570\u503C\u5B57\u6BB5\u662F\u4E00\u4E2A\u7EF4\u5EA6\uFF08radar.indicator\uFF09\uFF0C\u6BCF\u884C\u6570\u636E\u662F\u4E00\u4E2A\u7CFB\u5217\uFF08\u7C7B\u76EE\u5B57\u6BB5\u4F5C\u7CFB\u5217\u540D\uFF09\uFF1B\u534A\u5F84\u7531\u9762\u677F\u5199 radar.radius\uFF08%\uFF0C\u9ED8\u8BA4 75\uFF09",
|
|
196
|
+
"echarts.notes.funnel": "\u6F0F\u6597\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6309\u6570\u503C\u964D\u5E8F\uFF1B\u56DB\u8FB9\u5185\u8FB9\u8DDD\u7531\u9762\u677F\u5199 series.left/right/top/bottom\uFF08%\uFF0C\u53F3\u4FA7\u9700\u7559\u5916\u7F6E\u6807\u7B7E\u7A7A\u95F4\uFF09",
|
|
197
|
+
"echarts.notes.gauge": "\u4EEA\u8868\u76D8\uFF1A\u53D6\u9996\u884C\u6570\u636E\u7684\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u6307\u9488\u503C\uFF1Bmin/max \u7531\u9762\u677F\u5199\u5165 series[0].min/max"
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// src/i18n/en-US.json
|
|
202
|
+
var en_US_default = {
|
|
203
|
+
echarts: {
|
|
204
|
+
"echarts.panel.chart": "Chart",
|
|
205
|
+
"echarts.panel.config": "Config",
|
|
206
|
+
"echarts.panel.dataSource": "Data source",
|
|
207
|
+
"echarts.panel.category": "Category",
|
|
208
|
+
"echarts.panel.value": "Value",
|
|
209
|
+
"echarts.panel.series": "Series",
|
|
210
|
+
"echarts.panel.chartType.bar": "Bar",
|
|
211
|
+
"echarts.panel.chartType.barH": "Horizontal bar",
|
|
212
|
+
"echarts.panel.chartType.line": "Line",
|
|
213
|
+
"echarts.panel.chartType.area": "Area",
|
|
214
|
+
"echarts.panel.chartType.pie": "Pie",
|
|
215
|
+
"echarts.panel.chartType.doughnut": "Doughnut",
|
|
216
|
+
"echarts.panel.chartType.scatter": "Scatter",
|
|
217
|
+
"echarts.panel.chartType.radar": "Radar",
|
|
218
|
+
"echarts.panel.chartType.funnel": "Funnel",
|
|
219
|
+
"echarts.panel.chartType.gauge": "Gauge",
|
|
220
|
+
"echarts.panel.dataLabel": "Data label",
|
|
221
|
+
"echarts.panel.valueLabel": "Value label",
|
|
222
|
+
"echarts.panel.hint.dataBinding": "Data is injected at template binding; keep the `$data` placeholder in series/xAxis data; advanced styles can be written in chartOption in the template JSON.",
|
|
223
|
+
"echarts.panel.field.dimension": "Dimension fields (one per dimension)",
|
|
224
|
+
"echarts.panel.field.value": "Value fields",
|
|
225
|
+
"echarts.panel.field.valueMulti": "Value fields (multiple values, multiple series)",
|
|
226
|
+
"echarts.panel.default": "(default)",
|
|
227
|
+
"echarts.panel.current": "(current)",
|
|
228
|
+
"echarts.panel.defaultFirstArray": "(default: first top-level array)",
|
|
229
|
+
"echarts.panel.error.invalidOption": "Invalid chart option: expected an object",
|
|
230
|
+
"echarts.panel.chartFallback": "Chart",
|
|
231
|
+
"echarts.panel.optionDefault": "(default)",
|
|
232
|
+
"echarts.panel.overflow.default": "Default",
|
|
233
|
+
"echarts.panel.overflow.none": "None (show full)",
|
|
234
|
+
"echarts.panel.overflow.truncate": "Truncate",
|
|
235
|
+
"echarts.panel.overflow.break": "Wrap",
|
|
236
|
+
"echarts.panel.fontWeight.default": "Default",
|
|
237
|
+
"echarts.panel.fontWeight.normal": "Regular",
|
|
238
|
+
"echarts.panel.fontWeight.bold": "Bold",
|
|
239
|
+
"echarts.panel.label.distance": "Distance",
|
|
240
|
+
"echarts.panel.label.rotate": "Rotation (deg)",
|
|
241
|
+
"echarts.panel.label.fontSize": "Font size",
|
|
242
|
+
"echarts.panel.label.fontWeight": "Font weight",
|
|
243
|
+
"echarts.panel.label.color": "Text color",
|
|
244
|
+
"echarts.panel.label.backgroundColor": "Background color",
|
|
245
|
+
"echarts.panel.label.borderColor": "Border color",
|
|
246
|
+
"echarts.panel.label.borderWidth": "Border width",
|
|
247
|
+
"echarts.panel.label.borderRadius": "Radius",
|
|
248
|
+
"echarts.panel.label.padding": "Padding",
|
|
249
|
+
"echarts.panel.label.show": "Show data labels",
|
|
250
|
+
"echarts.panel.label.content": "Content",
|
|
251
|
+
"echarts.panel.label.formatterTitle": "Data label content",
|
|
252
|
+
"echarts.panel.label.formatterCustom": "Custom / Default",
|
|
253
|
+
"echarts.panel.label.formatterPlaceholder": "e.g. {b}: {c}",
|
|
254
|
+
"echarts.panel.label.overflow": "Overflow",
|
|
255
|
+
"echarts.panel.label.position": "Position",
|
|
256
|
+
"echarts.panel.label.positionTitle": "Label position",
|
|
257
|
+
"echarts.panel.label.positionDefault": "Default",
|
|
258
|
+
"echarts.panel.label.offset": "Offset X / Y",
|
|
259
|
+
"echarts.panel.label.style": "Style",
|
|
260
|
+
"echarts.panel.labelLine.fontWeight": "Font weight",
|
|
261
|
+
"echarts.panel.labelLine": "Label line",
|
|
262
|
+
"echarts.panel.labelLine.show": "Show label line",
|
|
263
|
+
"echarts.panel.labelLine.length": "Label line length",
|
|
264
|
+
"echarts.panel.labelLine.length2": "Second segment length",
|
|
265
|
+
"echarts.panel.labelLine.smooth": "Smooth label line",
|
|
266
|
+
"echarts.panel.dataSourceTitle": "Data source",
|
|
267
|
+
"echarts.panel.categoryField": "Category field",
|
|
268
|
+
"echarts.panel.removeField": "Remove this field",
|
|
269
|
+
"echarts.panel.addField": "+ Add field",
|
|
270
|
+
"echarts.panel.seriesField": "Series split field",
|
|
271
|
+
"echarts.panel.seriesFieldHint": "Optional, e.g. region (splits into series by value)",
|
|
272
|
+
"echarts.panel.bubbleSize": "Bubble size",
|
|
273
|
+
"echarts.panel.title": "Chart title",
|
|
274
|
+
"echarts.panel.titleHint": "Leave empty to hide the title",
|
|
275
|
+
"echarts.panel.legend": "Show legend",
|
|
276
|
+
"echarts.panel.palette": "Color palette",
|
|
277
|
+
"echarts.palette.default": "Default blue",
|
|
278
|
+
"echarts.palette.fresh": "Fresh green",
|
|
279
|
+
"echarts.palette.warm": "Warm orange-red",
|
|
280
|
+
"echarts.palette.purple": "Purple grey",
|
|
281
|
+
"echarts.panel.stack": "Stacked",
|
|
282
|
+
"echarts.panel.innerRadius": "Inner radius (%)",
|
|
283
|
+
"echarts.panel.paddingTRBL": "Padding top/right/bottom/left (%)",
|
|
284
|
+
"echarts.panel.paddingTop": "Top padding",
|
|
285
|
+
"echarts.panel.paddingRight": "Right padding (for outer labels)",
|
|
286
|
+
"echarts.panel.paddingBottom": "Bottom padding",
|
|
287
|
+
"echarts.panel.paddingLeft": "Left padding",
|
|
288
|
+
"echarts.panel.radius": "Radius (%)",
|
|
289
|
+
"echarts.panel.minMax": "Min / max",
|
|
290
|
+
"echarts.panel.group": "Chart",
|
|
291
|
+
"echarts.series.typeNames.bar": "Bar chart",
|
|
292
|
+
"echarts.series.typeNames.barH": "Horizontal bar chart",
|
|
293
|
+
"echarts.series.typeNames.line": "Line chart",
|
|
294
|
+
"echarts.series.typeNames.area": "Area chart",
|
|
295
|
+
"echarts.series.typeNames.pie": "Pie chart",
|
|
296
|
+
"echarts.series.typeNames.doughnut": "Doughnut chart",
|
|
297
|
+
"echarts.series.typeNames.scatter": "Scatter chart",
|
|
298
|
+
"echarts.series.typeNames.radar": "Radar chart",
|
|
299
|
+
"echarts.series.typeNames.funnel": "Funnel chart",
|
|
300
|
+
"echarts.series.typeNames.gauge": "Gauge chart",
|
|
301
|
+
"echarts.label.formatter.value": "Value",
|
|
302
|
+
"echarts.label.formatter.nameValue": "Name: Value",
|
|
303
|
+
"echarts.label.formatter.name": "Name",
|
|
304
|
+
"echarts.label.formatter.percent": "Percentage",
|
|
305
|
+
"echarts.label.position.bar.top": "Top",
|
|
306
|
+
"echarts.label.position.bar.inside": "Inside",
|
|
307
|
+
"echarts.label.position.bar.insideTop": "Inside top",
|
|
308
|
+
"echarts.label.position.bar.bottom": "Bottom",
|
|
309
|
+
"echarts.label.position.bar.insideBottom": "Inside bottom",
|
|
310
|
+
"echarts.label.position.bar.right": "Right",
|
|
311
|
+
"echarts.label.position.bar.left": "Left",
|
|
312
|
+
"echarts.label.position.bar.middle": "Center",
|
|
313
|
+
"echarts.label.position.line.top": "Top",
|
|
314
|
+
"echarts.label.position.line.bottom": "Bottom",
|
|
315
|
+
"echarts.label.position.line.inside": "Inside",
|
|
316
|
+
"echarts.label.position.line.left": "Left",
|
|
317
|
+
"echarts.label.position.line.right": "Right",
|
|
318
|
+
"echarts.label.position.pie.outside": "Outside",
|
|
319
|
+
"echarts.label.position.pie.inside": "Inside",
|
|
320
|
+
"echarts.label.position.pie.center": "Center",
|
|
321
|
+
"echarts.label.position.scatter.top": "Top",
|
|
322
|
+
"echarts.label.position.scatter.bottom": "Bottom",
|
|
323
|
+
"echarts.label.position.scatter.left": "Left",
|
|
324
|
+
"echarts.label.position.scatter.right": "Right",
|
|
325
|
+
"echarts.label.position.scatter.inside": "Inside",
|
|
326
|
+
"echarts.label.position.radar.top": "Top",
|
|
327
|
+
"echarts.label.position.radar.bottom": "Bottom",
|
|
328
|
+
"echarts.label.position.radar.left": "Left",
|
|
329
|
+
"echarts.label.position.radar.right": "Right",
|
|
330
|
+
"echarts.label.position.radar.inside": "Inside",
|
|
331
|
+
"echarts.label.position.funnel.outer": "Outside",
|
|
332
|
+
"echarts.label.position.funnel.inner": "Inside",
|
|
333
|
+
"echarts.label.position.funnel.left": "Left",
|
|
334
|
+
"echarts.label.position.funnel.right": "Right",
|
|
335
|
+
"echarts.label.position.funnel.top": "Top",
|
|
336
|
+
"echarts.label.position.funnel.bottom": "Bottom",
|
|
337
|
+
"echarts.meta.chartOption": "Chart option",
|
|
338
|
+
"echarts.meta.dataSource": "Data source",
|
|
339
|
+
"echarts.meta.categoryField": "Category field",
|
|
340
|
+
"echarts.meta.valueFields": "Value fields",
|
|
341
|
+
"echarts.meta.seriesField": "Series split field",
|
|
342
|
+
"echarts.meta.bubbleSize": "Bubble size",
|
|
343
|
+
"echarts.notes.bar": "Bar chart: category + multiple value fields, one series per field; write the $data placeholder in series[].data; fixed height, autoHeight is forbidden",
|
|
344
|
+
"echarts.notes.barH": "Horizontal bar: xAxis is the value axis, yAxis is the category axis; write the $data placeholder in yAxis.data for categories",
|
|
345
|
+
"echarts.notes.line": "Line chart: category + multiple value fields; do not write areaStyle",
|
|
346
|
+
"echarts.notes.area": "Area chart: line + series[].areaStyle; otherwise same as the line chart",
|
|
347
|
+
"echarts.notes.pie": "Pie chart: category + the first value field produce { name, value }; only one value field is needed",
|
|
348
|
+
"echarts.notes.doughnut": "Doughnut: pie + radius:[inner, outer]; the inner radius is configured in the panel",
|
|
349
|
+
"echarts.notes.scatter": "Scatter: the category field is x, the first value field is y; when chartBubble is on, the second value field is the point size",
|
|
350
|
+
"echarts.notes.radar": "Radar: each value field is a dimension (radar.indicator), each data row is a series (the category field is the series name); the radius is written by the panel to radar.radius (%, default 75)",
|
|
351
|
+
"echarts.notes.funnel": "Funnel: category + the first value field, sorted descending; the four insets are written by the panel to series.left/right/top/bottom (%, reserve room on the right for outer labels)",
|
|
352
|
+
"echarts.notes.gauge": "Gauge: the first value field of the first data row is the pointer value; min/max are written by the panel to series[0].min/max"
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
// src/i18n/th-TH.json
|
|
357
|
+
var th_TH_default = {
|
|
358
|
+
echarts: {
|
|
359
|
+
"echarts.panel.chart": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
360
|
+
"echarts.panel.config": "\u0E01\u0E32\u0E23\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E04\u0E48\u0E32",
|
|
361
|
+
"echarts.panel.dataSource": "\u0E41\u0E2B\u0E25\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
362
|
+
"echarts.panel.category": "\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48",
|
|
363
|
+
"echarts.panel.value": "\u0E04\u0E48\u0E32",
|
|
364
|
+
"echarts.panel.series": "\u0E0A\u0E38\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
365
|
+
"echarts.panel.chartType.bar": "\u0E41\u0E17\u0E48\u0E07",
|
|
366
|
+
"echarts.panel.chartType.barH": "\u0E41\u0E17\u0E48\u0E07\u0E41\u0E19\u0E27\u0E19\u0E2D\u0E19",
|
|
367
|
+
"echarts.panel.chartType.line": "\u0E40\u0E2A\u0E49\u0E19",
|
|
368
|
+
"echarts.panel.chartType.area": "\u0E1E\u0E37\u0E49\u0E19\u0E17\u0E35\u0E48",
|
|
369
|
+
"echarts.panel.chartType.pie": "\u0E27\u0E07\u0E01\u0E25\u0E21",
|
|
370
|
+
"echarts.panel.chartType.doughnut": "\u0E27\u0E07\u0E01\u0E25\u0E21\u0E27\u0E07\u0E41\u0E2B\u0E27\u0E19",
|
|
371
|
+
"echarts.panel.chartType.scatter": "\u0E08\u0E38\u0E14\u0E01\u0E23\u0E30\u0E08\u0E32\u0E22",
|
|
372
|
+
"echarts.panel.chartType.radar": "\u0E40\u0E23\u0E14\u0E32\u0E23\u0E4C",
|
|
373
|
+
"echarts.panel.chartType.funnel": "\u0E0A\u0E48\u0E2D\u0E07\u0E17\u0E32\u0E07",
|
|
374
|
+
"echarts.panel.chartType.gauge": "\u0E40\u0E01\u0E08\u0E27\u0E31\u0E14",
|
|
375
|
+
"echarts.panel.dataLabel": "\u0E1B\u0E49\u0E32\u0E22\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
376
|
+
"echarts.panel.valueLabel": "\u0E1B\u0E49\u0E32\u0E22\u0E04\u0E48\u0E32",
|
|
377
|
+
"echarts.panel.hint.dataBinding": "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E16\u0E39\u0E01\u0E41\u0E17\u0E23\u0E01\u0E15\u0E2D\u0E19\u0E1C\u0E39\u0E01\u0E40\u0E17\u0E21\u0E40\u0E1E\u0E25\u0E15; \u0E04\u0E07\u0E15\u0E31\u0E27\u0E41\u0E17\u0E19 `$data` \u0E44\u0E27\u0E49\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25 series/xAxis; \u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E35\u0E22\u0E19\u0E2A\u0E44\u0E15\u0E25\u0E4C\u0E02\u0E31\u0E49\u0E19\u0E2A\u0E39\u0E07\u0E43\u0E19 chartOption \u0E02\u0E2D\u0E07 JSON \u0E40\u0E17\u0E21\u0E40\u0E1E\u0E25\u0E15\u0E44\u0E14\u0E49",
|
|
378
|
+
"echarts.panel.field.dimension": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E21\u0E34\u0E15\u0E34 (\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E15\u0E48\u0E2D\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E21\u0E34\u0E15\u0E34)",
|
|
379
|
+
"echarts.panel.field.value": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32",
|
|
380
|
+
"echarts.panel.field.valueMulti": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32 (\u0E2B\u0E25\u0E32\u0E22\u0E04\u0E48\u0E32 \u0E2B\u0E25\u0E32\u0E22\u0E0A\u0E38\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25)",
|
|
381
|
+
"echarts.panel.default": "(\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19)",
|
|
382
|
+
"echarts.panel.current": "(\u0E1B\u0E31\u0E08\u0E08\u0E38\u0E1A\u0E31\u0E19)",
|
|
383
|
+
"echarts.panel.defaultFirstArray": "(\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19: \u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C\u0E23\u0E30\u0E14\u0E31\u0E1A\u0E1A\u0E19\u0E15\u0E31\u0E27\u0E41\u0E23\u0E01)",
|
|
384
|
+
"echarts.panel.error.invalidOption": "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E32\u0E14\u0E27\u0E48\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E47\u0E2D\u0E1A\u0E40\u0E08\u0E01\u0E15\u0E4C",
|
|
385
|
+
"echarts.panel.chartFallback": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
386
|
+
"echarts.panel.optionDefault": "(\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19)",
|
|
387
|
+
"echarts.panel.overflow.default": "\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
388
|
+
"echarts.panel.overflow.none": "\u0E44\u0E21\u0E48\u0E21\u0E35 (\u0E41\u0E2A\u0E14\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14)",
|
|
389
|
+
"echarts.panel.overflow.truncate": "\u0E15\u0E31\u0E14\u0E17\u0E34\u0E49\u0E07",
|
|
390
|
+
"echarts.panel.overflow.break": "\u0E15\u0E31\u0E14\u0E04\u0E33",
|
|
391
|
+
"echarts.panel.fontWeight.default": "\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
392
|
+
"echarts.panel.fontWeight.normal": "\u0E1B\u0E01\u0E15\u0E34",
|
|
393
|
+
"echarts.panel.fontWeight.bold": "\u0E2B\u0E19\u0E32",
|
|
394
|
+
"echarts.panel.label.distance": "\u0E23\u0E30\u0E22\u0E30\u0E2B\u0E48\u0E32\u0E07",
|
|
395
|
+
"echarts.panel.label.rotate": "\u0E01\u0E32\u0E23\u0E2B\u0E21\u0E38\u0E19 (\u0E2D\u0E07\u0E28\u0E32)",
|
|
396
|
+
"echarts.panel.label.fontSize": "\u0E02\u0E19\u0E32\u0E14\u0E1F\u0E2D\u0E19\u0E15\u0E4C",
|
|
397
|
+
"echarts.panel.label.fontWeight": "\u0E19\u0E49\u0E33\u0E2B\u0E19\u0E31\u0E01\u0E1F\u0E2D\u0E19\u0E15\u0E4C",
|
|
398
|
+
"echarts.panel.label.color": "\u0E2A\u0E35\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21",
|
|
399
|
+
"echarts.panel.label.backgroundColor": "\u0E2A\u0E35\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",
|
|
400
|
+
"echarts.panel.label.borderColor": "\u0E2A\u0E35\u0E40\u0E2A\u0E49\u0E19\u0E02\u0E2D\u0E1A",
|
|
401
|
+
"echarts.panel.label.borderWidth": "\u0E04\u0E27\u0E32\u0E21\u0E01\u0E27\u0E49\u0E32\u0E07\u0E40\u0E2A\u0E49\u0E19\u0E02\u0E2D\u0E1A",
|
|
402
|
+
"echarts.panel.label.borderRadius": "\u0E23\u0E31\u0E28\u0E21\u0E35",
|
|
403
|
+
"echarts.panel.label.padding": "\u0E23\u0E30\u0E22\u0E30\u0E20\u0E32\u0E22\u0E43\u0E19",
|
|
404
|
+
"echarts.panel.label.show": "\u0E41\u0E2A\u0E14\u0E07\u0E1B\u0E49\u0E32\u0E22\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
405
|
+
"echarts.panel.label.content": "\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32",
|
|
406
|
+
"echarts.panel.label.formatterTitle": "\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E1B\u0E49\u0E32\u0E22\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
407
|
+
"echarts.panel.label.formatterCustom": "\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07 / \u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
408
|
+
"echarts.panel.label.formatterPlaceholder": "\u0E40\u0E0A\u0E48\u0E19 {b}: {c}",
|
|
409
|
+
"echarts.panel.label.overflow": "\u0E25\u0E49\u0E19",
|
|
410
|
+
"echarts.panel.label.position": "\u0E15\u0E33\u0E41\u0E2B\u0E19\u0E48\u0E07",
|
|
411
|
+
"echarts.panel.label.positionTitle": "\u0E15\u0E33\u0E41\u0E2B\u0E19\u0E48\u0E07\u0E1B\u0E49\u0E32\u0E22",
|
|
412
|
+
"echarts.panel.label.positionDefault": "\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
413
|
+
"echarts.panel.label.offset": "\u0E2D\u0E2D\u0E1F\u0E40\u0E0B\u0E47\u0E15 X / Y",
|
|
414
|
+
"echarts.panel.label.style": "\u0E2A\u0E44\u0E15\u0E25\u0E4C",
|
|
415
|
+
"echarts.panel.labelLine.fontWeight": "\u0E19\u0E49\u0E33\u0E2B\u0E19\u0E31\u0E01\u0E1F\u0E2D\u0E19\u0E15\u0E4C",
|
|
416
|
+
"echarts.panel.labelLine": "\u0E40\u0E2A\u0E49\u0E19\u0E1B\u0E49\u0E32\u0E22",
|
|
417
|
+
"echarts.panel.labelLine.show": "\u0E41\u0E2A\u0E14\u0E07\u0E40\u0E2A\u0E49\u0E19\u0E1B\u0E49\u0E32\u0E22",
|
|
418
|
+
"echarts.panel.labelLine.length": "\u0E04\u0E27\u0E32\u0E21\u0E22\u0E32\u0E27\u0E40\u0E2A\u0E49\u0E19\u0E1B\u0E49\u0E32\u0E22",
|
|
419
|
+
"echarts.panel.labelLine.length2": "\u0E04\u0E27\u0E32\u0E21\u0E22\u0E32\u0E27\u0E17\u0E48\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E2A\u0E2D\u0E07",
|
|
420
|
+
"echarts.panel.labelLine.smooth": "\u0E40\u0E2A\u0E49\u0E19\u0E1B\u0E49\u0E32\u0E22\u0E42\u0E04\u0E49\u0E07",
|
|
421
|
+
"echarts.panel.dataSourceTitle": "\u0E41\u0E2B\u0E25\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
422
|
+
"echarts.panel.categoryField": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48",
|
|
423
|
+
"echarts.panel.removeField": "\u0E25\u0E1A\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E19\u0E35\u0E49",
|
|
424
|
+
"echarts.panel.addField": "+ \u0E40\u0E1E\u0E34\u0E48\u0E21\u0E1F\u0E34\u0E25\u0E14\u0E4C",
|
|
425
|
+
"echarts.panel.seriesField": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E41\u0E22\u0E01\u0E0A\u0E38\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
426
|
+
"echarts.panel.seriesFieldHint": "\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A \u0E40\u0E0A\u0E48\u0E19 region (\u0E41\u0E22\u0E01\u0E40\u0E1B\u0E47\u0E19\u0E0A\u0E38\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E15\u0E32\u0E21\u0E04\u0E48\u0E32)",
|
|
427
|
+
"echarts.panel.bubbleSize": "\u0E02\u0E19\u0E32\u0E14\u0E1F\u0E2D\u0E07",
|
|
428
|
+
"echarts.panel.title": "\u0E0A\u0E37\u0E48\u0E2D\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
429
|
+
"echarts.panel.titleHint": "\u0E40\u0E27\u0E49\u0E19\u0E27\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E0B\u0E48\u0E2D\u0E19\u0E0A\u0E37\u0E48\u0E2D",
|
|
430
|
+
"echarts.panel.legend": "\u0E41\u0E2A\u0E14\u0E07\u0E04\u0E33\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22",
|
|
431
|
+
"echarts.panel.palette": "\u0E0A\u0E38\u0E14\u0E2A\u0E35",
|
|
432
|
+
"echarts.palette.default": "\u0E2A\u0E35\u0E19\u0E49\u0E33\u0E40\u0E07\u0E34\u0E19\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
433
|
+
"echarts.palette.fresh": "\u0E2A\u0E35\u0E40\u0E02\u0E35\u0E22\u0E27\u0E2A\u0E14\u0E0A\u0E37\u0E48\u0E19",
|
|
434
|
+
"echarts.palette.warm": "\u0E2A\u0E35\u0E2A\u0E49\u0E21\u0E41\u0E14\u0E07\u0E2D\u0E1A\u0E2D\u0E38\u0E48\u0E19",
|
|
435
|
+
"echarts.palette.purple": "\u0E2A\u0E35\u0E21\u0E39\u0E1F\u0E40\u0E17\u0E32",
|
|
436
|
+
"echarts.panel.stack": "\u0E0B\u0E49\u0E2D\u0E19\u0E01\u0E31\u0E19",
|
|
437
|
+
"echarts.panel.innerRadius": "\u0E23\u0E31\u0E28\u0E21\u0E35\u0E43\u0E19 (%)",
|
|
438
|
+
"echarts.panel.paddingTRBL": "\u0E23\u0E30\u0E22\u0E30\u0E1A\u0E19/\u0E02\u0E27\u0E32/\u0E25\u0E48\u0E32\u0E07/\u0E0B\u0E49\u0E32\u0E22 (%)",
|
|
439
|
+
"echarts.panel.paddingTop": "\u0E23\u0E30\u0E22\u0E30\u0E1A\u0E19",
|
|
440
|
+
"echarts.panel.paddingRight": "\u0E23\u0E30\u0E22\u0E30\u0E02\u0E27\u0E32 (\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E49\u0E32\u0E22\u0E14\u0E49\u0E32\u0E19\u0E19\u0E2D\u0E01)",
|
|
441
|
+
"echarts.panel.paddingBottom": "\u0E23\u0E30\u0E22\u0E30\u0E25\u0E48\u0E32\u0E07",
|
|
442
|
+
"echarts.panel.paddingLeft": "\u0E23\u0E30\u0E22\u0E30\u0E0B\u0E49\u0E32\u0E22",
|
|
443
|
+
"echarts.panel.radius": "\u0E23\u0E31\u0E28\u0E21\u0E35 (%)",
|
|
444
|
+
"echarts.panel.minMax": "\u0E15\u0E48\u0E33\u0E2A\u0E38\u0E14 / \u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14",
|
|
445
|
+
"echarts.panel.group": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
446
|
+
"echarts.series.typeNames.bar": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E41\u0E17\u0E48\u0E07",
|
|
447
|
+
"echarts.series.typeNames.barH": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E41\u0E17\u0E48\u0E07\u0E41\u0E19\u0E27\u0E19\u0E2D\u0E19",
|
|
448
|
+
"echarts.series.typeNames.line": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E2A\u0E49\u0E19",
|
|
449
|
+
"echarts.series.typeNames.area": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E1E\u0E37\u0E49\u0E19\u0E17\u0E35\u0E48",
|
|
450
|
+
"echarts.series.typeNames.pie": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E27\u0E07\u0E01\u0E25\u0E21",
|
|
451
|
+
"echarts.series.typeNames.doughnut": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E27\u0E07\u0E01\u0E25\u0E21\u0E27\u0E07\u0E41\u0E2B\u0E27\u0E19",
|
|
452
|
+
"echarts.series.typeNames.scatter": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E01\u0E23\u0E30\u0E08\u0E32\u0E22",
|
|
453
|
+
"echarts.series.typeNames.radar": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E23\u0E14\u0E32\u0E23\u0E4C",
|
|
454
|
+
"echarts.series.typeNames.funnel": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E0A\u0E48\u0E2D\u0E07\u0E17\u0E32\u0E07",
|
|
455
|
+
"echarts.series.typeNames.gauge": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E01\u0E08\u0E27\u0E31\u0E14",
|
|
456
|
+
"echarts.label.formatter.value": "\u0E04\u0E48\u0E32",
|
|
457
|
+
"echarts.label.formatter.nameValue": "\u0E0A\u0E37\u0E48\u0E2D: \u0E04\u0E48\u0E32",
|
|
458
|
+
"echarts.label.formatter.name": "\u0E0A\u0E37\u0E48\u0E2D",
|
|
459
|
+
"echarts.label.formatter.percent": "\u0E40\u0E1B\u0E2D\u0E23\u0E4C\u0E40\u0E0B\u0E47\u0E19\u0E15\u0E4C",
|
|
460
|
+
"echarts.label.position.bar.top": "\u0E1A\u0E19",
|
|
461
|
+
"echarts.label.position.bar.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
462
|
+
"echarts.label.position.bar.insideTop": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19\u0E1A\u0E19",
|
|
463
|
+
"echarts.label.position.bar.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
464
|
+
"echarts.label.position.bar.insideBottom": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19\u0E25\u0E48\u0E32\u0E07",
|
|
465
|
+
"echarts.label.position.bar.right": "\u0E02\u0E27\u0E32",
|
|
466
|
+
"echarts.label.position.bar.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
467
|
+
"echarts.label.position.bar.middle": "\u0E01\u0E25\u0E32\u0E07",
|
|
468
|
+
"echarts.label.position.line.top": "\u0E1A\u0E19",
|
|
469
|
+
"echarts.label.position.line.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
470
|
+
"echarts.label.position.line.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
471
|
+
"echarts.label.position.line.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
472
|
+
"echarts.label.position.line.right": "\u0E02\u0E27\u0E32",
|
|
473
|
+
"echarts.label.position.pie.outside": "\u0E14\u0E49\u0E32\u0E19\u0E19\u0E2D\u0E01",
|
|
474
|
+
"echarts.label.position.pie.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
475
|
+
"echarts.label.position.pie.center": "\u0E01\u0E25\u0E32\u0E07",
|
|
476
|
+
"echarts.label.position.scatter.top": "\u0E1A\u0E19",
|
|
477
|
+
"echarts.label.position.scatter.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
478
|
+
"echarts.label.position.scatter.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
479
|
+
"echarts.label.position.scatter.right": "\u0E02\u0E27\u0E32",
|
|
480
|
+
"echarts.label.position.scatter.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
481
|
+
"echarts.label.position.radar.top": "\u0E1A\u0E19",
|
|
482
|
+
"echarts.label.position.radar.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
483
|
+
"echarts.label.position.radar.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
484
|
+
"echarts.label.position.radar.right": "\u0E02\u0E27\u0E32",
|
|
485
|
+
"echarts.label.position.radar.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
486
|
+
"echarts.label.position.funnel.outer": "\u0E14\u0E49\u0E32\u0E19\u0E19\u0E2D\u0E01",
|
|
487
|
+
"echarts.label.position.funnel.inner": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
488
|
+
"echarts.label.position.funnel.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
489
|
+
"echarts.label.position.funnel.right": "\u0E02\u0E27\u0E32",
|
|
490
|
+
"echarts.label.position.funnel.top": "\u0E1A\u0E19",
|
|
491
|
+
"echarts.label.position.funnel.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
492
|
+
"echarts.meta.chartOption": "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
493
|
+
"echarts.meta.dataSource": "\u0E41\u0E2B\u0E25\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
494
|
+
"echarts.meta.categoryField": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48",
|
|
495
|
+
"echarts.meta.valueFields": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32",
|
|
496
|
+
"echarts.meta.seriesField": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E41\u0E22\u0E01\u0E0A\u0E38\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
497
|
+
"echarts.meta.bubbleSize": "\u0E02\u0E19\u0E32\u0E14\u0E1F\u0E2D\u0E07",
|
|
498
|
+
"echarts.notes.bar": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E41\u0E17\u0E48\u0E07: \u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48 + \u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32\u0E2B\u0E25\u0E32\u0E22\u0E15\u0E31\u0E27 \u0E2B\u0E19\u0E36\u0E48\u0E07\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E15\u0E48\u0E2D\u0E2B\u0E19\u0E36\u0E48\u0E07 series; \u0E40\u0E02\u0E35\u0E22\u0E19\u0E15\u0E31\u0E27\u0E41\u0E17\u0E19 $data \u0E43\u0E19 series[].data; \u0E04\u0E27\u0E32\u0E21\u0E2A\u0E39\u0E07\u0E04\u0E07\u0E17\u0E35\u0E48 \u0E2B\u0E49\u0E32\u0E21\u0E43\u0E0A\u0E49 autoHeight",
|
|
499
|
+
"echarts.notes.barH": "\u0E41\u0E17\u0E48\u0E07\u0E41\u0E19\u0E27\u0E19\u0E2D\u0E19: xAxis \u0E40\u0E1B\u0E47\u0E19\u0E41\u0E01\u0E19\u0E04\u0E48\u0E32 yAxis \u0E40\u0E1B\u0E47\u0E19\u0E41\u0E01\u0E19\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48; \u0E40\u0E02\u0E35\u0E22\u0E19\u0E15\u0E31\u0E27\u0E41\u0E17\u0E19 $data \u0E43\u0E19 yAxis.data \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48",
|
|
500
|
+
"echarts.notes.line": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E2A\u0E49\u0E19: \u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48 + \u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32\u0E2B\u0E25\u0E32\u0E22\u0E15\u0E31\u0E27; \u0E44\u0E21\u0E48\u0E40\u0E02\u0E35\u0E22\u0E19 areaStyle",
|
|
501
|
+
"echarts.notes.area": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E1E\u0E37\u0E49\u0E19\u0E17\u0E35\u0E48: \u0E40\u0E2A\u0E49\u0E19 + series[].areaStyle; \u0E19\u0E2D\u0E01\u0E19\u0E31\u0E49\u0E19\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E2A\u0E49\u0E19",
|
|
502
|
+
"echarts.notes.pie": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E27\u0E07\u0E01\u0E25\u0E21: \u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48 + \u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32\u0E15\u0E31\u0E27\u0E41\u0E23\u0E01\u0E2A\u0E23\u0E49\u0E32\u0E07 { name, value }; \u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E40\u0E1E\u0E35\u0E22\u0E07\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32",
|
|
503
|
+
"echarts.notes.doughnut": "\u0E27\u0E07\u0E01\u0E25\u0E21\u0E27\u0E07\u0E41\u0E2B\u0E27\u0E19: \u0E27\u0E07\u0E01\u0E25\u0E21 + radius:[\u0E23\u0E31\u0E28\u0E21\u0E35\u0E43\u0E19, \u0E23\u0E31\u0E28\u0E21\u0E35\u0E19\u0E2D\u0E01]; \u0E23\u0E31\u0E28\u0E21\u0E35\u0E43\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E43\u0E19\u0E41\u0E1C\u0E07",
|
|
504
|
+
"echarts.notes.scatter": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E01\u0E23\u0E30\u0E08\u0E32\u0E22: \u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48\u0E40\u0E1B\u0E47\u0E19 x \u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32\u0E15\u0E31\u0E27\u0E41\u0E23\u0E01\u0E40\u0E1B\u0E47\u0E19 y; \u0E40\u0E21\u0E37\u0E48\u0E2D\u0E40\u0E1B\u0E34\u0E14 chartBubble \u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32\u0E15\u0E31\u0E27\u0E17\u0E35\u0E48\u0E2A\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E02\u0E19\u0E32\u0E14\u0E08\u0E38\u0E14",
|
|
505
|
+
"echarts.notes.radar": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E23\u0E14\u0E32\u0E23\u0E4C: \u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32\u0E17\u0E38\u0E01\u0E15\u0E31\u0E27\u0E04\u0E37\u0E2D\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E21\u0E34\u0E15\u0E34 (radar.indicator) \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E41\u0E15\u0E48\u0E25\u0E30\u0E41\u0E16\u0E27\u0E04\u0E37\u0E2D\u0E2B\u0E19\u0E36\u0E48\u0E07 series (\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E0A\u0E37\u0E48\u0E2D series); \u0E23\u0E31\u0E28\u0E21\u0E35\u0E40\u0E02\u0E35\u0E22\u0E19\u0E42\u0E14\u0E22\u0E41\u0E1C\u0E07\u0E44\u0E1B\u0E17\u0E35\u0E48 radar.radius (%, \u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19 75)",
|
|
506
|
+
"echarts.notes.funnel": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E0A\u0E48\u0E2D\u0E07\u0E17\u0E32\u0E07: \u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48 + \u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32\u0E15\u0E31\u0E27\u0E41\u0E23\u0E01 \u0E40\u0E23\u0E35\u0E22\u0E07\u0E15\u0E32\u0E21\u0E04\u0E48\u0E32\u0E25\u0E07\u0E21\u0E32; \u0E23\u0E30\u0E22\u0E30\u0E20\u0E32\u0E22\u0E43\u0E19\u0E2A\u0E35\u0E48\u0E14\u0E49\u0E32\u0E19\u0E40\u0E02\u0E35\u0E22\u0E19\u0E42\u0E14\u0E22\u0E41\u0E1C\u0E07\u0E44\u0E1B\u0E17\u0E35\u0E48 series.left/right/top/bottom (%, \u0E40\u0E1C\u0E37\u0E48\u0E2D\u0E1E\u0E37\u0E49\u0E19\u0E17\u0E35\u0E48\u0E14\u0E49\u0E32\u0E19\u0E02\u0E27\u0E32\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E49\u0E32\u0E22\u0E14\u0E49\u0E32\u0E19\u0E19\u0E2D\u0E01)",
|
|
507
|
+
"echarts.notes.gauge": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E01\u0E08\u0E27\u0E31\u0E14: \u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32\u0E15\u0E31\u0E27\u0E41\u0E23\u0E01\u0E02\u0E2D\u0E07\u0E41\u0E16\u0E27\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E41\u0E23\u0E01\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E48\u0E32\u0E1C\u0E25\u0E31\u0E01\u0E14\u0E31\u0E19; min/max \u0E40\u0E02\u0E35\u0E22\u0E19\u0E42\u0E14\u0E22\u0E41\u0E1C\u0E07\u0E44\u0E1B\u0E17\u0E35\u0E48 series[0].min/max"
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
// src/ui.ts
|
|
44
512
|
var import_plugin_kit = require("@worm-print-platform/plugin-kit");
|
|
45
513
|
var import_dom = require("@worm-print-platform/plugin-kit/dom");
|
|
46
514
|
var import_controls = require("@worm-print-platform/plugin-kit/controls");
|
|
47
515
|
|
|
48
516
|
// src/plugin.ts
|
|
517
|
+
var import_i18n = require("@worm-print-platform/core/i18n");
|
|
49
518
|
var import_designer2 = require("@worm-print-platform/core/designer");
|
|
50
519
|
|
|
51
520
|
// src/kinds.ts
|
|
@@ -56,6 +525,7 @@ var CHART_KIND_DEFINITIONS = [
|
|
|
56
525
|
{
|
|
57
526
|
type: "barChart",
|
|
58
527
|
label: "\u67F1\u72B6\u56FE",
|
|
528
|
+
labelKey: "echarts.series.typeNames.bar",
|
|
59
529
|
icon: "ChartColumn",
|
|
60
530
|
seriesType: "bar",
|
|
61
531
|
orientation: "vertical",
|
|
@@ -63,11 +533,13 @@ var CHART_KIND_DEFINITIONS = [
|
|
|
63
533
|
requiredOptionKeys: BASE_REQUIRED,
|
|
64
534
|
defaultWidth: 100,
|
|
65
535
|
defaultHeight: 60,
|
|
66
|
-
notes: "\u67F1\u72B6\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6BCF\u5B57\u6BB5\u4E00\u4E2A series\uFF1Bseries[].data \u5199 $data \u5360\u4F4D\uFF1B\u56FA\u5B9A\u9AD8\uFF0C\u7981\u6B62 autoHeight"
|
|
536
|
+
notes: "\u67F1\u72B6\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6BCF\u5B57\u6BB5\u4E00\u4E2A series\uFF1Bseries[].data \u5199 $data \u5360\u4F4D\uFF1B\u56FA\u5B9A\u9AD8\uFF0C\u7981\u6B62 autoHeight",
|
|
537
|
+
notesKey: "echarts.notes.bar"
|
|
67
538
|
},
|
|
68
539
|
{
|
|
69
540
|
type: "barHChart",
|
|
70
541
|
label: "\u6761\u5F62\u56FE",
|
|
542
|
+
labelKey: "echarts.series.typeNames.barH",
|
|
71
543
|
icon: "ChartBar",
|
|
72
544
|
seriesType: "bar",
|
|
73
545
|
orientation: "horizontal",
|
|
@@ -75,95 +547,112 @@ var CHART_KIND_DEFINITIONS = [
|
|
|
75
547
|
requiredOptionKeys: BASE_REQUIRED,
|
|
76
548
|
defaultWidth: 100,
|
|
77
549
|
defaultHeight: 60,
|
|
78
|
-
notes: "\u6A2A\u5411\u6761\u5F62\u56FE\uFF1AxAxis \u4E3A\u6570\u503C\u3001yAxis \u4E3A\u7C7B\u76EE\uFF1B\u7C7B\u76EE\u5199 yAxis.data \u7684 $data \u5360\u4F4D"
|
|
550
|
+
notes: "\u6A2A\u5411\u6761\u5F62\u56FE\uFF1AxAxis \u4E3A\u6570\u503C\u3001yAxis \u4E3A\u7C7B\u76EE\uFF1B\u7C7B\u76EE\u5199 yAxis.data \u7684 $data \u5360\u4F4D",
|
|
551
|
+
notesKey: "echarts.notes.barH"
|
|
79
552
|
},
|
|
80
553
|
{
|
|
81
554
|
type: "lineChart",
|
|
82
555
|
label: "\u6298\u7EBF\u56FE",
|
|
556
|
+
labelKey: "echarts.series.typeNames.line",
|
|
83
557
|
icon: "ChartLine",
|
|
84
558
|
seriesType: "line",
|
|
85
559
|
fields: [...DATA_FIELDS, ...STYLE_FIELDS, "stack", "label"],
|
|
86
560
|
requiredOptionKeys: BASE_REQUIRED,
|
|
87
561
|
defaultWidth: 100,
|
|
88
562
|
defaultHeight: 60,
|
|
89
|
-
notes: "\u6298\u7EBF\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF1B\u4E0D\u5199 areaStyle"
|
|
563
|
+
notes: "\u6298\u7EBF\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF1B\u4E0D\u5199 areaStyle",
|
|
564
|
+
notesKey: "echarts.notes.line"
|
|
90
565
|
},
|
|
91
566
|
{
|
|
92
567
|
type: "areaChart",
|
|
93
568
|
label: "\u9762\u79EF\u56FE",
|
|
569
|
+
labelKey: "echarts.series.typeNames.area",
|
|
94
570
|
icon: "ChartArea",
|
|
95
571
|
seriesType: "line",
|
|
96
572
|
fields: [...DATA_FIELDS, ...STYLE_FIELDS, "stack", "label"],
|
|
97
573
|
requiredOptionKeys: BASE_REQUIRED,
|
|
98
574
|
defaultWidth: 100,
|
|
99
575
|
defaultHeight: 60,
|
|
100
|
-
notes: "\u9762\u79EF\u56FE\uFF1A\u6298\u7EBF + series[].areaStyle\uFF1B\u5176\u4F59\u540C\u6298\u7EBF\u56FE"
|
|
576
|
+
notes: "\u9762\u79EF\u56FE\uFF1A\u6298\u7EBF + series[].areaStyle\uFF1B\u5176\u4F59\u540C\u6298\u7EBF\u56FE",
|
|
577
|
+
notesKey: "echarts.notes.area"
|
|
101
578
|
},
|
|
102
579
|
{
|
|
103
580
|
type: "pieChart",
|
|
104
581
|
label: "\u997C\u56FE",
|
|
582
|
+
labelKey: "echarts.series.typeNames.pie",
|
|
105
583
|
icon: "ChartPie",
|
|
106
584
|
seriesType: "pie",
|
|
107
585
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "label"],
|
|
108
586
|
requiredOptionKeys: BASE_REQUIRED,
|
|
109
587
|
defaultWidth: 60,
|
|
110
588
|
defaultHeight: 60,
|
|
111
|
-
notes: "\u997C\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u751F\u6210 { name, value }\uFF1B\u53EA\u9700\u4E00\u4E2A\u6570\u503C\u5B57\u6BB5"
|
|
589
|
+
notes: "\u997C\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u751F\u6210 { name, value }\uFF1B\u53EA\u9700\u4E00\u4E2A\u6570\u503C\u5B57\u6BB5",
|
|
590
|
+
notesKey: "echarts.notes.pie"
|
|
112
591
|
},
|
|
113
592
|
{
|
|
114
593
|
type: "doughnutChart",
|
|
115
594
|
label: "\u73AF\u5F62\u56FE",
|
|
595
|
+
labelKey: "echarts.series.typeNames.doughnut",
|
|
116
596
|
icon: "Donut",
|
|
117
597
|
seriesType: "pie",
|
|
118
598
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "innerRadius", "label"],
|
|
119
599
|
requiredOptionKeys: BASE_REQUIRED,
|
|
120
600
|
defaultWidth: 60,
|
|
121
601
|
defaultHeight: 60,
|
|
122
|
-
notes: "\u73AF\u5F62\u56FE\uFF1A\u997C\u56FE + radius:[\u5185\u5F84,\u5916\u5F84]\uFF1B\u5185\u5F84\u7531\u9762\u677F\u914D\u7F6E"
|
|
602
|
+
notes: "\u73AF\u5F62\u56FE\uFF1A\u997C\u56FE + radius:[\u5185\u5F84,\u5916\u5F84]\uFF1B\u5185\u5F84\u7531\u9762\u677F\u914D\u7F6E",
|
|
603
|
+
notesKey: "echarts.notes.doughnut"
|
|
123
604
|
},
|
|
124
605
|
{
|
|
125
606
|
type: "scatterChart",
|
|
126
607
|
label: "\u6563\u70B9\u56FE",
|
|
608
|
+
labelKey: "echarts.series.typeNames.scatter",
|
|
127
609
|
icon: "ChartScatter",
|
|
128
610
|
seriesType: "scatter",
|
|
129
611
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "bubble", "label"],
|
|
130
612
|
requiredOptionKeys: BASE_REQUIRED,
|
|
131
613
|
defaultWidth: 80,
|
|
132
614
|
defaultHeight: 60,
|
|
133
|
-
notes: "\u6563\u70B9\u56FE\uFF1A\u7C7B\u76EE\u5B57\u6BB5\u4F5C x\u3001\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C y\uFF1BchartBubble \u5F00\u542F\u65F6\u7528\u7B2C\u4E8C\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u70B9\u5927\u5C0F"
|
|
615
|
+
notes: "\u6563\u70B9\u56FE\uFF1A\u7C7B\u76EE\u5B57\u6BB5\u4F5C x\u3001\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C y\uFF1BchartBubble \u5F00\u542F\u65F6\u7528\u7B2C\u4E8C\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u70B9\u5927\u5C0F",
|
|
616
|
+
notesKey: "echarts.notes.scatter"
|
|
134
617
|
},
|
|
135
618
|
{
|
|
136
619
|
type: "radarChart",
|
|
137
620
|
label: "\u96F7\u8FBE\u56FE",
|
|
621
|
+
labelKey: "echarts.series.typeNames.radar",
|
|
138
622
|
icon: "Radar",
|
|
139
623
|
seriesType: "radar",
|
|
140
624
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "radius", "label"],
|
|
141
625
|
requiredOptionKeys: BASE_REQUIRED,
|
|
142
626
|
defaultWidth: 70,
|
|
143
627
|
defaultHeight: 60,
|
|
144
|
-
notes: "\u96F7\u8FBE\u56FE\uFF1A\u6BCF\u4E2A\u6570\u503C\u5B57\u6BB5\u662F\u4E00\u4E2A\u7EF4\u5EA6\uFF08radar.indicator\uFF09\uFF0C\u6BCF\u884C\u6570\u636E\u662F\u4E00\u4E2A\u7CFB\u5217\uFF08\u7C7B\u76EE\u5B57\u6BB5\u4F5C\u7CFB\u5217\u540D\uFF09\uFF1B\u534A\u5F84\u7531\u9762\u677F\u5199 radar.radius\uFF08%\uFF0C\u9ED8\u8BA4 75\uFF09"
|
|
628
|
+
notes: "\u96F7\u8FBE\u56FE\uFF1A\u6BCF\u4E2A\u6570\u503C\u5B57\u6BB5\u662F\u4E00\u4E2A\u7EF4\u5EA6\uFF08radar.indicator\uFF09\uFF0C\u6BCF\u884C\u6570\u636E\u662F\u4E00\u4E2A\u7CFB\u5217\uFF08\u7C7B\u76EE\u5B57\u6BB5\u4F5C\u7CFB\u5217\u540D\uFF09\uFF1B\u534A\u5F84\u7531\u9762\u677F\u5199 radar.radius\uFF08%\uFF0C\u9ED8\u8BA4 75\uFF09",
|
|
629
|
+
notesKey: "echarts.notes.radar"
|
|
145
630
|
},
|
|
146
631
|
{
|
|
147
632
|
type: "funnelChart",
|
|
148
633
|
label: "\u6F0F\u6597\u56FE",
|
|
634
|
+
labelKey: "echarts.series.typeNames.funnel",
|
|
149
635
|
icon: "Funnel",
|
|
150
636
|
seriesType: "funnel",
|
|
151
637
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "padding", "label"],
|
|
152
638
|
requiredOptionKeys: BASE_REQUIRED,
|
|
153
639
|
defaultWidth: 60,
|
|
154
640
|
defaultHeight: 60,
|
|
155
|
-
notes: "\u6F0F\u6597\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6309\u6570\u503C\u964D\u5E8F\uFF1B\u56DB\u8FB9\u5185\u8FB9\u8DDD\u7531\u9762\u677F\u5199 series.left/right/top/bottom\uFF08%\uFF0C\u53F3\u4FA7\u9700\u7559\u5916\u7F6E\u6807\u7B7E\u7A7A\u95F4\uFF09"
|
|
641
|
+
notes: "\u6F0F\u6597\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6309\u6570\u503C\u964D\u5E8F\uFF1B\u56DB\u8FB9\u5185\u8FB9\u8DDD\u7531\u9762\u677F\u5199 series.left/right/top/bottom\uFF08%\uFF0C\u53F3\u4FA7\u9700\u7559\u5916\u7F6E\u6807\u7B7E\u7A7A\u95F4\uFF09",
|
|
642
|
+
notesKey: "echarts.notes.funnel"
|
|
156
643
|
},
|
|
157
644
|
{
|
|
158
645
|
type: "gaugeChart",
|
|
159
646
|
label: "\u4EEA\u8868\u76D8",
|
|
647
|
+
labelKey: "echarts.series.typeNames.gauge",
|
|
160
648
|
icon: "Gauge",
|
|
161
649
|
seriesType: "gauge",
|
|
162
650
|
fields: ["dataSource", "valueFields", ...STYLE_FIELDS, "gaugeRange", "label"],
|
|
163
651
|
requiredOptionKeys: BASE_REQUIRED,
|
|
164
652
|
defaultWidth: 60,
|
|
165
653
|
defaultHeight: 60,
|
|
166
|
-
notes: "\u4EEA\u8868\u76D8\uFF1A\u53D6\u9996\u884C\u6570\u636E\u7684\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u6307\u9488\u503C\uFF1Bmin/max \u7531\u9762\u677F\u5199\u5165 series[0].min/max"
|
|
654
|
+
notes: "\u4EEA\u8868\u76D8\uFF1A\u53D6\u9996\u884C\u6570\u636E\u7684\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u6307\u9488\u503C\uFF1Bmin/max \u7531\u9762\u677F\u5199\u5165 series[0].min/max",
|
|
655
|
+
notesKey: "echarts.notes.gauge"
|
|
167
656
|
}
|
|
168
657
|
];
|
|
169
658
|
var CHART_KINDS = CHART_KIND_DEFINITIONS.map((def) => def.type);
|
|
@@ -359,10 +848,10 @@ var import_designer = require("@worm-print-platform/core/designer");
|
|
|
359
848
|
// src/constants.ts
|
|
360
849
|
var CHART_PLUGIN_ID = "@worm-print-platform/echarts";
|
|
361
850
|
var CHART_PALETTES = [
|
|
362
|
-
{ key: "default", label: "\u9ED8\u8BA4\u84DD", colors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de"] },
|
|
363
|
-
{ key: "fresh", label: "\u6E05\u65B0\u7EFF", colors: ["#2f9e6e", "#5cc9a7", "#9ad6c1", "#f2c94c", "#4a90e2"] },
|
|
364
|
-
{ key: "warm", label: "\u6696\u6A59\u7EA2", colors: ["#f2704e", "#f7a35c", "#f7d56d", "#c54e3f", "#8f5a4a"] },
|
|
365
|
-
{ key: "purple", label: "\u7D2B\u7070", colors: ["#7b61ff", "#9b8cff", "#c3baff", "#596275", "#8d99ae"] }
|
|
851
|
+
{ key: "default", label: "\u9ED8\u8BA4\u84DD", labelKey: "echarts.palette.default", colors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de"] },
|
|
852
|
+
{ key: "fresh", label: "\u6E05\u65B0\u7EFF", labelKey: "echarts.palette.fresh", colors: ["#2f9e6e", "#5cc9a7", "#9ad6c1", "#f2c94c", "#4a90e2"] },
|
|
853
|
+
{ key: "warm", label: "\u6696\u6A59\u7EA2", labelKey: "echarts.palette.warm", colors: ["#f2704e", "#f7a35c", "#f7d56d", "#c54e3f", "#8f5a4a"] },
|
|
854
|
+
{ key: "purple", label: "\u7D2B\u7070", labelKey: "echarts.palette.purple", colors: ["#7b61ff", "#9b8cff", "#c3baff", "#596275", "#8d99ae"] }
|
|
366
855
|
];
|
|
367
856
|
var FALLBACK_SAMPLE_CATEGORIES = ["\u793A\u4F8B\u4E00", "\u793A\u4F8B\u4E8C", "\u793A\u4F8B\u4E09"];
|
|
368
857
|
var FUNNEL_PADDING_DEFAULTS = { top: 6, right: 25, bottom: 6, left: 5 };
|
|
@@ -450,7 +939,7 @@ function getChartPalettes() {
|
|
|
450
939
|
const overrides = getChartPluginConfig().palettes ?? {};
|
|
451
940
|
const builtin = CHART_PALETTES.map((palette) => {
|
|
452
941
|
const custom = overrides[palette.key];
|
|
453
|
-
return custom ? { key: palette.key, label: custom.label ?? palette.label, colors: custom.colors } : { key: palette.key, label: palette.label, colors: palette.colors };
|
|
942
|
+
return custom ? { key: palette.key, label: custom.label ?? palette.label, labelKey: custom.label ? void 0 : palette.labelKey, colors: custom.colors } : { key: palette.key, label: palette.label, labelKey: palette.labelKey, colors: palette.colors };
|
|
454
943
|
});
|
|
455
944
|
const extra = Object.entries(overrides).filter(([key]) => !CHART_PALETTES.some((palette) => palette.key === key)).map(([key, value]) => ({ key, label: value.label ?? key, colors: value.colors }));
|
|
456
945
|
return [...builtin, ...extra];
|
|
@@ -657,55 +1146,55 @@ function writeRadarRadius(option, percent) {
|
|
|
657
1146
|
|
|
658
1147
|
// src/label.ts
|
|
659
1148
|
var LABEL_PRESETS = [
|
|
660
|
-
{ key: "value", label: "\u6570\u503C", formatter: "{c}" },
|
|
661
|
-
{ key: "name-value", label: "\u540D\u79F0: \u6570\u503C", formatter: "{b}: {c}" },
|
|
662
|
-
{ key: "name", label: "\u540D\u79F0", formatter: "{b}" },
|
|
663
|
-
{ key: "percent", label: "\u767E\u5206\u6BD4", formatter: "{d}%" }
|
|
1149
|
+
{ key: "value", label: "\u6570\u503C", labelKey: "echarts.label.formatter.value", formatter: "{c}" },
|
|
1150
|
+
{ key: "name-value", label: "\u540D\u79F0: \u6570\u503C", labelKey: "echarts.label.formatter.nameValue", formatter: "{b}: {c}" },
|
|
1151
|
+
{ key: "name", label: "\u540D\u79F0", labelKey: "echarts.label.formatter.name", formatter: "{b}" },
|
|
1152
|
+
{ key: "percent", label: "\u767E\u5206\u6BD4", labelKey: "echarts.label.formatter.percent", formatter: "{d}%" }
|
|
664
1153
|
];
|
|
665
1154
|
var LABEL_POSITIONS = {
|
|
666
1155
|
bar: [
|
|
667
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
668
|
-
{ value: "inside", label: "\u5185\u90E8" },
|
|
669
|
-
{ value: "insideTop", label: "\u5185\u90E8\u9876\u7AEF" },
|
|
670
|
-
{ value: "bottom", label: "\u5E95\u90E8" },
|
|
671
|
-
{ value: "insideBottom", label: "\u5185\u90E8\u5E95\u7AEF" },
|
|
672
|
-
{ value: "right", label: "\u53F3\u4FA7" },
|
|
673
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
674
|
-
{ value: "middle", label: "\u5C45\u4E2D" }
|
|
1156
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.bar.top" },
|
|
1157
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.bar.inside" },
|
|
1158
|
+
{ value: "insideTop", label: "\u5185\u90E8\u9876\u7AEF", labelKey: "echarts.label.position.bar.insideTop" },
|
|
1159
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.bar.bottom" },
|
|
1160
|
+
{ value: "insideBottom", label: "\u5185\u90E8\u5E95\u7AEF", labelKey: "echarts.label.position.bar.insideBottom" },
|
|
1161
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.bar.right" },
|
|
1162
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.bar.left" },
|
|
1163
|
+
{ value: "middle", label: "\u5C45\u4E2D", labelKey: "echarts.label.position.bar.middle" }
|
|
675
1164
|
],
|
|
676
1165
|
line: [
|
|
677
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
678
|
-
{ value: "bottom", label: "\u5E95\u90E8" },
|
|
679
|
-
{ value: "inside", label: "\u5185\u90E8" },
|
|
680
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
681
|
-
{ value: "right", label: "\u53F3\u4FA7" }
|
|
1166
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.line.top" },
|
|
1167
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.line.bottom" },
|
|
1168
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.line.inside" },
|
|
1169
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.line.left" },
|
|
1170
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.line.right" }
|
|
682
1171
|
],
|
|
683
1172
|
pie: [
|
|
684
|
-
{ value: "outside", label: "\u5916\u4FA7" },
|
|
685
|
-
{ value: "inside", label: "\u5185\u90E8" },
|
|
686
|
-
{ value: "center", label: "\u4E2D\u5FC3" }
|
|
1173
|
+
{ value: "outside", label: "\u5916\u4FA7", labelKey: "echarts.label.position.pie.outside" },
|
|
1174
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.pie.inside" },
|
|
1175
|
+
{ value: "center", label: "\u4E2D\u5FC3", labelKey: "echarts.label.position.pie.center" }
|
|
687
1176
|
],
|
|
688
1177
|
scatter: [
|
|
689
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
690
|
-
{ value: "bottom", label: "\u5E95\u90E8" },
|
|
691
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
692
|
-
{ value: "right", label: "\u53F3\u4FA7" },
|
|
693
|
-
{ value: "inside", label: "\u5185\u90E8" }
|
|
1178
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.scatter.top" },
|
|
1179
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.scatter.bottom" },
|
|
1180
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.scatter.left" },
|
|
1181
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.scatter.right" },
|
|
1182
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.scatter.inside" }
|
|
694
1183
|
],
|
|
695
1184
|
radar: [
|
|
696
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
697
|
-
{ value: "bottom", label: "\u5E95\u90E8" },
|
|
698
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
699
|
-
{ value: "right", label: "\u53F3\u4FA7" },
|
|
700
|
-
{ value: "inside", label: "\u5185\u90E8" }
|
|
1185
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.radar.top" },
|
|
1186
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.radar.bottom" },
|
|
1187
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.radar.left" },
|
|
1188
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.radar.right" },
|
|
1189
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.radar.inside" }
|
|
701
1190
|
],
|
|
702
1191
|
funnel: [
|
|
703
|
-
{ value: "outer", label: "\u5916\u4FA7" },
|
|
704
|
-
{ value: "inner", label: "\u5185\u90E8" },
|
|
705
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
706
|
-
{ value: "right", label: "\u53F3\u4FA7" },
|
|
707
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
708
|
-
{ value: "bottom", label: "\u5E95\u90E8" }
|
|
1192
|
+
{ value: "outer", label: "\u5916\u4FA7", labelKey: "echarts.label.position.funnel.outer" },
|
|
1193
|
+
{ value: "inner", label: "\u5185\u90E8", labelKey: "echarts.label.position.funnel.inner" },
|
|
1194
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.funnel.left" },
|
|
1195
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.funnel.right" },
|
|
1196
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.funnel.top" },
|
|
1197
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.funnel.bottom" }
|
|
709
1198
|
],
|
|
710
1199
|
gauge: []
|
|
711
1200
|
};
|
|
@@ -1056,26 +1545,32 @@ var CHART_EXECUTOR_VERSION = "2";
|
|
|
1056
1545
|
|
|
1057
1546
|
// src/plugin.ts
|
|
1058
1547
|
var CHART_OPTION_META = {
|
|
1059
|
-
chartOption: { kind: "object", label:
|
|
1060
|
-
chartDataSource: { kind: "text", label: "
|
|
1061
|
-
chartCategoryField: { kind: "text", label: "
|
|
1062
|
-
chartValueFields: { kind: "object", label: "
|
|
1063
|
-
chartSeriesField: { kind: "text", label: "
|
|
1548
|
+
chartOption: { kind: "object", label: (0, import_i18n.t)("echarts.meta.chartOption") },
|
|
1549
|
+
chartDataSource: { kind: "text", label: (0, import_i18n.t)("echarts.meta.dataSource") },
|
|
1550
|
+
chartCategoryField: { kind: "text", label: (0, import_i18n.t)("echarts.meta.categoryField") },
|
|
1551
|
+
chartValueFields: { kind: "object", label: (0, import_i18n.t)("echarts.meta.valueFields") },
|
|
1552
|
+
chartSeriesField: { kind: "text", label: (0, import_i18n.t)("echarts.meta.seriesField") }
|
|
1064
1553
|
};
|
|
1065
1554
|
var SCATTER_OPTION_META = {
|
|
1066
1555
|
...CHART_OPTION_META,
|
|
1067
|
-
chartBubble: { kind: "bool", label: "
|
|
1556
|
+
chartBubble: { kind: "bool", label: (0, import_i18n.t)("echarts.meta.bubbleSize") }
|
|
1068
1557
|
};
|
|
1069
1558
|
var CHART_PLUGIN = (0, import_designer2.defineElementPlugin)({
|
|
1070
1559
|
id: CHART_PLUGIN_ID,
|
|
1071
1560
|
version: CHART_EXECUTOR_VERSION,
|
|
1072
1561
|
kinds: CHART_KIND_DEFINITIONS.map((def) => ({
|
|
1073
1562
|
type: def.type,
|
|
1074
|
-
|
|
1563
|
+
// getter:每次读取按当前实例语言取词,避免模块加载期冻结为单一语言
|
|
1564
|
+
get label() {
|
|
1565
|
+
return (0, import_i18n.t)(def.labelKey);
|
|
1566
|
+
},
|
|
1075
1567
|
icon: def.icon,
|
|
1076
1568
|
fixedHeight: true,
|
|
1077
1569
|
requiredOptionKeys: def.requiredOptionKeys,
|
|
1078
|
-
|
|
1570
|
+
// getter:每次读取按当前实例语言取词,避免模块加载期冻结为单一语言
|
|
1571
|
+
get notes() {
|
|
1572
|
+
return (0, import_i18n.t)(def.notesKey);
|
|
1573
|
+
},
|
|
1079
1574
|
optionMeta: def.type === "scatterChart" ? SCATTER_OPTION_META : CHART_OPTION_META,
|
|
1080
1575
|
defaultOptions: (partial) => chartFactoryDefaults(def.type, partial),
|
|
1081
1576
|
binding: { bind: (options, data) => bindChartData(def.type, options, data) }
|
|
@@ -1105,6 +1600,17 @@ function registerChartPlugin(designer, extraRender) {
|
|
|
1105
1600
|
registerChartPlugin();
|
|
1106
1601
|
|
|
1107
1602
|
// src/ui.ts
|
|
1603
|
+
var activeT = import_i18n2.t;
|
|
1604
|
+
var t2 = (key, params) => activeT(key, params);
|
|
1605
|
+
function withTranslator(translator, render2) {
|
|
1606
|
+
const prev = activeT;
|
|
1607
|
+
activeT = translator ?? import_i18n2.t;
|
|
1608
|
+
try {
|
|
1609
|
+
return render2();
|
|
1610
|
+
} finally {
|
|
1611
|
+
activeT = prev;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1108
1614
|
var CANVAS_STYLE = "width:100%;height:100%;min-width:0;min-height:0;pointer-events:none";
|
|
1109
1615
|
var STYLES = [
|
|
1110
1616
|
".echarts-canvas-element{overflow:hidden}",
|
|
@@ -1157,7 +1663,7 @@ var SEARCH_KEYWORDS = [
|
|
|
1157
1663
|
"\u6570\u503C\u6807\u7B7E",
|
|
1158
1664
|
"label"
|
|
1159
1665
|
];
|
|
1160
|
-
var
|
|
1666
|
+
var panelHint = () => t2("echarts.panel.hint.dataBinding");
|
|
1161
1667
|
function escapeHtml2(value) {
|
|
1162
1668
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1163
1669
|
}
|
|
@@ -1198,8 +1704,8 @@ function maxValueFields(def) {
|
|
|
1198
1704
|
}
|
|
1199
1705
|
}
|
|
1200
1706
|
function valueFieldsLabel(def, limit) {
|
|
1201
|
-
if (def?.seriesType === "radar") return "
|
|
1202
|
-
return limit === 1 ? "
|
|
1707
|
+
if (def?.seriesType === "radar") return t2("echarts.panel.field.dimension");
|
|
1708
|
+
return limit === 1 ? t2("echarts.panel.field.value") : t2("echarts.panel.field.valueMulti");
|
|
1203
1709
|
}
|
|
1204
1710
|
function dataSourceCandidates(data) {
|
|
1205
1711
|
const first = data?.[0];
|
|
@@ -1222,15 +1728,15 @@ function fieldLabelMap(fields) {
|
|
|
1222
1728
|
return map;
|
|
1223
1729
|
}
|
|
1224
1730
|
function optionLabel(value, labels, fallbackSuffix) {
|
|
1225
|
-
if (!value) return fallbackSuffix ?? "
|
|
1731
|
+
if (!value) return fallbackSuffix ?? t2("echarts.panel.default");
|
|
1226
1732
|
const name = labels.get(value);
|
|
1227
1733
|
const base = name ? `${name}\uFF08${value}\uFF09` : value;
|
|
1228
1734
|
return fallbackSuffix ? `${base}${fallbackSuffix}` : base;
|
|
1229
1735
|
}
|
|
1230
1736
|
function dropdownOptions(candidates, current, labels = /* @__PURE__ */ new Map()) {
|
|
1231
1737
|
const opts = candidates.map((value) => ({ value, label: optionLabel(value, labels) }));
|
|
1232
|
-
if (current && !candidates.includes(current)) opts.unshift({ value: current, label: optionLabel(current, labels, "
|
|
1233
|
-
if (!current) opts.unshift({ value: "", label: "
|
|
1738
|
+
if (current && !candidates.includes(current)) opts.unshift({ value: current, label: optionLabel(current, labels, t2("echarts.panel.current")) });
|
|
1739
|
+
if (!current) opts.unshift({ value: "", label: t2("echarts.panel.defaultFirstArray") });
|
|
1234
1740
|
return opts;
|
|
1235
1741
|
}
|
|
1236
1742
|
function seriesList(option) {
|
|
@@ -1257,12 +1763,12 @@ function renderCanvas(ctx) {
|
|
|
1257
1763
|
try {
|
|
1258
1764
|
const preview = previewChartOption(type, rawChartOption(element) ?? createDefaultChartOption(type));
|
|
1259
1765
|
const option = normalizeChartOption(type, preview);
|
|
1260
|
-
if (!option || typeof option !== "object" || Array.isArray(option)) throw new Error("
|
|
1766
|
+
if (!option || typeof option !== "object" || Array.isArray(option)) throw new Error(t2("echarts.panel.error.invalidOption"));
|
|
1261
1767
|
const fontFamily = typeof options.fontFamily === "string" && options.fontFamily ? options.fontFamily : void 0;
|
|
1262
1768
|
const svg = renderChartToSvg({ key: element.id, type, option, widthMm, heightMm, fontFamily });
|
|
1263
1769
|
return `<div class="echarts-canvas-element" style="${CANVAS_STYLE}">${svg}</div>`;
|
|
1264
1770
|
} catch {
|
|
1265
|
-
const title = typeof options.title === "string" && options.title.trim() ? options.title : getChartKindDefinition(type)?.label ?? "
|
|
1771
|
+
const title = typeof options.title === "string" && options.title.trim() ? options.title : getChartKindDefinition(type)?.label ?? t2("echarts.panel.chartFallback");
|
|
1266
1772
|
return `<div class="echarts-canvas-element" style="${CANVAS_STYLE}">${escapeHtml2(title)}</div>`;
|
|
1267
1773
|
}
|
|
1268
1774
|
}
|
|
@@ -1317,7 +1823,7 @@ function composedPathOf(ev) {
|
|
|
1317
1823
|
return composed.length ? composed : [ev.target];
|
|
1318
1824
|
}
|
|
1319
1825
|
function dropdownSelect(options, value, onCommit) {
|
|
1320
|
-
const current = options.find((item) => item.value === value) ?? { value, label: value || "
|
|
1826
|
+
const current = options.find((item) => item.value === value) ?? { value, label: value || t2("echarts.panel.optionDefault") };
|
|
1321
1827
|
const trigger = el("button", "echarts-dropdown-trigger");
|
|
1322
1828
|
trigger.type = "button";
|
|
1323
1829
|
trigger.setAttribute("aria-haspopup", "listbox");
|
|
@@ -1389,35 +1895,36 @@ function dropdownSelect(options, value, onCommit) {
|
|
|
1389
1895
|
});
|
|
1390
1896
|
return trigger;
|
|
1391
1897
|
}
|
|
1392
|
-
var
|
|
1393
|
-
{ value: "", label: "
|
|
1394
|
-
{ value: "none", label: "
|
|
1395
|
-
{ value: "truncate", label: "
|
|
1396
|
-
{ value: "break", label: "
|
|
1898
|
+
var overflowOptions = () => [
|
|
1899
|
+
{ value: "", label: t2("echarts.panel.overflow.default") },
|
|
1900
|
+
{ value: "none", label: t2("echarts.panel.overflow.none") },
|
|
1901
|
+
{ value: "truncate", label: t2("echarts.panel.overflow.truncate") },
|
|
1902
|
+
{ value: "break", label: t2("echarts.panel.overflow.break") }
|
|
1397
1903
|
];
|
|
1398
|
-
var
|
|
1399
|
-
{ value: "", label: "
|
|
1400
|
-
{ value: "normal", label: "
|
|
1401
|
-
{ value: "bold", label: "
|
|
1904
|
+
var fontWeightOptions = () => [
|
|
1905
|
+
{ value: "", label: t2("echarts.panel.fontWeight.default") },
|
|
1906
|
+
{ value: "normal", label: t2("echarts.panel.fontWeight.normal") },
|
|
1907
|
+
{ value: "bold", label: t2("echarts.panel.fontWeight.bold") }
|
|
1402
1908
|
];
|
|
1403
|
-
var
|
|
1404
|
-
distance: "
|
|
1405
|
-
rotate: "
|
|
1406
|
-
fontSize: "
|
|
1407
|
-
fontWeight: "
|
|
1408
|
-
color: "
|
|
1409
|
-
backgroundColor: "
|
|
1410
|
-
borderColor: "
|
|
1411
|
-
borderWidth: "
|
|
1412
|
-
borderRadius: "
|
|
1413
|
-
padding: "
|
|
1414
|
-
};
|
|
1909
|
+
var styleFieldLabels = () => ({
|
|
1910
|
+
distance: t2("echarts.panel.label.distance"),
|
|
1911
|
+
rotate: t2("echarts.panel.label.rotate"),
|
|
1912
|
+
fontSize: t2("echarts.panel.label.fontSize"),
|
|
1913
|
+
fontWeight: t2("echarts.panel.label.fontWeight"),
|
|
1914
|
+
color: t2("echarts.panel.label.color"),
|
|
1915
|
+
backgroundColor: t2("echarts.panel.label.backgroundColor"),
|
|
1916
|
+
borderColor: t2("echarts.panel.label.borderColor"),
|
|
1917
|
+
borderWidth: t2("echarts.panel.label.borderWidth"),
|
|
1918
|
+
borderRadius: t2("echarts.panel.label.borderRadius"),
|
|
1919
|
+
padding: t2("echarts.panel.label.padding")
|
|
1920
|
+
});
|
|
1415
1921
|
function renderLabelGroup(ctx, type) {
|
|
1416
1922
|
const element = ctx.element;
|
|
1417
1923
|
const def = getChartKindDefinition(type);
|
|
1418
1924
|
const fields = labelFieldsOf(type);
|
|
1419
1925
|
const has = (key) => fields.includes(key);
|
|
1420
1926
|
const state = readChartLabel(panelOption(element), type);
|
|
1927
|
+
const styleLabels = styleFieldLabels();
|
|
1421
1928
|
const commit = (patch) => {
|
|
1422
1929
|
commitOption(ctx, type, updateChartLabel(panelOption(element), type, patch));
|
|
1423
1930
|
};
|
|
@@ -1434,18 +1941,20 @@ function renderLabelGroup(ctx, type) {
|
|
|
1434
1941
|
commit({ labelLine: { [key]: value } });
|
|
1435
1942
|
};
|
|
1436
1943
|
const numberField = (key, value) => {
|
|
1437
|
-
const wrap = field(
|
|
1944
|
+
const wrap = field(styleLabels[key] ?? key);
|
|
1438
1945
|
wrap.appendChild(
|
|
1439
1946
|
textInput({ value: value === void 0 ? "" : String(value), type: "number" }, (raw) => commitNumber(key, raw))
|
|
1440
1947
|
);
|
|
1441
1948
|
return wrap;
|
|
1442
1949
|
};
|
|
1443
1950
|
const colorField = (key, value) => {
|
|
1444
|
-
const wrap = field(
|
|
1951
|
+
const wrap = field(styleLabels[key] ?? key);
|
|
1445
1952
|
const holder = el("span");
|
|
1446
1953
|
(0, import_dom.render)((0, import_controls.colorPicker)({
|
|
1447
1954
|
value: value ?? "",
|
|
1448
|
-
title:
|
|
1955
|
+
title: styleLabels[key] ?? key,
|
|
1956
|
+
// 面板点击时才构建,届时候选渲染期 translator 已还原,必须固化 ctx.t
|
|
1957
|
+
translator: ctx.t,
|
|
1449
1958
|
onChange: (next) => commit({ [key]: next ?? "" })
|
|
1450
1959
|
}), holder);
|
|
1451
1960
|
wrap.appendChild(holder);
|
|
@@ -1454,39 +1963,39 @@ function renderLabelGroup(ctx, type) {
|
|
|
1454
1963
|
const group = el("details", "echarts-label-group");
|
|
1455
1964
|
group.open = state.show;
|
|
1456
1965
|
const summary = el("summary", "echarts-label-summary");
|
|
1457
|
-
const toggle = checkboxField("
|
|
1966
|
+
const toggle = checkboxField(t2("echarts.panel.label.show"), state.show, (checked) => commit({ enabled: checked }));
|
|
1458
1967
|
toggle.querySelector("input")?.addEventListener("click", (event) => event.stopPropagation());
|
|
1459
1968
|
summary.appendChild(toggle);
|
|
1460
1969
|
group.appendChild(summary);
|
|
1461
1970
|
if (has("formatter") || has("overflow")) {
|
|
1462
|
-
group.appendChild(el("div", "echarts-label-sub", "
|
|
1971
|
+
group.appendChild(el("div", "echarts-label-sub", t2("echarts.panel.label.content")));
|
|
1463
1972
|
if (has("formatter")) {
|
|
1464
|
-
const wrap = field("
|
|
1973
|
+
const wrap = field(t2("echarts.panel.label.formatterTitle"));
|
|
1465
1974
|
wrap.appendChild(
|
|
1466
1975
|
selectInput(
|
|
1467
|
-
[{ value: "", label: "
|
|
1976
|
+
[{ value: "", label: t2("echarts.panel.label.formatterCustom") }, ...LABEL_PRESETS.map((preset) => ({ value: preset.formatter, label: t2(preset.labelKey) }))],
|
|
1468
1977
|
state.formatter ?? "",
|
|
1469
1978
|
(value) => commit({ formatter: value })
|
|
1470
1979
|
)
|
|
1471
1980
|
);
|
|
1472
1981
|
wrap.appendChild(
|
|
1473
|
-
textInput({ value: state.formatter ?? "", placeholder: "
|
|
1982
|
+
textInput({ value: state.formatter ?? "", placeholder: t2("echarts.panel.label.formatterPlaceholder") }, (value) => commit({ formatter: value }))
|
|
1474
1983
|
);
|
|
1475
1984
|
group.appendChild(wrap);
|
|
1476
1985
|
}
|
|
1477
1986
|
if (has("overflow")) {
|
|
1478
|
-
const wrap = field("
|
|
1479
|
-
wrap.appendChild(selectInput(
|
|
1987
|
+
const wrap = field(t2("echarts.panel.label.overflow"));
|
|
1988
|
+
wrap.appendChild(selectInput(overflowOptions(), state.overflow ?? "", (value) => commit({ overflow: value })));
|
|
1480
1989
|
group.appendChild(wrap);
|
|
1481
1990
|
}
|
|
1482
1991
|
}
|
|
1483
1992
|
if (has("position") || has("distance") || has("rotate") || has("offset")) {
|
|
1484
|
-
group.appendChild(el("div", "echarts-label-sub", "
|
|
1993
|
+
group.appendChild(el("div", "echarts-label-sub", t2("echarts.panel.label.position")));
|
|
1485
1994
|
if (has("position")) {
|
|
1486
|
-
const wrap = field("
|
|
1995
|
+
const wrap = field(t2("echarts.panel.label.positionTitle"));
|
|
1487
1996
|
const positions = def ? LABEL_POSITIONS[def.seriesType] ?? [] : [];
|
|
1488
1997
|
wrap.appendChild(
|
|
1489
|
-
selectInput([{ value: "", label: "
|
|
1998
|
+
selectInput([{ value: "", label: t2("echarts.panel.label.positionDefault") }, ...positions.map((p) => ({ value: p.value, label: t2(p.labelKey) }))], state.position ?? "", (value) => commit({ position: value }))
|
|
1490
1999
|
);
|
|
1491
2000
|
group.appendChild(wrap);
|
|
1492
2001
|
}
|
|
@@ -1503,7 +2012,7 @@ function renderLabelGroup(ctx, type) {
|
|
|
1503
2012
|
commit({ offset: [parse(inputX, current[0] ?? 0), parse(inputY, current[1] ?? 0)] });
|
|
1504
2013
|
};
|
|
1505
2014
|
var commitOffset = commitOffset2;
|
|
1506
|
-
const wrap = field("
|
|
2015
|
+
const wrap = field(t2("echarts.panel.label.offset"));
|
|
1507
2016
|
const row = el("div", "echarts-field-row");
|
|
1508
2017
|
const current = state.offset ?? [0, 0];
|
|
1509
2018
|
const inputX = textInput({ value: String(current[0] ?? 0), type: "number" }, () => commitOffset2());
|
|
@@ -1516,11 +2025,11 @@ function renderLabelGroup(ctx, type) {
|
|
|
1516
2025
|
}
|
|
1517
2026
|
const styleKeys = ["fontSize", "fontWeight", "color", "backgroundColor", "borderColor", "borderWidth", "borderRadius", "padding"];
|
|
1518
2027
|
if (styleKeys.some(has)) {
|
|
1519
|
-
group.appendChild(el("div", "echarts-label-sub", "
|
|
2028
|
+
group.appendChild(el("div", "echarts-label-sub", t2("echarts.panel.label.style")));
|
|
1520
2029
|
if (has("fontSize")) group.appendChild(numberField("fontSize", state.fontSize));
|
|
1521
2030
|
if (has("fontWeight")) {
|
|
1522
|
-
const wrap = field("
|
|
1523
|
-
wrap.appendChild(selectInput(
|
|
2031
|
+
const wrap = field(t2("echarts.panel.labelLine.fontWeight"));
|
|
2032
|
+
wrap.appendChild(selectInput(fontWeightOptions(), state.fontWeight ?? "", (value) => commit({ fontWeight: value })));
|
|
1524
2033
|
group.appendChild(wrap);
|
|
1525
2034
|
}
|
|
1526
2035
|
for (const key of ["color", "backgroundColor", "borderColor"]) {
|
|
@@ -1531,12 +2040,12 @@ function renderLabelGroup(ctx, type) {
|
|
|
1531
2040
|
}
|
|
1532
2041
|
}
|
|
1533
2042
|
if (has("labelLine.show")) {
|
|
1534
|
-
group.appendChild(el("div", "echarts-label-sub", "
|
|
2043
|
+
group.appendChild(el("div", "echarts-label-sub", t2("echarts.panel.labelLine")));
|
|
1535
2044
|
group.appendChild(
|
|
1536
|
-
checkboxField("
|
|
2045
|
+
checkboxField(t2("echarts.panel.labelLine.show"), state.labelLine.show === true, (checked) => commit({ labelLine: { show: checked } }))
|
|
1537
2046
|
);
|
|
1538
2047
|
if (has("labelLine.length")) {
|
|
1539
|
-
const wrap = field("
|
|
2048
|
+
const wrap = field(t2("echarts.panel.labelLine.length"));
|
|
1540
2049
|
wrap.appendChild(
|
|
1541
2050
|
textInput(
|
|
1542
2051
|
{ value: state.labelLine.length === void 0 ? "" : String(state.labelLine.length), type: "number" },
|
|
@@ -1546,7 +2055,7 @@ function renderLabelGroup(ctx, type) {
|
|
|
1546
2055
|
group.appendChild(wrap);
|
|
1547
2056
|
}
|
|
1548
2057
|
if (has("labelLine.length2")) {
|
|
1549
|
-
const wrap = field("
|
|
2058
|
+
const wrap = field(t2("echarts.panel.labelLine.length2"));
|
|
1550
2059
|
wrap.appendChild(
|
|
1551
2060
|
textInput(
|
|
1552
2061
|
{ value: state.labelLine.length2 === void 0 ? "" : String(state.labelLine.length2), type: "number" },
|
|
@@ -1557,13 +2066,16 @@ function renderLabelGroup(ctx, type) {
|
|
|
1557
2066
|
}
|
|
1558
2067
|
if (has("labelLine.smooth")) {
|
|
1559
2068
|
group.appendChild(
|
|
1560
|
-
checkboxField("
|
|
2069
|
+
checkboxField(t2("echarts.panel.labelLine.smooth"), state.labelLine.smooth === true, (checked) => commit({ labelLine: { smooth: checked } }))
|
|
1561
2070
|
);
|
|
1562
2071
|
}
|
|
1563
2072
|
}
|
|
1564
2073
|
return group;
|
|
1565
2074
|
}
|
|
1566
2075
|
function renderProperty(ctx) {
|
|
2076
|
+
return withTranslator(ctx.t, () => renderPropertyInner(ctx));
|
|
2077
|
+
}
|
|
2078
|
+
function renderPropertyInner(ctx) {
|
|
1567
2079
|
const element = ctx.element;
|
|
1568
2080
|
const type = elementType(element);
|
|
1569
2081
|
const def = getChartKindDefinition(type);
|
|
@@ -1580,7 +2092,7 @@ function renderProperty(ctx) {
|
|
|
1580
2092
|
form.addEventListener("submit", (event) => event.preventDefault());
|
|
1581
2093
|
root.appendChild(form);
|
|
1582
2094
|
if (has("dataSource")) {
|
|
1583
|
-
const wrap = field("
|
|
2095
|
+
const wrap = field(t2("echarts.panel.dataSourceTitle"));
|
|
1584
2096
|
const current = String(options.chartDataSource ?? "");
|
|
1585
2097
|
wrap.appendChild(
|
|
1586
2098
|
dropdownSelect(
|
|
@@ -1592,7 +2104,7 @@ function renderProperty(ctx) {
|
|
|
1592
2104
|
form.appendChild(wrap);
|
|
1593
2105
|
}
|
|
1594
2106
|
if (has("categoryField")) {
|
|
1595
|
-
const wrap = field("
|
|
2107
|
+
const wrap = field(t2("echarts.panel.categoryField"));
|
|
1596
2108
|
const current = String(options.chartCategoryField ?? "");
|
|
1597
2109
|
wrap.appendChild(
|
|
1598
2110
|
dropdownSelect(
|
|
@@ -1622,14 +2134,14 @@ function renderProperty(ctx) {
|
|
|
1622
2134
|
if (fieldsNow.length > 1) {
|
|
1623
2135
|
const remove = el("button", "pd-button small", "\u2212");
|
|
1624
2136
|
remove.type = "button";
|
|
1625
|
-
remove.title = "
|
|
2137
|
+
remove.title = t2("echarts.panel.removeField");
|
|
1626
2138
|
remove.addEventListener("click", () => syncValueFields(ctx, type, readValueFields(element).filter((_, i) => i !== index)));
|
|
1627
2139
|
row.appendChild(remove);
|
|
1628
2140
|
}
|
|
1629
2141
|
wrap.appendChild(row);
|
|
1630
2142
|
});
|
|
1631
2143
|
if (fieldsNow.length < limit) {
|
|
1632
|
-
const add = el("button", "pd-button small", "
|
|
2144
|
+
const add = el("button", "pd-button small", t2("echarts.panel.addField"));
|
|
1633
2145
|
add.type = "button";
|
|
1634
2146
|
add.addEventListener("click", () => syncValueFields(ctx, type, [...readValueFields(element), ""]));
|
|
1635
2147
|
wrap.appendChild(add);
|
|
@@ -1637,10 +2149,10 @@ function renderProperty(ctx) {
|
|
|
1637
2149
|
form.appendChild(wrap);
|
|
1638
2150
|
}
|
|
1639
2151
|
if (has("seriesField")) {
|
|
1640
|
-
const wrap = field("
|
|
2152
|
+
const wrap = field(t2("echarts.panel.seriesField"));
|
|
1641
2153
|
wrap.appendChild(
|
|
1642
2154
|
textInput(
|
|
1643
|
-
{ value: String(options.chartSeriesField ?? ""), placeholder: "
|
|
2155
|
+
{ value: String(options.chartSeriesField ?? ""), placeholder: t2("echarts.panel.seriesFieldHint") },
|
|
1644
2156
|
(value) => commitOption(ctx, type, panelOption(element), { chartSeriesField: value })
|
|
1645
2157
|
)
|
|
1646
2158
|
);
|
|
@@ -1648,16 +2160,16 @@ function renderProperty(ctx) {
|
|
|
1648
2160
|
}
|
|
1649
2161
|
if (has("bubble")) {
|
|
1650
2162
|
form.appendChild(
|
|
1651
|
-
checkboxField("
|
|
2163
|
+
checkboxField(t2("echarts.panel.bubbleSize"), options.chartBubble === true, (checked) => {
|
|
1652
2164
|
commitOption(ctx, type, panelOption(element), { chartBubble: checked });
|
|
1653
2165
|
})
|
|
1654
2166
|
);
|
|
1655
2167
|
}
|
|
1656
2168
|
if (has("title")) {
|
|
1657
|
-
const wrap = field("
|
|
2169
|
+
const wrap = field(t2("echarts.panel.title"));
|
|
1658
2170
|
wrap.appendChild(
|
|
1659
2171
|
textInput(
|
|
1660
|
-
{ value: String(asObject(panelOption(element).title).text ?? ""), placeholder: "
|
|
2172
|
+
{ value: String(asObject(panelOption(element).title).text ?? ""), placeholder: t2("echarts.panel.titleHint") },
|
|
1661
2173
|
(value) => {
|
|
1662
2174
|
const next = panelOption(element);
|
|
1663
2175
|
next.title = { ...asObject(next.title), text: value };
|
|
@@ -1670,7 +2182,7 @@ function renderProperty(ctx) {
|
|
|
1670
2182
|
if (has("legend")) {
|
|
1671
2183
|
const show = asObject(panelOption(element).legend).show !== false;
|
|
1672
2184
|
form.appendChild(
|
|
1673
|
-
checkboxField("
|
|
2185
|
+
checkboxField(t2("echarts.panel.legend"), show, (checked) => {
|
|
1674
2186
|
const next = panelOption(element);
|
|
1675
2187
|
next.legend = { ...asObject(next.legend), show: checked };
|
|
1676
2188
|
commitOption(ctx, type, next);
|
|
@@ -1678,12 +2190,12 @@ function renderProperty(ctx) {
|
|
|
1678
2190
|
);
|
|
1679
2191
|
}
|
|
1680
2192
|
if (has("palette")) {
|
|
1681
|
-
const wrap = field("
|
|
2193
|
+
const wrap = field(t2("echarts.panel.palette"));
|
|
1682
2194
|
const select = el("select", "pd-select");
|
|
1683
2195
|
for (const palette of palettes) {
|
|
1684
2196
|
const optionEl = el("option");
|
|
1685
2197
|
optionEl.value = palette.key;
|
|
1686
|
-
optionEl.textContent = palette.label;
|
|
2198
|
+
optionEl.textContent = palette.labelKey ? t2(palette.labelKey) : palette.label;
|
|
1687
2199
|
select.appendChild(optionEl);
|
|
1688
2200
|
}
|
|
1689
2201
|
select.value = readPaletteKey(panelOption(element), palettes);
|
|
@@ -1703,7 +2215,7 @@ function renderProperty(ctx) {
|
|
|
1703
2215
|
const series = seriesList(panelOption(element));
|
|
1704
2216
|
const stacked = series.some((item) => item.stack !== void 0 && item.stack !== null && item.stack !== "");
|
|
1705
2217
|
form.appendChild(
|
|
1706
|
-
checkboxField("
|
|
2218
|
+
checkboxField(t2("echarts.panel.stack"), stacked, (checked) => {
|
|
1707
2219
|
const next = panelOption(element);
|
|
1708
2220
|
for (const item of seriesList(next)) {
|
|
1709
2221
|
if (checked) item.stack = "total";
|
|
@@ -1714,7 +2226,7 @@ function renderProperty(ctx) {
|
|
|
1714
2226
|
);
|
|
1715
2227
|
}
|
|
1716
2228
|
if (has("innerRadius")) {
|
|
1717
|
-
const wrap = field("
|
|
2229
|
+
const wrap = field(t2("echarts.panel.innerRadius"));
|
|
1718
2230
|
const radius = seriesList(panelOption(element))[0]?.radius;
|
|
1719
2231
|
const inner = Array.isArray(radius) ? Number(String(radius[0] ?? "40%").replace("%", "")) || 40 : 40;
|
|
1720
2232
|
wrap.appendChild(
|
|
@@ -1728,14 +2240,14 @@ function renderProperty(ctx) {
|
|
|
1728
2240
|
form.appendChild(wrap);
|
|
1729
2241
|
}
|
|
1730
2242
|
if (has("padding")) {
|
|
1731
|
-
const wrap = field(
|
|
2243
|
+
const wrap = field(t2("echarts.panel.paddingTRBL"));
|
|
1732
2244
|
const padding = readFunnelPadding(panelOption(element), widthMm, heightMm);
|
|
1733
2245
|
const row = el("div", "echarts-field-row");
|
|
1734
2246
|
const sides = [
|
|
1735
|
-
{ side: "top", title: "
|
|
1736
|
-
{ side: "right", title: "
|
|
1737
|
-
{ side: "bottom", title: "
|
|
1738
|
-
{ side: "left", title: "
|
|
2247
|
+
{ side: "top", title: t2("echarts.panel.paddingTop") },
|
|
2248
|
+
{ side: "right", title: t2("echarts.panel.paddingRight") },
|
|
2249
|
+
{ side: "bottom", title: t2("echarts.panel.paddingBottom") },
|
|
2250
|
+
{ side: "left", title: t2("echarts.panel.paddingLeft") }
|
|
1739
2251
|
];
|
|
1740
2252
|
for (const { side, title } of sides) {
|
|
1741
2253
|
row.appendChild(
|
|
@@ -1752,7 +2264,7 @@ function renderProperty(ctx) {
|
|
|
1752
2264
|
form.appendChild(wrap);
|
|
1753
2265
|
}
|
|
1754
2266
|
if (has("radius")) {
|
|
1755
|
-
const wrap = field("
|
|
2267
|
+
const wrap = field(t2("echarts.panel.radius"));
|
|
1756
2268
|
wrap.appendChild(
|
|
1757
2269
|
textInput(
|
|
1758
2270
|
{ value: String(readRadarRadius(panelOption(element), widthMm, heightMm)), type: "number", min: 20, max: 100 },
|
|
@@ -1766,7 +2278,7 @@ function renderProperty(ctx) {
|
|
|
1766
2278
|
form.appendChild(wrap);
|
|
1767
2279
|
}
|
|
1768
2280
|
if (has("gaugeRange")) {
|
|
1769
|
-
const wrap = field("
|
|
2281
|
+
const wrap = field(t2("echarts.panel.minMax"));
|
|
1770
2282
|
const series = seriesList(panelOption(element));
|
|
1771
2283
|
const row = el("div", "echarts-field-row");
|
|
1772
2284
|
row.appendChild(
|
|
@@ -1788,7 +2300,7 @@ function renderProperty(ctx) {
|
|
|
1788
2300
|
wrap.appendChild(row);
|
|
1789
2301
|
form.appendChild(wrap);
|
|
1790
2302
|
}
|
|
1791
|
-
form.appendChild(el("p", "pd-hint",
|
|
2303
|
+
form.appendChild(el("p", "pd-hint", panelHint()));
|
|
1792
2304
|
return root;
|
|
1793
2305
|
}
|
|
1794
2306
|
var CHART_ELEMENT_UI = (0, import_plugin_kit.defineElementUI)({
|
|
@@ -1796,9 +2308,11 @@ var CHART_ELEMENT_UI = (0, import_plugin_kit.defineElementUI)({
|
|
|
1796
2308
|
renderCanvas,
|
|
1797
2309
|
renderProperty,
|
|
1798
2310
|
hasProperties: chartHasProperties,
|
|
1799
|
-
group: "
|
|
2311
|
+
group: t2("echarts.panel.group"),
|
|
1800
2312
|
searchKeywords: SEARCH_KEYWORDS,
|
|
1801
|
-
styles: STYLES
|
|
2313
|
+
styles: STYLES,
|
|
2314
|
+
i18nId: "echarts",
|
|
2315
|
+
locales: { "zh-CN": zh_CN_default.echarts, "en-US": en_US_default.echarts, "th-TH": th_TH_default.echarts }
|
|
1802
2316
|
});
|
|
1803
2317
|
var disposeHandle2;
|
|
1804
2318
|
function installChartCommonUI() {
|