@visactor/vseed 0.0.16 → 0.0.18
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/dist/builder/builder/builder.d.ts +801 -174
- package/dist/builder/builder/builder.d.ts.map +1 -1
- package/dist/builder/register/all.d.ts.map +1 -1
- package/dist/builder/register/chartType.d.ts +2 -0
- package/dist/builder/register/chartType.d.ts.map +1 -1
- package/dist/dataReshape/dataReshapeFor1D1M.d.ts.map +1 -1
- package/dist/dataReshape/dataReshapeFor1D2M.d.ts +20 -0
- package/dist/dataReshape/dataReshapeFor1D2M.d.ts.map +1 -0
- package/dist/dataReshape/dataReshapeFor2D1M.d.ts.map +1 -1
- package/dist/dataReshape/index.d.ts +1 -0
- package/dist/dataReshape/index.d.ts.map +1 -1
- package/dist/index.cjs +866 -187
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +744 -134
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipeline/funnel.d.ts +3 -0
- package/dist/pipeline/advanced/pipeline/funnel.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/index.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/index.d.ts.map +1 -1
- package/dist/pipeline/advanced/pipeline/scatter.d.ts +3 -0
- package/dist/pipeline/advanced/pipeline/scatter.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/config/config.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/config/config.d.ts.map +1 -1
- package/dist/pipeline/advanced/pipes/encoding/encodingFunnel.d.ts +3 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingFunnel.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingYY.d.ts +3 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingYY.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/encoding/index.d.ts.map +1 -1
- package/dist/pipeline/advanced/pipes/reshape/index.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/reshape/index.d.ts.map +1 -1
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo1D2M.d.ts +9 -0
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo1D2M.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo1D2M.d.ts +9 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo1D2M.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/area.d.ts.map +1 -1
- package/dist/pipeline/spec/pipeline/funnel.d.ts +3 -0
- package/dist/pipeline/spec/pipeline/funnel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/index.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/index.d.ts.map +1 -1
- package/dist/pipeline/spec/pipeline/line.d.ts.map +1 -1
- package/dist/pipeline/spec/pipeline/roseParallel.d.ts.map +1 -1
- package/dist/pipeline/spec/pipeline/scatter.d.ts +3 -0
- package/dist/pipeline/spec/pipeline/scatter.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationHorizontalLine.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationVerticalLine.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/axes/xLinear.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/axes/yLinear.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/color/color.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/crosshair/horizontalCrosshairLine.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/horizontalCrosshairLine.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/index.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/dataset/dataset.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/init/funnel.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/funnel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/index.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/init/pie.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/init/roseParallel.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/init/scatter.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/scatter.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/barStyle.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/markStyle/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/index.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/markStyle/pointState.d.ts +4 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/pointState.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/pointStyle.d.ts.map +1 -1
- package/dist/pipeline/spec/pipes/vchart/tooltip/tooltip.d.ts.map +1 -1
- package/dist/pipeline/utils/measures/findMeasureById.d.ts +2 -1
- package/dist/pipeline/utils/measures/findMeasureById.d.ts.map +1 -1
- package/dist/pipeline/utils/measures/index.d.ts +1 -1
- package/dist/pipeline/utils/measures/index.d.ts.map +1 -1
- package/dist/theme/dark.d.ts.map +1 -1
- package/dist/theme/light.d.ts.map +1 -1
- package/dist/types/advancedVSeed.d.ts +181 -22
- package/dist/types/advancedVSeed.d.ts.map +1 -1
- package/dist/types/chartType/area/area.d.ts +414 -14
- package/dist/types/chartType/area/area.d.ts.map +1 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +414 -14
- package/dist/types/chartType/areaPercent/areaPercent.d.ts.map +1 -1
- package/dist/types/chartType/bar/bar.d.ts +414 -14
- package/dist/types/chartType/bar/bar.d.ts.map +1 -1
- package/dist/types/chartType/barParallel/barParallel.d.ts +414 -14
- package/dist/types/chartType/barParallel/barParallel.d.ts.map +1 -1
- package/dist/types/chartType/barPercent/barPercent.d.ts +414 -14
- package/dist/types/chartType/barPercent/barPercent.d.ts.map +1 -1
- package/dist/types/chartType/column/column.d.ts +414 -14
- package/dist/types/chartType/column/column.d.ts.map +1 -1
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +414 -14
- package/dist/types/chartType/columnParallel/columnParallel.d.ts.map +1 -1
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +414 -14
- package/dist/types/chartType/columnPercent/columnPercent.d.ts.map +1 -1
- package/dist/types/chartType/donut/donut.d.ts +2 -2
- package/dist/types/chartType/funnel/funnel.d.ts +224 -0
- package/dist/types/chartType/funnel/funnel.d.ts.map +1 -0
- package/dist/types/chartType/funnel/index.d.ts +2 -0
- package/dist/types/chartType/funnel/index.d.ts.map +1 -0
- package/dist/types/chartType/index.d.ts +2 -0
- package/dist/types/chartType/index.d.ts.map +1 -1
- package/dist/types/chartType/line/line.d.ts +414 -14
- package/dist/types/chartType/line/line.d.ts.map +1 -1
- package/dist/types/chartType/pie/pie.d.ts +2 -2
- package/dist/types/chartType/rose/rose.d.ts +2 -2
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +2 -2
- package/dist/types/chartType/scatter/index.d.ts +2 -0
- package/dist/types/chartType/scatter/index.d.ts.map +1 -0
- package/dist/types/chartType/scatter/scatter.d.ts +1243 -0
- package/dist/types/chartType/scatter/scatter.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/properties/annotation/annotation.d.ts +0 -8
- package/dist/types/properties/annotation/annotation.d.ts.map +1 -1
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +0 -2
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts.map +1 -1
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +0 -2
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts.map +1 -1
- package/dist/types/properties/baseConfig/color.d.ts +2 -2
- package/dist/types/properties/baseConfig/color.d.ts.map +1 -1
- package/dist/types/properties/chartType/chartType.d.ts +6 -2
- package/dist/types/properties/chartType/chartType.d.ts.map +1 -1
- package/dist/types/properties/config/axis.d.ts +1 -1
- package/dist/types/properties/config/config.d.ts +88 -2
- package/dist/types/properties/config/config.d.ts.map +1 -1
- package/dist/types/properties/dimensions/dimensions.d.ts +4 -4
- package/dist/types/properties/encoding/encoding.d.ts +2 -0
- package/dist/types/properties/encoding/encoding.d.ts.map +1 -1
- package/dist/types/properties/theme/customTheme.d.ts +176 -20
- package/dist/types/properties/theme/customTheme.d.ts.map +1 -1
- package/dist/types/vseed.d.ts +6803 -1552
- package/dist/types/vseed.d.ts.map +1 -1
- package/dist/umd/999.js +3574 -0
- package/dist/umd/999.js.map +1 -0
- package/dist/umd/index.js +6170 -8933
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -24,112 +24,135 @@ var __webpack_require__ = {};
|
|
24
24
|
var __webpack_exports__ = {};
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
31
|
-
zBaseConfig: ()=>zBaseConfig,
|
27
|
+
funnelAdvancedPipeline: ()=>funnelAdvancedPipeline,
|
28
|
+
zPie: ()=>zPie,
|
29
|
+
zBar: ()=>zBar,
|
32
30
|
pieAdvancedPipeline: ()=>pieAdvancedPipeline,
|
33
31
|
execPipeline: ()=>execPipeline,
|
34
32
|
areaSpecPipeline: ()=>areaSpecPipeline,
|
35
|
-
|
33
|
+
zDonut: ()=>zDonut,
|
34
|
+
findFirstMeasure: ()=>findFirstMeasure,
|
35
|
+
scatterAdvancedPipeline: ()=>scatterAdvancedPipeline,
|
36
|
+
zCrosshairRect: ()=>zCrosshairRect,
|
37
|
+
scatterSpecPipeline: ()=>scatterSpecPipeline,
|
38
|
+
intl: ()=>intl,
|
39
|
+
columnPercentAdvancedPipeline: ()=>columnPercentAdvancedPipeline,
|
40
|
+
zAnnotation: ()=>zAnnotation,
|
41
|
+
zYBandAxis: ()=>zYBandAxis,
|
42
|
+
dataReshapeFor1D2M: ()=>dataReshapeFor1D2M,
|
43
|
+
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
44
|
+
zMarkStyle: ()=>zMarkStyle,
|
45
|
+
zYLinearAxis: ()=>zYLinearAxis,
|
46
|
+
Separator: ()=>Separator,
|
47
|
+
columnAdvancedPipeline: ()=>columnAdvancedPipeline,
|
48
|
+
zLabel: ()=>zLabel,
|
49
|
+
registerColumn: ()=>registerColumn,
|
50
|
+
funnelSpecPipeline: ()=>funnelSpecPipeline,
|
51
|
+
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
52
|
+
zLineStyle: ()=>zLineStyle,
|
53
|
+
dataReshapeFor1D1M: ()=>dataReshapeFor1D1M,
|
54
|
+
registerArea: ()=>registerArea,
|
55
|
+
zRoseParallel: ()=>zRoseParallel,
|
56
|
+
zDataset: ()=>zDataset,
|
57
|
+
UnfoldDimensionGroupId: ()=>UnfoldDimensionGroupId,
|
58
|
+
zNumFormat: ()=>zNumFormat,
|
59
|
+
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
60
|
+
zArea: ()=>zArea,
|
61
|
+
zColumnParallel: ()=>zColumnParallel,
|
62
|
+
zDimensions: ()=>zDimensions,
|
63
|
+
zLegend: ()=>zLegend,
|
64
|
+
FoldMeasureId: ()=>FoldMeasureId,
|
65
|
+
zTheme: ()=>zTheme,
|
66
|
+
donutSpecPipeline: ()=>donutSpecPipeline,
|
67
|
+
registerAreaPercent: ()=>registerAreaPercent,
|
68
|
+
zBarPercent: ()=>zBarPercent,
|
69
|
+
zDatum: ()=>zDatum,
|
70
|
+
barAdvancedPipeline: ()=>barAdvancedPipeline,
|
71
|
+
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
72
|
+
registerColumnPercent: ()=>registerColumnPercent,
|
73
|
+
zCrosshairLine: ()=>zCrosshairLine,
|
74
|
+
registerBarPercent: ()=>registerBarPercent,
|
75
|
+
roseSpecPipeline: ()=>roseSpecPipeline,
|
76
|
+
registerLightTheme: ()=>registerLightTheme,
|
77
|
+
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
78
|
+
zBarParallel: ()=>zBarParallel,
|
79
|
+
zChartType: ()=>zChartType,
|
80
|
+
registerDarkTheme: ()=>registerDarkTheme,
|
81
|
+
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
82
|
+
pieSpecPipeline: ()=>pieSpecPipeline,
|
83
|
+
zStackCornerRadius: ()=>zStackCornerRadius,
|
84
|
+
barSpecPipeline: ()=>barSpecPipeline,
|
85
|
+
zRose: ()=>zRose,
|
86
|
+
unfoldDimensions: ()=>unfoldDimensions,
|
87
|
+
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
88
|
+
autoFormatter: ()=>autoFormatter,
|
89
|
+
Builder: ()=>Builder,
|
90
|
+
registerBar: ()=>registerBar,
|
91
|
+
registerAll: ()=>registerAll,
|
92
|
+
isVChart: ()=>isVChart,
|
36
93
|
registerLine: ()=>registerLine,
|
94
|
+
registerCustomTheme: ()=>registerCustomTheme,
|
37
95
|
zColor: ()=>zColor,
|
38
96
|
zMeasureGroup: ()=>zMeasureGroup,
|
39
|
-
zStackCornerRadius: ()=>zStackCornerRadius,
|
40
|
-
zTooltip: ()=>zTooltip,
|
41
97
|
zUnfoldInfo: ()=>zUnfoldInfo,
|
42
98
|
zMeasures: ()=>zMeasures,
|
43
|
-
zCrosshairRect: ()=>zCrosshairRect,
|
44
99
|
FoldMeasureName: ()=>FoldMeasureName,
|
45
|
-
intl: ()=>intl,
|
46
100
|
darkTheme: ()=>darkTheme,
|
47
101
|
createNumFormatter: ()=>createNumFormatter,
|
48
|
-
columnPercentAdvancedPipeline: ()=>columnPercentAdvancedPipeline,
|
49
102
|
zAxis: ()=>zAxis,
|
50
103
|
isVTable: ()=>isVTable,
|
51
|
-
|
52
|
-
zCrosshairLine: ()=>zCrosshairLine,
|
104
|
+
zLine: ()=>zLine,
|
53
105
|
columnSpecPipeline: ()=>columnSpecPipeline,
|
54
106
|
UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
|
55
107
|
zDatasetReshapeInfo: ()=>zDatasetReshapeInfo,
|
56
108
|
zFoldInfo: ()=>zFoldInfo,
|
57
|
-
zYBandAxis: ()=>zYBandAxis,
|
58
109
|
zAreaStyle: ()=>zAreaStyle,
|
59
110
|
ORIGINAL_DATA: ()=>ORIGINAL_DATA,
|
60
|
-
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
61
111
|
zAnnotationArea: ()=>zAnnotationArea,
|
62
|
-
zMarkStyle: ()=>zMarkStyle,
|
63
|
-
zYLinearAxis: ()=>zYLinearAxis,
|
64
|
-
Separator: ()=>Separator,
|
65
|
-
columnAdvancedPipeline: ()=>columnAdvancedPipeline,
|
66
112
|
columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
|
67
|
-
zLabel: ()=>zLabel,
|
68
113
|
i18n: ()=>i18n,
|
69
|
-
|
114
|
+
zPointStyle: ()=>zPointStyle,
|
70
115
|
zAnnotationPoint: ()=>zAnnotationPoint,
|
71
116
|
lightTheme: ()=>lightTheme,
|
72
117
|
registerColumnParallel: ()=>registerColumnParallel,
|
73
118
|
zDimension: ()=>zDimension,
|
74
|
-
zPointStyle: ()=>zPointStyle,
|
75
119
|
isPivotChart: ()=>isPivotChart,
|
120
|
+
zColumn: ()=>zColumn,
|
76
121
|
zCustomTheme: ()=>zCustomTheme,
|
77
|
-
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
78
|
-
zLineStyle: ()=>zLineStyle,
|
79
122
|
zXBandAxis: ()=>zXBandAxis,
|
80
|
-
dataReshapeFor1D1M: ()=>dataReshapeFor1D1M,
|
81
|
-
registerArea: ()=>registerArea,
|
82
123
|
findMeasureById: ()=>findMeasureById,
|
83
|
-
zDataset: ()=>zDataset,
|
84
|
-
UnfoldDimensionGroupId: ()=>UnfoldDimensionGroupId,
|
85
|
-
zNumFormat: ()=>zNumFormat,
|
86
|
-
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
87
|
-
areaPercentAdvancedPipeline: ()=>areaPercentAdvancedPipeline,
|
88
124
|
zVSeed: ()=>zVSeed,
|
125
|
+
areaPercentAdvancedPipeline: ()=>areaPercentAdvancedPipeline,
|
89
126
|
zBackgroundColor: ()=>zBackgroundColor,
|
90
127
|
registerBarParallel: ()=>registerBarParallel,
|
91
128
|
zMeasure: ()=>zMeasure,
|
92
|
-
|
93
|
-
zLegend: ()=>zLegend,
|
94
|
-
FoldMeasureId: ()=>FoldMeasureId,
|
95
|
-
zTheme: ()=>zTheme,
|
96
|
-
donutSpecPipeline: ()=>donutSpecPipeline,
|
97
|
-
registerAreaPercent: ()=>registerAreaPercent,
|
129
|
+
zLocale: ()=>zLocale,
|
98
130
|
zEncoding: ()=>zEncoding,
|
99
131
|
autoNumFormatter: ()=>autoNumFormatter,
|
132
|
+
zAdvancedVSeed: ()=>zAdvancedVSeed,
|
100
133
|
zXLinearAxis: ()=>zXLinearAxis,
|
101
134
|
zConfig: ()=>zConfig,
|
102
|
-
zDatum: ()=>zDatum,
|
103
135
|
zBarStyle: ()=>zBarStyle,
|
104
|
-
|
105
|
-
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
136
|
+
zAreaPercent: ()=>zAreaPercent,
|
106
137
|
columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
|
107
|
-
|
138
|
+
zColumnPercent: ()=>zColumnPercent,
|
108
139
|
donutAdvancedPipeline: ()=>donutAdvancedPipeline,
|
109
|
-
|
140
|
+
zScatter: ()=>zScatter,
|
110
141
|
foldMeasures: ()=>foldMeasures,
|
142
|
+
zFunnel: ()=>zFunnel,
|
111
143
|
dataReshapeFor2D1M: ()=>dataReshapeFor2D1M,
|
112
|
-
|
113
|
-
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
114
|
-
roseSpecPipeline: ()=>roseSpecPipeline,
|
115
|
-
registerDarkTheme: ()=>registerDarkTheme,
|
116
|
-
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
144
|
+
zTooltip: ()=>zTooltip,
|
117
145
|
barParallelAdvancedPipeline: ()=>barParallelAdvancedPipeline,
|
118
146
|
FoldMeasureValue: ()=>FoldMeasureValue,
|
119
147
|
barPercentSpecPipeline: ()=>barPercentSpecPipeline,
|
120
148
|
lineAdvancedPipeline: ()=>lineAdvancedPipeline,
|
121
|
-
pieSpecPipeline: ()=>pieSpecPipeline,
|
122
|
-
barSpecPipeline: ()=>barSpecPipeline,
|
123
149
|
lineSpecPipeline: ()=>lineSpecPipeline,
|
124
|
-
zChartType: ()=>zChartType,
|
125
150
|
createFormatter: ()=>createFormatter,
|
126
|
-
|
151
|
+
zBaseConfig: ()=>zBaseConfig,
|
127
152
|
columnPercentSpecPipeline: ()=>columnPercentSpecPipeline,
|
128
153
|
areaAdvancedPipeline: ()=>areaAdvancedPipeline,
|
129
|
-
Builder: ()=>Builder,
|
130
|
-
barParallelSpecPipeline: ()=>barParallelSpecPipeline,
|
131
154
|
areaPercentSpecPipeline: ()=>areaPercentSpecPipeline,
|
132
|
-
|
155
|
+
barParallelSpecPipeline: ()=>barParallelSpecPipeline
|
133
156
|
});
|
134
157
|
const initAdvancedVSeed = (advancedVSeed, context)=>{
|
135
158
|
const { vseed } = context;
|
@@ -282,7 +305,7 @@ const NUMBER_FORMAT_RULES = {
|
|
282
305
|
};
|
283
306
|
const createFormatter = (format)=>createNumFormatter(format);
|
284
307
|
const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
|
285
|
-
|
308
|
+
const findMeasureById = (measures, id)=>{
|
286
309
|
if (!measures) return;
|
287
310
|
const stack = [
|
288
311
|
...measures
|
@@ -293,7 +316,22 @@ function findMeasureById(measures, id) {
|
|
293
316
|
if (current.id === id && !('children' in current)) return current;
|
294
317
|
if ('children' in current && current.children) stack.push(...current.children);
|
295
318
|
}
|
296
|
-
}
|
319
|
+
};
|
320
|
+
const findFirstMeasure = (measures)=>{
|
321
|
+
if (!measures) return;
|
322
|
+
const stack = [
|
323
|
+
...measures
|
324
|
+
].reverse();
|
325
|
+
while(stack.length > 0){
|
326
|
+
const current = stack.pop();
|
327
|
+
if (!current) continue;
|
328
|
+
if (!('children' in current)) return current;
|
329
|
+
if ('children' in current && current.children) {
|
330
|
+
const children = (current.children || []).reverse();
|
331
|
+
stack.push(...children);
|
332
|
+
}
|
333
|
+
}
|
334
|
+
};
|
297
335
|
const autoMeasures = (advancedVSeed, context)=>{
|
298
336
|
const result = {
|
299
337
|
...advancedVSeed
|
@@ -511,14 +549,17 @@ const dataReshapeFor2D1M = (dataset, dimensions, measures, options)=>{
|
|
511
549
|
};
|
512
550
|
}
|
513
551
|
{
|
514
|
-
const
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
552
|
+
const onlyOneMeasure = 1 === measures.length;
|
553
|
+
const onlyOneDimension = 1 === dimensions.length;
|
554
|
+
const dims = [
|
555
|
+
...dimensions
|
556
|
+
];
|
557
|
+
if (!onlyOneMeasure || onlyOneDimension) dims.push({
|
558
|
+
id: foldMeasureName,
|
559
|
+
alias: i18n`指标名称`,
|
560
|
+
location: 'dimension'
|
561
|
+
});
|
562
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, dims, [
|
522
563
|
{
|
523
564
|
id: foldMeasureValue,
|
524
565
|
alias: i18n`指标值`
|
@@ -570,13 +611,70 @@ const dataReshapeFor1D1M = (dataset, dimensions, measures, options)=>{
|
|
570
611
|
};
|
571
612
|
}
|
572
613
|
{
|
573
|
-
const
|
614
|
+
const dims = 1 === measures.length ? [
|
615
|
+
...dimensions
|
616
|
+
] : [
|
574
617
|
...dimensions,
|
575
618
|
{
|
576
619
|
id: foldMeasureName,
|
577
620
|
alias: i18n`指标名称`,
|
578
621
|
location: 'dimension'
|
579
622
|
}
|
623
|
+
];
|
624
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, dims, [
|
625
|
+
{
|
626
|
+
id: foldMeasureValue,
|
627
|
+
alias: i18n`指标值`
|
628
|
+
}
|
629
|
+
], 0, unfoldDimensionGroup, unfoldDimensionGroupId, foldMeasureId);
|
630
|
+
return {
|
631
|
+
dataset: finalDataset,
|
632
|
+
foldInfo,
|
633
|
+
unfoldInfo
|
634
|
+
};
|
635
|
+
}
|
636
|
+
};
|
637
|
+
const dataReshapeFor1D2M_emptyReshapeResult = {
|
638
|
+
dataset: [],
|
639
|
+
foldInfo: {
|
640
|
+
foldMap: {},
|
641
|
+
measureId: '',
|
642
|
+
measureName: '',
|
643
|
+
measureValue: ''
|
644
|
+
},
|
645
|
+
unfoldInfo: {
|
646
|
+
groupName: '',
|
647
|
+
groupId: '',
|
648
|
+
colorItems: [],
|
649
|
+
colorIdMap: {}
|
650
|
+
}
|
651
|
+
};
|
652
|
+
const dataReshapeFor1D2M = (dataset, dimensions, measures, options)=>{
|
653
|
+
const { foldMeasureId = FoldMeasureId, foldMeasureName = FoldMeasureName, foldMeasureValue = FoldMeasureValue, unfoldDimensionGroup = UnfoldDimensionGroup, unfoldDimensionGroupId = UnfoldDimensionGroupId } = options || {};
|
654
|
+
if (0 === dimensions.length && 0 === measures.length) return dataReshapeFor1D2M_emptyReshapeResult;
|
655
|
+
const { dataset: foldedDataset, foldInfo } = foldMeasures(dataset, measures.length > 1 ? measures.slice(1) : measures, foldMeasureId, foldMeasureName, foldMeasureValue);
|
656
|
+
if (0 === dimensions.length) {
|
657
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, [
|
658
|
+
{
|
659
|
+
id: foldMeasureValue,
|
660
|
+
alias: i18n`指标值`,
|
661
|
+
location: 'dimension'
|
662
|
+
}
|
663
|
+
], [
|
664
|
+
{
|
665
|
+
id: foldMeasureValue,
|
666
|
+
alias: i18n`指标值`
|
667
|
+
}
|
668
|
+
], 0, unfoldDimensionGroup, unfoldDimensionGroupId, foldMeasureId);
|
669
|
+
return {
|
670
|
+
dataset: finalDataset,
|
671
|
+
foldInfo,
|
672
|
+
unfoldInfo
|
673
|
+
};
|
674
|
+
}
|
675
|
+
{
|
676
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, [
|
677
|
+
...dimensions
|
580
678
|
], [
|
581
679
|
{
|
582
680
|
id: foldMeasureValue,
|
@@ -636,6 +734,28 @@ const reshapeTo1D1M = (advancedVSeed, context)=>{
|
|
636
734
|
]
|
637
735
|
};
|
638
736
|
};
|
737
|
+
const reshapeTo1D2M = (advancedVSeed, context)=>{
|
738
|
+
const result = {
|
739
|
+
...advancedVSeed
|
740
|
+
};
|
741
|
+
const { vseed } = context;
|
742
|
+
const { dataset } = vseed;
|
743
|
+
const { dimensions, measures } = advancedVSeed;
|
744
|
+
if (!measures || !dimensions || !dataset) return result;
|
745
|
+
if (0 === measures.length) throw new Error('measures can not be empty');
|
746
|
+
const { dataset: newDatasets, foldInfo, unfoldInfo } = dataReshapeFor1D2M(dataset, dimensions, measures);
|
747
|
+
return {
|
748
|
+
...result,
|
749
|
+
dataset: newDatasets,
|
750
|
+
datasetReshapeInfo: [
|
751
|
+
{
|
752
|
+
id: '1D2M',
|
753
|
+
foldInfo,
|
754
|
+
unfoldInfo
|
755
|
+
}
|
756
|
+
]
|
757
|
+
};
|
758
|
+
};
|
639
759
|
const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
640
760
|
const result = {
|
641
761
|
...advancedVSeed
|
@@ -675,6 +795,45 @@ const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
|
675
795
|
datasetReshapeInfo: datasetReshapeInfo
|
676
796
|
};
|
677
797
|
};
|
798
|
+
const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
799
|
+
const result = {
|
800
|
+
...advancedVSeed
|
801
|
+
};
|
802
|
+
const { vseed } = context;
|
803
|
+
const { dataset } = vseed;
|
804
|
+
const { dimensions, measures } = advancedVSeed;
|
805
|
+
if (!measures || !dimensions) return result;
|
806
|
+
const measureGroups = [];
|
807
|
+
if (measures) measures.forEach((measure)=>{
|
808
|
+
if (measure.children && measure.children.length > 0) measureGroups.push(measure);
|
809
|
+
});
|
810
|
+
const newDatasets = [];
|
811
|
+
const datasetReshapeInfo = [];
|
812
|
+
measureGroups.forEach((measureGroup)=>{
|
813
|
+
const measures = measureGroup.children;
|
814
|
+
if (!measures) return;
|
815
|
+
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
816
|
+
const groupId = measureGroup.id;
|
817
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor1D2M(dataset, commonDimensions, measures, {
|
818
|
+
foldMeasureId: FoldMeasureId,
|
819
|
+
foldMeasureName: FoldMeasureName,
|
820
|
+
foldMeasureValue: FoldMeasureValue + groupId,
|
821
|
+
unfoldDimensionGroup: UnfoldDimensionGroup
|
822
|
+
});
|
823
|
+
const reshapeInfo = {
|
824
|
+
id: groupId,
|
825
|
+
foldInfo,
|
826
|
+
unfoldInfo
|
827
|
+
};
|
828
|
+
newDatasets.push(newSubDataset);
|
829
|
+
datasetReshapeInfo.push(reshapeInfo);
|
830
|
+
});
|
831
|
+
return {
|
832
|
+
...result,
|
833
|
+
dataset: newDatasets,
|
834
|
+
datasetReshapeInfo: datasetReshapeInfo
|
835
|
+
};
|
836
|
+
};
|
678
837
|
const pivotReshapeTo2D1M = (advancedVSeed, context)=>{
|
679
838
|
const result = {
|
680
839
|
...advancedVSeed
|
@@ -858,6 +1017,37 @@ const encodingPie = (advancedVSeed)=>{
|
|
858
1017
|
encoding
|
859
1018
|
};
|
860
1019
|
};
|
1020
|
+
const encodingFunnel = (advancedVSeed)=>{
|
1021
|
+
const result = {
|
1022
|
+
...advancedVSeed
|
1023
|
+
};
|
1024
|
+
const { datasetReshapeInfo, dimensions } = advancedVSeed;
|
1025
|
+
if (!datasetReshapeInfo || !dimensions) return result;
|
1026
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
1027
|
+
const { foldInfo, unfoldInfo } = cur;
|
1028
|
+
const size = [
|
1029
|
+
foldInfo.measureValue
|
1030
|
+
];
|
1031
|
+
const group = [
|
1032
|
+
unfoldInfo.groupId
|
1033
|
+
];
|
1034
|
+
const color = [
|
1035
|
+
unfoldInfo.groupId
|
1036
|
+
];
|
1037
|
+
return [
|
1038
|
+
...prev,
|
1039
|
+
{
|
1040
|
+
size,
|
1041
|
+
group,
|
1042
|
+
color
|
1043
|
+
}
|
1044
|
+
];
|
1045
|
+
}, []);
|
1046
|
+
return {
|
1047
|
+
...result,
|
1048
|
+
encoding
|
1049
|
+
};
|
1050
|
+
};
|
861
1051
|
const vchartBaseConfig = (advancedVSeed, context)=>{
|
862
1052
|
const { vseed } = context;
|
863
1053
|
const result = {
|
@@ -933,6 +1123,7 @@ const pieConfig = (advancedVSeed, context)=>{
|
|
933
1123
|
};
|
934
1124
|
const areaConfig = lineConfig;
|
935
1125
|
const areaPercentConfig = lineConfig;
|
1126
|
+
const scatterConfig = lineConfig;
|
936
1127
|
const barConfig = columnConfig;
|
937
1128
|
const barParallelConfig = columnConfig;
|
938
1129
|
const barPercentConfig = columnConfig;
|
@@ -941,6 +1132,7 @@ const columnPercentConfig = columnConfig;
|
|
941
1132
|
const donutConfig = pieConfig;
|
942
1133
|
const roseConfig = pieConfig;
|
943
1134
|
const roseParallelConfig = pieConfig;
|
1135
|
+
const funnelConfig = pieConfig;
|
944
1136
|
const vchartTheme = (advancedVSeed, context)=>{
|
945
1137
|
const { customTheme, vseed } = context;
|
946
1138
|
const { theme = 'light', chartType } = vseed;
|
@@ -1225,12 +1417,96 @@ const roseParallelAdvancedPipeline = [
|
|
1225
1417
|
markStyle_markStyle,
|
1226
1418
|
annotation_annotation
|
1227
1419
|
];
|
1420
|
+
const funnelAdvancedPipeline = [
|
1421
|
+
initAdvancedVSeed,
|
1422
|
+
locale_locale,
|
1423
|
+
autoMeasures,
|
1424
|
+
autoDimensions,
|
1425
|
+
pivotAdapter([
|
1426
|
+
reshapeTo1D1M
|
1427
|
+
], [
|
1428
|
+
pivotReshapeTo1D1M
|
1429
|
+
]),
|
1430
|
+
encodingFunnel,
|
1431
|
+
funnelConfig,
|
1432
|
+
vchartBaseConfig,
|
1433
|
+
vchartTheme,
|
1434
|
+
annotation_annotation
|
1435
|
+
];
|
1436
|
+
const encodingYY = (advancedVSeed)=>{
|
1437
|
+
const result = {
|
1438
|
+
...advancedVSeed
|
1439
|
+
};
|
1440
|
+
const { datasetReshapeInfo, measures } = advancedVSeed;
|
1441
|
+
if (!datasetReshapeInfo || !measures) return result;
|
1442
|
+
const firstMeasure = findFirstMeasure(measures);
|
1443
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
1444
|
+
const { foldInfo, unfoldInfo } = cur;
|
1445
|
+
const x = [
|
1446
|
+
firstMeasure?.id
|
1447
|
+
];
|
1448
|
+
const y = [
|
1449
|
+
foldInfo.measureValue
|
1450
|
+
];
|
1451
|
+
const group = [
|
1452
|
+
unfoldInfo.groupId
|
1453
|
+
];
|
1454
|
+
const color = [
|
1455
|
+
unfoldInfo.groupId
|
1456
|
+
];
|
1457
|
+
return [
|
1458
|
+
...prev,
|
1459
|
+
{
|
1460
|
+
x,
|
1461
|
+
y,
|
1462
|
+
group,
|
1463
|
+
color
|
1464
|
+
}
|
1465
|
+
];
|
1466
|
+
}, []);
|
1467
|
+
return {
|
1468
|
+
...result,
|
1469
|
+
encoding
|
1470
|
+
};
|
1471
|
+
};
|
1472
|
+
const scatterAdvancedPipeline = [
|
1473
|
+
initAdvancedVSeed,
|
1474
|
+
locale_locale,
|
1475
|
+
autoMeasures,
|
1476
|
+
autoDimensions,
|
1477
|
+
pivotAdapter([
|
1478
|
+
reshapeTo1D2M
|
1479
|
+
], [
|
1480
|
+
pivotReshapeTo1D2M
|
1481
|
+
]),
|
1482
|
+
encodingYY,
|
1483
|
+
vchartBaseConfig,
|
1484
|
+
scatterConfig,
|
1485
|
+
vchartTheme,
|
1486
|
+
markStyle_markStyle,
|
1487
|
+
annotation_annotation
|
1488
|
+
];
|
1228
1489
|
const dataset_dataset = (spec, context)=>{
|
1229
1490
|
const { advancedVSeed } = context;
|
1491
|
+
const { encoding } = advancedVSeed;
|
1492
|
+
const angle = encoding[0]?.angle?.[0];
|
1493
|
+
const x = encoding[0]?.x?.[0];
|
1494
|
+
const group = encoding[0]?.group?.[0];
|
1495
|
+
const fields = {};
|
1496
|
+
if (angle) fields[angle] = {
|
1497
|
+
sortIndex: 0
|
1498
|
+
};
|
1499
|
+
if (x) fields[x] = {
|
1500
|
+
sortIndex: 0
|
1501
|
+
};
|
1502
|
+
if (group) fields[group] = {
|
1503
|
+
sortIndex: 1
|
1504
|
+
};
|
1230
1505
|
return {
|
1231
1506
|
...spec,
|
1232
1507
|
data: {
|
1233
|
-
values: advancedVSeed.dataset
|
1508
|
+
values: advancedVSeed.dataset,
|
1509
|
+
fields: fields
|
1234
1510
|
}
|
1235
1511
|
};
|
1236
1512
|
};
|
@@ -1412,7 +1688,8 @@ const initPie = (spec, context)=>{
|
|
1412
1688
|
result.pie = {
|
1413
1689
|
style: {
|
1414
1690
|
stroke: '#ffffff',
|
1415
|
-
lineWidth: 1
|
1691
|
+
lineWidth: 1,
|
1692
|
+
centerOffset: 0
|
1416
1693
|
},
|
1417
1694
|
state: {
|
1418
1695
|
hover: {
|
@@ -1482,7 +1759,7 @@ const initRose = (spec, context)=>{
|
|
1482
1759
|
state: {
|
1483
1760
|
hover: {
|
1484
1761
|
lineWidth: 1,
|
1485
|
-
fillOpacity: 0.
|
1762
|
+
fillOpacity: 0.6
|
1486
1763
|
}
|
1487
1764
|
}
|
1488
1765
|
};
|
@@ -1518,6 +1795,12 @@ const initRoseParallel = (spec, context)=>{
|
|
1518
1795
|
style: {
|
1519
1796
|
stroke: '#ffffff',
|
1520
1797
|
lineWidth: 1
|
1798
|
+
},
|
1799
|
+
state: {
|
1800
|
+
hover: {
|
1801
|
+
lineWidth: 1,
|
1802
|
+
fillOpacity: 0.6
|
1803
|
+
}
|
1521
1804
|
}
|
1522
1805
|
};
|
1523
1806
|
result.region = [
|
@@ -1544,6 +1827,42 @@ const initPivot = (spec)=>{
|
|
1544
1827
|
indicatorsAsCol: false
|
1545
1828
|
};
|
1546
1829
|
};
|
1830
|
+
const initFunnel = (spec, context)=>{
|
1831
|
+
const result = {
|
1832
|
+
...spec
|
1833
|
+
};
|
1834
|
+
const { advancedVSeed } = context;
|
1835
|
+
const { encoding } = advancedVSeed;
|
1836
|
+
if (!encoding[0].size || !encoding[0].group || !encoding[0].color) return result;
|
1837
|
+
result.type = 'funnel';
|
1838
|
+
result.valueField = encoding[0].size[0];
|
1839
|
+
result.categoryField = encoding[0].group[0];
|
1840
|
+
result.padding = 0;
|
1841
|
+
result.isTransform = true;
|
1842
|
+
result.shape = 'rect';
|
1843
|
+
result.maxSize = '75%';
|
1844
|
+
result.minSize = '10%';
|
1845
|
+
result.region = [
|
1846
|
+
{
|
1847
|
+
clip: true
|
1848
|
+
}
|
1849
|
+
];
|
1850
|
+
result.funnel = {
|
1851
|
+
style: {
|
1852
|
+
cornerRadius: 4
|
1853
|
+
},
|
1854
|
+
state: {
|
1855
|
+
hover: {
|
1856
|
+
fillOpacity: 0.6
|
1857
|
+
}
|
1858
|
+
}
|
1859
|
+
};
|
1860
|
+
result.transformLabel = {
|
1861
|
+
visible: true
|
1862
|
+
};
|
1863
|
+
result.animation = true;
|
1864
|
+
return result;
|
1865
|
+
};
|
1547
1866
|
const xBand = (spec, context)=>{
|
1548
1867
|
const result = {
|
1549
1868
|
...spec
|
@@ -1712,7 +2031,7 @@ const xLinear = (spec, context)=>{
|
|
1712
2031
|
}
|
1713
2032
|
},
|
1714
2033
|
innerOffset: {
|
1715
|
-
|
2034
|
+
right: LINEAR_AXIS_INNER_OFFSET_TOP
|
1716
2035
|
}
|
1717
2036
|
};
|
1718
2037
|
result.axes = [
|
@@ -2023,6 +2342,9 @@ const tooltip_tooltip = (spec, context)=>{
|
|
2023
2342
|
result.tooltip = {
|
2024
2343
|
visible: enable,
|
2025
2344
|
mark: {
|
2345
|
+
title: {
|
2346
|
+
value: (datum)=>datum && datum[groupName] || ''
|
2347
|
+
},
|
2026
2348
|
content: [
|
2027
2349
|
{
|
2028
2350
|
visible: true,
|
@@ -2266,11 +2588,11 @@ const pivotDiscreteLegend = (spec, context)=>{
|
|
2266
2588
|
label: d,
|
2267
2589
|
shape: {
|
2268
2590
|
outerBorder: border ? {
|
2269
|
-
stroke: colorScheme[index],
|
2591
|
+
stroke: colorScheme?.[index],
|
2270
2592
|
distance: 3,
|
2271
2593
|
lineWidth: 1
|
2272
2594
|
} : void 0,
|
2273
|
-
fill: colorScheme[index]
|
2595
|
+
fill: colorScheme?.[index]
|
2274
2596
|
}
|
2275
2597
|
})),
|
2276
2598
|
item: {
|
@@ -2322,8 +2644,8 @@ const color_color = (spec, context)=>{
|
|
2322
2644
|
const { color } = baseConfig;
|
2323
2645
|
const { colorScheme, colorMapping } = color;
|
2324
2646
|
const mappingList = [];
|
2325
|
-
if (colorMapping) Object.entries(colorMapping).forEach(([key, value])=>{
|
2326
|
-
const idMap = Object.entries(unfoldInfo.colorIdMap).filter(([_, v])=>key
|
2647
|
+
if (colorMapping) Object.entries(colorMapping).sort((a, b)=>a[0].split(Separator).length - b[0].split(Separator).length).forEach(([key, value])=>{
|
2648
|
+
const idMap = Object.entries(unfoldInfo.colorIdMap).filter(([_, v])=>v.includes(key));
|
2327
2649
|
for (const [colorId] of idMap)mappingList.push([
|
2328
2650
|
colorId,
|
2329
2651
|
value
|
@@ -2654,19 +2976,17 @@ const isDimensionSelector = (selector)=>'object' == typeof selector && null !==
|
|
2654
2976
|
].includes(selector.op));
|
2655
2977
|
const barStyle_barStyle = (spec, context)=>{
|
2656
2978
|
const { advancedVSeed } = context;
|
2657
|
-
const { markStyle
|
2979
|
+
const { markStyle } = advancedVSeed;
|
2658
2980
|
const { barStyle } = markStyle;
|
2659
2981
|
const result = {
|
2660
2982
|
...spec,
|
2661
2983
|
bar: {
|
2984
|
+
style: {
|
2985
|
+
stroke: '#fff',
|
2986
|
+
lineWidth: 1
|
2987
|
+
},
|
2662
2988
|
state: {
|
2663
2989
|
hover: {
|
2664
|
-
stroke: (datum, context)=>{
|
2665
|
-
const field = encoding[0]?.group?.[0];
|
2666
|
-
const color = context.seriesColor(datum[field]);
|
2667
|
-
return color;
|
2668
|
-
},
|
2669
|
-
lineWidth: 4,
|
2670
2990
|
fillOpacity: 0.6
|
2671
2991
|
}
|
2672
2992
|
}
|
@@ -2722,14 +3042,7 @@ const pointStyle_pointStyle = (spec, context)=>{
|
|
2722
3042
|
const { pointStyle } = markStyle;
|
2723
3043
|
const result = {
|
2724
3044
|
...spec,
|
2725
|
-
point: {
|
2726
|
-
state: {
|
2727
|
-
dimension_hover: {
|
2728
|
-
scaleX: 1.4,
|
2729
|
-
scaleY: 1.4
|
2730
|
-
}
|
2731
|
-
}
|
2732
|
-
}
|
3045
|
+
point: {}
|
2733
3046
|
};
|
2734
3047
|
if (!pointStyle) return result;
|
2735
3048
|
const pointStyles = Array.isArray(pointStyle) ? pointStyle : [
|
@@ -2775,6 +3088,47 @@ const pointStyle_pointStyle = (spec, context)=>{
|
|
2775
3088
|
}
|
2776
3089
|
};
|
2777
3090
|
};
|
3091
|
+
const pointStateDimensionHover = (spec)=>{
|
3092
|
+
const point = spec.point || {};
|
3093
|
+
const result = {
|
3094
|
+
...spec,
|
3095
|
+
point: {
|
3096
|
+
...point,
|
3097
|
+
state: {
|
3098
|
+
dimension_hover: {
|
3099
|
+
scaleX: 1.4,
|
3100
|
+
scaleY: 1.4
|
3101
|
+
}
|
3102
|
+
}
|
3103
|
+
}
|
3104
|
+
};
|
3105
|
+
return result;
|
3106
|
+
};
|
3107
|
+
const pointStateHover = (spec, context)=>{
|
3108
|
+
const point = spec.point || {};
|
3109
|
+
const { advancedVSeed } = context;
|
3110
|
+
const { encoding } = advancedVSeed;
|
3111
|
+
const result = {
|
3112
|
+
...spec,
|
3113
|
+
point: {
|
3114
|
+
...point,
|
3115
|
+
state: {
|
3116
|
+
hover: {
|
3117
|
+
scaleX: 1.4,
|
3118
|
+
scaleY: 1.4,
|
3119
|
+
stroke: (datum, context)=>{
|
3120
|
+
const field = encoding[0]?.group?.[0];
|
3121
|
+
const color = context.seriesColor(datum[field]);
|
3122
|
+
return color;
|
3123
|
+
},
|
3124
|
+
fillOpacity: 0.6,
|
3125
|
+
lineWidth: 1
|
3126
|
+
}
|
3127
|
+
}
|
3128
|
+
}
|
3129
|
+
};
|
3130
|
+
return result;
|
3131
|
+
};
|
2778
3132
|
const lineStyle_lineStyle = (spec, context)=>{
|
2779
3133
|
const { advancedVSeed } = context;
|
2780
3134
|
const { markStyle, encoding, dataset } = advancedVSeed;
|
@@ -2953,7 +3307,7 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2953
3307
|
insideEnd: 'insideEndTop'
|
2954
3308
|
};
|
2955
3309
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
2956
|
-
const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true,
|
3310
|
+
const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1 } = annotationVerticalLine;
|
2957
3311
|
const dataset = advancedVSeed.dataset.flat();
|
2958
3312
|
const generateOneMarkLine = (x)=>({
|
2959
3313
|
x: x,
|
@@ -2961,8 +3315,6 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2961
3315
|
line: {
|
2962
3316
|
visible: lineVisible,
|
2963
3317
|
style: {
|
2964
|
-
offsetX,
|
2965
|
-
offsetY,
|
2966
3318
|
stroke: lineColor,
|
2967
3319
|
lineStyle: lineStyle,
|
2968
3320
|
lineWidth: lineWidth,
|
@@ -2981,8 +3333,6 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2981
3333
|
text: text,
|
2982
3334
|
position: positionMap[textPosition],
|
2983
3335
|
style: {
|
2984
|
-
offsetX,
|
2985
|
-
offsetY,
|
2986
3336
|
visible: true,
|
2987
3337
|
textAlign: textAlign,
|
2988
3338
|
textBaseline: textBaseline,
|
@@ -2994,8 +3344,6 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2994
3344
|
visible: backgroundVisible,
|
2995
3345
|
padding: backgroundPadding,
|
2996
3346
|
style: {
|
2997
|
-
offsetX,
|
2998
|
-
offsetY,
|
2999
3347
|
cornerRadius: backgroundBorderRadius ?? 4,
|
3000
3348
|
fill: backgroundColor,
|
3001
3349
|
stroke: backgroundBorderColor,
|
@@ -3050,7 +3398,7 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
3050
3398
|
insideEnd: 'insideEndTop'
|
3051
3399
|
};
|
3052
3400
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
3053
|
-
const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'bottom', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true,
|
3401
|
+
const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'bottom', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1 } = annotationVerticalLine;
|
3054
3402
|
const dataset = advancedVSeed.dataset.flat();
|
3055
3403
|
const generateOneMarkLine = (y)=>({
|
3056
3404
|
y,
|
@@ -3058,8 +3406,6 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
3058
3406
|
line: {
|
3059
3407
|
visible: lineVisible,
|
3060
3408
|
style: {
|
3061
|
-
offsetX,
|
3062
|
-
offsetY,
|
3063
3409
|
stroke: lineColor,
|
3064
3410
|
lineStyle: lineStyle,
|
3065
3411
|
lineWidth: lineWidth,
|
@@ -3078,8 +3424,6 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
3078
3424
|
text: text,
|
3079
3425
|
position: positionMap[textPosition],
|
3080
3426
|
style: {
|
3081
|
-
offsetX,
|
3082
|
-
offsetY,
|
3083
3427
|
visible: true,
|
3084
3428
|
textAlign: textAlign,
|
3085
3429
|
textBaseline: textBaseline,
|
@@ -3091,8 +3435,6 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
3091
3435
|
visible: backgroundVisible,
|
3092
3436
|
padding: backgroundPadding,
|
3093
3437
|
style: {
|
3094
|
-
offsetX,
|
3095
|
-
offsetY,
|
3096
3438
|
cornerRadius: backgroundBorderRadius ?? 4,
|
3097
3439
|
fill: backgroundColor,
|
3098
3440
|
stroke: backgroundBorderColor,
|
@@ -3488,6 +3830,46 @@ const horizontalCrosshairRect = (spec, context)=>{
|
|
3488
3830
|
};
|
3489
3831
|
return result;
|
3490
3832
|
};
|
3833
|
+
const horizontalCrosshairLine = (spec, context)=>{
|
3834
|
+
const result = {
|
3835
|
+
...spec
|
3836
|
+
};
|
3837
|
+
const { advancedVSeed, vseed } = context;
|
3838
|
+
const { chartType } = vseed;
|
3839
|
+
const config = advancedVSeed.config?.[chartType]?.crosshairLine;
|
3840
|
+
if (!config) return result;
|
3841
|
+
if (!result.crosshair) result.crosshair = {};
|
3842
|
+
const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
|
3843
|
+
const crosshair = result.crosshair;
|
3844
|
+
crosshair.yField = {
|
3845
|
+
visible,
|
3846
|
+
line: {
|
3847
|
+
type: 'line',
|
3848
|
+
style: {
|
3849
|
+
lineWidth: 1,
|
3850
|
+
opacity: 1,
|
3851
|
+
stroke: lineColor,
|
3852
|
+
lineDash: [
|
3853
|
+
4,
|
3854
|
+
2
|
3855
|
+
]
|
3856
|
+
}
|
3857
|
+
},
|
3858
|
+
label: {
|
3859
|
+
visible: labelVisible,
|
3860
|
+
labelBackground: {
|
3861
|
+
visible: labelVisible,
|
3862
|
+
style: {
|
3863
|
+
fill: labelBackgroundColor
|
3864
|
+
}
|
3865
|
+
},
|
3866
|
+
style: {
|
3867
|
+
fill: labelColor
|
3868
|
+
}
|
3869
|
+
}
|
3870
|
+
};
|
3871
|
+
return result;
|
3872
|
+
};
|
3491
3873
|
const line_line = [
|
3492
3874
|
initLine,
|
3493
3875
|
color_color,
|
@@ -3500,6 +3882,7 @@ const line_line = [
|
|
3500
3882
|
verticalCrosshairLine,
|
3501
3883
|
discreteLegend,
|
3502
3884
|
pointStyle_pointStyle,
|
3885
|
+
pointStateDimensionHover,
|
3503
3886
|
lineStyle_lineStyle,
|
3504
3887
|
annotationPoint_annotationPoint,
|
3505
3888
|
annotationVerticalLine_annotationVerticalLine,
|
@@ -3522,6 +3905,7 @@ const pivotLine = [
|
|
3522
3905
|
tooltip_tooltip,
|
3523
3906
|
verticalCrosshairLine,
|
3524
3907
|
pointStyle_pointStyle,
|
3908
|
+
pointStateDimensionHover,
|
3525
3909
|
lineStyle_lineStyle,
|
3526
3910
|
annotationPoint_annotationPoint,
|
3527
3911
|
annotationVerticalLine_annotationVerticalLine,
|
@@ -3838,6 +4222,7 @@ const area_area = [
|
|
3838
4222
|
verticalCrosshairLine,
|
3839
4223
|
discreteLegend,
|
3840
4224
|
pointStyle_pointStyle,
|
4225
|
+
pointStateDimensionHover,
|
3841
4226
|
lineStyle_lineStyle,
|
3842
4227
|
areaStyle_areaStyle,
|
3843
4228
|
annotationPoint_annotationPoint,
|
@@ -3862,6 +4247,7 @@ const pivotArea = [
|
|
3862
4247
|
tooltip_tooltip,
|
3863
4248
|
verticalCrosshairLine,
|
3864
4249
|
pointStyle_pointStyle,
|
4250
|
+
pointStateDimensionHover,
|
3865
4251
|
lineStyle_lineStyle,
|
3866
4252
|
areaStyle_areaStyle,
|
3867
4253
|
annotationPoint_annotationPoint,
|
@@ -4054,7 +4440,6 @@ const roseParallel = [
|
|
4054
4440
|
tooltip_tooltip,
|
4055
4441
|
discreteLegend,
|
4056
4442
|
verticalCrosshairRect,
|
4057
|
-
barStyle_barStyle,
|
4058
4443
|
annotationPoint_annotationPoint,
|
4059
4444
|
annotationVerticalLine_annotationVerticalLine,
|
4060
4445
|
annotationHorizontalLine_annotationHorizontalLine,
|
@@ -4076,7 +4461,6 @@ const pivotRoseParallel = [
|
|
4076
4461
|
label_label,
|
4077
4462
|
tooltip_tooltip,
|
4078
4463
|
verticalCrosshairRect,
|
4079
|
-
barStyle_barStyle,
|
4080
4464
|
annotationPoint_annotationPoint,
|
4081
4465
|
annotationVerticalLine_annotationVerticalLine,
|
4082
4466
|
annotationHorizontalLine_annotationHorizontalLine,
|
@@ -4089,6 +4473,113 @@ const pivotRoseParallel = [
|
|
4089
4473
|
const roseParallelSpecPipeline = [
|
4090
4474
|
pivotAdapter_pivotAdapter(roseParallel, pivotRoseParallel)
|
4091
4475
|
];
|
4476
|
+
const funnel = [
|
4477
|
+
initFunnel,
|
4478
|
+
color_color,
|
4479
|
+
background_backgroundColor,
|
4480
|
+
dataset_dataset,
|
4481
|
+
label_label,
|
4482
|
+
tooltip_tooltip,
|
4483
|
+
discreteLegend,
|
4484
|
+
annotationPoint_annotationPoint,
|
4485
|
+
annotationVerticalLine_annotationVerticalLine,
|
4486
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4487
|
+
annotationArea_annotationArea
|
4488
|
+
];
|
4489
|
+
const pivotFunnel = [
|
4490
|
+
initPivot,
|
4491
|
+
pivotGridStyle,
|
4492
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
4493
|
+
datasetPivot,
|
4494
|
+
pivotIndicators([
|
4495
|
+
initFunnel,
|
4496
|
+
color_color,
|
4497
|
+
background_backgroundColor,
|
4498
|
+
datasetPivotPlaceholder,
|
4499
|
+
label_label,
|
4500
|
+
tooltip_tooltip,
|
4501
|
+
annotationPoint_annotationPoint,
|
4502
|
+
annotationVerticalLine_annotationVerticalLine,
|
4503
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4504
|
+
annotationArea_annotationArea
|
4505
|
+
]),
|
4506
|
+
pivotRowDimensions,
|
4507
|
+
pivotColumnDimensions,
|
4508
|
+
pivotDiscreteLegend
|
4509
|
+
];
|
4510
|
+
const funnelSpecPipeline = [
|
4511
|
+
pivotAdapter_pivotAdapter(funnel, pivotFunnel)
|
4512
|
+
];
|
4513
|
+
const initScatter = (spec, context)=>{
|
4514
|
+
const result = {
|
4515
|
+
...spec
|
4516
|
+
};
|
4517
|
+
const { advancedVSeed } = context;
|
4518
|
+
const { encoding } = advancedVSeed;
|
4519
|
+
if (!encoding[0].y || !encoding[0].x || !encoding[0].group) return result;
|
4520
|
+
result.type = 'scatter';
|
4521
|
+
result.direction = 'vertical';
|
4522
|
+
result.xField = encoding[0].x[0];
|
4523
|
+
result.yField = encoding[0].y[0];
|
4524
|
+
result.seriesField = encoding[0].group[0];
|
4525
|
+
result.padding = 0;
|
4526
|
+
result.region = [
|
4527
|
+
{
|
4528
|
+
clip: true
|
4529
|
+
}
|
4530
|
+
];
|
4531
|
+
result.animation = true;
|
4532
|
+
return result;
|
4533
|
+
};
|
4534
|
+
const scatter = [
|
4535
|
+
initScatter,
|
4536
|
+
color_color,
|
4537
|
+
background_backgroundColor,
|
4538
|
+
dataset_dataset,
|
4539
|
+
xLinear,
|
4540
|
+
yLinear,
|
4541
|
+
label_label,
|
4542
|
+
tooltip_tooltip,
|
4543
|
+
verticalCrosshairLine,
|
4544
|
+
horizontalCrosshairLine,
|
4545
|
+
discreteLegend,
|
4546
|
+
pointStyle_pointStyle,
|
4547
|
+
pointStateHover,
|
4548
|
+
annotationPoint_annotationPoint,
|
4549
|
+
annotationVerticalLine_annotationVerticalLine,
|
4550
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4551
|
+
annotationArea_annotationArea
|
4552
|
+
];
|
4553
|
+
const pivotScatter = [
|
4554
|
+
initPivot,
|
4555
|
+
pivotGridStyle,
|
4556
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
4557
|
+
datasetPivot,
|
4558
|
+
pivotIndicators([
|
4559
|
+
initScatter,
|
4560
|
+
color_color,
|
4561
|
+
background_backgroundColor,
|
4562
|
+
datasetPivotPlaceholder,
|
4563
|
+
xLinear,
|
4564
|
+
yLinear,
|
4565
|
+
label_label,
|
4566
|
+
tooltip_tooltip,
|
4567
|
+
verticalCrosshairLine,
|
4568
|
+
horizontalCrosshairLine,
|
4569
|
+
pointStyle_pointStyle,
|
4570
|
+
pointStateHover,
|
4571
|
+
annotationPoint_annotationPoint,
|
4572
|
+
annotationVerticalLine_annotationVerticalLine,
|
4573
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4574
|
+
annotationArea_annotationArea
|
4575
|
+
]),
|
4576
|
+
pivotRowDimensions,
|
4577
|
+
pivotColumnDimensions,
|
4578
|
+
pivotDiscreteLegend
|
4579
|
+
];
|
4580
|
+
const scatterSpecPipeline = [
|
4581
|
+
pivotAdapter_pivotAdapter(scatter, pivotScatter)
|
4582
|
+
];
|
4092
4583
|
const buildAdvanced = (builder)=>{
|
4093
4584
|
const { chartType } = builder.vseed;
|
4094
4585
|
if (!chartType) throw new Error('chartType is nil in buildAdvanced');
|
@@ -4219,6 +4710,14 @@ const registerRoseParallel = ()=>{
|
|
4219
4710
|
Builder._advancedPipelineMap.roseParallel = roseParallelAdvancedPipeline;
|
4220
4711
|
Builder._specPipelineMap.roseParallel = roseParallelSpecPipeline;
|
4221
4712
|
};
|
4713
|
+
const registerFunnel = ()=>{
|
4714
|
+
Builder._advancedPipelineMap.funnel = funnelAdvancedPipeline;
|
4715
|
+
Builder._specPipelineMap.funnel = funnelSpecPipeline;
|
4716
|
+
};
|
4717
|
+
const registerScatter = ()=>{
|
4718
|
+
Builder._advancedPipelineMap.scatter = scatterAdvancedPipeline;
|
4719
|
+
Builder._specPipelineMap.scatter = scatterSpecPipeline;
|
4720
|
+
};
|
4222
4721
|
const lightTheme = ()=>{
|
4223
4722
|
const linearAxis = {
|
4224
4723
|
nice: true,
|
@@ -4444,6 +4943,23 @@ const lightTheme = ()=>{
|
|
4444
4943
|
xAxis: bandAxis,
|
4445
4944
|
yAxis: linearAxis,
|
4446
4945
|
crosshairLine
|
4946
|
+
},
|
4947
|
+
scatter: {
|
4948
|
+
xAxis: {
|
4949
|
+
...linearAxis,
|
4950
|
+
line: {
|
4951
|
+
...linearAxis.line,
|
4952
|
+
visible: true
|
4953
|
+
}
|
4954
|
+
},
|
4955
|
+
yAxis: {
|
4956
|
+
...linearAxis,
|
4957
|
+
line: {
|
4958
|
+
...linearAxis.line,
|
4959
|
+
visible: true
|
4960
|
+
}
|
4961
|
+
},
|
4962
|
+
crosshairLine
|
4447
4963
|
}
|
4448
4964
|
}
|
4449
4965
|
};
|
@@ -4672,6 +5188,23 @@ const darkTheme = ()=>{
|
|
4672
5188
|
xAxis: bandAxis,
|
4673
5189
|
yAxis: linearAxis,
|
4674
5190
|
crosshairLine: crosshairLine
|
5191
|
+
},
|
5192
|
+
scatter: {
|
5193
|
+
xAxis: {
|
5194
|
+
...linearAxis,
|
5195
|
+
line: {
|
5196
|
+
...linearAxis.line,
|
5197
|
+
visible: true
|
5198
|
+
}
|
5199
|
+
},
|
5200
|
+
yAxis: {
|
5201
|
+
...linearAxis,
|
5202
|
+
line: {
|
5203
|
+
...linearAxis.line,
|
5204
|
+
visible: true
|
5205
|
+
}
|
5206
|
+
},
|
5207
|
+
crosshairLine
|
4675
5208
|
}
|
4676
5209
|
}
|
4677
5210
|
};
|
@@ -4703,6 +5236,8 @@ const registerAll = ()=>{
|
|
4703
5236
|
registerDonut();
|
4704
5237
|
registerRose();
|
4705
5238
|
registerRoseParallel();
|
5239
|
+
registerFunnel();
|
5240
|
+
registerScatter();
|
4706
5241
|
registerLightTheme();
|
4707
5242
|
registerDarkTheme();
|
4708
5243
|
};
|
@@ -4723,7 +5258,9 @@ const zChartType = external_zod_namespaceObject.z["enum"]([
|
|
4723
5258
|
'roseParallel',
|
4724
5259
|
'pie',
|
4725
5260
|
'donut',
|
4726
|
-
'dualAxis'
|
5261
|
+
'dualAxis',
|
5262
|
+
'scatter',
|
5263
|
+
'funnel'
|
4727
5264
|
]);
|
4728
5265
|
const zDatum = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.number()), external_zod_namespaceObject.z.any());
|
4729
5266
|
const zDataset = external_zod_namespaceObject.z.array(zDatum);
|
@@ -4735,7 +5272,7 @@ const zDimension = external_zod_namespaceObject.z.object({
|
|
4735
5272
|
'dimension',
|
4736
5273
|
'rowDimension',
|
4737
5274
|
'columnDimension'
|
4738
|
-
])
|
5275
|
+
]).default('dimension').optional()
|
4739
5276
|
});
|
4740
5277
|
const zDimensions = external_zod_namespaceObject.z.array(zDimension).optional();
|
4741
5278
|
const zNumFormat = external_zod_namespaceObject.z.object({
|
@@ -4796,7 +5333,8 @@ const zEncoding = external_zod_namespaceObject.z.array(external_zod_namespaceObj
|
|
4796
5333
|
group: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
|
4797
5334
|
angle: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
|
4798
5335
|
radius: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
|
4799
|
-
tooltip: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional()
|
5336
|
+
tooltip: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
|
5337
|
+
size: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional()
|
4800
5338
|
}));
|
4801
5339
|
const zBackgroundColor = external_zod_namespaceObject.z.string().default('transparent').optional();
|
4802
5340
|
const zLabel = external_zod_namespaceObject.z.object({
|
@@ -5029,6 +5567,8 @@ const zStackCornerRadius = external_zod_namespaceObject.z.number().or(external_z
|
|
5029
5567
|
0
|
5030
5568
|
]);
|
5031
5569
|
const zConfig = external_zod_namespaceObject.z.object({
|
5570
|
+
table: external_zod_namespaceObject.z.object({}).optional(),
|
5571
|
+
pivotTable: external_zod_namespaceObject.z.object({}).optional(),
|
5032
5572
|
line: external_zod_namespaceObject.z.object({
|
5033
5573
|
xAxis: zXBandAxis.optional(),
|
5034
5574
|
yAxis: zYLinearAxis.optional(),
|
@@ -5085,8 +5625,12 @@ const zConfig = external_zod_namespaceObject.z.object({
|
|
5085
5625
|
pie: external_zod_namespaceObject.z.object({}).optional(),
|
5086
5626
|
donut: external_zod_namespaceObject.z.object({}).optional(),
|
5087
5627
|
dualAxis: external_zod_namespaceObject.z.object({}).optional(),
|
5088
|
-
|
5089
|
-
|
5628
|
+
scatter: external_zod_namespaceObject.z.object({
|
5629
|
+
xAxis: zXLinearAxis.optional(),
|
5630
|
+
yAxis: zYLinearAxis.optional(),
|
5631
|
+
crosshairLine: zCrosshairLine.optional()
|
5632
|
+
}).optional(),
|
5633
|
+
funnel: external_zod_namespaceObject.z.object({}).optional()
|
5090
5634
|
});
|
5091
5635
|
const zSelector = external_zod_namespaceObject.z.union([
|
5092
5636
|
external_zod_namespaceObject.z.string(),
|
@@ -5219,9 +5763,7 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
|
|
5219
5763
|
backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
|
5220
5764
|
backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
|
5221
5765
|
backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
|
5222
|
-
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
5223
|
-
offsetY: external_zod_namespaceObject.z.number().default(0).optional(),
|
5224
|
-
offsetX: external_zod_namespaceObject.z.number().default(0).optional()
|
5766
|
+
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
5225
5767
|
});
|
5226
5768
|
const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
|
5227
5769
|
selector: external_zod_namespaceObject.z.union([
|
@@ -5271,9 +5813,7 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
|
|
5271
5813
|
backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
|
5272
5814
|
backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
|
5273
5815
|
backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
|
5274
|
-
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
5275
|
-
offsetY: external_zod_namespaceObject.z.number().default(0).optional(),
|
5276
|
-
offsetX: external_zod_namespaceObject.z.number().default(0).optional()
|
5816
|
+
backgroundPadding: external_zod_namespaceObject.z.number().optional()
|
5277
5817
|
});
|
5278
5818
|
const zAnnotationArea = external_zod_namespaceObject.z.object({
|
5279
5819
|
selector: external_zod_namespaceObject.z.union([
|
@@ -5403,8 +5943,8 @@ const zLocale = external_zod_namespaceObject.z["enum"]([
|
|
5403
5943
|
'zh-CN',
|
5404
5944
|
'en-US'
|
5405
5945
|
]).default('zh-CN');
|
5406
|
-
const
|
5407
|
-
chartType: external_zod_namespaceObject.z.literal('
|
5946
|
+
const zLine = external_zod_namespaceObject.z.object({
|
5947
|
+
chartType: external_zod_namespaceObject.z.literal('line'),
|
5408
5948
|
dataset: zDataset.optional(),
|
5409
5949
|
dimensions: zDimensions.optional(),
|
5410
5950
|
measures: zMeasures.optional(),
|
@@ -5413,20 +5953,20 @@ const zBar = external_zod_namespaceObject.z.object({
|
|
5413
5953
|
label: zLabel.optional(),
|
5414
5954
|
legend: zLegend.optional(),
|
5415
5955
|
tooltip: zTooltip.optional(),
|
5416
|
-
xAxis:
|
5417
|
-
yAxis:
|
5418
|
-
|
5419
|
-
stackCornerRadius: zStackCornerRadius.optional(),
|
5956
|
+
xAxis: zXBandAxis.optional(),
|
5957
|
+
yAxis: zYLinearAxis.optional(),
|
5958
|
+
crosshairLine: zCrosshairLine.optional(),
|
5420
5959
|
theme: zTheme.optional(),
|
5421
|
-
|
5422
|
-
|
5423
|
-
|
5424
|
-
|
5425
|
-
|
5960
|
+
pointStyle: zPointStyle.optional(),
|
5961
|
+
lineStyle: zLineStyle.optional(),
|
5962
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5963
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5964
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5965
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5426
5966
|
locale: zLocale.optional()
|
5427
5967
|
});
|
5428
|
-
const
|
5429
|
-
chartType: external_zod_namespaceObject.z.literal('
|
5968
|
+
const zColumn = external_zod_namespaceObject.z.object({
|
5969
|
+
chartType: external_zod_namespaceObject.z.literal('column'),
|
5430
5970
|
dataset: zDataset.optional(),
|
5431
5971
|
dimensions: zDimensions.optional(),
|
5432
5972
|
measures: zMeasures.optional(),
|
@@ -5435,20 +5975,20 @@ const zBarParallel = external_zod_namespaceObject.z.object({
|
|
5435
5975
|
label: zLabel.optional(),
|
5436
5976
|
legend: zLegend.optional(),
|
5437
5977
|
tooltip: zTooltip.optional(),
|
5438
|
-
xAxis:
|
5439
|
-
yAxis:
|
5978
|
+
xAxis: zXBandAxis.optional(),
|
5979
|
+
yAxis: zYLinearAxis.optional(),
|
5440
5980
|
crosshairRect: zCrosshairRect.optional(),
|
5441
5981
|
stackCornerRadius: zStackCornerRadius.optional(),
|
5442
5982
|
theme: zTheme.optional(),
|
5443
5983
|
barStyle: zBarStyle.optional(),
|
5444
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5445
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5446
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5447
|
-
annotationArea: zAnnotationArea.optional(),
|
5984
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
5985
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
5986
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
5987
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5448
5988
|
locale: zLocale.optional()
|
5449
5989
|
});
|
5450
|
-
const
|
5451
|
-
chartType: external_zod_namespaceObject.z.literal('
|
5990
|
+
const zColumnParallel = external_zod_namespaceObject.z.object({
|
5991
|
+
chartType: external_zod_namespaceObject.z.literal('columnParallel'),
|
5452
5992
|
dataset: zDataset.optional(),
|
5453
5993
|
dimensions: zDimensions.optional(),
|
5454
5994
|
measures: zMeasures.optional(),
|
@@ -5463,14 +6003,14 @@ const zColumn = external_zod_namespaceObject.z.object({
|
|
5463
6003
|
stackCornerRadius: zStackCornerRadius.optional(),
|
5464
6004
|
theme: zTheme.optional(),
|
5465
6005
|
barStyle: zBarStyle.optional(),
|
5466
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5467
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5468
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5469
|
-
annotationArea: zAnnotationArea.optional(),
|
6006
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
6007
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
6008
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
6009
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5470
6010
|
locale: zLocale.optional()
|
5471
6011
|
});
|
5472
|
-
const
|
5473
|
-
chartType: external_zod_namespaceObject.z.literal('
|
6012
|
+
const zColumnPercent = external_zod_namespaceObject.z.object({
|
6013
|
+
chartType: external_zod_namespaceObject.z.literal('columnPercent'),
|
5474
6014
|
dataset: zDataset.optional(),
|
5475
6015
|
dimensions: zDimensions.optional(),
|
5476
6016
|
measures: zMeasures.optional(),
|
@@ -5485,14 +6025,14 @@ const zColumnParallel = external_zod_namespaceObject.z.object({
|
|
5485
6025
|
stackCornerRadius: zStackCornerRadius.optional(),
|
5486
6026
|
theme: zTheme.optional(),
|
5487
6027
|
barStyle: zBarStyle.optional(),
|
5488
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5489
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5490
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5491
|
-
annotationArea: zAnnotationArea.optional(),
|
6028
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
6029
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
6030
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
6031
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5492
6032
|
locale: zLocale.optional()
|
5493
6033
|
});
|
5494
|
-
const
|
5495
|
-
chartType: external_zod_namespaceObject.z.literal('
|
6034
|
+
const zBar = external_zod_namespaceObject.z.object({
|
6035
|
+
chartType: external_zod_namespaceObject.z.literal('bar'),
|
5496
6036
|
dataset: zDataset.optional(),
|
5497
6037
|
dimensions: zDimensions.optional(),
|
5498
6038
|
measures: zMeasures.optional(),
|
@@ -5501,20 +6041,20 @@ const zColumnPercent = external_zod_namespaceObject.z.object({
|
|
5501
6041
|
label: zLabel.optional(),
|
5502
6042
|
legend: zLegend.optional(),
|
5503
6043
|
tooltip: zTooltip.optional(),
|
5504
|
-
xAxis:
|
5505
|
-
yAxis:
|
6044
|
+
xAxis: zXLinearAxis.optional(),
|
6045
|
+
yAxis: zYBandAxis.optional(),
|
5506
6046
|
crosshairRect: zCrosshairRect.optional(),
|
5507
6047
|
stackCornerRadius: zStackCornerRadius.optional(),
|
5508
6048
|
theme: zTheme.optional(),
|
5509
6049
|
barStyle: zBarStyle.optional(),
|
5510
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5511
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5512
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5513
|
-
annotationArea: zAnnotationArea.optional(),
|
6050
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
6051
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
6052
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
6053
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5514
6054
|
locale: zLocale.optional()
|
5515
6055
|
});
|
5516
|
-
const
|
5517
|
-
chartType: external_zod_namespaceObject.z.literal('
|
6056
|
+
const zBarParallel = external_zod_namespaceObject.z.object({
|
6057
|
+
chartType: external_zod_namespaceObject.z.literal('barParallel'),
|
5518
6058
|
dataset: zDataset.optional(),
|
5519
6059
|
dimensions: zDimensions.optional(),
|
5520
6060
|
measures: zMeasures.optional(),
|
@@ -5523,16 +6063,16 @@ const zLine = external_zod_namespaceObject.z.object({
|
|
5523
6063
|
label: zLabel.optional(),
|
5524
6064
|
legend: zLegend.optional(),
|
5525
6065
|
tooltip: zTooltip.optional(),
|
5526
|
-
xAxis:
|
5527
|
-
yAxis:
|
5528
|
-
|
6066
|
+
xAxis: zXLinearAxis.optional(),
|
6067
|
+
yAxis: zYBandAxis.optional(),
|
6068
|
+
crosshairRect: zCrosshairRect.optional(),
|
6069
|
+
stackCornerRadius: zStackCornerRadius.optional(),
|
5529
6070
|
theme: zTheme.optional(),
|
5530
|
-
|
5531
|
-
|
5532
|
-
|
5533
|
-
|
5534
|
-
|
5535
|
-
annotationArea: zAnnotationArea.optional(),
|
6071
|
+
barStyle: zBarStyle.optional(),
|
6072
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
6073
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
6074
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
6075
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5536
6076
|
locale: zLocale.optional()
|
5537
6077
|
});
|
5538
6078
|
const zBarPercent = external_zod_namespaceObject.z.object({
|
@@ -5551,14 +6091,14 @@ const zBarPercent = external_zod_namespaceObject.z.object({
|
|
5551
6091
|
stackCornerRadius: zStackCornerRadius.optional(),
|
5552
6092
|
theme: zTheme.optional(),
|
5553
6093
|
barStyle: zBarStyle.optional(),
|
5554
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5555
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5556
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5557
|
-
annotationArea: zAnnotationArea.optional(),
|
6094
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
6095
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
6096
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
6097
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5558
6098
|
locale: zLocale.optional()
|
5559
6099
|
});
|
5560
|
-
const
|
5561
|
-
chartType: external_zod_namespaceObject.z.literal('
|
6100
|
+
const zArea = external_zod_namespaceObject.z.object({
|
6101
|
+
chartType: external_zod_namespaceObject.z.literal('area'),
|
5562
6102
|
dataset: zDataset.optional(),
|
5563
6103
|
dimensions: zDimensions.optional(),
|
5564
6104
|
measures: zMeasures.optional(),
|
@@ -5567,11 +6107,21 @@ const zPie = external_zod_namespaceObject.z.object({
|
|
5567
6107
|
label: zLabel.optional(),
|
5568
6108
|
legend: zLegend.optional(),
|
5569
6109
|
tooltip: zTooltip.optional(),
|
6110
|
+
xAxis: zXBandAxis.optional(),
|
6111
|
+
yAxis: zYLinearAxis.optional(),
|
6112
|
+
crosshairLine: zCrosshairLine.optional(),
|
5570
6113
|
theme: zTheme.optional(),
|
6114
|
+
pointStyle: zPointStyle.optional(),
|
6115
|
+
lineStyle: zLineStyle.optional(),
|
6116
|
+
areaStyle: zAreaStyle.optional(),
|
6117
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
6118
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
6119
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
6120
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5571
6121
|
locale: zLocale.optional()
|
5572
6122
|
});
|
5573
|
-
const
|
5574
|
-
chartType: external_zod_namespaceObject.z.literal('
|
6123
|
+
const zAreaPercent = external_zod_namespaceObject.z.object({
|
6124
|
+
chartType: external_zod_namespaceObject.z.literal('areaPercent'),
|
5575
6125
|
dataset: zDataset.optional(),
|
5576
6126
|
dimensions: zDimensions.optional(),
|
5577
6127
|
measures: zMeasures.optional(),
|
@@ -5587,14 +6137,14 @@ const zArea = external_zod_namespaceObject.z.object({
|
|
5587
6137
|
pointStyle: zPointStyle.optional(),
|
5588
6138
|
lineStyle: zLineStyle.optional(),
|
5589
6139
|
areaStyle: zAreaStyle.optional(),
|
5590
|
-
annotationPoint: zAnnotationPoint.optional(),
|
5591
|
-
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
5592
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
5593
|
-
annotationArea: zAnnotationArea.optional(),
|
6140
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
6141
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
6142
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
6143
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
5594
6144
|
locale: zLocale.optional()
|
5595
6145
|
});
|
5596
|
-
const
|
5597
|
-
chartType: external_zod_namespaceObject.z.literal('
|
6146
|
+
const zRose = external_zod_namespaceObject.z.object({
|
6147
|
+
chartType: external_zod_namespaceObject.z.literal('rose'),
|
5598
6148
|
dataset: zDataset.optional(),
|
5599
6149
|
dimensions: zDimensions.optional(),
|
5600
6150
|
measures: zMeasures.optional(),
|
@@ -5603,17 +6153,80 @@ const zAreaPercent = external_zod_namespaceObject.z.object({
|
|
5603
6153
|
label: zLabel.optional(),
|
5604
6154
|
legend: zLegend.optional(),
|
5605
6155
|
tooltip: zTooltip.optional(),
|
5606
|
-
|
6156
|
+
theme: zTheme.optional(),
|
6157
|
+
locale: zLocale.optional()
|
6158
|
+
});
|
6159
|
+
const zRoseParallel = external_zod_namespaceObject.z.object({
|
6160
|
+
chartType: external_zod_namespaceObject.z.literal('roseParallel'),
|
6161
|
+
dataset: zDataset.optional(),
|
6162
|
+
dimensions: zDimensions.optional(),
|
6163
|
+
measures: zMeasures.optional(),
|
6164
|
+
backgroundColor: zBackgroundColor.optional(),
|
6165
|
+
color: zColor.optional(),
|
6166
|
+
label: zLabel.optional(),
|
6167
|
+
legend: zLegend.optional(),
|
6168
|
+
tooltip: zTooltip.optional(),
|
6169
|
+
theme: zTheme.optional(),
|
6170
|
+
locale: zLocale.optional()
|
6171
|
+
});
|
6172
|
+
const zPie = external_zod_namespaceObject.z.object({
|
6173
|
+
chartType: external_zod_namespaceObject.z.literal('pie'),
|
6174
|
+
dataset: zDataset.optional(),
|
6175
|
+
dimensions: zDimensions.optional(),
|
6176
|
+
measures: zMeasures.optional(),
|
6177
|
+
backgroundColor: zBackgroundColor.optional(),
|
6178
|
+
color: zColor.optional(),
|
6179
|
+
label: zLabel.optional(),
|
6180
|
+
legend: zLegend.optional(),
|
6181
|
+
tooltip: zTooltip.optional(),
|
6182
|
+
theme: zTheme.optional(),
|
6183
|
+
locale: zLocale.optional()
|
6184
|
+
});
|
6185
|
+
const zDonut = external_zod_namespaceObject.z.object({
|
6186
|
+
chartType: external_zod_namespaceObject.z.literal('donut'),
|
6187
|
+
dataset: zDataset.optional(),
|
6188
|
+
dimensions: zDimensions.optional(),
|
6189
|
+
measures: zMeasures.optional(),
|
6190
|
+
backgroundColor: zBackgroundColor.optional(),
|
6191
|
+
color: zColor.optional(),
|
6192
|
+
label: zLabel.optional(),
|
6193
|
+
legend: zLegend.optional(),
|
6194
|
+
tooltip: zTooltip.optional(),
|
6195
|
+
theme: zTheme.optional(),
|
6196
|
+
locale: zLocale.optional()
|
6197
|
+
});
|
6198
|
+
const zScatter = external_zod_namespaceObject.z.object({
|
6199
|
+
chartType: external_zod_namespaceObject.z.literal('scatter'),
|
6200
|
+
dataset: zDataset.optional(),
|
6201
|
+
dimensions: zDimensions.optional(),
|
6202
|
+
measures: zMeasures.optional(),
|
6203
|
+
backgroundColor: zBackgroundColor.optional(),
|
6204
|
+
color: zColor.optional(),
|
6205
|
+
label: zLabel.optional(),
|
6206
|
+
legend: zLegend.optional(),
|
6207
|
+
tooltip: zTooltip.optional(),
|
6208
|
+
xAxis: zXLinearAxis.optional(),
|
5607
6209
|
yAxis: zYLinearAxis.optional(),
|
5608
6210
|
crosshairLine: zCrosshairLine.optional(),
|
5609
6211
|
theme: zTheme.optional(),
|
5610
6212
|
pointStyle: zPointStyle.optional(),
|
5611
|
-
|
5612
|
-
|
5613
|
-
|
5614
|
-
|
5615
|
-
|
5616
|
-
|
6213
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
6214
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
6215
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
6216
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
6217
|
+
locale: zLocale.optional()
|
6218
|
+
});
|
6219
|
+
const zFunnel = external_zod_namespaceObject.z.object({
|
6220
|
+
chartType: external_zod_namespaceObject.z.literal('funnel'),
|
6221
|
+
dataset: zDataset.optional(),
|
6222
|
+
dimensions: zDimensions.optional(),
|
6223
|
+
measures: zMeasures.optional(),
|
6224
|
+
backgroundColor: zBackgroundColor.optional(),
|
6225
|
+
color: zColor.optional(),
|
6226
|
+
label: zLabel.optional(),
|
6227
|
+
legend: zLegend.optional(),
|
6228
|
+
tooltip: zTooltip.optional(),
|
6229
|
+
theme: zTheme.optional(),
|
5617
6230
|
locale: zLocale.optional()
|
5618
6231
|
});
|
5619
6232
|
const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
|
@@ -5626,8 +6239,28 @@ const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
|
|
5626
6239
|
zBarPercent,
|
5627
6240
|
zArea,
|
5628
6241
|
zAreaPercent,
|
5629
|
-
zPie
|
6242
|
+
zPie,
|
6243
|
+
zRose,
|
6244
|
+
zRoseParallel,
|
6245
|
+
zScatter,
|
6246
|
+
zDonut,
|
6247
|
+
zFunnel
|
5630
6248
|
]);
|
6249
|
+
const zAdvancedVSeed = external_zod_namespaceObject.z.object({
|
6250
|
+
chartType: zChartType,
|
6251
|
+
dataset: zDataset,
|
6252
|
+
datasetReshapeInfo: zDatasetReshapeInfo,
|
6253
|
+
dimensions: zDimensions,
|
6254
|
+
measures: zMeasures,
|
6255
|
+
encoding: zEncoding,
|
6256
|
+
baseConfig: zBaseConfig,
|
6257
|
+
config: zConfig,
|
6258
|
+
theme: zTheme,
|
6259
|
+
markStyle: zMarkStyle,
|
6260
|
+
customTheme: zCustomTheme,
|
6261
|
+
annotation: zAnnotation,
|
6262
|
+
locale: zLocale
|
6263
|
+
});
|
5631
6264
|
exports.Builder = __webpack_exports__.Builder;
|
5632
6265
|
exports.FoldMeasureId = __webpack_exports__.FoldMeasureId;
|
5633
6266
|
exports.FoldMeasureName = __webpack_exports__.FoldMeasureName;
|
@@ -5658,12 +6291,16 @@ exports.createFormatter = __webpack_exports__.createFormatter;
|
|
5658
6291
|
exports.createNumFormatter = __webpack_exports__.createNumFormatter;
|
5659
6292
|
exports.darkTheme = __webpack_exports__.darkTheme;
|
5660
6293
|
exports.dataReshapeFor1D1M = __webpack_exports__.dataReshapeFor1D1M;
|
6294
|
+
exports.dataReshapeFor1D2M = __webpack_exports__.dataReshapeFor1D2M;
|
5661
6295
|
exports.dataReshapeFor2D1M = __webpack_exports__.dataReshapeFor2D1M;
|
5662
6296
|
exports.donutAdvancedPipeline = __webpack_exports__.donutAdvancedPipeline;
|
5663
6297
|
exports.donutSpecPipeline = __webpack_exports__.donutSpecPipeline;
|
5664
6298
|
exports.execPipeline = __webpack_exports__.execPipeline;
|
6299
|
+
exports.findFirstMeasure = __webpack_exports__.findFirstMeasure;
|
5665
6300
|
exports.findMeasureById = __webpack_exports__.findMeasureById;
|
5666
6301
|
exports.foldMeasures = __webpack_exports__.foldMeasures;
|
6302
|
+
exports.funnelAdvancedPipeline = __webpack_exports__.funnelAdvancedPipeline;
|
6303
|
+
exports.funnelSpecPipeline = __webpack_exports__.funnelSpecPipeline;
|
5667
6304
|
exports.i18n = __webpack_exports__.i18n;
|
5668
6305
|
exports.intl = __webpack_exports__.intl;
|
5669
6306
|
exports.isPivotChart = __webpack_exports__.isPivotChart;
|
@@ -5691,19 +6328,30 @@ exports.roseAdvancedPipeline = __webpack_exports__.roseAdvancedPipeline;
|
|
5691
6328
|
exports.roseParallelAdvancedPipeline = __webpack_exports__.roseParallelAdvancedPipeline;
|
5692
6329
|
exports.roseParallelSpecPipeline = __webpack_exports__.roseParallelSpecPipeline;
|
5693
6330
|
exports.roseSpecPipeline = __webpack_exports__.roseSpecPipeline;
|
6331
|
+
exports.scatterAdvancedPipeline = __webpack_exports__.scatterAdvancedPipeline;
|
6332
|
+
exports.scatterSpecPipeline = __webpack_exports__.scatterSpecPipeline;
|
5694
6333
|
exports.unfoldDimensions = __webpack_exports__.unfoldDimensions;
|
6334
|
+
exports.zAdvancedVSeed = __webpack_exports__.zAdvancedVSeed;
|
5695
6335
|
exports.zAnnotation = __webpack_exports__.zAnnotation;
|
5696
6336
|
exports.zAnnotationArea = __webpack_exports__.zAnnotationArea;
|
5697
6337
|
exports.zAnnotationHorizontalLine = __webpack_exports__.zAnnotationHorizontalLine;
|
5698
6338
|
exports.zAnnotationPoint = __webpack_exports__.zAnnotationPoint;
|
5699
6339
|
exports.zAnnotationVerticalLine = __webpack_exports__.zAnnotationVerticalLine;
|
6340
|
+
exports.zArea = __webpack_exports__.zArea;
|
6341
|
+
exports.zAreaPercent = __webpack_exports__.zAreaPercent;
|
5700
6342
|
exports.zAreaStyle = __webpack_exports__.zAreaStyle;
|
5701
6343
|
exports.zAxis = __webpack_exports__.zAxis;
|
5702
6344
|
exports.zBackgroundColor = __webpack_exports__.zBackgroundColor;
|
6345
|
+
exports.zBar = __webpack_exports__.zBar;
|
6346
|
+
exports.zBarParallel = __webpack_exports__.zBarParallel;
|
6347
|
+
exports.zBarPercent = __webpack_exports__.zBarPercent;
|
5703
6348
|
exports.zBarStyle = __webpack_exports__.zBarStyle;
|
5704
6349
|
exports.zBaseConfig = __webpack_exports__.zBaseConfig;
|
5705
6350
|
exports.zChartType = __webpack_exports__.zChartType;
|
5706
6351
|
exports.zColor = __webpack_exports__.zColor;
|
6352
|
+
exports.zColumn = __webpack_exports__.zColumn;
|
6353
|
+
exports.zColumnParallel = __webpack_exports__.zColumnParallel;
|
6354
|
+
exports.zColumnPercent = __webpack_exports__.zColumnPercent;
|
5707
6355
|
exports.zConfig = __webpack_exports__.zConfig;
|
5708
6356
|
exports.zCrosshairLine = __webpack_exports__.zCrosshairLine;
|
5709
6357
|
exports.zCrosshairRect = __webpack_exports__.zCrosshairRect;
|
@@ -5714,17 +6362,25 @@ exports.zDatasetReshapeInfo = __webpack_exports__.zDatasetReshapeInfo;
|
|
5714
6362
|
exports.zDatum = __webpack_exports__.zDatum;
|
5715
6363
|
exports.zDimension = __webpack_exports__.zDimension;
|
5716
6364
|
exports.zDimensions = __webpack_exports__.zDimensions;
|
6365
|
+
exports.zDonut = __webpack_exports__.zDonut;
|
5717
6366
|
exports.zEncoding = __webpack_exports__.zEncoding;
|
5718
6367
|
exports.zFoldInfo = __webpack_exports__.zFoldInfo;
|
6368
|
+
exports.zFunnel = __webpack_exports__.zFunnel;
|
5719
6369
|
exports.zLabel = __webpack_exports__.zLabel;
|
5720
6370
|
exports.zLegend = __webpack_exports__.zLegend;
|
6371
|
+
exports.zLine = __webpack_exports__.zLine;
|
5721
6372
|
exports.zLineStyle = __webpack_exports__.zLineStyle;
|
6373
|
+
exports.zLocale = __webpack_exports__.zLocale;
|
5722
6374
|
exports.zMarkStyle = __webpack_exports__.zMarkStyle;
|
5723
6375
|
exports.zMeasure = __webpack_exports__.zMeasure;
|
5724
6376
|
exports.zMeasureGroup = __webpack_exports__.zMeasureGroup;
|
5725
6377
|
exports.zMeasures = __webpack_exports__.zMeasures;
|
5726
6378
|
exports.zNumFormat = __webpack_exports__.zNumFormat;
|
6379
|
+
exports.zPie = __webpack_exports__.zPie;
|
5727
6380
|
exports.zPointStyle = __webpack_exports__.zPointStyle;
|
6381
|
+
exports.zRose = __webpack_exports__.zRose;
|
6382
|
+
exports.zRoseParallel = __webpack_exports__.zRoseParallel;
|
6383
|
+
exports.zScatter = __webpack_exports__.zScatter;
|
5728
6384
|
exports.zStackCornerRadius = __webpack_exports__.zStackCornerRadius;
|
5729
6385
|
exports.zTheme = __webpack_exports__.zTheme;
|
5730
6386
|
exports.zTooltip = __webpack_exports__.zTooltip;
|
@@ -5765,12 +6421,16 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
5765
6421
|
"createNumFormatter",
|
5766
6422
|
"darkTheme",
|
5767
6423
|
"dataReshapeFor1D1M",
|
6424
|
+
"dataReshapeFor1D2M",
|
5768
6425
|
"dataReshapeFor2D1M",
|
5769
6426
|
"donutAdvancedPipeline",
|
5770
6427
|
"donutSpecPipeline",
|
5771
6428
|
"execPipeline",
|
6429
|
+
"findFirstMeasure",
|
5772
6430
|
"findMeasureById",
|
5773
6431
|
"foldMeasures",
|
6432
|
+
"funnelAdvancedPipeline",
|
6433
|
+
"funnelSpecPipeline",
|
5774
6434
|
"i18n",
|
5775
6435
|
"intl",
|
5776
6436
|
"isPivotChart",
|
@@ -5798,19 +6458,30 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
5798
6458
|
"roseParallelAdvancedPipeline",
|
5799
6459
|
"roseParallelSpecPipeline",
|
5800
6460
|
"roseSpecPipeline",
|
6461
|
+
"scatterAdvancedPipeline",
|
6462
|
+
"scatterSpecPipeline",
|
5801
6463
|
"unfoldDimensions",
|
6464
|
+
"zAdvancedVSeed",
|
5802
6465
|
"zAnnotation",
|
5803
6466
|
"zAnnotationArea",
|
5804
6467
|
"zAnnotationHorizontalLine",
|
5805
6468
|
"zAnnotationPoint",
|
5806
6469
|
"zAnnotationVerticalLine",
|
6470
|
+
"zArea",
|
6471
|
+
"zAreaPercent",
|
5807
6472
|
"zAreaStyle",
|
5808
6473
|
"zAxis",
|
5809
6474
|
"zBackgroundColor",
|
6475
|
+
"zBar",
|
6476
|
+
"zBarParallel",
|
6477
|
+
"zBarPercent",
|
5810
6478
|
"zBarStyle",
|
5811
6479
|
"zBaseConfig",
|
5812
6480
|
"zChartType",
|
5813
6481
|
"zColor",
|
6482
|
+
"zColumn",
|
6483
|
+
"zColumnParallel",
|
6484
|
+
"zColumnPercent",
|
5814
6485
|
"zConfig",
|
5815
6486
|
"zCrosshairLine",
|
5816
6487
|
"zCrosshairRect",
|
@@ -5821,17 +6492,25 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
5821
6492
|
"zDatum",
|
5822
6493
|
"zDimension",
|
5823
6494
|
"zDimensions",
|
6495
|
+
"zDonut",
|
5824
6496
|
"zEncoding",
|
5825
6497
|
"zFoldInfo",
|
6498
|
+
"zFunnel",
|
5826
6499
|
"zLabel",
|
5827
6500
|
"zLegend",
|
6501
|
+
"zLine",
|
5828
6502
|
"zLineStyle",
|
6503
|
+
"zLocale",
|
5829
6504
|
"zMarkStyle",
|
5830
6505
|
"zMeasure",
|
5831
6506
|
"zMeasureGroup",
|
5832
6507
|
"zMeasures",
|
5833
6508
|
"zNumFormat",
|
6509
|
+
"zPie",
|
5834
6510
|
"zPointStyle",
|
6511
|
+
"zRose",
|
6512
|
+
"zRoseParallel",
|
6513
|
+
"zScatter",
|
5835
6514
|
"zStackCornerRadius",
|
5836
6515
|
"zTheme",
|
5837
6516
|
"zTooltip",
|