@visactor/vseed 0.1.22 → 0.1.24

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.
Files changed (112) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/pipeline/advanced/chart/pipeline/area.js +2 -1
  4. package/dist/esm/pipeline/advanced/chart/pipeline/area.js.map +1 -1
  5. package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js +2 -1
  6. package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js.map +1 -1
  7. package/dist/esm/pipeline/advanced/chart/pipeline/bar.js +2 -1
  8. package/dist/esm/pipeline/advanced/chart/pipeline/bar.js.map +1 -1
  9. package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js +2 -1
  10. package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js.map +1 -1
  11. package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js +2 -1
  12. package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js.map +1 -1
  13. package/dist/esm/pipeline/advanced/chart/pipeline/column.js +2 -1
  14. package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
  15. package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js +2 -1
  16. package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js.map +1 -1
  17. package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js +2 -1
  18. package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js.map +1 -1
  19. package/dist/esm/pipeline/advanced/chart/pipeline/donut.js +2 -1
  20. package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
  21. package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js +2 -1
  22. package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js.map +1 -1
  23. package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js +2 -1
  24. package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js.map +1 -1
  25. package/dist/esm/pipeline/advanced/chart/pipeline/line.js +2 -1
  26. package/dist/esm/pipeline/advanced/chart/pipeline/line.js.map +1 -1
  27. package/dist/esm/pipeline/advanced/chart/pipeline/pie.js +2 -1
  28. package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
  29. package/dist/esm/pipeline/advanced/chart/pipeline/radar.js +2 -1
  30. package/dist/esm/pipeline/advanced/chart/pipeline/radar.js.map +1 -1
  31. package/dist/esm/pipeline/advanced/chart/pipeline/rose.js +2 -1
  32. package/dist/esm/pipeline/advanced/chart/pipeline/rose.js.map +1 -1
  33. package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js +2 -1
  34. package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js.map +1 -1
  35. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js +2 -2
  36. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js.map +1 -1
  37. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js +1 -1
  38. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
  39. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js +2 -2
  40. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js.map +1 -1
  41. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js +2 -2
  42. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js.map +1 -1
  43. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js +2 -1
  44. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
  45. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js +2 -2
  46. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js.map +1 -1
  47. package/dist/esm/pipeline/spec/chart/pipes/axes/format/linearFormat.d.ts +1 -0
  48. package/dist/esm/pipeline/spec/chart/pipes/axes/format/linearFormat.js +7 -1
  49. package/dist/esm/pipeline/spec/chart/pipes/axes/format/linearFormat.js.map +1 -1
  50. package/dist/esm/pipeline/spec/chart/pipes/axes/radarAngle.js +1 -4
  51. package/dist/esm/pipeline/spec/chart/pipes/axes/radarAngle.js.map +1 -1
  52. package/dist/esm/pipeline/spec/chart/pipes/axes/radarRadius.js +1 -4
  53. package/dist/esm/pipeline/spec/chart/pipes/axes/radarRadius.js.map +1 -1
  54. package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js +1 -4
  55. package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js.map +1 -1
  56. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +0 -11
  57. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
  58. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +9 -15
  59. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
  60. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +0 -11
  61. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
  62. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +9 -15
  63. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
  64. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +0 -13
  65. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
  66. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +0 -14
  67. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
  68. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.d.ts +3 -3
  69. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js +8 -6
  70. package/dist/esm/pipeline/spec/chart/pipes/color/colorAdapter.js.map +1 -1
  71. package/dist/esm/pipeline/spec/chart/pipes/color/colorAreaStyleFill.js +2 -2
  72. package/dist/esm/pipeline/spec/chart/pipes/color/colorAreaStyleFill.js.map +1 -1
  73. package/dist/esm/pipeline/spec/chart/pipes/color/colorBarStyleFill.js +2 -2
  74. package/dist/esm/pipeline/spec/chart/pipes/color/colorBarStyleFill.js.map +1 -1
  75. package/dist/esm/pipeline/spec/chart/pipes/color/colorCellStyleFill.js +2 -2
  76. package/dist/esm/pipeline/spec/chart/pipes/color/colorCellStyleFill.js.map +1 -1
  77. package/dist/esm/pipeline/spec/chart/pipes/color/colorFunnelStyleFill.js +2 -2
  78. package/dist/esm/pipeline/spec/chart/pipes/color/colorFunnelStyleFill.js.map +1 -1
  79. package/dist/esm/pipeline/spec/chart/pipes/color/colorLineStyleFill.js +2 -2
  80. package/dist/esm/pipeline/spec/chart/pipes/color/colorLineStyleFill.js.map +1 -1
  81. package/dist/esm/pipeline/spec/chart/pipes/color/colorPieStyleFill.js +2 -2
  82. package/dist/esm/pipeline/spec/chart/pipes/color/colorPieStyleFill.js.map +1 -1
  83. package/dist/esm/pipeline/spec/chart/pipes/color/colorPointStyleFill.js +2 -2
  84. package/dist/esm/pipeline/spec/chart/pipes/color/colorPointStyleFill.js.map +1 -1
  85. package/dist/esm/pipeline/spec/chart/pipes/color/colorRoseStyleFill.js +2 -2
  86. package/dist/esm/pipeline/spec/chart/pipes/color/colorRoseStyleFill.js.map +1 -1
  87. package/dist/esm/pipeline/spec/chart/pipes/init/area.js +2 -2
  88. package/dist/esm/pipeline/spec/chart/pipes/init/area.js.map +1 -1
  89. package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.js +2 -2
  90. package/dist/esm/pipeline/spec/chart/pipes/init/dualAxis.js.map +1 -1
  91. package/dist/esm/pipeline/spec/chart/pipes/init/line.js +2 -2
  92. package/dist/esm/pipeline/spec/chart/pipes/init/line.js.map +1 -1
  93. package/dist/esm/pipeline/spec/chart/pipes/init/radar.js +2 -2
  94. package/dist/esm/pipeline/spec/chart/pipes/init/radar.js.map +1 -1
  95. package/dist/esm/pipeline/utils/chatType.d.ts +4 -1
  96. package/dist/esm/pipeline/utils/chatType.js +8 -5
  97. package/dist/esm/pipeline/utils/chatType.js.map +1 -1
  98. package/dist/esm/pipeline/utils/constant.d.ts +22 -0
  99. package/dist/esm/pipeline/utils/constant.js +23 -1
  100. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  101. package/dist/esm/pipeline/utils/format/createNumFormatter.js +2 -1
  102. package/dist/esm/pipeline/utils/format/createNumFormatter.js.map +1 -1
  103. package/dist/esm/pipeline/utils/index.d.ts +1 -0
  104. package/dist/esm/pipeline/utils/index.js +1 -0
  105. package/dist/esm/theme/light.js +3 -12
  106. package/dist/esm/theme/light.js.map +1 -1
  107. package/dist/esm/types/properties/chartType/chartType.d.ts +0 -22
  108. package/dist/esm/types/properties/chartType/chartType.js +1 -23
  109. package/dist/esm/types/properties/chartType/chartType.js.map +1 -1
  110. package/dist/umd/index.js +267 -283
  111. package/dist/umd/index.js.map +1 -1
  112. 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
- isTable: ()=>isTable,
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
- pivotTableAdvancedPipeline: ()=>pivotTableAdvancedPipeline,
82
+ DEFAULT_PARENT_ID: ()=>DEFAULT_PARENT_ID,
83
+ isRadar: ()=>isRadar,
99
84
  zSortLegend: ()=>zSortLegend,
100
- isMeasures: ()=>isMeasures,
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
- FoldMeasureId: ()=>FoldMeasureId,
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
- zDatum: ()=>zDatum,
144
- zMeasureEncoding: ()=>zMeasureEncoding,
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
- registerPivotTable: ()=>registerPivotTable,
160
- isPartialDatumSelector: ()=>isPartialDatumSelector,
161
- pieSpecPipeline: ()=>pieSpecPipeline,
162
- isDimensionGroup: ()=>isDimensionGroup,
163
- dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
117
+ zChartType: ()=>zChartType,
164
118
  tableAdvancedPipeline: ()=>tableAdvancedPipeline,
165
- barSpecPipeline: ()=>barSpecPipeline,
166
- zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
119
+ zMeasureTree: ()=>zMeasureTree,
120
+ zStackCornerRadius: ()=>zStackCornerRadius,
167
121
  registerRose: ()=>registerRose,
168
- zChartType: ()=>zChartType,
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
- radarSpecPipeline: ()=>radarSpecPipeline,
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
- zMeasureGroup: ()=>zMeasureGroup,
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
- registerBarParallel: ()=>registerBarParallel,
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
- zAdvancedVSeed: ()=>zAdvancedVSeed,
167
+ zRoseParallelConfig: ()=>zRoseParallelConfig,
262
168
  zBarStyle: ()=>zBarStyle,
263
169
  deleteDimensionTreeByCallback: ()=>deleteDimensionTreeByCallback,
264
170
  zConfig: ()=>zConfig,
265
- zAreaPercent: ()=>zAreaPercent,
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
- lineSpecPipeline: ()=>lineSpecPipeline,
285
- zBarPercentConfig: ()=>zBarPercentConfig,
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 isTable = (vseed)=>'table' === vseed.chartType;
527
- const isPivotTable = (vseed)=>'pivotTable' === vseed.chartType;
528
- const isRadar = (vseed)=>'radar' === vseed.chartType;
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
- const { encoding, measures } = advancedVSeed;
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: getColorMeasureId(advancedVSeed)
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
  {
@@ -2628,17 +2668,6 @@
2628
2668
  const { measures, dimensions, encoding } = advancedVSeed;
2629
2669
  const config = advancedVSeed.config?.[chartType]?.xAxis;
2630
2670
  if (!result.axes) result.axes = [];
2631
- if (!config) {
2632
- result.axes = [
2633
- ...result.axes,
2634
- {
2635
- visible: true,
2636
- type: 'band',
2637
- orient: 'bottom'
2638
- }
2639
- ];
2640
- return result;
2641
- }
2642
2671
  const { visible = true, label, tick, title, grid, line, labelAutoHide, labelAutoHideGap, labelAutoLimit, labelAutoLimitLength = 80, labelAutoRotate, labelAutoRotateAngleRange } = config;
2643
2672
  const sampling = !(labelAutoHide || labelAutoRotate || labelAutoLimit);
2644
2673
  const bandAxis = {
@@ -2720,6 +2749,12 @@
2720
2749
  if (!chunk_VCYTMP4D_n(numFormat)) return formatter(value);
2721
2750
  return String(value);
2722
2751
  };
2752
+ const createLinearPercentFormat = (value, autoFormat, numFormat, formatter, percentFormatter)=>{
2753
+ if (chunk_JK3VNB42_n(autoFormat) && chunk_VCYTMP4D_n(numFormat)) return percentFormatter(value);
2754
+ if (true === autoFormat) return percentFormatter(value);
2755
+ if (!chunk_VCYTMP4D_n(numFormat)) return formatter(value);
2756
+ return String(value);
2757
+ };
2723
2758
  const yLinear = (spec, context)=>{
2724
2759
  const result = {
2725
2760
  ...spec
@@ -2729,19 +2764,11 @@
2729
2764
  const { measures, dimensions, encoding } = advancedVSeed;
2730
2765
  const config = advancedVSeed.config?.[chartType]?.yAxis;
2731
2766
  if (!result.axes) result.axes = [];
2732
- if (!config) {
2733
- result.axes = [
2734
- ...result.axes,
2735
- {
2736
- visible: true,
2737
- type: 'linear',
2738
- orient: 'left'
2739
- }
2740
- ];
2741
- return result;
2742
- }
2743
2767
  const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10, autoFormat, numFormat = {} } = config;
2744
2768
  const formatter = createNumFormatter(numFormat);
2769
+ const percentFormatter = createNumFormatter({
2770
+ type: 'percent'
2771
+ });
2745
2772
  const linearAxis = {
2746
2773
  visible,
2747
2774
  type: log ? 'log' : 'linear',
@@ -2754,7 +2781,10 @@
2754
2781
  min,
2755
2782
  label: {
2756
2783
  visible: label?.visible,
2757
- formatMethod: (value)=>createLinearFormat(value, autoFormat, numFormat, formatter),
2784
+ formatMethod: (value)=>{
2785
+ if (isBarPercent(vseed) || isColumnPercent(vseed) || isAreaPercent(vseed)) return createLinearPercentFormat(value, autoFormat, numFormat, formatter, percentFormatter);
2786
+ return createLinearFormat(value, autoFormat, numFormat, formatter);
2787
+ },
2758
2788
  style: {
2759
2789
  fill: label?.labelColor,
2760
2790
  angle: label?.labelAngle,
@@ -3018,10 +3048,10 @@
3018
3048
  };
3019
3049
  const colorPointStyleFill = (stylePipe)=>(spec, context)=>{
3020
3050
  const result = stylePipe(spec, context);
3021
- const { advancedVSeed } = context;
3051
+ const { advancedVSeed, vseed } = context;
3022
3052
  const { datasetReshapeInfo } = advancedVSeed;
3023
3053
  const { unfoldInfo } = datasetReshapeInfo[0];
3024
- if (isLinearColor(advancedVSeed)) {
3054
+ if (isLinearColor(advancedVSeed, vseed)) {
3025
3055
  if (result?.point?.style) result.point.style.fill = {
3026
3056
  field: unfoldInfo.encodingColor,
3027
3057
  scale: 'color'
@@ -3230,10 +3260,10 @@
3230
3260
  };
3231
3261
  const colorLineStyleFill = (stylePipe)=>(spec, context)=>{
3232
3262
  const result = stylePipe(spec, context);
3233
- const { advancedVSeed } = context;
3263
+ const { advancedVSeed, vseed } = context;
3234
3264
  const { datasetReshapeInfo } = advancedVSeed;
3235
3265
  const { unfoldInfo } = datasetReshapeInfo[0];
3236
- if (isLinearColor(advancedVSeed)) {
3266
+ if (isLinearColor(advancedVSeed, vseed)) {
3237
3267
  if (result?.line?.style) result.line.style.stroke = {
3238
3268
  field: unfoldInfo.encodingColor,
3239
3269
  scale: 'color'
@@ -4565,7 +4595,8 @@
4565
4595
  buildMeasures,
4566
4596
  deleteEncodingForMeasure([
4567
4597
  'tooltip',
4568
- 'label'
4598
+ 'label',
4599
+ 'color'
4569
4600
  ]),
4570
4601
  deleteTooltipAndLabelDimension
4571
4602
  ]),
@@ -4665,10 +4696,10 @@
4665
4696
  };
4666
4697
  const colorBarStyleFill = (stylePipe)=>(spec, context)=>{
4667
4698
  const result = stylePipe(spec, context);
4668
- const { advancedVSeed } = context;
4699
+ const { advancedVSeed, vseed } = context;
4669
4700
  const { datasetReshapeInfo } = advancedVSeed;
4670
4701
  const { unfoldInfo } = datasetReshapeInfo[0];
4671
- if (isLinearColor(advancedVSeed)) {
4702
+ if (isLinearColor(advancedVSeed, vseed)) {
4672
4703
  if (result?.bar?.style) result.bar.style.fill = {
4673
4704
  field: unfoldInfo.encodingColor,
4674
4705
  scale: 'color'
@@ -4949,7 +4980,8 @@
4949
4980
  buildMeasures,
4950
4981
  deleteEncodingForMeasure([
4951
4982
  'tooltip',
4952
- 'label'
4983
+ 'label',
4984
+ 'color'
4953
4985
  ]),
4954
4986
  deleteTooltipAndLabelDimension
4955
4987
  ]),
@@ -5098,7 +5130,8 @@
5098
5130
  buildMeasures,
5099
5131
  deleteEncodingForMeasure([
5100
5132
  'tooltip',
5101
- 'label'
5133
+ 'label',
5134
+ 'color'
5102
5135
  ]),
5103
5136
  deleteTooltipAndLabelDimension
5104
5137
  ]),
@@ -5276,7 +5309,8 @@
5276
5309
  buildMeasures,
5277
5310
  deleteEncodingForMeasure([
5278
5311
  'tooltip',
5279
- 'label'
5312
+ 'label',
5313
+ 'color'
5280
5314
  ]),
5281
5315
  deleteTooltipAndLabelDimension
5282
5316
  ]),
@@ -5366,19 +5400,11 @@
5366
5400
  const { chartType } = vseed;
5367
5401
  const config = advancedVSeed.config?.[chartType]?.xAxis;
5368
5402
  if (!result.axes) result.axes = [];
5369
- if (!config) {
5370
- result.axes = [
5371
- ...result.axes,
5372
- {
5373
- visible: true,
5374
- type: 'linear',
5375
- orient: 'bottom'
5376
- }
5377
- ];
5378
- return result;
5379
- }
5380
5403
  const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10, autoFormat, numFormat = {} } = config;
5381
5404
  const formatter = createNumFormatter(numFormat);
5405
+ const percentFormatter = createNumFormatter({
5406
+ type: 'percent'
5407
+ });
5382
5408
  const linearAxis = {
5383
5409
  visible,
5384
5410
  type: log ? 'log' : 'linear',
@@ -5391,7 +5417,10 @@
5391
5417
  min,
5392
5418
  label: {
5393
5419
  visible: label?.visible,
5394
- formatMethod: (value)=>createLinearFormat(value, autoFormat, numFormat, formatter),
5420
+ formatMethod: (value)=>{
5421
+ if (isBarPercent(vseed) || isColumnPercent(vseed) || isAreaPercent(vseed)) return createLinearPercentFormat(value, autoFormat, numFormat, formatter, percentFormatter);
5422
+ return createLinearFormat(value, autoFormat, numFormat, formatter);
5423
+ },
5395
5424
  style: {
5396
5425
  fill: label?.labelColor,
5397
5426
  angle: label?.labelAngle,
@@ -5449,17 +5478,6 @@
5449
5478
  const { measures, dimensions, encoding } = advancedVSeed;
5450
5479
  const config = advancedVSeed.config?.[chartType]?.yAxis;
5451
5480
  if (!result.axes) result.axes = [];
5452
- if (!config) {
5453
- result.axes = [
5454
- ...result.axes,
5455
- {
5456
- visible: true,
5457
- type: 'band',
5458
- orient: 'left'
5459
- }
5460
- ];
5461
- return result;
5462
- }
5463
5481
  const { visible = true, label, tick, title, grid, line, labelAutoHide, labelAutoHideGap, labelAutoLimit, labelAutoLimitLength = 80, labelAutoRotate, labelAutoRotateAngleRange } = config;
5464
5482
  const sampling = !(labelAutoHide || labelAutoRotate || labelAutoLimit);
5465
5483
  const bandAxis = {
@@ -5643,7 +5661,8 @@
5643
5661
  buildMeasures,
5644
5662
  deleteEncodingForMeasure([
5645
5663
  'tooltip',
5646
- 'label'
5664
+ 'label',
5665
+ 'color'
5647
5666
  ]),
5648
5667
  deleteTooltipAndLabelDimension
5649
5668
  ]),
@@ -5751,7 +5770,8 @@
5751
5770
  buildMeasures,
5752
5771
  deleteEncodingForMeasure([
5753
5772
  'tooltip',
5754
- 'label'
5773
+ 'label',
5774
+ 'color'
5755
5775
  ]),
5756
5776
  deleteTooltipAndLabelDimension
5757
5777
  ]),
@@ -5834,7 +5854,8 @@
5834
5854
  buildMeasures,
5835
5855
  deleteEncodingForMeasure([
5836
5856
  'tooltip',
5837
- 'label'
5857
+ 'label',
5858
+ 'color'
5838
5859
  ]),
5839
5860
  deleteTooltipAndLabelDimension
5840
5861
  ]),
@@ -5854,14 +5875,14 @@
5854
5875
  const result = {
5855
5876
  ...spec
5856
5877
  };
5857
- const { advancedVSeed } = context;
5878
+ const { advancedVSeed, vseed } = context;
5858
5879
  const { datasetReshapeInfo } = advancedVSeed;
5859
5880
  const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
5860
5881
  result.type = 'area';
5861
5882
  result.direction = 'vertical';
5862
5883
  result.yField = foldInfo.measureValue;
5863
5884
  result.xField = unfoldInfo.encodingX;
5864
- result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
5885
+ result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
5865
5886
  result.padding = 0;
5866
5887
  result.region = [
5867
5888
  {
@@ -5873,10 +5894,10 @@
5873
5894
  };
5874
5895
  const colorAreaStyleFill = (stylePipe)=>(spec, context)=>{
5875
5896
  const result = stylePipe(spec, context);
5876
- const { advancedVSeed } = context;
5897
+ const { advancedVSeed, vseed } = context;
5877
5898
  const { datasetReshapeInfo } = advancedVSeed;
5878
5899
  const { unfoldInfo } = datasetReshapeInfo[0];
5879
- if (isLinearColor(advancedVSeed)) {
5900
+ if (isLinearColor(advancedVSeed, vseed)) {
5880
5901
  if (result?.area?.style) result.area.style.fill = {
5881
5902
  field: unfoldInfo.encodingColor,
5882
5903
  scale: 'color'
@@ -6011,7 +6032,8 @@
6011
6032
  buildMeasures,
6012
6033
  deleteEncodingForMeasure([
6013
6034
  'tooltip',
6014
- 'label'
6035
+ 'label',
6036
+ 'color'
6015
6037
  ]),
6016
6038
  deleteTooltipAndLabelDimension
6017
6039
  ]),
@@ -6299,7 +6321,7 @@
6299
6321
  foldMeasureValue: FoldXMeasureValue,
6300
6322
  foldMeasureId: FoldXMeasureId,
6301
6323
  colorItemAsId: true,
6302
- colorMeasureId: getColorMeasureId(advancedVSeed)
6324
+ colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
6303
6325
  });
6304
6326
  datasets.push(newDataset);
6305
6327
  foldInfoList.push(foldInfo);
@@ -6310,7 +6332,7 @@
6310
6332
  foldMeasureValue: FoldYMeasureValue,
6311
6333
  foldMeasureId: FoldYMeasureId,
6312
6334
  colorItemAsId: true,
6313
- colorMeasureId: getColorMeasureId(advancedVSeed)
6335
+ colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
6314
6336
  });
6315
6337
  datasets[0] = newDataset;
6316
6338
  foldInfoList.push(foldInfo);
@@ -6364,7 +6386,7 @@
6364
6386
  const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, dimensions, xMeasures.children, encoding, {
6365
6387
  foldMeasureValue: `${FoldXMeasureValue}${index}`,
6366
6388
  colorItemAsId: true,
6367
- colorMeasureId: getColorMeasureId(advancedVSeed)
6389
+ colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
6368
6390
  });
6369
6391
  datasets.push(newDataset);
6370
6392
  foldInfoList.push(foldInfo);
@@ -6374,7 +6396,7 @@
6374
6396
  const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, dimensions, yMeasures.children, encoding, {
6375
6397
  foldMeasureValue: `${FoldYMeasureValue}${index}`,
6376
6398
  colorItemAsId: true,
6377
- colorMeasureId: getColorMeasureId(advancedVSeed)
6399
+ colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
6378
6400
  });
6379
6401
  datasets.push(newDataset);
6380
6402
  foldInfoList.push(foldInfo);
@@ -6873,7 +6895,7 @@
6873
6895
  const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(primaryMeasures.children, (item)=>item.id), encoding, {
6874
6896
  colorItemAsId: false,
6875
6897
  foldMeasureValue: FoldPrimaryMeasureValue,
6876
- colorMeasureId: getColorMeasureId(advancedVSeed)
6898
+ colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
6877
6899
  });
6878
6900
  datasets.push(newDataset);
6879
6901
  foldInfoList.push(foldInfo);
@@ -6883,7 +6905,7 @@
6883
6905
  const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(secondaryMeasures.children, (item)=>item.id), encoding, {
6884
6906
  colorItemAsId: false,
6885
6907
  foldMeasureValue: FoldSecondaryMeasureValue,
6886
- colorMeasureId: getColorMeasureId(advancedVSeed)
6908
+ colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
6887
6909
  });
6888
6910
  datasets.push(newDataset);
6889
6911
  foldInfoList.push(foldInfo);
@@ -6937,7 +6959,7 @@
6937
6959
  const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(primaryMeasures.children, (item)=>item.id), encoding, {
6938
6960
  colorItemAsId: false,
6939
6961
  foldMeasureValue: `${FoldPrimaryMeasureValue}${index}`,
6940
- colorMeasureId: getColorMeasureId(advancedVSeed)
6962
+ colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
6941
6963
  });
6942
6964
  datasets.push(newDataset);
6943
6965
  foldInfoList.push(foldInfo);
@@ -6947,7 +6969,7 @@
6947
6969
  const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(secondaryMeasures.children, (item)=>item.id), encoding, {
6948
6970
  colorItemAsId: false,
6949
6971
  foldMeasureValue: `${FoldSecondaryMeasureValue}${index}`,
6950
- colorMeasureId: getColorMeasureId(advancedVSeed)
6972
+ colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
6951
6973
  });
6952
6974
  datasets.push(newDataset);
6953
6975
  foldInfoList.push(foldInfo);
@@ -7019,7 +7041,8 @@
7019
7041
  buildMeasuresForDualAxis,
7020
7042
  deleteEncodingForMeasure([
7021
7043
  'tooltip',
7022
- 'label'
7044
+ 'label',
7045
+ 'color'
7023
7046
  ]),
7024
7047
  deleteTooltipAndLabelDimension
7025
7048
  ]),
@@ -7100,7 +7123,7 @@
7100
7123
  const result = {
7101
7124
  ...spec
7102
7125
  };
7103
- const { advancedVSeed } = context;
7126
+ const { advancedVSeed, vseed } = context;
7104
7127
  const { datasetReshapeInfo } = advancedVSeed;
7105
7128
  const { unfoldInfo, foldInfoList, id } = datasetReshapeInfo[0];
7106
7129
  result.id = `${id}-secondary-series`;
@@ -7108,7 +7131,7 @@
7108
7131
  result.direction = 'vertical';
7109
7132
  result.xField = unfoldInfo.encodingX;
7110
7133
  if (foldInfoList?.[1]) result.yField = foldInfoList[1].measureValue;
7111
- result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
7134
+ result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
7112
7135
  result.animation = true;
7113
7136
  return result;
7114
7137
  };
@@ -7418,19 +7441,6 @@
7418
7441
  ];
7419
7442
  const seriesId = alignTicksConfig ? seriesIds : seriesIds[0];
7420
7443
  if (!result.axes) result.axes = [];
7421
- if (!yAxisConfig) {
7422
- result.axes = [
7423
- ...result.axes,
7424
- {
7425
- visible: true,
7426
- id,
7427
- seriesId,
7428
- type: 'linear',
7429
- orient: 'left'
7430
- }
7431
- ];
7432
- return result;
7433
- }
7434
7444
  const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10, autoFormat, numFormat = {} } = yAxisConfig;
7435
7445
  const formatter = createNumFormatter(numFormat);
7436
7446
  const linearAxis = {
@@ -7522,20 +7532,6 @@
7522
7532
  ];
7523
7533
  const seriesId = alignTicksConfig ? seriesIds : seriesIds[1];
7524
7534
  if (!result.axes) result.axes = [];
7525
- if (!yAxisConfig) {
7526
- result.axes = [
7527
- ...result.axes,
7528
- {
7529
- visible: true,
7530
- id,
7531
- seriesId,
7532
- type: 'linear',
7533
- orient: 'right',
7534
- sync
7535
- }
7536
- ];
7537
- return result;
7538
- }
7539
7535
  const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10, numFormat = {}, autoFormat } = yAxisConfig;
7540
7536
  const formatter = createNumFormatter(numFormat);
7541
7537
  const linearAxis = {
@@ -7802,7 +7798,8 @@
7802
7798
  buildMeasures,
7803
7799
  deleteEncodingForMeasure([
7804
7800
  'tooltip',
7805
- 'label'
7801
+ 'label',
7802
+ 'color'
7806
7803
  ]),
7807
7804
  deleteTooltipAndLabelDimension
7808
7805
  ]),
@@ -7838,10 +7835,10 @@
7838
7835
  };
7839
7836
  const colorPieStyleFill = (stylePipe)=>(spec, context)=>{
7840
7837
  const result = stylePipe(spec, context);
7841
- const { advancedVSeed } = context;
7838
+ const { advancedVSeed, vseed } = context;
7842
7839
  const { datasetReshapeInfo } = advancedVSeed;
7843
7840
  const { unfoldInfo } = datasetReshapeInfo[0];
7844
- if (isLinearColor(advancedVSeed)) {
7841
+ if (isLinearColor(advancedVSeed, vseed)) {
7845
7842
  if (result?.pie?.style) result.pie.style.fill = {
7846
7843
  field: unfoldInfo.encodingColor,
7847
7844
  scale: 'color'
@@ -7955,7 +7952,8 @@
7955
7952
  buildMeasures,
7956
7953
  deleteEncodingForMeasure([
7957
7954
  'tooltip',
7958
- 'label'
7955
+ 'label',
7956
+ 'color'
7959
7957
  ]),
7960
7958
  deleteTooltipAndLabelDimension
7961
7959
  ]),
@@ -8117,7 +8115,8 @@
8117
8115
  buildMeasures,
8118
8116
  deleteEncodingForMeasure([
8119
8117
  'tooltip',
8120
- 'label'
8118
+ 'label',
8119
+ 'color'
8121
8120
  ]),
8122
8121
  deleteTooltipAndLabelDimension
8123
8122
  ]),
@@ -8155,13 +8154,10 @@
8155
8154
  result.animation = true;
8156
8155
  return result;
8157
8156
  };
8158
- const radiusAxis = (spec, context)=>{
8157
+ const radiusAxis = (spec)=>{
8159
8158
  const result = {
8160
8159
  ...spec
8161
8160
  };
8162
- const { advancedVSeed } = context;
8163
- const { dimensions, measures } = advancedVSeed;
8164
- if (!dimensions || !measures) return result;
8165
8161
  if (!result.axes) result.axes = [];
8166
8162
  result.axes.push({
8167
8163
  type: 'linear',
@@ -8174,10 +8170,10 @@
8174
8170
  };
8175
8171
  const colorRoseStyleFill = (stylePipe)=>(spec, context)=>{
8176
8172
  const result = stylePipe(spec, context);
8177
- const { advancedVSeed } = context;
8173
+ const { advancedVSeed, vseed } = context;
8178
8174
  const { datasetReshapeInfo } = advancedVSeed;
8179
8175
  const { unfoldInfo } = datasetReshapeInfo[0];
8180
- if (isLinearColor(advancedVSeed)) {
8176
+ if (isLinearColor(advancedVSeed, vseed)) {
8181
8177
  if (result?.rose?.style) result.rose.style.fill = {
8182
8178
  field: unfoldInfo.encodingColor,
8183
8179
  scale: 'color'
@@ -8270,7 +8266,8 @@
8270
8266
  buildMeasures,
8271
8267
  deleteEncodingForMeasure([
8272
8268
  'tooltip',
8273
- 'label'
8269
+ 'label',
8270
+ 'color'
8274
8271
  ]),
8275
8272
  deleteTooltipAndLabelDimension
8276
8273
  ]),
@@ -8461,7 +8458,8 @@
8461
8458
  buildMeasures,
8462
8459
  deleteEncodingForMeasure([
8463
8460
  'tooltip',
8464
- 'label'
8461
+ 'label',
8462
+ 'color'
8465
8463
  ]),
8466
8464
  deleteTooltipAndLabelDimension
8467
8465
  ]),
@@ -8480,13 +8478,13 @@
8480
8478
  const result = {
8481
8479
  ...spec
8482
8480
  };
8483
- const { advancedVSeed } = context;
8481
+ const { advancedVSeed, vseed } = context;
8484
8482
  const { datasetReshapeInfo } = advancedVSeed;
8485
8483
  const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
8486
8484
  result.type = 'radar';
8487
8485
  result.angleField = unfoldInfo.encodingAngle;
8488
8486
  result.radiusField = foldInfo.measureValue;
8489
- result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
8487
+ result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
8490
8488
  result.padding = 0;
8491
8489
  result.region = [
8492
8490
  {
@@ -8496,13 +8494,10 @@
8496
8494
  result.animation = true;
8497
8495
  return result;
8498
8496
  };
8499
- const radarAngleAxis = (spec, context)=>{
8497
+ const radarAngleAxis = (spec)=>{
8500
8498
  const result = {
8501
8499
  ...spec
8502
8500
  };
8503
- const { advancedVSeed } = context;
8504
- const { dimensions, measures } = advancedVSeed;
8505
- if (!dimensions || !measures) return result;
8506
8501
  if (!result.axes) result.axes = [];
8507
8502
  result.axes.push({
8508
8503
  orient: 'angle',
@@ -8521,13 +8516,10 @@
8521
8516
  });
8522
8517
  return result;
8523
8518
  };
8524
- const radarRadiusAxis = (spec, context)=>{
8519
+ const radarRadiusAxis = (spec)=>{
8525
8520
  const result = {
8526
8521
  ...spec
8527
8522
  };
8528
- const { advancedVSeed } = context;
8529
- const { dimensions, measures } = advancedVSeed;
8530
- if (!dimensions || !measures) return result;
8531
8523
  if (!result.axes) result.axes = [];
8532
8524
  result.axes.push({
8533
8525
  orient: 'radius',
@@ -8679,7 +8671,8 @@
8679
8671
  buildMeasures,
8680
8672
  deleteEncodingForMeasure([
8681
8673
  'tooltip',
8682
- 'label'
8674
+ 'label',
8675
+ 'color'
8683
8676
  ]),
8684
8677
  deleteTooltipAndLabelDimension
8685
8678
  ]),
@@ -8720,10 +8713,10 @@
8720
8713
  };
8721
8714
  const colorFunnelStyleFill = (stylePipe)=>(spec, context)=>{
8722
8715
  const result = stylePipe(spec, context);
8723
- const { advancedVSeed } = context;
8716
+ const { advancedVSeed, vseed } = context;
8724
8717
  const { datasetReshapeInfo } = advancedVSeed;
8725
8718
  const { unfoldInfo } = datasetReshapeInfo[0];
8726
- if (isLinearColor(advancedVSeed)) {
8719
+ if (isLinearColor(advancedVSeed, vseed)) {
8727
8720
  if (result?.funnel?.style) result.funnel.style.fill = {
8728
8721
  field: unfoldInfo.encodingColor,
8729
8722
  scale: 'color'
@@ -8903,10 +8896,10 @@
8903
8896
  ];
8904
8897
  const colorCellStyleFill = (stylePipe)=>(spec, context)=>{
8905
8898
  const result = stylePipe(spec, context);
8906
- const { advancedVSeed } = context;
8899
+ const { advancedVSeed, vseed } = context;
8907
8900
  const { datasetReshapeInfo } = advancedVSeed;
8908
8901
  const { unfoldInfo } = datasetReshapeInfo[0];
8909
- if (isLinearColor(advancedVSeed)) {
8902
+ if (isLinearColor(advancedVSeed, vseed)) {
8910
8903
  if (result?.cell?.style) result.cell.style.fill = {
8911
8904
  field: unfoldInfo.encodingColor,
8912
8905
  scale: 'color'
@@ -9299,10 +9292,7 @@
9299
9292
  ...baseConfig,
9300
9293
  xAxis: bandAxis,
9301
9294
  yAxis: {
9302
- ...linearAxis,
9303
- numFormat: {
9304
- type: 'percent'
9305
- }
9295
+ ...linearAxis
9306
9296
  },
9307
9297
  crosshairRect,
9308
9298
  stackCornerRadius: [
@@ -9339,10 +9329,7 @@
9339
9329
  barPercent: {
9340
9330
  ...baseConfig,
9341
9331
  xAxis: {
9342
- ...linearAxis,
9343
- numFormat: {
9344
- type: 'percent'
9345
- }
9332
+ ...linearAxis
9346
9333
  },
9347
9334
  yAxis: barBandAxis,
9348
9335
  crosshairRect,
@@ -9363,10 +9350,7 @@
9363
9350
  ...baseConfig,
9364
9351
  xAxis: bandAxis,
9365
9352
  yAxis: {
9366
- ...linearAxis,
9367
- numFormat: {
9368
- type: 'percent'
9369
- }
9353
+ ...linearAxis
9370
9354
  },
9371
9355
  crosshairLine
9372
9356
  },