@visactor/vseed 0.1.21 → 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/builder/builder/builder.d.ts +12 -0
- 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/pipeline/donut.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.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/spec/chart/pipes/markStyle/areaStyle.js +9 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/areaStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.d.ts +3 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.js +12 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/curve.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/curve/index.js +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/lineStyle.js +4 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/lineStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/index.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +7 -4
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.js +7 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotHideIndicatorName.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/size/scatterSize.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/size/scatterSize.js.map +1 -1
- package/dist/esm/pipeline/utils/chatType.d.ts +20 -1
- package/dist/esm/pipeline/utils/chatType.js +18 -10
- 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/dark.js +5 -1
- package/dist/esm/theme/dark.js.map +1 -1
- package/dist/esm/theme/light.js +8 -13
- package/dist/esm/theme/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +4 -0
- package/dist/esm/types/chartType/funnel/funnel.d.ts +2 -2
- package/dist/esm/types/chartType/heatmap/heatmap.d.ts +2 -2
- 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/esm/types/properties/config/color/color.d.ts +0 -8
- package/dist/esm/types/properties/config/color/color.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +4 -0
- package/dist/esm/types/properties/config/config.js +3 -1
- package/dist/esm/types/properties/config/config.js.map +1 -1
- package/dist/esm/types/properties/theme/customTheme.d.ts +4 -0
- package/dist/umd/index.js +321 -214
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
package/dist/umd/index.js
CHANGED
@@ -67,227 +67,240 @@
|
|
67
67
|
var __webpack_exports__ = {};
|
68
68
|
__webpack_require__.r(__webpack_exports__);
|
69
69
|
__webpack_require__.d(__webpack_exports__, {
|
70
|
-
zScatterConfig: ()=>zScatterConfig,
|
71
|
-
zTooltip: ()=>zTooltip,
|
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
|
-
selector: ()=>selector_selector,
|
96
81
|
zDualMeasure: ()=>zDualMeasure,
|
82
|
+
DEFAULT_PARENT_ID: ()=>DEFAULT_PARENT_ID,
|
83
|
+
isRadar: ()=>isRadar,
|
97
84
|
zSortLegend: ()=>zSortLegend,
|
98
85
|
pivotTableAdvancedPipeline: ()=>pivotTableAdvancedPipeline,
|
99
|
-
isMeasures: ()=>isMeasures,
|
100
|
-
zYBandAxis: ()=>zYBandAxis,
|
101
86
|
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
102
87
|
zYLinearAxis: ()=>zYLinearAxis,
|
103
88
|
zMarkStyle: ()=>zMarkStyle,
|
104
89
|
registerFunnel: ()=>registerFunnel,
|
105
|
-
Separator: ()=>"-",
|
106
90
|
columnAdvancedPipeline: ()=>columnAdvancedPipeline,
|
107
91
|
zLabel: ()=>zLabel,
|
108
92
|
registerColumn: ()=>registerColumn,
|
109
93
|
createFormatterByMeasure: ()=>createFormatterByMeasure,
|
110
|
-
findAllMeasures: ()=>findAllMeasures,
|
111
94
|
funnelSpecPipeline: ()=>funnelSpecPipeline,
|
112
95
|
isDimensionSelector: ()=>isDimensionSelector,
|
113
96
|
zAnalysis: ()=>zAnalysis,
|
114
|
-
zColorLegend: ()=>zColorLegend,
|
115
|
-
EncodingEnum: ()=>EncodingEnum,
|
116
|
-
preorderTraverse: ()=>preorderTraverse,
|
117
97
|
zDimensionTree: ()=>zDimensionTree,
|
118
|
-
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
119
98
|
zLineStyle: ()=>zLineStyle,
|
120
99
|
registerArea: ()=>registerArea,
|
121
|
-
zRoseParallel: ()=>zRoseParallel,
|
122
|
-
MeasureName: ()=>MeasureName,
|
123
100
|
zDataset: ()=>zDataset,
|
124
|
-
zNumFormat: ()=>zNumFormat,
|
125
101
|
DimensionEncodingEnum: ()=>DimensionEncodingEnum,
|
126
102
|
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
127
|
-
FoldYMeasureValue: ()=>FoldYMeasureValue,
|
128
|
-
zPivotTableConfig: ()=>zPivotTableConfig,
|
129
|
-
zArea: ()=>zArea,
|
130
103
|
zColumnParallel: ()=>zColumnParallel,
|
131
104
|
zDimensions: ()=>zDimensions,
|
132
105
|
zLegend: ()=>zLegend,
|
133
|
-
|
106
|
+
LINEAR_AXIS_INNER_OFFSET_TOP: ()=>7,
|
134
107
|
replaceNullToUndefined: ()=>replaceNullToUndefined,
|
135
|
-
donutSpecPipeline: ()=>donutSpecPipeline,
|
136
|
-
FoldXMeasureId: ()=>FoldXMeasureId,
|
137
|
-
registerAreaPercent: ()=>registerAreaPercent,
|
138
|
-
zBarPercent: ()=>zBarPercent,
|
139
|
-
zColumnParallelConfig: ()=>zColumnParallelConfig,
|
140
108
|
zHeatmap: ()=>zHeatmap,
|
141
|
-
|
142
|
-
|
143
|
-
zScatterMeasure: ()=>zScatterMeasure,
|
144
|
-
zTheme: ()=>zTheme,
|
145
|
-
barAdvancedPipeline: ()=>barAdvancedPipeline,
|
146
|
-
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
147
|
-
registerColumnPercent: ()=>registerColumnPercent,
|
148
|
-
registerHeatmap: ()=>registerHeatmap,
|
109
|
+
FoldXMeasureId: ()=>FoldXMeasureId,
|
110
|
+
zCrosshairLine: ()=>zCrosshairLine,
|
149
111
|
registerBarPercent: ()=>registerBarPercent,
|
150
112
|
ColorIdEncoding: ()=>ColorIdEncoding,
|
151
|
-
checkVSeed: ()=>checkVSeed,
|
152
113
|
roseSpecPipeline: ()=>roseSpecPipeline,
|
153
|
-
registerLightTheme: ()=>registerLightTheme,
|
154
114
|
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
155
115
|
zBarParallel: ()=>zBarParallel,
|
156
116
|
registerDarkTheme: ()=>registerDarkTheme,
|
157
|
-
|
158
|
-
isPartialDatumSelector: ()=>isPartialDatumSelector,
|
159
|
-
pieSpecPipeline: ()=>pieSpecPipeline,
|
160
|
-
isDimensionGroup: ()=>isDimensionGroup,
|
161
|
-
dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
|
117
|
+
zChartType: ()=>zChartType,
|
162
118
|
tableAdvancedPipeline: ()=>tableAdvancedPipeline,
|
163
|
-
|
164
|
-
|
119
|
+
zMeasureTree: ()=>zMeasureTree,
|
120
|
+
zStackCornerRadius: ()=>zStackCornerRadius,
|
165
121
|
registerRose: ()=>registerRose,
|
166
|
-
|
167
|
-
unfoldDimensions: ()=>unfoldDimensions,
|
168
|
-
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
122
|
+
zRose: ()=>zRose,
|
169
123
|
registerTable: ()=>registerTable,
|
170
124
|
isMeasureGroup: ()=>isMeasureGroup,
|
171
125
|
autoFormatter: ()=>autoFormatter,
|
172
126
|
YEncoding: ()=>YEncoding,
|
127
|
+
isColumnPercent: ()=>isColumnPercent,
|
173
128
|
registerAll: ()=>registerAll,
|
174
|
-
registerBar: ()=>registerBar,
|
175
129
|
isVChart: ()=>isVChart,
|
176
|
-
|
177
|
-
Builder: ()=>Builder,
|
178
|
-
zCrosshairLine: ()=>zCrosshairLine,
|
179
|
-
zMeasureTree: ()=>zMeasureTree,
|
180
|
-
zPieConfig: ()=>zPieConfig,
|
181
|
-
registerLine: ()=>registerLine,
|
182
|
-
registerCustomTheme: ()=>registerCustomTheme,
|
130
|
+
registerBar: ()=>registerBar,
|
183
131
|
zColor: ()=>zColor,
|
184
|
-
registerRoseParallel: ()=>registerRoseParallel,
|
185
132
|
registerDonut: ()=>registerDonut,
|
186
133
|
heatmapSpecPipeline: ()=>heatmapSpecPipeline,
|
187
134
|
heatmapAdvancedPipeline: ()=>heatmapAdvancedPipeline,
|
188
|
-
zDonutConfig: ()=>zDonutConfig,
|
189
135
|
zFunnelConfig: ()=>zFunnelConfig,
|
190
|
-
|
136
|
+
zMeasures: ()=>zMeasures,
|
191
137
|
zDualAxis: ()=>zDualAxis,
|
192
138
|
FoldMeasureName: ()=>FoldMeasureName,
|
193
139
|
zDualChartType: ()=>zDualChartType,
|
194
140
|
darkTheme: ()=>darkTheme,
|
195
|
-
createNumFormatter: ()=>createNumFormatter,
|
196
|
-
zAreaConfig: ()=>zAreaConfig,
|
197
|
-
zMeasures: ()=>zMeasures,
|
198
141
|
isVTable: ()=>isVTable,
|
199
|
-
zPieLabel: ()=>zPieLabel,
|
200
|
-
zPivotTable: ()=>zPivotTable,
|
201
|
-
zLine: ()=>zLine,
|
202
|
-
columnSpecPipeline: ()=>columnSpecPipeline,
|
203
|
-
zFoldInfo: ()=>zFoldInfo,
|
204
|
-
zDatasetReshapeInfo: ()=>zDatasetReshapeInfo,
|
205
|
-
zLinearColor: ()=>zLinearColor,
|
206
|
-
zRadar: ()=>zRadar,
|
207
|
-
zAreaStyle: ()=>zAreaStyle,
|
208
142
|
ORIGINAL_DATA: ()=>ORIGINAL_DATA,
|
209
|
-
zRadarConfig: ()=>zRadarConfig,
|
210
|
-
zAnnotationArea: ()=>zAnnotationArea,
|
211
|
-
zStackCornerRadius: ()=>zStackCornerRadius,
|
212
|
-
DetailEncoding: ()=>DetailEncoding,
|
213
|
-
zRose: ()=>zRose,
|
214
|
-
zUnfoldInfo: ()=>zUnfoldInfo,
|
215
143
|
columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
|
216
|
-
zPointStyle: ()=>zPointStyle,
|
217
144
|
zAnnotationPoint: ()=>zAnnotationPoint,
|
218
|
-
lightTheme: ()=>lightTheme,
|
219
|
-
registerColumnParallel: ()=>registerColumnParallel,
|
220
|
-
updateAdvanced: ()=>updateAdvanced,
|
221
|
-
zDimension: ()=>zDimension,
|
222
|
-
zTable: ()=>zTable,
|
223
145
|
isMeasure: ()=>isMeasure,
|
224
146
|
FoldSecondaryMeasureValue: ()=>FoldSecondaryMeasureValue,
|
225
147
|
zSort: ()=>zSort,
|
226
148
|
isPivotChart: ()=>isPivotChart,
|
227
149
|
zDualAxisConfig: ()=>zDualAxisConfig,
|
228
|
-
zColumn: ()=>zColumn,
|
229
|
-
zCustomTheme: ()=>zCustomTheme,
|
230
150
|
zLineConfig: ()=>zLineConfig,
|
231
151
|
FoldPrimaryMeasureValue: ()=>FoldPrimaryMeasureValue,
|
232
|
-
zTableConfig: ()=>zTableConfig,
|
233
152
|
zXBandAxis: ()=>zXBandAxis,
|
234
|
-
zColumnPercentConfig: ()=>zColumnPercentConfig,
|
235
153
|
FoldYMeasureId: ()=>FoldYMeasureId,
|
236
154
|
findMeasureById: ()=>findMeasureById,
|
237
|
-
zVSeed: ()=>zVSeed,
|
238
155
|
AngleEncoding: ()=>AngleEncoding,
|
239
156
|
areaPercentAdvancedPipeline: ()=>areaPercentAdvancedPipeline,
|
240
|
-
radarAdvancedPipeline: ()=>radarAdvancedPipeline,
|
241
|
-
zAreaPercentConfig: ()=>zAreaPercentConfig,
|
242
157
|
zBackgroundColor: ()=>zBackgroundColor,
|
243
|
-
|
158
|
+
zAreaPercentConfig: ()=>zAreaPercentConfig,
|
244
159
|
registerRadar: ()=>registerRadar,
|
160
|
+
zMeasure: ()=>zMeasure,
|
245
161
|
zLocale: ()=>zLocale,
|
246
162
|
isDimension: ()=>isDimension,
|
247
|
-
MeasureEncodingEnum: ()=>MeasureEncodingEnum,
|
248
|
-
pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
|
249
|
-
FoldXMeasureValue: ()=>FoldXMeasureValue,
|
250
|
-
dualAxisAdvancedPipeline: ()=>dualAxisAdvancedPipeline,
|
251
163
|
registerScatter: ()=>registerScatter,
|
252
|
-
zEncoding: ()=>zEncoding,
|
253
|
-
ColorEncoding: ()=>ColorEncoding,
|
254
164
|
autoNumFormatter: ()=>autoNumFormatter,
|
255
|
-
measureDepth: ()=>measureDepth,
|
256
165
|
tableSpecPipeline: ()=>tableSpecPipeline,
|
257
|
-
|
258
|
-
|
166
|
+
isCombination: ()=>isCombination,
|
167
|
+
zRoseParallelConfig: ()=>zRoseParallelConfig,
|
259
168
|
zBarStyle: ()=>zBarStyle,
|
260
169
|
deleteDimensionTreeByCallback: ()=>deleteDimensionTreeByCallback,
|
261
|
-
|
262
|
-
|
263
|
-
zRoseParallelConfig: ()=>zRoseParallelConfig,
|
170
|
+
zConfig: ()=>zConfig,
|
171
|
+
zXLinearAxis: ()=>zXLinearAxis,
|
264
172
|
columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
|
265
|
-
isValueSelector: ()=>isValueSelector,
|
266
|
-
donutAdvancedPipeline: ()=>donutAdvancedPipeline,
|
267
173
|
zColumnPercent: ()=>zColumnPercent,
|
268
|
-
registerPie: ()=>registerPie,
|
269
174
|
foldMeasures: ()=>foldMeasures,
|
270
175
|
isPivotTable: ()=>isPivotTable,
|
176
|
+
registerPie: ()=>registerPie,
|
271
177
|
zDimensionEncoding: ()=>zDimensionEncoding,
|
272
178
|
zFunnel: ()=>zFunnel,
|
273
|
-
zScatter: ()=>zScatter,
|
274
179
|
zBarParallelConfig: ()=>zBarParallelConfig,
|
275
|
-
barParallelAdvancedPipeline: ()=>barParallelAdvancedPipeline,
|
276
|
-
FoldMeasureValue: ()=>FoldMeasureValue,
|
277
|
-
barPercentSpecPipeline: ()=>barPercentSpecPipeline,
|
278
|
-
deleteMeasureTreeByCallback: ()=>deleteMeasureTreeByCallback,
|
279
|
-
dataReshapeByEncoding: ()=>dataReshapeByEncoding,
|
280
180
|
lineAdvancedPipeline: ()=>lineAdvancedPipeline,
|
281
|
-
|
282
|
-
|
181
|
+
FoldMeasureValue: ()=>FoldMeasureValue,
|
182
|
+
ANNOTATION_Z_INDEX: ()=>1000,
|
283
183
|
createFormatter: ()=>createFormatter,
|
284
|
-
zDimensionGroup: ()=>zDimensionGroup,
|
285
184
|
isMeasureSelector: ()=>isMeasureSelector,
|
286
185
|
columnPercentSpecPipeline: ()=>columnPercentSpecPipeline,
|
287
186
|
areaAdvancedPipeline: ()=>areaAdvancedPipeline,
|
288
187
|
areaPercentSpecPipeline: ()=>areaPercentSpecPipeline,
|
289
188
|
barParallelSpecPipeline: ()=>barParallelSpecPipeline,
|
290
|
-
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
|
291
304
|
});
|
292
305
|
const execPipeline = (pipeline, context, initialValue = {})=>{
|
293
306
|
const result = pipeline.reduce((prev, cur)=>cur(prev, context), initialValue);
|
@@ -520,8 +533,34 @@
|
|
520
533
|
return measureGroups;
|
521
534
|
};
|
522
535
|
const DEFAULT_PARENT_ID = '__DefaultParentId__';
|
523
|
-
const
|
524
|
-
|
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;
|
525
564
|
const isVTable = (vseed)=>[
|
526
565
|
'table',
|
527
566
|
'pivotTable'
|
@@ -529,14 +568,19 @@
|
|
529
568
|
const isVChart = (vseed)=>!isVTable(vseed);
|
530
569
|
const isPivotChart = (vseed)=>{
|
531
570
|
if (isVTable(vseed)) return false;
|
571
|
+
if (isPivot(vseed)) return true;
|
572
|
+
return isCombination(vseed);
|
573
|
+
};
|
574
|
+
const isPivot = (vseed)=>{
|
575
|
+
const { dimensions = [] } = vseed;
|
576
|
+
return dimensions && dimensions.some((dimension)=>'row' === dimension.encoding || 'column' === dimension.encoding);
|
577
|
+
};
|
578
|
+
const isCombination = (vseed)=>{
|
532
579
|
if (isMeasureTreeWithParentId(vseed.measures)) {
|
533
580
|
const parentIds = vseed.measures?.map((measure)=>measure.parentId || DEFAULT_PARENT_ID);
|
534
581
|
return parentIds && chunk_QJLMYOTX_i(parentIds).length > 1;
|
535
582
|
}
|
536
583
|
if ('dualAxis' === vseed.chartType || 'scatter' === vseed.chartType) {
|
537
|
-
const { dimensions = [] } = vseed;
|
538
|
-
const hasRowOrColumnDimension = dimensions && dimensions.some((dimension)=>'row' === dimension.encoding || 'column' === dimension.encoding);
|
539
|
-
if (hasRowOrColumnDimension) return true;
|
540
584
|
if ('scatter' === vseed.chartType) {
|
541
585
|
if (isMeasureTreeWithChildren(vseed.measures)) {
|
542
586
|
const depth = measureDepth(vseed.measures);
|
@@ -554,10 +598,9 @@
|
|
554
598
|
}
|
555
599
|
return false;
|
556
600
|
}
|
557
|
-
const { measures = []
|
558
|
-
const hasRowOrColumnDimension = dimensions && dimensions.some((dimension)=>'row' === dimension.encoding || 'column' === dimension.encoding);
|
601
|
+
const { measures = [] } = vseed;
|
559
602
|
const hasMeasureGroup = measures && measures.some((measure)=>measure && measure.children);
|
560
|
-
return
|
603
|
+
return hasMeasureGroup;
|
561
604
|
};
|
562
605
|
const getColorItems = (builder)=>{
|
563
606
|
const advancedVSeed = builder.advancedVSeed;
|
@@ -1054,7 +1097,8 @@
|
|
1054
1097
|
if (Number.isNaN(num)) return String(value);
|
1055
1098
|
const numFormatterOptions = {
|
1056
1099
|
style: 'decimal',
|
1057
|
-
notation: 'compact'
|
1100
|
+
notation: 'compact',
|
1101
|
+
useGrouping: true
|
1058
1102
|
};
|
1059
1103
|
numFormatterOptions.minimumFractionDigits = 0;
|
1060
1104
|
numFormatterOptions.maximumFractionDigits = 2;
|
@@ -2109,18 +2153,20 @@
|
|
2109
2153
|
};
|
2110
2154
|
};
|
2111
2155
|
const colorAdapter = (ordinalPipe, linearPipe)=>(spec, context)=>{
|
2112
|
-
const { advancedVSeed } = context;
|
2113
|
-
if (isLinearColor(advancedVSeed)) return linearPipe(spec, context);
|
2156
|
+
const { advancedVSeed, vseed } = context;
|
2157
|
+
if (isLinearColor(advancedVSeed, vseed)) return linearPipe(spec, context);
|
2114
2158
|
return ordinalPipe(spec, context);
|
2115
2159
|
};
|
2116
|
-
const isLinearColor = (advancedVSeed)=>{
|
2117
|
-
|
2160
|
+
const isLinearColor = (advancedVSeed, vseed)=>{
|
2161
|
+
console.log(vseed);
|
2162
|
+
const { encoding } = advancedVSeed;
|
2163
|
+
const measures = vseed.measures || advancedVSeed.measures;
|
2118
2164
|
const measureIdList = findAllMeasures(measures).map((measure)=>measure.id);
|
2119
2165
|
const { color } = encoding;
|
2120
2166
|
return color?.length === 1 && measureIdList.includes(color[0]);
|
2121
2167
|
};
|
2122
|
-
const getColorMeasureId = (advancedVSeed)=>{
|
2123
|
-
if (isLinearColor(advancedVSeed)) {
|
2168
|
+
const getColorMeasureId = (advancedVSeed, vseed)=>{
|
2169
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
2124
2170
|
const { encoding } = advancedVSeed;
|
2125
2171
|
const { color } = encoding;
|
2126
2172
|
return color?.[0];
|
@@ -2133,9 +2179,10 @@
|
|
2133
2179
|
const { vseed } = context;
|
2134
2180
|
const { dataset, chartType } = vseed;
|
2135
2181
|
const { dimensions = [], measures = [], encoding } = advancedVSeed;
|
2182
|
+
const colorMeasureId = getColorMeasureId(advancedVSeed, vseed);
|
2136
2183
|
const { dataset: newDatasets, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(findAllMeasures(measures), (item)=>item.id), encoding, {
|
2137
2184
|
colorItemAsId: false,
|
2138
|
-
colorMeasureId
|
2185
|
+
colorMeasureId
|
2139
2186
|
});
|
2140
2187
|
return {
|
2141
2188
|
...result,
|
@@ -2172,7 +2219,7 @@
|
|
2172
2219
|
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(measures, (item)=>item.id), encoding, {
|
2173
2220
|
colorItemAsId: false,
|
2174
2221
|
foldMeasureValue: `${FoldMeasureValue}${groupId}`,
|
2175
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
2222
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
2176
2223
|
});
|
2177
2224
|
const reshapeInfo = {
|
2178
2225
|
id: groupId,
|
@@ -2417,7 +2464,8 @@
|
|
2417
2464
|
buildMeasures,
|
2418
2465
|
deleteEncodingForMeasure([
|
2419
2466
|
'tooltip',
|
2420
|
-
'label'
|
2467
|
+
'label',
|
2468
|
+
'color'
|
2421
2469
|
]),
|
2422
2470
|
deleteTooltipAndLabelDimension
|
2423
2471
|
]),
|
@@ -2437,14 +2485,14 @@
|
|
2437
2485
|
const result = {
|
2438
2486
|
...spec
|
2439
2487
|
};
|
2440
|
-
const { advancedVSeed } = context;
|
2488
|
+
const { advancedVSeed, vseed } = context;
|
2441
2489
|
const { datasetReshapeInfo } = advancedVSeed;
|
2442
2490
|
const { foldInfo, unfoldInfo } = datasetReshapeInfo[0];
|
2443
2491
|
result.type = 'line';
|
2444
2492
|
result.direction = 'vertical';
|
2445
2493
|
result.xField = unfoldInfo.encodingX;
|
2446
2494
|
result.yField = foldInfo.measureValue;
|
2447
|
-
result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
2495
|
+
result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
2448
2496
|
result.padding = 0;
|
2449
2497
|
result.region = [
|
2450
2498
|
{
|
@@ -2734,6 +2782,9 @@
|
|
2734
2782
|
}
|
2735
2783
|
const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10, autoFormat, numFormat = {} } = config;
|
2736
2784
|
const formatter = createNumFormatter(numFormat);
|
2785
|
+
const percentFormatter = createNumFormatter({
|
2786
|
+
type: 'percent'
|
2787
|
+
});
|
2737
2788
|
const linearAxis = {
|
2738
2789
|
visible,
|
2739
2790
|
type: log ? 'log' : 'linear',
|
@@ -2746,7 +2797,10 @@
|
|
2746
2797
|
min,
|
2747
2798
|
label: {
|
2748
2799
|
visible: label?.visible,
|
2749
|
-
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
|
+
},
|
2750
2804
|
style: {
|
2751
2805
|
fill: label?.labelColor,
|
2752
2806
|
angle: label?.labelAngle,
|
@@ -3010,10 +3064,10 @@
|
|
3010
3064
|
};
|
3011
3065
|
const colorPointStyleFill = (stylePipe)=>(spec, context)=>{
|
3012
3066
|
const result = stylePipe(spec, context);
|
3013
|
-
const { advancedVSeed } = context;
|
3067
|
+
const { advancedVSeed, vseed } = context;
|
3014
3068
|
const { datasetReshapeInfo } = advancedVSeed;
|
3015
3069
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
3016
|
-
if (isLinearColor(advancedVSeed)) {
|
3070
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
3017
3071
|
if (result?.point?.style) result.point.style.fill = {
|
3018
3072
|
field: unfoldInfo.encodingColor,
|
3019
3073
|
scale: 'color'
|
@@ -3222,10 +3276,10 @@
|
|
3222
3276
|
};
|
3223
3277
|
const colorLineStyleFill = (stylePipe)=>(spec, context)=>{
|
3224
3278
|
const result = stylePipe(spec, context);
|
3225
|
-
const { advancedVSeed } = context;
|
3279
|
+
const { advancedVSeed, vseed } = context;
|
3226
3280
|
const { datasetReshapeInfo } = advancedVSeed;
|
3227
3281
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
3228
|
-
if (isLinearColor(advancedVSeed)) {
|
3282
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
3229
3283
|
if (result?.line?.style) result.line.style.stroke = {
|
3230
3284
|
field: unfoldInfo.encodingColor,
|
3231
3285
|
scale: 'color'
|
@@ -3249,6 +3303,14 @@
|
|
3249
3303
|
}
|
3250
3304
|
return Object.setPrototypeOf(r, Object.prototype), r;
|
3251
3305
|
};
|
3306
|
+
const getCurveType = (vseed, lineSmooth = false)=>{
|
3307
|
+
if (!lineSmooth) return 'linear';
|
3308
|
+
return isRadar(vseed) ? 'catmullRomClosed' : 'monotone';
|
3309
|
+
};
|
3310
|
+
const getCurveTension = (vseed, lineSmooth = false)=>{
|
3311
|
+
if (!lineSmooth) return 0;
|
3312
|
+
return isRadar(vseed) ? 0.4 : 0;
|
3313
|
+
};
|
3252
3314
|
const lineStyle_lineStyle = (spec, context)=>{
|
3253
3315
|
const { advancedVSeed } = context;
|
3254
3316
|
const { markStyle, datasetReshapeInfo, dataset } = advancedVSeed;
|
@@ -3280,7 +3342,8 @@
|
|
3280
3342
|
0,
|
3281
3343
|
0
|
3282
3344
|
];
|
3283
|
-
const curveType = lineSmooth
|
3345
|
+
const curveType = getCurveType(context.vseed, lineSmooth);
|
3346
|
+
const curveTension = getCurveTension(context.vseed, lineSmooth);
|
3284
3347
|
return {
|
3285
3348
|
...result,
|
3286
3349
|
[`custom${index + 1}`]: {
|
@@ -3293,6 +3356,7 @@
|
|
3293
3356
|
style: {
|
3294
3357
|
visible: lineVisible,
|
3295
3358
|
curveType: curveType,
|
3359
|
+
curveTension: curveTension,
|
3296
3360
|
strokeOpacity: lineColorOpacity,
|
3297
3361
|
stroke: lineColor,
|
3298
3362
|
lineWidth: lineWidth,
|
@@ -3931,7 +3995,9 @@
|
|
3931
3995
|
}
|
3932
3996
|
};
|
3933
3997
|
};
|
3934
|
-
const pivotGridStyle = (spec)=>{
|
3998
|
+
const pivotGridStyle = (spec, context)=>{
|
3999
|
+
const { vseed } = context;
|
4000
|
+
const onlyCombination = !isPivot(vseed) && isCombination(vseed);
|
3935
4001
|
const result = {
|
3936
4002
|
...spec
|
3937
4003
|
};
|
@@ -3940,8 +4006,8 @@
|
|
3940
4006
|
const bodyFontColor = '#141414';
|
3941
4007
|
const headerFontColor = '#21252c';
|
3942
4008
|
const headerBackgroundColor = 'rgba(0,0,0,0)';
|
3943
|
-
const hoverHeaderBackgroundColor = '#D9DDE4';
|
3944
|
-
const hoverHeaderInlineBackgroundColor = '#D9DDE455';
|
4009
|
+
const hoverHeaderBackgroundColor = onlyCombination ? transparent : '#D9DDE4';
|
4010
|
+
const hoverHeaderInlineBackgroundColor = onlyCombination ? transparent : '#D9DDE455';
|
3945
4011
|
return {
|
3946
4012
|
...result,
|
3947
4013
|
theme: {
|
@@ -3952,7 +4018,7 @@
|
|
3952
4018
|
borderLineWidth: [
|
3953
4019
|
1,
|
3954
4020
|
1,
|
3955
|
-
|
4021
|
+
1,
|
3956
4022
|
1
|
3957
4023
|
],
|
3958
4024
|
bgColor: transparent,
|
@@ -4545,7 +4611,8 @@
|
|
4545
4611
|
buildMeasures,
|
4546
4612
|
deleteEncodingForMeasure([
|
4547
4613
|
'tooltip',
|
4548
|
-
'label'
|
4614
|
+
'label',
|
4615
|
+
'color'
|
4549
4616
|
]),
|
4550
4617
|
deleteTooltipAndLabelDimension
|
4551
4618
|
]),
|
@@ -4645,10 +4712,10 @@
|
|
4645
4712
|
};
|
4646
4713
|
const colorBarStyleFill = (stylePipe)=>(spec, context)=>{
|
4647
4714
|
const result = stylePipe(spec, context);
|
4648
|
-
const { advancedVSeed } = context;
|
4715
|
+
const { advancedVSeed, vseed } = context;
|
4649
4716
|
const { datasetReshapeInfo } = advancedVSeed;
|
4650
4717
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
4651
|
-
if (isLinearColor(advancedVSeed)) {
|
4718
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
4652
4719
|
if (result?.bar?.style) result.bar.style.fill = {
|
4653
4720
|
field: unfoldInfo.encodingColor,
|
4654
4721
|
scale: 'color'
|
@@ -4929,7 +4996,8 @@
|
|
4929
4996
|
buildMeasures,
|
4930
4997
|
deleteEncodingForMeasure([
|
4931
4998
|
'tooltip',
|
4932
|
-
'label'
|
4999
|
+
'label',
|
5000
|
+
'color'
|
4933
5001
|
]),
|
4934
5002
|
deleteTooltipAndLabelDimension
|
4935
5003
|
]),
|
@@ -5078,7 +5146,8 @@
|
|
5078
5146
|
buildMeasures,
|
5079
5147
|
deleteEncodingForMeasure([
|
5080
5148
|
'tooltip',
|
5081
|
-
'label'
|
5149
|
+
'label',
|
5150
|
+
'color'
|
5082
5151
|
]),
|
5083
5152
|
deleteTooltipAndLabelDimension
|
5084
5153
|
]),
|
@@ -5256,7 +5325,8 @@
|
|
5256
5325
|
buildMeasures,
|
5257
5326
|
deleteEncodingForMeasure([
|
5258
5327
|
'tooltip',
|
5259
|
-
'label'
|
5328
|
+
'label',
|
5329
|
+
'color'
|
5260
5330
|
]),
|
5261
5331
|
deleteTooltipAndLabelDimension
|
5262
5332
|
]),
|
@@ -5359,6 +5429,9 @@
|
|
5359
5429
|
}
|
5360
5430
|
const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10, autoFormat, numFormat = {} } = config;
|
5361
5431
|
const formatter = createNumFormatter(numFormat);
|
5432
|
+
const percentFormatter = createNumFormatter({
|
5433
|
+
type: 'percent'
|
5434
|
+
});
|
5362
5435
|
const linearAxis = {
|
5363
5436
|
visible,
|
5364
5437
|
type: log ? 'log' : 'linear',
|
@@ -5371,7 +5444,10 @@
|
|
5371
5444
|
min,
|
5372
5445
|
label: {
|
5373
5446
|
visible: label?.visible,
|
5374
|
-
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
|
+
},
|
5375
5451
|
style: {
|
5376
5452
|
fill: label?.labelColor,
|
5377
5453
|
angle: label?.labelAngle,
|
@@ -5623,7 +5699,8 @@
|
|
5623
5699
|
buildMeasures,
|
5624
5700
|
deleteEncodingForMeasure([
|
5625
5701
|
'tooltip',
|
5626
|
-
'label'
|
5702
|
+
'label',
|
5703
|
+
'color'
|
5627
5704
|
]),
|
5628
5705
|
deleteTooltipAndLabelDimension
|
5629
5706
|
]),
|
@@ -5731,7 +5808,8 @@
|
|
5731
5808
|
buildMeasures,
|
5732
5809
|
deleteEncodingForMeasure([
|
5733
5810
|
'tooltip',
|
5734
|
-
'label'
|
5811
|
+
'label',
|
5812
|
+
'color'
|
5735
5813
|
]),
|
5736
5814
|
deleteTooltipAndLabelDimension
|
5737
5815
|
]),
|
@@ -5814,7 +5892,8 @@
|
|
5814
5892
|
buildMeasures,
|
5815
5893
|
deleteEncodingForMeasure([
|
5816
5894
|
'tooltip',
|
5817
|
-
'label'
|
5895
|
+
'label',
|
5896
|
+
'color'
|
5818
5897
|
]),
|
5819
5898
|
deleteTooltipAndLabelDimension
|
5820
5899
|
]),
|
@@ -5834,14 +5913,14 @@
|
|
5834
5913
|
const result = {
|
5835
5914
|
...spec
|
5836
5915
|
};
|
5837
|
-
const { advancedVSeed } = context;
|
5916
|
+
const { advancedVSeed, vseed } = context;
|
5838
5917
|
const { datasetReshapeInfo } = advancedVSeed;
|
5839
5918
|
const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
|
5840
5919
|
result.type = 'area';
|
5841
5920
|
result.direction = 'vertical';
|
5842
5921
|
result.yField = foldInfo.measureValue;
|
5843
5922
|
result.xField = unfoldInfo.encodingX;
|
5844
|
-
result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
5923
|
+
result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
5845
5924
|
result.padding = 0;
|
5846
5925
|
result.region = [
|
5847
5926
|
{
|
@@ -5853,10 +5932,10 @@
|
|
5853
5932
|
};
|
5854
5933
|
const colorAreaStyleFill = (stylePipe)=>(spec, context)=>{
|
5855
5934
|
const result = stylePipe(spec, context);
|
5856
|
-
const { advancedVSeed } = context;
|
5935
|
+
const { advancedVSeed, vseed } = context;
|
5857
5936
|
const { datasetReshapeInfo } = advancedVSeed;
|
5858
5937
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
5859
|
-
if (isLinearColor(advancedVSeed)) {
|
5938
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
5860
5939
|
if (result?.area?.style) result.area.style.fill = {
|
5861
5940
|
field: unfoldInfo.encodingColor,
|
5862
5941
|
scale: 'color'
|
@@ -5867,7 +5946,7 @@
|
|
5867
5946
|
const areaStyle_areaStyle = (spec, context)=>{
|
5868
5947
|
const { advancedVSeed } = context;
|
5869
5948
|
const { markStyle, datasetReshapeInfo, dataset } = advancedVSeed;
|
5870
|
-
const { areaStyle } = markStyle;
|
5949
|
+
const { areaStyle, lineStyle } = markStyle;
|
5871
5950
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
5872
5951
|
const result = {
|
5873
5952
|
...spec,
|
@@ -5880,10 +5959,15 @@
|
|
5880
5959
|
const areaStyles = Array.isArray(areaStyle) ? areaStyle : [
|
5881
5960
|
areaStyle
|
5882
5961
|
];
|
5962
|
+
const lineStyles = Array.isArray(lineStyle) ? lineStyle : [
|
5963
|
+
lineStyle
|
5964
|
+
];
|
5883
5965
|
const group = unfoldInfo.encodingColorId;
|
5884
5966
|
const areaGroups = chunk_HVPVHFDT_i(dataset, (d)=>d[group ?? '']);
|
5885
5967
|
const customMap = areaStyles.reduce((result, style, index)=>{
|
5886
5968
|
const { areaColor, areaColorOpacity, areaVisible = true } = style;
|
5969
|
+
const curveType = getCurveType(context.vseed, lineStyles[index]?.lineSmooth);
|
5970
|
+
const curveTension = getCurveTension(context.vseed, lineStyles[index]?.lineSmooth);
|
5887
5971
|
return {
|
5888
5972
|
...result,
|
5889
5973
|
[`custom${index + 1}`]: {
|
@@ -5894,6 +5978,8 @@
|
|
5894
5978
|
return false;
|
5895
5979
|
},
|
5896
5980
|
style: {
|
5981
|
+
curveType,
|
5982
|
+
curveTension,
|
5897
5983
|
visible: areaVisible,
|
5898
5984
|
fill: areaColor,
|
5899
5985
|
fillOpacity: areaColorOpacity
|
@@ -5984,7 +6070,8 @@
|
|
5984
6070
|
buildMeasures,
|
5985
6071
|
deleteEncodingForMeasure([
|
5986
6072
|
'tooltip',
|
5987
|
-
'label'
|
6073
|
+
'label',
|
6074
|
+
'color'
|
5988
6075
|
]),
|
5989
6076
|
deleteTooltipAndLabelDimension
|
5990
6077
|
]),
|
@@ -6272,7 +6359,7 @@
|
|
6272
6359
|
foldMeasureValue: FoldXMeasureValue,
|
6273
6360
|
foldMeasureId: FoldXMeasureId,
|
6274
6361
|
colorItemAsId: true,
|
6275
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6362
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6276
6363
|
});
|
6277
6364
|
datasets.push(newDataset);
|
6278
6365
|
foldInfoList.push(foldInfo);
|
@@ -6283,7 +6370,7 @@
|
|
6283
6370
|
foldMeasureValue: FoldYMeasureValue,
|
6284
6371
|
foldMeasureId: FoldYMeasureId,
|
6285
6372
|
colorItemAsId: true,
|
6286
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6373
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6287
6374
|
});
|
6288
6375
|
datasets[0] = newDataset;
|
6289
6376
|
foldInfoList.push(foldInfo);
|
@@ -6337,7 +6424,7 @@
|
|
6337
6424
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, dimensions, xMeasures.children, encoding, {
|
6338
6425
|
foldMeasureValue: `${FoldXMeasureValue}${index}`,
|
6339
6426
|
colorItemAsId: true,
|
6340
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6427
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6341
6428
|
});
|
6342
6429
|
datasets.push(newDataset);
|
6343
6430
|
foldInfoList.push(foldInfo);
|
@@ -6347,7 +6434,7 @@
|
|
6347
6434
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, dimensions, yMeasures.children, encoding, {
|
6348
6435
|
foldMeasureValue: `${FoldYMeasureValue}${index}`,
|
6349
6436
|
colorItemAsId: true,
|
6350
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6437
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6351
6438
|
});
|
6352
6439
|
datasets.push(newDataset);
|
6353
6440
|
foldInfoList.push(foldInfo);
|
@@ -6450,7 +6537,8 @@
|
|
6450
6537
|
const { advancedVSeed } = context;
|
6451
6538
|
const { chartType, encoding } = advancedVSeed;
|
6452
6539
|
const baseConfig = advancedVSeed.config[chartType];
|
6453
|
-
|
6540
|
+
const hasSizeEncoding = encoding?.size?.[0];
|
6541
|
+
if (!hasSizeEncoding) return result;
|
6454
6542
|
const size = baseConfig.size ?? baseConfig.sizeRange;
|
6455
6543
|
result.size = {
|
6456
6544
|
type: 'linear',
|
@@ -6845,7 +6933,7 @@
|
|
6845
6933
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(primaryMeasures.children, (item)=>item.id), encoding, {
|
6846
6934
|
colorItemAsId: false,
|
6847
6935
|
foldMeasureValue: FoldPrimaryMeasureValue,
|
6848
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6936
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6849
6937
|
});
|
6850
6938
|
datasets.push(newDataset);
|
6851
6939
|
foldInfoList.push(foldInfo);
|
@@ -6855,7 +6943,7 @@
|
|
6855
6943
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(secondaryMeasures.children, (item)=>item.id), encoding, {
|
6856
6944
|
colorItemAsId: false,
|
6857
6945
|
foldMeasureValue: FoldSecondaryMeasureValue,
|
6858
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
6946
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6859
6947
|
});
|
6860
6948
|
datasets.push(newDataset);
|
6861
6949
|
foldInfoList.push(foldInfo);
|
@@ -6909,7 +6997,7 @@
|
|
6909
6997
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(primaryMeasures.children, (item)=>item.id), encoding, {
|
6910
6998
|
colorItemAsId: false,
|
6911
6999
|
foldMeasureValue: `${FoldPrimaryMeasureValue}${index}`,
|
6912
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
7000
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6913
7001
|
});
|
6914
7002
|
datasets.push(newDataset);
|
6915
7003
|
foldInfoList.push(foldInfo);
|
@@ -6919,7 +7007,7 @@
|
|
6919
7007
|
const { dataset: newDataset, foldInfo, unfoldInfo } = dataReshapeByEncoding(dataset, T(dimensions, (item)=>item.id), T(secondaryMeasures.children, (item)=>item.id), encoding, {
|
6920
7008
|
colorItemAsId: false,
|
6921
7009
|
foldMeasureValue: `${FoldSecondaryMeasureValue}${index}`,
|
6922
|
-
colorMeasureId: getColorMeasureId(advancedVSeed)
|
7010
|
+
colorMeasureId: getColorMeasureId(advancedVSeed, vseed)
|
6923
7011
|
});
|
6924
7012
|
datasets.push(newDataset);
|
6925
7013
|
foldInfoList.push(foldInfo);
|
@@ -6991,7 +7079,8 @@
|
|
6991
7079
|
buildMeasuresForDualAxis,
|
6992
7080
|
deleteEncodingForMeasure([
|
6993
7081
|
'tooltip',
|
6994
|
-
'label'
|
7082
|
+
'label',
|
7083
|
+
'color'
|
6995
7084
|
]),
|
6996
7085
|
deleteTooltipAndLabelDimension
|
6997
7086
|
]),
|
@@ -7072,7 +7161,7 @@
|
|
7072
7161
|
const result = {
|
7073
7162
|
...spec
|
7074
7163
|
};
|
7075
|
-
const { advancedVSeed } = context;
|
7164
|
+
const { advancedVSeed, vseed } = context;
|
7076
7165
|
const { datasetReshapeInfo } = advancedVSeed;
|
7077
7166
|
const { unfoldInfo, foldInfoList, id } = datasetReshapeInfo[0];
|
7078
7167
|
result.id = `${id}-secondary-series`;
|
@@ -7080,7 +7169,7 @@
|
|
7080
7169
|
result.direction = 'vertical';
|
7081
7170
|
result.xField = unfoldInfo.encodingX;
|
7082
7171
|
if (foldInfoList?.[1]) result.yField = foldInfoList[1].measureValue;
|
7083
|
-
result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
7172
|
+
result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
7084
7173
|
result.animation = true;
|
7085
7174
|
return result;
|
7086
7175
|
};
|
@@ -7774,7 +7863,8 @@
|
|
7774
7863
|
buildMeasures,
|
7775
7864
|
deleteEncodingForMeasure([
|
7776
7865
|
'tooltip',
|
7777
|
-
'label'
|
7866
|
+
'label',
|
7867
|
+
'color'
|
7778
7868
|
]),
|
7779
7869
|
deleteTooltipAndLabelDimension
|
7780
7870
|
]),
|
@@ -7810,10 +7900,10 @@
|
|
7810
7900
|
};
|
7811
7901
|
const colorPieStyleFill = (stylePipe)=>(spec, context)=>{
|
7812
7902
|
const result = stylePipe(spec, context);
|
7813
|
-
const { advancedVSeed } = context;
|
7903
|
+
const { advancedVSeed, vseed } = context;
|
7814
7904
|
const { datasetReshapeInfo } = advancedVSeed;
|
7815
7905
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
7816
|
-
if (isLinearColor(advancedVSeed)) {
|
7906
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
7817
7907
|
if (result?.pie?.style) result.pie.style.fill = {
|
7818
7908
|
field: unfoldInfo.encodingColor,
|
7819
7909
|
scale: 'color'
|
@@ -7864,6 +7954,10 @@
|
|
7864
7954
|
};
|
7865
7955
|
return result;
|
7866
7956
|
};
|
7957
|
+
const pivotHideIndicatorName = (spec)=>({
|
7958
|
+
...spec,
|
7959
|
+
hideIndicatorName: true
|
7960
|
+
});
|
7867
7961
|
const pie = [
|
7868
7962
|
initPie,
|
7869
7963
|
colorAdapter(color_color, linearColor),
|
@@ -7883,6 +7977,7 @@
|
|
7883
7977
|
initPivot,
|
7884
7978
|
pivotGridStyle,
|
7885
7979
|
pivotIndicators_pivotIndicatorsAsRow,
|
7980
|
+
pivotHideIndicatorName,
|
7886
7981
|
datasetPivot,
|
7887
7982
|
pivotIndicators_pivotIndicators([
|
7888
7983
|
initPie,
|
@@ -7922,7 +8017,8 @@
|
|
7922
8017
|
buildMeasures,
|
7923
8018
|
deleteEncodingForMeasure([
|
7924
8019
|
'tooltip',
|
7925
|
-
'label'
|
8020
|
+
'label',
|
8021
|
+
'color'
|
7926
8022
|
]),
|
7927
8023
|
deleteTooltipAndLabelDimension
|
7928
8024
|
]),
|
@@ -7975,6 +8071,7 @@
|
|
7975
8071
|
initPivot,
|
7976
8072
|
pivotGridStyle,
|
7977
8073
|
pivotIndicators_pivotIndicatorsAsRow,
|
8074
|
+
pivotHideIndicatorName,
|
7978
8075
|
datasetPivot,
|
7979
8076
|
pivotIndicators_pivotIndicators([
|
7980
8077
|
initDonut,
|
@@ -8083,7 +8180,8 @@
|
|
8083
8180
|
buildMeasures,
|
8084
8181
|
deleteEncodingForMeasure([
|
8085
8182
|
'tooltip',
|
8086
|
-
'label'
|
8183
|
+
'label',
|
8184
|
+
'color'
|
8087
8185
|
]),
|
8088
8186
|
deleteTooltipAndLabelDimension
|
8089
8187
|
]),
|
@@ -8140,10 +8238,10 @@
|
|
8140
8238
|
};
|
8141
8239
|
const colorRoseStyleFill = (stylePipe)=>(spec, context)=>{
|
8142
8240
|
const result = stylePipe(spec, context);
|
8143
|
-
const { advancedVSeed } = context;
|
8241
|
+
const { advancedVSeed, vseed } = context;
|
8144
8242
|
const { datasetReshapeInfo } = advancedVSeed;
|
8145
8243
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
8146
|
-
if (isLinearColor(advancedVSeed)) {
|
8244
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
8147
8245
|
if (result?.rose?.style) result.rose.style.fill = {
|
8148
8246
|
field: unfoldInfo.encodingColor,
|
8149
8247
|
scale: 'color'
|
@@ -8196,6 +8294,7 @@
|
|
8196
8294
|
initPivot,
|
8197
8295
|
pivotGridStyle,
|
8198
8296
|
pivotIndicators_pivotIndicatorsAsRow,
|
8297
|
+
pivotHideIndicatorName,
|
8199
8298
|
datasetPivot,
|
8200
8299
|
pivotIndicators_pivotIndicators([
|
8201
8300
|
initRose,
|
@@ -8235,7 +8334,8 @@
|
|
8235
8334
|
buildMeasures,
|
8236
8335
|
deleteEncodingForMeasure([
|
8237
8336
|
'tooltip',
|
8238
|
-
'label'
|
8337
|
+
'label',
|
8338
|
+
'color'
|
8239
8339
|
]),
|
8240
8340
|
deleteTooltipAndLabelDimension
|
8241
8341
|
]),
|
@@ -8313,6 +8413,7 @@
|
|
8313
8413
|
initPivot,
|
8314
8414
|
pivotGridStyle,
|
8315
8415
|
pivotIndicators_pivotIndicatorsAsRow,
|
8416
|
+
pivotHideIndicatorName,
|
8316
8417
|
datasetPivot,
|
8317
8418
|
pivotIndicators_pivotIndicators([
|
8318
8419
|
initRoseParallel,
|
@@ -8425,7 +8526,8 @@
|
|
8425
8526
|
buildMeasures,
|
8426
8527
|
deleteEncodingForMeasure([
|
8427
8528
|
'tooltip',
|
8428
|
-
'label'
|
8529
|
+
'label',
|
8530
|
+
'color'
|
8429
8531
|
]),
|
8430
8532
|
deleteTooltipAndLabelDimension
|
8431
8533
|
]),
|
@@ -8444,13 +8546,13 @@
|
|
8444
8546
|
const result = {
|
8445
8547
|
...spec
|
8446
8548
|
};
|
8447
|
-
const { advancedVSeed } = context;
|
8549
|
+
const { advancedVSeed, vseed } = context;
|
8448
8550
|
const { datasetReshapeInfo } = advancedVSeed;
|
8449
8551
|
const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
|
8450
8552
|
result.type = 'radar';
|
8451
8553
|
result.angleField = unfoldInfo.encodingAngle;
|
8452
8554
|
result.radiusField = foldInfo.measureValue;
|
8453
|
-
result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
8555
|
+
result.seriesField = isLinearColor(advancedVSeed, vseed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
|
8454
8556
|
result.padding = 0;
|
8455
8557
|
result.region = [
|
8456
8558
|
{
|
@@ -8534,6 +8636,7 @@
|
|
8534
8636
|
initPivot,
|
8535
8637
|
pivotGridStyle,
|
8536
8638
|
pivotIndicators_pivotIndicatorsAsRow,
|
8639
|
+
pivotHideIndicatorName,
|
8537
8640
|
datasetPivot,
|
8538
8641
|
pivotIndicators_pivotIndicators([
|
8539
8642
|
initRadar,
|
@@ -8642,7 +8745,8 @@
|
|
8642
8745
|
buildMeasures,
|
8643
8746
|
deleteEncodingForMeasure([
|
8644
8747
|
'tooltip',
|
8645
|
-
'label'
|
8748
|
+
'label',
|
8749
|
+
'color'
|
8646
8750
|
]),
|
8647
8751
|
deleteTooltipAndLabelDimension
|
8648
8752
|
]),
|
@@ -8683,10 +8787,10 @@
|
|
8683
8787
|
};
|
8684
8788
|
const colorFunnelStyleFill = (stylePipe)=>(spec, context)=>{
|
8685
8789
|
const result = stylePipe(spec, context);
|
8686
|
-
const { advancedVSeed } = context;
|
8790
|
+
const { advancedVSeed, vseed } = context;
|
8687
8791
|
const { datasetReshapeInfo } = advancedVSeed;
|
8688
8792
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
8689
|
-
if (isLinearColor(advancedVSeed)) {
|
8793
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
8690
8794
|
if (result?.funnel?.style) result.funnel.style.fill = {
|
8691
8795
|
field: unfoldInfo.encodingColor,
|
8692
8796
|
scale: 'color'
|
@@ -8733,6 +8837,7 @@
|
|
8733
8837
|
initPivot,
|
8734
8838
|
pivotGridStyle,
|
8735
8839
|
pivotIndicators_pivotIndicatorsAsRow,
|
8840
|
+
pivotHideIndicatorName,
|
8736
8841
|
datasetPivot,
|
8737
8842
|
pivotIndicators_pivotIndicators([
|
8738
8843
|
initFunnel,
|
@@ -8848,7 +8953,8 @@
|
|
8848
8953
|
buildMeasures,
|
8849
8954
|
deleteEncodingForMeasure([
|
8850
8955
|
'tooltip',
|
8851
|
-
'label'
|
8956
|
+
'label',
|
8957
|
+
'color'
|
8852
8958
|
]),
|
8853
8959
|
deleteTooltipAndLabelDimension
|
8854
8960
|
]),
|
@@ -8865,10 +8971,10 @@
|
|
8865
8971
|
];
|
8866
8972
|
const colorCellStyleFill = (stylePipe)=>(spec, context)=>{
|
8867
8973
|
const result = stylePipe(spec, context);
|
8868
|
-
const { advancedVSeed } = context;
|
8974
|
+
const { advancedVSeed, vseed } = context;
|
8869
8975
|
const { datasetReshapeInfo } = advancedVSeed;
|
8870
8976
|
const { unfoldInfo } = datasetReshapeInfo[0];
|
8871
|
-
if (isLinearColor(advancedVSeed)) {
|
8977
|
+
if (isLinearColor(advancedVSeed, vseed)) {
|
8872
8978
|
if (result?.cell?.style) result.cell.style.fill = {
|
8873
8979
|
field: unfoldInfo.encodingColor,
|
8874
8980
|
scale: 'color'
|
@@ -9261,10 +9367,7 @@
|
|
9261
9367
|
...baseConfig,
|
9262
9368
|
xAxis: bandAxis,
|
9263
9369
|
yAxis: {
|
9264
|
-
...linearAxis
|
9265
|
-
numFormat: {
|
9266
|
-
type: 'percent'
|
9267
|
-
}
|
9370
|
+
...linearAxis
|
9268
9371
|
},
|
9269
9372
|
crosshairRect,
|
9270
9373
|
stackCornerRadius: [
|
@@ -9301,10 +9404,7 @@
|
|
9301
9404
|
barPercent: {
|
9302
9405
|
...baseConfig,
|
9303
9406
|
xAxis: {
|
9304
|
-
...linearAxis
|
9305
|
-
numFormat: {
|
9306
|
-
type: 'percent'
|
9307
|
-
}
|
9407
|
+
...linearAxis
|
9308
9408
|
},
|
9309
9409
|
yAxis: barBandAxis,
|
9310
9410
|
crosshairRect,
|
@@ -9325,10 +9425,7 @@
|
|
9325
9425
|
...baseConfig,
|
9326
9426
|
xAxis: bandAxis,
|
9327
9427
|
yAxis: {
|
9328
|
-
...linearAxis
|
9329
|
-
numFormat: {
|
9330
|
-
type: 'percent'
|
9331
|
-
}
|
9428
|
+
...linearAxis
|
9332
9429
|
},
|
9333
9430
|
crosshairLine
|
9334
9431
|
},
|
@@ -9348,7 +9445,11 @@
|
|
9348
9445
|
visible: true
|
9349
9446
|
}
|
9350
9447
|
},
|
9351
|
-
crosshairLine
|
9448
|
+
crosshairLine,
|
9449
|
+
sizeRange: [
|
9450
|
+
8,
|
9451
|
+
24
|
9452
|
+
]
|
9352
9453
|
},
|
9353
9454
|
dualAxis: {
|
9354
9455
|
...baseConfig,
|
@@ -9683,7 +9784,11 @@
|
|
9683
9784
|
visible: true
|
9684
9785
|
}
|
9685
9786
|
},
|
9686
|
-
crosshairLine
|
9787
|
+
crosshairLine,
|
9788
|
+
sizeRange: [
|
9789
|
+
8,
|
9790
|
+
24
|
9791
|
+
]
|
9687
9792
|
},
|
9688
9793
|
dualAxis: {
|
9689
9794
|
...baseConfig,
|
@@ -13635,7 +13740,9 @@
|
|
13635
13740
|
legend: zLegend.nullish(),
|
13636
13741
|
xAxis: zXLinearAxis.nullish(),
|
13637
13742
|
yAxis: zYLinearAxis.nullish(),
|
13638
|
-
crosshairLine: zCrosshairLine.nullish()
|
13743
|
+
crosshairLine: zCrosshairLine.nullish(),
|
13744
|
+
size: schemas_number().or(schemas_array(schemas_number())).nullish(),
|
13745
|
+
sizeRange: schemas_number().or(schemas_array(schemas_number())).nullish()
|
13639
13746
|
});
|
13640
13747
|
const zRoseConfig = schemas_object({
|
13641
13748
|
backgroundColor: zBackgroundColor.nullish(),
|