@visactor/vseed 0.1.22 → 0.1.23
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/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/area.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/area.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/bar.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/line.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/radar.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/radar.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/rose.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js +2 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js +2 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js +2 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js +2 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +9 -3
- package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +9 -3
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.d.ts +3 -3
- package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js +8 -6
- package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorAreaStyleFill.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/color/colorAreaStyleFill.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorBarStyleFill.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/color/colorBarStyleFill.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorCellStyleFill.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/color/colorCellStyleFill.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorFunnelStyleFill.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/color/colorFunnelStyleFill.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorLineStyleFill.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/color/colorLineStyleFill.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorPieStyleFill.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/color/colorPieStyleFill.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorPointStyleFill.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/color/colorPointStyleFill.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorRoseStyleFill.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/color/colorRoseStyleFill.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/area.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/init/area.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/line.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/init/line.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/radar.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/init/radar.js.map +1 -1
- package/dist/esm/pipeline/utils/chatType.d.ts +4 -1
- package/dist/esm/pipeline/utils/chatType.js +8 -5
- package/dist/esm/pipeline/utils/chatType.js.map +1 -1
- package/dist/esm/pipeline/utils/constant.d.ts +22 -0
- package/dist/esm/pipeline/utils/constant.js +23 -1
- package/dist/esm/pipeline/utils/constant.js.map +1 -1
- package/dist/esm/pipeline/utils/format/createNumFormatter.js +2 -1
- package/dist/esm/pipeline/utils/format/createNumFormatter.js.map +1 -1
- package/dist/esm/pipeline/utils/index.d.ts +1 -0
- package/dist/esm/pipeline/utils/index.js +1 -0
- package/dist/esm/theme/light.js +3 -12
- package/dist/esm/theme/light.js.map +1 -1
- package/dist/esm/types/properties/chartType/chartType.d.ts +0 -22
- package/dist/esm/types/properties/chartType/chartType.js +1 -23
- package/dist/esm/types/properties/chartType/chartType.js.map +1 -1
- package/dist/umd/index.js +260 -201
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
package/dist/umd/index.js
CHANGED
@@ -67,230 +67,240 @@
|
|
67
67
|
var __webpack_exports__ = {};
|
68
68
|
__webpack_require__.r(__webpack_exports__);
|
69
69
|
__webpack_require__.d(__webpack_exports__, {
|
70
|
-
zScatter: ()=>zScatter,
|
71
|
-
zScatterConfig: ()=>zScatterConfig,
|
72
70
|
funnelAdvancedPipeline: ()=>funnelAdvancedPipeline,
|
73
71
|
zHeatmapConfig: ()=>zHeatmapConfig,
|
74
|
-
zBar: ()=>zBar,
|
75
|
-
pieAdvancedPipeline: ()=>pieAdvancedPipeline,
|
76
72
|
execPipeline: ()=>execPipeline,
|
77
73
|
areaSpecPipeline: ()=>areaSpecPipeline,
|
78
|
-
|
79
|
-
zDonut: ()=>zDonut,
|
80
|
-
zDualMeasures: ()=>zDualMeasures,
|
81
|
-
XEncoding: ()=>XEncoding,
|
82
|
-
findFirstMeasure: ()=>findFirstMeasure,
|
83
|
-
scatterAdvancedPipeline: ()=>scatterAdvancedPipeline,
|
84
|
-
zPie: ()=>zPie,
|
85
|
-
zRoseConfig: ()=>zRoseConfig,
|
74
|
+
DUAL_AXIS_CHART_COLUMN_Z_INDEX: ()=>1000,
|
86
75
|
updateSpec: ()=>updateSpec,
|
87
76
|
zCrosshairRect: ()=>zCrosshairRect,
|
88
77
|
scatterSpecPipeline: ()=>scatterSpecPipeline,
|
89
78
|
intl: ()=>intl,
|
90
|
-
zXLinearAxis: ()=>zXLinearAxis,
|
91
|
-
zScatterMeasures: ()=>zScatterMeasures,
|
92
79
|
columnPercentAdvancedPipeline: ()=>columnPercentAdvancedPipeline,
|
93
80
|
zColumnConfig: ()=>zColumnConfig,
|
94
|
-
zAnnotation: ()=>zAnnotation,
|
95
|
-
isRadar: ()=>isRadar,
|
96
|
-
selector: ()=>selector_selector,
|
97
81
|
zDualMeasure: ()=>zDualMeasure,
|
98
|
-
|
82
|
+
DEFAULT_PARENT_ID: ()=>DEFAULT_PARENT_ID,
|
83
|
+
isRadar: ()=>isRadar,
|
99
84
|
zSortLegend: ()=>zSortLegend,
|
100
|
-
|
101
|
-
zTooltip: ()=>zTooltip,
|
102
|
-
zYBandAxis: ()=>zYBandAxis,
|
85
|
+
pivotTableAdvancedPipeline: ()=>pivotTableAdvancedPipeline,
|
103
86
|
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
104
87
|
zYLinearAxis: ()=>zYLinearAxis,
|
105
88
|
zMarkStyle: ()=>zMarkStyle,
|
106
89
|
registerFunnel: ()=>registerFunnel,
|
107
|
-
Separator: ()=>"-",
|
108
90
|
columnAdvancedPipeline: ()=>columnAdvancedPipeline,
|
109
91
|
zLabel: ()=>zLabel,
|
110
92
|
registerColumn: ()=>registerColumn,
|
111
93
|
createFormatterByMeasure: ()=>createFormatterByMeasure,
|
112
|
-
findAllMeasures: ()=>findAllMeasures,
|
113
94
|
funnelSpecPipeline: ()=>funnelSpecPipeline,
|
114
95
|
isDimensionSelector: ()=>isDimensionSelector,
|
115
96
|
zAnalysis: ()=>zAnalysis,
|
116
|
-
zColorLegend: ()=>zColorLegend,
|
117
|
-
EncodingEnum: ()=>EncodingEnum,
|
118
|
-
preorderTraverse: ()=>preorderTraverse,
|
119
97
|
zDimensionTree: ()=>zDimensionTree,
|
120
|
-
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
121
98
|
zLineStyle: ()=>zLineStyle,
|
122
99
|
registerArea: ()=>registerArea,
|
123
|
-
zRoseParallel: ()=>zRoseParallel,
|
124
|
-
MeasureName: ()=>MeasureName,
|
125
100
|
zDataset: ()=>zDataset,
|
126
|
-
zNumFormat: ()=>zNumFormat,
|
127
101
|
DimensionEncodingEnum: ()=>DimensionEncodingEnum,
|
128
102
|
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
129
|
-
FoldYMeasureValue: ()=>FoldYMeasureValue,
|
130
|
-
zPivotTableConfig: ()=>zPivotTableConfig,
|
131
|
-
zArea: ()=>zArea,
|
132
103
|
zColumnParallel: ()=>zColumnParallel,
|
133
104
|
zDimensions: ()=>zDimensions,
|
134
105
|
zLegend: ()=>zLegend,
|
135
|
-
|
106
|
+
LINEAR_AXIS_INNER_OFFSET_TOP: ()=>7,
|
136
107
|
replaceNullToUndefined: ()=>replaceNullToUndefined,
|
137
|
-
donutSpecPipeline: ()=>donutSpecPipeline,
|
138
|
-
FoldXMeasureId: ()=>FoldXMeasureId,
|
139
|
-
registerAreaPercent: ()=>registerAreaPercent,
|
140
|
-
zBarPercent: ()=>zBarPercent,
|
141
|
-
zColumnParallelConfig: ()=>zColumnParallelConfig,
|
142
108
|
zHeatmap: ()=>zHeatmap,
|
143
|
-
|
144
|
-
|
145
|
-
zScatterMeasure: ()=>zScatterMeasure,
|
146
|
-
zTheme: ()=>zTheme,
|
147
|
-
barAdvancedPipeline: ()=>barAdvancedPipeline,
|
148
|
-
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
149
|
-
registerColumnPercent: ()=>registerColumnPercent,
|
150
|
-
registerHeatmap: ()=>registerHeatmap,
|
109
|
+
FoldXMeasureId: ()=>FoldXMeasureId,
|
110
|
+
zCrosshairLine: ()=>zCrosshairLine,
|
151
111
|
registerBarPercent: ()=>registerBarPercent,
|
152
112
|
ColorIdEncoding: ()=>ColorIdEncoding,
|
153
|
-
checkVSeed: ()=>checkVSeed,
|
154
113
|
roseSpecPipeline: ()=>roseSpecPipeline,
|
155
|
-
registerLightTheme: ()=>registerLightTheme,
|
156
114
|
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
157
115
|
zBarParallel: ()=>zBarParallel,
|
158
116
|
registerDarkTheme: ()=>registerDarkTheme,
|
159
|
-
|
160
|
-
isPartialDatumSelector: ()=>isPartialDatumSelector,
|
161
|
-
pieSpecPipeline: ()=>pieSpecPipeline,
|
162
|
-
isDimensionGroup: ()=>isDimensionGroup,
|
163
|
-
dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
|
117
|
+
zChartType: ()=>zChartType,
|
164
118
|
tableAdvancedPipeline: ()=>tableAdvancedPipeline,
|
165
|
-
|
166
|
-
|
119
|
+
zMeasureTree: ()=>zMeasureTree,
|
120
|
+
zStackCornerRadius: ()=>zStackCornerRadius,
|
167
121
|
registerRose: ()=>registerRose,
|
168
|
-
|
169
|
-
unfoldDimensions: ()=>unfoldDimensions,
|
170
|
-
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
122
|
+
zRose: ()=>zRose,
|
171
123
|
registerTable: ()=>registerTable,
|
172
124
|
isMeasureGroup: ()=>isMeasureGroup,
|
173
125
|
autoFormatter: ()=>autoFormatter,
|
174
126
|
YEncoding: ()=>YEncoding,
|
127
|
+
isColumnPercent: ()=>isColumnPercent,
|
175
128
|
registerAll: ()=>registerAll,
|
176
|
-
registerBar: ()=>registerBar,
|
177
129
|
isVChart: ()=>isVChart,
|
178
|
-
|
179
|
-
Builder: ()=>Builder,
|
180
|
-
zCrosshairLine: ()=>zCrosshairLine,
|
181
|
-
zMeasureTree: ()=>zMeasureTree,
|
182
|
-
zPieConfig: ()=>zPieConfig,
|
183
|
-
registerLine: ()=>registerLine,
|
184
|
-
registerCustomTheme: ()=>registerCustomTheme,
|
130
|
+
registerBar: ()=>registerBar,
|
185
131
|
zColor: ()=>zColor,
|
186
|
-
registerRoseParallel: ()=>registerRoseParallel,
|
187
132
|
registerDonut: ()=>registerDonut,
|
188
133
|
heatmapSpecPipeline: ()=>heatmapSpecPipeline,
|
189
134
|
heatmapAdvancedPipeline: ()=>heatmapAdvancedPipeline,
|
190
|
-
zDonutConfig: ()=>zDonutConfig,
|
191
135
|
zFunnelConfig: ()=>zFunnelConfig,
|
192
|
-
|
136
|
+
zMeasures: ()=>zMeasures,
|
193
137
|
zDualAxis: ()=>zDualAxis,
|
194
138
|
FoldMeasureName: ()=>FoldMeasureName,
|
195
139
|
zDualChartType: ()=>zDualChartType,
|
196
140
|
darkTheme: ()=>darkTheme,
|
197
|
-
createNumFormatter: ()=>createNumFormatter,
|
198
|
-
zAreaConfig: ()=>zAreaConfig,
|
199
|
-
zMeasures: ()=>zMeasures,
|
200
141
|
isVTable: ()=>isVTable,
|
201
|
-
zPieLabel: ()=>zPieLabel,
|
202
|
-
zPivotTable: ()=>zPivotTable,
|
203
|
-
zLine: ()=>zLine,
|
204
|
-
columnSpecPipeline: ()=>columnSpecPipeline,
|
205
|
-
zFoldInfo: ()=>zFoldInfo,
|
206
|
-
zDatasetReshapeInfo: ()=>zDatasetReshapeInfo,
|
207
|
-
zLinearColor: ()=>zLinearColor,
|
208
|
-
zRadar: ()=>zRadar,
|
209
|
-
zAreaStyle: ()=>zAreaStyle,
|
210
142
|
ORIGINAL_DATA: ()=>ORIGINAL_DATA,
|
211
|
-
zRadarConfig: ()=>zRadarConfig,
|
212
|
-
zAnnotationArea: ()=>zAnnotationArea,
|
213
|
-
zStackCornerRadius: ()=>zStackCornerRadius,
|
214
|
-
DetailEncoding: ()=>DetailEncoding,
|
215
|
-
isPivot: ()=>isPivot,
|
216
|
-
zRose: ()=>zRose,
|
217
143
|
columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
|
218
|
-
zPointStyle: ()=>zPointStyle,
|
219
144
|
zAnnotationPoint: ()=>zAnnotationPoint,
|
220
|
-
lightTheme: ()=>lightTheme,
|
221
|
-
registerColumnParallel: ()=>registerColumnParallel,
|
222
|
-
updateAdvanced: ()=>updateAdvanced,
|
223
|
-
zDimension: ()=>zDimension,
|
224
|
-
zTable: ()=>zTable,
|
225
145
|
isMeasure: ()=>isMeasure,
|
226
146
|
FoldSecondaryMeasureValue: ()=>FoldSecondaryMeasureValue,
|
227
147
|
zSort: ()=>zSort,
|
228
|
-
zUnfoldInfo: ()=>zUnfoldInfo,
|
229
148
|
isPivotChart: ()=>isPivotChart,
|
230
149
|
zDualAxisConfig: ()=>zDualAxisConfig,
|
231
|
-
zColumn: ()=>zColumn,
|
232
|
-
zCustomTheme: ()=>zCustomTheme,
|
233
150
|
zLineConfig: ()=>zLineConfig,
|
234
151
|
FoldPrimaryMeasureValue: ()=>FoldPrimaryMeasureValue,
|
235
|
-
zTableConfig: ()=>zTableConfig,
|
236
152
|
zXBandAxis: ()=>zXBandAxis,
|
237
|
-
zColumnPercentConfig: ()=>zColumnPercentConfig,
|
238
153
|
FoldYMeasureId: ()=>FoldYMeasureId,
|
239
154
|
findMeasureById: ()=>findMeasureById,
|
240
|
-
zVSeed: ()=>zVSeed,
|
241
155
|
AngleEncoding: ()=>AngleEncoding,
|
242
156
|
areaPercentAdvancedPipeline: ()=>areaPercentAdvancedPipeline,
|
243
|
-
radarAdvancedPipeline: ()=>radarAdvancedPipeline,
|
244
|
-
zAreaPercentConfig: ()=>zAreaPercentConfig,
|
245
157
|
zBackgroundColor: ()=>zBackgroundColor,
|
246
|
-
|
158
|
+
zAreaPercentConfig: ()=>zAreaPercentConfig,
|
247
159
|
registerRadar: ()=>registerRadar,
|
160
|
+
zMeasure: ()=>zMeasure,
|
248
161
|
zLocale: ()=>zLocale,
|
249
162
|
isDimension: ()=>isDimension,
|
250
|
-
MeasureEncodingEnum: ()=>MeasureEncodingEnum,
|
251
|
-
pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
|
252
|
-
FoldXMeasureValue: ()=>FoldXMeasureValue,
|
253
|
-
dualAxisAdvancedPipeline: ()=>dualAxisAdvancedPipeline,
|
254
163
|
registerScatter: ()=>registerScatter,
|
255
|
-
zEncoding: ()=>zEncoding,
|
256
|
-
ColorEncoding: ()=>ColorEncoding,
|
257
164
|
autoNumFormatter: ()=>autoNumFormatter,
|
258
|
-
measureDepth: ()=>measureDepth,
|
259
165
|
tableSpecPipeline: ()=>tableSpecPipeline,
|
260
166
|
isCombination: ()=>isCombination,
|
261
|
-
|
167
|
+
zRoseParallelConfig: ()=>zRoseParallelConfig,
|
262
168
|
zBarStyle: ()=>zBarStyle,
|
263
169
|
deleteDimensionTreeByCallback: ()=>deleteDimensionTreeByCallback,
|
264
170
|
zConfig: ()=>zConfig,
|
265
|
-
|
266
|
-
zMeasure: ()=>zMeasure,
|
171
|
+
zXLinearAxis: ()=>zXLinearAxis,
|
267
172
|
columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
|
268
|
-
isValueSelector: ()=>isValueSelector,
|
269
|
-
donutAdvancedPipeline: ()=>donutAdvancedPipeline,
|
270
173
|
zColumnPercent: ()=>zColumnPercent,
|
271
|
-
registerPie: ()=>registerPie,
|
272
174
|
foldMeasures: ()=>foldMeasures,
|
273
175
|
isPivotTable: ()=>isPivotTable,
|
176
|
+
registerPie: ()=>registerPie,
|
274
177
|
zDimensionEncoding: ()=>zDimensionEncoding,
|
275
178
|
zFunnel: ()=>zFunnel,
|
276
|
-
zRoseParallelConfig: ()=>zRoseParallelConfig,
|
277
179
|
zBarParallelConfig: ()=>zBarParallelConfig,
|
278
|
-
barParallelAdvancedPipeline: ()=>barParallelAdvancedPipeline,
|
279
|
-
FoldMeasureValue: ()=>FoldMeasureValue,
|
280
|
-
barPercentSpecPipeline: ()=>barPercentSpecPipeline,
|
281
|
-
deleteMeasureTreeByCallback: ()=>deleteMeasureTreeByCallback,
|
282
|
-
dataReshapeByEncoding: ()=>dataReshapeByEncoding,
|
283
180
|
lineAdvancedPipeline: ()=>lineAdvancedPipeline,
|
284
|
-
|
285
|
-
|
181
|
+
FoldMeasureValue: ()=>FoldMeasureValue,
|
182
|
+
ANNOTATION_Z_INDEX: ()=>1000,
|
286
183
|
createFormatter: ()=>createFormatter,
|
287
|
-
zDimensionGroup: ()=>zDimensionGroup,
|
288
184
|
isMeasureSelector: ()=>isMeasureSelector,
|
289
185
|
columnPercentSpecPipeline: ()=>columnPercentSpecPipeline,
|
290
186
|
areaAdvancedPipeline: ()=>areaAdvancedPipeline,
|
291
187
|
areaPercentSpecPipeline: ()=>areaPercentSpecPipeline,
|
292
188
|
barParallelSpecPipeline: ()=>barParallelSpecPipeline,
|
293
|
-
zBarConfig: ()=>zBarConfig
|
189
|
+
zBarConfig: ()=>zBarConfig,
|
190
|
+
zPie: ()=>zPie,
|
191
|
+
zBar: ()=>zBar,
|
192
|
+
pieAdvancedPipeline: ()=>pieAdvancedPipeline,
|
193
|
+
zDualMeasures: ()=>zDualMeasures,
|
194
|
+
isTable: ()=>isTable,
|
195
|
+
zDonut: ()=>zDonut,
|
196
|
+
zRoseConfig: ()=>zRoseConfig,
|
197
|
+
XEncoding: ()=>XEncoding,
|
198
|
+
findFirstMeasure: ()=>findFirstMeasure,
|
199
|
+
scatterAdvancedPipeline: ()=>scatterAdvancedPipeline,
|
200
|
+
zScatterMeasures: ()=>zScatterMeasures,
|
201
|
+
zAnnotation: ()=>zAnnotation,
|
202
|
+
selector: ()=>selector_selector,
|
203
|
+
isMeasures: ()=>isMeasures,
|
204
|
+
zYBandAxis: ()=>zYBandAxis,
|
205
|
+
Separator: ()=>"-",
|
206
|
+
findAllMeasures: ()=>findAllMeasures,
|
207
|
+
zColorLegend: ()=>zColorLegend,
|
208
|
+
EncodingEnum: ()=>EncodingEnum,
|
209
|
+
preorderTraverse: ()=>preorderTraverse,
|
210
|
+
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
211
|
+
zRoseParallel: ()=>zRoseParallel,
|
212
|
+
MeasureName: ()=>MeasureName,
|
213
|
+
zNumFormat: ()=>zNumFormat,
|
214
|
+
FoldYMeasureValue: ()=>FoldYMeasureValue,
|
215
|
+
zPivotTableConfig: ()=>zPivotTableConfig,
|
216
|
+
zArea: ()=>zArea,
|
217
|
+
FoldMeasureId: ()=>FoldMeasureId,
|
218
|
+
zColumnParallelConfig: ()=>zColumnParallelConfig,
|
219
|
+
donutSpecPipeline: ()=>donutSpecPipeline,
|
220
|
+
registerAreaPercent: ()=>registerAreaPercent,
|
221
|
+
zMeasureEncoding: ()=>zMeasureEncoding,
|
222
|
+
zBarPercent: ()=>zBarPercent,
|
223
|
+
zScatterMeasure: ()=>zScatterMeasure,
|
224
|
+
zTheme: ()=>zTheme,
|
225
|
+
zDatum: ()=>zDatum,
|
226
|
+
barAdvancedPipeline: ()=>barAdvancedPipeline,
|
227
|
+
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
228
|
+
registerColumnPercent: ()=>registerColumnPercent,
|
229
|
+
registerHeatmap: ()=>registerHeatmap,
|
230
|
+
isBarPercent: ()=>isBarPercent,
|
231
|
+
checkVSeed: ()=>checkVSeed,
|
232
|
+
zPivotTable: ()=>zPivotTable,
|
233
|
+
registerLightTheme: ()=>registerLightTheme,
|
234
|
+
isPartialDatumSelector: ()=>isPartialDatumSelector,
|
235
|
+
isDimensionGroup: ()=>isDimensionGroup,
|
236
|
+
registerPivotTable: ()=>registerPivotTable,
|
237
|
+
pieSpecPipeline: ()=>pieSpecPipeline,
|
238
|
+
dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
|
239
|
+
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
240
|
+
barSpecPipeline: ()=>barSpecPipeline,
|
241
|
+
unfoldDimensions: ()=>unfoldDimensions,
|
242
|
+
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
243
|
+
zPieConfig: ()=>zPieConfig,
|
244
|
+
Builder: ()=>Builder,
|
245
|
+
radarSpecPipeline: ()=>radarSpecPipeline,
|
246
|
+
zRadar: ()=>zRadar,
|
247
|
+
zTable: ()=>zTable,
|
248
|
+
registerLine: ()=>registerLine,
|
249
|
+
registerCustomTheme: ()=>registerCustomTheme,
|
250
|
+
zMeasureGroup: ()=>zMeasureGroup,
|
251
|
+
registerRoseParallel: ()=>registerRoseParallel,
|
252
|
+
zDonutConfig: ()=>zDonutConfig,
|
253
|
+
zUnfoldInfo: ()=>zUnfoldInfo,
|
254
|
+
zPieLabel: ()=>zPieLabel,
|
255
|
+
zRadarConfig: ()=>zRadarConfig,
|
256
|
+
zAreaConfig: ()=>zAreaConfig,
|
257
|
+
createNumFormatter: ()=>createNumFormatter,
|
258
|
+
zLine: ()=>zLine,
|
259
|
+
columnSpecPipeline: ()=>columnSpecPipeline,
|
260
|
+
zFoldInfo: ()=>zFoldInfo,
|
261
|
+
zDatasetReshapeInfo: ()=>zDatasetReshapeInfo,
|
262
|
+
zLinearColor: ()=>zLinearColor,
|
263
|
+
DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX: ()=>1001,
|
264
|
+
zAreaStyle: ()=>zAreaStyle,
|
265
|
+
zAnnotationArea: ()=>zAnnotationArea,
|
266
|
+
DetailEncoding: ()=>DetailEncoding,
|
267
|
+
isPivot: ()=>isPivot,
|
268
|
+
zPointStyle: ()=>zPointStyle,
|
269
|
+
zDimension: ()=>zDimension,
|
270
|
+
lightTheme: ()=>lightTheme,
|
271
|
+
registerColumnParallel: ()=>registerColumnParallel,
|
272
|
+
updateAdvanced: ()=>updateAdvanced,
|
273
|
+
isAreaPercent: ()=>isAreaPercent,
|
274
|
+
zColumn: ()=>zColumn,
|
275
|
+
zCustomTheme: ()=>zCustomTheme,
|
276
|
+
zTableConfig: ()=>zTableConfig,
|
277
|
+
zColumnPercentConfig: ()=>zColumnPercentConfig,
|
278
|
+
ChartTypeEnum: ()=>ChartTypeEnum,
|
279
|
+
zVSeed: ()=>zVSeed,
|
280
|
+
radarAdvancedPipeline: ()=>radarAdvancedPipeline,
|
281
|
+
registerBarParallel: ()=>registerBarParallel,
|
282
|
+
pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
|
283
|
+
DUAL_AXIS_LABEL_Z_INDEX: ()=>1002,
|
284
|
+
MeasureEncodingEnum: ()=>MeasureEncodingEnum,
|
285
|
+
FoldXMeasureValue: ()=>FoldXMeasureValue,
|
286
|
+
dualAxisAdvancedPipeline: ()=>dualAxisAdvancedPipeline,
|
287
|
+
zEncoding: ()=>zEncoding,
|
288
|
+
ColorEncoding: ()=>ColorEncoding,
|
289
|
+
measureDepth: ()=>measureDepth,
|
290
|
+
zAdvancedVSeed: ()=>zAdvancedVSeed,
|
291
|
+
zAreaPercent: ()=>zAreaPercent,
|
292
|
+
isValueSelector: ()=>isValueSelector,
|
293
|
+
zScatter: ()=>zScatter,
|
294
|
+
zScatterConfig: ()=>zScatterConfig,
|
295
|
+
donutAdvancedPipeline: ()=>donutAdvancedPipeline,
|
296
|
+
zTooltip: ()=>zTooltip,
|
297
|
+
barParallelAdvancedPipeline: ()=>barParallelAdvancedPipeline,
|
298
|
+
deleteMeasureTreeByCallback: ()=>deleteMeasureTreeByCallback,
|
299
|
+
barPercentSpecPipeline: ()=>barPercentSpecPipeline,
|
300
|
+
zBarPercentConfig: ()=>zBarPercentConfig,
|
301
|
+
dataReshapeByEncoding: ()=>dataReshapeByEncoding,
|
302
|
+
lineSpecPipeline: ()=>lineSpecPipeline,
|
303
|
+
zDimensionGroup: ()=>zDimensionGroup
|
294
304
|
});
|
295
305
|
const execPipeline = (pipeline, context, initialValue = {})=>{
|
296
306
|
const result = pipeline.reduce((prev, cur)=>cur(prev, context), initialValue);
|
@@ -523,9 +533,34 @@
|
|
523
533
|
return measureGroups;
|
524
534
|
};
|
525
535
|
const DEFAULT_PARENT_ID = '__DefaultParentId__';
|
526
|
-
const
|
527
|
-
|
528
|
-
|
536
|
+
const ChartTypeEnum = {
|
537
|
+
Table: 'table',
|
538
|
+
PivotTable: 'pivotTable',
|
539
|
+
Line: 'line',
|
540
|
+
Column: 'column',
|
541
|
+
ColumnPercent: 'columnPercent',
|
542
|
+
ColumnParallel: 'columnParallel',
|
543
|
+
Bar: 'bar',
|
544
|
+
BarPercent: 'barPercent',
|
545
|
+
BarParallel: 'barParallel',
|
546
|
+
Area: 'area',
|
547
|
+
AreaPercent: 'areaPercent',
|
548
|
+
DualAxis: 'dualAxis',
|
549
|
+
Scatter: 'scatter',
|
550
|
+
Rose: 'rose',
|
551
|
+
RoseParallel: 'roseParallel',
|
552
|
+
Pie: 'pie',
|
553
|
+
Donut: 'donut',
|
554
|
+
Radar: 'radar',
|
555
|
+
Funnel: 'funnel',
|
556
|
+
Heatmap: 'heatmap'
|
557
|
+
};
|
558
|
+
const isTable = (vseed)=>vseed.chartType === ChartTypeEnum.Table;
|
559
|
+
const isPivotTable = (vseed)=>vseed.chartType === ChartTypeEnum.PivotTable;
|
560
|
+
const isRadar = (vseed)=>vseed.chartType === ChartTypeEnum.Radar;
|
561
|
+
const isAreaPercent = (vseed)=>vseed.chartType === ChartTypeEnum.AreaPercent;
|
562
|
+
const isColumnPercent = (vseed)=>vseed.chartType === ChartTypeEnum.ColumnPercent;
|
563
|
+
const isBarPercent = (vseed)=>vseed.chartType === ChartTypeEnum.BarPercent;
|
529
564
|
const isVTable = (vseed)=>[
|
530
565
|
'table',
|
531
566
|
'pivotTable'
|
@@ -1062,7 +1097,8 @@
|
|
1062
1097
|
if (Number.isNaN(num)) return String(value);
|
1063
1098
|
const numFormatterOptions = {
|
1064
1099
|
style: 'decimal',
|
1065
|
-
notation: 'compact'
|
1100
|
+
notation: 'compact',
|
1101
|
+
useGrouping: true
|
1066
1102
|
};
|
1067
1103
|
numFormatterOptions.minimumFractionDigits = 0;
|
1068
1104
|
numFormatterOptions.maximumFractionDigits = 2;
|
@@ -2117,18 +2153,20 @@
|
|
2117
2153
|
};
|
2118
2154
|
};
|
2119
2155
|
const colorAdapter = (ordinalPipe, linearPipe)=>(spec, context)=>{
|
2120
|
-
const { advancedVSeed } = context;
|
2121
|
-
if (isLinearColor(advancedVSeed)) return linearPipe(spec, context);
|
2156
|
+
const { advancedVSeed, vseed } = context;
|
2157
|
+
if (isLinearColor(advancedVSeed, vseed)) return linearPipe(spec, context);
|
2122
2158
|
return ordinalPipe(spec, context);
|
2123
2159
|
};
|
2124
|
-
const isLinearColor = (advancedVSeed)=>{
|
2125
|
-
|
2160
|
+
const isLinearColor = (advancedVSeed, vseed)=>{
|
2161
|
+
console.log(vseed);
|
2162
|
+
const { encoding } = advancedVSeed;
|
2163
|
+
const measures = vseed.measures || advancedVSeed.measures;
|
2126
2164
|
const measureIdList = findAllMeasures(measures).map((measure)=>measure.id);
|
2127
2165
|
const { color } = encoding;
|
2128
2166
|
return color?.length === 1 && measureIdList.includes(color[0]);
|
2129
2167
|
};
|
2130
|
-
const getColorMeasureId = (advancedVSeed)=>{
|
2131
|
-
if (isLinearColor(advancedVSeed)) {
|
2168
|
+
const getColorMeasureId = (advancedVSeed, vseed)=>{
|
2169
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
2132
2170
|
const { encoding } = advancedVSeed;
|
2133
2171
|
const { color } = encoding;
|
2134
2172
|
return color?.[0];
|
@@ -2141,9 +2179,10 @@
|
|
2141
2179
|
const { vseed } = context;
|
2142
2180
|
const { dataset, chartType } = vseed;
|
2143
2181
|
const { dimensions = [], measures = [], encoding } = advancedVSeed;
|
2182
|
+
const colorMeasureId = getColorMeasureId(advancedVSeed, vseed);
|
2144
2183
|
const { dataset: newDatasets, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(findAllMeasures(measures), (item)=>item.id), encoding, {
|
2145
2184
|
colorItemAsId: false,
|
2146
|
-
colorMeasureId
|
2185
|
+
colorMeasureId
|
2147
2186
|
});
|
2148
2187
|
return {
|
2149
2188
|
...result,
|
@@ -2180,7 +2219,7 @@
|
|
2180
2219
|
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(measures, (item)=>item.id), encoding, {
|
2181
2220
|
colorItemAsId: false,
|
2182
2221
|
foldMeasureValue: `${FoldMeasureValue}${groupId}`,
|
2183
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
2222
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
2184
2223
|
});
|
2185
2224
|
const reshapeInfo = {
|
2186
2225
|
id: groupId,
|
@@ -2425,7 +2464,8 @@
|
|
2425
2464
|
buildMeasures,
|
2426
2465
|
deleteEncodingForMeasure([
|
2427
2466
|
'tooltip',
|
2428
|
-
'label'
|
2467
|
+
'label',
|
2468
|
+
'color'
|
2429
2469
|
]),
|
2430
2470
|
deleteTooltipAndLabelDimension
|
2431
2471
|
]),
|
@@ -2445,14 +2485,14 @@
|
|
2445
2485
|
const result = {
|
2446
2486
|
...spec
|
2447
2487
|
};
|
2448
|
-
const { advancedVSeed } = context;
|
2488
|
+
const { advancedVSeed, vseed } = context;
|
2449
2489
|
const { datasetReshapeInfo } = advancedVSeed;
|
2450
2490
|
const { foldInfo, unfoldInfo } = datasetReshapeInfo[0];
|
2451
2491
|
result.type = 'line';
|
2452
2492
|
result.direction = 'vertical';
|
2453
2493
|
result.xField = unfoldInfo.encodingX;
|
2454
2494
|
result.yField = foldInfo.measureValue;
|
2455
|
-
result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
2495
|
+
result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
2456
2496
|
result.padding = 0;
|
2457
2497
|
result.region = [
|
2458
2498
|
{
|
@@ -2742,6 +2782,9 @@
|
|
2742
2782
|
}
|
2743
2783
|
const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10, autoFormat, numFormat = {} } = config;
|
2744
2784
|
const formatter = createNumFormatter(numFormat);
|
2785
|
+
const percentFormatter = createNumFormatter({
|
2786
|
+
type: 'percent'
|
2787
|
+
});
|
2745
2788
|
const linearAxis = {
|
2746
2789
|
visible,
|
2747
2790
|
type: log ? 'log' : 'linear',
|
@@ -2754,7 +2797,10 @@
|
|
2754
2797
|
min,
|
2755
2798
|
label: {
|
2756
2799
|
visible: label?.visible,
|
2757
|
-
formatMethod: (value)=>
|
2800
|
+
formatMethod: (value)=>{
|
2801
|
+
if ((isBarPercent(vseed) || isColumnPercent(vseed) || isAreaPercent(vseed)) && chunk_VCYTMP4D_n(numFormat) && (true === autoFormat || chunk_JK3VNB42_n(autoFormat))) return percentFormatter(value);
|
2802
|
+
return createLinearFormat(value, autoFormat, numFormat, formatter);
|
2803
|
+
},
|
2758
2804
|
style: {
|
2759
2805
|
fill: label?.labelColor,
|
2760
2806
|
angle: label?.labelAngle,
|
@@ -3018,10 +3064,10 @@
|
|
3018
3064
|
};
|
3019
3065
|
const colorPointStyleFill = (stylePipe)=>(spec, context)=>{
|
3020
3066
|
const result = stylePipe(spec, context);
|
3021
|
-
const { advancedVSeed } = context;
|
3067
|
+
const { advancedVSeed, vseed } = context;
|
3022
3068
|
const { datasetReshapeInfo } = advancedVSeed;
|
3023
3069
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
3024
|
-
if (isLinearColor(advancedVSeed)) {
|
3070
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
3025
3071
|
if (result?.point?.style) result.point.style.fill = {
|
3026
3072
|
field: unfoldInfo.encodingColor,
|
3027
3073
|
scale: 'color'
|
@@ -3230,10 +3276,10 @@
|
|
3230
3276
|
};
|
3231
3277
|
const colorLineStyleFill = (stylePipe)=>(spec, context)=>{
|
3232
3278
|
const result = stylePipe(spec, context);
|
3233
|
-
const { advancedVSeed } = context;
|
3279
|
+
const { advancedVSeed, vseed } = context;
|
3234
3280
|
const { datasetReshapeInfo } = advancedVSeed;
|
3235
3281
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
3236
|
-
if (isLinearColor(advancedVSeed)) {
|
3282
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
3237
3283
|
if (result?.line?.style) result.line.style.stroke = {
|
3238
3284
|
field: unfoldInfo.encodingColor,
|
3239
3285
|
scale: 'color'
|
@@ -4565,7 +4611,8 @@
|
|
4565
4611
|
buildMeasures,
|
4566
4612
|
deleteEncodingForMeasure([
|
4567
4613
|
'tooltip',
|
4568
|
-
'label'
|
4614
|
+
'label',
|
4615
|
+
'color'
|
4569
4616
|
]),
|
4570
4617
|
deleteTooltipAndLabelDimension
|
4571
4618
|
]),
|
@@ -4665,10 +4712,10 @@
|
|
4665
4712
|
};
|
4666
4713
|
const colorBarStyleFill = (stylePipe)=>(spec, context)=>{
|
4667
4714
|
const result = stylePipe(spec, context);
|
4668
|
-
const { advancedVSeed } = context;
|
4715
|
+
const { advancedVSeed, vseed } = context;
|
4669
4716
|
const { datasetReshapeInfo } = advancedVSeed;
|
4670
4717
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
4671
|
-
if (isLinearColor(advancedVSeed)) {
|
4718
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
4672
4719
|
if (result?.bar?.style) result.bar.style.fill = {
|
4673
4720
|
field: unfoldInfo.encodingColor,
|
4674
4721
|
scale: 'color'
|
@@ -4949,7 +4996,8 @@
|
|
4949
4996
|
buildMeasures,
|
4950
4997
|
deleteEncodingForMeasure([
|
4951
4998
|
'tooltip',
|
4952
|
-
'label'
|
4999
|
+
'label',
|
5000
|
+
'color'
|
4953
5001
|
]),
|
4954
5002
|
deleteTooltipAndLabelDimension
|
4955
5003
|
]),
|
@@ -5098,7 +5146,8 @@
|
|
5098
5146
|
buildMeasures,
|
5099
5147
|
deleteEncodingForMeasure([
|
5100
5148
|
'tooltip',
|
5101
|
-
'label'
|
5149
|
+
'label',
|
5150
|
+
'color'
|
5102
5151
|
]),
|
5103
5152
|
deleteTooltipAndLabelDimension
|
5104
5153
|
]),
|
@@ -5276,7 +5325,8 @@
|
|
5276
5325
|
buildMeasures,
|
5277
5326
|
deleteEncodingForMeasure([
|
5278
5327
|
'tooltip',
|
5279
|
-
'label'
|
5328
|
+
'label',
|
5329
|
+
'color'
|
5280
5330
|
]),
|
5281
5331
|
deleteTooltipAndLabelDimension
|
5282
5332
|
]),
|
@@ -5379,6 +5429,9 @@
|
|
5379
5429
|
}
|
5380
5430
|
const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10, autoFormat, numFormat = {} } = config;
|
5381
5431
|
const formatter = createNumFormatter(numFormat);
|
5432
|
+
const percentFormatter = createNumFormatter({
|
5433
|
+
type: 'percent'
|
5434
|
+
});
|
5382
5435
|
const linearAxis = {
|
5383
5436
|
visible,
|
5384
5437
|
type: log ? 'log' : 'linear',
|
@@ -5391,7 +5444,10 @@
|
|
5391
5444
|
min,
|
5392
5445
|
label: {
|
5393
5446
|
visible: label?.visible,
|
5394
|
-
formatMethod: (value)=>
|
5447
|
+
formatMethod: (value)=>{
|
5448
|
+
if (chunk_VCYTMP4D_n(numFormat) && (true === autoFormat || chunk_JK3VNB42_n(autoFormat)) && (isBarPercent(vseed) || isColumnPercent(vseed) || isAreaPercent(vseed))) return percentFormatter(value);
|
5449
|
+
return createLinearFormat(value, autoFormat, numFormat, formatter);
|
5450
|
+
},
|
5395
5451
|
style: {
|
5396
5452
|
fill: label?.labelColor,
|
5397
5453
|
angle: label?.labelAngle,
|
@@ -5643,7 +5699,8 @@
|
|
5643
5699
|
buildMeasures,
|
5644
5700
|
deleteEncodingForMeasure([
|
5645
5701
|
'tooltip',
|
5646
|
-
'label'
|
5702
|
+
'label',
|
5703
|
+
'color'
|
5647
5704
|
]),
|
5648
5705
|
deleteTooltipAndLabelDimension
|
5649
5706
|
]),
|
@@ -5751,7 +5808,8 @@
|
|
5751
5808
|
buildMeasures,
|
5752
5809
|
deleteEncodingForMeasure([
|
5753
5810
|
'tooltip',
|
5754
|
-
'label'
|
5811
|
+
'label',
|
5812
|
+
'color'
|
5755
5813
|
]),
|
5756
5814
|
deleteTooltipAndLabelDimension
|
5757
5815
|
]),
|
@@ -5834,7 +5892,8 @@
|
|
5834
5892
|
buildMeasures,
|
5835
5893
|
deleteEncodingForMeasure([
|
5836
5894
|
'tooltip',
|
5837
|
-
'label'
|
5895
|
+
'label',
|
5896
|
+
'color'
|
5838
5897
|
]),
|
5839
5898
|
deleteTooltipAndLabelDimension
|
5840
5899
|
]),
|
@@ -5854,14 +5913,14 @@
|
|
5854
5913
|
const result = {
|
5855
5914
|
...spec
|
5856
5915
|
};
|
5857
|
-
const { advancedVSeed } = context;
|
5916
|
+
const { advancedVSeed, vseed } = context;
|
5858
5917
|
const { datasetReshapeInfo } = advancedVSeed;
|
5859
5918
|
const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
|
5860
5919
|
result.type = 'area';
|
5861
5920
|
result.direction = 'vertical';
|
5862
5921
|
result.yField = foldInfo.measureValue;
|
5863
5922
|
result.xField = unfoldInfo.encodingX;
|
5864
|
-
result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
5923
|
+
result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
5865
5924
|
result.padding = 0;
|
5866
5925
|
result.region = [
|
5867
5926
|
{
|
@@ -5873,10 +5932,10 @@
|
|
5873
5932
|
};
|
5874
5933
|
const colorAreaStyleFill = (stylePipe)=>(spec, context)=>{
|
5875
5934
|
const result = stylePipe(spec, context);
|
5876
|
-
const { advancedVSeed } = context;
|
5935
|
+
const { advancedVSeed, vseed } = context;
|
5877
5936
|
const { datasetReshapeInfo } = advancedVSeed;
|
5878
5937
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
5879
|
-
if (isLinearColor(advancedVSeed)) {
|
5938
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
5880
5939
|
if (result?.area?.style) result.area.style.fill = {
|
5881
5940
|
field: unfoldInfo.encodingColor,
|
5882
5941
|
scale: 'color'
|
@@ -6011,7 +6070,8 @@
|
|
6011
6070
|
buildMeasures,
|
6012
6071
|
deleteEncodingForMeasure([
|
6013
6072
|
'tooltip',
|
6014
|
-
'label'
|
6073
|
+
'label',
|
6074
|
+
'color'
|
6015
6075
|
]),
|
6016
6076
|
deleteTooltipAndLabelDimension
|
6017
6077
|
]),
|
@@ -6299,7 +6359,7 @@
|
|
6299
6359
|
foldMeasureValue: FoldXMeasureValue,
|
6300
6360
|
foldMeasureId: FoldXMeasureId,
|
6301
6361
|
colorItemAsId: true,
|
6302
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6362
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6303
6363
|
});
|
6304
6364
|
datasets.push(newDataset);
|
6305
6365
|
foldInfoList.push(foldInfo);
|
@@ -6310,7 +6370,7 @@
|
|
6310
6370
|
foldMeasureValue: FoldYMeasureValue,
|
6311
6371
|
foldMeasureId: FoldYMeasureId,
|
6312
6372
|
colorItemAsId: true,
|
6313
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6373
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6314
6374
|
});
|
6315
6375
|
datasets[0] = newDataset;
|
6316
6376
|
foldInfoList.push(foldInfo);
|
@@ -6364,7 +6424,7 @@
|
|
6364
6424
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, dimensions, xMeasures.children, encoding, {
|
6365
6425
|
foldMeasureValue: `${FoldXMeasureValue}${index}`,
|
6366
6426
|
colorItemAsId: true,
|
6367
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6427
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6368
6428
|
});
|
6369
6429
|
datasets.push(newDataset);
|
6370
6430
|
foldInfoList.push(foldInfo);
|
@@ -6374,7 +6434,7 @@
|
|
6374
6434
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, dimensions, yMeasures.children, encoding, {
|
6375
6435
|
foldMeasureValue: `${FoldYMeasureValue}${index}`,
|
6376
6436
|
colorItemAsId: true,
|
6377
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6437
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6378
6438
|
});
|
6379
6439
|
datasets.push(newDataset);
|
6380
6440
|
foldInfoList.push(foldInfo);
|
@@ -6873,7 +6933,7 @@
|
|
6873
6933
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(primaryMeasures.children, (item)=>item.id), encoding, {
|
6874
6934
|
colorItemAsId: false,
|
6875
6935
|
foldMeasureValue: FoldPrimaryMeasureValue,
|
6876
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6936
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6877
6937
|
});
|
6878
6938
|
datasets.push(newDataset);
|
6879
6939
|
foldInfoList.push(foldInfo);
|
@@ -6883,7 +6943,7 @@
|
|
6883
6943
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(secondaryMeasures.children, (item)=>item.id), encoding, {
|
6884
6944
|
colorItemAsId: false,
|
6885
6945
|
foldMeasureValue: FoldSecondaryMeasureValue,
|
6886
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6946
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6887
6947
|
});
|
6888
6948
|
datasets.push(newDataset);
|
6889
6949
|
foldInfoList.push(foldInfo);
|
@@ -6937,7 +6997,7 @@
|
|
6937
6997
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(primaryMeasures.children, (item)=>item.id), encoding, {
|
6938
6998
|
colorItemAsId: false,
|
6939
6999
|
foldMeasureValue: `${FoldPrimaryMeasureValue}${index}`,
|
6940
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
7000
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6941
7001
|
});
|
6942
7002
|
datasets.push(newDataset);
|
6943
7003
|
foldInfoList.push(foldInfo);
|
@@ -6947,7 +7007,7 @@
|
|
6947
7007
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(secondaryMeasures.children, (item)=>item.id), encoding, {
|
6948
7008
|
colorItemAsId: false,
|
6949
7009
|
foldMeasureValue: `${FoldSecondaryMeasureValue}${index}`,
|
6950
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
7010
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6951
7011
|
});
|
6952
7012
|
datasets.push(newDataset);
|
6953
7013
|
foldInfoList.push(foldInfo);
|
@@ -7019,7 +7079,8 @@
|
|
7019
7079
|
buildMeasuresForDualAxis,
|
7020
7080
|
deleteEncodingForMeasure([
|
7021
7081
|
'tooltip',
|
7022
|
-
'label'
|
7082
|
+
'label',
|
7083
|
+
'color'
|
7023
7084
|
]),
|
7024
7085
|
deleteTooltipAndLabelDimension
|
7025
7086
|
]),
|
@@ -7100,7 +7161,7 @@
|
|
7100
7161
|
const result = {
|
7101
7162
|
...spec
|
7102
7163
|
};
|
7103
|
-
const { advancedVSeed } = context;
|
7164
|
+
const { advancedVSeed, vseed } = context;
|
7104
7165
|
const { datasetReshapeInfo } = advancedVSeed;
|
7105
7166
|
const { unfoldInfo, foldInfoList, id } = datasetReshapeInfo[0];
|
7106
7167
|
result.id = `${id}-secondary-series`;
|
@@ -7108,7 +7169,7 @@
|
|
7108
7169
|
result.direction = 'vertical';
|
7109
7170
|
result.xField = unfoldInfo.encodingX;
|
7110
7171
|
if (foldInfoList?.[1]) result.yField = foldInfoList[1].measureValue;
|
7111
|
-
result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
7172
|
+
result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
7112
7173
|
result.animation = true;
|
7113
7174
|
return result;
|
7114
7175
|
};
|
@@ -7802,7 +7863,8 @@
|
|
7802
7863
|
buildMeasures,
|
7803
7864
|
deleteEncodingForMeasure([
|
7804
7865
|
'tooltip',
|
7805
|
-
'label'
|
7866
|
+
'label',
|
7867
|
+
'color'
|
7806
7868
|
]),
|
7807
7869
|
deleteTooltipAndLabelDimension
|
7808
7870
|
]),
|
@@ -7838,10 +7900,10 @@
|
|
7838
7900
|
};
|
7839
7901
|
const colorPieStyleFill = (stylePipe)=>(spec, context)=>{
|
7840
7902
|
const result = stylePipe(spec, context);
|
7841
|
-
const { advancedVSeed } = context;
|
7903
|
+
const { advancedVSeed, vseed } = context;
|
7842
7904
|
const { datasetReshapeInfo } = advancedVSeed;
|
7843
7905
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
7844
|
-
if (isLinearColor(advancedVSeed)) {
|
7906
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
7845
7907
|
if (result?.pie?.style) result.pie.style.fill = {
|
7846
7908
|
field: unfoldInfo.encodingColor,
|
7847
7909
|
scale: 'color'
|
@@ -7955,7 +8017,8 @@
|
|
7955
8017
|
buildMeasures,
|
7956
8018
|
deleteEncodingForMeasure([
|
7957
8019
|
'tooltip',
|
7958
|
-
'label'
|
8020
|
+
'label',
|
8021
|
+
'color'
|
7959
8022
|
]),
|
7960
8023
|
deleteTooltipAndLabelDimension
|
7961
8024
|
]),
|
@@ -8117,7 +8180,8 @@
|
|
8117
8180
|
buildMeasures,
|
8118
8181
|
deleteEncodingForMeasure([
|
8119
8182
|
'tooltip',
|
8120
|
-
'label'
|
8183
|
+
'label',
|
8184
|
+
'color'
|
8121
8185
|
]),
|
8122
8186
|
deleteTooltipAndLabelDimension
|
8123
8187
|
]),
|
@@ -8174,10 +8238,10 @@
|
|
8174
8238
|
};
|
8175
8239
|
const colorRoseStyleFill = (stylePipe)=>(spec, context)=>{
|
8176
8240
|
const result = stylePipe(spec, context);
|
8177
|
-
const { advancedVSeed } = context;
|
8241
|
+
const { advancedVSeed, vseed } = context;
|
8178
8242
|
const { datasetReshapeInfo } = advancedVSeed;
|
8179
8243
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
8180
|
-
if (isLinearColor(advancedVSeed)) {
|
8244
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
8181
8245
|
if (result?.rose?.style) result.rose.style.fill = {
|
8182
8246
|
field: unfoldInfo.encodingColor,
|
8183
8247
|
scale: 'color'
|
@@ -8270,7 +8334,8 @@
|
|
8270
8334
|
buildMeasures,
|
8271
8335
|
deleteEncodingForMeasure([
|
8272
8336
|
'tooltip',
|
8273
|
-
'label'
|
8337
|
+
'label',
|
8338
|
+
'color'
|
8274
8339
|
]),
|
8275
8340
|
deleteTooltipAndLabelDimension
|
8276
8341
|
]),
|
@@ -8461,7 +8526,8 @@
|
|
8461
8526
|
buildMeasures,
|
8462
8527
|
deleteEncodingForMeasure([
|
8463
8528
|
'tooltip',
|
8464
|
-
'label'
|
8529
|
+
'label',
|
8530
|
+
'color'
|
8465
8531
|
]),
|
8466
8532
|
deleteTooltipAndLabelDimension
|
8467
8533
|
]),
|
@@ -8480,13 +8546,13 @@
|
|
8480
8546
|
const result = {
|
8481
8547
|
...spec
|
8482
8548
|
};
|
8483
|
-
const { advancedVSeed } = context;
|
8549
|
+
const { advancedVSeed, vseed } = context;
|
8484
8550
|
const { datasetReshapeInfo } = advancedVSeed;
|
8485
8551
|
const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
|
8486
8552
|
result.type = 'radar';
|
8487
8553
|
result.angleField = unfoldInfo.encodingAngle;
|
8488
8554
|
result.radiusField = foldInfo.measureValue;
|
8489
|
-
result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
8555
|
+
result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
8490
8556
|
result.padding = 0;
|
8491
8557
|
result.region = [
|
8492
8558
|
{
|
@@ -8679,7 +8745,8 @@
|
|
8679
8745
|
buildMeasures,
|
8680
8746
|
deleteEncodingForMeasure([
|
8681
8747
|
'tooltip',
|
8682
|
-
'label'
|
8748
|
+
'label',
|
8749
|
+
'color'
|
8683
8750
|
]),
|
8684
8751
|
deleteTooltipAndLabelDimension
|
8685
8752
|
]),
|
@@ -8720,10 +8787,10 @@
|
|
8720
8787
|
};
|
8721
8788
|
const colorFunnelStyleFill = (stylePipe)=>(spec, context)=>{
|
8722
8789
|
const result = stylePipe(spec, context);
|
8723
|
-
const { advancedVSeed } = context;
|
8790
|
+
const { advancedVSeed, vseed } = context;
|
8724
8791
|
const { datasetReshapeInfo } = advancedVSeed;
|
8725
8792
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
8726
|
-
if (isLinearColor(advancedVSeed)) {
|
8793
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
8727
8794
|
if (result?.funnel?.style) result.funnel.style.fill = {
|
8728
8795
|
field: unfoldInfo.encodingColor,
|
8729
8796
|
scale: 'color'
|
@@ -8886,7 +8953,8 @@
|
|
8886
8953
|
buildMeasures,
|
8887
8954
|
deleteEncodingForMeasure([
|
8888
8955
|
'tooltip',
|
8889
|
-
'label'
|
8956
|
+
'label',
|
8957
|
+
'color'
|
8890
8958
|
]),
|
8891
8959
|
deleteTooltipAndLabelDimension
|
8892
8960
|
]),
|
@@ -8903,10 +8971,10 @@
|
|
8903
8971
|
];
|
8904
8972
|
const colorCellStyleFill = (stylePipe)=>(spec, context)=>{
|
8905
8973
|
const result = stylePipe(spec, context);
|
8906
|
-
const { advancedVSeed } = context;
|
8974
|
+
const { advancedVSeed, vseed } = context;
|
8907
8975
|
const { datasetReshapeInfo } = advancedVSeed;
|
8908
8976
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
8909
|
-
if (isLinearColor(advancedVSeed)) {
|
8977
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
8910
8978
|
if (result?.cell?.style) result.cell.style.fill = {
|
8911
8979
|
field: unfoldInfo.encodingColor,
|
8912
8980
|
scale: 'color'
|
@@ -9299,10 +9367,7 @@
|
|
9299
9367
|
...baseConfig,
|
9300
9368
|
xAxis: bandAxis,
|
9301
9369
|
yAxis: {
|
9302
|
-
...linearAxis
|
9303
|
-
numFormat: {
|
9304
|
-
type: 'percent'
|
9305
|
-
}
|
9370
|
+
...linearAxis
|
9306
9371
|
},
|
9307
9372
|
crosshairRect,
|
9308
9373
|
stackCornerRadius: [
|
@@ -9339,10 +9404,7 @@
|
|
9339
9404
|
barPercent: {
|
9340
9405
|
...baseConfig,
|
9341
9406
|
xAxis: {
|
9342
|
-
...linearAxis
|
9343
|
-
numFormat: {
|
9344
|
-
type: 'percent'
|
9345
|
-
}
|
9407
|
+
...linearAxis
|
9346
9408
|
},
|
9347
9409
|
yAxis: barBandAxis,
|
9348
9410
|
crosshairRect,
|
@@ -9363,10 +9425,7 @@
|
|
9363
9425
|
...baseConfig,
|
9364
9426
|
xAxis: bandAxis,
|
9365
9427
|
yAxis: {
|
9366
|
-
...linearAxis
|
9367
|
-
numFormat: {
|
9368
|
-
type: 'percent'
|
9369
|
-
}
|
9428
|
+
...linearAxis
|
9370
9429
|
},
|
9371
9430
|
crosshairLine
|
9372
9431
|
},
|