@worm-print-platform/echarts 1.6.0 → 1.6.1
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 +1 -1
- 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/marketplace.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @worm-print-platform/echarts v1.6.
|
|
2
|
+
* @worm-print-platform/echarts v1.6.1
|
|
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
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
// src/plugin.ts
|
|
9
|
+
import { t } from "@worm-print-platform/core/i18n";
|
|
9
10
|
import {
|
|
10
11
|
defineElementPlugin,
|
|
11
12
|
getElementPluginById,
|
|
@@ -20,6 +21,7 @@ var CHART_KIND_DEFINITIONS = [
|
|
|
20
21
|
{
|
|
21
22
|
type: "barChart",
|
|
22
23
|
label: "\u67F1\u72B6\u56FE",
|
|
24
|
+
labelKey: "echarts.series.typeNames.bar",
|
|
23
25
|
icon: "ChartColumn",
|
|
24
26
|
seriesType: "bar",
|
|
25
27
|
orientation: "vertical",
|
|
@@ -27,11 +29,13 @@ var CHART_KIND_DEFINITIONS = [
|
|
|
27
29
|
requiredOptionKeys: BASE_REQUIRED,
|
|
28
30
|
defaultWidth: 100,
|
|
29
31
|
defaultHeight: 60,
|
|
30
|
-
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"
|
|
32
|
+
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",
|
|
33
|
+
notesKey: "echarts.notes.bar"
|
|
31
34
|
},
|
|
32
35
|
{
|
|
33
36
|
type: "barHChart",
|
|
34
37
|
label: "\u6761\u5F62\u56FE",
|
|
38
|
+
labelKey: "echarts.series.typeNames.barH",
|
|
35
39
|
icon: "ChartBar",
|
|
36
40
|
seriesType: "bar",
|
|
37
41
|
orientation: "horizontal",
|
|
@@ -39,95 +43,112 @@ var CHART_KIND_DEFINITIONS = [
|
|
|
39
43
|
requiredOptionKeys: BASE_REQUIRED,
|
|
40
44
|
defaultWidth: 100,
|
|
41
45
|
defaultHeight: 60,
|
|
42
|
-
notes: "\u6A2A\u5411\u6761\u5F62\u56FE\uFF1AxAxis \u4E3A\u6570\u503C\u3001yAxis \u4E3A\u7C7B\u76EE\uFF1B\u7C7B\u76EE\u5199 yAxis.data \u7684 $data \u5360\u4F4D"
|
|
46
|
+
notes: "\u6A2A\u5411\u6761\u5F62\u56FE\uFF1AxAxis \u4E3A\u6570\u503C\u3001yAxis \u4E3A\u7C7B\u76EE\uFF1B\u7C7B\u76EE\u5199 yAxis.data \u7684 $data \u5360\u4F4D",
|
|
47
|
+
notesKey: "echarts.notes.barH"
|
|
43
48
|
},
|
|
44
49
|
{
|
|
45
50
|
type: "lineChart",
|
|
46
51
|
label: "\u6298\u7EBF\u56FE",
|
|
52
|
+
labelKey: "echarts.series.typeNames.line",
|
|
47
53
|
icon: "ChartLine",
|
|
48
54
|
seriesType: "line",
|
|
49
55
|
fields: [...DATA_FIELDS, ...STYLE_FIELDS, "stack", "label"],
|
|
50
56
|
requiredOptionKeys: BASE_REQUIRED,
|
|
51
57
|
defaultWidth: 100,
|
|
52
58
|
defaultHeight: 60,
|
|
53
|
-
notes: "\u6298\u7EBF\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF1B\u4E0D\u5199 areaStyle"
|
|
59
|
+
notes: "\u6298\u7EBF\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF1B\u4E0D\u5199 areaStyle",
|
|
60
|
+
notesKey: "echarts.notes.line"
|
|
54
61
|
},
|
|
55
62
|
{
|
|
56
63
|
type: "areaChart",
|
|
57
64
|
label: "\u9762\u79EF\u56FE",
|
|
65
|
+
labelKey: "echarts.series.typeNames.area",
|
|
58
66
|
icon: "ChartArea",
|
|
59
67
|
seriesType: "line",
|
|
60
68
|
fields: [...DATA_FIELDS, ...STYLE_FIELDS, "stack", "label"],
|
|
61
69
|
requiredOptionKeys: BASE_REQUIRED,
|
|
62
70
|
defaultWidth: 100,
|
|
63
71
|
defaultHeight: 60,
|
|
64
|
-
notes: "\u9762\u79EF\u56FE\uFF1A\u6298\u7EBF + series[].areaStyle\uFF1B\u5176\u4F59\u540C\u6298\u7EBF\u56FE"
|
|
72
|
+
notes: "\u9762\u79EF\u56FE\uFF1A\u6298\u7EBF + series[].areaStyle\uFF1B\u5176\u4F59\u540C\u6298\u7EBF\u56FE",
|
|
73
|
+
notesKey: "echarts.notes.area"
|
|
65
74
|
},
|
|
66
75
|
{
|
|
67
76
|
type: "pieChart",
|
|
68
77
|
label: "\u997C\u56FE",
|
|
78
|
+
labelKey: "echarts.series.typeNames.pie",
|
|
69
79
|
icon: "ChartPie",
|
|
70
80
|
seriesType: "pie",
|
|
71
81
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "label"],
|
|
72
82
|
requiredOptionKeys: BASE_REQUIRED,
|
|
73
83
|
defaultWidth: 60,
|
|
74
84
|
defaultHeight: 60,
|
|
75
|
-
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"
|
|
85
|
+
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",
|
|
86
|
+
notesKey: "echarts.notes.pie"
|
|
76
87
|
},
|
|
77
88
|
{
|
|
78
89
|
type: "doughnutChart",
|
|
79
90
|
label: "\u73AF\u5F62\u56FE",
|
|
91
|
+
labelKey: "echarts.series.typeNames.doughnut",
|
|
80
92
|
icon: "Donut",
|
|
81
93
|
seriesType: "pie",
|
|
82
94
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "innerRadius", "label"],
|
|
83
95
|
requiredOptionKeys: BASE_REQUIRED,
|
|
84
96
|
defaultWidth: 60,
|
|
85
97
|
defaultHeight: 60,
|
|
86
|
-
notes: "\u73AF\u5F62\u56FE\uFF1A\u997C\u56FE + radius:[\u5185\u5F84,\u5916\u5F84]\uFF1B\u5185\u5F84\u7531\u9762\u677F\u914D\u7F6E"
|
|
98
|
+
notes: "\u73AF\u5F62\u56FE\uFF1A\u997C\u56FE + radius:[\u5185\u5F84,\u5916\u5F84]\uFF1B\u5185\u5F84\u7531\u9762\u677F\u914D\u7F6E",
|
|
99
|
+
notesKey: "echarts.notes.doughnut"
|
|
87
100
|
},
|
|
88
101
|
{
|
|
89
102
|
type: "scatterChart",
|
|
90
103
|
label: "\u6563\u70B9\u56FE",
|
|
104
|
+
labelKey: "echarts.series.typeNames.scatter",
|
|
91
105
|
icon: "ChartScatter",
|
|
92
106
|
seriesType: "scatter",
|
|
93
107
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "bubble", "label"],
|
|
94
108
|
requiredOptionKeys: BASE_REQUIRED,
|
|
95
109
|
defaultWidth: 80,
|
|
96
110
|
defaultHeight: 60,
|
|
97
|
-
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"
|
|
111
|
+
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",
|
|
112
|
+
notesKey: "echarts.notes.scatter"
|
|
98
113
|
},
|
|
99
114
|
{
|
|
100
115
|
type: "radarChart",
|
|
101
116
|
label: "\u96F7\u8FBE\u56FE",
|
|
117
|
+
labelKey: "echarts.series.typeNames.radar",
|
|
102
118
|
icon: "Radar",
|
|
103
119
|
seriesType: "radar",
|
|
104
120
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "radius", "label"],
|
|
105
121
|
requiredOptionKeys: BASE_REQUIRED,
|
|
106
122
|
defaultWidth: 70,
|
|
107
123
|
defaultHeight: 60,
|
|
108
|
-
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"
|
|
124
|
+
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",
|
|
125
|
+
notesKey: "echarts.notes.radar"
|
|
109
126
|
},
|
|
110
127
|
{
|
|
111
128
|
type: "funnelChart",
|
|
112
129
|
label: "\u6F0F\u6597\u56FE",
|
|
130
|
+
labelKey: "echarts.series.typeNames.funnel",
|
|
113
131
|
icon: "Funnel",
|
|
114
132
|
seriesType: "funnel",
|
|
115
133
|
fields: ["dataSource", "categoryField", "valueFields", ...STYLE_FIELDS, "padding", "label"],
|
|
116
134
|
requiredOptionKeys: BASE_REQUIRED,
|
|
117
135
|
defaultWidth: 60,
|
|
118
136
|
defaultHeight: 60,
|
|
119
|
-
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"
|
|
137
|
+
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",
|
|
138
|
+
notesKey: "echarts.notes.funnel"
|
|
120
139
|
},
|
|
121
140
|
{
|
|
122
141
|
type: "gaugeChart",
|
|
123
142
|
label: "\u4EEA\u8868\u76D8",
|
|
143
|
+
labelKey: "echarts.series.typeNames.gauge",
|
|
124
144
|
icon: "Gauge",
|
|
125
145
|
seriesType: "gauge",
|
|
126
146
|
fields: ["dataSource", "valueFields", ...STYLE_FIELDS, "gaugeRange", "label"],
|
|
127
147
|
requiredOptionKeys: BASE_REQUIRED,
|
|
128
148
|
defaultWidth: 60,
|
|
129
149
|
defaultHeight: 60,
|
|
130
|
-
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"
|
|
150
|
+
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",
|
|
151
|
+
notesKey: "echarts.notes.gauge"
|
|
131
152
|
}
|
|
132
153
|
];
|
|
133
154
|
var CHART_KINDS = CHART_KIND_DEFINITIONS.map((def) => def.type);
|
|
@@ -323,10 +344,10 @@ import { configurePlugin, getPluginConfig } from "@worm-print-platform/core/desi
|
|
|
323
344
|
// src/constants.ts
|
|
324
345
|
var CHART_PLUGIN_ID = "@worm-print-platform/echarts";
|
|
325
346
|
var CHART_PALETTES = [
|
|
326
|
-
{ key: "default", label: "\u9ED8\u8BA4\u84DD", colors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de"] },
|
|
327
|
-
{ key: "fresh", label: "\u6E05\u65B0\u7EFF", colors: ["#2f9e6e", "#5cc9a7", "#9ad6c1", "#f2c94c", "#4a90e2"] },
|
|
328
|
-
{ key: "warm", label: "\u6696\u6A59\u7EA2", colors: ["#f2704e", "#f7a35c", "#f7d56d", "#c54e3f", "#8f5a4a"] },
|
|
329
|
-
{ key: "purple", label: "\u7D2B\u7070", colors: ["#7b61ff", "#9b8cff", "#c3baff", "#596275", "#8d99ae"] }
|
|
347
|
+
{ key: "default", label: "\u9ED8\u8BA4\u84DD", labelKey: "echarts.palette.default", colors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de"] },
|
|
348
|
+
{ key: "fresh", label: "\u6E05\u65B0\u7EFF", labelKey: "echarts.palette.fresh", colors: ["#2f9e6e", "#5cc9a7", "#9ad6c1", "#f2c94c", "#4a90e2"] },
|
|
349
|
+
{ key: "warm", label: "\u6696\u6A59\u7EA2", labelKey: "echarts.palette.warm", colors: ["#f2704e", "#f7a35c", "#f7d56d", "#c54e3f", "#8f5a4a"] },
|
|
350
|
+
{ key: "purple", label: "\u7D2B\u7070", labelKey: "echarts.palette.purple", colors: ["#7b61ff", "#9b8cff", "#c3baff", "#596275", "#8d99ae"] }
|
|
330
351
|
];
|
|
331
352
|
var FALLBACK_SAMPLE_CATEGORIES = ["\u793A\u4F8B\u4E00", "\u793A\u4F8B\u4E8C", "\u793A\u4F8B\u4E09"];
|
|
332
353
|
var FUNNEL_PADDING_DEFAULTS = { top: 6, right: 25, bottom: 6, left: 5 };
|
|
@@ -414,7 +435,7 @@ function getChartPalettes() {
|
|
|
414
435
|
const overrides = getChartPluginConfig().palettes ?? {};
|
|
415
436
|
const builtin = CHART_PALETTES.map((palette) => {
|
|
416
437
|
const custom = overrides[palette.key];
|
|
417
|
-
return custom ? { key: palette.key, label: custom.label ?? palette.label, colors: custom.colors } : { key: palette.key, label: palette.label, colors: palette.colors };
|
|
438
|
+
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 };
|
|
418
439
|
});
|
|
419
440
|
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 }));
|
|
420
441
|
return [...builtin, ...extra];
|
|
@@ -627,55 +648,55 @@ function writeRadarRadius(option, percent) {
|
|
|
627
648
|
|
|
628
649
|
// src/label.ts
|
|
629
650
|
var LABEL_PRESETS = [
|
|
630
|
-
{ key: "value", label: "\u6570\u503C", formatter: "{c}" },
|
|
631
|
-
{ key: "name-value", label: "\u540D\u79F0: \u6570\u503C", formatter: "{b}: {c}" },
|
|
632
|
-
{ key: "name", label: "\u540D\u79F0", formatter: "{b}" },
|
|
633
|
-
{ key: "percent", label: "\u767E\u5206\u6BD4", formatter: "{d}%" }
|
|
651
|
+
{ key: "value", label: "\u6570\u503C", labelKey: "echarts.label.formatter.value", formatter: "{c}" },
|
|
652
|
+
{ key: "name-value", label: "\u540D\u79F0: \u6570\u503C", labelKey: "echarts.label.formatter.nameValue", formatter: "{b}: {c}" },
|
|
653
|
+
{ key: "name", label: "\u540D\u79F0", labelKey: "echarts.label.formatter.name", formatter: "{b}" },
|
|
654
|
+
{ key: "percent", label: "\u767E\u5206\u6BD4", labelKey: "echarts.label.formatter.percent", formatter: "{d}%" }
|
|
634
655
|
];
|
|
635
656
|
var LABEL_POSITIONS = {
|
|
636
657
|
bar: [
|
|
637
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
638
|
-
{ value: "inside", label: "\u5185\u90E8" },
|
|
639
|
-
{ value: "insideTop", label: "\u5185\u90E8\u9876\u7AEF" },
|
|
640
|
-
{ value: "bottom", label: "\u5E95\u90E8" },
|
|
641
|
-
{ value: "insideBottom", label: "\u5185\u90E8\u5E95\u7AEF" },
|
|
642
|
-
{ value: "right", label: "\u53F3\u4FA7" },
|
|
643
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
644
|
-
{ value: "middle", label: "\u5C45\u4E2D" }
|
|
658
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.bar.top" },
|
|
659
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.bar.inside" },
|
|
660
|
+
{ value: "insideTop", label: "\u5185\u90E8\u9876\u7AEF", labelKey: "echarts.label.position.bar.insideTop" },
|
|
661
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.bar.bottom" },
|
|
662
|
+
{ value: "insideBottom", label: "\u5185\u90E8\u5E95\u7AEF", labelKey: "echarts.label.position.bar.insideBottom" },
|
|
663
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.bar.right" },
|
|
664
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.bar.left" },
|
|
665
|
+
{ value: "middle", label: "\u5C45\u4E2D", labelKey: "echarts.label.position.bar.middle" }
|
|
645
666
|
],
|
|
646
667
|
line: [
|
|
647
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
648
|
-
{ value: "bottom", label: "\u5E95\u90E8" },
|
|
649
|
-
{ value: "inside", label: "\u5185\u90E8" },
|
|
650
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
651
|
-
{ value: "right", label: "\u53F3\u4FA7" }
|
|
668
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.line.top" },
|
|
669
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.line.bottom" },
|
|
670
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.line.inside" },
|
|
671
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.line.left" },
|
|
672
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.line.right" }
|
|
652
673
|
],
|
|
653
674
|
pie: [
|
|
654
|
-
{ value: "outside", label: "\u5916\u4FA7" },
|
|
655
|
-
{ value: "inside", label: "\u5185\u90E8" },
|
|
656
|
-
{ value: "center", label: "\u4E2D\u5FC3" }
|
|
675
|
+
{ value: "outside", label: "\u5916\u4FA7", labelKey: "echarts.label.position.pie.outside" },
|
|
676
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.pie.inside" },
|
|
677
|
+
{ value: "center", label: "\u4E2D\u5FC3", labelKey: "echarts.label.position.pie.center" }
|
|
657
678
|
],
|
|
658
679
|
scatter: [
|
|
659
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
660
|
-
{ value: "bottom", label: "\u5E95\u90E8" },
|
|
661
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
662
|
-
{ value: "right", label: "\u53F3\u4FA7" },
|
|
663
|
-
{ value: "inside", label: "\u5185\u90E8" }
|
|
680
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.scatter.top" },
|
|
681
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.scatter.bottom" },
|
|
682
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.scatter.left" },
|
|
683
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.scatter.right" },
|
|
684
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.scatter.inside" }
|
|
664
685
|
],
|
|
665
686
|
radar: [
|
|
666
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
667
|
-
{ value: "bottom", label: "\u5E95\u90E8" },
|
|
668
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
669
|
-
{ value: "right", label: "\u53F3\u4FA7" },
|
|
670
|
-
{ value: "inside", label: "\u5185\u90E8" }
|
|
687
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.radar.top" },
|
|
688
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.radar.bottom" },
|
|
689
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.radar.left" },
|
|
690
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.radar.right" },
|
|
691
|
+
{ value: "inside", label: "\u5185\u90E8", labelKey: "echarts.label.position.radar.inside" }
|
|
671
692
|
],
|
|
672
693
|
funnel: [
|
|
673
|
-
{ value: "outer", label: "\u5916\u4FA7" },
|
|
674
|
-
{ value: "inner", label: "\u5185\u90E8" },
|
|
675
|
-
{ value: "left", label: "\u5DE6\u4FA7" },
|
|
676
|
-
{ value: "right", label: "\u53F3\u4FA7" },
|
|
677
|
-
{ value: "top", label: "\u9876\u90E8" },
|
|
678
|
-
{ value: "bottom", label: "\u5E95\u90E8" }
|
|
694
|
+
{ value: "outer", label: "\u5916\u4FA7", labelKey: "echarts.label.position.funnel.outer" },
|
|
695
|
+
{ value: "inner", label: "\u5185\u90E8", labelKey: "echarts.label.position.funnel.inner" },
|
|
696
|
+
{ value: "left", label: "\u5DE6\u4FA7", labelKey: "echarts.label.position.funnel.left" },
|
|
697
|
+
{ value: "right", label: "\u53F3\u4FA7", labelKey: "echarts.label.position.funnel.right" },
|
|
698
|
+
{ value: "top", label: "\u9876\u90E8", labelKey: "echarts.label.position.funnel.top" },
|
|
699
|
+
{ value: "bottom", label: "\u5E95\u90E8", labelKey: "echarts.label.position.funnel.bottom" }
|
|
679
700
|
],
|
|
680
701
|
gauge: []
|
|
681
702
|
};
|
|
@@ -1026,26 +1047,32 @@ var CHART_EXECUTOR_VERSION = "2";
|
|
|
1026
1047
|
|
|
1027
1048
|
// src/plugin.ts
|
|
1028
1049
|
var CHART_OPTION_META = {
|
|
1029
|
-
chartOption: { kind: "object", label: "
|
|
1030
|
-
chartDataSource: { kind: "text", label: "
|
|
1031
|
-
chartCategoryField: { kind: "text", label: "
|
|
1032
|
-
chartValueFields: { kind: "object", label: "
|
|
1033
|
-
chartSeriesField: { kind: "text", label: "
|
|
1050
|
+
chartOption: { kind: "object", label: t("echarts.meta.chartOption") },
|
|
1051
|
+
chartDataSource: { kind: "text", label: t("echarts.meta.dataSource") },
|
|
1052
|
+
chartCategoryField: { kind: "text", label: t("echarts.meta.categoryField") },
|
|
1053
|
+
chartValueFields: { kind: "object", label: t("echarts.meta.valueFields") },
|
|
1054
|
+
chartSeriesField: { kind: "text", label: t("echarts.meta.seriesField") }
|
|
1034
1055
|
};
|
|
1035
1056
|
var SCATTER_OPTION_META = {
|
|
1036
1057
|
...CHART_OPTION_META,
|
|
1037
|
-
chartBubble: { kind: "bool", label: "
|
|
1058
|
+
chartBubble: { kind: "bool", label: t("echarts.meta.bubbleSize") }
|
|
1038
1059
|
};
|
|
1039
1060
|
var CHART_PLUGIN = defineElementPlugin({
|
|
1040
1061
|
id: CHART_PLUGIN_ID,
|
|
1041
1062
|
version: CHART_EXECUTOR_VERSION,
|
|
1042
1063
|
kinds: CHART_KIND_DEFINITIONS.map((def) => ({
|
|
1043
1064
|
type: def.type,
|
|
1044
|
-
|
|
1065
|
+
// getter:每次读取按当前实例语言取词,避免模块加载期冻结为单一语言
|
|
1066
|
+
get label() {
|
|
1067
|
+
return t(def.labelKey);
|
|
1068
|
+
},
|
|
1045
1069
|
icon: def.icon,
|
|
1046
1070
|
fixedHeight: true,
|
|
1047
1071
|
requiredOptionKeys: def.requiredOptionKeys,
|
|
1048
|
-
|
|
1072
|
+
// getter:每次读取按当前实例语言取词,避免模块加载期冻结为单一语言
|
|
1073
|
+
get notes() {
|
|
1074
|
+
return t(def.notesKey);
|
|
1075
|
+
},
|
|
1049
1076
|
optionMeta: def.type === "scatterChart" ? SCATTER_OPTION_META : CHART_OPTION_META,
|
|
1050
1077
|
defaultOptions: (partial) => chartFactoryDefaults(def.type, partial),
|
|
1051
1078
|
binding: { bind: (options, data) => bindChartData(def.type, options, data) }
|
|
@@ -1077,10 +1104,489 @@ registerChartPlugin();
|
|
|
1077
1104
|
// src/index.ts
|
|
1078
1105
|
registerChartPlugin();
|
|
1079
1106
|
|
|
1107
|
+
// src/ui.ts
|
|
1108
|
+
import { t as globalT } from "@worm-print-platform/core/i18n";
|
|
1109
|
+
|
|
1110
|
+
// src/i18n/zh-CN.json
|
|
1111
|
+
var zh_CN_default = {
|
|
1112
|
+
echarts: {
|
|
1113
|
+
"echarts.panel.chart": "\u56FE\u8868",
|
|
1114
|
+
"echarts.panel.config": "\u914D\u7F6E",
|
|
1115
|
+
"echarts.panel.dataSource": "\u6570\u636E\u6E90",
|
|
1116
|
+
"echarts.panel.category": "\u7C7B\u76EE",
|
|
1117
|
+
"echarts.panel.value": "\u6570\u503C",
|
|
1118
|
+
"echarts.panel.series": "\u7CFB\u5217",
|
|
1119
|
+
"echarts.panel.chartType.bar": "\u67F1\u72B6",
|
|
1120
|
+
"echarts.panel.chartType.barH": "\u6761\u5F62",
|
|
1121
|
+
"echarts.panel.chartType.line": "\u6298\u7EBF",
|
|
1122
|
+
"echarts.panel.chartType.area": "\u9762\u79EF",
|
|
1123
|
+
"echarts.panel.chartType.pie": "\u997C",
|
|
1124
|
+
"echarts.panel.chartType.doughnut": "\u73AF\u5F62",
|
|
1125
|
+
"echarts.panel.chartType.scatter": "\u6563\u70B9",
|
|
1126
|
+
"echarts.panel.chartType.radar": "\u96F7\u8FBE",
|
|
1127
|
+
"echarts.panel.chartType.funnel": "\u6F0F\u6597",
|
|
1128
|
+
"echarts.panel.chartType.gauge": "\u4EEA\u8868",
|
|
1129
|
+
"echarts.panel.dataLabel": "\u6570\u636E\u6807\u7B7E",
|
|
1130
|
+
"echarts.panel.valueLabel": "\u6570\u503C\u6807\u7B7E",
|
|
1131
|
+
"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",
|
|
1132
|
+
"echarts.panel.field.dimension": "\u7EF4\u5EA6\u5B57\u6BB5\uFF08\u6BCF\u4E2A\u5B57\u6BB5\u4E00\u4E2A\u7EF4\u5EA6\uFF09",
|
|
1133
|
+
"echarts.panel.field.value": "\u6570\u503C\u5B57\u6BB5",
|
|
1134
|
+
"echarts.panel.field.valueMulti": "\u6570\u503C\u5B57\u6BB5\uFF08\u591A\u503C\u591A\u7CFB\u5217\uFF09",
|
|
1135
|
+
"echarts.panel.default": "\uFF08\u9ED8\u8BA4\uFF09",
|
|
1136
|
+
"echarts.panel.current": "\uFF08\u5F53\u524D\uFF09",
|
|
1137
|
+
"echarts.panel.defaultFirstArray": "\uFF08\u9ED8\u8BA4\uFF1A\u9876\u5C42\u7B2C\u4E00\u4E2A\u6570\u7EC4\uFF09",
|
|
1138
|
+
"echarts.panel.error.invalidOption": "\u56FE\u8868 option \u975E\u6CD5\uFF1A\u9700\u8981\u5BF9\u8C61",
|
|
1139
|
+
"echarts.panel.chartFallback": "\u56FE\u8868",
|
|
1140
|
+
"echarts.panel.optionDefault": "\uFF08\u9ED8\u8BA4\uFF09",
|
|
1141
|
+
"echarts.panel.overflow.default": "\u9ED8\u8BA4",
|
|
1142
|
+
"echarts.panel.overflow.none": "\u4E0D\u5904\u7406\uFF08\u663E\u793A\u5B8C\u6574\uFF09",
|
|
1143
|
+
"echarts.panel.overflow.truncate": "\u622A\u65AD",
|
|
1144
|
+
"echarts.panel.overflow.break": "\u6362\u884C",
|
|
1145
|
+
"echarts.panel.fontWeight.default": "\u9ED8\u8BA4",
|
|
1146
|
+
"echarts.panel.fontWeight.normal": "\u5E38\u89C4",
|
|
1147
|
+
"echarts.panel.fontWeight.bold": "\u52A0\u7C97",
|
|
1148
|
+
"echarts.panel.label.distance": "\u8DDD\u79BB",
|
|
1149
|
+
"echarts.panel.label.rotate": "\u65CB\u8F6C\uFF08\u5EA6\uFF09",
|
|
1150
|
+
"echarts.panel.label.fontSize": "\u5B57\u53F7",
|
|
1151
|
+
"echarts.panel.label.fontWeight": "\u5B57\u91CD",
|
|
1152
|
+
"echarts.panel.label.color": "\u6587\u5B57\u989C\u8272",
|
|
1153
|
+
"echarts.panel.label.backgroundColor": "\u80CC\u666F\u8272",
|
|
1154
|
+
"echarts.panel.label.borderColor": "\u8FB9\u6846\u8272",
|
|
1155
|
+
"echarts.panel.label.borderWidth": "\u8FB9\u6846\u5BBD\u5EA6",
|
|
1156
|
+
"echarts.panel.label.borderRadius": "\u5706\u89D2",
|
|
1157
|
+
"echarts.panel.label.padding": "\u5185\u8FB9\u8DDD",
|
|
1158
|
+
"echarts.panel.label.show": "\u663E\u793A\u6570\u636E\u6807\u7B7E",
|
|
1159
|
+
"echarts.panel.label.content": "\u5185\u5BB9",
|
|
1160
|
+
"echarts.panel.label.formatterTitle": "\u6570\u636E\u6807\u7B7E\u5185\u5BB9",
|
|
1161
|
+
"echarts.panel.label.formatterCustom": "\u81EA\u5B9A\u4E49 / \u9ED8\u8BA4",
|
|
1162
|
+
"echarts.panel.label.formatterPlaceholder": "\u5982 {b}: {c}",
|
|
1163
|
+
"echarts.panel.label.overflow": "\u6EA2\u51FA\u5904\u7406",
|
|
1164
|
+
"echarts.panel.label.position": "\u4F4D\u7F6E",
|
|
1165
|
+
"echarts.panel.label.positionTitle": "\u6807\u7B7E\u4F4D\u7F6E",
|
|
1166
|
+
"echarts.panel.label.positionDefault": "\u9ED8\u8BA4",
|
|
1167
|
+
"echarts.panel.label.offset": "\u504F\u79FB X / Y",
|
|
1168
|
+
"echarts.panel.label.style": "\u6837\u5F0F",
|
|
1169
|
+
"echarts.panel.labelLine.fontWeight": "\u5B57\u91CD",
|
|
1170
|
+
"echarts.panel.labelLine": "\u5F15\u5BFC\u7EBF",
|
|
1171
|
+
"echarts.panel.labelLine.show": "\u663E\u793A\u5F15\u5BFC\u7EBF",
|
|
1172
|
+
"echarts.panel.labelLine.length": "\u5F15\u5BFC\u7EBF\u957F\u5EA6",
|
|
1173
|
+
"echarts.panel.labelLine.length2": "\u7B2C\u4E8C\u6BB5\u957F\u5EA6",
|
|
1174
|
+
"echarts.panel.labelLine.smooth": "\u5E73\u6ED1\u5F15\u5BFC\u7EBF",
|
|
1175
|
+
"echarts.panel.dataSourceTitle": "\u6570\u636E\u6E90",
|
|
1176
|
+
"echarts.panel.categoryField": "\u7C7B\u76EE\u5B57\u6BB5",
|
|
1177
|
+
"echarts.panel.removeField": "\u5220\u9664\u8BE5\u5B57\u6BB5",
|
|
1178
|
+
"echarts.panel.addField": "+ \u6DFB\u52A0\u5B57\u6BB5",
|
|
1179
|
+
"echarts.panel.seriesField": "\u7CFB\u5217\u62C6\u5206\u5B57\u6BB5",
|
|
1180
|
+
"echarts.panel.seriesFieldHint": "\u53EF\u9009\uFF0C\u5982 region\uFF08\u6309\u503C\u62C6\u6210\u591A\u7CFB\u5217\uFF09",
|
|
1181
|
+
"echarts.panel.bubbleSize": "\u6C14\u6CE1\u5927\u5C0F",
|
|
1182
|
+
"echarts.panel.title": "\u56FE\u8868\u6807\u9898",
|
|
1183
|
+
"echarts.panel.titleHint": "\u7559\u7A7A\u4E0D\u663E\u793A\u6807\u9898",
|
|
1184
|
+
"echarts.panel.legend": "\u663E\u793A\u56FE\u4F8B",
|
|
1185
|
+
"echarts.panel.palette": "\u914D\u8272",
|
|
1186
|
+
"echarts.palette.default": "\u9ED8\u8BA4\u84DD",
|
|
1187
|
+
"echarts.palette.fresh": "\u6E05\u65B0\u7EFF",
|
|
1188
|
+
"echarts.palette.warm": "\u6696\u6A59\u7EA2",
|
|
1189
|
+
"echarts.palette.purple": "\u7D2B\u7070",
|
|
1190
|
+
"echarts.panel.stack": "\u5806\u53E0\u663E\u793A",
|
|
1191
|
+
"echarts.panel.innerRadius": "\u5185\u5F84\uFF08%\uFF09",
|
|
1192
|
+
"echarts.panel.paddingTRBL": "\u5185\u8FB9\u8DDD \u4E0A/\u53F3/\u4E0B/\u5DE6 (%)",
|
|
1193
|
+
"echarts.panel.paddingTop": "\u4E0A\u8FB9\u8DDD",
|
|
1194
|
+
"echarts.panel.paddingRight": "\u53F3\u8FB9\u8DDD\uFF08\u7559\u5916\u7F6E\u6807\u7B7E\uFF09",
|
|
1195
|
+
"echarts.panel.paddingBottom": "\u4E0B\u8FB9\u8DDD",
|
|
1196
|
+
"echarts.panel.paddingLeft": "\u5DE6\u8FB9\u8DDD",
|
|
1197
|
+
"echarts.panel.radius": "\u534A\u5F84\uFF08%\uFF09",
|
|
1198
|
+
"echarts.panel.minMax": "\u6700\u5C0F / \u6700\u5927\u503C",
|
|
1199
|
+
"echarts.panel.group": "\u56FE\u8868",
|
|
1200
|
+
"echarts.series.typeNames.bar": "\u67F1\u72B6\u56FE",
|
|
1201
|
+
"echarts.series.typeNames.barH": "\u6761\u5F62\u56FE",
|
|
1202
|
+
"echarts.series.typeNames.line": "\u6298\u7EBF\u56FE",
|
|
1203
|
+
"echarts.series.typeNames.area": "\u9762\u79EF\u56FE",
|
|
1204
|
+
"echarts.series.typeNames.pie": "\u997C\u56FE",
|
|
1205
|
+
"echarts.series.typeNames.doughnut": "\u73AF\u5F62\u56FE",
|
|
1206
|
+
"echarts.series.typeNames.scatter": "\u6563\u70B9\u56FE",
|
|
1207
|
+
"echarts.series.typeNames.radar": "\u96F7\u8FBE\u56FE",
|
|
1208
|
+
"echarts.series.typeNames.funnel": "\u6F0F\u6597\u56FE",
|
|
1209
|
+
"echarts.series.typeNames.gauge": "\u4EEA\u8868\u76D8",
|
|
1210
|
+
"echarts.label.formatter.value": "\u6570\u503C",
|
|
1211
|
+
"echarts.label.formatter.nameValue": "\u540D\u79F0: \u6570\u503C",
|
|
1212
|
+
"echarts.label.formatter.name": "\u540D\u79F0",
|
|
1213
|
+
"echarts.label.formatter.percent": "\u767E\u5206\u6BD4",
|
|
1214
|
+
"echarts.label.position.bar.top": "\u9876\u90E8",
|
|
1215
|
+
"echarts.label.position.bar.inside": "\u5185\u90E8",
|
|
1216
|
+
"echarts.label.position.bar.insideTop": "\u5185\u90E8\u9876\u7AEF",
|
|
1217
|
+
"echarts.label.position.bar.bottom": "\u5E95\u90E8",
|
|
1218
|
+
"echarts.label.position.bar.insideBottom": "\u5185\u90E8\u5E95\u7AEF",
|
|
1219
|
+
"echarts.label.position.bar.right": "\u53F3\u4FA7",
|
|
1220
|
+
"echarts.label.position.bar.left": "\u5DE6\u4FA7",
|
|
1221
|
+
"echarts.label.position.bar.middle": "\u5C45\u4E2D",
|
|
1222
|
+
"echarts.label.position.line.top": "\u9876\u90E8",
|
|
1223
|
+
"echarts.label.position.line.bottom": "\u5E95\u90E8",
|
|
1224
|
+
"echarts.label.position.line.inside": "\u5185\u90E8",
|
|
1225
|
+
"echarts.label.position.line.left": "\u5DE6\u4FA7",
|
|
1226
|
+
"echarts.label.position.line.right": "\u53F3\u4FA7",
|
|
1227
|
+
"echarts.label.position.pie.outside": "\u5916\u4FA7",
|
|
1228
|
+
"echarts.label.position.pie.inside": "\u5185\u90E8",
|
|
1229
|
+
"echarts.label.position.pie.center": "\u4E2D\u5FC3",
|
|
1230
|
+
"echarts.label.position.scatter.top": "\u9876\u90E8",
|
|
1231
|
+
"echarts.label.position.scatter.bottom": "\u5E95\u90E8",
|
|
1232
|
+
"echarts.label.position.scatter.left": "\u5DE6\u4FA7",
|
|
1233
|
+
"echarts.label.position.scatter.right": "\u53F3\u4FA7",
|
|
1234
|
+
"echarts.label.position.scatter.inside": "\u5185\u90E8",
|
|
1235
|
+
"echarts.label.position.radar.top": "\u9876\u90E8",
|
|
1236
|
+
"echarts.label.position.radar.bottom": "\u5E95\u90E8",
|
|
1237
|
+
"echarts.label.position.radar.left": "\u5DE6\u4FA7",
|
|
1238
|
+
"echarts.label.position.radar.right": "\u53F3\u4FA7",
|
|
1239
|
+
"echarts.label.position.radar.inside": "\u5185\u90E8",
|
|
1240
|
+
"echarts.label.position.funnel.outer": "\u5916\u4FA7",
|
|
1241
|
+
"echarts.label.position.funnel.inner": "\u5185\u90E8",
|
|
1242
|
+
"echarts.label.position.funnel.left": "\u5DE6\u4FA7",
|
|
1243
|
+
"echarts.label.position.funnel.right": "\u53F3\u4FA7",
|
|
1244
|
+
"echarts.label.position.funnel.top": "\u9876\u90E8",
|
|
1245
|
+
"echarts.label.position.funnel.bottom": "\u5E95\u90E8",
|
|
1246
|
+
"echarts.meta.chartOption": "\u56FE\u8868 option",
|
|
1247
|
+
"echarts.meta.dataSource": "\u6570\u636E\u6E90",
|
|
1248
|
+
"echarts.meta.categoryField": "\u7C7B\u76EE\u5B57\u6BB5",
|
|
1249
|
+
"echarts.meta.valueFields": "\u6570\u503C\u5B57\u6BB5",
|
|
1250
|
+
"echarts.meta.seriesField": "\u7CFB\u5217\u62C6\u5206\u5B57\u6BB5",
|
|
1251
|
+
"echarts.meta.bubbleSize": "\u6C14\u6CE1\u5927\u5C0F",
|
|
1252
|
+
"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",
|
|
1253
|
+
"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",
|
|
1254
|
+
"echarts.notes.line": "\u6298\u7EBF\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF1B\u4E0D\u5199 areaStyle",
|
|
1255
|
+
"echarts.notes.area": "\u9762\u79EF\u56FE\uFF1A\u6298\u7EBF + series[].areaStyle\uFF1B\u5176\u4F59\u540C\u6298\u7EBF\u56FE",
|
|
1256
|
+
"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",
|
|
1257
|
+
"echarts.notes.doughnut": "\u73AF\u5F62\u56FE\uFF1A\u997C\u56FE + radius:[\u5185\u5F84,\u5916\u5F84]\uFF1B\u5185\u5F84\u7531\u9762\u677F\u914D\u7F6E",
|
|
1258
|
+
"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",
|
|
1259
|
+
"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",
|
|
1260
|
+
"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",
|
|
1261
|
+
"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"
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
// src/i18n/en-US.json
|
|
1266
|
+
var en_US_default = {
|
|
1267
|
+
echarts: {
|
|
1268
|
+
"echarts.panel.chart": "Chart",
|
|
1269
|
+
"echarts.panel.config": "Config",
|
|
1270
|
+
"echarts.panel.dataSource": "Data source",
|
|
1271
|
+
"echarts.panel.category": "Category",
|
|
1272
|
+
"echarts.panel.value": "Value",
|
|
1273
|
+
"echarts.panel.series": "Series",
|
|
1274
|
+
"echarts.panel.chartType.bar": "Bar",
|
|
1275
|
+
"echarts.panel.chartType.barH": "Horizontal bar",
|
|
1276
|
+
"echarts.panel.chartType.line": "Line",
|
|
1277
|
+
"echarts.panel.chartType.area": "Area",
|
|
1278
|
+
"echarts.panel.chartType.pie": "Pie",
|
|
1279
|
+
"echarts.panel.chartType.doughnut": "Doughnut",
|
|
1280
|
+
"echarts.panel.chartType.scatter": "Scatter",
|
|
1281
|
+
"echarts.panel.chartType.radar": "Radar",
|
|
1282
|
+
"echarts.panel.chartType.funnel": "Funnel",
|
|
1283
|
+
"echarts.panel.chartType.gauge": "Gauge",
|
|
1284
|
+
"echarts.panel.dataLabel": "Data label",
|
|
1285
|
+
"echarts.panel.valueLabel": "Value label",
|
|
1286
|
+
"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.",
|
|
1287
|
+
"echarts.panel.field.dimension": "Dimension fields (one per dimension)",
|
|
1288
|
+
"echarts.panel.field.value": "Value fields",
|
|
1289
|
+
"echarts.panel.field.valueMulti": "Value fields (multiple values, multiple series)",
|
|
1290
|
+
"echarts.panel.default": "(default)",
|
|
1291
|
+
"echarts.panel.current": "(current)",
|
|
1292
|
+
"echarts.panel.defaultFirstArray": "(default: first top-level array)",
|
|
1293
|
+
"echarts.panel.error.invalidOption": "Invalid chart option: expected an object",
|
|
1294
|
+
"echarts.panel.chartFallback": "Chart",
|
|
1295
|
+
"echarts.panel.optionDefault": "(default)",
|
|
1296
|
+
"echarts.panel.overflow.default": "Default",
|
|
1297
|
+
"echarts.panel.overflow.none": "None (show full)",
|
|
1298
|
+
"echarts.panel.overflow.truncate": "Truncate",
|
|
1299
|
+
"echarts.panel.overflow.break": "Wrap",
|
|
1300
|
+
"echarts.panel.fontWeight.default": "Default",
|
|
1301
|
+
"echarts.panel.fontWeight.normal": "Regular",
|
|
1302
|
+
"echarts.panel.fontWeight.bold": "Bold",
|
|
1303
|
+
"echarts.panel.label.distance": "Distance",
|
|
1304
|
+
"echarts.panel.label.rotate": "Rotation (deg)",
|
|
1305
|
+
"echarts.panel.label.fontSize": "Font size",
|
|
1306
|
+
"echarts.panel.label.fontWeight": "Font weight",
|
|
1307
|
+
"echarts.panel.label.color": "Text color",
|
|
1308
|
+
"echarts.panel.label.backgroundColor": "Background color",
|
|
1309
|
+
"echarts.panel.label.borderColor": "Border color",
|
|
1310
|
+
"echarts.panel.label.borderWidth": "Border width",
|
|
1311
|
+
"echarts.panel.label.borderRadius": "Radius",
|
|
1312
|
+
"echarts.panel.label.padding": "Padding",
|
|
1313
|
+
"echarts.panel.label.show": "Show data labels",
|
|
1314
|
+
"echarts.panel.label.content": "Content",
|
|
1315
|
+
"echarts.panel.label.formatterTitle": "Data label content",
|
|
1316
|
+
"echarts.panel.label.formatterCustom": "Custom / Default",
|
|
1317
|
+
"echarts.panel.label.formatterPlaceholder": "e.g. {b}: {c}",
|
|
1318
|
+
"echarts.panel.label.overflow": "Overflow",
|
|
1319
|
+
"echarts.panel.label.position": "Position",
|
|
1320
|
+
"echarts.panel.label.positionTitle": "Label position",
|
|
1321
|
+
"echarts.panel.label.positionDefault": "Default",
|
|
1322
|
+
"echarts.panel.label.offset": "Offset X / Y",
|
|
1323
|
+
"echarts.panel.label.style": "Style",
|
|
1324
|
+
"echarts.panel.labelLine.fontWeight": "Font weight",
|
|
1325
|
+
"echarts.panel.labelLine": "Label line",
|
|
1326
|
+
"echarts.panel.labelLine.show": "Show label line",
|
|
1327
|
+
"echarts.panel.labelLine.length": "Label line length",
|
|
1328
|
+
"echarts.panel.labelLine.length2": "Second segment length",
|
|
1329
|
+
"echarts.panel.labelLine.smooth": "Smooth label line",
|
|
1330
|
+
"echarts.panel.dataSourceTitle": "Data source",
|
|
1331
|
+
"echarts.panel.categoryField": "Category field",
|
|
1332
|
+
"echarts.panel.removeField": "Remove this field",
|
|
1333
|
+
"echarts.panel.addField": "+ Add field",
|
|
1334
|
+
"echarts.panel.seriesField": "Series split field",
|
|
1335
|
+
"echarts.panel.seriesFieldHint": "Optional, e.g. region (splits into series by value)",
|
|
1336
|
+
"echarts.panel.bubbleSize": "Bubble size",
|
|
1337
|
+
"echarts.panel.title": "Chart title",
|
|
1338
|
+
"echarts.panel.titleHint": "Leave empty to hide the title",
|
|
1339
|
+
"echarts.panel.legend": "Show legend",
|
|
1340
|
+
"echarts.panel.palette": "Color palette",
|
|
1341
|
+
"echarts.palette.default": "Default blue",
|
|
1342
|
+
"echarts.palette.fresh": "Fresh green",
|
|
1343
|
+
"echarts.palette.warm": "Warm orange-red",
|
|
1344
|
+
"echarts.palette.purple": "Purple grey",
|
|
1345
|
+
"echarts.panel.stack": "Stacked",
|
|
1346
|
+
"echarts.panel.innerRadius": "Inner radius (%)",
|
|
1347
|
+
"echarts.panel.paddingTRBL": "Padding top/right/bottom/left (%)",
|
|
1348
|
+
"echarts.panel.paddingTop": "Top padding",
|
|
1349
|
+
"echarts.panel.paddingRight": "Right padding (for outer labels)",
|
|
1350
|
+
"echarts.panel.paddingBottom": "Bottom padding",
|
|
1351
|
+
"echarts.panel.paddingLeft": "Left padding",
|
|
1352
|
+
"echarts.panel.radius": "Radius (%)",
|
|
1353
|
+
"echarts.panel.minMax": "Min / max",
|
|
1354
|
+
"echarts.panel.group": "Chart",
|
|
1355
|
+
"echarts.series.typeNames.bar": "Bar chart",
|
|
1356
|
+
"echarts.series.typeNames.barH": "Horizontal bar chart",
|
|
1357
|
+
"echarts.series.typeNames.line": "Line chart",
|
|
1358
|
+
"echarts.series.typeNames.area": "Area chart",
|
|
1359
|
+
"echarts.series.typeNames.pie": "Pie chart",
|
|
1360
|
+
"echarts.series.typeNames.doughnut": "Doughnut chart",
|
|
1361
|
+
"echarts.series.typeNames.scatter": "Scatter chart",
|
|
1362
|
+
"echarts.series.typeNames.radar": "Radar chart",
|
|
1363
|
+
"echarts.series.typeNames.funnel": "Funnel chart",
|
|
1364
|
+
"echarts.series.typeNames.gauge": "Gauge chart",
|
|
1365
|
+
"echarts.label.formatter.value": "Value",
|
|
1366
|
+
"echarts.label.formatter.nameValue": "Name: Value",
|
|
1367
|
+
"echarts.label.formatter.name": "Name",
|
|
1368
|
+
"echarts.label.formatter.percent": "Percentage",
|
|
1369
|
+
"echarts.label.position.bar.top": "Top",
|
|
1370
|
+
"echarts.label.position.bar.inside": "Inside",
|
|
1371
|
+
"echarts.label.position.bar.insideTop": "Inside top",
|
|
1372
|
+
"echarts.label.position.bar.bottom": "Bottom",
|
|
1373
|
+
"echarts.label.position.bar.insideBottom": "Inside bottom",
|
|
1374
|
+
"echarts.label.position.bar.right": "Right",
|
|
1375
|
+
"echarts.label.position.bar.left": "Left",
|
|
1376
|
+
"echarts.label.position.bar.middle": "Center",
|
|
1377
|
+
"echarts.label.position.line.top": "Top",
|
|
1378
|
+
"echarts.label.position.line.bottom": "Bottom",
|
|
1379
|
+
"echarts.label.position.line.inside": "Inside",
|
|
1380
|
+
"echarts.label.position.line.left": "Left",
|
|
1381
|
+
"echarts.label.position.line.right": "Right",
|
|
1382
|
+
"echarts.label.position.pie.outside": "Outside",
|
|
1383
|
+
"echarts.label.position.pie.inside": "Inside",
|
|
1384
|
+
"echarts.label.position.pie.center": "Center",
|
|
1385
|
+
"echarts.label.position.scatter.top": "Top",
|
|
1386
|
+
"echarts.label.position.scatter.bottom": "Bottom",
|
|
1387
|
+
"echarts.label.position.scatter.left": "Left",
|
|
1388
|
+
"echarts.label.position.scatter.right": "Right",
|
|
1389
|
+
"echarts.label.position.scatter.inside": "Inside",
|
|
1390
|
+
"echarts.label.position.radar.top": "Top",
|
|
1391
|
+
"echarts.label.position.radar.bottom": "Bottom",
|
|
1392
|
+
"echarts.label.position.radar.left": "Left",
|
|
1393
|
+
"echarts.label.position.radar.right": "Right",
|
|
1394
|
+
"echarts.label.position.radar.inside": "Inside",
|
|
1395
|
+
"echarts.label.position.funnel.outer": "Outside",
|
|
1396
|
+
"echarts.label.position.funnel.inner": "Inside",
|
|
1397
|
+
"echarts.label.position.funnel.left": "Left",
|
|
1398
|
+
"echarts.label.position.funnel.right": "Right",
|
|
1399
|
+
"echarts.label.position.funnel.top": "Top",
|
|
1400
|
+
"echarts.label.position.funnel.bottom": "Bottom",
|
|
1401
|
+
"echarts.meta.chartOption": "Chart option",
|
|
1402
|
+
"echarts.meta.dataSource": "Data source",
|
|
1403
|
+
"echarts.meta.categoryField": "Category field",
|
|
1404
|
+
"echarts.meta.valueFields": "Value fields",
|
|
1405
|
+
"echarts.meta.seriesField": "Series split field",
|
|
1406
|
+
"echarts.meta.bubbleSize": "Bubble size",
|
|
1407
|
+
"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",
|
|
1408
|
+
"echarts.notes.barH": "Horizontal bar: xAxis is the value axis, yAxis is the category axis; write the $data placeholder in yAxis.data for categories",
|
|
1409
|
+
"echarts.notes.line": "Line chart: category + multiple value fields; do not write areaStyle",
|
|
1410
|
+
"echarts.notes.area": "Area chart: line + series[].areaStyle; otherwise same as the line chart",
|
|
1411
|
+
"echarts.notes.pie": "Pie chart: category + the first value field produce { name, value }; only one value field is needed",
|
|
1412
|
+
"echarts.notes.doughnut": "Doughnut: pie + radius:[inner, outer]; the inner radius is configured in the panel",
|
|
1413
|
+
"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",
|
|
1414
|
+
"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)",
|
|
1415
|
+
"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)",
|
|
1416
|
+
"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"
|
|
1417
|
+
}
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
// src/i18n/th-TH.json
|
|
1421
|
+
var th_TH_default = {
|
|
1422
|
+
echarts: {
|
|
1423
|
+
"echarts.panel.chart": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
1424
|
+
"echarts.panel.config": "\u0E01\u0E32\u0E23\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E04\u0E48\u0E32",
|
|
1425
|
+
"echarts.panel.dataSource": "\u0E41\u0E2B\u0E25\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
1426
|
+
"echarts.panel.category": "\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48",
|
|
1427
|
+
"echarts.panel.value": "\u0E04\u0E48\u0E32",
|
|
1428
|
+
"echarts.panel.series": "\u0E0A\u0E38\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
1429
|
+
"echarts.panel.chartType.bar": "\u0E41\u0E17\u0E48\u0E07",
|
|
1430
|
+
"echarts.panel.chartType.barH": "\u0E41\u0E17\u0E48\u0E07\u0E41\u0E19\u0E27\u0E19\u0E2D\u0E19",
|
|
1431
|
+
"echarts.panel.chartType.line": "\u0E40\u0E2A\u0E49\u0E19",
|
|
1432
|
+
"echarts.panel.chartType.area": "\u0E1E\u0E37\u0E49\u0E19\u0E17\u0E35\u0E48",
|
|
1433
|
+
"echarts.panel.chartType.pie": "\u0E27\u0E07\u0E01\u0E25\u0E21",
|
|
1434
|
+
"echarts.panel.chartType.doughnut": "\u0E27\u0E07\u0E01\u0E25\u0E21\u0E27\u0E07\u0E41\u0E2B\u0E27\u0E19",
|
|
1435
|
+
"echarts.panel.chartType.scatter": "\u0E08\u0E38\u0E14\u0E01\u0E23\u0E30\u0E08\u0E32\u0E22",
|
|
1436
|
+
"echarts.panel.chartType.radar": "\u0E40\u0E23\u0E14\u0E32\u0E23\u0E4C",
|
|
1437
|
+
"echarts.panel.chartType.funnel": "\u0E0A\u0E48\u0E2D\u0E07\u0E17\u0E32\u0E07",
|
|
1438
|
+
"echarts.panel.chartType.gauge": "\u0E40\u0E01\u0E08\u0E27\u0E31\u0E14",
|
|
1439
|
+
"echarts.panel.dataLabel": "\u0E1B\u0E49\u0E32\u0E22\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
1440
|
+
"echarts.panel.valueLabel": "\u0E1B\u0E49\u0E32\u0E22\u0E04\u0E48\u0E32",
|
|
1441
|
+
"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",
|
|
1442
|
+
"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)",
|
|
1443
|
+
"echarts.panel.field.value": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32",
|
|
1444
|
+
"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)",
|
|
1445
|
+
"echarts.panel.default": "(\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19)",
|
|
1446
|
+
"echarts.panel.current": "(\u0E1B\u0E31\u0E08\u0E08\u0E38\u0E1A\u0E31\u0E19)",
|
|
1447
|
+
"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)",
|
|
1448
|
+
"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",
|
|
1449
|
+
"echarts.panel.chartFallback": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
1450
|
+
"echarts.panel.optionDefault": "(\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19)",
|
|
1451
|
+
"echarts.panel.overflow.default": "\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
1452
|
+
"echarts.panel.overflow.none": "\u0E44\u0E21\u0E48\u0E21\u0E35 (\u0E41\u0E2A\u0E14\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14)",
|
|
1453
|
+
"echarts.panel.overflow.truncate": "\u0E15\u0E31\u0E14\u0E17\u0E34\u0E49\u0E07",
|
|
1454
|
+
"echarts.panel.overflow.break": "\u0E15\u0E31\u0E14\u0E04\u0E33",
|
|
1455
|
+
"echarts.panel.fontWeight.default": "\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
1456
|
+
"echarts.panel.fontWeight.normal": "\u0E1B\u0E01\u0E15\u0E34",
|
|
1457
|
+
"echarts.panel.fontWeight.bold": "\u0E2B\u0E19\u0E32",
|
|
1458
|
+
"echarts.panel.label.distance": "\u0E23\u0E30\u0E22\u0E30\u0E2B\u0E48\u0E32\u0E07",
|
|
1459
|
+
"echarts.panel.label.rotate": "\u0E01\u0E32\u0E23\u0E2B\u0E21\u0E38\u0E19 (\u0E2D\u0E07\u0E28\u0E32)",
|
|
1460
|
+
"echarts.panel.label.fontSize": "\u0E02\u0E19\u0E32\u0E14\u0E1F\u0E2D\u0E19\u0E15\u0E4C",
|
|
1461
|
+
"echarts.panel.label.fontWeight": "\u0E19\u0E49\u0E33\u0E2B\u0E19\u0E31\u0E01\u0E1F\u0E2D\u0E19\u0E15\u0E4C",
|
|
1462
|
+
"echarts.panel.label.color": "\u0E2A\u0E35\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21",
|
|
1463
|
+
"echarts.panel.label.backgroundColor": "\u0E2A\u0E35\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",
|
|
1464
|
+
"echarts.panel.label.borderColor": "\u0E2A\u0E35\u0E40\u0E2A\u0E49\u0E19\u0E02\u0E2D\u0E1A",
|
|
1465
|
+
"echarts.panel.label.borderWidth": "\u0E04\u0E27\u0E32\u0E21\u0E01\u0E27\u0E49\u0E32\u0E07\u0E40\u0E2A\u0E49\u0E19\u0E02\u0E2D\u0E1A",
|
|
1466
|
+
"echarts.panel.label.borderRadius": "\u0E23\u0E31\u0E28\u0E21\u0E35",
|
|
1467
|
+
"echarts.panel.label.padding": "\u0E23\u0E30\u0E22\u0E30\u0E20\u0E32\u0E22\u0E43\u0E19",
|
|
1468
|
+
"echarts.panel.label.show": "\u0E41\u0E2A\u0E14\u0E07\u0E1B\u0E49\u0E32\u0E22\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
1469
|
+
"echarts.panel.label.content": "\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32",
|
|
1470
|
+
"echarts.panel.label.formatterTitle": "\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E1B\u0E49\u0E32\u0E22\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
1471
|
+
"echarts.panel.label.formatterCustom": "\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07 / \u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
1472
|
+
"echarts.panel.label.formatterPlaceholder": "\u0E40\u0E0A\u0E48\u0E19 {b}: {c}",
|
|
1473
|
+
"echarts.panel.label.overflow": "\u0E25\u0E49\u0E19",
|
|
1474
|
+
"echarts.panel.label.position": "\u0E15\u0E33\u0E41\u0E2B\u0E19\u0E48\u0E07",
|
|
1475
|
+
"echarts.panel.label.positionTitle": "\u0E15\u0E33\u0E41\u0E2B\u0E19\u0E48\u0E07\u0E1B\u0E49\u0E32\u0E22",
|
|
1476
|
+
"echarts.panel.label.positionDefault": "\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
1477
|
+
"echarts.panel.label.offset": "\u0E2D\u0E2D\u0E1F\u0E40\u0E0B\u0E47\u0E15 X / Y",
|
|
1478
|
+
"echarts.panel.label.style": "\u0E2A\u0E44\u0E15\u0E25\u0E4C",
|
|
1479
|
+
"echarts.panel.labelLine.fontWeight": "\u0E19\u0E49\u0E33\u0E2B\u0E19\u0E31\u0E01\u0E1F\u0E2D\u0E19\u0E15\u0E4C",
|
|
1480
|
+
"echarts.panel.labelLine": "\u0E40\u0E2A\u0E49\u0E19\u0E1B\u0E49\u0E32\u0E22",
|
|
1481
|
+
"echarts.panel.labelLine.show": "\u0E41\u0E2A\u0E14\u0E07\u0E40\u0E2A\u0E49\u0E19\u0E1B\u0E49\u0E32\u0E22",
|
|
1482
|
+
"echarts.panel.labelLine.length": "\u0E04\u0E27\u0E32\u0E21\u0E22\u0E32\u0E27\u0E40\u0E2A\u0E49\u0E19\u0E1B\u0E49\u0E32\u0E22",
|
|
1483
|
+
"echarts.panel.labelLine.length2": "\u0E04\u0E27\u0E32\u0E21\u0E22\u0E32\u0E27\u0E17\u0E48\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E2A\u0E2D\u0E07",
|
|
1484
|
+
"echarts.panel.labelLine.smooth": "\u0E40\u0E2A\u0E49\u0E19\u0E1B\u0E49\u0E32\u0E22\u0E42\u0E04\u0E49\u0E07",
|
|
1485
|
+
"echarts.panel.dataSourceTitle": "\u0E41\u0E2B\u0E25\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
1486
|
+
"echarts.panel.categoryField": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48",
|
|
1487
|
+
"echarts.panel.removeField": "\u0E25\u0E1A\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E19\u0E35\u0E49",
|
|
1488
|
+
"echarts.panel.addField": "+ \u0E40\u0E1E\u0E34\u0E48\u0E21\u0E1F\u0E34\u0E25\u0E14\u0E4C",
|
|
1489
|
+
"echarts.panel.seriesField": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E41\u0E22\u0E01\u0E0A\u0E38\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
1490
|
+
"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)",
|
|
1491
|
+
"echarts.panel.bubbleSize": "\u0E02\u0E19\u0E32\u0E14\u0E1F\u0E2D\u0E07",
|
|
1492
|
+
"echarts.panel.title": "\u0E0A\u0E37\u0E48\u0E2D\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
1493
|
+
"echarts.panel.titleHint": "\u0E40\u0E27\u0E49\u0E19\u0E27\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E0B\u0E48\u0E2D\u0E19\u0E0A\u0E37\u0E48\u0E2D",
|
|
1494
|
+
"echarts.panel.legend": "\u0E41\u0E2A\u0E14\u0E07\u0E04\u0E33\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22",
|
|
1495
|
+
"echarts.panel.palette": "\u0E0A\u0E38\u0E14\u0E2A\u0E35",
|
|
1496
|
+
"echarts.palette.default": "\u0E2A\u0E35\u0E19\u0E49\u0E33\u0E40\u0E07\u0E34\u0E19\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
|
|
1497
|
+
"echarts.palette.fresh": "\u0E2A\u0E35\u0E40\u0E02\u0E35\u0E22\u0E27\u0E2A\u0E14\u0E0A\u0E37\u0E48\u0E19",
|
|
1498
|
+
"echarts.palette.warm": "\u0E2A\u0E35\u0E2A\u0E49\u0E21\u0E41\u0E14\u0E07\u0E2D\u0E1A\u0E2D\u0E38\u0E48\u0E19",
|
|
1499
|
+
"echarts.palette.purple": "\u0E2A\u0E35\u0E21\u0E39\u0E1F\u0E40\u0E17\u0E32",
|
|
1500
|
+
"echarts.panel.stack": "\u0E0B\u0E49\u0E2D\u0E19\u0E01\u0E31\u0E19",
|
|
1501
|
+
"echarts.panel.innerRadius": "\u0E23\u0E31\u0E28\u0E21\u0E35\u0E43\u0E19 (%)",
|
|
1502
|
+
"echarts.panel.paddingTRBL": "\u0E23\u0E30\u0E22\u0E30\u0E1A\u0E19/\u0E02\u0E27\u0E32/\u0E25\u0E48\u0E32\u0E07/\u0E0B\u0E49\u0E32\u0E22 (%)",
|
|
1503
|
+
"echarts.panel.paddingTop": "\u0E23\u0E30\u0E22\u0E30\u0E1A\u0E19",
|
|
1504
|
+
"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)",
|
|
1505
|
+
"echarts.panel.paddingBottom": "\u0E23\u0E30\u0E22\u0E30\u0E25\u0E48\u0E32\u0E07",
|
|
1506
|
+
"echarts.panel.paddingLeft": "\u0E23\u0E30\u0E22\u0E30\u0E0B\u0E49\u0E32\u0E22",
|
|
1507
|
+
"echarts.panel.radius": "\u0E23\u0E31\u0E28\u0E21\u0E35 (%)",
|
|
1508
|
+
"echarts.panel.minMax": "\u0E15\u0E48\u0E33\u0E2A\u0E38\u0E14 / \u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14",
|
|
1509
|
+
"echarts.panel.group": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
1510
|
+
"echarts.series.typeNames.bar": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E41\u0E17\u0E48\u0E07",
|
|
1511
|
+
"echarts.series.typeNames.barH": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E41\u0E17\u0E48\u0E07\u0E41\u0E19\u0E27\u0E19\u0E2D\u0E19",
|
|
1512
|
+
"echarts.series.typeNames.line": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E2A\u0E49\u0E19",
|
|
1513
|
+
"echarts.series.typeNames.area": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E1E\u0E37\u0E49\u0E19\u0E17\u0E35\u0E48",
|
|
1514
|
+
"echarts.series.typeNames.pie": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E27\u0E07\u0E01\u0E25\u0E21",
|
|
1515
|
+
"echarts.series.typeNames.doughnut": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E27\u0E07\u0E01\u0E25\u0E21\u0E27\u0E07\u0E41\u0E2B\u0E27\u0E19",
|
|
1516
|
+
"echarts.series.typeNames.scatter": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E01\u0E23\u0E30\u0E08\u0E32\u0E22",
|
|
1517
|
+
"echarts.series.typeNames.radar": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E23\u0E14\u0E32\u0E23\u0E4C",
|
|
1518
|
+
"echarts.series.typeNames.funnel": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E0A\u0E48\u0E2D\u0E07\u0E17\u0E32\u0E07",
|
|
1519
|
+
"echarts.series.typeNames.gauge": "\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34\u0E40\u0E01\u0E08\u0E27\u0E31\u0E14",
|
|
1520
|
+
"echarts.label.formatter.value": "\u0E04\u0E48\u0E32",
|
|
1521
|
+
"echarts.label.formatter.nameValue": "\u0E0A\u0E37\u0E48\u0E2D: \u0E04\u0E48\u0E32",
|
|
1522
|
+
"echarts.label.formatter.name": "\u0E0A\u0E37\u0E48\u0E2D",
|
|
1523
|
+
"echarts.label.formatter.percent": "\u0E40\u0E1B\u0E2D\u0E23\u0E4C\u0E40\u0E0B\u0E47\u0E19\u0E15\u0E4C",
|
|
1524
|
+
"echarts.label.position.bar.top": "\u0E1A\u0E19",
|
|
1525
|
+
"echarts.label.position.bar.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
1526
|
+
"echarts.label.position.bar.insideTop": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19\u0E1A\u0E19",
|
|
1527
|
+
"echarts.label.position.bar.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
1528
|
+
"echarts.label.position.bar.insideBottom": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19\u0E25\u0E48\u0E32\u0E07",
|
|
1529
|
+
"echarts.label.position.bar.right": "\u0E02\u0E27\u0E32",
|
|
1530
|
+
"echarts.label.position.bar.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
1531
|
+
"echarts.label.position.bar.middle": "\u0E01\u0E25\u0E32\u0E07",
|
|
1532
|
+
"echarts.label.position.line.top": "\u0E1A\u0E19",
|
|
1533
|
+
"echarts.label.position.line.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
1534
|
+
"echarts.label.position.line.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
1535
|
+
"echarts.label.position.line.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
1536
|
+
"echarts.label.position.line.right": "\u0E02\u0E27\u0E32",
|
|
1537
|
+
"echarts.label.position.pie.outside": "\u0E14\u0E49\u0E32\u0E19\u0E19\u0E2D\u0E01",
|
|
1538
|
+
"echarts.label.position.pie.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
1539
|
+
"echarts.label.position.pie.center": "\u0E01\u0E25\u0E32\u0E07",
|
|
1540
|
+
"echarts.label.position.scatter.top": "\u0E1A\u0E19",
|
|
1541
|
+
"echarts.label.position.scatter.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
1542
|
+
"echarts.label.position.scatter.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
1543
|
+
"echarts.label.position.scatter.right": "\u0E02\u0E27\u0E32",
|
|
1544
|
+
"echarts.label.position.scatter.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
1545
|
+
"echarts.label.position.radar.top": "\u0E1A\u0E19",
|
|
1546
|
+
"echarts.label.position.radar.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
1547
|
+
"echarts.label.position.radar.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
1548
|
+
"echarts.label.position.radar.right": "\u0E02\u0E27\u0E32",
|
|
1549
|
+
"echarts.label.position.radar.inside": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
1550
|
+
"echarts.label.position.funnel.outer": "\u0E14\u0E49\u0E32\u0E19\u0E19\u0E2D\u0E01",
|
|
1551
|
+
"echarts.label.position.funnel.inner": "\u0E14\u0E49\u0E32\u0E19\u0E43\u0E19",
|
|
1552
|
+
"echarts.label.position.funnel.left": "\u0E0B\u0E49\u0E32\u0E22",
|
|
1553
|
+
"echarts.label.position.funnel.right": "\u0E02\u0E27\u0E32",
|
|
1554
|
+
"echarts.label.position.funnel.top": "\u0E1A\u0E19",
|
|
1555
|
+
"echarts.label.position.funnel.bottom": "\u0E25\u0E48\u0E32\u0E07",
|
|
1556
|
+
"echarts.meta.chartOption": "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E1C\u0E19\u0E20\u0E39\u0E21\u0E34",
|
|
1557
|
+
"echarts.meta.dataSource": "\u0E41\u0E2B\u0E25\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
1558
|
+
"echarts.meta.categoryField": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E2B\u0E21\u0E27\u0E14\u0E2B\u0E21\u0E39\u0E48",
|
|
1559
|
+
"echarts.meta.valueFields": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E04\u0E48\u0E32",
|
|
1560
|
+
"echarts.meta.seriesField": "\u0E1F\u0E34\u0E25\u0E14\u0E4C\u0E41\u0E22\u0E01\u0E0A\u0E38\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
1561
|
+
"echarts.meta.bubbleSize": "\u0E02\u0E19\u0E32\u0E14\u0E1F\u0E2D\u0E07",
|
|
1562
|
+
"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",
|
|
1563
|
+
"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",
|
|
1564
|
+
"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",
|
|
1565
|
+
"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",
|
|
1566
|
+
"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",
|
|
1567
|
+
"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",
|
|
1568
|
+
"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",
|
|
1569
|
+
"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)",
|
|
1570
|
+
"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)",
|
|
1571
|
+
"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"
|
|
1572
|
+
}
|
|
1573
|
+
};
|
|
1574
|
+
|
|
1080
1575
|
// src/ui.ts
|
|
1081
1576
|
import { defineElementUI, registerElementUI } from "@worm-print-platform/plugin-kit";
|
|
1082
1577
|
import { render } from "@worm-print-platform/plugin-kit/dom";
|
|
1083
1578
|
import { colorPicker } from "@worm-print-platform/plugin-kit/controls";
|
|
1579
|
+
var activeT = globalT;
|
|
1580
|
+
var t2 = (key, params) => activeT(key, params);
|
|
1581
|
+
function withTranslator(translator, render2) {
|
|
1582
|
+
const prev = activeT;
|
|
1583
|
+
activeT = translator ?? globalT;
|
|
1584
|
+
try {
|
|
1585
|
+
return render2();
|
|
1586
|
+
} finally {
|
|
1587
|
+
activeT = prev;
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1084
1590
|
var CANVAS_STYLE = "width:100%;height:100%;min-width:0;min-height:0;pointer-events:none";
|
|
1085
1591
|
var STYLES = [
|
|
1086
1592
|
".echarts-canvas-element{overflow:hidden}",
|
|
@@ -1133,7 +1639,7 @@ var SEARCH_KEYWORDS = [
|
|
|
1133
1639
|
"\u6570\u503C\u6807\u7B7E",
|
|
1134
1640
|
"label"
|
|
1135
1641
|
];
|
|
1136
|
-
var
|
|
1642
|
+
var panelHint = () => t2("echarts.panel.hint.dataBinding");
|
|
1137
1643
|
function escapeHtml2(value) {
|
|
1138
1644
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1139
1645
|
}
|
|
@@ -1174,8 +1680,8 @@ function maxValueFields(def) {
|
|
|
1174
1680
|
}
|
|
1175
1681
|
}
|
|
1176
1682
|
function valueFieldsLabel(def, limit) {
|
|
1177
|
-
if (def?.seriesType === "radar") return "
|
|
1178
|
-
return limit === 1 ? "
|
|
1683
|
+
if (def?.seriesType === "radar") return t2("echarts.panel.field.dimension");
|
|
1684
|
+
return limit === 1 ? t2("echarts.panel.field.value") : t2("echarts.panel.field.valueMulti");
|
|
1179
1685
|
}
|
|
1180
1686
|
function dataSourceCandidates(data) {
|
|
1181
1687
|
const first = data?.[0];
|
|
@@ -1198,15 +1704,15 @@ function fieldLabelMap(fields) {
|
|
|
1198
1704
|
return map;
|
|
1199
1705
|
}
|
|
1200
1706
|
function optionLabel(value, labels, fallbackSuffix) {
|
|
1201
|
-
if (!value) return fallbackSuffix ?? "
|
|
1707
|
+
if (!value) return fallbackSuffix ?? t2("echarts.panel.default");
|
|
1202
1708
|
const name = labels.get(value);
|
|
1203
1709
|
const base = name ? `${name}\uFF08${value}\uFF09` : value;
|
|
1204
1710
|
return fallbackSuffix ? `${base}${fallbackSuffix}` : base;
|
|
1205
1711
|
}
|
|
1206
1712
|
function dropdownOptions(candidates, current, labels = /* @__PURE__ */ new Map()) {
|
|
1207
1713
|
const opts = candidates.map((value) => ({ value, label: optionLabel(value, labels) }));
|
|
1208
|
-
if (current && !candidates.includes(current)) opts.unshift({ value: current, label: optionLabel(current, labels, "
|
|
1209
|
-
if (!current) opts.unshift({ value: "", label: "
|
|
1714
|
+
if (current && !candidates.includes(current)) opts.unshift({ value: current, label: optionLabel(current, labels, t2("echarts.panel.current")) });
|
|
1715
|
+
if (!current) opts.unshift({ value: "", label: t2("echarts.panel.defaultFirstArray") });
|
|
1210
1716
|
return opts;
|
|
1211
1717
|
}
|
|
1212
1718
|
function seriesList(option) {
|
|
@@ -1233,12 +1739,12 @@ function renderCanvas(ctx) {
|
|
|
1233
1739
|
try {
|
|
1234
1740
|
const preview = previewChartOption(type, rawChartOption(element) ?? createDefaultChartOption(type));
|
|
1235
1741
|
const option = normalizeChartOption(type, preview);
|
|
1236
|
-
if (!option || typeof option !== "object" || Array.isArray(option)) throw new Error("
|
|
1742
|
+
if (!option || typeof option !== "object" || Array.isArray(option)) throw new Error(t2("echarts.panel.error.invalidOption"));
|
|
1237
1743
|
const fontFamily = typeof options.fontFamily === "string" && options.fontFamily ? options.fontFamily : void 0;
|
|
1238
1744
|
const svg = renderChartToSvg({ key: element.id, type, option, widthMm, heightMm, fontFamily });
|
|
1239
1745
|
return `<div class="echarts-canvas-element" style="${CANVAS_STYLE}">${svg}</div>`;
|
|
1240
1746
|
} catch {
|
|
1241
|
-
const title = typeof options.title === "string" && options.title.trim() ? options.title : getChartKindDefinition(type)?.label ?? "
|
|
1747
|
+
const title = typeof options.title === "string" && options.title.trim() ? options.title : getChartKindDefinition(type)?.label ?? t2("echarts.panel.chartFallback");
|
|
1242
1748
|
return `<div class="echarts-canvas-element" style="${CANVAS_STYLE}">${escapeHtml2(title)}</div>`;
|
|
1243
1749
|
}
|
|
1244
1750
|
}
|
|
@@ -1293,7 +1799,7 @@ function composedPathOf(ev) {
|
|
|
1293
1799
|
return composed.length ? composed : [ev.target];
|
|
1294
1800
|
}
|
|
1295
1801
|
function dropdownSelect(options, value, onCommit) {
|
|
1296
|
-
const current = options.find((item) => item.value === value) ?? { value, label: value || "
|
|
1802
|
+
const current = options.find((item) => item.value === value) ?? { value, label: value || t2("echarts.panel.optionDefault") };
|
|
1297
1803
|
const trigger = el("button", "echarts-dropdown-trigger");
|
|
1298
1804
|
trigger.type = "button";
|
|
1299
1805
|
trigger.setAttribute("aria-haspopup", "listbox");
|
|
@@ -1365,35 +1871,36 @@ function dropdownSelect(options, value, onCommit) {
|
|
|
1365
1871
|
});
|
|
1366
1872
|
return trigger;
|
|
1367
1873
|
}
|
|
1368
|
-
var
|
|
1369
|
-
{ value: "", label: "
|
|
1370
|
-
{ value: "none", label: "
|
|
1371
|
-
{ value: "truncate", label: "
|
|
1372
|
-
{ value: "break", label: "
|
|
1874
|
+
var overflowOptions = () => [
|
|
1875
|
+
{ value: "", label: t2("echarts.panel.overflow.default") },
|
|
1876
|
+
{ value: "none", label: t2("echarts.panel.overflow.none") },
|
|
1877
|
+
{ value: "truncate", label: t2("echarts.panel.overflow.truncate") },
|
|
1878
|
+
{ value: "break", label: t2("echarts.panel.overflow.break") }
|
|
1373
1879
|
];
|
|
1374
|
-
var
|
|
1375
|
-
{ value: "", label: "
|
|
1376
|
-
{ value: "normal", label: "
|
|
1377
|
-
{ value: "bold", label: "
|
|
1880
|
+
var fontWeightOptions = () => [
|
|
1881
|
+
{ value: "", label: t2("echarts.panel.fontWeight.default") },
|
|
1882
|
+
{ value: "normal", label: t2("echarts.panel.fontWeight.normal") },
|
|
1883
|
+
{ value: "bold", label: t2("echarts.panel.fontWeight.bold") }
|
|
1378
1884
|
];
|
|
1379
|
-
var
|
|
1380
|
-
distance: "
|
|
1381
|
-
rotate: "
|
|
1382
|
-
fontSize: "
|
|
1383
|
-
fontWeight: "
|
|
1384
|
-
color: "
|
|
1385
|
-
backgroundColor: "
|
|
1386
|
-
borderColor: "
|
|
1387
|
-
borderWidth: "
|
|
1388
|
-
borderRadius: "
|
|
1389
|
-
padding: "
|
|
1390
|
-
};
|
|
1885
|
+
var styleFieldLabels = () => ({
|
|
1886
|
+
distance: t2("echarts.panel.label.distance"),
|
|
1887
|
+
rotate: t2("echarts.panel.label.rotate"),
|
|
1888
|
+
fontSize: t2("echarts.panel.label.fontSize"),
|
|
1889
|
+
fontWeight: t2("echarts.panel.label.fontWeight"),
|
|
1890
|
+
color: t2("echarts.panel.label.color"),
|
|
1891
|
+
backgroundColor: t2("echarts.panel.label.backgroundColor"),
|
|
1892
|
+
borderColor: t2("echarts.panel.label.borderColor"),
|
|
1893
|
+
borderWidth: t2("echarts.panel.label.borderWidth"),
|
|
1894
|
+
borderRadius: t2("echarts.panel.label.borderRadius"),
|
|
1895
|
+
padding: t2("echarts.panel.label.padding")
|
|
1896
|
+
});
|
|
1391
1897
|
function renderLabelGroup(ctx, type) {
|
|
1392
1898
|
const element = ctx.element;
|
|
1393
1899
|
const def = getChartKindDefinition(type);
|
|
1394
1900
|
const fields = labelFieldsOf(type);
|
|
1395
1901
|
const has = (key) => fields.includes(key);
|
|
1396
1902
|
const state = readChartLabel(panelOption(element), type);
|
|
1903
|
+
const styleLabels = styleFieldLabels();
|
|
1397
1904
|
const commit = (patch) => {
|
|
1398
1905
|
commitOption(ctx, type, updateChartLabel(panelOption(element), type, patch));
|
|
1399
1906
|
};
|
|
@@ -1410,18 +1917,20 @@ function renderLabelGroup(ctx, type) {
|
|
|
1410
1917
|
commit({ labelLine: { [key]: value } });
|
|
1411
1918
|
};
|
|
1412
1919
|
const numberField = (key, value) => {
|
|
1413
|
-
const wrap = field(
|
|
1920
|
+
const wrap = field(styleLabels[key] ?? key);
|
|
1414
1921
|
wrap.appendChild(
|
|
1415
1922
|
textInput({ value: value === void 0 ? "" : String(value), type: "number" }, (raw) => commitNumber(key, raw))
|
|
1416
1923
|
);
|
|
1417
1924
|
return wrap;
|
|
1418
1925
|
};
|
|
1419
1926
|
const colorField = (key, value) => {
|
|
1420
|
-
const wrap = field(
|
|
1927
|
+
const wrap = field(styleLabels[key] ?? key);
|
|
1421
1928
|
const holder = el("span");
|
|
1422
1929
|
render(colorPicker({
|
|
1423
1930
|
value: value ?? "",
|
|
1424
|
-
title:
|
|
1931
|
+
title: styleLabels[key] ?? key,
|
|
1932
|
+
// 面板点击时才构建,届时候选渲染期 translator 已还原,必须固化 ctx.t
|
|
1933
|
+
translator: ctx.t,
|
|
1425
1934
|
onChange: (next) => commit({ [key]: next ?? "" })
|
|
1426
1935
|
}), holder);
|
|
1427
1936
|
wrap.appendChild(holder);
|
|
@@ -1430,39 +1939,39 @@ function renderLabelGroup(ctx, type) {
|
|
|
1430
1939
|
const group = el("details", "echarts-label-group");
|
|
1431
1940
|
group.open = state.show;
|
|
1432
1941
|
const summary = el("summary", "echarts-label-summary");
|
|
1433
|
-
const toggle = checkboxField("
|
|
1942
|
+
const toggle = checkboxField(t2("echarts.panel.label.show"), state.show, (checked) => commit({ enabled: checked }));
|
|
1434
1943
|
toggle.querySelector("input")?.addEventListener("click", (event) => event.stopPropagation());
|
|
1435
1944
|
summary.appendChild(toggle);
|
|
1436
1945
|
group.appendChild(summary);
|
|
1437
1946
|
if (has("formatter") || has("overflow")) {
|
|
1438
|
-
group.appendChild(el("div", "echarts-label-sub", "
|
|
1947
|
+
group.appendChild(el("div", "echarts-label-sub", t2("echarts.panel.label.content")));
|
|
1439
1948
|
if (has("formatter")) {
|
|
1440
|
-
const wrap = field("
|
|
1949
|
+
const wrap = field(t2("echarts.panel.label.formatterTitle"));
|
|
1441
1950
|
wrap.appendChild(
|
|
1442
1951
|
selectInput(
|
|
1443
|
-
[{ value: "", label: "
|
|
1952
|
+
[{ value: "", label: t2("echarts.panel.label.formatterCustom") }, ...LABEL_PRESETS.map((preset) => ({ value: preset.formatter, label: t2(preset.labelKey) }))],
|
|
1444
1953
|
state.formatter ?? "",
|
|
1445
1954
|
(value) => commit({ formatter: value })
|
|
1446
1955
|
)
|
|
1447
1956
|
);
|
|
1448
1957
|
wrap.appendChild(
|
|
1449
|
-
textInput({ value: state.formatter ?? "", placeholder: "
|
|
1958
|
+
textInput({ value: state.formatter ?? "", placeholder: t2("echarts.panel.label.formatterPlaceholder") }, (value) => commit({ formatter: value }))
|
|
1450
1959
|
);
|
|
1451
1960
|
group.appendChild(wrap);
|
|
1452
1961
|
}
|
|
1453
1962
|
if (has("overflow")) {
|
|
1454
|
-
const wrap = field("
|
|
1455
|
-
wrap.appendChild(selectInput(
|
|
1963
|
+
const wrap = field(t2("echarts.panel.label.overflow"));
|
|
1964
|
+
wrap.appendChild(selectInput(overflowOptions(), state.overflow ?? "", (value) => commit({ overflow: value })));
|
|
1456
1965
|
group.appendChild(wrap);
|
|
1457
1966
|
}
|
|
1458
1967
|
}
|
|
1459
1968
|
if (has("position") || has("distance") || has("rotate") || has("offset")) {
|
|
1460
|
-
group.appendChild(el("div", "echarts-label-sub", "
|
|
1969
|
+
group.appendChild(el("div", "echarts-label-sub", t2("echarts.panel.label.position")));
|
|
1461
1970
|
if (has("position")) {
|
|
1462
|
-
const wrap = field("
|
|
1971
|
+
const wrap = field(t2("echarts.panel.label.positionTitle"));
|
|
1463
1972
|
const positions = def ? LABEL_POSITIONS[def.seriesType] ?? [] : [];
|
|
1464
1973
|
wrap.appendChild(
|
|
1465
|
-
selectInput([{ value: "", label: "
|
|
1974
|
+
selectInput([{ value: "", label: t2("echarts.panel.label.positionDefault") }, ...positions.map((p) => ({ value: p.value, label: t2(p.labelKey) }))], state.position ?? "", (value) => commit({ position: value }))
|
|
1466
1975
|
);
|
|
1467
1976
|
group.appendChild(wrap);
|
|
1468
1977
|
}
|
|
@@ -1479,7 +1988,7 @@ function renderLabelGroup(ctx, type) {
|
|
|
1479
1988
|
commit({ offset: [parse(inputX, current[0] ?? 0), parse(inputY, current[1] ?? 0)] });
|
|
1480
1989
|
};
|
|
1481
1990
|
var commitOffset = commitOffset2;
|
|
1482
|
-
const wrap = field("
|
|
1991
|
+
const wrap = field(t2("echarts.panel.label.offset"));
|
|
1483
1992
|
const row = el("div", "echarts-field-row");
|
|
1484
1993
|
const current = state.offset ?? [0, 0];
|
|
1485
1994
|
const inputX = textInput({ value: String(current[0] ?? 0), type: "number" }, () => commitOffset2());
|
|
@@ -1492,11 +2001,11 @@ function renderLabelGroup(ctx, type) {
|
|
|
1492
2001
|
}
|
|
1493
2002
|
const styleKeys = ["fontSize", "fontWeight", "color", "backgroundColor", "borderColor", "borderWidth", "borderRadius", "padding"];
|
|
1494
2003
|
if (styleKeys.some(has)) {
|
|
1495
|
-
group.appendChild(el("div", "echarts-label-sub", "
|
|
2004
|
+
group.appendChild(el("div", "echarts-label-sub", t2("echarts.panel.label.style")));
|
|
1496
2005
|
if (has("fontSize")) group.appendChild(numberField("fontSize", state.fontSize));
|
|
1497
2006
|
if (has("fontWeight")) {
|
|
1498
|
-
const wrap = field("
|
|
1499
|
-
wrap.appendChild(selectInput(
|
|
2007
|
+
const wrap = field(t2("echarts.panel.labelLine.fontWeight"));
|
|
2008
|
+
wrap.appendChild(selectInput(fontWeightOptions(), state.fontWeight ?? "", (value) => commit({ fontWeight: value })));
|
|
1500
2009
|
group.appendChild(wrap);
|
|
1501
2010
|
}
|
|
1502
2011
|
for (const key of ["color", "backgroundColor", "borderColor"]) {
|
|
@@ -1507,12 +2016,12 @@ function renderLabelGroup(ctx, type) {
|
|
|
1507
2016
|
}
|
|
1508
2017
|
}
|
|
1509
2018
|
if (has("labelLine.show")) {
|
|
1510
|
-
group.appendChild(el("div", "echarts-label-sub", "
|
|
2019
|
+
group.appendChild(el("div", "echarts-label-sub", t2("echarts.panel.labelLine")));
|
|
1511
2020
|
group.appendChild(
|
|
1512
|
-
checkboxField("
|
|
2021
|
+
checkboxField(t2("echarts.panel.labelLine.show"), state.labelLine.show === true, (checked) => commit({ labelLine: { show: checked } }))
|
|
1513
2022
|
);
|
|
1514
2023
|
if (has("labelLine.length")) {
|
|
1515
|
-
const wrap = field("
|
|
2024
|
+
const wrap = field(t2("echarts.panel.labelLine.length"));
|
|
1516
2025
|
wrap.appendChild(
|
|
1517
2026
|
textInput(
|
|
1518
2027
|
{ value: state.labelLine.length === void 0 ? "" : String(state.labelLine.length), type: "number" },
|
|
@@ -1522,7 +2031,7 @@ function renderLabelGroup(ctx, type) {
|
|
|
1522
2031
|
group.appendChild(wrap);
|
|
1523
2032
|
}
|
|
1524
2033
|
if (has("labelLine.length2")) {
|
|
1525
|
-
const wrap = field("
|
|
2034
|
+
const wrap = field(t2("echarts.panel.labelLine.length2"));
|
|
1526
2035
|
wrap.appendChild(
|
|
1527
2036
|
textInput(
|
|
1528
2037
|
{ value: state.labelLine.length2 === void 0 ? "" : String(state.labelLine.length2), type: "number" },
|
|
@@ -1533,13 +2042,16 @@ function renderLabelGroup(ctx, type) {
|
|
|
1533
2042
|
}
|
|
1534
2043
|
if (has("labelLine.smooth")) {
|
|
1535
2044
|
group.appendChild(
|
|
1536
|
-
checkboxField("
|
|
2045
|
+
checkboxField(t2("echarts.panel.labelLine.smooth"), state.labelLine.smooth === true, (checked) => commit({ labelLine: { smooth: checked } }))
|
|
1537
2046
|
);
|
|
1538
2047
|
}
|
|
1539
2048
|
}
|
|
1540
2049
|
return group;
|
|
1541
2050
|
}
|
|
1542
2051
|
function renderProperty(ctx) {
|
|
2052
|
+
return withTranslator(ctx.t, () => renderPropertyInner(ctx));
|
|
2053
|
+
}
|
|
2054
|
+
function renderPropertyInner(ctx) {
|
|
1543
2055
|
const element = ctx.element;
|
|
1544
2056
|
const type = elementType(element);
|
|
1545
2057
|
const def = getChartKindDefinition(type);
|
|
@@ -1556,7 +2068,7 @@ function renderProperty(ctx) {
|
|
|
1556
2068
|
form.addEventListener("submit", (event) => event.preventDefault());
|
|
1557
2069
|
root.appendChild(form);
|
|
1558
2070
|
if (has("dataSource")) {
|
|
1559
|
-
const wrap = field("
|
|
2071
|
+
const wrap = field(t2("echarts.panel.dataSourceTitle"));
|
|
1560
2072
|
const current = String(options.chartDataSource ?? "");
|
|
1561
2073
|
wrap.appendChild(
|
|
1562
2074
|
dropdownSelect(
|
|
@@ -1568,7 +2080,7 @@ function renderProperty(ctx) {
|
|
|
1568
2080
|
form.appendChild(wrap);
|
|
1569
2081
|
}
|
|
1570
2082
|
if (has("categoryField")) {
|
|
1571
|
-
const wrap = field("
|
|
2083
|
+
const wrap = field(t2("echarts.panel.categoryField"));
|
|
1572
2084
|
const current = String(options.chartCategoryField ?? "");
|
|
1573
2085
|
wrap.appendChild(
|
|
1574
2086
|
dropdownSelect(
|
|
@@ -1598,14 +2110,14 @@ function renderProperty(ctx) {
|
|
|
1598
2110
|
if (fieldsNow.length > 1) {
|
|
1599
2111
|
const remove = el("button", "pd-button small", "\u2212");
|
|
1600
2112
|
remove.type = "button";
|
|
1601
|
-
remove.title = "
|
|
2113
|
+
remove.title = t2("echarts.panel.removeField");
|
|
1602
2114
|
remove.addEventListener("click", () => syncValueFields(ctx, type, readValueFields(element).filter((_, i) => i !== index)));
|
|
1603
2115
|
row.appendChild(remove);
|
|
1604
2116
|
}
|
|
1605
2117
|
wrap.appendChild(row);
|
|
1606
2118
|
});
|
|
1607
2119
|
if (fieldsNow.length < limit) {
|
|
1608
|
-
const add = el("button", "pd-button small", "
|
|
2120
|
+
const add = el("button", "pd-button small", t2("echarts.panel.addField"));
|
|
1609
2121
|
add.type = "button";
|
|
1610
2122
|
add.addEventListener("click", () => syncValueFields(ctx, type, [...readValueFields(element), ""]));
|
|
1611
2123
|
wrap.appendChild(add);
|
|
@@ -1613,10 +2125,10 @@ function renderProperty(ctx) {
|
|
|
1613
2125
|
form.appendChild(wrap);
|
|
1614
2126
|
}
|
|
1615
2127
|
if (has("seriesField")) {
|
|
1616
|
-
const wrap = field("
|
|
2128
|
+
const wrap = field(t2("echarts.panel.seriesField"));
|
|
1617
2129
|
wrap.appendChild(
|
|
1618
2130
|
textInput(
|
|
1619
|
-
{ value: String(options.chartSeriesField ?? ""), placeholder: "
|
|
2131
|
+
{ value: String(options.chartSeriesField ?? ""), placeholder: t2("echarts.panel.seriesFieldHint") },
|
|
1620
2132
|
(value) => commitOption(ctx, type, panelOption(element), { chartSeriesField: value })
|
|
1621
2133
|
)
|
|
1622
2134
|
);
|
|
@@ -1624,16 +2136,16 @@ function renderProperty(ctx) {
|
|
|
1624
2136
|
}
|
|
1625
2137
|
if (has("bubble")) {
|
|
1626
2138
|
form.appendChild(
|
|
1627
|
-
checkboxField("
|
|
2139
|
+
checkboxField(t2("echarts.panel.bubbleSize"), options.chartBubble === true, (checked) => {
|
|
1628
2140
|
commitOption(ctx, type, panelOption(element), { chartBubble: checked });
|
|
1629
2141
|
})
|
|
1630
2142
|
);
|
|
1631
2143
|
}
|
|
1632
2144
|
if (has("title")) {
|
|
1633
|
-
const wrap = field("
|
|
2145
|
+
const wrap = field(t2("echarts.panel.title"));
|
|
1634
2146
|
wrap.appendChild(
|
|
1635
2147
|
textInput(
|
|
1636
|
-
{ value: String(asObject(panelOption(element).title).text ?? ""), placeholder: "
|
|
2148
|
+
{ value: String(asObject(panelOption(element).title).text ?? ""), placeholder: t2("echarts.panel.titleHint") },
|
|
1637
2149
|
(value) => {
|
|
1638
2150
|
const next = panelOption(element);
|
|
1639
2151
|
next.title = { ...asObject(next.title), text: value };
|
|
@@ -1646,7 +2158,7 @@ function renderProperty(ctx) {
|
|
|
1646
2158
|
if (has("legend")) {
|
|
1647
2159
|
const show = asObject(panelOption(element).legend).show !== false;
|
|
1648
2160
|
form.appendChild(
|
|
1649
|
-
checkboxField("
|
|
2161
|
+
checkboxField(t2("echarts.panel.legend"), show, (checked) => {
|
|
1650
2162
|
const next = panelOption(element);
|
|
1651
2163
|
next.legend = { ...asObject(next.legend), show: checked };
|
|
1652
2164
|
commitOption(ctx, type, next);
|
|
@@ -1654,12 +2166,12 @@ function renderProperty(ctx) {
|
|
|
1654
2166
|
);
|
|
1655
2167
|
}
|
|
1656
2168
|
if (has("palette")) {
|
|
1657
|
-
const wrap = field("
|
|
2169
|
+
const wrap = field(t2("echarts.panel.palette"));
|
|
1658
2170
|
const select = el("select", "pd-select");
|
|
1659
2171
|
for (const palette of palettes) {
|
|
1660
2172
|
const optionEl = el("option");
|
|
1661
2173
|
optionEl.value = palette.key;
|
|
1662
|
-
optionEl.textContent = palette.label;
|
|
2174
|
+
optionEl.textContent = palette.labelKey ? t2(palette.labelKey) : palette.label;
|
|
1663
2175
|
select.appendChild(optionEl);
|
|
1664
2176
|
}
|
|
1665
2177
|
select.value = readPaletteKey(panelOption(element), palettes);
|
|
@@ -1679,7 +2191,7 @@ function renderProperty(ctx) {
|
|
|
1679
2191
|
const series = seriesList(panelOption(element));
|
|
1680
2192
|
const stacked = series.some((item) => item.stack !== void 0 && item.stack !== null && item.stack !== "");
|
|
1681
2193
|
form.appendChild(
|
|
1682
|
-
checkboxField("
|
|
2194
|
+
checkboxField(t2("echarts.panel.stack"), stacked, (checked) => {
|
|
1683
2195
|
const next = panelOption(element);
|
|
1684
2196
|
for (const item of seriesList(next)) {
|
|
1685
2197
|
if (checked) item.stack = "total";
|
|
@@ -1690,7 +2202,7 @@ function renderProperty(ctx) {
|
|
|
1690
2202
|
);
|
|
1691
2203
|
}
|
|
1692
2204
|
if (has("innerRadius")) {
|
|
1693
|
-
const wrap = field("
|
|
2205
|
+
const wrap = field(t2("echarts.panel.innerRadius"));
|
|
1694
2206
|
const radius = seriesList(panelOption(element))[0]?.radius;
|
|
1695
2207
|
const inner = Array.isArray(radius) ? Number(String(radius[0] ?? "40%").replace("%", "")) || 40 : 40;
|
|
1696
2208
|
wrap.appendChild(
|
|
@@ -1704,14 +2216,14 @@ function renderProperty(ctx) {
|
|
|
1704
2216
|
form.appendChild(wrap);
|
|
1705
2217
|
}
|
|
1706
2218
|
if (has("padding")) {
|
|
1707
|
-
const wrap = field(
|
|
2219
|
+
const wrap = field(t2("echarts.panel.paddingTRBL"));
|
|
1708
2220
|
const padding = readFunnelPadding(panelOption(element), widthMm, heightMm);
|
|
1709
2221
|
const row = el("div", "echarts-field-row");
|
|
1710
2222
|
const sides = [
|
|
1711
|
-
{ side: "top", title: "
|
|
1712
|
-
{ side: "right", title: "
|
|
1713
|
-
{ side: "bottom", title: "
|
|
1714
|
-
{ side: "left", title: "
|
|
2223
|
+
{ side: "top", title: t2("echarts.panel.paddingTop") },
|
|
2224
|
+
{ side: "right", title: t2("echarts.panel.paddingRight") },
|
|
2225
|
+
{ side: "bottom", title: t2("echarts.panel.paddingBottom") },
|
|
2226
|
+
{ side: "left", title: t2("echarts.panel.paddingLeft") }
|
|
1715
2227
|
];
|
|
1716
2228
|
for (const { side, title } of sides) {
|
|
1717
2229
|
row.appendChild(
|
|
@@ -1728,7 +2240,7 @@ function renderProperty(ctx) {
|
|
|
1728
2240
|
form.appendChild(wrap);
|
|
1729
2241
|
}
|
|
1730
2242
|
if (has("radius")) {
|
|
1731
|
-
const wrap = field("
|
|
2243
|
+
const wrap = field(t2("echarts.panel.radius"));
|
|
1732
2244
|
wrap.appendChild(
|
|
1733
2245
|
textInput(
|
|
1734
2246
|
{ value: String(readRadarRadius(panelOption(element), widthMm, heightMm)), type: "number", min: 20, max: 100 },
|
|
@@ -1742,7 +2254,7 @@ function renderProperty(ctx) {
|
|
|
1742
2254
|
form.appendChild(wrap);
|
|
1743
2255
|
}
|
|
1744
2256
|
if (has("gaugeRange")) {
|
|
1745
|
-
const wrap = field("
|
|
2257
|
+
const wrap = field(t2("echarts.panel.minMax"));
|
|
1746
2258
|
const series = seriesList(panelOption(element));
|
|
1747
2259
|
const row = el("div", "echarts-field-row");
|
|
1748
2260
|
row.appendChild(
|
|
@@ -1764,7 +2276,7 @@ function renderProperty(ctx) {
|
|
|
1764
2276
|
wrap.appendChild(row);
|
|
1765
2277
|
form.appendChild(wrap);
|
|
1766
2278
|
}
|
|
1767
|
-
form.appendChild(el("p", "pd-hint",
|
|
2279
|
+
form.appendChild(el("p", "pd-hint", panelHint()));
|
|
1768
2280
|
return root;
|
|
1769
2281
|
}
|
|
1770
2282
|
var CHART_ELEMENT_UI = defineElementUI({
|
|
@@ -1772,9 +2284,11 @@ var CHART_ELEMENT_UI = defineElementUI({
|
|
|
1772
2284
|
renderCanvas,
|
|
1773
2285
|
renderProperty,
|
|
1774
2286
|
hasProperties: chartHasProperties,
|
|
1775
|
-
group: "
|
|
2287
|
+
group: t2("echarts.panel.group"),
|
|
1776
2288
|
searchKeywords: SEARCH_KEYWORDS,
|
|
1777
|
-
styles: STYLES
|
|
2289
|
+
styles: STYLES,
|
|
2290
|
+
i18nId: "echarts",
|
|
2291
|
+
locales: { "zh-CN": zh_CN_default.echarts, "en-US": en_US_default.echarts, "th-TH": th_TH_default.echarts }
|
|
1778
2292
|
});
|
|
1779
2293
|
var disposeHandle2;
|
|
1780
2294
|
function installChartCommonUI() {
|