@visactor/vseed 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +586 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +541 -105
- 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/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/init/index.d.ts +3 -2
- package/dist/pipeline/spec/chart/pipes/{axes/a.d.ts → init/radar.d.ts} +1 -1
- package/dist/types/advancedVSeed.d.ts +455 -185
- package/dist/types/chartType/heatmap/heatmap.d.ts +207 -0
- package/dist/types/chartType/heatmap/index.d.ts +1 -0
- package/dist/types/chartType/index.d.ts +4 -2
- 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/config.d.ts +519 -238
- package/dist/types/properties/theme/customTheme.d.ts +496 -228
- package/dist/types/vseed.d.ts +1018 -784
- package/dist/umd/index.js +564 -117
- 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,
|
@@ -89,31 +90,32 @@ __webpack_require__.d(__webpack_exports__, {
|
|
89
90
|
zColumnParallelConfig: ()=>zColumnParallelConfig,
|
90
91
|
donutSpecPipeline: ()=>donutSpecPipeline,
|
91
92
|
registerAreaPercent: ()=>registerAreaPercent,
|
92
|
-
|
93
|
+
zHeatmap: ()=>zHeatmap,
|
93
94
|
zBarPercent: ()=>zBarPercent,
|
95
|
+
zTheme: ()=>zTheme,
|
94
96
|
zDatum: ()=>zDatum,
|
95
97
|
barAdvancedPipeline: ()=>barAdvancedPipeline,
|
96
98
|
zCustomThemeConfig: ()=>zCustomThemeConfig,
|
97
99
|
registerColumnPercent: ()=>registerColumnPercent,
|
98
|
-
|
100
|
+
registerHeatmap: ()=>registerHeatmap,
|
99
101
|
registerAreaRange: ()=>registerAreaRange,
|
100
102
|
roseSpecPipeline: ()=>roseSpecPipeline,
|
103
|
+
dataReshapeFor2D1M0Name: ()=>dataReshapeFor2D1M0Name,
|
101
104
|
registerBarPercent: ()=>registerBarPercent,
|
102
|
-
zPivotTable: ()=>zPivotTable,
|
103
105
|
registerLightTheme: ()=>registerLightTheme,
|
104
106
|
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
105
107
|
zBarParallel: ()=>zBarParallel,
|
106
108
|
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
107
|
-
|
109
|
+
registerPivotTable: ()=>registerPivotTable,
|
108
110
|
tableAdvancedPipeline: ()=>tableAdvancedPipeline,
|
111
|
+
registerDarkTheme: ()=>registerDarkTheme,
|
109
112
|
pieSpecPipeline: ()=>pieSpecPipeline,
|
110
|
-
registerPivotTable: ()=>registerPivotTable,
|
111
113
|
zChartType: ()=>zChartType,
|
112
|
-
|
114
|
+
zCrosshairLine: ()=>zCrosshairLine,
|
113
115
|
barSpecPipeline: ()=>barSpecPipeline,
|
114
|
-
|
116
|
+
zMeasureTree: ()=>zMeasureTree,
|
115
117
|
registerRose: ()=>registerRose,
|
116
|
-
|
118
|
+
zPivotTable: ()=>zPivotTable,
|
117
119
|
unfoldDimensions: ()=>unfoldDimensions,
|
118
120
|
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
119
121
|
registerTable: ()=>registerTable,
|
@@ -123,30 +125,37 @@ __webpack_require__.d(__webpack_exports__, {
|
|
123
125
|
registerAll: ()=>registerAll,
|
124
126
|
registerBar: ()=>registerBar,
|
125
127
|
isVChart: ()=>isVChart,
|
128
|
+
radarSpecPipeline: ()=>radarSpecPipeline,
|
126
129
|
zPieConfig: ()=>zPieConfig,
|
130
|
+
zRadar: ()=>zRadar,
|
131
|
+
zRose: ()=>zRose,
|
127
132
|
zStackCornerRadius: ()=>zStackCornerRadius,
|
128
|
-
zTable: ()=>zTable,
|
129
133
|
registerLine: ()=>registerLine,
|
130
134
|
registerCustomTheme: ()=>registerCustomTheme,
|
131
135
|
zColor: ()=>zColor,
|
132
136
|
registerRoseParallel: ()=>registerRoseParallel,
|
133
137
|
registerDonut: ()=>registerDonut,
|
138
|
+
heatmapSpecPipeline: ()=>heatmapSpecPipeline,
|
139
|
+
heatmapAdvancedPipeline: ()=>heatmapAdvancedPipeline,
|
134
140
|
zDonutConfig: ()=>zDonutConfig,
|
135
|
-
zMeasureGroup: ()=>zMeasureGroup,
|
136
|
-
zUnfoldInfo: ()=>zUnfoldInfo,
|
137
141
|
zFunnelConfig: ()=>zFunnelConfig,
|
142
|
+
zMeasureGroup: ()=>zMeasureGroup,
|
138
143
|
zMeasures: ()=>zMeasures,
|
139
144
|
FoldMeasureName: ()=>FoldMeasureName,
|
145
|
+
zRadarConfig: ()=>zRadarConfig,
|
140
146
|
darkTheme: ()=>darkTheme,
|
141
147
|
createNumFormatter: ()=>createNumFormatter,
|
142
148
|
zAreaConfig: ()=>zAreaConfig,
|
143
149
|
zAxis: ()=>zAxis,
|
144
150
|
isVTable: ()=>isVTable,
|
151
|
+
zSortAxis: ()=>zSortAxis,
|
152
|
+
zTable: ()=>zTable,
|
145
153
|
zLine: ()=>zLine,
|
146
154
|
columnSpecPipeline: ()=>columnSpecPipeline,
|
147
155
|
UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
|
148
156
|
zDatasetReshapeInfo: ()=>zDatasetReshapeInfo,
|
149
157
|
zFoldInfo: ()=>zFoldInfo,
|
158
|
+
zUnfoldInfo: ()=>zUnfoldInfo,
|
150
159
|
zAreaStyle: ()=>zAreaStyle,
|
151
160
|
ORIGINAL_DATA: ()=>ORIGINAL_DATA,
|
152
161
|
zAnnotationArea: ()=>zAnnotationArea,
|
@@ -170,12 +179,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
170
179
|
findMeasureById: ()=>findMeasureById,
|
171
180
|
zVSeed: ()=>zVSeed,
|
172
181
|
areaPercentAdvancedPipeline: ()=>areaPercentAdvancedPipeline,
|
182
|
+
radarAdvancedPipeline: ()=>radarAdvancedPipeline,
|
173
183
|
zBackgroundColor: ()=>zBackgroundColor,
|
174
184
|
zAreaPercentConfig: ()=>zAreaPercentConfig,
|
175
185
|
registerBarParallel: ()=>registerBarParallel,
|
176
|
-
|
186
|
+
registerRadar: ()=>registerRadar,
|
177
187
|
zLocale: ()=>zLocale,
|
178
188
|
pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
|
189
|
+
zMeasure: ()=>zMeasure,
|
179
190
|
areaRangeSpecPipeline: ()=>areaRangeSpecPipeline,
|
180
191
|
areaRangeAdvancedPipeline: ()=>areaRangeAdvancedPipeline,
|
181
192
|
zAreaRange: ()=>zAreaRange,
|
@@ -870,6 +881,96 @@ const dataReshapeFor1D = (dataset, dimensions, measures, options)=>{
|
|
870
881
|
};
|
871
882
|
}
|
872
883
|
};
|
884
|
+
const unfoldZeroDimensions = (dataset, measures, measureName, unfoldGroupName = UnfoldDimensionGroup, unfoldGroupId = UnfoldDimensionGroupId)=>{
|
885
|
+
const unfoldInfo = {
|
886
|
+
groupName: unfoldGroupName,
|
887
|
+
groupId: unfoldGroupId,
|
888
|
+
colorItems: [],
|
889
|
+
colorIdMap: {}
|
890
|
+
};
|
891
|
+
if (0 === measures.length) return {
|
892
|
+
dataset,
|
893
|
+
unfoldInfo: {
|
894
|
+
groupName: unfoldGroupName,
|
895
|
+
groupId: unfoldGroupId,
|
896
|
+
colorItems: [],
|
897
|
+
colorIdMap: {}
|
898
|
+
}
|
899
|
+
};
|
900
|
+
const colorItems = [];
|
901
|
+
const colorMap = {};
|
902
|
+
for(let i = 0; i < dataset.length; i++){
|
903
|
+
const datum = dataset[i];
|
904
|
+
const colorName = measureName;
|
905
|
+
const colorId = measureName;
|
906
|
+
datum[unfoldGroupName] = colorName;
|
907
|
+
datum[unfoldGroupId] = colorId;
|
908
|
+
colorItems.push(colorId);
|
909
|
+
colorMap[colorId] = colorName;
|
910
|
+
}
|
911
|
+
unfoldInfo.colorItems = (0, external_remeda_namespaceObject.unique)(colorItems);
|
912
|
+
unfoldInfo.colorIdMap = colorMap;
|
913
|
+
return {
|
914
|
+
dataset,
|
915
|
+
unfoldInfo
|
916
|
+
};
|
917
|
+
};
|
918
|
+
const dataReshapeFor2D1M0Name_emptyReshapeResult = {
|
919
|
+
dataset: [],
|
920
|
+
foldInfo: {
|
921
|
+
foldMap: {},
|
922
|
+
measureId: '',
|
923
|
+
measureName: '',
|
924
|
+
measureValue: ''
|
925
|
+
},
|
926
|
+
unfoldInfo: {
|
927
|
+
groupName: '',
|
928
|
+
groupId: '',
|
929
|
+
colorItems: [],
|
930
|
+
colorIdMap: {}
|
931
|
+
}
|
932
|
+
};
|
933
|
+
const dataReshapeFor2D1M0Name = (dataset, dimensions, measures, options)=>{
|
934
|
+
const { foldMeasureId = FoldMeasureId, foldMeasureName = FoldMeasureName, foldMeasureValue = FoldMeasureValue, unfoldDimensionGroup = UnfoldDimensionGroup, unfoldDimensionGroupId = UnfoldDimensionGroupId } = options || {};
|
935
|
+
if (0 === dimensions.length && 0 === measures.length) return dataReshapeFor2D1M0Name_emptyReshapeResult;
|
936
|
+
const { dataset: foldedDataset, foldInfo } = foldMeasures(dataset, measures, foldMeasureId, foldMeasureName, foldMeasureValue);
|
937
|
+
if (0 === dimensions.length) {
|
938
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldZeroDimensions(foldedDataset, [
|
939
|
+
{
|
940
|
+
id: foldMeasureValue,
|
941
|
+
alias: i18n`指标值`
|
942
|
+
}
|
943
|
+
], i18n`指标名称`, unfoldDimensionGroup, unfoldDimensionGroupId);
|
944
|
+
return {
|
945
|
+
dataset: finalDataset,
|
946
|
+
foldInfo,
|
947
|
+
unfoldInfo
|
948
|
+
};
|
949
|
+
}
|
950
|
+
{
|
951
|
+
const onlyOneMeasure = 1 === measures.length;
|
952
|
+
const onlyOneDimension = 1 === dimensions.length;
|
953
|
+
const dims = [
|
954
|
+
...dimensions
|
955
|
+
];
|
956
|
+
if (!onlyOneMeasure || onlyOneDimension) dims.push({
|
957
|
+
id: foldMeasureName,
|
958
|
+
alias: i18n`指标名称`,
|
959
|
+
location: 'dimension'
|
960
|
+
});
|
961
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, dims, [
|
962
|
+
{
|
963
|
+
id: foldMeasureValue,
|
964
|
+
alias: i18n`指标值`
|
965
|
+
}
|
966
|
+
], 1, unfoldDimensionGroup, unfoldDimensionGroupId, foldMeasureId);
|
967
|
+
return {
|
968
|
+
dataset: finalDataset,
|
969
|
+
foldInfo,
|
970
|
+
unfoldInfo
|
971
|
+
};
|
972
|
+
}
|
973
|
+
};
|
873
974
|
const reshapeTo2D1M = (advancedVSeed, context)=>{
|
874
975
|
const result = {
|
875
976
|
...advancedVSeed
|
@@ -894,6 +995,30 @@ const reshapeTo2D1M = (advancedVSeed, context)=>{
|
|
894
995
|
measures
|
895
996
|
};
|
896
997
|
};
|
998
|
+
const reshapeTo2D1M0Name = (advancedVSeed, context)=>{
|
999
|
+
const result = {
|
1000
|
+
...advancedVSeed
|
1001
|
+
};
|
1002
|
+
const { vseed } = context;
|
1003
|
+
const { dataset } = vseed;
|
1004
|
+
const { dimensions, measures } = advancedVSeed;
|
1005
|
+
if (!measures || !dimensions || !dataset) return result;
|
1006
|
+
if (0 === measures.length) throw new Error('measures can not be empty');
|
1007
|
+
const { dataset: newDatasets, foldInfo, unfoldInfo } = dataReshapeFor2D1M0Name(dataset, dimensions, measures);
|
1008
|
+
return {
|
1009
|
+
...result,
|
1010
|
+
dataset: newDatasets,
|
1011
|
+
datasetReshapeInfo: [
|
1012
|
+
{
|
1013
|
+
id: '2D1M',
|
1014
|
+
foldInfo,
|
1015
|
+
unfoldInfo
|
1016
|
+
}
|
1017
|
+
],
|
1018
|
+
dimensions,
|
1019
|
+
measures
|
1020
|
+
};
|
1021
|
+
};
|
897
1022
|
const reshapeTo1D1M = (advancedVSeed, context)=>{
|
898
1023
|
const result = {
|
899
1024
|
...advancedVSeed
|
@@ -960,7 +1085,7 @@ const reshapeTo1D = (advancedVSeed, context)=>{
|
|
960
1085
|
]
|
961
1086
|
};
|
962
1087
|
};
|
963
|
-
const
|
1088
|
+
const pivotReshapeTo2D1M = (advancedVSeed, context)=>{
|
964
1089
|
const result = {
|
965
1090
|
...advancedVSeed
|
966
1091
|
};
|
@@ -973,14 +1098,14 @@ const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
|
973
1098
|
if (measures) measures.forEach((measure)=>{
|
974
1099
|
if (measure.children && measure.children.length > 0) measureGroups.push(measure);
|
975
1100
|
});
|
1101
|
+
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
976
1102
|
const newDatasets = [];
|
977
1103
|
const datasetReshapeInfo = [];
|
978
1104
|
measureGroups.forEach((measureGroup)=>{
|
979
1105
|
const measures = measureGroup.children;
|
980
1106
|
if (!measures) return;
|
981
|
-
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
982
1107
|
const groupId = measureGroup.id;
|
983
|
-
const { dataset: newSubDataset, foldInfo, unfoldInfo } =
|
1108
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor2D1M(dataset, commonDimensions, measures, {
|
984
1109
|
foldMeasureId: FoldMeasureId,
|
985
1110
|
foldMeasureName: FoldMeasureName,
|
986
1111
|
foldMeasureValue: FoldMeasureValue + groupId,
|
@@ -1000,7 +1125,47 @@ const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
|
1000
1125
|
datasetReshapeInfo: datasetReshapeInfo
|
1001
1126
|
};
|
1002
1127
|
};
|
1003
|
-
const
|
1128
|
+
const pivotReshapeTo2D1M0Name = (advancedVSeed, context)=>{
|
1129
|
+
const result = {
|
1130
|
+
...advancedVSeed
|
1131
|
+
};
|
1132
|
+
const { vseed } = context;
|
1133
|
+
const { dataset } = vseed;
|
1134
|
+
const { measures } = advancedVSeed;
|
1135
|
+
const dimensions = advancedVSeed.dimensions;
|
1136
|
+
if (!measures || !dimensions) return result;
|
1137
|
+
const measureGroups = [];
|
1138
|
+
if (measures) measures.forEach((measure)=>{
|
1139
|
+
if (measure.children && measure.children.length > 0) measureGroups.push(measure);
|
1140
|
+
});
|
1141
|
+
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
1142
|
+
const newDatasets = [];
|
1143
|
+
const datasetReshapeInfo = [];
|
1144
|
+
measureGroups.forEach((measureGroup)=>{
|
1145
|
+
const measures = measureGroup.children;
|
1146
|
+
if (!measures) return;
|
1147
|
+
const groupId = measureGroup.id;
|
1148
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor2D1M0Name(dataset, commonDimensions, measures, {
|
1149
|
+
foldMeasureId: FoldMeasureId,
|
1150
|
+
foldMeasureName: FoldMeasureName,
|
1151
|
+
foldMeasureValue: FoldMeasureValue + groupId,
|
1152
|
+
unfoldDimensionGroup: UnfoldDimensionGroup
|
1153
|
+
});
|
1154
|
+
const reshapeInfo = {
|
1155
|
+
id: groupId,
|
1156
|
+
foldInfo,
|
1157
|
+
unfoldInfo
|
1158
|
+
};
|
1159
|
+
newDatasets.push(newSubDataset);
|
1160
|
+
datasetReshapeInfo.push(reshapeInfo);
|
1161
|
+
});
|
1162
|
+
return {
|
1163
|
+
...result,
|
1164
|
+
dataset: newDatasets,
|
1165
|
+
datasetReshapeInfo: datasetReshapeInfo
|
1166
|
+
};
|
1167
|
+
};
|
1168
|
+
const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
1004
1169
|
const result = {
|
1005
1170
|
...advancedVSeed
|
1006
1171
|
};
|
@@ -1020,7 +1185,7 @@ const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
|
1020
1185
|
if (!measures) return;
|
1021
1186
|
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
1022
1187
|
const groupId = measureGroup.id;
|
1023
|
-
const { dataset: newSubDataset, foldInfo, unfoldInfo } =
|
1188
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor1D1M(dataset, commonDimensions, measures, {
|
1024
1189
|
foldMeasureId: FoldMeasureId,
|
1025
1190
|
foldMeasureName: FoldMeasureName,
|
1026
1191
|
foldMeasureValue: FoldMeasureValue + groupId,
|
@@ -1040,7 +1205,7 @@ const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
|
1040
1205
|
datasetReshapeInfo: datasetReshapeInfo
|
1041
1206
|
};
|
1042
1207
|
};
|
1043
|
-
const
|
1208
|
+
const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
1044
1209
|
const result = {
|
1045
1210
|
...advancedVSeed
|
1046
1211
|
};
|
@@ -1053,14 +1218,14 @@ const pivotReshapeTo2D1M = (advancedVSeed, context)=>{
|
|
1053
1218
|
if (measures) measures.forEach((measure)=>{
|
1054
1219
|
if (measure.children && measure.children.length > 0) measureGroups.push(measure);
|
1055
1220
|
});
|
1056
|
-
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
1057
1221
|
const newDatasets = [];
|
1058
1222
|
const datasetReshapeInfo = [];
|
1059
1223
|
measureGroups.forEach((measureGroup)=>{
|
1060
1224
|
const measures = measureGroup.children;
|
1061
1225
|
if (!measures) return;
|
1226
|
+
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
1062
1227
|
const groupId = measureGroup.id;
|
1063
|
-
const { dataset: newSubDataset, foldInfo, unfoldInfo } =
|
1228
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor1D2M(dataset, commonDimensions, measures, {
|
1064
1229
|
foldMeasureId: FoldMeasureId,
|
1065
1230
|
foldMeasureName: FoldMeasureName,
|
1066
1231
|
foldMeasureValue: FoldMeasureValue + groupId,
|
@@ -1371,6 +1536,43 @@ const encodingPie = (advancedVSeed)=>{
|
|
1371
1536
|
encoding
|
1372
1537
|
};
|
1373
1538
|
};
|
1539
|
+
const encodingAR = (advancedVSeed)=>{
|
1540
|
+
const result = {
|
1541
|
+
...advancedVSeed
|
1542
|
+
};
|
1543
|
+
const { datasetReshapeInfo, dimensions, measures } = advancedVSeed;
|
1544
|
+
if (!datasetReshapeInfo || !dimensions || !measures) return result;
|
1545
|
+
const angleDimension = dimensions.find((item)=>'rowDimension' !== item.location && 'columnDimension' !== item.location);
|
1546
|
+
const isZeroDimension = 0 === dimensions.length;
|
1547
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
1548
|
+
const { foldInfo, unfoldInfo } = cur;
|
1549
|
+
const angle = [
|
1550
|
+
isZeroDimension ? foldInfo.measureName : angleDimension?.id
|
1551
|
+
];
|
1552
|
+
const radius = [
|
1553
|
+
foldInfo.measureValue
|
1554
|
+
];
|
1555
|
+
const group = [
|
1556
|
+
unfoldInfo.groupId
|
1557
|
+
];
|
1558
|
+
const color = [
|
1559
|
+
unfoldInfo.groupId
|
1560
|
+
];
|
1561
|
+
return [
|
1562
|
+
...prev,
|
1563
|
+
{
|
1564
|
+
angle,
|
1565
|
+
radius,
|
1566
|
+
group,
|
1567
|
+
color
|
1568
|
+
}
|
1569
|
+
];
|
1570
|
+
}, []);
|
1571
|
+
return {
|
1572
|
+
...result,
|
1573
|
+
encoding
|
1574
|
+
};
|
1575
|
+
};
|
1374
1576
|
const encodingFunnel = (advancedVSeed)=>{
|
1375
1577
|
const result = {
|
1376
1578
|
...advancedVSeed
|
@@ -1484,6 +1686,8 @@ const donutConfig = pieConfig;
|
|
1484
1686
|
const roseConfig = pieConfig;
|
1485
1687
|
const roseParallelConfig = pieConfig;
|
1486
1688
|
const funnelConfig = pieConfig;
|
1689
|
+
const heatmapConfig = pieConfig;
|
1690
|
+
const radarConfig = pieConfig;
|
1487
1691
|
const theme_theme = (advancedVSeed, context)=>{
|
1488
1692
|
const { customTheme, vseed } = context;
|
1489
1693
|
const { theme = 'light', chartType } = vseed;
|
@@ -1619,9 +1823,9 @@ const lineAdvancedPipeline = [
|
|
1619
1823
|
autoMeasures,
|
1620
1824
|
autoDimensions,
|
1621
1825
|
pivotAdapter([
|
1622
|
-
|
1826
|
+
reshapeTo2D1M0Name
|
1623
1827
|
], [
|
1624
|
-
|
1828
|
+
pivotReshapeTo2D1M0Name
|
1625
1829
|
]),
|
1626
1830
|
encodingXY,
|
1627
1831
|
sortXBandAxis,
|
@@ -1738,9 +1942,9 @@ const areaAdvancedPipeline = [
|
|
1738
1942
|
autoMeasures,
|
1739
1943
|
autoDimensions,
|
1740
1944
|
pivotAdapter([
|
1741
|
-
|
1945
|
+
reshapeTo2D1M0Name
|
1742
1946
|
], [
|
1743
|
-
|
1947
|
+
pivotReshapeTo2D1M0Name
|
1744
1948
|
]),
|
1745
1949
|
encodingXY,
|
1746
1950
|
sortXBandAxis,
|
@@ -1755,9 +1959,9 @@ const areaPercentAdvancedPipeline = [
|
|
1755
1959
|
autoMeasures,
|
1756
1960
|
autoDimensions,
|
1757
1961
|
pivotAdapter([
|
1758
|
-
|
1962
|
+
reshapeTo2D1M0Name
|
1759
1963
|
], [
|
1760
|
-
|
1964
|
+
pivotReshapeTo2D1M0Name
|
1761
1965
|
]),
|
1762
1966
|
encodingXY,
|
1763
1967
|
sortXBandAxis,
|
@@ -1870,6 +2074,38 @@ const scatterAdvancedPipeline = [
|
|
1870
2074
|
markStyle_markStyle,
|
1871
2075
|
annotation_annotation
|
1872
2076
|
];
|
2077
|
+
const heatmapAdvancedPipeline = [
|
2078
|
+
initAdvancedVSeed,
|
2079
|
+
autoMeasures,
|
2080
|
+
autoDimensions,
|
2081
|
+
pivotAdapter([
|
2082
|
+
reshapeTo2D1M
|
2083
|
+
], [
|
2084
|
+
pivotReshapeTo2D1M
|
2085
|
+
]),
|
2086
|
+
encodingXY,
|
2087
|
+
sortXBandAxis,
|
2088
|
+
heatmapConfig,
|
2089
|
+
theme_theme,
|
2090
|
+
markStyle_markStyle,
|
2091
|
+
annotation_annotation
|
2092
|
+
];
|
2093
|
+
const radarAdvancedPipeline = [
|
2094
|
+
initAdvancedVSeed,
|
2095
|
+
autoMeasures,
|
2096
|
+
autoDimensions,
|
2097
|
+
pivotAdapter([
|
2098
|
+
reshapeTo2D1M0Name
|
2099
|
+
], [
|
2100
|
+
pivotReshapeTo2D1M0Name
|
2101
|
+
]),
|
2102
|
+
encodingAR,
|
2103
|
+
sort_sortLegend,
|
2104
|
+
radarConfig,
|
2105
|
+
theme_theme,
|
2106
|
+
markStyle_markStyle,
|
2107
|
+
annotation_annotation
|
2108
|
+
];
|
1873
2109
|
const autoMeasures_autoMeasures = (advancedVSeed, context)=>{
|
1874
2110
|
const result = {
|
1875
2111
|
...advancedVSeed
|
@@ -2454,21 +2690,46 @@ const initRoseParallel = (spec, context)=>{
|
|
2454
2690
|
result.animation = true;
|
2455
2691
|
return result;
|
2456
2692
|
};
|
2457
|
-
const
|
2693
|
+
const initScatter = (spec, context)=>{
|
2458
2694
|
const result = {
|
2459
2695
|
...spec
|
2460
2696
|
};
|
2461
|
-
|
2462
|
-
|
2463
|
-
|
2464
|
-
|
2465
|
-
|
2466
|
-
|
2467
|
-
|
2468
|
-
|
2469
|
-
|
2470
|
-
|
2697
|
+
const { advancedVSeed } = context;
|
2698
|
+
const { encoding } = advancedVSeed;
|
2699
|
+
if (!encoding[0].y || !encoding[0].x || !encoding[0].group) return result;
|
2700
|
+
result.type = 'scatter';
|
2701
|
+
result.direction = 'vertical';
|
2702
|
+
result.xField = encoding[0].x[0];
|
2703
|
+
result.yField = encoding[0].y[0];
|
2704
|
+
result.seriesField = encoding[0].group[0];
|
2705
|
+
result.padding = 0;
|
2706
|
+
result.region = [
|
2707
|
+
{
|
2708
|
+
clip: true
|
2709
|
+
}
|
2710
|
+
];
|
2711
|
+
result.animation = true;
|
2712
|
+
return result;
|
2713
|
+
};
|
2714
|
+
const initRadar = (spec, context)=>{
|
2715
|
+
const result = {
|
2716
|
+
...spec
|
2471
2717
|
};
|
2718
|
+
const { advancedVSeed } = context;
|
2719
|
+
const { encoding } = advancedVSeed;
|
2720
|
+
if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
|
2721
|
+
result.type = 'radar';
|
2722
|
+
result.angleField = encoding[0].angle[0];
|
2723
|
+
result.radiusField = encoding[0].radius[0];
|
2724
|
+
result.seriesField = encoding[0].group[0];
|
2725
|
+
result.padding = 0;
|
2726
|
+
result.region = [
|
2727
|
+
{
|
2728
|
+
clip: true
|
2729
|
+
}
|
2730
|
+
];
|
2731
|
+
result.animation = true;
|
2732
|
+
return result;
|
2472
2733
|
};
|
2473
2734
|
const initFunnel = (spec, context)=>{
|
2474
2735
|
const result = {
|
@@ -2499,34 +2760,29 @@ const initFunnel = (spec, context)=>{
|
|
2499
2760
|
fillOpacity: 0.6
|
2500
2761
|
}
|
2501
2762
|
}
|
2502
|
-
};
|
2503
|
-
result.transformLabel = {
|
2504
|
-
visible: true
|
2505
|
-
};
|
2506
|
-
result.animation = true;
|
2507
|
-
return result;
|
2508
|
-
};
|
2509
|
-
const initScatter = (spec, context)=>{
|
2510
|
-
const result = {
|
2511
|
-
...spec
|
2512
|
-
};
|
2513
|
-
const { advancedVSeed } = context;
|
2514
|
-
const { encoding } = advancedVSeed;
|
2515
|
-
if (!encoding[0].y || !encoding[0].x || !encoding[0].group) return result;
|
2516
|
-
result.type = 'scatter';
|
2517
|
-
result.direction = 'vertical';
|
2518
|
-
result.xField = encoding[0].x[0];
|
2519
|
-
result.yField = encoding[0].y[0];
|
2520
|
-
result.seriesField = encoding[0].group[0];
|
2521
|
-
result.padding = 0;
|
2522
|
-
result.region = [
|
2523
|
-
{
|
2524
|
-
clip: true
|
2525
|
-
}
|
2526
|
-
];
|
2763
|
+
};
|
2764
|
+
result.transformLabel = {
|
2765
|
+
visible: true
|
2766
|
+
};
|
2527
2767
|
result.animation = true;
|
2528
2768
|
return result;
|
2529
2769
|
};
|
2770
|
+
const initPivot = (spec)=>{
|
2771
|
+
const result = {
|
2772
|
+
...spec
|
2773
|
+
};
|
2774
|
+
return {
|
2775
|
+
...result,
|
2776
|
+
animation: true,
|
2777
|
+
rows: [],
|
2778
|
+
columns: [],
|
2779
|
+
indicators: [],
|
2780
|
+
records: [],
|
2781
|
+
widthMode: 'adaptive',
|
2782
|
+
heightMode: 'adaptive',
|
2783
|
+
indicatorsAsCol: false
|
2784
|
+
};
|
2785
|
+
};
|
2530
2786
|
const xBand = (spec, context)=>{
|
2531
2787
|
const result = {
|
2532
2788
|
...spec
|
@@ -2888,7 +3144,7 @@ const radiusAxis = (spec, context)=>{
|
|
2888
3144
|
};
|
2889
3145
|
const { advancedVSeed } = context;
|
2890
3146
|
const { dimensions, measures } = advancedVSeed;
|
2891
|
-
if (!dimensions || !measures) return
|
3147
|
+
if (!dimensions || !measures) return result;
|
2892
3148
|
const is0D = 0 === dimensions.length;
|
2893
3149
|
const is1M1D = 1 === dimensions.length && 1 === measures.length;
|
2894
3150
|
const showAxis = !(is0D || is1M1D);
|
@@ -2919,7 +3175,7 @@ const angleAxis = (spec, context)=>{
|
|
2919
3175
|
};
|
2920
3176
|
const { advancedVSeed } = context;
|
2921
3177
|
const { dimensions, measures } = advancedVSeed;
|
2922
|
-
if (!dimensions || !measures) return
|
3178
|
+
if (!dimensions || !measures) return result;
|
2923
3179
|
const is0D = 0 === dimensions.length;
|
2924
3180
|
const is1M1D = 1 === dimensions.length && 1 === measures.length;
|
2925
3181
|
const showAxis = !(is0D || is1M1D);
|
@@ -2955,6 +3211,59 @@ const angleAxis = (spec, context)=>{
|
|
2955
3211
|
});
|
2956
3212
|
return result;
|
2957
3213
|
};
|
3214
|
+
const radarAngleAxis = (spec, context)=>{
|
3215
|
+
const result = {
|
3216
|
+
...spec
|
3217
|
+
};
|
3218
|
+
const { advancedVSeed } = context;
|
3219
|
+
const { dimensions, measures } = advancedVSeed;
|
3220
|
+
if (!dimensions || !measures) return result;
|
3221
|
+
if (!result.axes) result.axes = [];
|
3222
|
+
result.axes.push({
|
3223
|
+
orient: 'angle',
|
3224
|
+
visible: true,
|
3225
|
+
zero: true,
|
3226
|
+
nice: true,
|
3227
|
+
grid: {
|
3228
|
+
visible: true
|
3229
|
+
},
|
3230
|
+
domainLine: {
|
3231
|
+
visible: true
|
3232
|
+
},
|
3233
|
+
tick: {
|
3234
|
+
visible: true
|
3235
|
+
}
|
3236
|
+
});
|
3237
|
+
return result;
|
3238
|
+
};
|
3239
|
+
const radarRadiusAxis = (spec, context)=>{
|
3240
|
+
const result = {
|
3241
|
+
...spec
|
3242
|
+
};
|
3243
|
+
const { advancedVSeed } = context;
|
3244
|
+
const { dimensions, measures } = advancedVSeed;
|
3245
|
+
if (!dimensions || !measures) return result;
|
3246
|
+
if (!result.axes) result.axes = [];
|
3247
|
+
result.axes.push({
|
3248
|
+
orient: 'radius',
|
3249
|
+
visible: true,
|
3250
|
+
zero: true,
|
3251
|
+
nice: true,
|
3252
|
+
grid: {
|
3253
|
+
visible: true
|
3254
|
+
},
|
3255
|
+
tick: {
|
3256
|
+
visible: true
|
3257
|
+
},
|
3258
|
+
label: {
|
3259
|
+
visible: true
|
3260
|
+
},
|
3261
|
+
domainLine: {
|
3262
|
+
visible: true
|
3263
|
+
}
|
3264
|
+
});
|
3265
|
+
return result;
|
3266
|
+
};
|
2958
3267
|
const percent = (spec, context)=>{
|
2959
3268
|
const result = {
|
2960
3269
|
...spec
|
@@ -2998,7 +3307,9 @@ const tooltip_tooltip = (spec, context)=>{
|
|
2998
3307
|
const { advancedVSeed } = context;
|
2999
3308
|
const { measures, datasetReshapeInfo, chartType } = advancedVSeed;
|
3000
3309
|
const baseConfig = advancedVSeed.config[chartType];
|
3001
|
-
const { tooltip
|
3310
|
+
const { tooltip = {
|
3311
|
+
enable: true
|
3312
|
+
} } = baseConfig;
|
3002
3313
|
const { enable } = tooltip;
|
3003
3314
|
const { measureId, measureValue } = datasetReshapeInfo[0].foldInfo;
|
3004
3315
|
const { groupName } = datasetReshapeInfo[0].unfoldInfo;
|
@@ -5060,6 +5371,55 @@ const pivotAreaRange = [
|
|
5060
5371
|
const areaRangeSpecPipeline = [
|
5061
5372
|
pivotAdapter_pivotAdapter(areaRange, pivotAreaRange)
|
5062
5373
|
];
|
5374
|
+
const scatter = [
|
5375
|
+
initScatter,
|
5376
|
+
color_color,
|
5377
|
+
background_backgroundColor,
|
5378
|
+
dataset_dataset,
|
5379
|
+
xLinear,
|
5380
|
+
yLinear,
|
5381
|
+
label_label,
|
5382
|
+
tooltip_tooltip,
|
5383
|
+
verticalCrosshairLine,
|
5384
|
+
horizontalCrosshairLine,
|
5385
|
+
discreteLegend,
|
5386
|
+
pointStyle_pointStyle,
|
5387
|
+
pointStateHover,
|
5388
|
+
annotationPoint_annotationPoint,
|
5389
|
+
annotationVerticalLine_annotationVerticalLine,
|
5390
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
5391
|
+
annotationArea_annotationArea
|
5392
|
+
];
|
5393
|
+
const pivotScatter = [
|
5394
|
+
initPivot,
|
5395
|
+
pivotGridStyle,
|
5396
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
5397
|
+
datasetPivot,
|
5398
|
+
pivotIndicators([
|
5399
|
+
initScatter,
|
5400
|
+
color_color,
|
5401
|
+
background_backgroundColor,
|
5402
|
+
dataset_dataset,
|
5403
|
+
xLinear,
|
5404
|
+
yLinear,
|
5405
|
+
label_label,
|
5406
|
+
tooltip_tooltip,
|
5407
|
+
verticalCrosshairLine,
|
5408
|
+
horizontalCrosshairLine,
|
5409
|
+
pointStyle_pointStyle,
|
5410
|
+
pointStateHover,
|
5411
|
+
annotationPoint_annotationPoint,
|
5412
|
+
annotationVerticalLine_annotationVerticalLine,
|
5413
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
5414
|
+
annotationArea_annotationArea
|
5415
|
+
]),
|
5416
|
+
pivotRowDimensions,
|
5417
|
+
pivotColumnDimensions,
|
5418
|
+
pivotDiscreteLegend
|
5419
|
+
];
|
5420
|
+
const scatterSpecPipeline = [
|
5421
|
+
pivotAdapter_pivotAdapter(scatter, pivotScatter)
|
5422
|
+
];
|
5063
5423
|
const pie = [
|
5064
5424
|
initPie,
|
5065
5425
|
color_color,
|
@@ -5218,6 +5578,49 @@ const pivotRoseParallel = [
|
|
5218
5578
|
const roseParallelSpecPipeline = [
|
5219
5579
|
pivotAdapter_pivotAdapter(roseParallel, pivotRoseParallel)
|
5220
5580
|
];
|
5581
|
+
const radar = [
|
5582
|
+
initRadar,
|
5583
|
+
color_color,
|
5584
|
+
background_backgroundColor,
|
5585
|
+
dataset_dataset,
|
5586
|
+
radarAngleAxis,
|
5587
|
+
radarRadiusAxis,
|
5588
|
+
label_label,
|
5589
|
+
tooltip_tooltip,
|
5590
|
+
verticalCrosshairLine,
|
5591
|
+
discreteLegend,
|
5592
|
+
pointStyle_pointStyle,
|
5593
|
+
pointStateDimensionHover,
|
5594
|
+
lineStyle_lineStyle,
|
5595
|
+
areaStyle_areaStyle
|
5596
|
+
];
|
5597
|
+
const pivotRadar = [
|
5598
|
+
initPivot,
|
5599
|
+
pivotGridStyle,
|
5600
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
5601
|
+
datasetPivot,
|
5602
|
+
pivotIndicators([
|
5603
|
+
initRadar,
|
5604
|
+
color_color,
|
5605
|
+
background_backgroundColor,
|
5606
|
+
dataset_dataset,
|
5607
|
+
radarAngleAxis,
|
5608
|
+
radarRadiusAxis,
|
5609
|
+
label_label,
|
5610
|
+
tooltip_tooltip,
|
5611
|
+
verticalCrosshairLine,
|
5612
|
+
pointStyle_pointStyle,
|
5613
|
+
pointStateDimensionHover,
|
5614
|
+
lineStyle_lineStyle,
|
5615
|
+
areaStyle_areaStyle
|
5616
|
+
]),
|
5617
|
+
pivotRowDimensions,
|
5618
|
+
pivotColumnDimensions,
|
5619
|
+
pivotDiscreteLegend
|
5620
|
+
];
|
5621
|
+
const radarSpecPipeline = [
|
5622
|
+
pivotAdapter_pivotAdapter(radar, pivotRadar)
|
5623
|
+
];
|
5221
5624
|
const funnel = [
|
5222
5625
|
initFunnel,
|
5223
5626
|
color_color,
|
@@ -5255,43 +5658,43 @@ const pivotFunnel = [
|
|
5255
5658
|
const funnelSpecPipeline = [
|
5256
5659
|
pivotAdapter_pivotAdapter(funnel, pivotFunnel)
|
5257
5660
|
];
|
5258
|
-
const
|
5259
|
-
|
5661
|
+
const heatmap = [
|
5662
|
+
initLine,
|
5260
5663
|
color_color,
|
5261
5664
|
background_backgroundColor,
|
5262
5665
|
dataset_dataset,
|
5263
|
-
|
5666
|
+
xBand,
|
5264
5667
|
yLinear,
|
5265
5668
|
label_label,
|
5266
5669
|
tooltip_tooltip,
|
5267
5670
|
verticalCrosshairLine,
|
5268
|
-
horizontalCrosshairLine,
|
5269
5671
|
discreteLegend,
|
5270
5672
|
pointStyle_pointStyle,
|
5271
|
-
|
5673
|
+
pointStateDimensionHover,
|
5674
|
+
lineStyle_lineStyle,
|
5272
5675
|
annotationPoint_annotationPoint,
|
5273
5676
|
annotationVerticalLine_annotationVerticalLine,
|
5274
5677
|
annotationHorizontalLine_annotationHorizontalLine,
|
5275
5678
|
annotationArea_annotationArea
|
5276
5679
|
];
|
5277
|
-
const
|
5680
|
+
const pivotHeatmap = [
|
5278
5681
|
initPivot,
|
5279
5682
|
pivotGridStyle,
|
5280
5683
|
pivotIndicators_pivotIndicatorsAsRow,
|
5281
5684
|
datasetPivot,
|
5282
5685
|
pivotIndicators([
|
5283
|
-
|
5686
|
+
initLine,
|
5284
5687
|
color_color,
|
5285
5688
|
background_backgroundColor,
|
5286
5689
|
dataset_dataset,
|
5287
|
-
|
5690
|
+
xBand,
|
5288
5691
|
yLinear,
|
5289
5692
|
label_label,
|
5290
5693
|
tooltip_tooltip,
|
5291
5694
|
verticalCrosshairLine,
|
5292
|
-
horizontalCrosshairLine,
|
5293
5695
|
pointStyle_pointStyle,
|
5294
|
-
|
5696
|
+
pointStateDimensionHover,
|
5697
|
+
lineStyle_lineStyle,
|
5295
5698
|
annotationPoint_annotationPoint,
|
5296
5699
|
annotationVerticalLine_annotationVerticalLine,
|
5297
5700
|
annotationHorizontalLine_annotationHorizontalLine,
|
@@ -5301,8 +5704,8 @@ const pivotScatter = [
|
|
5301
5704
|
pivotColumnDimensions,
|
5302
5705
|
pivotDiscreteLegend
|
5303
5706
|
];
|
5304
|
-
const
|
5305
|
-
pivotAdapter_pivotAdapter(
|
5707
|
+
const heatmapSpecPipeline = [
|
5708
|
+
pivotAdapter_pivotAdapter(heatmap, pivotHeatmap)
|
5306
5709
|
];
|
5307
5710
|
const initTable = (spec, context)=>{
|
5308
5711
|
const { advancedVSeed } = context;
|
@@ -5912,6 +6315,14 @@ const registerPivotTable = ()=>{
|
|
5912
6315
|
Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
|
5913
6316
|
Builder._specPipelineMap.pivotTable = pivotTableSpecPipeline;
|
5914
6317
|
};
|
6318
|
+
const registerHeatmap = ()=>{
|
6319
|
+
Builder._advancedPipelineMap.heatmap = heatmapAdvancedPipeline;
|
6320
|
+
Builder._specPipelineMap.heatmap = heatmapSpecPipeline;
|
6321
|
+
};
|
6322
|
+
const registerRadar = ()=>{
|
6323
|
+
Builder._advancedPipelineMap.radar = radarAdvancedPipeline;
|
6324
|
+
Builder._specPipelineMap.radar = radarSpecPipeline;
|
6325
|
+
};
|
5915
6326
|
const lightTheme = ()=>{
|
5916
6327
|
const linearAxis = {
|
5917
6328
|
nice: true,
|
@@ -6186,6 +6597,9 @@ const lightTheme = ()=>{
|
|
6186
6597
|
donut: {
|
6187
6598
|
...baseConfig
|
6188
6599
|
},
|
6600
|
+
radar: {
|
6601
|
+
...baseConfig
|
6602
|
+
},
|
6189
6603
|
rose: {
|
6190
6604
|
...baseConfig
|
6191
6605
|
},
|
@@ -6485,6 +6899,9 @@ const darkTheme = ()=>{
|
|
6485
6899
|
donut: {
|
6486
6900
|
...baseConfig
|
6487
6901
|
},
|
6902
|
+
radar: {
|
6903
|
+
...baseConfig
|
6904
|
+
},
|
6488
6905
|
rose: {
|
6489
6906
|
...baseConfig
|
6490
6907
|
},
|
@@ -6525,6 +6942,8 @@ const registerDarkTheme = ()=>{
|
|
6525
6942
|
registerCustomTheme('dark', darkTheme());
|
6526
6943
|
};
|
6527
6944
|
const registerAll = ()=>{
|
6945
|
+
registerTable();
|
6946
|
+
registerPivotTable();
|
6528
6947
|
registerLine();
|
6529
6948
|
registerColumn();
|
6530
6949
|
registerColumnParallel();
|
@@ -6535,14 +6954,14 @@ const registerAll = ()=>{
|
|
6535
6954
|
registerArea();
|
6536
6955
|
registerAreaPercent();
|
6537
6956
|
registerAreaRange();
|
6957
|
+
registerScatter();
|
6538
6958
|
registerPie();
|
6539
6959
|
registerDonut();
|
6540
6960
|
registerRose();
|
6541
6961
|
registerRoseParallel();
|
6962
|
+
registerRadar();
|
6542
6963
|
registerFunnel();
|
6543
|
-
|
6544
|
-
registerTable();
|
6545
|
-
registerPivotTable();
|
6964
|
+
registerHeatmap();
|
6546
6965
|
registerLightTheme();
|
6547
6966
|
registerDarkTheme();
|
6548
6967
|
};
|
@@ -6567,13 +6986,15 @@ const zChartType = external_zod_namespaceObject.z["enum"]([
|
|
6567
6986
|
'area',
|
6568
6987
|
'areaPercent',
|
6569
6988
|
'areaRange',
|
6989
|
+
'scatter',
|
6990
|
+
'dualAxis',
|
6570
6991
|
'rose',
|
6571
6992
|
'roseParallel',
|
6572
6993
|
'pie',
|
6573
6994
|
'donut',
|
6574
|
-
'
|
6575
|
-
'
|
6576
|
-
'
|
6995
|
+
'radar',
|
6996
|
+
'funnel',
|
6997
|
+
'heatmap'
|
6577
6998
|
]);
|
6578
6999
|
const zDatum = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.number()), external_zod_namespaceObject.z.any());
|
6579
7000
|
const zDataset = external_zod_namespaceObject.z.array(zDatum);
|
@@ -6898,22 +7319,6 @@ const zAreaConfig = external_zod_namespaceObject.z.object({
|
|
6898
7319
|
});
|
6899
7320
|
const zAreaPercentConfig = zAreaConfig;
|
6900
7321
|
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
7322
|
const zDualAxisConfig = external_zod_namespaceObject.z.object({
|
6918
7323
|
backgroundColor: zBackgroundColor.optional(),
|
6919
7324
|
label: zLabel.optional(),
|
@@ -6931,13 +7336,25 @@ const zScatterConfig = external_zod_namespaceObject.z.object({
|
|
6931
7336
|
yAxis: zYLinearAxis.optional(),
|
6932
7337
|
crosshairLine: zCrosshairLine.optional()
|
6933
7338
|
});
|
6934
|
-
const
|
7339
|
+
const zRoseConfig = external_zod_namespaceObject.z.object({
|
6935
7340
|
backgroundColor: zBackgroundColor.optional(),
|
7341
|
+
label: zLabel.optional(),
|
6936
7342
|
color: zColor.optional(),
|
6937
7343
|
tooltip: zTooltip.optional(),
|
7344
|
+
legend: zLegend.optional()
|
7345
|
+
});
|
7346
|
+
const zRoseParallelConfig = zRoseConfig;
|
7347
|
+
const zPieConfig = external_zod_namespaceObject.z.object({
|
7348
|
+
backgroundColor: zBackgroundColor.optional(),
|
6938
7349
|
label: zLabel.optional(),
|
7350
|
+
color: zColor.optional(),
|
7351
|
+
tooltip: zTooltip.optional(),
|
6939
7352
|
legend: zLegend.optional()
|
6940
7353
|
});
|
7354
|
+
const zDonutConfig = zPieConfig;
|
7355
|
+
const zRadarConfig = zPieConfig;
|
7356
|
+
const zFunnelConfig = zPieConfig;
|
7357
|
+
const zHeatmapConfig = zPieConfig;
|
6941
7358
|
const zConfig = external_zod_namespaceObject.z.object({
|
6942
7359
|
table: zTableConfig.optional(),
|
6943
7360
|
pivotTable: zPivotTableConfig.optional(),
|
@@ -6951,13 +7368,15 @@ const zConfig = external_zod_namespaceObject.z.object({
|
|
6951
7368
|
area: zAreaConfig.optional(),
|
6952
7369
|
areaPercent: zAreaPercentConfig.optional(),
|
6953
7370
|
areaRange: zAreaRangeConfig.optional(),
|
7371
|
+
dualAxis: zDualAxisConfig.optional(),
|
7372
|
+
scatter: zScatterConfig.optional(),
|
6954
7373
|
rose: zRoseConfig.optional(),
|
6955
7374
|
roseParallel: zRoseParallelConfig.optional(),
|
6956
7375
|
pie: zPieConfig.optional(),
|
6957
7376
|
donut: zDonutConfig.optional(),
|
6958
|
-
|
6959
|
-
|
6960
|
-
|
7377
|
+
radar: zRadarConfig.optional(),
|
7378
|
+
funnel: zFunnelConfig.optional(),
|
7379
|
+
heatmap: zHeatmapConfig.optional()
|
6961
7380
|
});
|
6962
7381
|
const zAxis = external_zod_namespaceObject.z.object({
|
6963
7382
|
visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
|
@@ -7576,6 +7995,27 @@ const zAreaRange = external_zod_namespaceObject.z.object({
|
|
7576
7995
|
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
7577
7996
|
locale: zLocale.optional()
|
7578
7997
|
});
|
7998
|
+
const zScatter = external_zod_namespaceObject.z.object({
|
7999
|
+
chartType: external_zod_namespaceObject.z.literal('scatter'),
|
8000
|
+
dataset: zDataset.optional(),
|
8001
|
+
dimensions: zDimensions.optional(),
|
8002
|
+
measures: zMeasureTree.optional(),
|
8003
|
+
backgroundColor: zBackgroundColor.optional(),
|
8004
|
+
color: zColor.optional(),
|
8005
|
+
label: zLabel.optional(),
|
8006
|
+
legend: zLegend.optional(),
|
8007
|
+
tooltip: zTooltip.optional(),
|
8008
|
+
xAxis: zXLinearAxis.optional(),
|
8009
|
+
yAxis: zYLinearAxis.optional(),
|
8010
|
+
crosshairLine: zCrosshairLine.optional(),
|
8011
|
+
theme: zTheme.optional(),
|
8012
|
+
pointStyle: zPointStyle.optional(),
|
8013
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
|
8014
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
|
8015
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
|
8016
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
|
8017
|
+
locale: zLocale.optional()
|
8018
|
+
});
|
7579
8019
|
const zRose = external_zod_namespaceObject.z.object({
|
7580
8020
|
chartType: external_zod_namespaceObject.z.literal('rose'),
|
7581
8021
|
dataset: zDataset.optional(),
|
@@ -7628,8 +8068,8 @@ const zDonut = external_zod_namespaceObject.z.object({
|
|
7628
8068
|
theme: zTheme.optional(),
|
7629
8069
|
locale: zLocale.optional()
|
7630
8070
|
});
|
7631
|
-
const
|
7632
|
-
chartType: external_zod_namespaceObject.z.literal('
|
8071
|
+
const zRadar = external_zod_namespaceObject.z.object({
|
8072
|
+
chartType: external_zod_namespaceObject.z.literal('radar'),
|
7633
8073
|
dataset: zDataset.optional(),
|
7634
8074
|
dimensions: zDimensions.optional(),
|
7635
8075
|
measures: zMeasureTree.optional(),
|
@@ -7638,15 +8078,7 @@ const zScatter = external_zod_namespaceObject.z.object({
|
|
7638
8078
|
label: zLabel.optional(),
|
7639
8079
|
legend: zLegend.optional(),
|
7640
8080
|
tooltip: zTooltip.optional(),
|
7641
|
-
xAxis: zXLinearAxis.optional(),
|
7642
|
-
yAxis: zYLinearAxis.optional(),
|
7643
|
-
crosshairLine: zCrosshairLine.optional(),
|
7644
8081
|
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
8082
|
locale: zLocale.optional()
|
7651
8083
|
});
|
7652
8084
|
const zFunnel = external_zod_namespaceObject.z.object({
|
@@ -7662,6 +8094,19 @@ const zFunnel = external_zod_namespaceObject.z.object({
|
|
7662
8094
|
theme: zTheme.optional(),
|
7663
8095
|
locale: zLocale.optional()
|
7664
8096
|
});
|
8097
|
+
const zHeatmap = external_zod_namespaceObject.z.object({
|
8098
|
+
chartType: external_zod_namespaceObject.z.literal('heatmap'),
|
8099
|
+
dataset: zDataset.optional(),
|
8100
|
+
dimensions: zDimensions.optional(),
|
8101
|
+
measures: zMeasureTree.optional(),
|
8102
|
+
backgroundColor: zBackgroundColor.optional(),
|
8103
|
+
color: zColor.optional(),
|
8104
|
+
label: zLabel.optional(),
|
8105
|
+
legend: zLegend.optional(),
|
8106
|
+
tooltip: zTooltip.optional(),
|
8107
|
+
theme: zTheme.optional(),
|
8108
|
+
locale: zLocale.optional()
|
8109
|
+
});
|
7665
8110
|
const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
|
7666
8111
|
zTable,
|
7667
8112
|
zPivotTable,
|
@@ -7675,12 +8120,14 @@ const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
|
|
7675
8120
|
zArea,
|
7676
8121
|
zAreaPercent,
|
7677
8122
|
zAreaRange,
|
8123
|
+
zScatter,
|
7678
8124
|
zPie,
|
8125
|
+
zDonut,
|
7679
8126
|
zRose,
|
7680
8127
|
zRoseParallel,
|
7681
|
-
|
7682
|
-
|
7683
|
-
|
8128
|
+
zRadar,
|
8129
|
+
zFunnel,
|
8130
|
+
zHeatmap
|
7684
8131
|
]);
|
7685
8132
|
const zAdvancedVSeed = external_zod_namespaceObject.z.object({
|
7686
8133
|
chartType: zChartType,
|
@@ -7732,6 +8179,7 @@ exports.dataReshapeFor1D = __webpack_exports__.dataReshapeFor1D;
|
|
7732
8179
|
exports.dataReshapeFor1D1M = __webpack_exports__.dataReshapeFor1D1M;
|
7733
8180
|
exports.dataReshapeFor1D2M = __webpack_exports__.dataReshapeFor1D2M;
|
7734
8181
|
exports.dataReshapeFor2D1M = __webpack_exports__.dataReshapeFor2D1M;
|
8182
|
+
exports.dataReshapeFor2D1M0Name = __webpack_exports__.dataReshapeFor2D1M0Name;
|
7735
8183
|
exports.donutAdvancedPipeline = __webpack_exports__.donutAdvancedPipeline;
|
7736
8184
|
exports.donutSpecPipeline = __webpack_exports__.donutSpecPipeline;
|
7737
8185
|
exports.execPipeline = __webpack_exports__.execPipeline;
|
@@ -7744,6 +8192,8 @@ exports.findMeasureById = __webpack_exports__.findMeasureById;
|
|
7744
8192
|
exports.foldMeasures = __webpack_exports__.foldMeasures;
|
7745
8193
|
exports.funnelAdvancedPipeline = __webpack_exports__.funnelAdvancedPipeline;
|
7746
8194
|
exports.funnelSpecPipeline = __webpack_exports__.funnelSpecPipeline;
|
8195
|
+
exports.heatmapAdvancedPipeline = __webpack_exports__.heatmapAdvancedPipeline;
|
8196
|
+
exports.heatmapSpecPipeline = __webpack_exports__.heatmapSpecPipeline;
|
7747
8197
|
exports.i18n = __webpack_exports__.i18n;
|
7748
8198
|
exports.intl = __webpack_exports__.intl;
|
7749
8199
|
exports.isPivotChart = __webpack_exports__.isPivotChart;
|
@@ -7759,6 +8209,8 @@ exports.pieSpecPipeline = __webpack_exports__.pieSpecPipeline;
|
|
7759
8209
|
exports.pivotTableAdvancedPipeline = __webpack_exports__.pivotTableAdvancedPipeline;
|
7760
8210
|
exports.pivotTableSpecPipeline = __webpack_exports__.pivotTableSpecPipeline;
|
7761
8211
|
exports.preorderTraverse = __webpack_exports__.preorderTraverse;
|
8212
|
+
exports.radarAdvancedPipeline = __webpack_exports__.radarAdvancedPipeline;
|
8213
|
+
exports.radarSpecPipeline = __webpack_exports__.radarSpecPipeline;
|
7762
8214
|
exports.registerAll = __webpack_exports__.registerAll;
|
7763
8215
|
exports.registerArea = __webpack_exports__.registerArea;
|
7764
8216
|
exports.registerAreaPercent = __webpack_exports__.registerAreaPercent;
|
@@ -7773,10 +8225,12 @@ exports.registerCustomTheme = __webpack_exports__.registerCustomTheme;
|
|
7773
8225
|
exports.registerDarkTheme = __webpack_exports__.registerDarkTheme;
|
7774
8226
|
exports.registerDonut = __webpack_exports__.registerDonut;
|
7775
8227
|
exports.registerFunnel = __webpack_exports__.registerFunnel;
|
8228
|
+
exports.registerHeatmap = __webpack_exports__.registerHeatmap;
|
7776
8229
|
exports.registerLightTheme = __webpack_exports__.registerLightTheme;
|
7777
8230
|
exports.registerLine = __webpack_exports__.registerLine;
|
7778
8231
|
exports.registerPie = __webpack_exports__.registerPie;
|
7779
8232
|
exports.registerPivotTable = __webpack_exports__.registerPivotTable;
|
8233
|
+
exports.registerRadar = __webpack_exports__.registerRadar;
|
7780
8234
|
exports.registerRose = __webpack_exports__.registerRose;
|
7781
8235
|
exports.registerRoseParallel = __webpack_exports__.registerRoseParallel;
|
7782
8236
|
exports.registerScatter = __webpack_exports__.registerScatter;
|
@@ -7842,6 +8296,8 @@ exports.zEncoding = __webpack_exports__.zEncoding;
|
|
7842
8296
|
exports.zFoldInfo = __webpack_exports__.zFoldInfo;
|
7843
8297
|
exports.zFunnel = __webpack_exports__.zFunnel;
|
7844
8298
|
exports.zFunnelConfig = __webpack_exports__.zFunnelConfig;
|
8299
|
+
exports.zHeatmap = __webpack_exports__.zHeatmap;
|
8300
|
+
exports.zHeatmapConfig = __webpack_exports__.zHeatmapConfig;
|
7845
8301
|
exports.zLabel = __webpack_exports__.zLabel;
|
7846
8302
|
exports.zLegend = __webpack_exports__.zLegend;
|
7847
8303
|
exports.zLine = __webpack_exports__.zLine;
|
@@ -7859,6 +8315,8 @@ exports.zPieConfig = __webpack_exports__.zPieConfig;
|
|
7859
8315
|
exports.zPivotTable = __webpack_exports__.zPivotTable;
|
7860
8316
|
exports.zPivotTableConfig = __webpack_exports__.zPivotTableConfig;
|
7861
8317
|
exports.zPointStyle = __webpack_exports__.zPointStyle;
|
8318
|
+
exports.zRadar = __webpack_exports__.zRadar;
|
8319
|
+
exports.zRadarConfig = __webpack_exports__.zRadarConfig;
|
7862
8320
|
exports.zRose = __webpack_exports__.zRose;
|
7863
8321
|
exports.zRoseConfig = __webpack_exports__.zRoseConfig;
|
7864
8322
|
exports.zRoseParallel = __webpack_exports__.zRoseParallel;
|
@@ -7914,6 +8372,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7914
8372
|
"dataReshapeFor1D1M",
|
7915
8373
|
"dataReshapeFor1D2M",
|
7916
8374
|
"dataReshapeFor2D1M",
|
8375
|
+
"dataReshapeFor2D1M0Name",
|
7917
8376
|
"donutAdvancedPipeline",
|
7918
8377
|
"donutSpecPipeline",
|
7919
8378
|
"execPipeline",
|
@@ -7926,6 +8385,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7926
8385
|
"foldMeasures",
|
7927
8386
|
"funnelAdvancedPipeline",
|
7928
8387
|
"funnelSpecPipeline",
|
8388
|
+
"heatmapAdvancedPipeline",
|
8389
|
+
"heatmapSpecPipeline",
|
7929
8390
|
"i18n",
|
7930
8391
|
"intl",
|
7931
8392
|
"isPivotChart",
|
@@ -7941,6 +8402,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7941
8402
|
"pivotTableAdvancedPipeline",
|
7942
8403
|
"pivotTableSpecPipeline",
|
7943
8404
|
"preorderTraverse",
|
8405
|
+
"radarAdvancedPipeline",
|
8406
|
+
"radarSpecPipeline",
|
7944
8407
|
"registerAll",
|
7945
8408
|
"registerArea",
|
7946
8409
|
"registerAreaPercent",
|
@@ -7955,10 +8418,12 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7955
8418
|
"registerDarkTheme",
|
7956
8419
|
"registerDonut",
|
7957
8420
|
"registerFunnel",
|
8421
|
+
"registerHeatmap",
|
7958
8422
|
"registerLightTheme",
|
7959
8423
|
"registerLine",
|
7960
8424
|
"registerPie",
|
7961
8425
|
"registerPivotTable",
|
8426
|
+
"registerRadar",
|
7962
8427
|
"registerRose",
|
7963
8428
|
"registerRoseParallel",
|
7964
8429
|
"registerScatter",
|
@@ -8024,6 +8489,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8024
8489
|
"zFoldInfo",
|
8025
8490
|
"zFunnel",
|
8026
8491
|
"zFunnelConfig",
|
8492
|
+
"zHeatmap",
|
8493
|
+
"zHeatmapConfig",
|
8027
8494
|
"zLabel",
|
8028
8495
|
"zLegend",
|
8029
8496
|
"zLine",
|
@@ -8041,6 +8508,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8041
8508
|
"zPivotTable",
|
8042
8509
|
"zPivotTableConfig",
|
8043
8510
|
"zPointStyle",
|
8511
|
+
"zRadar",
|
8512
|
+
"zRadarConfig",
|
8044
8513
|
"zRose",
|
8045
8514
|
"zRoseConfig",
|
8046
8515
|
"zRoseParallel",
|