@visactor/vseed 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/builder/builder.d.ts +1125 -757
- package/dist/builder/register/chartType.d.ts +2 -0
- package/dist/dataReshape/dataReshapeFor2D1M0Name.d.ts +19 -0
- package/dist/dataReshape/index.d.ts +1 -0
- package/dist/dataReshape/unfoldZeroDimensions.d.ts +10 -0
- package/dist/index.cjs +921 -193
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +870 -181
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/pipeline/heatmap.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipeline/index.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipeline/radar.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/config/config.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingAR.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingMatrix.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/chart/pipes/reshape/index.d.ts +3 -1
- package/dist/pipeline/advanced/chart/pipes/reshape/pivotReshapeTo2D1M0Name.d.ts +8 -0
- package/dist/pipeline/advanced/chart/pipes/reshape/reshapeTo2D1M0Name.d.ts +8 -0
- package/dist/pipeline/spec/chart/pipeline/heatmap.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/index.d.ts +3 -1
- package/dist/pipeline/spec/chart/pipeline/radar.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/axes/index.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/axes/radarAngle.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/axes/radarRadius.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/color/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipes/color/linearColor.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/dataset/{dataset.d.ts → datasetXY.d.ts} +1 -1
- package/dist/pipeline/spec/chart/pipes/{axes/a.d.ts → dataset/datasetYX.d.ts} +1 -1
- package/dist/pipeline/spec/chart/pipes/dataset/index.d.ts +2 -1
- package/dist/pipeline/spec/chart/pipes/init/heatmap.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/init/index.d.ts +3 -2
- package/dist/pipeline/spec/chart/pipes/init/radar.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/label/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipes/label/labelColorInversion.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/legend/colorLegend.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/legend/index.d.ts +1 -0
- package/dist/types/advancedVSeed.d.ts +457 -187
- package/dist/types/chartType/area/area.d.ts +1 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +1 -1
- package/dist/types/chartType/areaRange/areaRange.d.ts +1 -1
- package/dist/types/chartType/funnel/funnel.d.ts +6 -39
- package/dist/types/chartType/heatmap/heatmap.d.ts +176 -0
- package/dist/types/chartType/heatmap/index.d.ts +1 -0
- package/dist/types/chartType/index.d.ts +4 -2
- package/dist/types/chartType/line/line.d.ts +1 -1
- package/dist/types/chartType/radar/index.d.ts +1 -0
- package/dist/types/chartType/radar/radar.d.ts +207 -0
- package/dist/types/properties/chartType/chartType.d.ts +10 -6
- package/dist/types/properties/config/color/color.d.ts +11 -0
- package/dist/types/properties/config/config.d.ts +519 -238
- package/dist/types/properties/config/legend/legend.d.ts +26 -0
- package/dist/types/properties/markStyle/areaStyle.d.ts +0 -2
- package/dist/types/properties/markStyle/barStyle.d.ts +0 -6
- package/dist/types/properties/markStyle/lineStyle.d.ts +1 -6
- package/dist/types/properties/markStyle/markStyle.d.ts +2 -2
- package/dist/types/properties/markStyle/pointStyle.d.ts +0 -6
- package/dist/types/properties/theme/customTheme.d.ts +496 -228
- package/dist/types/vseed.d.ts +838 -664
- package/dist/umd/index.js +895 -193
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -34,13 +34,14 @@ var __webpack_exports__ = {};
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
36
36
|
funnelAdvancedPipeline: ()=>funnelAdvancedPipeline,
|
37
|
-
|
37
|
+
zHeatmapConfig: ()=>zHeatmapConfig,
|
38
38
|
zBar: ()=>zBar,
|
39
39
|
pieAdvancedPipeline: ()=>pieAdvancedPipeline,
|
40
40
|
execPipeline: ()=>execPipeline,
|
41
41
|
areaSpecPipeline: ()=>areaSpecPipeline,
|
42
42
|
isTable: ()=>isTable,
|
43
43
|
zDonut: ()=>zDonut,
|
44
|
+
zPie: ()=>zPie,
|
44
45
|
zRoseConfig: ()=>zRoseConfig,
|
45
46
|
findFirstMeasure: ()=>findFirstMeasure,
|
46
47
|
scatterAdvancedPipeline: ()=>scatterAdvancedPipeline,
|
@@ -66,6 +67,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
66
67
|
findAllMeasures: ()=>findAllMeasures,
|
67
68
|
funnelSpecPipeline: ()=>funnelSpecPipeline,
|
68
69
|
zAnalysis: ()=>zAnalysis,
|
70
|
+
zColorLegend: ()=>zColorLegend,
|
69
71
|
preorderTraverse: ()=>preorderTraverse,
|
70
72
|
zDimensionTree: ()=>zDimensionTree,
|
71
73
|
roseParallelSpecPipeline: ()=>roseParallelSpecPipeline,
|
@@ -89,31 +91,32 @@ __webpack_require__.d(__webpack_exports__, {
|
|
89
91
|
zColumnParallelConfig: ()=>zColumnParallelConfig,
|
90
92
|
donutSpecPipeline: ()=>donutSpecPipeline,
|
91
93
|
registerAreaPercent: ()=>registerAreaPercent,
|
92
|
-
|
94
|
+
zHeatmap: ()=>zHeatmap,
|
93
95
|
zBarPercent: ()=>zBarPercent,
|
96
|
+
zTheme: ()=>zTheme,
|
94
97
|
zDatum: ()=>zDatum,
|
95
98
|
barAdvancedPipeline: ()=>barAdvancedPipeline,
|
96
99
|
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
97
100
|
registerColumnPercent: ()=>registerColumnPercent,
|
98
|
-
|
101
|
+
registerHeatmap: ()=>registerHeatmap,
|
99
102
|
registerAreaRange: ()=>registerAreaRange,
|
100
103
|
roseSpecPipeline: ()=>roseSpecPipeline,
|
104
|
+
dataReshapeFor2D1M0Name: ()=>dataReshapeFor2D1M0Name,
|
101
105
|
registerBarPercent: ()=>registerBarPercent,
|
102
|
-
zPivotTable: ()=>zPivotTable,
|
103
106
|
registerLightTheme: ()=>registerLightTheme,
|
104
107
|
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
105
108
|
zBarParallel: ()=>zBarParallel,
|
106
109
|
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
107
|
-
|
110
|
+
registerPivotTable: ()=>registerPivotTable,
|
108
111
|
tableAdvancedPipeline: ()=>tableAdvancedPipeline,
|
112
|
+
registerDarkTheme: ()=>registerDarkTheme,
|
109
113
|
pieSpecPipeline: ()=>pieSpecPipeline,
|
110
|
-
registerPivotTable: ()=>registerPivotTable,
|
111
114
|
zChartType: ()=>zChartType,
|
112
|
-
|
115
|
+
zCrosshairLine: ()=>zCrosshairLine,
|
113
116
|
barSpecPipeline: ()=>barSpecPipeline,
|
114
|
-
|
117
|
+
zMeasureTree: ()=>zMeasureTree,
|
115
118
|
registerRose: ()=>registerRose,
|
116
|
-
|
119
|
+
zPivotTable: ()=>zPivotTable,
|
117
120
|
unfoldDimensions: ()=>unfoldDimensions,
|
118
121
|
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
119
122
|
registerTable: ()=>registerTable,
|
@@ -123,32 +126,40 @@ __webpack_require__.d(__webpack_exports__, {
|
|
123
126
|
registerAll: ()=>registerAll,
|
124
127
|
registerBar: ()=>registerBar,
|
125
128
|
isVChart: ()=>isVChart,
|
129
|
+
radarSpecPipeline: ()=>radarSpecPipeline,
|
126
130
|
zPieConfig: ()=>zPieConfig,
|
131
|
+
zRadar: ()=>zRadar,
|
132
|
+
zRose: ()=>zRose,
|
127
133
|
zStackCornerRadius: ()=>zStackCornerRadius,
|
128
|
-
zTable: ()=>zTable,
|
129
134
|
registerLine: ()=>registerLine,
|
130
135
|
registerCustomTheme: ()=>registerCustomTheme,
|
131
136
|
zColor: ()=>zColor,
|
132
137
|
registerRoseParallel: ()=>registerRoseParallel,
|
133
138
|
registerDonut: ()=>registerDonut,
|
139
|
+
heatmapSpecPipeline: ()=>heatmapSpecPipeline,
|
140
|
+
heatmapAdvancedPipeline: ()=>heatmapAdvancedPipeline,
|
134
141
|
zDonutConfig: ()=>zDonutConfig,
|
135
|
-
zMeasureGroup: ()=>zMeasureGroup,
|
136
|
-
zUnfoldInfo: ()=>zUnfoldInfo,
|
137
142
|
zFunnelConfig: ()=>zFunnelConfig,
|
143
|
+
zMeasureGroup: ()=>zMeasureGroup,
|
138
144
|
zMeasures: ()=>zMeasures,
|
139
145
|
FoldMeasureName: ()=>FoldMeasureName,
|
146
|
+
zRadarConfig: ()=>zRadarConfig,
|
140
147
|
darkTheme: ()=>darkTheme,
|
141
148
|
createNumFormatter: ()=>createNumFormatter,
|
142
149
|
zAreaConfig: ()=>zAreaConfig,
|
143
150
|
zAxis: ()=>zAxis,
|
144
151
|
isVTable: ()=>isVTable,
|
152
|
+
zSortAxis: ()=>zSortAxis,
|
153
|
+
zTable: ()=>zTable,
|
145
154
|
zLine: ()=>zLine,
|
146
155
|
columnSpecPipeline: ()=>columnSpecPipeline,
|
147
156
|
UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
|
148
157
|
zDatasetReshapeInfo: ()=>zDatasetReshapeInfo,
|
149
158
|
zFoldInfo: ()=>zFoldInfo,
|
159
|
+
zLinearColor: ()=>zLinearColor,
|
150
160
|
zAreaStyle: ()=>zAreaStyle,
|
151
161
|
ORIGINAL_DATA: ()=>ORIGINAL_DATA,
|
162
|
+
zUnfoldInfo: ()=>zUnfoldInfo,
|
152
163
|
zAnnotationArea: ()=>zAnnotationArea,
|
153
164
|
columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
|
154
165
|
i18n: ()=>i18n,
|
@@ -170,12 +181,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
170
181
|
findMeasureById: ()=>findMeasureById,
|
171
182
|
zVSeed: ()=>zVSeed,
|
172
183
|
areaPercentAdvancedPipeline: ()=>areaPercentAdvancedPipeline,
|
184
|
+
radarAdvancedPipeline: ()=>radarAdvancedPipeline,
|
173
185
|
zBackgroundColor: ()=>zBackgroundColor,
|
174
186
|
zAreaPercentConfig: ()=>zAreaPercentConfig,
|
175
187
|
registerBarParallel: ()=>registerBarParallel,
|
176
|
-
|
188
|
+
registerRadar: ()=>registerRadar,
|
177
189
|
zLocale: ()=>zLocale,
|
178
190
|
pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
|
191
|
+
zMeasure: ()=>zMeasure,
|
179
192
|
areaRangeSpecPipeline: ()=>areaRangeSpecPipeline,
|
180
193
|
areaRangeAdvancedPipeline: ()=>areaRangeAdvancedPipeline,
|
181
194
|
zAreaRange: ()=>zAreaRange,
|
@@ -870,6 +883,96 @@ const dataReshapeFor1D = (dataset, dimensions, measures, options)=>{
|
|
870
883
|
};
|
871
884
|
}
|
872
885
|
};
|
886
|
+
const unfoldZeroDimensions = (dataset, measures, measureName, unfoldGroupName = UnfoldDimensionGroup, unfoldGroupId = UnfoldDimensionGroupId)=>{
|
887
|
+
const unfoldInfo = {
|
888
|
+
groupName: unfoldGroupName,
|
889
|
+
groupId: unfoldGroupId,
|
890
|
+
colorItems: [],
|
891
|
+
colorIdMap: {}
|
892
|
+
};
|
893
|
+
if (0 === measures.length) return {
|
894
|
+
dataset,
|
895
|
+
unfoldInfo: {
|
896
|
+
groupName: unfoldGroupName,
|
897
|
+
groupId: unfoldGroupId,
|
898
|
+
colorItems: [],
|
899
|
+
colorIdMap: {}
|
900
|
+
}
|
901
|
+
};
|
902
|
+
const colorItems = [];
|
903
|
+
const colorMap = {};
|
904
|
+
for(let i = 0; i < dataset.length; i++){
|
905
|
+
const datum = dataset[i];
|
906
|
+
const colorName = measureName;
|
907
|
+
const colorId = measureName;
|
908
|
+
datum[unfoldGroupName] = colorName;
|
909
|
+
datum[unfoldGroupId] = colorId;
|
910
|
+
colorItems.push(colorId);
|
911
|
+
colorMap[colorId] = colorName;
|
912
|
+
}
|
913
|
+
unfoldInfo.colorItems = (0, external_remeda_namespaceObject.unique)(colorItems);
|
914
|
+
unfoldInfo.colorIdMap = colorMap;
|
915
|
+
return {
|
916
|
+
dataset,
|
917
|
+
unfoldInfo
|
918
|
+
};
|
919
|
+
};
|
920
|
+
const dataReshapeFor2D1M0Name_emptyReshapeResult = {
|
921
|
+
dataset: [],
|
922
|
+
foldInfo: {
|
923
|
+
foldMap: {},
|
924
|
+
measureId: '',
|
925
|
+
measureName: '',
|
926
|
+
measureValue: ''
|
927
|
+
},
|
928
|
+
unfoldInfo: {
|
929
|
+
groupName: '',
|
930
|
+
groupId: '',
|
931
|
+
colorItems: [],
|
932
|
+
colorIdMap: {}
|
933
|
+
}
|
934
|
+
};
|
935
|
+
const dataReshapeFor2D1M0Name = (dataset, dimensions, measures, options)=>{
|
936
|
+
const { foldMeasureId = FoldMeasureId, foldMeasureName = FoldMeasureName, foldMeasureValue = FoldMeasureValue, unfoldDimensionGroup = UnfoldDimensionGroup, unfoldDimensionGroupId = UnfoldDimensionGroupId } = options || {};
|
937
|
+
if (0 === dimensions.length && 0 === measures.length) return dataReshapeFor2D1M0Name_emptyReshapeResult;
|
938
|
+
const { dataset: foldedDataset, foldInfo } = foldMeasures(dataset, measures, foldMeasureId, foldMeasureName, foldMeasureValue);
|
939
|
+
if (0 === dimensions.length) {
|
940
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldZeroDimensions(foldedDataset, [
|
941
|
+
{
|
942
|
+
id: foldMeasureValue,
|
943
|
+
alias: i18n`指标值`
|
944
|
+
}
|
945
|
+
], i18n`指标名称`, unfoldDimensionGroup, unfoldDimensionGroupId);
|
946
|
+
return {
|
947
|
+
dataset: finalDataset,
|
948
|
+
foldInfo,
|
949
|
+
unfoldInfo
|
950
|
+
};
|
951
|
+
}
|
952
|
+
{
|
953
|
+
const onlyOneMeasure = 1 === measures.length;
|
954
|
+
const onlyOneDimension = 1 === dimensions.length;
|
955
|
+
const dims = [
|
956
|
+
...dimensions
|
957
|
+
];
|
958
|
+
if (!onlyOneMeasure || onlyOneDimension) dims.push({
|
959
|
+
id: foldMeasureName,
|
960
|
+
alias: i18n`指标名称`,
|
961
|
+
location: 'dimension'
|
962
|
+
});
|
963
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, dims, [
|
964
|
+
{
|
965
|
+
id: foldMeasureValue,
|
966
|
+
alias: i18n`指标值`
|
967
|
+
}
|
968
|
+
], 1, unfoldDimensionGroup, unfoldDimensionGroupId, foldMeasureId);
|
969
|
+
return {
|
970
|
+
dataset: finalDataset,
|
971
|
+
foldInfo,
|
972
|
+
unfoldInfo
|
973
|
+
};
|
974
|
+
}
|
975
|
+
};
|
873
976
|
const reshapeTo2D1M = (advancedVSeed, context)=>{
|
874
977
|
const result = {
|
875
978
|
...advancedVSeed
|
@@ -894,6 +997,30 @@ const reshapeTo2D1M = (advancedVSeed, context)=>{
|
|
894
997
|
measures
|
895
998
|
};
|
896
999
|
};
|
1000
|
+
const reshapeTo2D1M0Name = (advancedVSeed, context)=>{
|
1001
|
+
const result = {
|
1002
|
+
...advancedVSeed
|
1003
|
+
};
|
1004
|
+
const { vseed } = context;
|
1005
|
+
const { dataset } = vseed;
|
1006
|
+
const { dimensions, measures } = advancedVSeed;
|
1007
|
+
if (!measures || !dimensions || !dataset) return result;
|
1008
|
+
if (0 === measures.length) throw new Error('measures can not be empty');
|
1009
|
+
const { dataset: newDatasets, foldInfo, unfoldInfo } = dataReshapeFor2D1M0Name(dataset, dimensions, measures);
|
1010
|
+
return {
|
1011
|
+
...result,
|
1012
|
+
dataset: newDatasets,
|
1013
|
+
datasetReshapeInfo: [
|
1014
|
+
{
|
1015
|
+
id: '2D1M',
|
1016
|
+
foldInfo,
|
1017
|
+
unfoldInfo
|
1018
|
+
}
|
1019
|
+
],
|
1020
|
+
dimensions,
|
1021
|
+
measures
|
1022
|
+
};
|
1023
|
+
};
|
897
1024
|
const reshapeTo1D1M = (advancedVSeed, context)=>{
|
898
1025
|
const result = {
|
899
1026
|
...advancedVSeed
|
@@ -960,7 +1087,7 @@ const reshapeTo1D = (advancedVSeed, context)=>{
|
|
960
1087
|
]
|
961
1088
|
};
|
962
1089
|
};
|
963
|
-
const
|
1090
|
+
const pivotReshapeTo2D1M = (advancedVSeed, context)=>{
|
964
1091
|
const result = {
|
965
1092
|
...advancedVSeed
|
966
1093
|
};
|
@@ -973,14 +1100,14 @@ const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
|
973
1100
|
if (measures) measures.forEach((measure)=>{
|
974
1101
|
if (measure.children && measure.children.length > 0) measureGroups.push(measure);
|
975
1102
|
});
|
1103
|
+
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
976
1104
|
const newDatasets = [];
|
977
1105
|
const datasetReshapeInfo = [];
|
978
1106
|
measureGroups.forEach((measureGroup)=>{
|
979
1107
|
const measures = measureGroup.children;
|
980
1108
|
if (!measures) return;
|
981
|
-
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
982
1109
|
const groupId = measureGroup.id;
|
983
|
-
const { dataset: newSubDataset, foldInfo, unfoldInfo } =
|
1110
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor2D1M(dataset, commonDimensions, measures, {
|
984
1111
|
foldMeasureId: FoldMeasureId,
|
985
1112
|
foldMeasureName: FoldMeasureName,
|
986
1113
|
foldMeasureValue: FoldMeasureValue + groupId,
|
@@ -1000,7 +1127,47 @@ const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
|
1000
1127
|
datasetReshapeInfo: datasetReshapeInfo
|
1001
1128
|
};
|
1002
1129
|
};
|
1003
|
-
const
|
1130
|
+
const pivotReshapeTo2D1M0Name = (advancedVSeed, context)=>{
|
1131
|
+
const result = {
|
1132
|
+
...advancedVSeed
|
1133
|
+
};
|
1134
|
+
const { vseed } = context;
|
1135
|
+
const { dataset } = vseed;
|
1136
|
+
const { measures } = advancedVSeed;
|
1137
|
+
const dimensions = advancedVSeed.dimensions;
|
1138
|
+
if (!measures || !dimensions) return result;
|
1139
|
+
const measureGroups = [];
|
1140
|
+
if (measures) measures.forEach((measure)=>{
|
1141
|
+
if (measure.children && measure.children.length > 0) measureGroups.push(measure);
|
1142
|
+
});
|
1143
|
+
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
1144
|
+
const newDatasets = [];
|
1145
|
+
const datasetReshapeInfo = [];
|
1146
|
+
measureGroups.forEach((measureGroup)=>{
|
1147
|
+
const measures = measureGroup.children;
|
1148
|
+
if (!measures) return;
|
1149
|
+
const groupId = measureGroup.id;
|
1150
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor2D1M0Name(dataset, commonDimensions, measures, {
|
1151
|
+
foldMeasureId: FoldMeasureId,
|
1152
|
+
foldMeasureName: FoldMeasureName,
|
1153
|
+
foldMeasureValue: FoldMeasureValue + groupId,
|
1154
|
+
unfoldDimensionGroup: UnfoldDimensionGroup
|
1155
|
+
});
|
1156
|
+
const reshapeInfo = {
|
1157
|
+
id: groupId,
|
1158
|
+
foldInfo,
|
1159
|
+
unfoldInfo
|
1160
|
+
};
|
1161
|
+
newDatasets.push(newSubDataset);
|
1162
|
+
datasetReshapeInfo.push(reshapeInfo);
|
1163
|
+
});
|
1164
|
+
return {
|
1165
|
+
...result,
|
1166
|
+
dataset: newDatasets,
|
1167
|
+
datasetReshapeInfo: datasetReshapeInfo
|
1168
|
+
};
|
1169
|
+
};
|
1170
|
+
const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
1004
1171
|
const result = {
|
1005
1172
|
...advancedVSeed
|
1006
1173
|
};
|
@@ -1020,7 +1187,7 @@ const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
|
1020
1187
|
if (!measures) return;
|
1021
1188
|
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
1022
1189
|
const groupId = measureGroup.id;
|
1023
|
-
const { dataset: newSubDataset, foldInfo, unfoldInfo } =
|
1190
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor1D1M(dataset, commonDimensions, measures, {
|
1024
1191
|
foldMeasureId: FoldMeasureId,
|
1025
1192
|
foldMeasureName: FoldMeasureName,
|
1026
1193
|
foldMeasureValue: FoldMeasureValue + groupId,
|
@@ -1040,7 +1207,7 @@ const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
|
1040
1207
|
datasetReshapeInfo: datasetReshapeInfo
|
1041
1208
|
};
|
1042
1209
|
};
|
1043
|
-
const
|
1210
|
+
const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
1044
1211
|
const result = {
|
1045
1212
|
...advancedVSeed
|
1046
1213
|
};
|
@@ -1053,14 +1220,14 @@ const pivotReshapeTo2D1M = (advancedVSeed, context)=>{
|
|
1053
1220
|
if (measures) measures.forEach((measure)=>{
|
1054
1221
|
if (measure.children && measure.children.length > 0) measureGroups.push(measure);
|
1055
1222
|
});
|
1056
|
-
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
1057
1223
|
const newDatasets = [];
|
1058
1224
|
const datasetReshapeInfo = [];
|
1059
1225
|
measureGroups.forEach((measureGroup)=>{
|
1060
1226
|
const measures = measureGroup.children;
|
1061
1227
|
if (!measures) return;
|
1228
|
+
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
1062
1229
|
const groupId = measureGroup.id;
|
1063
|
-
const { dataset: newSubDataset, foldInfo, unfoldInfo } =
|
1230
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor1D2M(dataset, commonDimensions, measures, {
|
1064
1231
|
foldMeasureId: FoldMeasureId,
|
1065
1232
|
foldMeasureName: FoldMeasureName,
|
1066
1233
|
foldMeasureValue: FoldMeasureValue + groupId,
|
@@ -1371,6 +1538,43 @@ const encodingPie = (advancedVSeed)=>{
|
|
1371
1538
|
encoding
|
1372
1539
|
};
|
1373
1540
|
};
|
1541
|
+
const encodingAR = (advancedVSeed)=>{
|
1542
|
+
const result = {
|
1543
|
+
...advancedVSeed
|
1544
|
+
};
|
1545
|
+
const { datasetReshapeInfo, dimensions, measures } = advancedVSeed;
|
1546
|
+
if (!datasetReshapeInfo || !dimensions || !measures) return result;
|
1547
|
+
const angleDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location);
|
1548
|
+
const isZeroDimension = 0 === dimensions.length;
|
1549
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
1550
|
+
const { foldInfo, unfoldInfo } = cur;
|
1551
|
+
const angle = [
|
1552
|
+
isZeroDimension ? foldInfo.measureName : angleDimension?.id
|
1553
|
+
];
|
1554
|
+
const radius = [
|
1555
|
+
foldInfo.measureValue
|
1556
|
+
];
|
1557
|
+
const group = [
|
1558
|
+
unfoldInfo.groupId
|
1559
|
+
];
|
1560
|
+
const color = [
|
1561
|
+
unfoldInfo.groupId
|
1562
|
+
];
|
1563
|
+
return [
|
1564
|
+
...prev,
|
1565
|
+
{
|
1566
|
+
angle,
|
1567
|
+
radius,
|
1568
|
+
group,
|
1569
|
+
color
|
1570
|
+
}
|
1571
|
+
];
|
1572
|
+
}, []);
|
1573
|
+
return {
|
1574
|
+
...result,
|
1575
|
+
encoding
|
1576
|
+
};
|
1577
|
+
};
|
1374
1578
|
const encodingFunnel = (advancedVSeed)=>{
|
1375
1579
|
const result = {
|
1376
1580
|
...advancedVSeed
|
@@ -1386,7 +1590,7 @@ const encodingFunnel = (advancedVSeed)=>{
|
|
1386
1590
|
unfoldInfo.groupId
|
1387
1591
|
];
|
1388
1592
|
const color = [
|
1389
|
-
|
1593
|
+
foldInfo.measureValue
|
1390
1594
|
];
|
1391
1595
|
return [
|
1392
1596
|
...prev,
|
@@ -1484,6 +1688,8 @@ const donutConfig = pieConfig;
|
|
1484
1688
|
const roseConfig = pieConfig;
|
1485
1689
|
const roseParallelConfig = pieConfig;
|
1486
1690
|
const funnelConfig = pieConfig;
|
1691
|
+
const heatmapConfig = pieConfig;
|
1692
|
+
const radarConfig = pieConfig;
|
1487
1693
|
const theme_theme = (advancedVSeed, context)=>{
|
1488
1694
|
const { customTheme, vseed } = context;
|
1489
1695
|
const { theme = 'light', chartType } = vseed;
|
@@ -1619,9 +1825,9 @@ const lineAdvancedPipeline = [
|
|
1619
1825
|
autoMeasures,
|
1620
1826
|
autoDimensions,
|
1621
1827
|
pivotAdapter([
|
1622
|
-
|
1828
|
+
reshapeTo2D1M0Name
|
1623
1829
|
], [
|
1624
|
-
|
1830
|
+
pivotReshapeTo2D1M0Name
|
1625
1831
|
]),
|
1626
1832
|
encodingXY,
|
1627
1833
|
sortXBandAxis,
|
@@ -1738,9 +1944,9 @@ const areaAdvancedPipeline = [
|
|
1738
1944
|
autoMeasures,
|
1739
1945
|
autoDimensions,
|
1740
1946
|
pivotAdapter([
|
1741
|
-
|
1947
|
+
reshapeTo2D1M0Name
|
1742
1948
|
], [
|
1743
|
-
|
1949
|
+
pivotReshapeTo2D1M0Name
|
1744
1950
|
]),
|
1745
1951
|
encodingXY,
|
1746
1952
|
sortXBandAxis,
|
@@ -1755,9 +1961,9 @@ const areaPercentAdvancedPipeline = [
|
|
1755
1961
|
autoMeasures,
|
1756
1962
|
autoDimensions,
|
1757
1963
|
pivotAdapter([
|
1758
|
-
|
1964
|
+
reshapeTo2D1M0Name
|
1759
1965
|
], [
|
1760
|
-
|
1966
|
+
pivotReshapeTo2D1M0Name
|
1761
1967
|
]),
|
1762
1968
|
encodingXY,
|
1763
1969
|
sortXBandAxis,
|
@@ -1870,6 +2076,71 @@ const scatterAdvancedPipeline = [
|
|
1870
2076
|
markStyle_markStyle,
|
1871
2077
|
annotation_annotation
|
1872
2078
|
];
|
2079
|
+
const encodingMatrix = (advancedVSeed)=>{
|
2080
|
+
const result = {
|
2081
|
+
...advancedVSeed
|
2082
|
+
};
|
2083
|
+
const { datasetReshapeInfo, dimensions } = advancedVSeed;
|
2084
|
+
if (!datasetReshapeInfo || !dimensions) return result;
|
2085
|
+
const xDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location);
|
2086
|
+
const isZeroDimension = 0 === dimensions.length;
|
2087
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
2088
|
+
const { foldInfo, unfoldInfo } = cur;
|
2089
|
+
const x = [
|
2090
|
+
isZeroDimension ? foldInfo.measureName : xDimension?.id
|
2091
|
+
];
|
2092
|
+
const y = [
|
2093
|
+
unfoldInfo.groupName
|
2094
|
+
];
|
2095
|
+
const color = [
|
2096
|
+
foldInfo.measureValue
|
2097
|
+
];
|
2098
|
+
return [
|
2099
|
+
...prev,
|
2100
|
+
{
|
2101
|
+
x,
|
2102
|
+
y,
|
2103
|
+
color
|
2104
|
+
}
|
2105
|
+
];
|
2106
|
+
}, []);
|
2107
|
+
return {
|
2108
|
+
...result,
|
2109
|
+
encoding
|
2110
|
+
};
|
2111
|
+
};
|
2112
|
+
const heatmapAdvancedPipeline = [
|
2113
|
+
initAdvancedVSeed,
|
2114
|
+
autoMeasures,
|
2115
|
+
autoDimensions,
|
2116
|
+
pivotAdapter([
|
2117
|
+
reshapeTo2D1M
|
2118
|
+
], [
|
2119
|
+
pivotReshapeTo2D1M
|
2120
|
+
]),
|
2121
|
+
encodingMatrix,
|
2122
|
+
sortXBandAxis,
|
2123
|
+
heatmapConfig,
|
2124
|
+
theme_theme,
|
2125
|
+
markStyle_markStyle,
|
2126
|
+
annotation_annotation
|
2127
|
+
];
|
2128
|
+
const radarAdvancedPipeline = [
|
2129
|
+
initAdvancedVSeed,
|
2130
|
+
autoMeasures,
|
2131
|
+
autoDimensions,
|
2132
|
+
pivotAdapter([
|
2133
|
+
reshapeTo2D1M0Name
|
2134
|
+
], [
|
2135
|
+
pivotReshapeTo2D1M0Name
|
2136
|
+
]),
|
2137
|
+
encodingAR,
|
2138
|
+
sort_sortLegend,
|
2139
|
+
radarConfig,
|
2140
|
+
theme_theme,
|
2141
|
+
markStyle_markStyle,
|
2142
|
+
annotation_annotation
|
2143
|
+
];
|
1873
2144
|
const autoMeasures_autoMeasures = (advancedVSeed, context)=>{
|
1874
2145
|
const result = {
|
1875
2146
|
...advancedVSeed
|
@@ -2022,12 +2293,11 @@ const tableAdvancedPipeline = [
|
|
2022
2293
|
records_records,
|
2023
2294
|
theme_theme
|
2024
2295
|
];
|
2025
|
-
const
|
2296
|
+
const datasetYX = (spec, context)=>{
|
2026
2297
|
const { advancedVSeed, vseed } = context;
|
2027
2298
|
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
2028
2299
|
const { orderMapping = {} } = analysis ?? {};
|
2029
2300
|
const angle = encoding[0]?.angle?.[0];
|
2030
|
-
const x = encoding[0]?.x?.[0];
|
2031
2301
|
const y = encoding[0]?.y?.[0];
|
2032
2302
|
const group = encoding[0]?.group?.[0];
|
2033
2303
|
const id = datasetReshapeInfo[0].id;
|
@@ -2035,25 +2305,57 @@ const dataset_dataset = (spec, context)=>{
|
|
2035
2305
|
if (angle) fields[angle] = {
|
2036
2306
|
sortIndex: 0
|
2037
2307
|
};
|
2038
|
-
if (
|
2039
|
-
const order = orderMapping[
|
2040
|
-
if (order) fields[
|
2308
|
+
if (y) {
|
2309
|
+
const order = orderMapping[y];
|
2310
|
+
if (order) fields[y] = {
|
2041
2311
|
sortIndex: 0,
|
2042
2312
|
domain: order,
|
2043
2313
|
lockStatisticsByDomain: true
|
2044
2314
|
};
|
2045
|
-
else fields[
|
2315
|
+
else fields[y] = {
|
2046
2316
|
sortIndex: 0
|
2047
2317
|
};
|
2048
2318
|
}
|
2049
|
-
if (
|
2050
|
-
const order = orderMapping[
|
2051
|
-
if (order) fields[
|
2319
|
+
if (group) {
|
2320
|
+
const order = orderMapping[group];
|
2321
|
+
if (order) fields[group] = {
|
2322
|
+
sortIndex: 0,
|
2323
|
+
domain: order,
|
2324
|
+
lockStatisticsByDomain: true
|
2325
|
+
};
|
2326
|
+
else fields[group] = {
|
2327
|
+
sortIndex: 0
|
2328
|
+
};
|
2329
|
+
}
|
2330
|
+
return {
|
2331
|
+
...spec,
|
2332
|
+
data: {
|
2333
|
+
id,
|
2334
|
+
values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
|
2335
|
+
fields: fields
|
2336
|
+
}
|
2337
|
+
};
|
2338
|
+
};
|
2339
|
+
const datasetXY = (spec, context)=>{
|
2340
|
+
const { advancedVSeed, vseed } = context;
|
2341
|
+
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
2342
|
+
const { orderMapping = {} } = analysis ?? {};
|
2343
|
+
const angle = encoding[0]?.angle?.[0];
|
2344
|
+
const x = encoding[0]?.x?.[0];
|
2345
|
+
const group = encoding[0]?.group?.[0];
|
2346
|
+
const id = datasetReshapeInfo[0].id;
|
2347
|
+
const fields = {};
|
2348
|
+
if (angle) fields[angle] = {
|
2349
|
+
sortIndex: 0
|
2350
|
+
};
|
2351
|
+
if (x) {
|
2352
|
+
const order = orderMapping[x];
|
2353
|
+
if (order) fields[x] = {
|
2052
2354
|
sortIndex: 0,
|
2053
2355
|
domain: order,
|
2054
2356
|
lockStatisticsByDomain: true
|
2055
2357
|
};
|
2056
|
-
else fields[
|
2358
|
+
else fields[x] = {
|
2057
2359
|
sortIndex: 0
|
2058
2360
|
};
|
2059
2361
|
}
|
@@ -2314,8 +2616,9 @@ const initPie = (spec, context)=>{
|
|
2314
2616
|
...spec
|
2315
2617
|
};
|
2316
2618
|
const { advancedVSeed } = context;
|
2317
|
-
const { encoding } = advancedVSeed;
|
2619
|
+
const { encoding, dataset } = advancedVSeed;
|
2318
2620
|
if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
|
2621
|
+
const showStroke = dataset.length > 20;
|
2319
2622
|
result.type = 'pie';
|
2320
2623
|
result.outerRadius = 0.8;
|
2321
2624
|
result.innerRadius = 0;
|
@@ -2331,7 +2634,7 @@ const initPie = (spec, context)=>{
|
|
2331
2634
|
result.pie = {
|
2332
2635
|
style: {
|
2333
2636
|
stroke: '#ffffff',
|
2334
|
-
lineWidth: 1,
|
2637
|
+
lineWidth: showStroke ? 1 : 0,
|
2335
2638
|
centerOffset: 0
|
2336
2639
|
},
|
2337
2640
|
state: {
|
@@ -2349,8 +2652,9 @@ const initDonut = (spec, context)=>{
|
|
2349
2652
|
...spec
|
2350
2653
|
};
|
2351
2654
|
const { advancedVSeed } = context;
|
2352
|
-
const { encoding } = advancedVSeed;
|
2655
|
+
const { encoding, dataset } = advancedVSeed;
|
2353
2656
|
if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
|
2657
|
+
const showStroke = dataset.length > 20;
|
2354
2658
|
result.type = 'pie';
|
2355
2659
|
result.outerRadius = 0.8;
|
2356
2660
|
result.innerRadius = 0.8 * result.outerRadius;
|
@@ -2366,7 +2670,7 @@ const initDonut = (spec, context)=>{
|
|
2366
2670
|
result.pie = {
|
2367
2671
|
style: {
|
2368
2672
|
stroke: '#ffffff',
|
2369
|
-
lineWidth: 1
|
2673
|
+
lineWidth: showStroke ? 1 : 0
|
2370
2674
|
},
|
2371
2675
|
state: {
|
2372
2676
|
hover: {
|
@@ -2454,21 +2758,46 @@ const initRoseParallel = (spec, context)=>{
|
|
2454
2758
|
result.animation = true;
|
2455
2759
|
return result;
|
2456
2760
|
};
|
2457
|
-
const
|
2761
|
+
const initScatter = (spec, context)=>{
|
2458
2762
|
const result = {
|
2459
2763
|
...spec
|
2460
2764
|
};
|
2461
|
-
|
2462
|
-
|
2463
|
-
|
2464
|
-
|
2465
|
-
|
2466
|
-
|
2467
|
-
|
2468
|
-
|
2469
|
-
|
2470
|
-
|
2765
|
+
const { advancedVSeed } = context;
|
2766
|
+
const { encoding } = advancedVSeed;
|
2767
|
+
if (!encoding[0].y || !encoding[0].x || !encoding[0].group) return result;
|
2768
|
+
result.type = 'scatter';
|
2769
|
+
result.direction = 'vertical';
|
2770
|
+
result.xField = encoding[0].x[0];
|
2771
|
+
result.yField = encoding[0].y[0];
|
2772
|
+
result.seriesField = encoding[0].group[0];
|
2773
|
+
result.padding = 0;
|
2774
|
+
result.region = [
|
2775
|
+
{
|
2776
|
+
clip: true
|
2777
|
+
}
|
2778
|
+
];
|
2779
|
+
result.animation = true;
|
2780
|
+
return result;
|
2781
|
+
};
|
2782
|
+
const initRadar = (spec, context)=>{
|
2783
|
+
const result = {
|
2784
|
+
...spec
|
2471
2785
|
};
|
2786
|
+
const { advancedVSeed } = context;
|
2787
|
+
const { encoding } = advancedVSeed;
|
2788
|
+
if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
|
2789
|
+
result.type = 'radar';
|
2790
|
+
result.angleField = encoding[0].angle[0];
|
2791
|
+
result.radiusField = encoding[0].radius[0];
|
2792
|
+
result.seriesField = encoding[0].group[0];
|
2793
|
+
result.padding = 0;
|
2794
|
+
result.region = [
|
2795
|
+
{
|
2796
|
+
clip: true
|
2797
|
+
}
|
2798
|
+
];
|
2799
|
+
result.animation = true;
|
2800
|
+
return result;
|
2472
2801
|
};
|
2473
2802
|
const initFunnel = (spec, context)=>{
|
2474
2803
|
const result = {
|
@@ -2492,7 +2821,11 @@ const initFunnel = (spec, context)=>{
|
|
2492
2821
|
];
|
2493
2822
|
result.funnel = {
|
2494
2823
|
style: {
|
2495
|
-
cornerRadius: 4
|
2824
|
+
cornerRadius: 4,
|
2825
|
+
fill: {
|
2826
|
+
field: encoding[0].color[0],
|
2827
|
+
scale: 'color'
|
2828
|
+
}
|
2496
2829
|
},
|
2497
2830
|
state: {
|
2498
2831
|
hover: {
|
@@ -2506,26 +2839,21 @@ const initFunnel = (spec, context)=>{
|
|
2506
2839
|
result.animation = true;
|
2507
2840
|
return result;
|
2508
2841
|
};
|
2509
|
-
const
|
2842
|
+
const initPivot = (spec)=>{
|
2510
2843
|
const result = {
|
2511
2844
|
...spec
|
2512
2845
|
};
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2523
|
-
|
2524
|
-
clip: true
|
2525
|
-
}
|
2526
|
-
];
|
2527
|
-
result.animation = true;
|
2528
|
-
return result;
|
2846
|
+
return {
|
2847
|
+
...result,
|
2848
|
+
animation: true,
|
2849
|
+
rows: [],
|
2850
|
+
columns: [],
|
2851
|
+
indicators: [],
|
2852
|
+
records: [],
|
2853
|
+
widthMode: 'adaptive',
|
2854
|
+
heightMode: 'adaptive',
|
2855
|
+
indicatorsAsCol: false
|
2856
|
+
};
|
2529
2857
|
};
|
2530
2858
|
const xBand = (spec, context)=>{
|
2531
2859
|
const result = {
|
@@ -2888,7 +3216,7 @@ const radiusAxis = (spec, context)=>{
|
|
2888
3216
|
};
|
2889
3217
|
const { advancedVSeed } = context;
|
2890
3218
|
const { dimensions, measures } = advancedVSeed;
|
2891
|
-
if (!dimensions || !measures) return
|
3219
|
+
if (!dimensions || !measures) return result;
|
2892
3220
|
const is0D = 0 === dimensions.length;
|
2893
3221
|
const is1M1D = 1 === dimensions.length && 1 === measures.length;
|
2894
3222
|
const showAxis = !(is0D || is1M1D);
|
@@ -2919,7 +3247,7 @@ const angleAxis = (spec, context)=>{
|
|
2919
3247
|
};
|
2920
3248
|
const { advancedVSeed } = context;
|
2921
3249
|
const { dimensions, measures } = advancedVSeed;
|
2922
|
-
if (!dimensions || !measures) return
|
3250
|
+
if (!dimensions || !measures) return result;
|
2923
3251
|
const is0D = 0 === dimensions.length;
|
2924
3252
|
const is1M1D = 1 === dimensions.length && 1 === measures.length;
|
2925
3253
|
const showAxis = !(is0D || is1M1D);
|
@@ -2955,6 +3283,59 @@ const angleAxis = (spec, context)=>{
|
|
2955
3283
|
});
|
2956
3284
|
return result;
|
2957
3285
|
};
|
3286
|
+
const radarAngleAxis = (spec, context)=>{
|
3287
|
+
const result = {
|
3288
|
+
...spec
|
3289
|
+
};
|
3290
|
+
const { advancedVSeed } = context;
|
3291
|
+
const { dimensions, measures } = advancedVSeed;
|
3292
|
+
if (!dimensions || !measures) return result;
|
3293
|
+
if (!result.axes) result.axes = [];
|
3294
|
+
result.axes.push({
|
3295
|
+
orient: 'angle',
|
3296
|
+
visible: true,
|
3297
|
+
zero: true,
|
3298
|
+
nice: true,
|
3299
|
+
grid: {
|
3300
|
+
visible: true
|
3301
|
+
},
|
3302
|
+
domainLine: {
|
3303
|
+
visible: true
|
3304
|
+
},
|
3305
|
+
tick: {
|
3306
|
+
visible: true
|
3307
|
+
}
|
3308
|
+
});
|
3309
|
+
return result;
|
3310
|
+
};
|
3311
|
+
const radarRadiusAxis = (spec, context)=>{
|
3312
|
+
const result = {
|
3313
|
+
...spec
|
3314
|
+
};
|
3315
|
+
const { advancedVSeed } = context;
|
3316
|
+
const { dimensions, measures } = advancedVSeed;
|
3317
|
+
if (!dimensions || !measures) return result;
|
3318
|
+
if (!result.axes) result.axes = [];
|
3319
|
+
result.axes.push({
|
3320
|
+
orient: 'radius',
|
3321
|
+
visible: true,
|
3322
|
+
zero: true,
|
3323
|
+
nice: true,
|
3324
|
+
grid: {
|
3325
|
+
visible: true
|
3326
|
+
},
|
3327
|
+
tick: {
|
3328
|
+
visible: true
|
3329
|
+
},
|
3330
|
+
label: {
|
3331
|
+
visible: true
|
3332
|
+
},
|
3333
|
+
domainLine: {
|
3334
|
+
visible: true
|
3335
|
+
}
|
3336
|
+
});
|
3337
|
+
return result;
|
3338
|
+
};
|
2958
3339
|
const percent = (spec, context)=>{
|
2959
3340
|
const result = {
|
2960
3341
|
...spec
|
@@ -2998,7 +3379,9 @@ const tooltip_tooltip = (spec, context)=>{
|
|
2998
3379
|
const { advancedVSeed } = context;
|
2999
3380
|
const { measures, datasetReshapeInfo, chartType } = advancedVSeed;
|
3000
3381
|
const baseConfig = advancedVSeed.config[chartType];
|
3001
|
-
const { tooltip
|
3382
|
+
const { tooltip = {
|
3383
|
+
enable: true
|
3384
|
+
} } = baseConfig;
|
3002
3385
|
const { enable } = tooltip;
|
3003
3386
|
const { measureId, measureValue } = datasetReshapeInfo[0].foldInfo;
|
3004
3387
|
const { groupName } = datasetReshapeInfo[0].unfoldInfo;
|
@@ -3088,6 +3471,16 @@ const label_label = (spec, context)=>{
|
|
3088
3471
|
};
|
3089
3472
|
return result;
|
3090
3473
|
};
|
3474
|
+
const labelColorInversion = (spec)=>{
|
3475
|
+
const result = {
|
3476
|
+
...spec
|
3477
|
+
};
|
3478
|
+
if (result.label) result.label.smartInvert = true;
|
3479
|
+
else result.label = {
|
3480
|
+
smartInvert: true
|
3481
|
+
};
|
3482
|
+
return result;
|
3483
|
+
};
|
3091
3484
|
const discreteLegend = (spec, context)=>{
|
3092
3485
|
const result = {
|
3093
3486
|
...spec
|
@@ -3297,6 +3690,69 @@ const pivotDiscreteLegend = (spec, context)=>{
|
|
3297
3690
|
legends
|
3298
3691
|
};
|
3299
3692
|
};
|
3693
|
+
const colorLegend = (spec, context)=>{
|
3694
|
+
const result = {
|
3695
|
+
...spec
|
3696
|
+
};
|
3697
|
+
const { advancedVSeed } = context;
|
3698
|
+
const { chartType } = advancedVSeed;
|
3699
|
+
const baseConfig = advancedVSeed.config[chartType];
|
3700
|
+
const { encoding } = advancedVSeed;
|
3701
|
+
if (!encoding[0].color) return result;
|
3702
|
+
if (!baseConfig || !baseConfig.legend) return result;
|
3703
|
+
const { legend } = baseConfig;
|
3704
|
+
const { enable, position = 'bottom' } = legend || {};
|
3705
|
+
const orient = [
|
3706
|
+
'bottom',
|
3707
|
+
'bottomLeft',
|
3708
|
+
'bottomRight',
|
3709
|
+
'bl',
|
3710
|
+
'br'
|
3711
|
+
].includes(position) ? 'bottom' : [
|
3712
|
+
'top',
|
3713
|
+
'topLeft',
|
3714
|
+
'topRight',
|
3715
|
+
'tl',
|
3716
|
+
'tr'
|
3717
|
+
].includes(position) ? 'top' : [
|
3718
|
+
'left',
|
3719
|
+
'leftTop',
|
3720
|
+
'leftBottom',
|
3721
|
+
'lt',
|
3722
|
+
'lb'
|
3723
|
+
].includes(position) ? 'left' : 'right';
|
3724
|
+
const legendPosition = [
|
3725
|
+
'topLeft',
|
3726
|
+
'bottomLeft',
|
3727
|
+
'leftTop',
|
3728
|
+
'rightTop',
|
3729
|
+
'lt',
|
3730
|
+
'rt',
|
3731
|
+
'tl',
|
3732
|
+
'bl'
|
3733
|
+
].includes(position) ? 'start' : [
|
3734
|
+
'topRight',
|
3735
|
+
'bottomRight',
|
3736
|
+
'leftBottom',
|
3737
|
+
'rightBottom',
|
3738
|
+
'lb',
|
3739
|
+
'rb',
|
3740
|
+
'rt',
|
3741
|
+
'br'
|
3742
|
+
].includes(position) ? 'end' : 'middle';
|
3743
|
+
result.legends = {
|
3744
|
+
type: 'color',
|
3745
|
+
visible: enable,
|
3746
|
+
orient,
|
3747
|
+
position: legendPosition,
|
3748
|
+
field: encoding[0].color[0],
|
3749
|
+
inverse: !![
|
3750
|
+
'left',
|
3751
|
+
'right'
|
3752
|
+
].includes(orient)
|
3753
|
+
};
|
3754
|
+
return result;
|
3755
|
+
};
|
3300
3756
|
const color_color = (spec, context)=>{
|
3301
3757
|
const result = {
|
3302
3758
|
...spec
|
@@ -3324,6 +3780,28 @@ const color_color = (spec, context)=>{
|
|
3324
3780
|
};
|
3325
3781
|
return result;
|
3326
3782
|
};
|
3783
|
+
const linearColor = (spec, context)=>{
|
3784
|
+
const result = {
|
3785
|
+
...spec
|
3786
|
+
};
|
3787
|
+
const { advancedVSeed } = context;
|
3788
|
+
const { datasetReshapeInfo, chartType, encoding } = advancedVSeed;
|
3789
|
+
const baseConfig = advancedVSeed.config[chartType];
|
3790
|
+
if (!baseConfig || !baseConfig.color) return result;
|
3791
|
+
const { color } = baseConfig;
|
3792
|
+
const { colorScheme } = color;
|
3793
|
+
result.color = {
|
3794
|
+
type: 'linear',
|
3795
|
+
domain: [
|
3796
|
+
{
|
3797
|
+
dataId: datasetReshapeInfo[0].id,
|
3798
|
+
fields: encoding?.[0]?.color
|
3799
|
+
}
|
3800
|
+
],
|
3801
|
+
range: colorScheme
|
3802
|
+
};
|
3803
|
+
return result;
|
3804
|
+
};
|
3327
3805
|
const pivotAdapter_pivotAdapter = (pipeline, pivotPipeline)=>(spec, context)=>{
|
3328
3806
|
const { vseed } = context;
|
3329
3807
|
const usePivotChart = isPivotChart(vseed);
|
@@ -4555,7 +5033,7 @@ const line_line = [
|
|
4555
5033
|
initLine,
|
4556
5034
|
color_color,
|
4557
5035
|
background_backgroundColor,
|
4558
|
-
|
5036
|
+
datasetXY,
|
4559
5037
|
xBand,
|
4560
5038
|
yLinear,
|
4561
5039
|
label_label,
|
@@ -4579,7 +5057,7 @@ const pivotLine = [
|
|
4579
5057
|
initLine,
|
4580
5058
|
color_color,
|
4581
5059
|
background_backgroundColor,
|
4582
|
-
|
5060
|
+
datasetXY,
|
4583
5061
|
xBand,
|
4584
5062
|
yLinear,
|
4585
5063
|
label_label,
|
@@ -4606,7 +5084,7 @@ const column = [
|
|
4606
5084
|
stackInverse,
|
4607
5085
|
color_color,
|
4608
5086
|
background_backgroundColor,
|
4609
|
-
|
5087
|
+
datasetXY,
|
4610
5088
|
xBand,
|
4611
5089
|
yLinear,
|
4612
5090
|
label_label,
|
@@ -4630,7 +5108,7 @@ const pivotColumn = [
|
|
4630
5108
|
stackInverse,
|
4631
5109
|
color_color,
|
4632
5110
|
background_backgroundColor,
|
4633
|
-
|
5111
|
+
datasetXY,
|
4634
5112
|
xBand,
|
4635
5113
|
yLinear,
|
4636
5114
|
label_label,
|
@@ -4654,7 +5132,7 @@ const columnParallel = [
|
|
4654
5132
|
stackCornerRadius_stackCornerRadius,
|
4655
5133
|
color_color,
|
4656
5134
|
background_backgroundColor,
|
4657
|
-
|
5135
|
+
datasetXY,
|
4658
5136
|
xBand,
|
4659
5137
|
yLinear,
|
4660
5138
|
label_label,
|
@@ -4677,7 +5155,7 @@ const pivotColumnParallel = [
|
|
4677
5155
|
stackCornerRadius_stackCornerRadius,
|
4678
5156
|
color_color,
|
4679
5157
|
background_backgroundColor,
|
4680
|
-
|
5158
|
+
datasetXY,
|
4681
5159
|
xBand,
|
4682
5160
|
yLinear,
|
4683
5161
|
label_label,
|
@@ -4703,7 +5181,7 @@ const columnPercent = [
|
|
4703
5181
|
color_color,
|
4704
5182
|
background_backgroundColor,
|
4705
5183
|
percent,
|
4706
|
-
|
5184
|
+
datasetXY,
|
4707
5185
|
xBand,
|
4708
5186
|
yLinear,
|
4709
5187
|
label_label,
|
@@ -4728,7 +5206,7 @@ const pivotColumnPercent = [
|
|
4728
5206
|
color_color,
|
4729
5207
|
percent,
|
4730
5208
|
background_backgroundColor,
|
4731
|
-
|
5209
|
+
datasetXY,
|
4732
5210
|
xBand,
|
4733
5211
|
yLinear,
|
4734
5212
|
label_label,
|
@@ -4752,7 +5230,7 @@ const bar = [
|
|
4752
5230
|
stackCornerRadius_stackCornerRadius,
|
4753
5231
|
color_color,
|
4754
5232
|
background_backgroundColor,
|
4755
|
-
|
5233
|
+
datasetYX,
|
4756
5234
|
xLinear,
|
4757
5235
|
yBand,
|
4758
5236
|
label_label,
|
@@ -4775,7 +5253,7 @@ const pivotBar = [
|
|
4775
5253
|
stackCornerRadius_stackCornerRadius,
|
4776
5254
|
color_color,
|
4777
5255
|
background_backgroundColor,
|
4778
|
-
|
5256
|
+
datasetYX,
|
4779
5257
|
xLinear,
|
4780
5258
|
yBand,
|
4781
5259
|
label_label,
|
@@ -4800,7 +5278,7 @@ const barParallel = [
|
|
4800
5278
|
stackCornerRadius_stackCornerRadius,
|
4801
5279
|
color_color,
|
4802
5280
|
background_backgroundColor,
|
4803
|
-
|
5281
|
+
datasetYX,
|
4804
5282
|
xLinear,
|
4805
5283
|
yBand,
|
4806
5284
|
label_label,
|
@@ -4823,7 +5301,7 @@ const pivotBarParallel = [
|
|
4823
5301
|
stackCornerRadius_stackCornerRadius,
|
4824
5302
|
color_color,
|
4825
5303
|
background_backgroundColor,
|
4826
|
-
|
5304
|
+
datasetYX,
|
4827
5305
|
xLinear,
|
4828
5306
|
yBand,
|
4829
5307
|
label_label,
|
@@ -4848,7 +5326,7 @@ const barPercent = [
|
|
4848
5326
|
color_color,
|
4849
5327
|
background_backgroundColor,
|
4850
5328
|
percent,
|
4851
|
-
|
5329
|
+
datasetYX,
|
4852
5330
|
xLinear,
|
4853
5331
|
yBand,
|
4854
5332
|
label_label,
|
@@ -4872,7 +5350,7 @@ const pivotBarPercent = [
|
|
4872
5350
|
color_color,
|
4873
5351
|
background_backgroundColor,
|
4874
5352
|
percent,
|
4875
|
-
|
5353
|
+
datasetYX,
|
4876
5354
|
yBand,
|
4877
5355
|
xLinear,
|
4878
5356
|
label_label,
|
@@ -4896,7 +5374,7 @@ const area_area = [
|
|
4896
5374
|
stackInverse,
|
4897
5375
|
color_color,
|
4898
5376
|
background_backgroundColor,
|
4899
|
-
|
5377
|
+
datasetXY,
|
4900
5378
|
xBand,
|
4901
5379
|
yLinear,
|
4902
5380
|
label_label,
|
@@ -4922,7 +5400,7 @@ const pivotArea = [
|
|
4922
5400
|
color_color,
|
4923
5401
|
background_backgroundColor,
|
4924
5402
|
stackInverse,
|
4925
|
-
|
5403
|
+
datasetXY,
|
4926
5404
|
xBand,
|
4927
5405
|
yLinear,
|
4928
5406
|
label_label,
|
@@ -4950,7 +5428,7 @@ const areaPercent = [
|
|
4950
5428
|
color_color,
|
4951
5429
|
background_backgroundColor,
|
4952
5430
|
percent,
|
4953
|
-
|
5431
|
+
datasetXY,
|
4954
5432
|
xBand,
|
4955
5433
|
yLinear,
|
4956
5434
|
label_label,
|
@@ -4976,7 +5454,7 @@ const pivotAreaPercent = [
|
|
4976
5454
|
color_color,
|
4977
5455
|
background_backgroundColor,
|
4978
5456
|
percent,
|
4979
|
-
|
5457
|
+
datasetXY,
|
4980
5458
|
xBand,
|
4981
5459
|
yLinear,
|
4982
5460
|
label_label,
|
@@ -5012,7 +5490,7 @@ const areaRange = [
|
|
5012
5490
|
pointStyle_pointStyle,
|
5013
5491
|
pointStateDimensionHover
|
5014
5492
|
]),
|
5015
|
-
|
5493
|
+
datasetXY,
|
5016
5494
|
background_backgroundColor,
|
5017
5495
|
xBand,
|
5018
5496
|
yLinear,
|
@@ -5029,42 +5507,91 @@ const pivotAreaRange = [
|
|
5029
5507
|
pivotIndicators_pivotIndicatorsAsRow,
|
5030
5508
|
datasetPivot,
|
5031
5509
|
pivotIndicators([
|
5032
|
-
series([
|
5033
|
-
initAreaRange,
|
5034
|
-
areaStyle_areaStyle
|
5035
|
-
], [
|
5036
|
-
initAreaRangeLine1,
|
5037
|
-
lineStyle_lineStyle,
|
5038
|
-
pointStyle_pointStyle,
|
5039
|
-
pointStateDimensionHover
|
5040
|
-
], [
|
5041
|
-
initAreaRangeLine2,
|
5042
|
-
lineStyle_lineStyle,
|
5043
|
-
pointStyle_pointStyle,
|
5044
|
-
pointStateDimensionHover
|
5045
|
-
]),
|
5510
|
+
series([
|
5511
|
+
initAreaRange,
|
5512
|
+
areaStyle_areaStyle
|
5513
|
+
], [
|
5514
|
+
initAreaRangeLine1,
|
5515
|
+
lineStyle_lineStyle,
|
5516
|
+
pointStyle_pointStyle,
|
5517
|
+
pointStateDimensionHover
|
5518
|
+
], [
|
5519
|
+
initAreaRangeLine2,
|
5520
|
+
lineStyle_lineStyle,
|
5521
|
+
pointStyle_pointStyle,
|
5522
|
+
pointStateDimensionHover
|
5523
|
+
]),
|
5524
|
+
background_backgroundColor,
|
5525
|
+
datasetXY,
|
5526
|
+
xBand,
|
5527
|
+
yLinear,
|
5528
|
+
label_label,
|
5529
|
+
verticalCrosshairLine,
|
5530
|
+
annotationPoint_annotationPoint,
|
5531
|
+
annotationVerticalLine_annotationVerticalLine,
|
5532
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
5533
|
+
annotationArea_annotationArea
|
5534
|
+
]),
|
5535
|
+
pivotRowDimensions,
|
5536
|
+
pivotColumnDimensions
|
5537
|
+
];
|
5538
|
+
const areaRangeSpecPipeline = [
|
5539
|
+
pivotAdapter_pivotAdapter(areaRange, pivotAreaRange)
|
5540
|
+
];
|
5541
|
+
const scatter = [
|
5542
|
+
initScatter,
|
5543
|
+
color_color,
|
5544
|
+
background_backgroundColor,
|
5545
|
+
datasetXY,
|
5546
|
+
xLinear,
|
5547
|
+
yLinear,
|
5548
|
+
label_label,
|
5549
|
+
tooltip_tooltip,
|
5550
|
+
verticalCrosshairLine,
|
5551
|
+
horizontalCrosshairLine,
|
5552
|
+
discreteLegend,
|
5553
|
+
pointStyle_pointStyle,
|
5554
|
+
pointStateHover,
|
5555
|
+
annotationPoint_annotationPoint,
|
5556
|
+
annotationVerticalLine_annotationVerticalLine,
|
5557
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
5558
|
+
annotationArea_annotationArea
|
5559
|
+
];
|
5560
|
+
const pivotScatter = [
|
5561
|
+
initPivot,
|
5562
|
+
pivotGridStyle,
|
5563
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
5564
|
+
datasetPivot,
|
5565
|
+
pivotIndicators([
|
5566
|
+
initScatter,
|
5567
|
+
color_color,
|
5046
5568
|
background_backgroundColor,
|
5047
|
-
|
5048
|
-
|
5569
|
+
datasetXY,
|
5570
|
+
xLinear,
|
5049
5571
|
yLinear,
|
5050
5572
|
label_label,
|
5573
|
+
tooltip_tooltip,
|
5051
5574
|
verticalCrosshairLine,
|
5575
|
+
horizontalCrosshairLine,
|
5576
|
+
pointStyle_pointStyle,
|
5577
|
+
pointStateHover,
|
5052
5578
|
annotationPoint_annotationPoint,
|
5053
5579
|
annotationVerticalLine_annotationVerticalLine,
|
5054
5580
|
annotationHorizontalLine_annotationHorizontalLine,
|
5055
5581
|
annotationArea_annotationArea
|
5056
5582
|
]),
|
5057
5583
|
pivotRowDimensions,
|
5058
|
-
pivotColumnDimensions
|
5584
|
+
pivotColumnDimensions,
|
5585
|
+
pivotDiscreteLegend
|
5059
5586
|
];
|
5060
|
-
const
|
5061
|
-
pivotAdapter_pivotAdapter(
|
5587
|
+
const scatterSpecPipeline = [
|
5588
|
+
pivotAdapter_pivotAdapter(scatter, pivotScatter)
|
5062
5589
|
];
|
5063
5590
|
const pie = [
|
5064
5591
|
initPie,
|
5065
5592
|
color_color,
|
5066
5593
|
background_backgroundColor,
|
5067
|
-
|
5594
|
+
datasetXY,
|
5068
5595
|
label_label,
|
5069
5596
|
tooltip_tooltip,
|
5070
5597
|
discreteLegend,
|
@@ -5082,7 +5609,7 @@ const pivotPie = [
|
|
5082
5609
|
initPie,
|
5083
5610
|
color_color,
|
5084
5611
|
background_backgroundColor,
|
5085
|
-
|
5612
|
+
datasetXY,
|
5086
5613
|
label_label,
|
5087
5614
|
tooltip_tooltip,
|
5088
5615
|
annotationPoint_annotationPoint,
|
@@ -5101,7 +5628,7 @@ const donut = [
|
|
5101
5628
|
initDonut,
|
5102
5629
|
color_color,
|
5103
5630
|
background_backgroundColor,
|
5104
|
-
|
5631
|
+
datasetXY,
|
5105
5632
|
label_label,
|
5106
5633
|
tooltip_tooltip,
|
5107
5634
|
discreteLegend,
|
@@ -5119,7 +5646,7 @@ const pivotDonut = [
|
|
5119
5646
|
initDonut,
|
5120
5647
|
color_color,
|
5121
5648
|
background_backgroundColor,
|
5122
|
-
|
5649
|
+
datasetXY,
|
5123
5650
|
label_label,
|
5124
5651
|
tooltip_tooltip,
|
5125
5652
|
annotationPoint_annotationPoint,
|
@@ -5140,7 +5667,7 @@ const rose = [
|
|
5140
5667
|
stackInverse,
|
5141
5668
|
color_color,
|
5142
5669
|
background_backgroundColor,
|
5143
|
-
|
5670
|
+
datasetXY,
|
5144
5671
|
radiusAxis,
|
5145
5672
|
angleAxis,
|
5146
5673
|
label_label,
|
@@ -5159,7 +5686,7 @@ const pivotRose = [
|
|
5159
5686
|
stackInverse,
|
5160
5687
|
color_color,
|
5161
5688
|
background_backgroundColor,
|
5162
|
-
|
5689
|
+
datasetXY,
|
5163
5690
|
radiusAxis,
|
5164
5691
|
angleAxis,
|
5165
5692
|
label_label,
|
@@ -5178,7 +5705,7 @@ const roseParallel = [
|
|
5178
5705
|
stackCornerRadius_stackCornerRadius,
|
5179
5706
|
color_color,
|
5180
5707
|
background_backgroundColor,
|
5181
|
-
|
5708
|
+
datasetXY,
|
5182
5709
|
radiusAxis,
|
5183
5710
|
angleAxis,
|
5184
5711
|
label_label,
|
@@ -5200,7 +5727,7 @@ const pivotRoseParallel = [
|
|
5200
5727
|
stackCornerRadius_stackCornerRadius,
|
5201
5728
|
color_color,
|
5202
5729
|
background_backgroundColor,
|
5203
|
-
|
5730
|
+
datasetXY,
|
5204
5731
|
radiusAxis,
|
5205
5732
|
angleAxis,
|
5206
5733
|
label_label,
|
@@ -5218,14 +5745,57 @@ const pivotRoseParallel = [
|
|
5218
5745
|
const roseParallelSpecPipeline = [
|
5219
5746
|
pivotAdapter_pivotAdapter(roseParallel, pivotRoseParallel)
|
5220
5747
|
];
|
5221
|
-
const
|
5222
|
-
|
5748
|
+
const radar = [
|
5749
|
+
initRadar,
|
5223
5750
|
color_color,
|
5224
5751
|
background_backgroundColor,
|
5225
|
-
|
5752
|
+
datasetXY,
|
5753
|
+
radarAngleAxis,
|
5754
|
+
radarRadiusAxis,
|
5226
5755
|
label_label,
|
5227
5756
|
tooltip_tooltip,
|
5757
|
+
verticalCrosshairLine,
|
5228
5758
|
discreteLegend,
|
5759
|
+
pointStyle_pointStyle,
|
5760
|
+
pointStateDimensionHover,
|
5761
|
+
lineStyle_lineStyle,
|
5762
|
+
areaStyle_areaStyle
|
5763
|
+
];
|
5764
|
+
const pivotRadar = [
|
5765
|
+
initPivot,
|
5766
|
+
pivotGridStyle,
|
5767
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
5768
|
+
datasetPivot,
|
5769
|
+
pivotIndicators([
|
5770
|
+
initRadar,
|
5771
|
+
color_color,
|
5772
|
+
background_backgroundColor,
|
5773
|
+
datasetXY,
|
5774
|
+
radarAngleAxis,
|
5775
|
+
radarRadiusAxis,
|
5776
|
+
label_label,
|
5777
|
+
tooltip_tooltip,
|
5778
|
+
verticalCrosshairLine,
|
5779
|
+
pointStyle_pointStyle,
|
5780
|
+
pointStateDimensionHover,
|
5781
|
+
lineStyle_lineStyle,
|
5782
|
+
areaStyle_areaStyle
|
5783
|
+
]),
|
5784
|
+
pivotRowDimensions,
|
5785
|
+
pivotColumnDimensions,
|
5786
|
+
pivotDiscreteLegend
|
5787
|
+
];
|
5788
|
+
const radarSpecPipeline = [
|
5789
|
+
pivotAdapter_pivotAdapter(radar, pivotRadar)
|
5790
|
+
];
|
5791
|
+
const funnel = [
|
5792
|
+
initFunnel,
|
5793
|
+
linearColor,
|
5794
|
+
background_backgroundColor,
|
5795
|
+
datasetXY,
|
5796
|
+
label_label,
|
5797
|
+
tooltip_tooltip,
|
5798
|
+
colorLegend,
|
5229
5799
|
annotationPoint_annotationPoint,
|
5230
5800
|
annotationVerticalLine_annotationVerticalLine,
|
5231
5801
|
annotationHorizontalLine_annotationHorizontalLine,
|
@@ -5238,71 +5808,111 @@ const pivotFunnel = [
|
|
5238
5808
|
datasetPivot,
|
5239
5809
|
pivotIndicators([
|
5240
5810
|
initFunnel,
|
5241
|
-
|
5811
|
+
linearColor,
|
5242
5812
|
background_backgroundColor,
|
5243
|
-
|
5813
|
+
datasetXY,
|
5244
5814
|
label_label,
|
5245
5815
|
tooltip_tooltip,
|
5816
|
+
colorLegend,
|
5246
5817
|
annotationPoint_annotationPoint,
|
5247
5818
|
annotationVerticalLine_annotationVerticalLine,
|
5248
5819
|
annotationHorizontalLine_annotationHorizontalLine,
|
5249
5820
|
annotationArea_annotationArea
|
5250
5821
|
]),
|
5251
5822
|
pivotRowDimensions,
|
5252
|
-
pivotColumnDimensions
|
5253
|
-
pivotDiscreteLegend
|
5823
|
+
pivotColumnDimensions
|
5254
5824
|
];
|
5255
5825
|
const funnelSpecPipeline = [
|
5256
5826
|
pivotAdapter_pivotAdapter(funnel, pivotFunnel)
|
5257
5827
|
];
|
5258
|
-
const
|
5259
|
-
|
5260
|
-
|
5828
|
+
const initHeatmap = (spec, context)=>{
|
5829
|
+
const result = {
|
5830
|
+
...spec
|
5831
|
+
};
|
5832
|
+
const { advancedVSeed } = context;
|
5833
|
+
const { encoding } = advancedVSeed;
|
5834
|
+
if (!encoding[0].y || !encoding[0].x || !encoding[0].color) return result;
|
5835
|
+
result.type = 'heatmap';
|
5836
|
+
result.direction = 'vertical';
|
5837
|
+
result.xField = encoding[0].x[0];
|
5838
|
+
result.yField = encoding[0].y[0];
|
5839
|
+
result.valueField = encoding[0].color[0];
|
5840
|
+
result.padding = 0;
|
5841
|
+
result.cell = {
|
5842
|
+
style: {
|
5843
|
+
shape: 'rect',
|
5844
|
+
stroke: '#ffffff',
|
5845
|
+
lineWidth: 1,
|
5846
|
+
fill: {
|
5847
|
+
field: encoding[0].color[0],
|
5848
|
+
scale: 'color'
|
5849
|
+
}
|
5850
|
+
}
|
5851
|
+
};
|
5852
|
+
result.axes = [
|
5853
|
+
{
|
5854
|
+
type: 'band',
|
5855
|
+
orient: 'left',
|
5856
|
+
bandPadding: 0
|
5857
|
+
},
|
5858
|
+
{
|
5859
|
+
type: 'band',
|
5860
|
+
orient: 'bottom',
|
5861
|
+
bandPadding: 0
|
5862
|
+
}
|
5863
|
+
];
|
5864
|
+
result.region = [
|
5865
|
+
{
|
5866
|
+
clip: true
|
5867
|
+
}
|
5868
|
+
];
|
5869
|
+
result.animation = true;
|
5870
|
+
return result;
|
5871
|
+
};
|
5872
|
+
const heatmap = [
|
5873
|
+
initHeatmap,
|
5874
|
+
linearColor,
|
5261
5875
|
background_backgroundColor,
|
5262
|
-
|
5263
|
-
xLinear,
|
5264
|
-
yLinear,
|
5876
|
+
datasetXY,
|
5265
5877
|
label_label,
|
5878
|
+
labelColorInversion,
|
5879
|
+
colorLegend,
|
5266
5880
|
tooltip_tooltip,
|
5267
|
-
verticalCrosshairLine,
|
5268
|
-
horizontalCrosshairLine,
|
5269
|
-
discreteLegend,
|
5270
5881
|
pointStyle_pointStyle,
|
5271
|
-
|
5882
|
+
pointStateDimensionHover,
|
5883
|
+
lineStyle_lineStyle,
|
5272
5884
|
annotationPoint_annotationPoint,
|
5273
5885
|
annotationVerticalLine_annotationVerticalLine,
|
5274
5886
|
annotationHorizontalLine_annotationHorizontalLine,
|
5275
5887
|
annotationArea_annotationArea
|
5276
5888
|
];
|
5277
|
-
const
|
5889
|
+
const pivotHeatmap = [
|
5278
5890
|
initPivot,
|
5279
5891
|
pivotGridStyle,
|
5280
5892
|
pivotIndicators_pivotIndicatorsAsRow,
|
5281
5893
|
datasetPivot,
|
5282
5894
|
pivotIndicators([
|
5283
|
-
|
5284
|
-
|
5895
|
+
initHeatmap,
|
5896
|
+
linearColor,
|
5285
5897
|
background_backgroundColor,
|
5286
|
-
|
5287
|
-
xLinear,
|
5288
|
-
yLinear,
|
5898
|
+
datasetXY,
|
5289
5899
|
label_label,
|
5900
|
+
labelColorInversion,
|
5901
|
+
colorLegend,
|
5290
5902
|
tooltip_tooltip,
|
5291
|
-
verticalCrosshairLine,
|
5292
|
-
horizontalCrosshairLine,
|
5293
5903
|
pointStyle_pointStyle,
|
5294
|
-
|
5904
|
+
pointStateDimensionHover,
|
5905
|
+
lineStyle_lineStyle,
|
5295
5906
|
annotationPoint_annotationPoint,
|
5296
5907
|
annotationVerticalLine_annotationVerticalLine,
|
5297
5908
|
annotationHorizontalLine_annotationHorizontalLine,
|
5298
5909
|
annotationArea_annotationArea
|
5299
5910
|
]),
|
5300
5911
|
pivotRowDimensions,
|
5301
|
-
pivotColumnDimensions
|
5302
|
-
pivotDiscreteLegend
|
5912
|
+
pivotColumnDimensions
|
5303
5913
|
];
|
5304
|
-
const
|
5305
|
-
pivotAdapter_pivotAdapter(
|
5914
|
+
const heatmapSpecPipeline = [
|
5915
|
+
pivotAdapter_pivotAdapter(heatmap, pivotHeatmap)
|
5306
5916
|
];
|
5307
5917
|
const initTable = (spec, context)=>{
|
5308
5918
|
const { advancedVSeed } = context;
|
@@ -5912,6 +6522,14 @@ const registerPivotTable = ()=>{
|
|
5912
6522
|
Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
|
5913
6523
|
Builder._specPipelineMap.pivotTable = pivotTableSpecPipeline;
|
5914
6524
|
};
|
6525
|
+
const registerHeatmap = ()=>{
|
6526
|
+
Builder._advancedPipelineMap.heatmap = heatmapAdvancedPipeline;
|
6527
|
+
Builder._specPipelineMap.heatmap = heatmapSpecPipeline;
|
6528
|
+
};
|
6529
|
+
const registerRadar = ()=>{
|
6530
|
+
Builder._advancedPipelineMap.radar = radarAdvancedPipeline;
|
6531
|
+
Builder._specPipelineMap.radar = radarSpecPipeline;
|
6532
|
+
};
|
5915
6533
|
const lightTheme = ()=>{
|
5916
6534
|
const linearAxis = {
|
5917
6535
|
nice: true,
|
@@ -6186,6 +6804,9 @@ const lightTheme = ()=>{
|
|
6186
6804
|
donut: {
|
6187
6805
|
...baseConfig
|
6188
6806
|
},
|
6807
|
+
radar: {
|
6808
|
+
...baseConfig
|
6809
|
+
},
|
6189
6810
|
rose: {
|
6190
6811
|
...baseConfig
|
6191
6812
|
},
|
@@ -6206,7 +6827,24 @@ const lightTheme = ()=>{
|
|
6206
6827
|
'#ACB9FF',
|
6207
6828
|
'#B7C4FF',
|
6208
6829
|
'#C2CEFF'
|
6209
|
-
]
|
6830
|
+
].reverse()
|
6831
|
+
}
|
6832
|
+
},
|
6833
|
+
heatmap: {
|
6834
|
+
...baseConfig,
|
6835
|
+
color: {
|
6836
|
+
colorScheme: [
|
6837
|
+
'#5766EC',
|
6838
|
+
'#6372F0',
|
6839
|
+
'#7080F4',
|
6840
|
+
'#7C8CFA',
|
6841
|
+
'#8998FF',
|
6842
|
+
'#95A3FF',
|
6843
|
+
'#A0AEFF',
|
6844
|
+
'#ACB9FF',
|
6845
|
+
'#B7C4FF',
|
6846
|
+
'#C2CEFF'
|
6847
|
+
].reverse()
|
6210
6848
|
}
|
6211
6849
|
}
|
6212
6850
|
}
|
@@ -6485,6 +7123,9 @@ const darkTheme = ()=>{
|
|
6485
7123
|
donut: {
|
6486
7124
|
...baseConfig
|
6487
7125
|
},
|
7126
|
+
radar: {
|
7127
|
+
...baseConfig
|
7128
|
+
},
|
6488
7129
|
rose: {
|
6489
7130
|
...baseConfig
|
6490
7131
|
},
|
@@ -6507,6 +7148,9 @@ const darkTheme = ()=>{
|
|
6507
7148
|
'#A0CEFF'
|
6508
7149
|
]
|
6509
7150
|
}
|
7151
|
+
},
|
7152
|
+
heatmap: {
|
7153
|
+
...baseConfig
|
6510
7154
|
}
|
6511
7155
|
}
|
6512
7156
|
};
|
@@ -6525,6 +7169,8 @@ const registerDarkTheme = ()=>{
|
|
6525
7169
|
registerCustomTheme('dark', darkTheme());
|
6526
7170
|
};
|
6527
7171
|
const registerAll = ()=>{
|
7172
|
+
registerTable();
|
7173
|
+
registerPivotTable();
|
6528
7174
|
registerLine();
|
6529
7175
|
registerColumn();
|
6530
7176
|
registerColumnParallel();
|
@@ -6535,14 +7181,14 @@ const registerAll = ()=>{
|
|
6535
7181
|
registerArea();
|
6536
7182
|
registerAreaPercent();
|
6537
7183
|
registerAreaRange();
|
7184
|
+
registerScatter();
|
6538
7185
|
registerPie();
|
6539
7186
|
registerDonut();
|
6540
7187
|
registerRose();
|
6541
7188
|
registerRoseParallel();
|
7189
|
+
registerRadar();
|
6542
7190
|
registerFunnel();
|
6543
|
-
|
6544
|
-
registerTable();
|
6545
|
-
registerPivotTable();
|
7191
|
+
registerHeatmap();
|
6546
7192
|
registerLightTheme();
|
6547
7193
|
registerDarkTheme();
|
6548
7194
|
};
|
@@ -6567,13 +7213,15 @@ const zChartType = external_zod_namespaceObject.z["enum"]([
|
|
6567
7213
|
'area',
|
6568
7214
|
'areaPercent',
|
6569
7215
|
'areaRange',
|
7216
|
+
'scatter',
|
7217
|
+
'dualAxis',
|
6570
7218
|
'rose',
|
6571
7219
|
'roseParallel',
|
6572
7220
|
'pie',
|
6573
7221
|
'donut',
|
6574
|
-
'
|
6575
|
-
'
|
6576
|
-
'
|
7222
|
+
'radar',
|
7223
|
+
'funnel',
|
7224
|
+
'heatmap'
|
6577
7225
|
]);
|
6578
7226
|
const zDatum = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.number()), external_zod_namespaceObject.z.any());
|
6579
7227
|
const zDataset = external_zod_namespaceObject.z.array(zDatum);
|
@@ -6777,6 +7425,9 @@ const zColor = external_zod_namespaceObject.z.object({
|
|
6777
7425
|
colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
|
6778
7426
|
colorMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.string()).optional()
|
6779
7427
|
});
|
7428
|
+
const zLinearColor = external_zod_namespaceObject.z.object({
|
7429
|
+
colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional()
|
7430
|
+
});
|
6780
7431
|
const zLabel = external_zod_namespaceObject.z.object({
|
6781
7432
|
enable: external_zod_namespaceObject.z.boolean().default(true).optional()
|
6782
7433
|
});
|
@@ -6834,6 +7485,31 @@ const zLegend = external_zod_namespaceObject.z.object({
|
|
6834
7485
|
labelFontColor: external_zod_namespaceObject.z.string().default('#fff').optional(),
|
6835
7486
|
labelFontWeight: external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.string()).default(400).optional()
|
6836
7487
|
});
|
7488
|
+
const zColorLegend = external_zod_namespaceObject.z.object({
|
7489
|
+
position: external_zod_namespaceObject.z["enum"]([
|
7490
|
+
'left',
|
7491
|
+
'leftTop',
|
7492
|
+
'leftBottom',
|
7493
|
+
'lt',
|
7494
|
+
'lb',
|
7495
|
+
'top',
|
7496
|
+
'topLeft',
|
7497
|
+
'topRight',
|
7498
|
+
'tl',
|
7499
|
+
'tr',
|
7500
|
+
'right',
|
7501
|
+
'rightTop',
|
7502
|
+
'rightBottom',
|
7503
|
+
'rt',
|
7504
|
+
'rb',
|
7505
|
+
'bottom',
|
7506
|
+
'bottomLeft',
|
7507
|
+
'bottomRight',
|
7508
|
+
'bl',
|
7509
|
+
'br'
|
7510
|
+
]).default('bottom').optional(),
|
7511
|
+
enable: external_zod_namespaceObject.z.boolean().default(true).optional()
|
7512
|
+
});
|
6837
7513
|
const zTooltip = external_zod_namespaceObject.z.object({
|
6838
7514
|
enable: external_zod_namespaceObject.z.boolean().default(true).optional()
|
6839
7515
|
});
|
@@ -6898,22 +7574,6 @@ const zAreaConfig = external_zod_namespaceObject.z.object({
|
|
6898
7574
|
});
|
6899
7575
|
const zAreaPercentConfig = zAreaConfig;
|
6900
7576
|
const zAreaRangeConfig = zAreaConfig;
|
6901
|
-
const zRoseConfig = external_zod_namespaceObject.z.object({
|
6902
|
-
backgroundColor: zBackgroundColor.optional(),
|
6903
|
-
label: zLabel.optional(),
|
6904
|
-
color: zColor.optional(),
|
6905
|
-
tooltip: zTooltip.optional(),
|
6906
|
-
legend: zLegend.optional()
|
6907
|
-
});
|
6908
|
-
const zRoseParallelConfig = zRoseConfig;
|
6909
|
-
const zPieConfig = external_zod_namespaceObject.z.object({
|
6910
|
-
backgroundColor: zBackgroundColor.optional(),
|
6911
|
-
label: zLabel.optional(),
|
6912
|
-
color: zColor.optional(),
|
6913
|
-
tooltip: zTooltip.optional(),
|
6914
|
-
legend: zLegend.optional()
|
6915
|
-
});
|
6916
|
-
const zDonutConfig = zPieConfig;
|
6917
7577
|
const zDualAxisConfig = external_zod_namespaceObject.z.object({
|
6918
7578
|
backgroundColor: zBackgroundColor.optional(),
|
6919
7579
|
label: zLabel.optional(),
|
@@ -6931,13 +7591,25 @@ const zScatterConfig = external_zod_namespaceObject.z.object({
|
|
6931
7591
|
yAxis: zYLinearAxis.optional(),
|
6932
7592
|
crosshairLine: zCrosshairLine.optional()
|
6933
7593
|
});
|
6934
|
-
const
|
7594
|
+
const zRoseConfig = external_zod_namespaceObject.z.object({
|
6935
7595
|
backgroundColor: zBackgroundColor.optional(),
|
7596
|
+
label: zLabel.optional(),
|
6936
7597
|
color: zColor.optional(),
|
6937
7598
|
tooltip: zTooltip.optional(),
|
7599
|
+
legend: zLegend.optional()
|
7600
|
+
});
|
7601
|
+
const zRoseParallelConfig = zRoseConfig;
|
7602
|
+
const zPieConfig = external_zod_namespaceObject.z.object({
|
7603
|
+
backgroundColor: zBackgroundColor.optional(),
|
6938
7604
|
label: zLabel.optional(),
|
7605
|
+
color: zColor.optional(),
|
7606
|
+
tooltip: zTooltip.optional(),
|
6939
7607
|
legend: zLegend.optional()
|
6940
7608
|
});
|
7609
|
+
const zDonutConfig = zPieConfig;
|
7610
|
+
const zRadarConfig = zPieConfig;
|
7611
|
+
const zFunnelConfig = zPieConfig;
|
7612
|
+
const zHeatmapConfig = zPieConfig;
|
6941
7613
|
const zConfig = external_zod_namespaceObject.z.object({
|
6942
7614
|
table: zTableConfig.optional(),
|
6943
7615
|
pivotTable: zPivotTableConfig.optional(),
|
@@ -6951,13 +7623,15 @@ const zConfig = external_zod_namespaceObject.z.object({
|
|
6951
7623
|
area: zAreaConfig.optional(),
|
6952
7624
|
areaPercent: zAreaPercentConfig.optional(),
|
6953
7625
|
areaRange: zAreaRangeConfig.optional(),
|
7626
|
+
dualAxis: zDualAxisConfig.optional(),
|
7627
|
+
scatter: zScatterConfig.optional(),
|
6954
7628
|
rose: zRoseConfig.optional(),
|
6955
7629
|
roseParallel: zRoseParallelConfig.optional(),
|
6956
7630
|
pie: zPieConfig.optional(),
|
6957
7631
|
donut: zDonutConfig.optional(),
|
6958
|
-
|
6959
|
-
|
6960
|
-
|
7632
|
+
radar: zRadarConfig.optional(),
|
7633
|
+
funnel: zFunnelConfig.optional(),
|
7634
|
+
heatmap: zHeatmapConfig.optional()
|
6961
7635
|
});
|
6962
7636
|
const zAxis = external_zod_namespaceObject.z.object({
|
6963
7637
|
visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
|
@@ -7111,7 +7785,7 @@ const zLineStyle = external_zod_namespaceObject.z.object({
|
|
7111
7785
|
zSelector,
|
7112
7786
|
zSelectors
|
7113
7787
|
]).optional(),
|
7114
|
-
lineSmooth: external_zod_namespaceObject.z.boolean().
|
7788
|
+
lineSmooth: external_zod_namespaceObject.z.boolean().optional(),
|
7115
7789
|
lineColor: external_zod_namespaceObject.z.string().optional(),
|
7116
7790
|
lineColorOpacity: external_zod_namespaceObject.z.number().optional(),
|
7117
7791
|
lineWidth: external_zod_namespaceObject.z.number().optional(),
|
@@ -7576,6 +8250,27 @@ const zAreaRange = external_zod_namespaceObject.z.object({
|
|
7576
8250
|
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
7577
8251
|
locale: zLocale.optional()
|
7578
8252
|
});
|
8253
|
+
const zScatter = external_zod_namespaceObject.z.object({
|
8254
|
+
chartType: external_zod_namespaceObject.z.literal('scatter'),
|
8255
|
+
dataset: zDataset.optional(),
|
8256
|
+
dimensions: zDimensions.optional(),
|
8257
|
+
measures: zMeasureTree.optional(),
|
8258
|
+
backgroundColor: zBackgroundColor.optional(),
|
8259
|
+
color: zColor.optional(),
|
8260
|
+
label: zLabel.optional(),
|
8261
|
+
legend: zLegend.optional(),
|
8262
|
+
tooltip: zTooltip.optional(),
|
8263
|
+
xAxis: zXLinearAxis.optional(),
|
8264
|
+
yAxis: zYLinearAxis.optional(),
|
8265
|
+
crosshairLine: zCrosshairLine.optional(),
|
8266
|
+
theme: zTheme.optional(),
|
8267
|
+
pointStyle: zPointStyle.optional(),
|
8268
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
8269
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
8270
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
8271
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
8272
|
+
locale: zLocale.optional()
|
8273
|
+
});
|
7579
8274
|
const zRose = external_zod_namespaceObject.z.object({
|
7580
8275
|
chartType: external_zod_namespaceObject.z.literal('rose'),
|
7581
8276
|
dataset: zDataset.optional(),
|
@@ -7628,8 +8323,8 @@ const zDonut = external_zod_namespaceObject.z.object({
|
|
7628
8323
|
theme: zTheme.optional(),
|
7629
8324
|
locale: zLocale.optional()
|
7630
8325
|
});
|
7631
|
-
const
|
7632
|
-
chartType: external_zod_namespaceObject.z.literal('
|
8326
|
+
const zRadar = external_zod_namespaceObject.z.object({
|
8327
|
+
chartType: external_zod_namespaceObject.z.literal('radar'),
|
7633
8328
|
dataset: zDataset.optional(),
|
7634
8329
|
dimensions: zDimensions.optional(),
|
7635
8330
|
measures: zMeasureTree.optional(),
|
@@ -7638,15 +8333,7 @@ const zScatter = external_zod_namespaceObject.z.object({
|
|
7638
8333
|
label: zLabel.optional(),
|
7639
8334
|
legend: zLegend.optional(),
|
7640
8335
|
tooltip: zTooltip.optional(),
|
7641
|
-
xAxis: zXLinearAxis.optional(),
|
7642
|
-
yAxis: zYLinearAxis.optional(),
|
7643
|
-
crosshairLine: zCrosshairLine.optional(),
|
7644
8336
|
theme: zTheme.optional(),
|
7645
|
-
pointStyle: zPointStyle.optional(),
|
7646
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
7647
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
7648
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
7649
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
7650
8337
|
locale: zLocale.optional()
|
7651
8338
|
});
|
7652
8339
|
const zFunnel = external_zod_namespaceObject.z.object({
|
@@ -7655,9 +8342,22 @@ const zFunnel = external_zod_namespaceObject.z.object({
|
|
7655
8342
|
dimensions: zDimensions.optional(),
|
7656
8343
|
measures: zMeasureTree.optional(),
|
7657
8344
|
backgroundColor: zBackgroundColor.optional(),
|
7658
|
-
color:
|
8345
|
+
color: zLinearColor.optional(),
|
7659
8346
|
label: zLabel.optional(),
|
7660
|
-
legend:
|
8347
|
+
legend: zColorLegend.optional(),
|
8348
|
+
tooltip: zTooltip.optional(),
|
8349
|
+
theme: zTheme.optional(),
|
8350
|
+
locale: zLocale.optional()
|
8351
|
+
});
|
8352
|
+
const zHeatmap = external_zod_namespaceObject.z.object({
|
8353
|
+
chartType: external_zod_namespaceObject.z.literal('heatmap'),
|
8354
|
+
dataset: zDataset.optional(),
|
8355
|
+
dimensions: zDimensions.optional(),
|
8356
|
+
measures: zMeasureTree.optional(),
|
8357
|
+
backgroundColor: zBackgroundColor.optional(),
|
8358
|
+
color: zLinearColor.optional(),
|
8359
|
+
label: zLabel.optional(),
|
8360
|
+
legend: zColorLegend.optional(),
|
7661
8361
|
tooltip: zTooltip.optional(),
|
7662
8362
|
theme: zTheme.optional(),
|
7663
8363
|
locale: zLocale.optional()
|
@@ -7675,12 +8375,14 @@ const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
|
|
7675
8375
|
zArea,
|
7676
8376
|
zAreaPercent,
|
7677
8377
|
zAreaRange,
|
8378
|
+
zScatter,
|
7678
8379
|
zPie,
|
8380
|
+
zDonut,
|
7679
8381
|
zRose,
|
7680
8382
|
zRoseParallel,
|
7681
|
-
|
7682
|
-
|
7683
|
-
|
8383
|
+
zRadar,
|
8384
|
+
zFunnel,
|
8385
|
+
zHeatmap
|
7684
8386
|
]);
|
7685
8387
|
const zAdvancedVSeed = external_zod_namespaceObject.z.object({
|
7686
8388
|
chartType: zChartType,
|
@@ -7732,6 +8434,7 @@ exports.dataReshapeFor1D = __webpack_exports__.dataReshapeFor1D;
|
|
7732
8434
|
exports.dataReshapeFor1D1M = __webpack_exports__.dataReshapeFor1D1M;
|
7733
8435
|
exports.dataReshapeFor1D2M = __webpack_exports__.dataReshapeFor1D2M;
|
7734
8436
|
exports.dataReshapeFor2D1M = __webpack_exports__.dataReshapeFor2D1M;
|
8437
|
+
exports.dataReshapeFor2D1M0Name = __webpack_exports__.dataReshapeFor2D1M0Name;
|
7735
8438
|
exports.donutAdvancedPipeline = __webpack_exports__.donutAdvancedPipeline;
|
7736
8439
|
exports.donutSpecPipeline = __webpack_exports__.donutSpecPipeline;
|
7737
8440
|
exports.execPipeline = __webpack_exports__.execPipeline;
|
@@ -7744,6 +8447,8 @@ exports.findMeasureById = __webpack_exports__.findMeasureById;
|
|
7744
8447
|
exports.foldMeasures = __webpack_exports__.foldMeasures;
|
7745
8448
|
exports.funnelAdvancedPipeline = __webpack_exports__.funnelAdvancedPipeline;
|
7746
8449
|
exports.funnelSpecPipeline = __webpack_exports__.funnelSpecPipeline;
|
8450
|
+
exports.heatmapAdvancedPipeline = __webpack_exports__.heatmapAdvancedPipeline;
|
8451
|
+
exports.heatmapSpecPipeline = __webpack_exports__.heatmapSpecPipeline;
|
7747
8452
|
exports.i18n = __webpack_exports__.i18n;
|
7748
8453
|
exports.intl = __webpack_exports__.intl;
|
7749
8454
|
exports.isPivotChart = __webpack_exports__.isPivotChart;
|
@@ -7759,6 +8464,8 @@ exports.pieSpecPipeline = __webpack_exports__.pieSpecPipeline;
|
|
7759
8464
|
exports.pivotTableAdvancedPipeline = __webpack_exports__.pivotTableAdvancedPipeline;
|
7760
8465
|
exports.pivotTableSpecPipeline = __webpack_exports__.pivotTableSpecPipeline;
|
7761
8466
|
exports.preorderTraverse = __webpack_exports__.preorderTraverse;
|
8467
|
+
exports.radarAdvancedPipeline = __webpack_exports__.radarAdvancedPipeline;
|
8468
|
+
exports.radarSpecPipeline = __webpack_exports__.radarSpecPipeline;
|
7762
8469
|
exports.registerAll = __webpack_exports__.registerAll;
|
7763
8470
|
exports.registerArea = __webpack_exports__.registerArea;
|
7764
8471
|
exports.registerAreaPercent = __webpack_exports__.registerAreaPercent;
|
@@ -7773,10 +8480,12 @@ exports.registerCustomTheme = __webpack_exports__.registerCustomTheme;
|
|
7773
8480
|
exports.registerDarkTheme = __webpack_exports__.registerDarkTheme;
|
7774
8481
|
exports.registerDonut = __webpack_exports__.registerDonut;
|
7775
8482
|
exports.registerFunnel = __webpack_exports__.registerFunnel;
|
8483
|
+
exports.registerHeatmap = __webpack_exports__.registerHeatmap;
|
7776
8484
|
exports.registerLightTheme = __webpack_exports__.registerLightTheme;
|
7777
8485
|
exports.registerLine = __webpack_exports__.registerLine;
|
7778
8486
|
exports.registerPie = __webpack_exports__.registerPie;
|
7779
8487
|
exports.registerPivotTable = __webpack_exports__.registerPivotTable;
|
8488
|
+
exports.registerRadar = __webpack_exports__.registerRadar;
|
7780
8489
|
exports.registerRose = __webpack_exports__.registerRose;
|
7781
8490
|
exports.registerRoseParallel = __webpack_exports__.registerRoseParallel;
|
7782
8491
|
exports.registerScatter = __webpack_exports__.registerScatter;
|
@@ -7817,6 +8526,7 @@ exports.zBarPercentConfig = __webpack_exports__.zBarPercentConfig;
|
|
7817
8526
|
exports.zBarStyle = __webpack_exports__.zBarStyle;
|
7818
8527
|
exports.zChartType = __webpack_exports__.zChartType;
|
7819
8528
|
exports.zColor = __webpack_exports__.zColor;
|
8529
|
+
exports.zColorLegend = __webpack_exports__.zColorLegend;
|
7820
8530
|
exports.zColumn = __webpack_exports__.zColumn;
|
7821
8531
|
exports.zColumnConfig = __webpack_exports__.zColumnConfig;
|
7822
8532
|
exports.zColumnParallel = __webpack_exports__.zColumnParallel;
|
@@ -7842,11 +8552,14 @@ exports.zEncoding = __webpack_exports__.zEncoding;
|
|
7842
8552
|
exports.zFoldInfo = __webpack_exports__.zFoldInfo;
|
7843
8553
|
exports.zFunnel = __webpack_exports__.zFunnel;
|
7844
8554
|
exports.zFunnelConfig = __webpack_exports__.zFunnelConfig;
|
8555
|
+
exports.zHeatmap = __webpack_exports__.zHeatmap;
|
8556
|
+
exports.zHeatmapConfig = __webpack_exports__.zHeatmapConfig;
|
7845
8557
|
exports.zLabel = __webpack_exports__.zLabel;
|
7846
8558
|
exports.zLegend = __webpack_exports__.zLegend;
|
7847
8559
|
exports.zLine = __webpack_exports__.zLine;
|
7848
8560
|
exports.zLineConfig = __webpack_exports__.zLineConfig;
|
7849
8561
|
exports.zLineStyle = __webpack_exports__.zLineStyle;
|
8562
|
+
exports.zLinearColor = __webpack_exports__.zLinearColor;
|
7850
8563
|
exports.zLocale = __webpack_exports__.zLocale;
|
7851
8564
|
exports.zMarkStyle = __webpack_exports__.zMarkStyle;
|
7852
8565
|
exports.zMeasure = __webpack_exports__.zMeasure;
|
@@ -7859,6 +8572,8 @@ exports.zPieConfig = __webpack_exports__.zPieConfig;
|
|
7859
8572
|
exports.zPivotTable = __webpack_exports__.zPivotTable;
|
7860
8573
|
exports.zPivotTableConfig = __webpack_exports__.zPivotTableConfig;
|
7861
8574
|
exports.zPointStyle = __webpack_exports__.zPointStyle;
|
8575
|
+
exports.zRadar = __webpack_exports__.zRadar;
|
8576
|
+
exports.zRadarConfig = __webpack_exports__.zRadarConfig;
|
7862
8577
|
exports.zRose = __webpack_exports__.zRose;
|
7863
8578
|
exports.zRoseConfig = __webpack_exports__.zRoseConfig;
|
7864
8579
|
exports.zRoseParallel = __webpack_exports__.zRoseParallel;
|
@@ -7914,6 +8629,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7914
8629
|
"dataReshapeFor1D1M",
|
7915
8630
|
"dataReshapeFor1D2M",
|
7916
8631
|
"dataReshapeFor2D1M",
|
8632
|
+
"dataReshapeFor2D1M0Name",
|
7917
8633
|
"donutAdvancedPipeline",
|
7918
8634
|
"donutSpecPipeline",
|
7919
8635
|
"execPipeline",
|
@@ -7926,6 +8642,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7926
8642
|
"foldMeasures",
|
7927
8643
|
"funnelAdvancedPipeline",
|
7928
8644
|
"funnelSpecPipeline",
|
8645
|
+
"heatmapAdvancedPipeline",
|
8646
|
+
"heatmapSpecPipeline",
|
7929
8647
|
"i18n",
|
7930
8648
|
"intl",
|
7931
8649
|
"isPivotChart",
|
@@ -7941,6 +8659,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7941
8659
|
"pivotTableAdvancedPipeline",
|
7942
8660
|
"pivotTableSpecPipeline",
|
7943
8661
|
"preorderTraverse",
|
8662
|
+
"radarAdvancedPipeline",
|
8663
|
+
"radarSpecPipeline",
|
7944
8664
|
"registerAll",
|
7945
8665
|
"registerArea",
|
7946
8666
|
"registerAreaPercent",
|
@@ -7955,10 +8675,12 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7955
8675
|
"registerDarkTheme",
|
7956
8676
|
"registerDonut",
|
7957
8677
|
"registerFunnel",
|
8678
|
+
"registerHeatmap",
|
7958
8679
|
"registerLightTheme",
|
7959
8680
|
"registerLine",
|
7960
8681
|
"registerPie",
|
7961
8682
|
"registerPivotTable",
|
8683
|
+
"registerRadar",
|
7962
8684
|
"registerRose",
|
7963
8685
|
"registerRoseParallel",
|
7964
8686
|
"registerScatter",
|
@@ -7999,6 +8721,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7999
8721
|
"zBarStyle",
|
8000
8722
|
"zChartType",
|
8001
8723
|
"zColor",
|
8724
|
+
"zColorLegend",
|
8002
8725
|
"zColumn",
|
8003
8726
|
"zColumnConfig",
|
8004
8727
|
"zColumnParallel",
|
@@ -8024,11 +8747,14 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8024
8747
|
"zFoldInfo",
|
8025
8748
|
"zFunnel",
|
8026
8749
|
"zFunnelConfig",
|
8750
|
+
"zHeatmap",
|
8751
|
+
"zHeatmapConfig",
|
8027
8752
|
"zLabel",
|
8028
8753
|
"zLegend",
|
8029
8754
|
"zLine",
|
8030
8755
|
"zLineConfig",
|
8031
8756
|
"zLineStyle",
|
8757
|
+
"zLinearColor",
|
8032
8758
|
"zLocale",
|
8033
8759
|
"zMarkStyle",
|
8034
8760
|
"zMeasure",
|
@@ -8041,6 +8767,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8041
8767
|
"zPivotTable",
|
8042
8768
|
"zPivotTableConfig",
|
8043
8769
|
"zPointStyle",
|
8770
|
+
"zRadar",
|
8771
|
+
"zRadarConfig",
|
8044
8772
|
"zRose",
|
8045
8773
|
"zRoseConfig",
|
8046
8774
|
"zRoseParallel",
|