@visactor/vseed 0.0.35 → 0.0.37
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 +8924 -8912
- package/dist/index.cjs +1128 -883
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1097 -870
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/table/pipes/config/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/config/pivotTableConfig.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/config/tableConfig.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipes/series/index.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipes/series/series.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/columns/dimensionsToColumns.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +0 -1
- package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/indicators/pivotDataConfig.d.ts +2 -0
- package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
- package/dist/pipeline/utils/dimensions/typeGuard.d.ts +4 -0
- package/dist/pipeline/utils/measures/index.d.ts +1 -0
- package/dist/pipeline/utils/measures/typeGuard.d.ts +4 -0
- package/dist/types/advancedVSeed.d.ts +3843 -3839
- package/dist/types/chartType/area/zArea.d.ts +569 -569
- package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +569 -569
- package/dist/types/chartType/areaRange/zAreaRange.d.ts +550 -550
- package/dist/types/chartType/bar/bar.d.ts +0 -1183
- package/dist/types/chartType/bar/index.d.ts +2 -1
- package/dist/types/chartType/bar/zBar.d.ts +1183 -0
- package/dist/types/chartType/barParallel/barParallel.d.ts +0 -1183
- package/dist/types/chartType/barParallel/index.d.ts +2 -1
- package/dist/types/chartType/barParallel/zBarParallel.d.ts +1183 -0
- package/dist/types/chartType/barPercent/barPercent.d.ts +0 -1183
- package/dist/types/chartType/barPercent/index.d.ts +2 -1
- package/dist/types/chartType/barPercent/zBarPercent.d.ts +1183 -0
- package/dist/types/chartType/column/column.d.ts +0 -1183
- package/dist/types/chartType/column/index.d.ts +2 -1
- package/dist/types/chartType/column/zColumn.d.ts +1183 -0
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +0 -1183
- package/dist/types/chartType/columnParallel/index.d.ts +2 -1
- package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +1183 -0
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +0 -1183
- package/dist/types/chartType/columnPercent/index.d.ts +2 -1
- package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +1183 -0
- package/dist/types/chartType/donut/donut.d.ts +0 -119
- package/dist/types/chartType/donut/index.d.ts +2 -1
- package/dist/types/chartType/donut/zDonut.d.ts +119 -0
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +58 -0
- package/dist/types/chartType/dualAxis/zDualAxis.d.ts +747 -749
- package/dist/types/chartType/funnel/funnel.d.ts +0 -89
- package/dist/types/chartType/funnel/index.d.ts +2 -1
- package/dist/types/chartType/funnel/zFunnel.d.ts +89 -0
- package/dist/types/chartType/heatmap/heatmap.d.ts +0 -89
- package/dist/types/chartType/heatmap/index.d.ts +2 -1
- package/dist/types/chartType/heatmap/zHeatmap.d.ts +89 -0
- package/dist/types/chartType/line/index.d.ts +2 -1
- package/dist/types/chartType/line/line.d.ts +0 -1365
- package/dist/types/chartType/line/zLine.d.ts +1365 -0
- package/dist/types/chartType/pie/index.d.ts +2 -1
- package/dist/types/chartType/pie/pie.d.ts +0 -119
- package/dist/types/chartType/pie/zPie.d.ts +119 -0
- package/dist/types/chartType/pivotTable/index.d.ts +2 -1
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +44 -60
- package/dist/types/chartType/pivotTable/zPivotTable.d.ts +68 -0
- package/dist/types/chartType/radar/index.d.ts +2 -1
- package/dist/types/chartType/radar/radar.d.ts +0 -119
- package/dist/types/chartType/radar/zRadar.d.ts +119 -0
- package/dist/types/chartType/rose/index.d.ts +2 -1
- package/dist/types/chartType/rose/rose.d.ts +0 -119
- package/dist/types/chartType/rose/zRose.d.ts +119 -0
- package/dist/types/chartType/roseParallel/index.d.ts +2 -1
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +0 -119
- package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +119 -0
- package/dist/types/chartType/scatter/index.d.ts +2 -1
- package/dist/types/chartType/scatter/scatter.d.ts +0 -1191
- package/dist/types/chartType/scatter/zScatter.d.ts +1191 -0
- package/dist/types/chartType/table/index.d.ts +2 -1
- package/dist/types/chartType/table/table.d.ts +45 -64
- package/dist/types/chartType/table/zTable.d.ts +68 -0
- package/dist/types/dataSelector/selector.d.ts +16 -16
- package/dist/types/properties/analysis/analysis.d.ts +1 -1
- package/dist/types/properties/analysis/sort.d.ts +2 -4
- package/dist/types/properties/analysis/sortLegend.d.ts +2 -3
- package/dist/types/properties/annotation/annotation.d.ts +308 -308
- package/dist/types/properties/annotation/annotationArea.d.ts +20 -130
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +31 -138
- package/dist/types/properties/annotation/annotationPoint.d.ts +20 -114
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +6 -113
- package/dist/types/properties/annotation/index.d.ts +8 -4
- package/dist/types/properties/annotation/zAnnotationArea.d.ts +110 -0
- package/dist/types/properties/annotation/zAnnotationHorizontalLine.d.ts +107 -0
- package/dist/types/properties/annotation/zAnnotationPoint.d.ts +94 -0
- package/dist/types/properties/annotation/zAnnotationVerticalLine.d.ts +107 -0
- package/dist/types/properties/config/axes/axis.d.ts +45 -45
- package/dist/types/properties/config/axes/bandAxis.d.ts +74 -74
- package/dist/types/properties/config/axes/linearAxis.d.ts +76 -76
- package/dist/types/properties/config/backgroundColor/backgroundColor.d.ts +1 -1
- package/dist/types/properties/config/color/color.d.ts +3 -3
- package/dist/types/properties/config/config.d.ts +3286 -3282
- package/dist/types/properties/config/crosshair/crosshair.d.ts +10 -10
- package/dist/types/properties/config/label/label.d.ts +1 -1
- package/dist/types/properties/config/legend/legend.d.ts +13 -13
- package/dist/types/properties/config/tooltip/tooltip.d.ts +1 -1
- package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +2 -2
- package/dist/types/properties/encoding/encoding.d.ts +8 -8
- package/dist/types/properties/markStyle/areaStyle.d.ts +20 -20
- package/dist/types/properties/markStyle/barStyle.d.ts +24 -24
- package/dist/types/properties/markStyle/lineStyle.d.ts +24 -24
- package/dist/types/properties/markStyle/markStyle.d.ts +194 -194
- package/dist/types/properties/markStyle/pointStyle.d.ts +35 -35
- package/dist/types/properties/measures/dualMeasures.d.ts +0 -2
- package/dist/types/properties/measures/zDualMeasures.d.ts +0 -4
- package/dist/types/properties/theme/customTheme.d.ts +3334 -3330
- package/dist/types/vseed.d.ts +6781 -6757
- package/dist/umd/index.js +1148 -905
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/umd/index.js
CHANGED
@@ -30,6 +30,7 @@
|
|
30
30
|
var __webpack_exports__ = {};
|
31
31
|
__webpack_require__.r(__webpack_exports__);
|
32
32
|
__webpack_require__.d(__webpack_exports__, {
|
33
|
+
zTooltip: ()=>zTooltip,
|
33
34
|
funnelAdvancedPipeline: ()=>funnelAdvancedPipeline,
|
34
35
|
zHeatmapConfig: ()=>zHeatmapConfig,
|
35
36
|
zBar: ()=>zBar,
|
@@ -54,6 +55,7 @@
|
|
54
55
|
zDualMeasure: ()=>zDualMeasure,
|
55
56
|
zSortLegend: ()=>zSortLegend,
|
56
57
|
pivotTableAdvancedPipeline: ()=>pivotTableAdvancedPipeline,
|
58
|
+
isMeasures: ()=>isMeasures,
|
57
59
|
zYBandAxis: ()=>zYBandAxis,
|
58
60
|
dataReshapeFor1D2M: ()=>dataReshapeFor1D2M,
|
59
61
|
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
@@ -107,31 +109,31 @@
|
|
107
109
|
registerLightTheme: ()=>registerLightTheme,
|
108
110
|
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
109
111
|
zBarParallel: ()=>zBarParallel,
|
110
|
-
|
112
|
+
registerDarkTheme: ()=>registerDarkTheme,
|
111
113
|
registerPivotTable: ()=>registerPivotTable,
|
112
|
-
|
113
|
-
|
114
|
+
isPartialDatumSelector: ()=>isPartialDatumSelector,
|
115
|
+
isDimensionGroup: ()=>isDimensionGroup,
|
114
116
|
dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
|
115
|
-
|
116
|
-
|
117
|
+
pieSpecPipeline: ()=>pieSpecPipeline,
|
118
|
+
tableAdvancedPipeline: ()=>tableAdvancedPipeline,
|
117
119
|
barSpecPipeline: ()=>barSpecPipeline,
|
118
|
-
|
120
|
+
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
119
121
|
registerRose: ()=>registerRose,
|
120
|
-
|
122
|
+
zChartType: ()=>zChartType,
|
121
123
|
unfoldDimensions: ()=>unfoldDimensions,
|
122
124
|
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
123
125
|
registerTable: ()=>registerTable,
|
124
126
|
autoFormatter: ()=>autoFormatter,
|
127
|
+
isMeasureGroup: ()=>isMeasureGroup,
|
125
128
|
findFirstDimension: ()=>findFirstDimension,
|
126
|
-
Builder: ()=>Builder,
|
127
129
|
registerAll: ()=>registerAll,
|
128
130
|
registerBar: ()=>registerBar,
|
129
131
|
isVChart: ()=>isVChart,
|
130
132
|
radarSpecPipeline: ()=>radarSpecPipeline,
|
133
|
+
Builder: ()=>Builder,
|
134
|
+
zCrosshairLine: ()=>zCrosshairLine,
|
131
135
|
zMeasureTree: ()=>zMeasureTree,
|
132
136
|
zPieConfig: ()=>zPieConfig,
|
133
|
-
zPivotTable: ()=>zPivotTable,
|
134
|
-
zRadar: ()=>zRadar,
|
135
137
|
registerLine: ()=>registerLine,
|
136
138
|
registerCustomTheme: ()=>registerCustomTheme,
|
137
139
|
zColor: ()=>zColor,
|
@@ -151,7 +153,7 @@
|
|
151
153
|
zAxis: ()=>zAxis,
|
152
154
|
isVTable: ()=>isVTable,
|
153
155
|
zMeasures: ()=>zMeasures,
|
154
|
-
|
156
|
+
zPivotTable: ()=>zPivotTable,
|
155
157
|
zLine: ()=>zLine,
|
156
158
|
columnSpecPipeline: ()=>columnSpecPipeline,
|
157
159
|
UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
|
@@ -160,8 +162,9 @@
|
|
160
162
|
zLinearColor: ()=>zLinearColor,
|
161
163
|
zAreaStyle: ()=>zAreaStyle,
|
162
164
|
ORIGINAL_DATA: ()=>ORIGINAL_DATA,
|
163
|
-
|
165
|
+
zRadarConfig: ()=>zRadarConfig,
|
164
166
|
zAnnotationArea: ()=>zAnnotationArea,
|
167
|
+
zStackCornerRadius: ()=>zStackCornerRadius,
|
165
168
|
zUnfoldInfo: ()=>zUnfoldInfo,
|
166
169
|
zRose: ()=>zRose,
|
167
170
|
columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
|
@@ -172,7 +175,9 @@
|
|
172
175
|
registerColumnParallel: ()=>registerColumnParallel,
|
173
176
|
updateAdvanced: ()=>updateAdvanced,
|
174
177
|
zDimension: ()=>zDimension,
|
178
|
+
zRadar: ()=>zRadar,
|
175
179
|
zTable: ()=>zTable,
|
180
|
+
isMeasure: ()=>isMeasure,
|
176
181
|
FoldSecondaryMeasureValue: ()=>FoldSecondaryMeasureValue,
|
177
182
|
zSort: ()=>zSort,
|
178
183
|
isPivotChart: ()=>isPivotChart,
|
@@ -194,8 +199,8 @@
|
|
194
199
|
registerBarParallel: ()=>registerBarParallel,
|
195
200
|
registerRadar: ()=>registerRadar,
|
196
201
|
zLocale: ()=>zLocale,
|
202
|
+
isDimension: ()=>isDimension,
|
197
203
|
pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
|
198
|
-
zMeasure: ()=>zMeasure,
|
199
204
|
areaRangeSpecPipeline: ()=>areaRangeSpecPipeline,
|
200
205
|
areaRangeAdvancedPipeline: ()=>areaRangeAdvancedPipeline,
|
201
206
|
dualAxisAdvancedPipeline: ()=>dualAxisAdvancedPipeline,
|
@@ -208,9 +213,10 @@
|
|
208
213
|
zConfig: ()=>zConfig,
|
209
214
|
zEncoding: ()=>zEncoding,
|
210
215
|
zBarStyle: ()=>zBarStyle,
|
216
|
+
zMeasure: ()=>zMeasure,
|
211
217
|
zRoseParallelConfig: ()=>zRoseParallelConfig,
|
212
|
-
zXLinearAxis: ()=>zXLinearAxis,
|
213
218
|
zAreaPercent: ()=>zAreaPercent,
|
219
|
+
zXLinearAxis: ()=>zXLinearAxis,
|
214
220
|
columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
|
215
221
|
isValueSelector: ()=>isValueSelector,
|
216
222
|
donutAdvancedPipeline: ()=>donutAdvancedPipeline,
|
@@ -228,8 +234,8 @@
|
|
228
234
|
lineAdvancedPipeline: ()=>lineAdvancedPipeline,
|
229
235
|
zBarPercentConfig: ()=>zBarPercentConfig,
|
230
236
|
lineSpecPipeline: ()=>lineSpecPipeline,
|
237
|
+
isDimensions: ()=>isDimensions,
|
231
238
|
zScatterConfig: ()=>zScatterConfig,
|
232
|
-
zTooltip: ()=>zTooltip,
|
233
239
|
createFormatter: ()=>createFormatter,
|
234
240
|
zDimensionGroup: ()=>zDimensionGroup,
|
235
241
|
isMeasureSelector: ()=>isMeasureSelector,
|
@@ -609,11 +615,6 @@
|
|
609
615
|
dataset
|
610
616
|
};
|
611
617
|
};
|
612
|
-
function chunk_BZNENX2T_r(o) {
|
613
|
-
if ("object" != typeof o || null === o) return !1;
|
614
|
-
let e = Object.getPrototypeOf(o);
|
615
|
-
return null === e || e === Object.prototype;
|
616
|
-
}
|
617
618
|
function chunk_D6FCK2GA_u(o, n, a) {
|
618
619
|
let t = (r)=>o(r, ...n);
|
619
620
|
return void 0 === a ? t : Object.assign(t, {
|
@@ -627,6 +628,46 @@
|
|
627
628
|
if (1 === a) return chunk_D6FCK2GA_u(r, n, o);
|
628
629
|
throw new Error("Wrong number of arguments");
|
629
630
|
}
|
631
|
+
function chunk_2T7K3PFL_i(...e) {
|
632
|
+
return chunk_WIMGWYZL_u(chunk_2T7K3PFL_o, e);
|
633
|
+
}
|
634
|
+
function chunk_2T7K3PFL_o(e, s) {
|
635
|
+
let r = {};
|
636
|
+
for (let n of s)n in e && (r[n] = e[n]);
|
637
|
+
return r;
|
638
|
+
}
|
639
|
+
const tableConfig_tableConfig = (advancedVSeed, context)=>{
|
640
|
+
const { vseed } = context;
|
641
|
+
const { chartType } = vseed;
|
642
|
+
const result = {
|
643
|
+
...advancedVSeed
|
644
|
+
};
|
645
|
+
const config = chunk_2T7K3PFL_i(vseed, [
|
646
|
+
'backgroundColor',
|
647
|
+
'bodyFontSize',
|
648
|
+
'bodyFontColor',
|
649
|
+
'bodyBackgroundColor',
|
650
|
+
'headerFontSize',
|
651
|
+
'headerFontColor',
|
652
|
+
'headerBackgroundColor',
|
653
|
+
'hoverHeaderBackgroundColor',
|
654
|
+
'hoverHeaderInlineBackgroundColor',
|
655
|
+
'selectedBorderColor',
|
656
|
+
'selectedBackgroundColor'
|
657
|
+
]);
|
658
|
+
result.config = {
|
659
|
+
...result.config || {},
|
660
|
+
[chartType]: {
|
661
|
+
...config
|
662
|
+
}
|
663
|
+
};
|
664
|
+
return result;
|
665
|
+
};
|
666
|
+
function chunk_BZNENX2T_r(o) {
|
667
|
+
if ("object" != typeof o || null === o) return !1;
|
668
|
+
let e = Object.getPrototypeOf(o);
|
669
|
+
return null === e || e === Object.prototype;
|
670
|
+
}
|
630
671
|
function D(...e) {
|
631
672
|
return chunk_WIMGWYZL_u(chunk_PDQFB3TV_s, e);
|
632
673
|
}
|
@@ -667,6 +708,22 @@
|
|
667
708
|
for (let [e, c] of n.entries())r[e] = chunk_BCBB46UE_u(c, o, t);
|
668
709
|
return r;
|
669
710
|
}
|
711
|
+
function chunk_SFZGYJFI_t(r) {
|
712
|
+
return "string" == typeof r;
|
713
|
+
}
|
714
|
+
function chunk_6GTAPB47_e(r) {
|
715
|
+
return "number" == typeof r && !Number.isNaN(r);
|
716
|
+
}
|
717
|
+
function chunk_NMC53JVB_o(e) {
|
718
|
+
return "object" == typeof e && null !== e;
|
719
|
+
}
|
720
|
+
function chunk_5S4PYKVY_t(...e) {
|
721
|
+
return chunk_WIMGWYZL_u(chunk_5S4PYKVY_u, e);
|
722
|
+
}
|
723
|
+
var chunk_5S4PYKVY_u = (e, o)=>({
|
724
|
+
...e,
|
725
|
+
...o
|
726
|
+
});
|
670
727
|
const theme_theme = (advancedVSeed, context)=>{
|
671
728
|
const { customTheme, vseed } = context;
|
672
729
|
const { theme = 'light', chartType } = vseed;
|
@@ -678,6 +735,10 @@
|
|
678
735
|
if (chartConfigTheme) {
|
679
736
|
const chartConfig = result.config?.[chartType] || {};
|
680
737
|
const mergedConfig = D(chartConfigTheme, chunk_BCBB46UE_d(chartConfig));
|
738
|
+
for(const _k in mergedConfig){
|
739
|
+
const key = _k;
|
740
|
+
if (Array.isArray(mergedConfig[key])) mergedConfig[key] = mergeArray(mergedConfig[key], chartConfigTheme[key]);
|
741
|
+
}
|
681
742
|
result.config = {
|
682
743
|
[chartType]: mergedConfig
|
683
744
|
};
|
@@ -690,16 +751,25 @@
|
|
690
751
|
};
|
691
752
|
return result;
|
692
753
|
};
|
754
|
+
const mergeArray = (arr, themeItem)=>{
|
755
|
+
if (chunk_JK3VNB42_n(themeItem) || chunk_SFZGYJFI_t(themeItem) || chunk_6GTAPB47_e(themeItem)) return arr;
|
756
|
+
if (!Array.isArray(arr)) return arr;
|
757
|
+
if (arr.some((d)=>!chunk_NMC53JVB_o(d))) return arr;
|
758
|
+
return arr.map((item)=>chunk_5S4PYKVY_t(themeItem, item));
|
759
|
+
};
|
693
760
|
const tableAdvancedPipeline = [
|
694
761
|
initAdvancedVSeed,
|
695
762
|
autoMeasures,
|
696
763
|
autoDimensions,
|
697
764
|
records_records,
|
765
|
+
tableConfig_tableConfig,
|
698
766
|
theme_theme
|
699
767
|
];
|
700
768
|
const initTable = (spec, context)=>{
|
701
769
|
const { advancedVSeed } = context;
|
702
770
|
const { dataset } = advancedVSeed;
|
771
|
+
const { config } = advancedVSeed;
|
772
|
+
const { backgroundColor = 'transparent' } = config.table || {};
|
703
773
|
return {
|
704
774
|
...spec,
|
705
775
|
records: dataset,
|
@@ -721,23 +791,26 @@
|
|
721
791
|
highlightMode: 'row'
|
722
792
|
},
|
723
793
|
theme: {
|
724
|
-
underlayBackgroundColor:
|
794
|
+
underlayBackgroundColor: backgroundColor
|
725
795
|
}
|
726
796
|
};
|
727
797
|
};
|
728
|
-
const
|
798
|
+
const isMeasure = (measure)=>!('children' in measure);
|
799
|
+
const isMeasureGroup = (measure)=>'children' in measure;
|
800
|
+
const isMeasures = (measures)=>measures.every(isMeasure);
|
801
|
+
const dimensionTreeToColumns = (spec, context)=>{
|
729
802
|
const { advancedVSeed } = context;
|
730
|
-
const
|
803
|
+
const dimensions = advancedVSeed.dimensions;
|
731
804
|
const result = {
|
732
805
|
...spec
|
733
806
|
};
|
734
807
|
const eachNode = (node)=>{
|
735
|
-
if (
|
736
|
-
return {
|
808
|
+
if (isMeasure(node)) return {
|
737
809
|
width: 'auto'
|
738
810
|
};
|
811
|
+
return {};
|
739
812
|
};
|
740
|
-
const columns = treeTreeToColumns(
|
813
|
+
const columns = treeTreeToColumns(dimensions, eachNode);
|
741
814
|
return {
|
742
815
|
...result,
|
743
816
|
columns: [
|
@@ -746,19 +819,109 @@
|
|
746
819
|
]
|
747
820
|
};
|
748
821
|
};
|
749
|
-
const
|
822
|
+
const treeTreeToColumns = (tree, callback)=>{
|
823
|
+
const result = tree.map((item)=>{
|
824
|
+
if ('children' in item && Array.isArray(item.children)) {
|
825
|
+
const groupNode = item;
|
826
|
+
const field = groupNode.id;
|
827
|
+
const title = groupNode.alias ?? groupNode.id;
|
828
|
+
const props = callback?.(groupNode) || {};
|
829
|
+
return {
|
830
|
+
field,
|
831
|
+
title,
|
832
|
+
columns: treeTreeToColumns(item.children, callback),
|
833
|
+
...props
|
834
|
+
};
|
835
|
+
}
|
836
|
+
{
|
837
|
+
const field = item.id;
|
838
|
+
const title = item.alias ?? item.id;
|
839
|
+
const props = callback?.(item) || {};
|
840
|
+
return {
|
841
|
+
field,
|
842
|
+
title,
|
843
|
+
...props
|
844
|
+
};
|
845
|
+
}
|
846
|
+
});
|
847
|
+
return result || [];
|
848
|
+
};
|
849
|
+
function chunk_VCYTMP4D_n(e) {
|
850
|
+
return void 0 === e ? !0 : "string" == typeof e || Array.isArray(e) ? 0 === e.length : 0 === Object.keys(e).length;
|
851
|
+
}
|
852
|
+
const createNumFormatter = (format, locale = intl.getLocale())=>{
|
853
|
+
const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
|
854
|
+
const numFormatterOptions = {
|
855
|
+
style: 'decimal',
|
856
|
+
notation: 'scientific' === type ? 'scientific' : 'standard',
|
857
|
+
roundingMode,
|
858
|
+
roundingPriority
|
859
|
+
};
|
860
|
+
if (chunk_6GTAPB47_e(fractionDigits)) {
|
861
|
+
if (fractionDigits >= 0) {
|
862
|
+
numFormatterOptions.minimumFractionDigits = fractionDigits;
|
863
|
+
numFormatterOptions.maximumFractionDigits = fractionDigits;
|
864
|
+
}
|
865
|
+
}
|
866
|
+
if (chunk_6GTAPB47_e(significantDigits) && significantDigits > 0) {
|
867
|
+
if (significantDigits > 0) {
|
868
|
+
numFormatterOptions.minimumSignificantDigits = significantDigits;
|
869
|
+
numFormatterOptions.maximumSignificantDigits = significantDigits;
|
870
|
+
}
|
871
|
+
}
|
872
|
+
const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
|
873
|
+
return (value)=>{
|
874
|
+
let num = Number(value);
|
875
|
+
let typeSymbol = '';
|
876
|
+
if (Number.isNaN(num)) return String(value);
|
877
|
+
if ('percent' === type) {
|
878
|
+
num *= 100;
|
879
|
+
typeSymbol = '%';
|
880
|
+
} else if ('permille' === type) {
|
881
|
+
num *= 1000;
|
882
|
+
typeSymbol = "\u2030";
|
883
|
+
} else if ('number' === type) num /= ratio || 1;
|
884
|
+
let numStr = numFormatter.format(num);
|
885
|
+
if (thousandSeparator) {
|
886
|
+
const parts = numStr.split('.');
|
887
|
+
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
888
|
+
numStr = parts.join('.');
|
889
|
+
}
|
890
|
+
return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
|
891
|
+
};
|
892
|
+
};
|
893
|
+
const autoNumFormatter = (value, locale = intl.getLocale())=>{
|
894
|
+
if (null == value) return String(value);
|
895
|
+
const num = Number(value);
|
896
|
+
if (Number.isNaN(num)) return String(value);
|
897
|
+
const numFormatterOptions = {
|
898
|
+
style: 'decimal',
|
899
|
+
notation: 'compact'
|
900
|
+
};
|
901
|
+
numFormatterOptions.minimumFractionDigits = 0;
|
902
|
+
numFormatterOptions.maximumFractionDigits = 2;
|
903
|
+
const numFormatter = new Intl.NumberFormat(locale, {
|
904
|
+
...numFormatterOptions
|
905
|
+
});
|
906
|
+
return numFormatter.format(Number(value));
|
907
|
+
};
|
908
|
+
const createFormatter = (format)=>createNumFormatter(format);
|
909
|
+
const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
|
910
|
+
const measureTreeToColumns = (spec, context)=>{
|
750
911
|
const { advancedVSeed } = context;
|
751
|
-
const
|
912
|
+
const { locale } = advancedVSeed;
|
913
|
+
const measures = advancedVSeed.measures;
|
752
914
|
const result = {
|
753
915
|
...spec
|
754
916
|
};
|
755
917
|
const eachNode = (node)=>{
|
756
|
-
if (
|
757
|
-
|
758
|
-
|
918
|
+
if (isMeasure(node)) return {
|
919
|
+
width: 'auto',
|
920
|
+
fieldFormat: fieldFormat(node, locale)
|
759
921
|
};
|
922
|
+
return {};
|
760
923
|
};
|
761
|
-
const columns =
|
924
|
+
const columns = measuresToColumns_treeTreeToColumns(measures, eachNode);
|
762
925
|
return {
|
763
926
|
...result,
|
764
927
|
columns: [
|
@@ -767,7 +930,16 @@
|
|
767
930
|
]
|
768
931
|
};
|
769
932
|
};
|
770
|
-
const
|
933
|
+
const fieldFormat = (node, locale)=>(datum)=>{
|
934
|
+
const { format = {}, autoFormat = true, id } = node;
|
935
|
+
const value = datum[id];
|
936
|
+
if (!chunk_VCYTMP4D_n(format)) {
|
937
|
+
const formatter = createFormatter(format);
|
938
|
+
return formatter(value);
|
939
|
+
}
|
940
|
+
if (autoFormat) return autoFormatter(value, locale);
|
941
|
+
};
|
942
|
+
const measuresToColumns_treeTreeToColumns = (tree, callback)=>{
|
771
943
|
const result = tree.map((item)=>{
|
772
944
|
if ('children' in item && Array.isArray(item.children)) {
|
773
945
|
const groupNode = item;
|
@@ -777,7 +949,7 @@
|
|
777
949
|
return {
|
778
950
|
field,
|
779
951
|
title,
|
780
|
-
columns:
|
952
|
+
columns: measuresToColumns_treeTreeToColumns(item.children, callback),
|
781
953
|
...props
|
782
954
|
};
|
783
955
|
}
|
@@ -799,8 +971,8 @@
|
|
799
971
|
...spec
|
800
972
|
};
|
801
973
|
const { advancedVSeed } = context;
|
802
|
-
const {
|
803
|
-
const themeConfig =
|
974
|
+
const { chartType, config } = advancedVSeed;
|
975
|
+
const themeConfig = config?.[chartType];
|
804
976
|
if (!result.theme || !themeConfig) return result;
|
805
977
|
const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)';
|
806
978
|
const backgroundColor = themeConfig.bodyBackgroundColor || '#fff';
|
@@ -838,8 +1010,8 @@
|
|
838
1010
|
...spec
|
839
1011
|
};
|
840
1012
|
const { advancedVSeed } = context;
|
841
|
-
const {
|
842
|
-
const themConfig =
|
1013
|
+
const { config, chartType } = advancedVSeed;
|
1014
|
+
const themConfig = config?.[chartType];
|
843
1015
|
if (!result.theme || !themConfig) return result;
|
844
1016
|
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
845
1017
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
@@ -886,8 +1058,8 @@
|
|
886
1058
|
...spec
|
887
1059
|
};
|
888
1060
|
const { advancedVSeed } = context;
|
889
|
-
const {
|
890
|
-
const themConfig =
|
1061
|
+
const { config, chartType } = advancedVSeed;
|
1062
|
+
const themConfig = config?.[chartType];
|
891
1063
|
if (!result.theme || !themConfig) return result;
|
892
1064
|
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
893
1065
|
result.theme.frameStyle = {
|
@@ -902,8 +1074,8 @@
|
|
902
1074
|
...spec
|
903
1075
|
};
|
904
1076
|
const { advancedVSeed } = context;
|
905
|
-
const {
|
906
|
-
const themConfig =
|
1077
|
+
const { config, chartType } = advancedVSeed;
|
1078
|
+
const themConfig = config?.[chartType];
|
907
1079
|
if (!result.theme || !themConfig) return result;
|
908
1080
|
const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
|
909
1081
|
const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)';
|
@@ -1027,16 +1199,46 @@
|
|
1027
1199
|
}));
|
1028
1200
|
return result;
|
1029
1201
|
};
|
1202
|
+
const pivotTableConfig = (advancedVSeed, context)=>{
|
1203
|
+
const { vseed } = context;
|
1204
|
+
const { chartType } = vseed;
|
1205
|
+
const result = {
|
1206
|
+
...advancedVSeed
|
1207
|
+
};
|
1208
|
+
const config = chunk_2T7K3PFL_i(vseed, [
|
1209
|
+
'backgroundColor',
|
1210
|
+
'bodyFontSize',
|
1211
|
+
'bodyFontColor',
|
1212
|
+
'bodyBackgroundColor',
|
1213
|
+
'headerFontSize',
|
1214
|
+
'headerFontColor',
|
1215
|
+
'headerBackgroundColor',
|
1216
|
+
'hoverHeaderBackgroundColor',
|
1217
|
+
'hoverHeaderInlineBackgroundColor',
|
1218
|
+
'selectedBorderColor',
|
1219
|
+
'selectedBackgroundColor'
|
1220
|
+
]);
|
1221
|
+
result.config = {
|
1222
|
+
...result.config || {},
|
1223
|
+
[chartType]: {
|
1224
|
+
...config
|
1225
|
+
}
|
1226
|
+
};
|
1227
|
+
return result;
|
1228
|
+
};
|
1030
1229
|
const pivotTableAdvancedPipeline = [
|
1031
1230
|
initAdvancedVSeed,
|
1032
1231
|
autoPivotMeasures,
|
1033
1232
|
autoPivotDimensions,
|
1034
1233
|
records_records,
|
1234
|
+
pivotTableConfig,
|
1035
1235
|
theme_theme
|
1036
1236
|
];
|
1037
1237
|
const initPivotTable = (spec, context)=>{
|
1038
1238
|
const { advancedVSeed } = context;
|
1039
1239
|
const { dataset } = advancedVSeed;
|
1240
|
+
const { config } = advancedVSeed;
|
1241
|
+
const { backgroundColor = 'transparent' } = config.pivotTable || {};
|
1040
1242
|
return {
|
1041
1243
|
...spec,
|
1042
1244
|
records: dataset,
|
@@ -1065,7 +1267,7 @@
|
|
1065
1267
|
direction: 'row'
|
1066
1268
|
},
|
1067
1269
|
theme: {
|
1068
|
-
underlayBackgroundColor:
|
1270
|
+
underlayBackgroundColor: backgroundColor
|
1069
1271
|
}
|
1070
1272
|
};
|
1071
1273
|
};
|
@@ -1097,26 +1299,39 @@
|
|
1097
1299
|
};
|
1098
1300
|
const pivotIndicators = (spec, context)=>{
|
1099
1301
|
const { advancedVSeed } = context;
|
1302
|
+
const { locale } = advancedVSeed;
|
1100
1303
|
const measures = advancedVSeed.measures;
|
1101
1304
|
return {
|
1102
1305
|
...spec,
|
1103
1306
|
indicatorsAsCol: true,
|
1104
1307
|
indicatorTitle: intl.i18n`指标名称`,
|
1105
|
-
indicators: measures.map((item)=>
|
1308
|
+
indicators: measures.map((item)=>{
|
1309
|
+
if (isMeasure(item)) return {
|
1106
1310
|
cellType: 'text',
|
1107
1311
|
indicatorKey: item.id,
|
1108
1312
|
title: item.alias || item.id,
|
1109
|
-
width: 'auto'
|
1110
|
-
|
1313
|
+
width: 'auto',
|
1314
|
+
format: pivotIndicators_fieldFormat(item, locale)
|
1315
|
+
};
|
1316
|
+
return {};
|
1317
|
+
})
|
1111
1318
|
};
|
1112
1319
|
};
|
1320
|
+
const pivotIndicators_fieldFormat = (node, locale)=>(value)=>{
|
1321
|
+
const { format = {}, autoFormat = true } = node;
|
1322
|
+
if (!chunk_VCYTMP4D_n(format)) {
|
1323
|
+
const formatter = createFormatter(format);
|
1324
|
+
return formatter(value);
|
1325
|
+
}
|
1326
|
+
if (autoFormat) return autoFormatter(value, locale);
|
1327
|
+
};
|
1113
1328
|
const rowHeaderStyle = (spec, context)=>{
|
1114
1329
|
const result = {
|
1115
1330
|
...spec
|
1116
1331
|
};
|
1117
1332
|
const { advancedVSeed } = context;
|
1118
|
-
const {
|
1119
|
-
const themConfig =
|
1333
|
+
const { config, chartType } = advancedVSeed;
|
1334
|
+
const themConfig = config?.[chartType];
|
1120
1335
|
if (!result.theme || !themConfig) return result;
|
1121
1336
|
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
1122
1337
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
@@ -1163,8 +1378,8 @@
|
|
1163
1378
|
...spec
|
1164
1379
|
};
|
1165
1380
|
const { advancedVSeed } = context;
|
1166
|
-
const {
|
1167
|
-
const themConfig =
|
1381
|
+
const { config, chartType } = advancedVSeed;
|
1382
|
+
const themConfig = config?.[chartType];
|
1168
1383
|
if (!result.theme || !themConfig) return result;
|
1169
1384
|
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
1170
1385
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
@@ -1186,9 +1401,9 @@
|
|
1186
1401
|
],
|
1187
1402
|
textAlign: 'left',
|
1188
1403
|
hover: {
|
1189
|
-
cellBgColor: hoverCellColor,
|
1190
|
-
inlineRowBgColor: hoverInlineColor,
|
1191
|
-
inlineColumnBgColor: hoverInlineColor
|
1404
|
+
cellBgColor: hoverCellColor || void 0,
|
1405
|
+
inlineRowBgColor: hoverInlineColor || void 0,
|
1406
|
+
inlineColumnBgColor: hoverInlineColor || void 0
|
1192
1407
|
},
|
1193
1408
|
frameStyle: {
|
1194
1409
|
borderColor: [
|
@@ -1209,6 +1424,29 @@
|
|
1209
1424
|
};
|
1210
1425
|
return result;
|
1211
1426
|
};
|
1427
|
+
var new_data_set_AggregationType;
|
1428
|
+
!function(AggregationType) {
|
1429
|
+
AggregationType.RECORD = "RECORD", AggregationType.NONE = "NONE", AggregationType.SUM = "SUM", AggregationType.MIN = "MIN", AggregationType.MAX = "MAX", AggregationType.AVG = "AVG", AggregationType.COUNT = "COUNT", AggregationType.CUSTOM = "CUSTOM", AggregationType.RECALCULATE = "RECALCULATE";
|
1430
|
+
}(new_data_set_AggregationType || (new_data_set_AggregationType = {}));
|
1431
|
+
var new_data_set_SortType;
|
1432
|
+
!function(SortType) {
|
1433
|
+
SortType.ASC = "ASC", SortType.DESC = "DESC", SortType.NORMAL = "NORMAL", SortType.desc = "desc", SortType.asc = "asc", SortType.normal = "normal";
|
1434
|
+
}(new_data_set_SortType || (new_data_set_SortType = {}));
|
1435
|
+
const dataConfig = (spec, context)=>{
|
1436
|
+
const { advancedVSeed } = context;
|
1437
|
+
const measures = findAllMeasures(advancedVSeed.measures);
|
1438
|
+
const aggregationRules = measures.map((measure)=>({
|
1439
|
+
field: measure.id,
|
1440
|
+
aggregationType: new_data_set_AggregationType.NONE,
|
1441
|
+
indicatorKey: measure.id
|
1442
|
+
}));
|
1443
|
+
return {
|
1444
|
+
...spec,
|
1445
|
+
dataConfig: {
|
1446
|
+
aggregationRules
|
1447
|
+
}
|
1448
|
+
};
|
1449
|
+
};
|
1212
1450
|
const pivotTableSpecPipeline = [
|
1213
1451
|
initPivotTable,
|
1214
1452
|
pivotColumns,
|
@@ -1219,7 +1457,8 @@
|
|
1219
1457
|
rowHeaderStyle,
|
1220
1458
|
cornerHeaderStyle,
|
1221
1459
|
frameStyle,
|
1222
|
-
selectionStyle
|
1460
|
+
selectionStyle,
|
1461
|
+
dataConfig
|
1223
1462
|
];
|
1224
1463
|
const registerPivotTable = ()=>{
|
1225
1464
|
Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
|
@@ -1751,14 +1990,6 @@
|
|
1751
1990
|
});
|
1752
1991
|
return chunk_QJLMYOTX_i(res.map((item)=>item[id]));
|
1753
1992
|
};
|
1754
|
-
function chunk_2T7K3PFL_i(...e) {
|
1755
|
-
return chunk_WIMGWYZL_u(chunk_2T7K3PFL_o, e);
|
1756
|
-
}
|
1757
|
-
function chunk_2T7K3PFL_o(e, s) {
|
1758
|
-
let r = {};
|
1759
|
-
for (let n of s)n in e && (r[n] = e[n]);
|
1760
|
-
return r;
|
1761
|
-
}
|
1762
1993
|
const lineConfig = (advancedVSeed, context)=>{
|
1763
1994
|
const { vseed } = context;
|
1764
1995
|
const { chartType } = vseed;
|
@@ -1952,7 +2183,7 @@
|
|
1952
2183
|
const datasetXY = (spec, context)=>{
|
1953
2184
|
const { advancedVSeed, vseed } = context;
|
1954
2185
|
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
1955
|
-
const
|
2186
|
+
const orderMapping = analysis?.orderMapping || {};
|
1956
2187
|
const angle = encoding[0]?.angle?.[0];
|
1957
2188
|
const x = encoding[0]?.x?.[0];
|
1958
2189
|
const group = encoding[0]?.group?.[0];
|
@@ -1997,7 +2228,7 @@
|
|
1997
2228
|
...spec
|
1998
2229
|
};
|
1999
2230
|
const { advancedVSeed } = context;
|
2000
|
-
const { dataset } = advancedVSeed;
|
2231
|
+
const { dataset = [] } = advancedVSeed;
|
2001
2232
|
const size = dataset.length;
|
2002
2233
|
if (size < 5000) return result;
|
2003
2234
|
result.large = true;
|
@@ -2102,67 +2333,6 @@
|
|
2102
2333
|
};
|
2103
2334
|
const ANNOTATION_Z_INDEX = 1000;
|
2104
2335
|
const LINEAR_AXIS_INNER_OFFSET_TOP = 7;
|
2105
|
-
function chunk_6GTAPB47_e(r) {
|
2106
|
-
return "number" == typeof r && !Number.isNaN(r);
|
2107
|
-
}
|
2108
|
-
const createNumFormatter = (format, locale = intl.getLocale())=>{
|
2109
|
-
const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
|
2110
|
-
const numFormatterOptions = {
|
2111
|
-
style: 'decimal',
|
2112
|
-
notation: 'scientific' === type ? 'scientific' : 'standard',
|
2113
|
-
roundingMode,
|
2114
|
-
roundingPriority
|
2115
|
-
};
|
2116
|
-
if (chunk_6GTAPB47_e(fractionDigits)) {
|
2117
|
-
if (fractionDigits >= 0) {
|
2118
|
-
numFormatterOptions.minimumFractionDigits = fractionDigits;
|
2119
|
-
numFormatterOptions.maximumFractionDigits = fractionDigits;
|
2120
|
-
}
|
2121
|
-
}
|
2122
|
-
if (chunk_6GTAPB47_e(significantDigits) && significantDigits > 0) {
|
2123
|
-
if (significantDigits > 0) {
|
2124
|
-
numFormatterOptions.minimumSignificantDigits = significantDigits;
|
2125
|
-
numFormatterOptions.maximumSignificantDigits = significantDigits;
|
2126
|
-
}
|
2127
|
-
}
|
2128
|
-
const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
|
2129
|
-
return (value)=>{
|
2130
|
-
let num = Number(value);
|
2131
|
-
let typeSymbol = '';
|
2132
|
-
if (Number.isNaN(num)) return num.toString();
|
2133
|
-
if ('percent' === type) {
|
2134
|
-
num *= 100;
|
2135
|
-
typeSymbol = '%';
|
2136
|
-
} else if ('permille' === type) {
|
2137
|
-
num *= 1000;
|
2138
|
-
typeSymbol = "\u2030";
|
2139
|
-
} else if ('number' === type) num /= ratio || 1;
|
2140
|
-
let numStr = numFormatter.format(num);
|
2141
|
-
if (thousandSeparator) {
|
2142
|
-
const parts = numStr.split('.');
|
2143
|
-
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
2144
|
-
numStr = parts.join('.');
|
2145
|
-
}
|
2146
|
-
return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
|
2147
|
-
};
|
2148
|
-
};
|
2149
|
-
const autoNumFormatter = (value, locale = intl.getLocale())=>{
|
2150
|
-
if (null == value) return String(value);
|
2151
|
-
const num = Number(value);
|
2152
|
-
if (Number.isNaN(num)) return String(value);
|
2153
|
-
const numFormatterOptions = {
|
2154
|
-
style: 'decimal',
|
2155
|
-
notation: 'compact'
|
2156
|
-
};
|
2157
|
-
numFormatterOptions.minimumFractionDigits = 0;
|
2158
|
-
numFormatterOptions.maximumFractionDigits = 2;
|
2159
|
-
const numFormatter = new Intl.NumberFormat(locale, {
|
2160
|
-
...numFormatterOptions
|
2161
|
-
});
|
2162
|
-
return numFormatter.format(Number(value));
|
2163
|
-
};
|
2164
|
-
const createFormatter = (format)=>createNumFormatter(format);
|
2165
|
-
const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
|
2166
2336
|
const yLinear = (spec, context)=>{
|
2167
2337
|
const result = {
|
2168
2338
|
...spec
|
@@ -2245,9 +2415,6 @@
|
|
2245
2415
|
];
|
2246
2416
|
return result;
|
2247
2417
|
};
|
2248
|
-
function chunk_VCYTMP4D_n(e) {
|
2249
|
-
return void 0 === e ? !0 : "string" == typeof e || Array.isArray(e) ? 0 === e.length : 0 === Object.keys(e).length;
|
2250
|
-
}
|
2251
2418
|
const label_label = (spec, context)=>{
|
2252
2419
|
const result = {
|
2253
2420
|
...spec
|
@@ -2368,7 +2535,11 @@
|
|
2368
2535
|
const config = advancedVSeed.config?.[chartType]?.crosshairLine;
|
2369
2536
|
if (!config) return result;
|
2370
2537
|
if (!result.crosshair) result.crosshair = {};
|
2371
|
-
const
|
2538
|
+
const visible = config.visible || true;
|
2539
|
+
const lineColor = config.lineColor || void 0;
|
2540
|
+
const labelColor = config.labelColor || void 0;
|
2541
|
+
const labelVisible = config.labelVisible || void 0;
|
2542
|
+
const labelBackgroundColor = config.labelBackgroundColor || void 0;
|
2372
2543
|
const crosshair = result.crosshair;
|
2373
2544
|
crosshair.xField = {
|
2374
2545
|
visible,
|
@@ -2774,7 +2945,7 @@
|
|
2774
2945
|
annotationPoint
|
2775
2946
|
];
|
2776
2947
|
const markPoint = annotationPointList.flatMap((annotationPoint)=>{
|
2777
|
-
const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top',
|
2948
|
+
const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundBorderColor, textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundColor = '#212121', textBackgroundPadding = 2, textBackgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
|
2778
2949
|
const dataset = advancedVSeed.dataset.flat();
|
2779
2950
|
const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
|
2780
2951
|
return selectedData.map((datum)=>({
|
@@ -2803,20 +2974,20 @@
|
|
2803
2974
|
textAlign: textAlign,
|
2804
2975
|
textBaseline: textBaseline,
|
2805
2976
|
fill: textColor,
|
2806
|
-
stroke:
|
2977
|
+
stroke: textBackgroundColor,
|
2807
2978
|
lineWidth: 1,
|
2808
2979
|
fontSize: textFontSize,
|
2809
2980
|
fontWeight: textFontWeight,
|
2810
2981
|
dy: textFontSize
|
2811
2982
|
},
|
2812
2983
|
labelBackground: {
|
2813
|
-
visible:
|
2814
|
-
padding:
|
2984
|
+
visible: textBackgroundVisible,
|
2985
|
+
padding: textBackgroundPadding,
|
2815
2986
|
style: {
|
2816
|
-
cornerRadius:
|
2817
|
-
fill:
|
2818
|
-
stroke:
|
2819
|
-
lineWidth:
|
2987
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
2988
|
+
fill: textBackgroundColor,
|
2989
|
+
stroke: textBackgroundBorderColor,
|
2990
|
+
lineWidth: textBackgroundBorderWidth,
|
2820
2991
|
dy: textFontSize
|
2821
2992
|
}
|
2822
2993
|
}
|
@@ -2832,9 +3003,6 @@
|
|
2832
3003
|
function chunk_BO3LQZNF_o(r) {
|
2833
3004
|
return Array.isArray(r);
|
2834
3005
|
}
|
2835
|
-
function chunk_SFZGYJFI_t(r) {
|
2836
|
-
return "string" == typeof r;
|
2837
|
-
}
|
2838
3006
|
const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
2839
3007
|
const { advancedVSeed } = context;
|
2840
3008
|
const { annotation, encoding } = advancedVSeed;
|
@@ -2852,7 +3020,7 @@
|
|
2852
3020
|
insideEnd: 'insideEndTop'
|
2853
3021
|
};
|
2854
3022
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
2855
|
-
const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top',
|
3023
|
+
const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', textBackgroundVisible = true, textBackgroundBorderColor = '#212121', textBackgroundColor = '#212121', textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundPadding = 2, lineVisible = true, lineColor = '#212121', lineWidth = 1, lineStyle = 'dashed', offsetX = 0, offsetY = 0 } = annotationVerticalLine;
|
2856
3024
|
const dataset = advancedVSeed.dataset.flat();
|
2857
3025
|
const generateOneMarkLine = (x)=>({
|
2858
3026
|
x: x,
|
@@ -2878,10 +3046,10 @@
|
|
2878
3046
|
},
|
2879
3047
|
label: {
|
2880
3048
|
text: text,
|
2881
|
-
position: positionMap[textPosition],
|
3049
|
+
position: positionMap[textPosition || 'insideEnd'],
|
2882
3050
|
style: {
|
2883
3051
|
visible: true,
|
2884
|
-
stroke:
|
3052
|
+
stroke: textBackgroundColor,
|
2885
3053
|
lineWidth: 1,
|
2886
3054
|
textAlign: textAlign,
|
2887
3055
|
textBaseline: textBaseline,
|
@@ -2891,20 +3059,20 @@
|
|
2891
3059
|
dy: textFontSize
|
2892
3060
|
},
|
2893
3061
|
labelBackground: {
|
2894
|
-
visible:
|
2895
|
-
padding:
|
3062
|
+
visible: textBackgroundVisible,
|
3063
|
+
padding: textBackgroundPadding,
|
2896
3064
|
style: {
|
2897
3065
|
dy: textFontSize,
|
2898
|
-
cornerRadius:
|
2899
|
-
fill:
|
2900
|
-
stroke:
|
2901
|
-
lineWidth:
|
3066
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
3067
|
+
fill: textBackgroundColor,
|
3068
|
+
stroke: textBackgroundBorderColor,
|
3069
|
+
lineWidth: textBackgroundBorderWidth
|
2902
3070
|
}
|
2903
3071
|
}
|
2904
3072
|
},
|
2905
3073
|
endSymbol: {
|
2906
3074
|
visible: true,
|
2907
|
-
size: 10 + lineWidth,
|
3075
|
+
size: 10 + (lineWidth || 1),
|
2908
3076
|
style: {
|
2909
3077
|
dy: 4,
|
2910
3078
|
fill: lineColor
|
@@ -2951,7 +3119,7 @@
|
|
2951
3119
|
insideEnd: 'insideEndTop'
|
2952
3120
|
};
|
2953
3121
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
2954
|
-
const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1,
|
3122
|
+
const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, textBackgroundVisible = true, textBackgroundColor = '#212121', textBackgroundBorderColor = '#212121', textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundPadding = 2, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
|
2955
3123
|
const dataset = advancedVSeed.dataset.flat();
|
2956
3124
|
const generateOneMarkLine = (y)=>({
|
2957
3125
|
y,
|
@@ -2977,11 +3145,11 @@
|
|
2977
3145
|
},
|
2978
3146
|
label: {
|
2979
3147
|
text: text,
|
2980
|
-
position: positionMap[textPosition],
|
3148
|
+
position: positionMap[textPosition || 'insideEnd'],
|
2981
3149
|
style: {
|
2982
3150
|
visible: true,
|
2983
3151
|
dy: textFontSize,
|
2984
|
-
stroke:
|
3152
|
+
stroke: textBackgroundColor,
|
2985
3153
|
lineWidth: 1,
|
2986
3154
|
textAlign: textAlign,
|
2987
3155
|
textBaseline: textBaseline,
|
@@ -2990,20 +3158,20 @@
|
|
2990
3158
|
fontWeight: textFontWeight
|
2991
3159
|
},
|
2992
3160
|
labelBackground: {
|
2993
|
-
visible:
|
2994
|
-
padding:
|
3161
|
+
visible: textBackgroundVisible,
|
3162
|
+
padding: textBackgroundPadding,
|
2995
3163
|
style: {
|
2996
3164
|
dy: textFontSize,
|
2997
|
-
cornerRadius:
|
2998
|
-
fill:
|
2999
|
-
stroke:
|
3000
|
-
lineWidth:
|
3165
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
3166
|
+
fill: textBackgroundColor,
|
3167
|
+
stroke: textBackgroundBorderColor,
|
3168
|
+
lineWidth: textBackgroundBorderWidth
|
3001
3169
|
}
|
3002
3170
|
}
|
3003
3171
|
},
|
3004
3172
|
endSymbol: {
|
3005
3173
|
visible: true,
|
3006
|
-
size: 10 + lineWidth,
|
3174
|
+
size: 10 + (lineWidth || 1),
|
3007
3175
|
style: {
|
3008
3176
|
dx: -4,
|
3009
3177
|
fill: lineColor
|
@@ -3052,9 +3220,11 @@
|
|
3052
3220
|
right: 'insideRight'
|
3053
3221
|
};
|
3054
3222
|
const markArea = annotationAreaList.flatMap((annotationArea)=>{
|
3055
|
-
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top',
|
3223
|
+
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = true, textBackgroundColor = '#191d24', textBackgroundBorderColor = '#191d24', textBackgroundBorderWidth = 1, textBackgroundBorderRadius = 4, textBackgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
|
3056
3224
|
const dataset = advancedVSeed.dataset.flat();
|
3057
3225
|
const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
|
3226
|
+
const labelPosition = positionMap[textPosition || 'top'];
|
3227
|
+
const isBottom = labelPosition.toLocaleLowerCase().includes('bottom');
|
3058
3228
|
return {
|
3059
3229
|
zIndex: ANNOTATION_Z_INDEX,
|
3060
3230
|
regionRelative: true,
|
@@ -3067,8 +3237,8 @@
|
|
3067
3237
|
const xAxisHelper = context.getXAxisHelper();
|
3068
3238
|
if ('function' == typeof xAxisHelper?.getBandwidth) {
|
3069
3239
|
const yScale = yAxisHelper.getScale();
|
3070
|
-
const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
|
3071
|
-
const maxX = Math.max(...xyList.map((item)=>item.x)) + outerPadding;
|
3240
|
+
const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
|
3241
|
+
const maxX = Math.max(...xyList.map((item)=>item.x)) + (outerPadding || 4);
|
3072
3242
|
const minY = Math.min(...yScale.range());
|
3073
3243
|
const maxY = Math.max(...yScale.range());
|
3074
3244
|
return [
|
@@ -3092,8 +3262,8 @@
|
|
3092
3262
|
}
|
3093
3263
|
if ('function' == typeof yAxisHelper?.getBandwidth) {
|
3094
3264
|
const xScale = xAxisHelper.getScale();
|
3095
|
-
const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
|
3096
|
-
const maxY = Math.max(...xyList.map((item)=>item.y)) + outerPadding;
|
3265
|
+
const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
|
3266
|
+
const maxY = Math.max(...xyList.map((item)=>item.y)) + (outerPadding || 4);
|
3097
3267
|
const minX = Math.min(...xScale.range());
|
3098
3268
|
const maxX = Math.max(...xScale.range());
|
3099
3269
|
return [
|
@@ -3118,28 +3288,28 @@
|
|
3118
3288
|
return [];
|
3119
3289
|
},
|
3120
3290
|
label: {
|
3121
|
-
position:
|
3291
|
+
position: labelPosition,
|
3122
3292
|
visible: true,
|
3123
3293
|
text: text,
|
3124
3294
|
style: {
|
3125
|
-
dy: textFontSize,
|
3295
|
+
dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
|
3126
3296
|
textAlign: textAlign,
|
3127
3297
|
textBaseline: textBaseline,
|
3128
3298
|
fill: textColor,
|
3129
|
-
stroke:
|
3299
|
+
stroke: textBackgroundColor,
|
3130
3300
|
lineWidth: 1,
|
3131
3301
|
fontSize: textFontSize,
|
3132
3302
|
fontWeight: textFontWeight
|
3133
3303
|
},
|
3134
3304
|
labelBackground: {
|
3135
|
-
visible:
|
3136
|
-
padding:
|
3305
|
+
visible: textBackgroundVisible,
|
3306
|
+
padding: textBackgroundPadding,
|
3137
3307
|
style: {
|
3138
|
-
dy: textFontSize,
|
3139
|
-
cornerRadius:
|
3140
|
-
fill:
|
3141
|
-
stroke:
|
3142
|
-
lineWidth:
|
3308
|
+
dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
|
3309
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
3310
|
+
fill: textBackgroundColor,
|
3311
|
+
stroke: textBackgroundBorderColor,
|
3312
|
+
lineWidth: textBackgroundBorderWidth
|
3143
3313
|
}
|
3144
3314
|
}
|
3145
3315
|
},
|
@@ -3781,7 +3951,11 @@
|
|
3781
3951
|
const config = advancedVSeed.config?.[chartType]?.crosshairRect;
|
3782
3952
|
if (!config) return result;
|
3783
3953
|
if (!result.crosshair) result.crosshair = {};
|
3784
|
-
const
|
3954
|
+
const visible = config.visible || true;
|
3955
|
+
const rectColor = config.rectColor || void 0;
|
3956
|
+
const labelColor = config.labelColor || void 0;
|
3957
|
+
const labelVisible = config.labelVisible || false;
|
3958
|
+
const labelBackgroundColor = config.labelBackgroundColor || void 0;
|
3785
3959
|
const crosshair = result.crosshair;
|
3786
3960
|
crosshair.xField = {
|
3787
3961
|
visible,
|
@@ -3810,14 +3984,13 @@
|
|
3810
3984
|
};
|
3811
3985
|
const barStyle_barStyle = (spec, context)=>{
|
3812
3986
|
const { advancedVSeed } = context;
|
3813
|
-
const { markStyle, dataset } = advancedVSeed;
|
3987
|
+
const { markStyle, dataset = [] } = advancedVSeed;
|
3814
3988
|
const { barStyle } = markStyle;
|
3815
3989
|
const showStroke = dataset.length <= 100;
|
3816
3990
|
const result = {
|
3817
3991
|
...spec,
|
3818
3992
|
bar: {
|
3819
3993
|
style: {
|
3820
|
-
stroke: '#fff',
|
3821
3994
|
lineWidth: showStroke ? 1 : 0
|
3822
3995
|
},
|
3823
3996
|
state: {
|
@@ -3893,7 +4066,7 @@
|
|
3893
4066
|
right: 'insideRight'
|
3894
4067
|
};
|
3895
4068
|
const markArea = annotationAreaList.flatMap((annotationArea)=>{
|
3896
|
-
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top',
|
4069
|
+
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = true, textBackgroundColor = '#191d24', textBackgroundBorderColor = '#191d24', textBackgroundBorderWidth = 1, textBackgroundBorderRadius = 4, textBackgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
|
3897
4070
|
const dataset = advancedVSeed.dataset.flat();
|
3898
4071
|
const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
|
3899
4072
|
return {
|
@@ -3910,8 +4083,8 @@
|
|
3910
4083
|
const depth = context.fieldX.length ?? 0;
|
3911
4084
|
const xBandWidth = xAxisHelper?.getBandwidth?.(depth - 1);
|
3912
4085
|
const yScale = yAxisHelper.getScale();
|
3913
|
-
const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
|
3914
|
-
const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + outerPadding;
|
4086
|
+
const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
|
4087
|
+
const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + (outerPadding || 4);
|
3915
4088
|
const minY = Math.min(...yScale.range());
|
3916
4089
|
const maxY = Math.max(...yScale.range());
|
3917
4090
|
return [
|
@@ -3937,8 +4110,8 @@
|
|
3937
4110
|
const depth = context.fieldY.length ?? 0;
|
3938
4111
|
const yBandWidth = yAxisHelper?.getBandwidth?.(depth - 1);
|
3939
4112
|
const xScale = xAxisHelper.getScale();
|
3940
|
-
const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
|
3941
|
-
const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + outerPadding;
|
4113
|
+
const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
|
4114
|
+
const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + (outerPadding || 4);
|
3942
4115
|
const minX = Math.min(...xScale.range());
|
3943
4116
|
const maxX = Math.max(...xScale.range());
|
3944
4117
|
return [
|
@@ -3963,28 +4136,28 @@
|
|
3963
4136
|
return [];
|
3964
4137
|
},
|
3965
4138
|
label: {
|
3966
|
-
position: positionMap[textPosition],
|
4139
|
+
position: positionMap[textPosition || 'top'],
|
3967
4140
|
visible: true,
|
3968
4141
|
text: text,
|
3969
4142
|
style: {
|
3970
4143
|
dy: textFontSize,
|
3971
4144
|
textAlign: textAlign,
|
3972
4145
|
textBaseline: textBaseline,
|
3973
|
-
stroke:
|
4146
|
+
stroke: textBackgroundColor,
|
3974
4147
|
lineWidth: 1,
|
3975
4148
|
fill: textColor,
|
3976
4149
|
fontSize: textFontSize,
|
3977
4150
|
fontWeight: textFontWeight
|
3978
4151
|
},
|
3979
4152
|
labelBackground: {
|
3980
|
-
visible:
|
3981
|
-
padding:
|
4153
|
+
visible: textBackgroundVisible,
|
4154
|
+
padding: textBackgroundPadding,
|
3982
4155
|
style: {
|
3983
4156
|
dy: textFontSize,
|
3984
|
-
cornerRadius:
|
3985
|
-
fill:
|
3986
|
-
stroke:
|
3987
|
-
lineWidth:
|
4157
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
4158
|
+
fill: textBackgroundColor,
|
4159
|
+
stroke: textBackgroundBorderColor,
|
4160
|
+
lineWidth: textBackgroundBorderWidth
|
3988
4161
|
}
|
3989
4162
|
}
|
3990
4163
|
},
|
@@ -4314,7 +4487,7 @@
|
|
4314
4487
|
const datasetYX = (spec, context)=>{
|
4315
4488
|
const { advancedVSeed, vseed } = context;
|
4316
4489
|
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
4317
|
-
const
|
4490
|
+
const orderMapping = analysis?.orderMapping || {};
|
4318
4491
|
const angle = encoding[0]?.angle?.[0];
|
4319
4492
|
const y = encoding[0]?.y?.[0];
|
4320
4493
|
const group = encoding[0]?.group?.[0];
|
@@ -4467,7 +4640,7 @@
|
|
4467
4640
|
label: {
|
4468
4641
|
visible: label?.visible,
|
4469
4642
|
flush: true,
|
4470
|
-
containerAlign: '
|
4643
|
+
containerAlign: 'right',
|
4471
4644
|
space: 8,
|
4472
4645
|
style: {
|
4473
4646
|
maxLineWidth: labelAutoLimitLength,
|
@@ -4540,7 +4713,11 @@
|
|
4540
4713
|
const config = advancedVSeed.config?.[chartType]?.crosshairRect;
|
4541
4714
|
if (!config) return result;
|
4542
4715
|
if (!result.crosshair) result.crosshair = {};
|
4543
|
-
const
|
4716
|
+
const visible = config.visible || true;
|
4717
|
+
const rectColor = config.rectColor || void 0;
|
4718
|
+
const labelColor = config.labelColor || void 0;
|
4719
|
+
const labelVisible = config.labelVisible || false;
|
4720
|
+
const labelBackgroundColor = config.labelBackgroundColor || void 0;
|
4544
4721
|
const crosshair = result.crosshair;
|
4545
4722
|
crosshair.yField = {
|
4546
4723
|
visible,
|
@@ -5259,6 +5436,35 @@
|
|
5259
5436
|
return result;
|
5260
5437
|
};
|
5261
5438
|
};
|
5439
|
+
const seriesDualAxis = (...args)=>{
|
5440
|
+
const result = {
|
5441
|
+
type: 'common',
|
5442
|
+
padding: 0,
|
5443
|
+
region: [
|
5444
|
+
{
|
5445
|
+
clip: true
|
5446
|
+
}
|
5447
|
+
]
|
5448
|
+
};
|
5449
|
+
const createDualContext = (context, index)=>{
|
5450
|
+
const { advancedVSeed } = context;
|
5451
|
+
const dataset = advancedVSeed.dataset[index];
|
5452
|
+
return {
|
5453
|
+
...context,
|
5454
|
+
advancedVSeed: {
|
5455
|
+
...advancedVSeed,
|
5456
|
+
dataset: dataset
|
5457
|
+
}
|
5458
|
+
};
|
5459
|
+
};
|
5460
|
+
return (_, context)=>{
|
5461
|
+
result.series = args.map((pipeline, index)=>{
|
5462
|
+
const seriesContext = createDualContext(context, index);
|
5463
|
+
return execPipeline(pipeline, seriesContext, {});
|
5464
|
+
});
|
5465
|
+
return result;
|
5466
|
+
};
|
5467
|
+
};
|
5262
5468
|
const initAreaRange = (spec, context)=>{
|
5263
5469
|
const result = {
|
5264
5470
|
...spec
|
@@ -5688,7 +5894,11 @@
|
|
5688
5894
|
const config = advancedVSeed.config?.[chartType]?.crosshairLine;
|
5689
5895
|
if (!config) return result;
|
5690
5896
|
if (!result.crosshair) result.crosshair = {};
|
5691
|
-
const
|
5897
|
+
const visible = config.visible || true;
|
5898
|
+
const lineColor = config.lineColor || void 0;
|
5899
|
+
const labelColor = config.labelColor || void 0;
|
5900
|
+
const labelVisible = config.labelVisible || void 0;
|
5901
|
+
const labelBackgroundColor = config.labelBackgroundColor || void 0;
|
5692
5902
|
const crosshair = result.crosshair;
|
5693
5903
|
crosshair.yField = {
|
5694
5904
|
visible,
|
@@ -6003,15 +6213,18 @@
|
|
6003
6213
|
};
|
6004
6214
|
const dualMeasuresToMeasureTree = (dualMeasures)=>{
|
6005
6215
|
const measureTree = dualMeasures.map((item, index)=>{
|
6006
|
-
const { primaryMeasures, secondaryMeasures
|
6216
|
+
const { primaryMeasures, secondaryMeasures } = item;
|
6007
6217
|
const groupChildren = [];
|
6218
|
+
let id = '';
|
6008
6219
|
if (primaryMeasures) {
|
6009
6220
|
const arrPrimaryMeasures = Array.isArray(primaryMeasures) ? primaryMeasures : [
|
6010
6221
|
primaryMeasures
|
6011
6222
|
];
|
6223
|
+
const alias = arrPrimaryMeasures.map((item)=>item.alias || item.id).toString();
|
6224
|
+
id += alias;
|
6012
6225
|
groupChildren.push({
|
6013
6226
|
id: `${index}-primary`,
|
6014
|
-
alias:
|
6227
|
+
alias: arrPrimaryMeasures.map((item)=>item.alias || item.id).toString(),
|
6015
6228
|
children: arrPrimaryMeasures
|
6016
6229
|
});
|
6017
6230
|
}
|
@@ -6019,17 +6232,14 @@
|
|
6019
6232
|
const arrSecondaryMeasures = Array.isArray(secondaryMeasures) ? secondaryMeasures : [
|
6020
6233
|
secondaryMeasures
|
6021
6234
|
];
|
6235
|
+
const alias = arrSecondaryMeasures.map((item)=>item.alias || item.id).toString();
|
6236
|
+
id += alias;
|
6022
6237
|
groupChildren.push({
|
6023
6238
|
id: `${index}-secondary`,
|
6024
|
-
alias:
|
6239
|
+
alias: arrSecondaryMeasures.map((item)=>item.alias || item.id).toString(),
|
6025
6240
|
children: arrSecondaryMeasures
|
6026
6241
|
});
|
6027
6242
|
}
|
6028
|
-
const id = [
|
6029
|
-
primaryAlias,
|
6030
|
-
secondaryAlias,
|
6031
|
-
index
|
6032
|
-
].filter((d)=>!chunk_JK3VNB42_n(d)).join('-');
|
6033
6243
|
return {
|
6034
6244
|
id,
|
6035
6245
|
alias: id,
|
@@ -6191,7 +6401,7 @@
|
|
6191
6401
|
const datasetPrimary = (spec, context)=>{
|
6192
6402
|
const { advancedVSeed, vseed } = context;
|
6193
6403
|
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
6194
|
-
const
|
6404
|
+
const orderMapping = analysis?.orderMapping || {};
|
6195
6405
|
const x = encoding[0]?.x?.[0];
|
6196
6406
|
const group = encoding[0]?.group?.[0];
|
6197
6407
|
const id = datasetReshapeInfo[0].id;
|
@@ -6222,7 +6432,7 @@
|
|
6222
6432
|
...spec,
|
6223
6433
|
data: {
|
6224
6434
|
id: `${id}-primary-dataset`,
|
6225
|
-
values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset
|
6435
|
+
values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
|
6226
6436
|
fields: fields
|
6227
6437
|
}
|
6228
6438
|
};
|
@@ -6230,7 +6440,7 @@
|
|
6230
6440
|
const datasetSecondary = (spec, context)=>{
|
6231
6441
|
const { advancedVSeed, vseed } = context;
|
6232
6442
|
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
6233
|
-
const
|
6443
|
+
const orderMapping = analysis?.orderMapping || {};
|
6234
6444
|
const x = encoding[0]?.x?.[0];
|
6235
6445
|
const group = encoding[0]?.group?.[0];
|
6236
6446
|
const id = datasetReshapeInfo[0].id;
|
@@ -6261,7 +6471,7 @@
|
|
6261
6471
|
...spec,
|
6262
6472
|
data: {
|
6263
6473
|
id: `${id}-secondary-dataset`,
|
6264
|
-
values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset
|
6474
|
+
values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
|
6265
6475
|
fields: fields
|
6266
6476
|
}
|
6267
6477
|
};
|
@@ -6503,7 +6713,9 @@
|
|
6503
6713
|
const { advancedVSeed, vseed } = context;
|
6504
6714
|
const { chartType } = vseed;
|
6505
6715
|
const { locale, datasetReshapeInfo } = advancedVSeed;
|
6506
|
-
const
|
6716
|
+
const index = datasetReshapeInfo[0].index;
|
6717
|
+
const primaryYAxis = advancedVSeed.config?.[chartType]?.primaryYAxis;
|
6718
|
+
const config = Array.isArray(primaryYAxis) ? primaryYAxis[index] || primaryYAxis[0] : primaryYAxis;
|
6507
6719
|
if (datasetReshapeInfo[0].foldInfoList?.[0] && chunk_VCYTMP4D_n(datasetReshapeInfo[0].foldInfoList[0].foldMap)) return result;
|
6508
6720
|
const id = `${datasetReshapeInfo[0].id}-primary-axis`;
|
6509
6721
|
const seriesId = `${datasetReshapeInfo[0].id}-primary-series`;
|
@@ -6602,7 +6814,9 @@
|
|
6602
6814
|
const { advancedVSeed, vseed } = context;
|
6603
6815
|
const { chartType } = vseed;
|
6604
6816
|
const { locale, datasetReshapeInfo } = advancedVSeed;
|
6605
|
-
const
|
6817
|
+
const index = datasetReshapeInfo[0].index;
|
6818
|
+
const secondaryYAxis = advancedVSeed.config?.[chartType]?.secondaryYAxis;
|
6819
|
+
const config = Array.isArray(secondaryYAxis) ? secondaryYAxis[index] || secondaryYAxis[0] : secondaryYAxis;
|
6606
6820
|
if (chunk_JK3VNB42_n(datasetReshapeInfo[0].foldInfoList?.[1])) return result;
|
6607
6821
|
const id = `${datasetReshapeInfo[0].id}-secondary-axis`;
|
6608
6822
|
const seriesId = `${datasetReshapeInfo[0].id}-secondary-series`;
|
@@ -6685,7 +6899,7 @@
|
|
6685
6899
|
return result;
|
6686
6900
|
};
|
6687
6901
|
const dualAxis = [
|
6688
|
-
|
6902
|
+
seriesDualAxis([
|
6689
6903
|
initDualAxisPrimary,
|
6690
6904
|
dualChartTypePrimary,
|
6691
6905
|
datasetPrimary,
|
@@ -6728,7 +6942,7 @@
|
|
6728
6942
|
pivotIndicators_pivotIndicatorsAsRow,
|
6729
6943
|
datasetPivot,
|
6730
6944
|
pivotIndicators_pivotIndicators([
|
6731
|
-
|
6945
|
+
seriesDualAxis([
|
6732
6946
|
initDualAxisPrimary,
|
6733
6947
|
dualChartTypePrimary,
|
6734
6948
|
datasetPrimary,
|
@@ -8122,7 +8336,8 @@
|
|
8122
8336
|
hoverHeaderBackgroundColor: '#D9DDE4',
|
8123
8337
|
hoverHeaderInlineBackgroundColor: '#D9DDE455',
|
8124
8338
|
selectedBorderColor: '#4080ff',
|
8125
|
-
selectedBackgroundColor: '#bedaff33'
|
8339
|
+
selectedBackgroundColor: '#bedaff33',
|
8340
|
+
backgroundColor: 'transparent'
|
8126
8341
|
};
|
8127
8342
|
return {
|
8128
8343
|
config: {
|
@@ -8142,8 +8357,8 @@
|
|
8142
8357
|
stackCornerRadius: [
|
8143
8358
|
4,
|
8144
8359
|
4,
|
8145
|
-
|
8146
|
-
|
8360
|
+
4,
|
8361
|
+
4
|
8147
8362
|
]
|
8148
8363
|
},
|
8149
8364
|
columnParallel: {
|
@@ -8154,8 +8369,8 @@
|
|
8154
8369
|
stackCornerRadius: [
|
8155
8370
|
4,
|
8156
8371
|
4,
|
8157
|
-
|
8158
|
-
|
8372
|
+
4,
|
8373
|
+
4
|
8159
8374
|
]
|
8160
8375
|
},
|
8161
8376
|
columnPercent: {
|
@@ -8166,8 +8381,8 @@
|
|
8166
8381
|
stackCornerRadius: [
|
8167
8382
|
4,
|
8168
8383
|
4,
|
8169
|
-
|
8170
|
-
|
8384
|
+
4,
|
8385
|
+
4
|
8171
8386
|
]
|
8172
8387
|
},
|
8173
8388
|
bar: {
|
@@ -8176,10 +8391,10 @@
|
|
8176
8391
|
yAxis: barBandAxis,
|
8177
8392
|
crosshairRect,
|
8178
8393
|
stackCornerRadius: [
|
8179
|
-
0,
|
8180
8394
|
4,
|
8181
8395
|
4,
|
8182
|
-
|
8396
|
+
4,
|
8397
|
+
4
|
8183
8398
|
]
|
8184
8399
|
},
|
8185
8400
|
barParallel: {
|
@@ -8188,10 +8403,10 @@
|
|
8188
8403
|
yAxis: barBandAxis,
|
8189
8404
|
crosshairRect,
|
8190
8405
|
stackCornerRadius: [
|
8191
|
-
0,
|
8192
8406
|
4,
|
8193
8407
|
4,
|
8194
|
-
|
8408
|
+
4,
|
8409
|
+
4
|
8195
8410
|
]
|
8196
8411
|
},
|
8197
8412
|
barPercent: {
|
@@ -8200,10 +8415,10 @@
|
|
8200
8415
|
yAxis: barBandAxis,
|
8201
8416
|
crosshairRect,
|
8202
8417
|
stackCornerRadius: [
|
8203
|
-
0,
|
8204
8418
|
4,
|
8205
8419
|
4,
|
8206
|
-
|
8420
|
+
4,
|
8421
|
+
4
|
8207
8422
|
]
|
8208
8423
|
},
|
8209
8424
|
area: {
|
@@ -8480,8 +8695,8 @@
|
|
8480
8695
|
stackCornerRadius: [
|
8481
8696
|
4,
|
8482
8697
|
4,
|
8483
|
-
|
8484
|
-
|
8698
|
+
4,
|
8699
|
+
4
|
8485
8700
|
]
|
8486
8701
|
},
|
8487
8702
|
columnParallel: {
|
@@ -8492,8 +8707,8 @@
|
|
8492
8707
|
stackCornerRadius: [
|
8493
8708
|
4,
|
8494
8709
|
4,
|
8495
|
-
|
8496
|
-
|
8710
|
+
4,
|
8711
|
+
4
|
8497
8712
|
]
|
8498
8713
|
},
|
8499
8714
|
columnPercent: {
|
@@ -8504,8 +8719,8 @@
|
|
8504
8719
|
stackCornerRadius: [
|
8505
8720
|
4,
|
8506
8721
|
4,
|
8507
|
-
|
8508
|
-
|
8722
|
+
4,
|
8723
|
+
4
|
8509
8724
|
]
|
8510
8725
|
},
|
8511
8726
|
bar: {
|
@@ -8526,10 +8741,10 @@
|
|
8526
8741
|
yAxis: barBandAxis,
|
8527
8742
|
crosshairRect: crosshairRect,
|
8528
8743
|
stackCornerRadius: [
|
8529
|
-
0,
|
8530
8744
|
4,
|
8531
8745
|
4,
|
8532
|
-
|
8746
|
+
4,
|
8747
|
+
4
|
8533
8748
|
]
|
8534
8749
|
},
|
8535
8750
|
barPercent: {
|
@@ -8538,10 +8753,10 @@
|
|
8538
8753
|
yAxis: barBandAxis,
|
8539
8754
|
crosshairRect: crosshairRect,
|
8540
8755
|
stackCornerRadius: [
|
8541
|
-
0,
|
8542
8756
|
4,
|
8543
8757
|
4,
|
8544
|
-
|
8758
|
+
4,
|
8759
|
+
4
|
8545
8760
|
]
|
8546
8761
|
},
|
8547
8762
|
area: {
|
@@ -8678,6 +8893,9 @@
|
|
8678
8893
|
const updateSpec = (chartType, specPipe)=>{
|
8679
8894
|
Builder._customSpecPipe[chartType] = specPipe;
|
8680
8895
|
};
|
8896
|
+
const isDimension = (dimension)=>!('children' in dimension);
|
8897
|
+
const isDimensionGroup = (dimension)=>'children' in dimension;
|
8898
|
+
const isDimensions = (dimensions)=>dimensions.every(isDimension);
|
8681
8899
|
Object.freeze({
|
8682
8900
|
status: "aborted"
|
8683
8901
|
});
|
@@ -12068,9 +12286,7 @@
|
|
12068
12286
|
const zDualMeasure = schemas_object({
|
12069
12287
|
id: schemas_string(),
|
12070
12288
|
primaryMeasures: schemas_array(zMeasure).or(zMeasure).optional(),
|
12071
|
-
|
12072
|
-
secondaryMeasures: schemas_array(zMeasure).or(zMeasure).optional(),
|
12073
|
-
secondaryAlias: schemas_string().optional()
|
12289
|
+
secondaryMeasures: schemas_array(zMeasure).or(zMeasure).optional()
|
12074
12290
|
});
|
12075
12291
|
const zDualMeasures = schemas_array(zDualMeasure);
|
12076
12292
|
const zFoldInfo = schemas_object({
|
@@ -12089,117 +12305,117 @@
|
|
12089
12305
|
id: schemas_string(),
|
12090
12306
|
index: schemas_number(),
|
12091
12307
|
foldInfo: zFoldInfo,
|
12092
|
-
foldInfoList: schemas_array(zFoldInfo).
|
12308
|
+
foldInfoList: schemas_array(zFoldInfo).nullish(),
|
12093
12309
|
unfoldInfo: zUnfoldInfo
|
12094
12310
|
}));
|
12095
12311
|
const zEncoding = schemas_array(schemas_object({
|
12096
|
-
x: schemas_array(schemas_string()).
|
12097
|
-
y: schemas_array(schemas_string()).
|
12098
|
-
color: schemas_array(schemas_string()).
|
12099
|
-
group: schemas_array(schemas_string()).
|
12100
|
-
angle: schemas_array(schemas_string()).
|
12101
|
-
radius: schemas_array(schemas_string()).
|
12102
|
-
tooltip: schemas_array(schemas_string()).
|
12103
|
-
size: schemas_array(schemas_string()).
|
12312
|
+
x: schemas_array(schemas_string()).nullish(),
|
12313
|
+
y: schemas_array(schemas_string()).nullish(),
|
12314
|
+
color: schemas_array(schemas_string()).nullish(),
|
12315
|
+
group: schemas_array(schemas_string()).nullish(),
|
12316
|
+
angle: schemas_array(schemas_string()).nullish(),
|
12317
|
+
radius: schemas_array(schemas_string()).nullish(),
|
12318
|
+
tooltip: schemas_array(schemas_string()).nullish(),
|
12319
|
+
size: schemas_array(schemas_string()).nullish()
|
12104
12320
|
}));
|
12105
12321
|
const zXBandAxis = schemas_object({
|
12106
|
-
visible: schemas_boolean().default(true).
|
12107
|
-
labelAutoHide: schemas_boolean().default(true).
|
12108
|
-
labelAutoHideGap: schemas_number().default(0).
|
12109
|
-
labelAutoRotate: schemas_boolean().default(true).
|
12322
|
+
visible: schemas_boolean().default(true).nullish(),
|
12323
|
+
labelAutoHide: schemas_boolean().default(true).nullish(),
|
12324
|
+
labelAutoHideGap: schemas_number().default(0).nullish(),
|
12325
|
+
labelAutoRotate: schemas_boolean().default(true).nullish(),
|
12110
12326
|
labelAutoRotateAngleRange: schemas_array(schemas_number()).default([
|
12111
12327
|
0,
|
12112
12328
|
-45,
|
12113
12329
|
-90
|
12114
|
-
]).
|
12115
|
-
labelAutoLimit: schemas_boolean().default(true).
|
12116
|
-
labelAutoLimitLength: schemas_number().default(100).
|
12330
|
+
]).nullish(),
|
12331
|
+
labelAutoLimit: schemas_boolean().default(true).nullish(),
|
12332
|
+
labelAutoLimitLength: schemas_number().default(100).nullish(),
|
12117
12333
|
label: schemas_object({
|
12118
|
-
visible: schemas_boolean().default(true).
|
12119
|
-
labelColor: schemas_string().default('#797B85').
|
12120
|
-
labelFontSize: schemas_number().default(12).
|
12121
|
-
labelFontWeight: schemas_number().default(400).
|
12122
|
-
labelAngle: schemas_number().default(0).
|
12123
|
-
}).
|
12334
|
+
visible: schemas_boolean().default(true).nullish(),
|
12335
|
+
labelColor: schemas_string().default('#797B85').nullish(),
|
12336
|
+
labelFontSize: schemas_number().default(12).nullish(),
|
12337
|
+
labelFontWeight: schemas_number().default(400).nullish(),
|
12338
|
+
labelAngle: schemas_number().default(0).nullish()
|
12339
|
+
}).nullish(),
|
12124
12340
|
line: schemas_object({
|
12125
|
-
visible: schemas_boolean().default(true).
|
12126
|
-
lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').
|
12127
|
-
lineWidth: schemas_number().default(1).
|
12128
|
-
}).
|
12341
|
+
visible: schemas_boolean().default(true).nullish(),
|
12342
|
+
lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
12343
|
+
lineWidth: schemas_number().default(1).nullish()
|
12344
|
+
}).nullish(),
|
12129
12345
|
tick: schemas_object({
|
12130
|
-
visible: schemas_boolean().default(true).
|
12131
|
-
tickInside: schemas_boolean().default(false).
|
12132
|
-
tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').
|
12133
|
-
tickSize: schemas_number().default(4).
|
12134
|
-
}).
|
12346
|
+
visible: schemas_boolean().default(true).nullish(),
|
12347
|
+
tickInside: schemas_boolean().default(false).nullish(),
|
12348
|
+
tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
12349
|
+
tickSize: schemas_number().default(4).nullish()
|
12350
|
+
}).nullish(),
|
12135
12351
|
title: schemas_object({
|
12136
|
-
visible: schemas_boolean().default(false).
|
12137
|
-
titleText: schemas_string().default('').
|
12138
|
-
titleColor: schemas_string().default('#646A73').
|
12139
|
-
titleFontSize: schemas_number().default(12).
|
12140
|
-
titleFontWeight: schemas_number().default(400).
|
12141
|
-
}).
|
12352
|
+
visible: schemas_boolean().default(false).nullish(),
|
12353
|
+
titleText: schemas_string().default('').nullish(),
|
12354
|
+
titleColor: schemas_string().default('#646A73').nullish(),
|
12355
|
+
titleFontSize: schemas_number().default(12).nullish(),
|
12356
|
+
titleFontWeight: schemas_number().default(400).nullish()
|
12357
|
+
}).nullish(),
|
12142
12358
|
grid: schemas_object({
|
12143
|
-
visible: schemas_boolean().default(false).
|
12144
|
-
gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').
|
12145
|
-
gridWidth: schemas_number().default(0.5).
|
12146
|
-
}).
|
12359
|
+
visible: schemas_boolean().default(false).nullish(),
|
12360
|
+
gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').nullish(),
|
12361
|
+
gridWidth: schemas_number().default(0.5).nullish()
|
12362
|
+
}).nullish()
|
12147
12363
|
});
|
12148
12364
|
const zYBandAxis = zXBandAxis;
|
12149
12365
|
const zXLinearAxis = schemas_object({
|
12150
|
-
visible: schemas_boolean().default(true).
|
12151
|
-
min: schemas_number().
|
12152
|
-
max: schemas_number().
|
12153
|
-
nice: schemas_boolean().default(true).
|
12154
|
-
zero: schemas_boolean().default(true).
|
12155
|
-
log: schemas_boolean().default(false).
|
12156
|
-
logBase: schemas_number().default(10).
|
12157
|
-
inverse: schemas_boolean().default(false).
|
12366
|
+
visible: schemas_boolean().default(true).nullish(),
|
12367
|
+
min: schemas_number().nullish(),
|
12368
|
+
max: schemas_number().nullish(),
|
12369
|
+
nice: schemas_boolean().default(true).nullish(),
|
12370
|
+
zero: schemas_boolean().default(true).nullish(),
|
12371
|
+
log: schemas_boolean().default(false).nullish(),
|
12372
|
+
logBase: schemas_number().default(10).nullish(),
|
12373
|
+
inverse: schemas_boolean().default(false).nullish(),
|
12158
12374
|
label: schemas_object({
|
12159
|
-
visible: schemas_boolean().default(true).
|
12160
|
-
labelColor: schemas_string().default('#797B85').
|
12161
|
-
labelFontSize: schemas_number().default(12).
|
12162
|
-
labelFontWeight: schemas_number().default(400).
|
12163
|
-
labelAngle: schemas_number().default(0).
|
12164
|
-
}).
|
12375
|
+
visible: schemas_boolean().default(true).nullish(),
|
12376
|
+
labelColor: schemas_string().default('#797B85').nullish(),
|
12377
|
+
labelFontSize: schemas_number().default(12).nullish(),
|
12378
|
+
labelFontWeight: schemas_number().default(400).nullish(),
|
12379
|
+
labelAngle: schemas_number().default(0).nullish()
|
12380
|
+
}).nullish(),
|
12165
12381
|
line: schemas_object({
|
12166
|
-
visible: schemas_boolean().default(true).
|
12167
|
-
lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').
|
12168
|
-
lineWidth: schemas_number().default(1).
|
12169
|
-
}).
|
12382
|
+
visible: schemas_boolean().default(true).nullish(),
|
12383
|
+
lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
12384
|
+
lineWidth: schemas_number().default(1).nullish()
|
12385
|
+
}).nullish(),
|
12170
12386
|
tick: schemas_object({
|
12171
|
-
visible: schemas_boolean().default(true).
|
12172
|
-
tickInside: schemas_boolean().default(false).
|
12173
|
-
tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').
|
12174
|
-
tickSize: schemas_number().default(4).
|
12175
|
-
}).
|
12387
|
+
visible: schemas_boolean().default(true).nullish(),
|
12388
|
+
tickInside: schemas_boolean().default(false).nullish(),
|
12389
|
+
tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
12390
|
+
tickSize: schemas_number().default(4).nullish()
|
12391
|
+
}).nullish(),
|
12176
12392
|
title: schemas_object({
|
12177
|
-
visible: schemas_boolean().default(false).
|
12178
|
-
titleText: schemas_string().default('').
|
12179
|
-
titleColor: schemas_string().default('#646A73').
|
12180
|
-
titleFontSize: schemas_number().default(12).
|
12181
|
-
titleFontWeight: schemas_number().default(400).
|
12182
|
-
}).
|
12393
|
+
visible: schemas_boolean().default(false).nullish(),
|
12394
|
+
titleText: schemas_string().default('').nullish(),
|
12395
|
+
titleColor: schemas_string().default('#646A73').nullish(),
|
12396
|
+
titleFontSize: schemas_number().default(12).nullish(),
|
12397
|
+
titleFontWeight: schemas_number().default(400).nullish()
|
12398
|
+
}).nullish(),
|
12183
12399
|
grid: schemas_object({
|
12184
|
-
visible: schemas_boolean().default(false).
|
12185
|
-
gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').
|
12186
|
-
gridWidth: schemas_number().default(0.5).
|
12187
|
-
}).
|
12400
|
+
visible: schemas_boolean().default(false).nullish(),
|
12401
|
+
gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').nullish(),
|
12402
|
+
gridWidth: schemas_number().default(0.5).nullish()
|
12403
|
+
}).nullish()
|
12188
12404
|
});
|
12189
12405
|
const zYLinearAxis = zXLinearAxis;
|
12190
12406
|
const zCrosshairLine = schemas_object({
|
12191
|
-
visible: schemas_boolean().
|
12192
|
-
lineColor: schemas_string().
|
12193
|
-
labelColor: schemas_string().
|
12194
|
-
labelVisible: schemas_boolean().
|
12195
|
-
labelBackgroundColor: schemas_string().
|
12407
|
+
visible: schemas_boolean().nullish(),
|
12408
|
+
lineColor: schemas_string().nullish(),
|
12409
|
+
labelColor: schemas_string().nullish(),
|
12410
|
+
labelVisible: schemas_boolean().nullish(),
|
12411
|
+
labelBackgroundColor: schemas_string().nullish()
|
12196
12412
|
});
|
12197
12413
|
const zCrosshairRect = schemas_object({
|
12198
|
-
visible: schemas_boolean().
|
12199
|
-
rectColor: schemas_string().
|
12200
|
-
labelColor: schemas_string().
|
12201
|
-
labelVisible: schemas_boolean().
|
12202
|
-
labelBackgroundColor: schemas_string().
|
12414
|
+
visible: schemas_boolean().nullish(),
|
12415
|
+
rectColor: schemas_string().nullish(),
|
12416
|
+
labelColor: schemas_string().nullish(),
|
12417
|
+
labelVisible: schemas_boolean().nullish(),
|
12418
|
+
labelBackgroundColor: schemas_string().nullish()
|
12203
12419
|
});
|
12204
12420
|
const zStackCornerRadius = schemas_number().or(schemas_array(schemas_number())).default([
|
12205
12421
|
3,
|
@@ -12207,21 +12423,21 @@
|
|
12207
12423
|
0,
|
12208
12424
|
0
|
12209
12425
|
]);
|
12210
|
-
const zBackgroundColor = schemas_string().default('transparent').
|
12426
|
+
const zBackgroundColor = schemas_string().default('transparent').nullish();
|
12211
12427
|
const zColor = schemas_object({
|
12212
|
-
colorScheme: schemas_array(schemas_string()).
|
12213
|
-
colorMapping: record(schemas_string(), schemas_string()).
|
12428
|
+
colorScheme: schemas_array(schemas_string()).nullish(),
|
12429
|
+
colorMapping: record(schemas_string(), schemas_string()).nullish()
|
12214
12430
|
});
|
12215
12431
|
const zLinearColor = schemas_object({
|
12216
|
-
colorScheme: schemas_array(schemas_string()).
|
12432
|
+
colorScheme: schemas_array(schemas_string()).nullish()
|
12217
12433
|
});
|
12218
12434
|
const zLabel = schemas_object({
|
12219
|
-
enable: schemas_boolean().default(true).
|
12435
|
+
enable: schemas_boolean().default(true).nullish()
|
12220
12436
|
});
|
12221
12437
|
const zLegend = schemas_object({
|
12222
|
-
enable: schemas_boolean().default(true).
|
12223
|
-
border: schemas_boolean().default(true).
|
12224
|
-
maxSize: schemas_number().default(1).
|
12438
|
+
enable: schemas_boolean().default(true).nullish(),
|
12439
|
+
border: schemas_boolean().default(true).nullish(),
|
12440
|
+
maxSize: schemas_number().default(1).nullish(),
|
12225
12441
|
shapeType: schemas_enum([
|
12226
12442
|
'circle',
|
12227
12443
|
'cross',
|
@@ -12245,7 +12461,7 @@
|
|
12245
12461
|
'arrowRight',
|
12246
12462
|
'rectRound',
|
12247
12463
|
'roundLine'
|
12248
|
-
]).default('rectRound').
|
12464
|
+
]).default('rectRound').nullish(),
|
12249
12465
|
position: schemas_enum([
|
12250
12466
|
'left',
|
12251
12467
|
'leftTop',
|
@@ -12267,10 +12483,10 @@
|
|
12267
12483
|
'bottomRight',
|
12268
12484
|
'bl',
|
12269
12485
|
'br'
|
12270
|
-
]).default('bottom').
|
12271
|
-
labelFontSize: schemas_number().default(12).
|
12272
|
-
labelFontColor: schemas_string().default('#fff').
|
12273
|
-
labelFontWeight: schemas_number().or(schemas_string()).default(400).
|
12486
|
+
]).default('bottom').nullish(),
|
12487
|
+
labelFontSize: schemas_number().default(12).nullish(),
|
12488
|
+
labelFontColor: schemas_string().default('#fff').nullish(),
|
12489
|
+
labelFontWeight: schemas_number().or(schemas_string()).default(400).nullish()
|
12274
12490
|
});
|
12275
12491
|
const zColorLegend = schemas_object({
|
12276
12492
|
position: schemas_enum([
|
@@ -12294,194 +12510,195 @@
|
|
12294
12510
|
'bottomRight',
|
12295
12511
|
'bl',
|
12296
12512
|
'br'
|
12297
|
-
]).default('bottom').
|
12298
|
-
enable: schemas_boolean().default(true).
|
12513
|
+
]).default('bottom').nullish(),
|
12514
|
+
enable: schemas_boolean().default(true).nullish()
|
12299
12515
|
});
|
12300
12516
|
const zTooltip = schemas_object({
|
12301
|
-
enable: schemas_boolean().default(true).
|
12517
|
+
enable: schemas_boolean().default(true).nullish()
|
12302
12518
|
});
|
12303
12519
|
const zTableConfig = schemas_object({
|
12304
|
-
|
12305
|
-
|
12306
|
-
|
12307
|
-
|
12308
|
-
|
12309
|
-
|
12310
|
-
|
12311
|
-
|
12312
|
-
|
12313
|
-
|
12314
|
-
|
12315
|
-
|
12316
|
-
|
12520
|
+
backgroundColor: zBackgroundColor.nullish(),
|
12521
|
+
borderColor: schemas_string().nullish(),
|
12522
|
+
bodyFontSize: schemas_number().nullish(),
|
12523
|
+
bodyFontColor: schemas_string().nullish(),
|
12524
|
+
bodyBackgroundColor: schemas_string().nullish(),
|
12525
|
+
hoverBodyBackgroundColor: schemas_string().nullish(),
|
12526
|
+
hoverBodyInlineBackgroundColor: schemas_string().nullish(),
|
12527
|
+
headerFontSize: schemas_number().nullish(),
|
12528
|
+
headerFontColor: schemas_string().nullish(),
|
12529
|
+
headerBackgroundColor: schemas_string().nullish(),
|
12530
|
+
hoverHeaderBackgroundColor: schemas_string().nullish(),
|
12531
|
+
hoverHeaderInlineBackgroundColor: schemas_string().nullish(),
|
12532
|
+
selectedBorderColor: schemas_string().nullish(),
|
12533
|
+
selectedBackgroundColor: schemas_string().nullish()
|
12317
12534
|
});
|
12318
12535
|
const zPivotTableConfig = zTableConfig;
|
12319
12536
|
const zLineConfig = schemas_object({
|
12320
|
-
backgroundColor: zBackgroundColor.
|
12321
|
-
label: zLabel.
|
12322
|
-
color: zColor.
|
12323
|
-
tooltip: zTooltip.
|
12324
|
-
legend: zLegend.
|
12325
|
-
xAxis: zXBandAxis.
|
12326
|
-
yAxis: zYLinearAxis.
|
12327
|
-
crosshairLine: zCrosshairLine.
|
12537
|
+
backgroundColor: zBackgroundColor.nullish(),
|
12538
|
+
label: zLabel.nullish(),
|
12539
|
+
color: zColor.nullish(),
|
12540
|
+
tooltip: zTooltip.nullish(),
|
12541
|
+
legend: zLegend.nullish(),
|
12542
|
+
xAxis: zXBandAxis.nullish(),
|
12543
|
+
yAxis: zYLinearAxis.nullish(),
|
12544
|
+
crosshairLine: zCrosshairLine.nullish()
|
12328
12545
|
});
|
12329
12546
|
const zColumnConfig = schemas_object({
|
12330
|
-
backgroundColor: zBackgroundColor.
|
12331
|
-
label: zLabel.
|
12332
|
-
color: zColor.
|
12333
|
-
tooltip: zTooltip.
|
12334
|
-
legend: zLegend.
|
12335
|
-
xAxis: zXBandAxis.
|
12336
|
-
yAxis: zYLinearAxis.
|
12337
|
-
crosshairRect: zCrosshairRect.
|
12338
|
-
stackCornerRadius: zStackCornerRadius.
|
12547
|
+
backgroundColor: zBackgroundColor.nullish(),
|
12548
|
+
label: zLabel.nullish(),
|
12549
|
+
color: zColor.nullish(),
|
12550
|
+
tooltip: zTooltip.nullish(),
|
12551
|
+
legend: zLegend.nullish(),
|
12552
|
+
xAxis: zXBandAxis.nullish(),
|
12553
|
+
yAxis: zYLinearAxis.nullish(),
|
12554
|
+
crosshairRect: zCrosshairRect.nullish(),
|
12555
|
+
stackCornerRadius: zStackCornerRadius.nullish()
|
12339
12556
|
});
|
12340
12557
|
const zColumnParallelConfig = zColumnConfig;
|
12341
12558
|
const zColumnPercentConfig = zColumnConfig;
|
12342
12559
|
const zBarConfig = schemas_object({
|
12343
|
-
backgroundColor: zBackgroundColor.
|
12344
|
-
label: zLabel.
|
12345
|
-
color: zColor.
|
12346
|
-
tooltip: zTooltip.
|
12347
|
-
legend: zLegend.
|
12348
|
-
xAxis: zXLinearAxis.
|
12349
|
-
yAxis: zYBandAxis.
|
12350
|
-
crosshairRect: zCrosshairRect.
|
12351
|
-
stackCornerRadius: zStackCornerRadius.
|
12560
|
+
backgroundColor: zBackgroundColor.nullish(),
|
12561
|
+
label: zLabel.nullish(),
|
12562
|
+
color: zColor.nullish(),
|
12563
|
+
tooltip: zTooltip.nullish(),
|
12564
|
+
legend: zLegend.nullish(),
|
12565
|
+
xAxis: zXLinearAxis.nullish(),
|
12566
|
+
yAxis: zYBandAxis.nullish(),
|
12567
|
+
crosshairRect: zCrosshairRect.nullish(),
|
12568
|
+
stackCornerRadius: zStackCornerRadius.nullish()
|
12352
12569
|
});
|
12353
12570
|
const zBarParallelConfig = zBarConfig;
|
12354
12571
|
const zBarPercentConfig = zBarConfig;
|
12355
12572
|
const zAreaConfig = schemas_object({
|
12356
|
-
backgroundColor: zBackgroundColor.
|
12357
|
-
label: zLabel.
|
12358
|
-
color: zColor.
|
12359
|
-
tooltip: zTooltip.
|
12360
|
-
legend: zLegend.
|
12361
|
-
xAxis: zXBandAxis.
|
12362
|
-
yAxis: zYLinearAxis.
|
12363
|
-
crosshairLine: zCrosshairLine.
|
12573
|
+
backgroundColor: zBackgroundColor.nullish(),
|
12574
|
+
label: zLabel.nullish(),
|
12575
|
+
color: zColor.nullish(),
|
12576
|
+
tooltip: zTooltip.nullish(),
|
12577
|
+
legend: zLegend.nullish(),
|
12578
|
+
xAxis: zXBandAxis.nullish(),
|
12579
|
+
yAxis: zYLinearAxis.nullish(),
|
12580
|
+
crosshairLine: zCrosshairLine.nullish()
|
12364
12581
|
});
|
12365
12582
|
const zAreaPercentConfig = zAreaConfig;
|
12366
12583
|
const zAreaRangeConfig = zAreaConfig;
|
12367
12584
|
const zDualAxisConfig = schemas_object({
|
12368
|
-
backgroundColor: zBackgroundColor.
|
12369
|
-
label: zLabel.
|
12370
|
-
color: zColor.
|
12371
|
-
tooltip: zTooltip.
|
12372
|
-
legend: zLegend.
|
12373
|
-
dualChartType: schemas_array(zDualChartType).or(zDualChartType).
|
12374
|
-
primaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).
|
12375
|
-
secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).
|
12376
|
-
xAxis: zXBandAxis.
|
12377
|
-
crosshairRect: zCrosshairRect.
|
12585
|
+
backgroundColor: zBackgroundColor.nullish(),
|
12586
|
+
label: zLabel.nullish(),
|
12587
|
+
color: zColor.nullish(),
|
12588
|
+
tooltip: zTooltip.nullish(),
|
12589
|
+
legend: zLegend.nullish(),
|
12590
|
+
dualChartType: schemas_array(zDualChartType).or(zDualChartType).nullish(),
|
12591
|
+
primaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
|
12592
|
+
secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
|
12593
|
+
xAxis: zXBandAxis.nullish(),
|
12594
|
+
crosshairRect: zCrosshairRect.nullish()
|
12378
12595
|
});
|
12379
12596
|
const zScatterConfig = schemas_object({
|
12380
|
-
backgroundColor: zBackgroundColor.
|
12381
|
-
label: zLabel.
|
12382
|
-
color: zColor.
|
12383
|
-
tooltip: zTooltip.
|
12384
|
-
legend: zLegend.
|
12385
|
-
xAxis: zXLinearAxis.
|
12386
|
-
yAxis: zYLinearAxis.
|
12387
|
-
crosshairLine: zCrosshairLine.
|
12597
|
+
backgroundColor: zBackgroundColor.nullish(),
|
12598
|
+
label: zLabel.nullish(),
|
12599
|
+
color: zColor.nullish(),
|
12600
|
+
tooltip: zTooltip.nullish(),
|
12601
|
+
legend: zLegend.nullish(),
|
12602
|
+
xAxis: zXLinearAxis.nullish(),
|
12603
|
+
yAxis: zYLinearAxis.nullish(),
|
12604
|
+
crosshairLine: zCrosshairLine.nullish()
|
12388
12605
|
});
|
12389
12606
|
const zRoseConfig = schemas_object({
|
12390
|
-
backgroundColor: zBackgroundColor.
|
12391
|
-
label: zLabel.
|
12392
|
-
color: zColor.
|
12393
|
-
tooltip: zTooltip.
|
12394
|
-
legend: zLegend.
|
12607
|
+
backgroundColor: zBackgroundColor.nullish(),
|
12608
|
+
label: zLabel.nullish(),
|
12609
|
+
color: zColor.nullish(),
|
12610
|
+
tooltip: zTooltip.nullish(),
|
12611
|
+
legend: zLegend.nullish()
|
12395
12612
|
});
|
12396
12613
|
const zRoseParallelConfig = zRoseConfig;
|
12397
12614
|
const zPieConfig = schemas_object({
|
12398
|
-
backgroundColor: zBackgroundColor.
|
12399
|
-
label: zLabel.
|
12400
|
-
color: zColor.
|
12401
|
-
tooltip: zTooltip.
|
12402
|
-
legend: zLegend.
|
12615
|
+
backgroundColor: zBackgroundColor.nullish(),
|
12616
|
+
label: zLabel.nullish(),
|
12617
|
+
color: zColor.nullish(),
|
12618
|
+
tooltip: zTooltip.nullish(),
|
12619
|
+
legend: zLegend.nullish()
|
12403
12620
|
});
|
12404
12621
|
const zDonutConfig = zPieConfig;
|
12405
12622
|
const zRadarConfig = zPieConfig;
|
12406
12623
|
const zFunnelConfig = zPieConfig;
|
12407
12624
|
const zHeatmapConfig = zPieConfig;
|
12408
12625
|
const zConfig = schemas_object({
|
12409
|
-
table: zTableConfig.
|
12410
|
-
pivotTable: zPivotTableConfig.
|
12411
|
-
line: zLineConfig.
|
12412
|
-
column: zColumnConfig.
|
12413
|
-
columnParallel: zColumnParallelConfig.
|
12414
|
-
columnPercent: zColumnPercentConfig.
|
12415
|
-
bar: zBarConfig.
|
12416
|
-
barParallel: zBarParallelConfig.
|
12417
|
-
barPercent: zBarPercentConfig.
|
12418
|
-
area: zAreaConfig.
|
12419
|
-
areaPercent: zAreaPercentConfig.
|
12420
|
-
areaRange: zAreaRangeConfig.
|
12421
|
-
scatter: zScatterConfig.
|
12422
|
-
dualAxis: zDualAxisConfig.
|
12423
|
-
rose: zRoseConfig.
|
12424
|
-
roseParallel: zRoseParallelConfig.
|
12425
|
-
pie: zPieConfig.
|
12426
|
-
donut: zDonutConfig.
|
12427
|
-
radar: zRadarConfig.
|
12428
|
-
funnel: zFunnelConfig.
|
12429
|
-
heatmap: zHeatmapConfig.
|
12626
|
+
table: zTableConfig.nullish(),
|
12627
|
+
pivotTable: zPivotTableConfig.nullish(),
|
12628
|
+
line: zLineConfig.nullish(),
|
12629
|
+
column: zColumnConfig.nullish(),
|
12630
|
+
columnParallel: zColumnParallelConfig.nullish(),
|
12631
|
+
columnPercent: zColumnPercentConfig.nullish(),
|
12632
|
+
bar: zBarConfig.nullish(),
|
12633
|
+
barParallel: zBarParallelConfig.nullish(),
|
12634
|
+
barPercent: zBarPercentConfig.nullish(),
|
12635
|
+
area: zAreaConfig.nullish(),
|
12636
|
+
areaPercent: zAreaPercentConfig.nullish(),
|
12637
|
+
areaRange: zAreaRangeConfig.nullish(),
|
12638
|
+
scatter: zScatterConfig.nullish(),
|
12639
|
+
dualAxis: zDualAxisConfig.nullish(),
|
12640
|
+
rose: zRoseConfig.nullish(),
|
12641
|
+
roseParallel: zRoseParallelConfig.nullish(),
|
12642
|
+
pie: zPieConfig.nullish(),
|
12643
|
+
donut: zDonutConfig.nullish(),
|
12644
|
+
radar: zRadarConfig.nullish(),
|
12645
|
+
funnel: zFunnelConfig.nullish(),
|
12646
|
+
heatmap: zHeatmapConfig.nullish()
|
12430
12647
|
});
|
12431
12648
|
const zAxis = schemas_object({
|
12432
|
-
visible: schemas_boolean().default(true).
|
12433
|
-
min: schemas_number().
|
12434
|
-
max: schemas_number().
|
12435
|
-
nice: schemas_boolean().default(true).
|
12436
|
-
zero: schemas_boolean().default(true).
|
12437
|
-
inverse: schemas_boolean().default(false).
|
12438
|
-
log: schemas_boolean().default(false).
|
12439
|
-
logBase: schemas_number().default(10).
|
12440
|
-
labelAutoHide: schemas_boolean().default(true).
|
12441
|
-
labelAutoHideGap: schemas_number().default(4).
|
12442
|
-
labelAutoRotate: schemas_boolean().default(true).
|
12649
|
+
visible: schemas_boolean().default(true).nullish(),
|
12650
|
+
min: schemas_number().nullish(),
|
12651
|
+
max: schemas_number().nullish(),
|
12652
|
+
nice: schemas_boolean().default(true).nullish(),
|
12653
|
+
zero: schemas_boolean().default(true).nullish(),
|
12654
|
+
inverse: schemas_boolean().default(false).nullish(),
|
12655
|
+
log: schemas_boolean().default(false).nullish(),
|
12656
|
+
logBase: schemas_number().default(10).nullish(),
|
12657
|
+
labelAutoHide: schemas_boolean().default(true).nullish(),
|
12658
|
+
labelAutoHideGap: schemas_number().default(4).nullish(),
|
12659
|
+
labelAutoRotate: schemas_boolean().default(true).nullish(),
|
12443
12660
|
labelAutoRotateAngleRange: schemas_array(schemas_number()).default([
|
12444
12661
|
0,
|
12445
12662
|
-45,
|
12446
12663
|
-90
|
12447
|
-
]).
|
12448
|
-
labelAutoLimit: schemas_boolean().default(true).
|
12449
|
-
labelAutoLimitLength: schemas_number().default(100).
|
12664
|
+
]).nullish(),
|
12665
|
+
labelAutoLimit: schemas_boolean().default(true).nullish(),
|
12666
|
+
labelAutoLimitLength: schemas_number().default(100).nullish(),
|
12450
12667
|
label: schemas_object({
|
12451
|
-
visible: schemas_boolean().default(true).
|
12452
|
-
labelColor: schemas_string().default('#797B85').
|
12453
|
-
labelFontSize: schemas_number().default(12).
|
12454
|
-
labelFontWeight: schemas_number().default(400).
|
12455
|
-
labelAngle: schemas_number().default(0).
|
12456
|
-
}).
|
12668
|
+
visible: schemas_boolean().default(true).nullish(),
|
12669
|
+
labelColor: schemas_string().default('#797B85').nullish(),
|
12670
|
+
labelFontSize: schemas_number().default(12).nullish(),
|
12671
|
+
labelFontWeight: schemas_number().default(400).nullish(),
|
12672
|
+
labelAngle: schemas_number().default(0).nullish()
|
12673
|
+
}).nullish(),
|
12457
12674
|
line: schemas_object({
|
12458
|
-
visible: schemas_boolean().default(true).
|
12459
|
-
lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').
|
12460
|
-
lineWidth: schemas_number().default(1).
|
12461
|
-
}).
|
12675
|
+
visible: schemas_boolean().default(true).nullish(),
|
12676
|
+
lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
12677
|
+
lineWidth: schemas_number().default(1).nullish()
|
12678
|
+
}).nullish(),
|
12462
12679
|
tick: schemas_object({
|
12463
|
-
visible: schemas_boolean().default(true).
|
12464
|
-
tickInside: schemas_boolean().default(false).
|
12465
|
-
tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').
|
12466
|
-
tickSize: schemas_number().default(4).
|
12467
|
-
}).
|
12680
|
+
visible: schemas_boolean().default(true).nullish(),
|
12681
|
+
tickInside: schemas_boolean().default(false).nullish(),
|
12682
|
+
tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
12683
|
+
tickSize: schemas_number().default(4).nullish()
|
12684
|
+
}).nullish(),
|
12468
12685
|
title: schemas_object({
|
12469
|
-
visible: schemas_boolean().default(false).
|
12470
|
-
titleText: schemas_string().default('').
|
12471
|
-
titleColor: schemas_string().default('#646A73').
|
12472
|
-
titleFontSize: schemas_number().default(12).
|
12473
|
-
titleFontWeight: schemas_number().default(400).
|
12474
|
-
}).
|
12686
|
+
visible: schemas_boolean().default(false).nullish(),
|
12687
|
+
titleText: schemas_string().default('').nullish(),
|
12688
|
+
titleColor: schemas_string().default('#646A73').nullish(),
|
12689
|
+
titleFontSize: schemas_number().default(12).nullish(),
|
12690
|
+
titleFontWeight: schemas_number().default(400).nullish()
|
12691
|
+
}).nullish(),
|
12475
12692
|
grid: schemas_object({
|
12476
|
-
visible: schemas_boolean().default(false).
|
12477
|
-
gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').
|
12478
|
-
gridWidth: schemas_number().default(0.5).
|
12479
|
-
}).
|
12693
|
+
visible: schemas_boolean().default(false).nullish(),
|
12694
|
+
gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').nullish(),
|
12695
|
+
gridWidth: schemas_number().default(0.5).nullish()
|
12696
|
+
}).nullish()
|
12480
12697
|
});
|
12481
12698
|
const zCustomThemeConfig = schemas_object({
|
12482
|
-
config: zConfig.
|
12699
|
+
config: zConfig.nullish()
|
12483
12700
|
});
|
12484
|
-
const zCustomTheme = record(schemas_string(), zCustomThemeConfig).
|
12701
|
+
const zCustomTheme = record(schemas_string(), zCustomThemeConfig).nullish();
|
12485
12702
|
const zTheme = schemas_string();
|
12486
12703
|
const zSelector = union([
|
12487
12704
|
schemas_string(),
|
@@ -12497,7 +12714,7 @@
|
|
12497
12714
|
'>=',
|
12498
12715
|
'<=',
|
12499
12716
|
'between'
|
12500
|
-
]).
|
12717
|
+
]).nullish(),
|
12501
12718
|
op: schemas_enum([
|
12502
12719
|
'=',
|
12503
12720
|
'==',
|
@@ -12507,7 +12724,7 @@
|
|
12507
12724
|
'>=',
|
12508
12725
|
'<=',
|
12509
12726
|
'between'
|
12510
|
-
]).
|
12727
|
+
]).nullish(),
|
12511
12728
|
value: union([
|
12512
12729
|
schemas_string(),
|
12513
12730
|
schemas_number(),
|
@@ -12522,11 +12739,11 @@
|
|
12522
12739
|
operator: schemas_enum([
|
12523
12740
|
'in',
|
12524
12741
|
'not in'
|
12525
|
-
]).
|
12742
|
+
]).nullish(),
|
12526
12743
|
op: schemas_enum([
|
12527
12744
|
'in',
|
12528
12745
|
'not in'
|
12529
|
-
]).
|
12746
|
+
]).nullish(),
|
12530
12747
|
value: union([
|
12531
12748
|
schemas_string(),
|
12532
12749
|
schemas_number(),
|
@@ -12542,103 +12759,103 @@
|
|
12542
12759
|
selector: union([
|
12543
12760
|
zSelector,
|
12544
12761
|
zSelectors
|
12545
|
-
]).
|
12546
|
-
barColor: schemas_string().
|
12547
|
-
barColorOpacity: schemas_number().
|
12548
|
-
barBorderColor: schemas_string().
|
12549
|
-
barBorderWidth: schemas_number().
|
12762
|
+
]).nullish(),
|
12763
|
+
barColor: schemas_string().nullish(),
|
12764
|
+
barColorOpacity: schemas_number().nullish(),
|
12765
|
+
barBorderColor: schemas_string().nullish(),
|
12766
|
+
barBorderWidth: schemas_number().nullish(),
|
12550
12767
|
barBorderStyle: union([
|
12551
12768
|
literal('solid'),
|
12552
12769
|
literal('dashed'),
|
12553
12770
|
literal('dotted')
|
12554
|
-
]).
|
12771
|
+
]).nullish(),
|
12555
12772
|
barRadius: union([
|
12556
12773
|
schemas_number(),
|
12557
12774
|
schemas_array(schemas_number())
|
12558
|
-
]).
|
12775
|
+
]).nullish()
|
12559
12776
|
});
|
12560
12777
|
const zPointStyle = schemas_object({
|
12561
12778
|
selector: union([
|
12562
12779
|
zSelector,
|
12563
12780
|
zSelectors
|
12564
|
-
]).
|
12565
|
-
pointSize: schemas_number().
|
12566
|
-
pointColor: schemas_string().
|
12567
|
-
pointColorOpacity: schemas_number().
|
12568
|
-
pointBorderColor: schemas_string().
|
12569
|
-
pointBorderWidth: schemas_number().
|
12781
|
+
]).nullish(),
|
12782
|
+
pointSize: schemas_number().nullish(),
|
12783
|
+
pointColor: schemas_string().nullish(),
|
12784
|
+
pointColorOpacity: schemas_number().nullish(),
|
12785
|
+
pointBorderColor: schemas_string().nullish(),
|
12786
|
+
pointBorderWidth: schemas_number().nullish(),
|
12570
12787
|
pointBorderStyle: union([
|
12571
12788
|
schemas_enum([
|
12572
12789
|
'solid',
|
12573
12790
|
'dashed',
|
12574
12791
|
'dotted'
|
12575
12792
|
])
|
12576
|
-
]).
|
12793
|
+
]).nullish()
|
12577
12794
|
});
|
12578
12795
|
const zLineStyle = schemas_object({
|
12579
12796
|
selector: union([
|
12580
12797
|
zSelector,
|
12581
12798
|
zSelectors
|
12582
|
-
]).
|
12583
|
-
lineSmooth: schemas_boolean().
|
12584
|
-
lineColor: schemas_string().
|
12585
|
-
lineColorOpacity: schemas_number().
|
12586
|
-
lineWidth: schemas_number().
|
12799
|
+
]).nullish(),
|
12800
|
+
lineSmooth: schemas_boolean().nullish(),
|
12801
|
+
lineColor: schemas_string().nullish(),
|
12802
|
+
lineColorOpacity: schemas_number().nullish(),
|
12803
|
+
lineWidth: schemas_number().nullish(),
|
12587
12804
|
lineStyle: union([
|
12588
12805
|
schemas_enum([
|
12589
12806
|
'solid',
|
12590
12807
|
'dashed',
|
12591
12808
|
'dotted'
|
12592
12809
|
])
|
12593
|
-
]).
|
12810
|
+
]).nullish()
|
12594
12811
|
});
|
12595
12812
|
const zAreaStyle = schemas_object({
|
12596
12813
|
selector: union([
|
12597
12814
|
zSelector,
|
12598
12815
|
zSelectors
|
12599
|
-
]).
|
12600
|
-
areaColor: schemas_string().
|
12601
|
-
areaColorOpacity: schemas_number().
|
12816
|
+
]).nullish(),
|
12817
|
+
areaColor: schemas_string().nullish(),
|
12818
|
+
areaColorOpacity: schemas_number().nullish()
|
12602
12819
|
});
|
12603
12820
|
const zMarkStyle = schemas_object({
|
12604
|
-
barStyle: zBarStyle.or(schemas_array(zBarStyle)).
|
12605
|
-
pointStyle: zPointStyle.or(schemas_array(zPointStyle)).
|
12606
|
-
lineStyle: zLineStyle.or(schemas_array(zLineStyle)).
|
12607
|
-
areaStyle: zAreaStyle.or(schemas_array(zAreaStyle)).
|
12821
|
+
barStyle: zBarStyle.or(schemas_array(zBarStyle)).nullish(),
|
12822
|
+
pointStyle: zPointStyle.or(schemas_array(zPointStyle)).nullish(),
|
12823
|
+
lineStyle: zLineStyle.or(schemas_array(zLineStyle)).nullish(),
|
12824
|
+
areaStyle: zAreaStyle.or(schemas_array(zAreaStyle)).nullish()
|
12608
12825
|
});
|
12609
12826
|
const zAnnotationPoint = schemas_object({
|
12610
12827
|
selector: union([
|
12611
12828
|
zSelector,
|
12612
12829
|
zSelectors
|
12613
12830
|
]),
|
12614
|
-
text: schemas_string().or(schemas_array(schemas_string())).
|
12615
|
-
textColor: schemas_string().default('#ffffff').
|
12616
|
-
textFontSize: schemas_number().default(12).
|
12617
|
-
textFontWeight: schemas_number().default(400).
|
12831
|
+
text: schemas_string().or(schemas_array(schemas_string())).nullish(),
|
12832
|
+
textColor: schemas_string().default('#ffffff').nullish(),
|
12833
|
+
textFontSize: schemas_number().default(12).nullish(),
|
12834
|
+
textFontWeight: schemas_number().default(400).nullish(),
|
12618
12835
|
textAlign: schemas_enum([
|
12619
12836
|
'left',
|
12620
12837
|
'right',
|
12621
12838
|
'center'
|
12622
|
-
]).default('center').
|
12839
|
+
]).default('center').nullish(),
|
12623
12840
|
textBaseline: schemas_enum([
|
12624
12841
|
'top',
|
12625
12842
|
'middle',
|
12626
12843
|
'bottom'
|
12627
|
-
]).default('middle').
|
12628
|
-
|
12629
|
-
|
12630
|
-
|
12631
|
-
|
12632
|
-
|
12633
|
-
|
12634
|
-
offsetY: schemas_number().default(0).
|
12635
|
-
offsetX: schemas_number().default(0).
|
12844
|
+
]).default('middle').nullish(),
|
12845
|
+
textBackgroundVisible: schemas_boolean().default(true).nullish(),
|
12846
|
+
textBackgroundColor: schemas_string().default('#212121').nullish(),
|
12847
|
+
textBackgroundBorderColor: schemas_string().nullish(),
|
12848
|
+
textBackgroundBorderWidth: schemas_number().default(1).nullish(),
|
12849
|
+
textBackgroundBorderRadius: schemas_number().default(4).nullish(),
|
12850
|
+
textBackgroundPadding: schemas_number().nullish(),
|
12851
|
+
offsetY: schemas_number().default(0).nullish(),
|
12852
|
+
offsetX: schemas_number().default(0).nullish()
|
12636
12853
|
});
|
12637
12854
|
const zAnnotationVerticalLine = schemas_object({
|
12638
12855
|
selector: union([
|
12639
12856
|
zSelector,
|
12640
12857
|
zSelectors
|
12641
|
-
]).
|
12858
|
+
]).nullish(),
|
12642
12859
|
xValue: union([
|
12643
12860
|
schemas_number(),
|
12644
12861
|
schemas_string(),
|
@@ -12646,8 +12863,8 @@
|
|
12646
12863
|
schemas_number(),
|
12647
12864
|
schemas_string()
|
12648
12865
|
]))
|
12649
|
-
]).
|
12650
|
-
text: schemas_string().or(schemas_array(schemas_string())).
|
12866
|
+
]).nullish(),
|
12867
|
+
text: schemas_string().or(schemas_array(schemas_string())).nullish(),
|
12651
12868
|
textPosition: schemas_enum([
|
12652
12869
|
'outsideStart',
|
12653
12870
|
'outsideEnd',
|
@@ -12655,34 +12872,34 @@
|
|
12655
12872
|
'insideStart',
|
12656
12873
|
'insideMiddle',
|
12657
12874
|
'insideEnd'
|
12658
|
-
]).default('insideEnd').
|
12659
|
-
textColor: schemas_string().default('#ffffff').
|
12660
|
-
textFontSize: schemas_number().default(12).
|
12661
|
-
textFontWeight: schemas_number().default(400).
|
12875
|
+
]).default('insideEnd').nullish(),
|
12876
|
+
textColor: schemas_string().default('#ffffff').nullish(),
|
12877
|
+
textFontSize: schemas_number().default(12).nullish(),
|
12878
|
+
textFontWeight: schemas_number().default(400).nullish(),
|
12662
12879
|
textAlign: schemas_enum([
|
12663
12880
|
'left',
|
12664
12881
|
'right',
|
12665
12882
|
'center'
|
12666
|
-
]).default('right').
|
12883
|
+
]).default('right').nullish(),
|
12667
12884
|
textBaseline: schemas_enum([
|
12668
12885
|
'top',
|
12669
12886
|
'middle',
|
12670
12887
|
'bottom'
|
12671
|
-
]).default('top').
|
12672
|
-
|
12673
|
-
|
12674
|
-
|
12888
|
+
]).default('top').nullish(),
|
12889
|
+
textBackgroundVisible: schemas_boolean().default(true).nullish(),
|
12890
|
+
textBackgroundColor: schemas_string().default('#212121').nullish(),
|
12891
|
+
textBackgroundBorderColor: schemas_string().default('#212121').nullish(),
|
12892
|
+
textBackgroundBorderRadius: schemas_number().default(4).nullish(),
|
12893
|
+
textBackgroundBorderWidth: schemas_number().default(1).nullish(),
|
12894
|
+
textBackgroundPadding: schemas_number().default(2).nullish(),
|
12895
|
+
lineVisible: schemas_boolean().default(true).nullish(),
|
12896
|
+
lineColor: schemas_string().default('#212121').nullish(),
|
12897
|
+
lineWidth: schemas_number().default(1).nullish(),
|
12675
12898
|
lineStyle: union([
|
12676
12899
|
literal('solid'),
|
12677
12900
|
literal('dashed'),
|
12678
12901
|
literal('dotted')
|
12679
|
-
]).default('dashed').
|
12680
|
-
backgroundVisible: schemas_boolean().default(true).optional(),
|
12681
|
-
backgroundColor: schemas_string().default('#212121').optional(),
|
12682
|
-
backgroundBorderColor: schemas_string().default('#212121').optional(),
|
12683
|
-
backgroundBorderRadius: schemas_number().default(4).optional(),
|
12684
|
-
backgroundBorderWidth: schemas_number().default(1).optional(),
|
12685
|
-
backgroundPadding: schemas_number().default(2).optional(),
|
12902
|
+
]).default('dashed').nullish(),
|
12686
12903
|
offsetX: schemas_number().default(0),
|
12687
12904
|
offsetY: schemas_number().default(0)
|
12688
12905
|
});
|
@@ -12690,7 +12907,7 @@
|
|
12690
12907
|
selector: union([
|
12691
12908
|
zSelector,
|
12692
12909
|
zSelectors
|
12693
|
-
]).
|
12910
|
+
]).nullish(),
|
12694
12911
|
yValue: union([
|
12695
12912
|
schemas_number(),
|
12696
12913
|
schemas_string(),
|
@@ -12698,8 +12915,8 @@
|
|
12698
12915
|
schemas_number(),
|
12699
12916
|
schemas_string()
|
12700
12917
|
]))
|
12701
|
-
]).
|
12702
|
-
text: schemas_string().or(schemas_array(schemas_string())).
|
12918
|
+
]).nullish(),
|
12919
|
+
text: schemas_string().or(schemas_array(schemas_string())).nullish(),
|
12703
12920
|
textPosition: schemas_enum([
|
12704
12921
|
'outsideStart',
|
12705
12922
|
'outsideEnd',
|
@@ -12707,34 +12924,34 @@
|
|
12707
12924
|
'insideStart',
|
12708
12925
|
'insideMiddle',
|
12709
12926
|
'insideEnd'
|
12710
|
-
]).default('insideEnd').
|
12711
|
-
textColor: schemas_string().default('#ffffff').
|
12712
|
-
textFontSize: schemas_number().default(12).
|
12713
|
-
textFontWeight: schemas_number().default(400).
|
12927
|
+
]).default('insideEnd').nullish(),
|
12928
|
+
textColor: schemas_string().default('#ffffff').nullish(),
|
12929
|
+
textFontSize: schemas_number().default(12).nullish(),
|
12930
|
+
textFontWeight: schemas_number().default(400).nullish(),
|
12714
12931
|
textAlign: schemas_enum([
|
12715
12932
|
'left',
|
12716
12933
|
'right',
|
12717
12934
|
'center'
|
12718
|
-
]).default('right').
|
12935
|
+
]).default('right').nullish(),
|
12719
12936
|
textBaseline: schemas_enum([
|
12720
12937
|
'top',
|
12721
12938
|
'middle',
|
12722
12939
|
'bottom'
|
12723
|
-
]).default('top').
|
12724
|
-
lineVisible: schemas_boolean().default(true).
|
12725
|
-
lineColor: schemas_string().default('#212121').
|
12726
|
-
lineWidth: schemas_number().default(1).
|
12940
|
+
]).default('top').nullish(),
|
12941
|
+
lineVisible: schemas_boolean().default(true).nullish(),
|
12942
|
+
lineColor: schemas_string().default('#212121').nullish(),
|
12943
|
+
lineWidth: schemas_number().default(1).nullish(),
|
12727
12944
|
lineStyle: union([
|
12728
12945
|
literal('solid'),
|
12729
12946
|
literal('dashed'),
|
12730
12947
|
literal('dotted')
|
12731
|
-
]).default('dashed').
|
12732
|
-
|
12733
|
-
|
12734
|
-
|
12735
|
-
|
12736
|
-
|
12737
|
-
|
12948
|
+
]).default('dashed').nullish(),
|
12949
|
+
textBackgroundVisible: schemas_boolean().default(true).nullish(),
|
12950
|
+
textBackgroundColor: schemas_string().default('#212121').nullish(),
|
12951
|
+
textBackgroundBorderColor: schemas_string().default('#212121').nullish(),
|
12952
|
+
textBackgroundBorderRadius: schemas_number().default(4).nullish(),
|
12953
|
+
textBackgroundBorderWidth: schemas_number().default(1).nullish(),
|
12954
|
+
textBackgroundPadding: schemas_number().default(2).nullish(),
|
12738
12955
|
offsetX: schemas_number().default(0),
|
12739
12956
|
offsetY: schemas_number().default(0)
|
12740
12957
|
});
|
@@ -12752,60 +12969,60 @@
|
|
12752
12969
|
'bottomRight',
|
12753
12970
|
'left',
|
12754
12971
|
'right'
|
12755
|
-
]).default('top').
|
12756
|
-
text: schemas_string().or(schemas_array(schemas_string())).
|
12757
|
-
textColor: schemas_string().default('#ffffff').
|
12758
|
-
textFontSize: schemas_number().default(12).
|
12759
|
-
textFontWeight: schemas_number().default(400).
|
12972
|
+
]).default('top').nullish(),
|
12973
|
+
text: schemas_string().or(schemas_array(schemas_string())).nullish(),
|
12974
|
+
textColor: schemas_string().default('#ffffff').nullish(),
|
12975
|
+
textFontSize: schemas_number().default(12).nullish(),
|
12976
|
+
textFontWeight: schemas_number().default(400).nullish(),
|
12760
12977
|
textAlign: schemas_enum([
|
12761
12978
|
'left',
|
12762
12979
|
'right',
|
12763
12980
|
'center'
|
12764
|
-
]).default('center').
|
12981
|
+
]).default('center').nullish(),
|
12765
12982
|
textBaseline: schemas_enum([
|
12766
12983
|
'top',
|
12767
12984
|
'middle',
|
12768
12985
|
'bottom'
|
12769
|
-
]).default('top').
|
12770
|
-
|
12771
|
-
|
12772
|
-
|
12773
|
-
|
12774
|
-
|
12775
|
-
|
12776
|
-
areaColor: schemas_string().default('#888888').
|
12777
|
-
areaColorOpacity: schemas_number().default(0.15).
|
12778
|
-
areaBorderColor: schemas_string().default('#888888').
|
12779
|
-
areaBorderWidth: schemas_number().default(1).
|
12780
|
-
areaBorderRadius: schemas_number().default(4).
|
12781
|
-
outerPadding: schemas_number().default(4).
|
12782
|
-
offsetX: schemas_number().default(0).
|
12783
|
-
offsetY: schemas_number().default(0).
|
12986
|
+
]).default('top').nullish(),
|
12987
|
+
textBackgroundVisible: schemas_boolean().default(true).nullish(),
|
12988
|
+
textBackgroundColor: schemas_string().default('#191d24').nullish(),
|
12989
|
+
textBackgroundBorderColor: schemas_string().default('#191d24').nullish(),
|
12990
|
+
textBackgroundBorderWidth: schemas_number().default(1).nullish(),
|
12991
|
+
textBackgroundBorderRadius: schemas_number().default(4).nullish(),
|
12992
|
+
textBackgroundPadding: schemas_number().default(4).nullish(),
|
12993
|
+
areaColor: schemas_string().default('#888888').nullish(),
|
12994
|
+
areaColorOpacity: schemas_number().default(0.15).nullish(),
|
12995
|
+
areaBorderColor: schemas_string().default('#888888').nullish(),
|
12996
|
+
areaBorderWidth: schemas_number().default(1).nullish(),
|
12997
|
+
areaBorderRadius: schemas_number().default(4).nullish(),
|
12998
|
+
outerPadding: schemas_number().default(4).nullish(),
|
12999
|
+
offsetX: schemas_number().default(0).nullish(),
|
13000
|
+
offsetY: schemas_number().default(0).nullish()
|
12784
13001
|
});
|
12785
13002
|
const zAnnotation = schemas_object({
|
12786
|
-
annotationPoint: zAnnotationPoint.or(schemas_array(zAnnotationPoint)).
|
12787
|
-
annotationVerticalLine: zAnnotationVerticalLine.or(schemas_array(zAnnotationVerticalLine)).
|
12788
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.or(schemas_array(zAnnotationHorizontalLine)).
|
12789
|
-
annotationArea: zAnnotationArea.or(schemas_array(zAnnotationArea)).
|
13003
|
+
annotationPoint: zAnnotationPoint.or(schemas_array(zAnnotationPoint)).nullish(),
|
13004
|
+
annotationVerticalLine: zAnnotationVerticalLine.or(schemas_array(zAnnotationVerticalLine)).nullish(),
|
13005
|
+
annotationHorizontalLine: zAnnotationHorizontalLine.or(schemas_array(zAnnotationHorizontalLine)).nullish(),
|
13006
|
+
annotationArea: zAnnotationArea.or(schemas_array(zAnnotationArea)).nullish()
|
12790
13007
|
});
|
12791
13008
|
const zSort = schemas_object({
|
12792
13009
|
order: schemas_enum([
|
12793
13010
|
'asc',
|
12794
13011
|
'desc'
|
12795
13012
|
]).default('asc'),
|
12796
|
-
orderBy: schemas_string().
|
12797
|
-
customOrder: schemas_array(any()).
|
13013
|
+
orderBy: schemas_string().nullish(),
|
13014
|
+
customOrder: schemas_array(any()).nullish()
|
12798
13015
|
});
|
12799
13016
|
const zSortLegend = schemas_object({
|
12800
13017
|
order: schemas_enum([
|
12801
13018
|
'asc',
|
12802
13019
|
'desc'
|
12803
13020
|
]).default('asc'),
|
12804
|
-
orderBy: schemas_string().
|
12805
|
-
customOrder: schemas_array(any()).
|
13021
|
+
orderBy: schemas_string().nullish(),
|
13022
|
+
customOrder: schemas_array(any()).nullish()
|
12806
13023
|
});
|
12807
13024
|
const zAnalysis = schemas_object({
|
12808
|
-
orderMapping: record(schemas_string(), schemas_array(schemas_string())).
|
13025
|
+
orderMapping: record(schemas_string(), schemas_array(schemas_string())).nullish()
|
12809
13026
|
});
|
12810
13027
|
const zLocale = schemas_enum([
|
12811
13028
|
'zh-CN',
|
@@ -12813,384 +13030,410 @@
|
|
12813
13030
|
]).default('zh-CN');
|
12814
13031
|
const zTable = schemas_object({
|
12815
13032
|
chartType: literal('table'),
|
12816
|
-
dataset: zDataset.
|
12817
|
-
dimensions: zDimensions.
|
12818
|
-
measures: zMeasureTree.
|
12819
|
-
backgroundColor: zBackgroundColor.
|
12820
|
-
|
12821
|
-
|
13033
|
+
dataset: zDataset.nullish(),
|
13034
|
+
dimensions: zDimensions.nullish(),
|
13035
|
+
measures: zMeasureTree.nullish(),
|
13036
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13037
|
+
borderColor: schemas_string().nullish(),
|
13038
|
+
bodyFontSize: schemas_number().nullish(),
|
13039
|
+
bodyFontColor: schemas_string().nullish(),
|
13040
|
+
bodyBackgroundColor: schemas_string().nullish(),
|
13041
|
+
hoverBodyBackgroundColor: schemas_string().nullish(),
|
13042
|
+
hoverBodyInlineBackgroundColor: schemas_string().nullish(),
|
13043
|
+
headerFontSize: schemas_number().nullish(),
|
13044
|
+
headerFontColor: schemas_string().nullish(),
|
13045
|
+
headerBackgroundColor: schemas_string().nullish(),
|
13046
|
+
hoverHeaderBackgroundColor: schemas_string().nullish(),
|
13047
|
+
hoverHeaderInlineBackgroundColor: schemas_string().nullish(),
|
13048
|
+
selectedBorderColor: schemas_string().nullish(),
|
13049
|
+
selectedBackgroundColor: schemas_string().nullish(),
|
13050
|
+
theme: zTheme.nullish(),
|
13051
|
+
locale: zLocale.nullish()
|
12822
13052
|
});
|
12823
13053
|
const zPivotTable = schemas_object({
|
12824
13054
|
chartType: literal('pivotTable'),
|
12825
|
-
dataset: zDataset.
|
12826
|
-
dimensions: zDimensions.
|
12827
|
-
measures: zMeasures.
|
12828
|
-
backgroundColor: zBackgroundColor.
|
12829
|
-
|
12830
|
-
|
13055
|
+
dataset: zDataset.nullish(),
|
13056
|
+
dimensions: zDimensions.nullish(),
|
13057
|
+
measures: zMeasures.nullish(),
|
13058
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13059
|
+
borderColor: schemas_string().nullish(),
|
13060
|
+
bodyFontSize: schemas_number().nullish(),
|
13061
|
+
bodyFontColor: schemas_string().nullish(),
|
13062
|
+
bodyBackgroundColor: schemas_string().nullish(),
|
13063
|
+
hoverBodyBackgroundColor: schemas_string().nullish(),
|
13064
|
+
hoverBodyInlineBackgroundColor: schemas_string().nullish(),
|
13065
|
+
headerFontSize: schemas_number().nullish(),
|
13066
|
+
headerFontColor: schemas_string().nullish(),
|
13067
|
+
headerBackgroundColor: schemas_string().nullish(),
|
13068
|
+
hoverHeaderBackgroundColor: schemas_string().nullish(),
|
13069
|
+
hoverHeaderInlineBackgroundColor: schemas_string().nullish(),
|
13070
|
+
selectedBorderColor: schemas_string().nullish(),
|
13071
|
+
selectedBackgroundColor: schemas_string().nullish(),
|
13072
|
+
theme: zTheme.nullish(),
|
13073
|
+
locale: zLocale.nullish()
|
12831
13074
|
});
|
12832
13075
|
const zLine = schemas_object({
|
12833
13076
|
chartType: literal('line'),
|
12834
|
-
dataset: zDataset.
|
12835
|
-
dimensions: zDimensions.
|
12836
|
-
measures: zMeasureTree.
|
12837
|
-
backgroundColor: zBackgroundColor.
|
12838
|
-
color: zColor.
|
12839
|
-
label: zLabel.
|
12840
|
-
legend: zLegend.
|
12841
|
-
tooltip: zTooltip.
|
12842
|
-
xAxis: zXBandAxis.
|
12843
|
-
yAxis: zYLinearAxis.
|
12844
|
-
crosshairLine: zCrosshairLine.
|
12845
|
-
sort: zSort.
|
12846
|
-
sortLegend: zSortLegend.
|
12847
|
-
theme: zTheme.
|
12848
|
-
pointStyle: schemas_array(zPointStyle).or(zPointStyle).
|
12849
|
-
lineStyle: schemas_array(zLineStyle).or(zLineStyle).
|
12850
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
12851
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
12852
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
12853
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
12854
|
-
locale: zLocale.
|
13077
|
+
dataset: zDataset.nullish(),
|
13078
|
+
dimensions: zDimensions.nullish(),
|
13079
|
+
measures: zMeasureTree.nullish(),
|
13080
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13081
|
+
color: zColor.nullish(),
|
13082
|
+
label: zLabel.nullish(),
|
13083
|
+
legend: zLegend.nullish(),
|
13084
|
+
tooltip: zTooltip.nullish(),
|
13085
|
+
xAxis: zXBandAxis.nullish(),
|
13086
|
+
yAxis: zYLinearAxis.nullish(),
|
13087
|
+
crosshairLine: zCrosshairLine.nullish(),
|
13088
|
+
sort: zSort.nullish(),
|
13089
|
+
sortLegend: zSortLegend.nullish(),
|
13090
|
+
theme: zTheme.nullish(),
|
13091
|
+
pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
|
13092
|
+
lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
|
13093
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13094
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13095
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13096
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13097
|
+
locale: zLocale.nullish()
|
12855
13098
|
});
|
12856
13099
|
const zColumn = schemas_object({
|
12857
13100
|
chartType: literal('column'),
|
12858
|
-
dataset: zDataset.
|
12859
|
-
dimensions: zDimensions.
|
12860
|
-
measures: zMeasureTree.
|
12861
|
-
backgroundColor: zBackgroundColor.
|
12862
|
-
color: zColor.
|
12863
|
-
label: zLabel.
|
12864
|
-
legend: zLegend.
|
12865
|
-
tooltip: zTooltip.
|
12866
|
-
xAxis: zXBandAxis.
|
12867
|
-
yAxis: zYLinearAxis.
|
12868
|
-
crosshairRect: zCrosshairRect.
|
12869
|
-
stackCornerRadius: zStackCornerRadius.
|
12870
|
-
theme: zTheme.
|
12871
|
-
barStyle: schemas_array(zBarStyle).or(zBarStyle).
|
12872
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
12873
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
12874
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
12875
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
12876
|
-
locale: zLocale.
|
13101
|
+
dataset: zDataset.nullish(),
|
13102
|
+
dimensions: zDimensions.nullish(),
|
13103
|
+
measures: zMeasureTree.nullish(),
|
13104
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13105
|
+
color: zColor.nullish(),
|
13106
|
+
label: zLabel.nullish(),
|
13107
|
+
legend: zLegend.nullish(),
|
13108
|
+
tooltip: zTooltip.nullish(),
|
13109
|
+
xAxis: zXBandAxis.nullish(),
|
13110
|
+
yAxis: zYLinearAxis.nullish(),
|
13111
|
+
crosshairRect: zCrosshairRect.nullish(),
|
13112
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
13113
|
+
theme: zTheme.nullish(),
|
13114
|
+
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
13115
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13116
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13117
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13118
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13119
|
+
locale: zLocale.nullish()
|
12877
13120
|
});
|
12878
13121
|
const zColumnParallel = schemas_object({
|
12879
13122
|
chartType: literal('columnParallel'),
|
12880
|
-
dataset: zDataset.
|
12881
|
-
dimensions: zDimensions.
|
12882
|
-
measures: zMeasureTree.
|
12883
|
-
backgroundColor: zBackgroundColor.
|
12884
|
-
color: zColor.
|
12885
|
-
label: zLabel.
|
12886
|
-
legend: zLegend.
|
12887
|
-
tooltip: zTooltip.
|
12888
|
-
xAxis: zXBandAxis.
|
12889
|
-
yAxis: zYLinearAxis.
|
12890
|
-
crosshairRect: zCrosshairRect.
|
12891
|
-
stackCornerRadius: zStackCornerRadius.
|
12892
|
-
theme: zTheme.
|
12893
|
-
barStyle: schemas_array(zBarStyle).or(zBarStyle).
|
12894
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
12895
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
12896
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
12897
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
12898
|
-
locale: zLocale.
|
13123
|
+
dataset: zDataset.nullish(),
|
13124
|
+
dimensions: zDimensions.nullish(),
|
13125
|
+
measures: zMeasureTree.nullish(),
|
13126
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13127
|
+
color: zColor.nullish(),
|
13128
|
+
label: zLabel.nullish(),
|
13129
|
+
legend: zLegend.nullish(),
|
13130
|
+
tooltip: zTooltip.nullish(),
|
13131
|
+
xAxis: zXBandAxis.nullish(),
|
13132
|
+
yAxis: zYLinearAxis.nullish(),
|
13133
|
+
crosshairRect: zCrosshairRect.nullish(),
|
13134
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
13135
|
+
theme: zTheme.nullish(),
|
13136
|
+
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
13137
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13138
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13139
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13140
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13141
|
+
locale: zLocale.nullish()
|
12899
13142
|
});
|
12900
13143
|
const zColumnPercent = schemas_object({
|
12901
13144
|
chartType: literal('columnPercent'),
|
12902
|
-
dataset: zDataset.
|
12903
|
-
dimensions: zDimensions.
|
12904
|
-
measures: zMeasureTree.
|
12905
|
-
backgroundColor: zBackgroundColor.
|
12906
|
-
color: zColor.
|
12907
|
-
label: zLabel.
|
12908
|
-
legend: zLegend.
|
12909
|
-
tooltip: zTooltip.
|
12910
|
-
xAxis: zXBandAxis.
|
12911
|
-
yAxis: zYLinearAxis.
|
12912
|
-
crosshairRect: zCrosshairRect.
|
12913
|
-
stackCornerRadius: zStackCornerRadius.
|
12914
|
-
theme: zTheme.
|
12915
|
-
barStyle: schemas_array(zBarStyle).or(zBarStyle).
|
12916
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
12917
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
12918
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
12919
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
12920
|
-
locale: zLocale.
|
13145
|
+
dataset: zDataset.nullish(),
|
13146
|
+
dimensions: zDimensions.nullish(),
|
13147
|
+
measures: zMeasureTree.nullish(),
|
13148
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13149
|
+
color: zColor.nullish(),
|
13150
|
+
label: zLabel.nullish(),
|
13151
|
+
legend: zLegend.nullish(),
|
13152
|
+
tooltip: zTooltip.nullish(),
|
13153
|
+
xAxis: zXBandAxis.nullish(),
|
13154
|
+
yAxis: zYLinearAxis.nullish(),
|
13155
|
+
crosshairRect: zCrosshairRect.nullish(),
|
13156
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
13157
|
+
theme: zTheme.nullish(),
|
13158
|
+
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
13159
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13160
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13161
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13162
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13163
|
+
locale: zLocale.nullish()
|
12921
13164
|
});
|
12922
13165
|
const zBar = schemas_object({
|
12923
13166
|
chartType: literal('bar'),
|
12924
|
-
dataset: zDataset.
|
12925
|
-
dimensions: zDimensions.
|
12926
|
-
measures: zMeasureTree.
|
12927
|
-
backgroundColor: zBackgroundColor.
|
12928
|
-
color: zColor.
|
12929
|
-
label: zLabel.
|
12930
|
-
legend: zLegend.
|
12931
|
-
tooltip: zTooltip.
|
12932
|
-
xAxis: zXLinearAxis.
|
12933
|
-
yAxis: zYBandAxis.
|
12934
|
-
crosshairRect: zCrosshairRect.
|
12935
|
-
stackCornerRadius: zStackCornerRadius.
|
12936
|
-
theme: zTheme.
|
12937
|
-
barStyle: schemas_array(zBarStyle).or(zBarStyle).
|
12938
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
12939
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
12940
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
12941
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
12942
|
-
locale: zLocale.
|
13167
|
+
dataset: zDataset.nullish(),
|
13168
|
+
dimensions: zDimensions.nullish(),
|
13169
|
+
measures: zMeasureTree.nullish(),
|
13170
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13171
|
+
color: zColor.nullish(),
|
13172
|
+
label: zLabel.nullish(),
|
13173
|
+
legend: zLegend.nullish(),
|
13174
|
+
tooltip: zTooltip.nullish(),
|
13175
|
+
xAxis: zXLinearAxis.nullish(),
|
13176
|
+
yAxis: zYBandAxis.nullish(),
|
13177
|
+
crosshairRect: zCrosshairRect.nullish(),
|
13178
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
13179
|
+
theme: zTheme.nullish(),
|
13180
|
+
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
13181
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13182
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13183
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13184
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13185
|
+
locale: zLocale.nullish()
|
12943
13186
|
});
|
12944
13187
|
const zBarParallel = schemas_object({
|
12945
13188
|
chartType: literal('barParallel'),
|
12946
|
-
dataset: zDataset.
|
12947
|
-
dimensions: zDimensions.
|
12948
|
-
measures: zMeasureTree.
|
12949
|
-
backgroundColor: zBackgroundColor.
|
12950
|
-
color: zColor.
|
12951
|
-
label: zLabel.
|
12952
|
-
legend: zLegend.
|
12953
|
-
tooltip: zTooltip.
|
12954
|
-
xAxis: zXLinearAxis.
|
12955
|
-
yAxis: zYBandAxis.
|
12956
|
-
crosshairRect: zCrosshairRect.
|
12957
|
-
stackCornerRadius: zStackCornerRadius.
|
12958
|
-
theme: zTheme.
|
12959
|
-
barStyle: schemas_array(zBarStyle).or(zBarStyle).
|
12960
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
12961
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
12962
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
12963
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
12964
|
-
locale: zLocale.
|
13189
|
+
dataset: zDataset.nullish(),
|
13190
|
+
dimensions: zDimensions.nullish(),
|
13191
|
+
measures: zMeasureTree.nullish(),
|
13192
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13193
|
+
color: zColor.nullish(),
|
13194
|
+
label: zLabel.nullish(),
|
13195
|
+
legend: zLegend.nullish(),
|
13196
|
+
tooltip: zTooltip.nullish(),
|
13197
|
+
xAxis: zXLinearAxis.nullish(),
|
13198
|
+
yAxis: zYBandAxis.nullish(),
|
13199
|
+
crosshairRect: zCrosshairRect.nullish(),
|
13200
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
13201
|
+
theme: zTheme.nullish(),
|
13202
|
+
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
13203
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13204
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13205
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13206
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13207
|
+
locale: zLocale.nullish()
|
12965
13208
|
});
|
12966
13209
|
const zBarPercent = schemas_object({
|
12967
13210
|
chartType: literal('barPercent'),
|
12968
|
-
dataset: zDataset.
|
12969
|
-
dimensions: zDimensions.
|
12970
|
-
measures: zMeasureTree.
|
12971
|
-
backgroundColor: zBackgroundColor.
|
12972
|
-
color: zColor.
|
12973
|
-
label: zLabel.
|
12974
|
-
legend: zLegend.
|
12975
|
-
tooltip: zTooltip.
|
12976
|
-
xAxis: zXLinearAxis.
|
12977
|
-
yAxis: zYBandAxis.
|
12978
|
-
crosshairRect: zCrosshairRect.
|
12979
|
-
stackCornerRadius: zStackCornerRadius.
|
12980
|
-
theme: zTheme.
|
12981
|
-
barStyle: schemas_array(zBarStyle).or(zBarStyle).
|
12982
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
12983
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
12984
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
12985
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
12986
|
-
locale: zLocale.
|
13211
|
+
dataset: zDataset.nullish(),
|
13212
|
+
dimensions: zDimensions.nullish(),
|
13213
|
+
measures: zMeasureTree.nullish(),
|
13214
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13215
|
+
color: zColor.nullish(),
|
13216
|
+
label: zLabel.nullish(),
|
13217
|
+
legend: zLegend.nullish(),
|
13218
|
+
tooltip: zTooltip.nullish(),
|
13219
|
+
xAxis: zXLinearAxis.nullish(),
|
13220
|
+
yAxis: zYBandAxis.nullish(),
|
13221
|
+
crosshairRect: zCrosshairRect.nullish(),
|
13222
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
13223
|
+
theme: zTheme.nullish(),
|
13224
|
+
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
13225
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13226
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13227
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13228
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13229
|
+
locale: zLocale.nullish()
|
12987
13230
|
});
|
12988
13231
|
const zArea = schemas_object({
|
12989
13232
|
chartType: literal('area'),
|
12990
|
-
dataset: zDataset.
|
12991
|
-
dimensions: zDimensions.
|
12992
|
-
measures: zMeasureTree.
|
12993
|
-
backgroundColor: zBackgroundColor.
|
12994
|
-
color: zColor.
|
12995
|
-
label: zLabel.
|
12996
|
-
legend: zLegend.
|
12997
|
-
tooltip: zTooltip.
|
12998
|
-
xAxis: zXBandAxis.
|
12999
|
-
yAxis: zYLinearAxis.
|
13000
|
-
crosshairLine: zCrosshairLine.
|
13001
|
-
theme: zTheme.
|
13002
|
-
pointStyle: schemas_array(zPointStyle).or(zPointStyle).
|
13003
|
-
lineStyle: schemas_array(zLineStyle).or(zLineStyle).
|
13004
|
-
areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).
|
13005
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
13006
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
13007
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
13008
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
13009
|
-
locale: zLocale.
|
13233
|
+
dataset: zDataset.nullish(),
|
13234
|
+
dimensions: zDimensions.nullish(),
|
13235
|
+
measures: zMeasureTree.nullish(),
|
13236
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13237
|
+
color: zColor.nullish(),
|
13238
|
+
label: zLabel.nullish(),
|
13239
|
+
legend: zLegend.nullish(),
|
13240
|
+
tooltip: zTooltip.nullish(),
|
13241
|
+
xAxis: zXBandAxis.nullish(),
|
13242
|
+
yAxis: zYLinearAxis.nullish(),
|
13243
|
+
crosshairLine: zCrosshairLine.nullish(),
|
13244
|
+
theme: zTheme.nullish(),
|
13245
|
+
pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
|
13246
|
+
lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
|
13247
|
+
areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).nullish(),
|
13248
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13249
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13250
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13251
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13252
|
+
locale: zLocale.nullish()
|
13010
13253
|
});
|
13011
13254
|
const zAreaPercent = schemas_object({
|
13012
13255
|
chartType: literal('areaPercent'),
|
13013
|
-
dataset: zDataset.
|
13014
|
-
dimensions: zDimensions.
|
13015
|
-
measures: zMeasureTree.
|
13016
|
-
backgroundColor: zBackgroundColor.
|
13017
|
-
color: zColor.
|
13018
|
-
label: zLabel.
|
13019
|
-
legend: zLegend.
|
13020
|
-
tooltip: zTooltip.
|
13021
|
-
xAxis: zXBandAxis.
|
13022
|
-
yAxis: zYLinearAxis.
|
13023
|
-
crosshairLine: zCrosshairLine.
|
13024
|
-
theme: zTheme.
|
13025
|
-
pointStyle: schemas_array(zPointStyle).or(zPointStyle).
|
13026
|
-
lineStyle: schemas_array(zLineStyle).or(zLineStyle).
|
13027
|
-
areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).
|
13028
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
13029
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
13030
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
13031
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
13032
|
-
locale: zLocale.
|
13256
|
+
dataset: zDataset.nullish(),
|
13257
|
+
dimensions: zDimensions.nullish(),
|
13258
|
+
measures: zMeasureTree.nullish(),
|
13259
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13260
|
+
color: zColor.nullish(),
|
13261
|
+
label: zLabel.nullish(),
|
13262
|
+
legend: zLegend.nullish(),
|
13263
|
+
tooltip: zTooltip.nullish(),
|
13264
|
+
xAxis: zXBandAxis.nullish(),
|
13265
|
+
yAxis: zYLinearAxis.nullish(),
|
13266
|
+
crosshairLine: zCrosshairLine.nullish(),
|
13267
|
+
theme: zTheme.nullish(),
|
13268
|
+
pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
|
13269
|
+
lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
|
13270
|
+
areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).nullish(),
|
13271
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13272
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13273
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13274
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13275
|
+
locale: zLocale.nullish()
|
13033
13276
|
});
|
13034
13277
|
const zAreaRange = schemas_object({
|
13035
13278
|
chartType: literal('areaRange'),
|
13036
|
-
dataset: zDataset.
|
13037
|
-
dimensions: zDimensions.
|
13038
|
-
measures: zMeasureTree.
|
13039
|
-
backgroundColor: zBackgroundColor.
|
13040
|
-
label: zLabel.
|
13041
|
-
xAxis: zXBandAxis.
|
13042
|
-
yAxis: zYLinearAxis.
|
13043
|
-
crosshairLine: zCrosshairLine.
|
13044
|
-
theme: zTheme.
|
13045
|
-
pointStyle: schemas_array(zPointStyle).or(zPointStyle).
|
13046
|
-
lineStyle: schemas_array(zLineStyle).or(zLineStyle).
|
13047
|
-
areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).
|
13048
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
13049
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
13050
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
13051
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
13052
|
-
locale: zLocale.
|
13279
|
+
dataset: zDataset.nullish(),
|
13280
|
+
dimensions: zDimensions.nullish(),
|
13281
|
+
measures: zMeasureTree.nullish(),
|
13282
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13283
|
+
label: zLabel.nullish(),
|
13284
|
+
xAxis: zXBandAxis.nullish(),
|
13285
|
+
yAxis: zYLinearAxis.nullish(),
|
13286
|
+
crosshairLine: zCrosshairLine.nullish(),
|
13287
|
+
theme: zTheme.nullish(),
|
13288
|
+
pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
|
13289
|
+
lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
|
13290
|
+
areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).nullish(),
|
13291
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13292
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13293
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13294
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13295
|
+
locale: zLocale.nullish()
|
13053
13296
|
});
|
13054
13297
|
const zScatter = schemas_object({
|
13055
13298
|
chartType: literal('scatter'),
|
13056
|
-
dataset: zDataset.
|
13057
|
-
dimensions: zDimensions.
|
13058
|
-
measures: zMeasureTree.
|
13059
|
-
backgroundColor: zBackgroundColor.
|
13060
|
-
color: zColor.
|
13061
|
-
label: zLabel.
|
13062
|
-
legend: zLegend.
|
13063
|
-
tooltip: zTooltip.
|
13064
|
-
xAxis: zXLinearAxis.
|
13065
|
-
yAxis: zYLinearAxis.
|
13066
|
-
crosshairLine: zCrosshairLine.
|
13067
|
-
theme: zTheme.
|
13068
|
-
pointStyle: schemas_array(zPointStyle).or(zPointStyle).
|
13069
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
13070
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
13071
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
13072
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
13073
|
-
locale: zLocale.
|
13299
|
+
dataset: zDataset.nullish(),
|
13300
|
+
dimensions: zDimensions.nullish(),
|
13301
|
+
measures: zMeasureTree.nullish(),
|
13302
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13303
|
+
color: zColor.nullish(),
|
13304
|
+
label: zLabel.nullish(),
|
13305
|
+
legend: zLegend.nullish(),
|
13306
|
+
tooltip: zTooltip.nullish(),
|
13307
|
+
xAxis: zXLinearAxis.nullish(),
|
13308
|
+
yAxis: zYLinearAxis.nullish(),
|
13309
|
+
crosshairLine: zCrosshairLine.nullish(),
|
13310
|
+
theme: zTheme.nullish(),
|
13311
|
+
pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
|
13312
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13313
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13314
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13315
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13316
|
+
locale: zLocale.nullish()
|
13074
13317
|
});
|
13075
13318
|
const zDualAxis = schemas_object({
|
13076
13319
|
chartType: literal('dualAxis'),
|
13077
|
-
dataset: zDataset.
|
13078
|
-
dimensions: zDimensions.
|
13079
|
-
measures: zMeasureTree.
|
13080
|
-
dualMeasures: zDualMeasures.
|
13081
|
-
dualChartType: schemas_array(zDualChartType).or(zDualChartType).
|
13082
|
-
primaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).
|
13083
|
-
secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).
|
13084
|
-
xAxis: zXBandAxis.
|
13085
|
-
backgroundColor: zBackgroundColor.
|
13086
|
-
color: zColor.
|
13087
|
-
label: zLabel.
|
13088
|
-
legend: zLegend.
|
13089
|
-
tooltip: zTooltip.
|
13090
|
-
crosshairRect: zCrosshairRect.
|
13091
|
-
sort: zSort.
|
13092
|
-
sortLegend: zSortLegend.
|
13093
|
-
theme: zTheme.
|
13094
|
-
barStyle: schemas_array(zBarStyle).or(zBarStyle).
|
13095
|
-
pointStyle: schemas_array(zPointStyle).or(zPointStyle).
|
13096
|
-
lineStyle: schemas_array(zLineStyle).or(zLineStyle).
|
13097
|
-
areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).
|
13098
|
-
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).
|
13099
|
-
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
13100
|
-
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
13101
|
-
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).
|
13102
|
-
locale: zLocale.
|
13320
|
+
dataset: zDataset.nullish(),
|
13321
|
+
dimensions: zDimensions.nullish(),
|
13322
|
+
measures: zMeasureTree.nullish(),
|
13323
|
+
dualMeasures: zDualMeasures.nullish(),
|
13324
|
+
dualChartType: schemas_array(zDualChartType).or(zDualChartType).nullish(),
|
13325
|
+
primaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
|
13326
|
+
secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
|
13327
|
+
xAxis: zXBandAxis.nullish(),
|
13328
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13329
|
+
color: zColor.nullish(),
|
13330
|
+
label: zLabel.nullish(),
|
13331
|
+
legend: zLegend.nullish(),
|
13332
|
+
tooltip: zTooltip.nullish(),
|
13333
|
+
crosshairRect: zCrosshairRect.nullish(),
|
13334
|
+
sort: zSort.nullish(),
|
13335
|
+
sortLegend: zSortLegend.nullish(),
|
13336
|
+
theme: zTheme.nullish(),
|
13337
|
+
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
13338
|
+
pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
|
13339
|
+
lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
|
13340
|
+
areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).nullish(),
|
13341
|
+
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
13342
|
+
annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
13343
|
+
annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
13344
|
+
annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
13345
|
+
locale: zLocale.nullish()
|
13103
13346
|
});
|
13104
13347
|
const zRose = schemas_object({
|
13105
13348
|
chartType: literal('rose'),
|
13106
|
-
dataset: zDataset.
|
13107
|
-
dimensions: zDimensions.
|
13108
|
-
measures: zMeasureTree.
|
13109
|
-
backgroundColor: zBackgroundColor.
|
13110
|
-
color: zColor.
|
13111
|
-
label: zLabel.
|
13112
|
-
legend: zLegend.
|
13113
|
-
tooltip: zTooltip.
|
13114
|
-
theme: zTheme.
|
13115
|
-
locale: zLocale.
|
13349
|
+
dataset: zDataset.nullish(),
|
13350
|
+
dimensions: zDimensions.nullish(),
|
13351
|
+
measures: zMeasureTree.nullish(),
|
13352
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13353
|
+
color: zColor.nullish(),
|
13354
|
+
label: zLabel.nullish(),
|
13355
|
+
legend: zLegend.nullish(),
|
13356
|
+
tooltip: zTooltip.nullish(),
|
13357
|
+
theme: zTheme.nullish(),
|
13358
|
+
locale: zLocale.nullish()
|
13116
13359
|
});
|
13117
13360
|
const zRoseParallel = schemas_object({
|
13118
13361
|
chartType: literal('roseParallel'),
|
13119
|
-
dataset: zDataset.
|
13120
|
-
dimensions: zDimensions.
|
13121
|
-
measures: zMeasureTree.
|
13122
|
-
backgroundColor: zBackgroundColor.
|
13123
|
-
color: zColor.
|
13124
|
-
label: zLabel.
|
13125
|
-
legend: zLegend.
|
13126
|
-
tooltip: zTooltip.
|
13127
|
-
theme: zTheme.
|
13128
|
-
locale: zLocale.
|
13362
|
+
dataset: zDataset.nullish(),
|
13363
|
+
dimensions: zDimensions.nullish(),
|
13364
|
+
measures: zMeasureTree.nullish(),
|
13365
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13366
|
+
color: zColor.nullish(),
|
13367
|
+
label: zLabel.nullish(),
|
13368
|
+
legend: zLegend.nullish(),
|
13369
|
+
tooltip: zTooltip.nullish(),
|
13370
|
+
theme: zTheme.nullish(),
|
13371
|
+
locale: zLocale.nullish()
|
13129
13372
|
});
|
13130
13373
|
const zPie = schemas_object({
|
13131
13374
|
chartType: literal('pie'),
|
13132
|
-
dataset: zDataset.
|
13133
|
-
dimensions: zDimensions.
|
13134
|
-
measures: zMeasureTree.
|
13135
|
-
backgroundColor: zBackgroundColor.
|
13136
|
-
color: zColor.
|
13137
|
-
label: zLabel.
|
13138
|
-
legend: zLegend.
|
13139
|
-
tooltip: zTooltip.
|
13140
|
-
theme: zTheme.
|
13141
|
-
locale: zLocale.
|
13375
|
+
dataset: zDataset.nullish(),
|
13376
|
+
dimensions: zDimensions.nullish(),
|
13377
|
+
measures: zMeasureTree.nullish(),
|
13378
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13379
|
+
color: zColor.nullish(),
|
13380
|
+
label: zLabel.nullish(),
|
13381
|
+
legend: zLegend.nullish(),
|
13382
|
+
tooltip: zTooltip.nullish(),
|
13383
|
+
theme: zTheme.nullish(),
|
13384
|
+
locale: zLocale.nullish()
|
13142
13385
|
});
|
13143
13386
|
const zDonut = schemas_object({
|
13144
13387
|
chartType: literal('donut'),
|
13145
|
-
dataset: zDataset.
|
13146
|
-
dimensions: zDimensions.
|
13147
|
-
measures: zMeasureTree.
|
13148
|
-
backgroundColor: zBackgroundColor.
|
13149
|
-
color: zColor.
|
13150
|
-
label: zLabel.
|
13151
|
-
legend: zLegend.
|
13152
|
-
tooltip: zTooltip.
|
13153
|
-
theme: zTheme.
|
13154
|
-
locale: zLocale.
|
13388
|
+
dataset: zDataset.nullish(),
|
13389
|
+
dimensions: zDimensions.nullish(),
|
13390
|
+
measures: zMeasureTree.nullish(),
|
13391
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13392
|
+
color: zColor.nullish(),
|
13393
|
+
label: zLabel.nullish(),
|
13394
|
+
legend: zLegend.nullish(),
|
13395
|
+
tooltip: zTooltip.nullish(),
|
13396
|
+
theme: zTheme.nullish(),
|
13397
|
+
locale: zLocale.nullish()
|
13155
13398
|
});
|
13156
13399
|
const zRadar = schemas_object({
|
13157
13400
|
chartType: literal('radar'),
|
13158
|
-
dataset: zDataset.
|
13159
|
-
dimensions: zDimensions.
|
13160
|
-
measures: zMeasureTree.
|
13161
|
-
backgroundColor: zBackgroundColor.
|
13162
|
-
color: zColor.
|
13163
|
-
label: zLabel.
|
13164
|
-
legend: zLegend.
|
13165
|
-
tooltip: zTooltip.
|
13166
|
-
theme: zTheme.
|
13167
|
-
locale: zLocale.
|
13401
|
+
dataset: zDataset.nullish(),
|
13402
|
+
dimensions: zDimensions.nullish(),
|
13403
|
+
measures: zMeasureTree.nullish(),
|
13404
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13405
|
+
color: zColor.nullish(),
|
13406
|
+
label: zLabel.nullish(),
|
13407
|
+
legend: zLegend.nullish(),
|
13408
|
+
tooltip: zTooltip.nullish(),
|
13409
|
+
theme: zTheme.nullish(),
|
13410
|
+
locale: zLocale.nullish()
|
13168
13411
|
});
|
13169
13412
|
const zFunnel = schemas_object({
|
13170
13413
|
chartType: literal('funnel'),
|
13171
|
-
dataset: zDataset.
|
13172
|
-
dimensions: zDimensions.
|
13173
|
-
measures: zMeasureTree.
|
13174
|
-
backgroundColor: zBackgroundColor.
|
13175
|
-
color: zLinearColor.
|
13176
|
-
label: zLabel.
|
13177
|
-
legend: zColorLegend.
|
13178
|
-
tooltip: zTooltip.
|
13179
|
-
theme: zTheme.
|
13180
|
-
locale: zLocale.
|
13414
|
+
dataset: zDataset.nullish(),
|
13415
|
+
dimensions: zDimensions.nullish(),
|
13416
|
+
measures: zMeasureTree.nullish(),
|
13417
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13418
|
+
color: zLinearColor.nullish(),
|
13419
|
+
label: zLabel.nullish(),
|
13420
|
+
legend: zColorLegend.nullish(),
|
13421
|
+
tooltip: zTooltip.nullish(),
|
13422
|
+
theme: zTheme.nullish(),
|
13423
|
+
locale: zLocale.nullish()
|
13181
13424
|
});
|
13182
13425
|
const zHeatmap = schemas_object({
|
13183
13426
|
chartType: literal('heatmap'),
|
13184
|
-
dataset: zDataset.
|
13185
|
-
dimensions: zDimensions.
|
13186
|
-
measures: zMeasureTree.
|
13187
|
-
backgroundColor: zBackgroundColor.
|
13188
|
-
color: zLinearColor.
|
13189
|
-
label: zLabel.
|
13190
|
-
legend: zColorLegend.
|
13191
|
-
tooltip: zTooltip.
|
13192
|
-
theme: zTheme.
|
13193
|
-
locale: zLocale.
|
13427
|
+
dataset: zDataset.nullish(),
|
13428
|
+
dimensions: zDimensions.nullish(),
|
13429
|
+
measures: zMeasureTree.nullish(),
|
13430
|
+
backgroundColor: zBackgroundColor.nullish(),
|
13431
|
+
color: zLinearColor.nullish(),
|
13432
|
+
label: zLabel.nullish(),
|
13433
|
+
legend: zColorLegend.nullish(),
|
13434
|
+
tooltip: zTooltip.nullish(),
|
13435
|
+
theme: zTheme.nullish(),
|
13436
|
+
locale: zLocale.nullish()
|
13194
13437
|
});
|
13195
13438
|
const zVSeed = discriminatedUnion('chartType', [
|
13196
13439
|
zTable,
|