@visactor/vseed 0.0.36 → 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 +1103 -869
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1071 -855
- 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/zDualAxis.d.ts +747 -747
- 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 +44 -44
- 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/theme/customTheme.d.ts +3334 -3330
- package/dist/types/vseed.d.ts +6781 -6755
- package/dist/umd/index.js +1113 -891
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -24,6 +24,7 @@ var __webpack_require__ = {};
|
|
24
24
|
var __webpack_exports__ = {};
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
27
|
+
zTooltip: ()=>zTooltip,
|
27
28
|
funnelAdvancedPipeline: ()=>funnelAdvancedPipeline,
|
28
29
|
zHeatmapConfig: ()=>zHeatmapConfig,
|
29
30
|
zBar: ()=>zBar,
|
@@ -48,6 +49,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
48
49
|
zDualMeasure: ()=>zDualMeasure,
|
49
50
|
zSortLegend: ()=>zSortLegend,
|
50
51
|
pivotTableAdvancedPipeline: ()=>pivotTableAdvancedPipeline,
|
52
|
+
isMeasures: ()=>isMeasures,
|
51
53
|
zYBandAxis: ()=>zYBandAxis,
|
52
54
|
dataReshapeFor1D2M: ()=>dataReshapeFor1D2M,
|
53
55
|
zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
|
@@ -101,31 +103,31 @@ __webpack_require__.d(__webpack_exports__, {
|
|
101
103
|
registerLightTheme: ()=>registerLightTheme,
|
102
104
|
roseAdvancedPipeline: ()=>roseAdvancedPipeline,
|
103
105
|
zBarParallel: ()=>zBarParallel,
|
104
|
-
|
106
|
+
registerDarkTheme: ()=>registerDarkTheme,
|
105
107
|
registerPivotTable: ()=>registerPivotTable,
|
106
|
-
|
107
|
-
|
108
|
+
isPartialDatumSelector: ()=>isPartialDatumSelector,
|
109
|
+
isDimensionGroup: ()=>isDimensionGroup,
|
108
110
|
dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
|
109
|
-
|
110
|
-
|
111
|
+
pieSpecPipeline: ()=>pieSpecPipeline,
|
112
|
+
tableAdvancedPipeline: ()=>tableAdvancedPipeline,
|
111
113
|
barSpecPipeline: ()=>barSpecPipeline,
|
112
|
-
|
114
|
+
zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
|
113
115
|
registerRose: ()=>registerRose,
|
114
|
-
|
116
|
+
zChartType: ()=>zChartType,
|
115
117
|
unfoldDimensions: ()=>unfoldDimensions,
|
116
118
|
roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
|
117
119
|
registerTable: ()=>registerTable,
|
118
120
|
autoFormatter: ()=>autoFormatter,
|
121
|
+
isMeasureGroup: ()=>isMeasureGroup,
|
119
122
|
findFirstDimension: ()=>findFirstDimension,
|
120
|
-
Builder: ()=>Builder,
|
121
123
|
registerAll: ()=>registerAll,
|
122
124
|
registerBar: ()=>registerBar,
|
123
125
|
isVChart: ()=>isVChart,
|
124
126
|
radarSpecPipeline: ()=>radarSpecPipeline,
|
127
|
+
Builder: ()=>Builder,
|
128
|
+
zCrosshairLine: ()=>zCrosshairLine,
|
125
129
|
zMeasureTree: ()=>zMeasureTree,
|
126
130
|
zPieConfig: ()=>zPieConfig,
|
127
|
-
zPivotTable: ()=>zPivotTable,
|
128
|
-
zRadar: ()=>zRadar,
|
129
131
|
registerLine: ()=>registerLine,
|
130
132
|
registerCustomTheme: ()=>registerCustomTheme,
|
131
133
|
zColor: ()=>zColor,
|
@@ -145,7 +147,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
145
147
|
zAxis: ()=>zAxis,
|
146
148
|
isVTable: ()=>isVTable,
|
147
149
|
zMeasures: ()=>zMeasures,
|
148
|
-
|
150
|
+
zPivotTable: ()=>zPivotTable,
|
149
151
|
zLine: ()=>zLine,
|
150
152
|
columnSpecPipeline: ()=>columnSpecPipeline,
|
151
153
|
UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
|
@@ -154,8 +156,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
154
156
|
zLinearColor: ()=>zLinearColor,
|
155
157
|
zAreaStyle: ()=>zAreaStyle,
|
156
158
|
ORIGINAL_DATA: ()=>ORIGINAL_DATA,
|
157
|
-
|
159
|
+
zRadarConfig: ()=>zRadarConfig,
|
158
160
|
zAnnotationArea: ()=>zAnnotationArea,
|
161
|
+
zStackCornerRadius: ()=>zStackCornerRadius,
|
159
162
|
zUnfoldInfo: ()=>zUnfoldInfo,
|
160
163
|
zRose: ()=>zRose,
|
161
164
|
columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
|
@@ -166,7 +169,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
166
169
|
registerColumnParallel: ()=>registerColumnParallel,
|
167
170
|
updateAdvanced: ()=>updateAdvanced,
|
168
171
|
zDimension: ()=>zDimension,
|
172
|
+
zRadar: ()=>zRadar,
|
169
173
|
zTable: ()=>zTable,
|
174
|
+
isMeasure: ()=>isMeasure,
|
170
175
|
FoldSecondaryMeasureValue: ()=>FoldSecondaryMeasureValue,
|
171
176
|
zSort: ()=>zSort,
|
172
177
|
isPivotChart: ()=>isPivotChart,
|
@@ -188,8 +193,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
188
193
|
registerBarParallel: ()=>registerBarParallel,
|
189
194
|
registerRadar: ()=>registerRadar,
|
190
195
|
zLocale: ()=>zLocale,
|
196
|
+
isDimension: ()=>isDimension,
|
191
197
|
pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
|
192
|
-
zMeasure: ()=>zMeasure,
|
193
198
|
areaRangeSpecPipeline: ()=>areaRangeSpecPipeline,
|
194
199
|
areaRangeAdvancedPipeline: ()=>areaRangeAdvancedPipeline,
|
195
200
|
dualAxisAdvancedPipeline: ()=>dualAxisAdvancedPipeline,
|
@@ -202,9 +207,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
202
207
|
zConfig: ()=>zConfig,
|
203
208
|
zEncoding: ()=>zEncoding,
|
204
209
|
zBarStyle: ()=>zBarStyle,
|
210
|
+
zMeasure: ()=>zMeasure,
|
205
211
|
zRoseParallelConfig: ()=>zRoseParallelConfig,
|
206
|
-
zXLinearAxis: ()=>zXLinearAxis,
|
207
212
|
zAreaPercent: ()=>zAreaPercent,
|
213
|
+
zXLinearAxis: ()=>zXLinearAxis,
|
208
214
|
columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
|
209
215
|
isValueSelector: ()=>isValueSelector,
|
210
216
|
donutAdvancedPipeline: ()=>donutAdvancedPipeline,
|
@@ -222,8 +228,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
222
228
|
lineAdvancedPipeline: ()=>lineAdvancedPipeline,
|
223
229
|
zBarPercentConfig: ()=>zBarPercentConfig,
|
224
230
|
lineSpecPipeline: ()=>lineSpecPipeline,
|
231
|
+
isDimensions: ()=>isDimensions,
|
225
232
|
zScatterConfig: ()=>zScatterConfig,
|
226
|
-
zTooltip: ()=>zTooltip,
|
227
233
|
createFormatter: ()=>createFormatter,
|
228
234
|
zDimensionGroup: ()=>zDimensionGroup,
|
229
235
|
isMeasureSelector: ()=>isMeasureSelector,
|
@@ -520,6 +526,33 @@ const records_records = (advancedVSeed, context)=>{
|
|
520
526
|
dataset
|
521
527
|
};
|
522
528
|
};
|
529
|
+
const tableConfig_tableConfig = (advancedVSeed, context)=>{
|
530
|
+
const { vseed } = context;
|
531
|
+
const { chartType } = vseed;
|
532
|
+
const result = {
|
533
|
+
...advancedVSeed
|
534
|
+
};
|
535
|
+
const config = (0, external_remeda_namespaceObject.pick)(vseed, [
|
536
|
+
'backgroundColor',
|
537
|
+
'bodyFontSize',
|
538
|
+
'bodyFontColor',
|
539
|
+
'bodyBackgroundColor',
|
540
|
+
'headerFontSize',
|
541
|
+
'headerFontColor',
|
542
|
+
'headerBackgroundColor',
|
543
|
+
'hoverHeaderBackgroundColor',
|
544
|
+
'hoverHeaderInlineBackgroundColor',
|
545
|
+
'selectedBorderColor',
|
546
|
+
'selectedBackgroundColor'
|
547
|
+
]);
|
548
|
+
result.config = {
|
549
|
+
...result.config || {},
|
550
|
+
[chartType]: {
|
551
|
+
...config
|
552
|
+
}
|
553
|
+
};
|
554
|
+
return result;
|
555
|
+
};
|
523
556
|
const theme_theme = (advancedVSeed, context)=>{
|
524
557
|
const { customTheme, vseed } = context;
|
525
558
|
const { theme = 'light', chartType } = vseed;
|
@@ -548,6 +581,7 @@ const theme_theme = (advancedVSeed, context)=>{
|
|
548
581
|
return result;
|
549
582
|
};
|
550
583
|
const mergeArray = (arr, themeItem)=>{
|
584
|
+
if ((0, external_remeda_namespaceObject.isNullish)(themeItem) || (0, external_remeda_namespaceObject.isString)(themeItem) || (0, external_remeda_namespaceObject.isNumber)(themeItem)) return arr;
|
551
585
|
if (!Array.isArray(arr)) return arr;
|
552
586
|
if (arr.some((d)=>!(0, external_remeda_namespaceObject.isObjectType)(d))) return arr;
|
553
587
|
return arr.map((item)=>(0, external_remeda_namespaceObject.merge)(themeItem, item));
|
@@ -557,11 +591,14 @@ const tableAdvancedPipeline = [
|
|
557
591
|
autoMeasures,
|
558
592
|
autoDimensions,
|
559
593
|
records_records,
|
594
|
+
tableConfig_tableConfig,
|
560
595
|
theme_theme
|
561
596
|
];
|
562
597
|
const initTable = (spec, context)=>{
|
563
598
|
const { advancedVSeed } = context;
|
564
599
|
const { dataset } = advancedVSeed;
|
600
|
+
const { config } = advancedVSeed;
|
601
|
+
const { backgroundColor = 'transparent' } = config.table || {};
|
565
602
|
return {
|
566
603
|
...spec,
|
567
604
|
records: dataset,
|
@@ -583,23 +620,26 @@ const initTable = (spec, context)=>{
|
|
583
620
|
highlightMode: 'row'
|
584
621
|
},
|
585
622
|
theme: {
|
586
|
-
underlayBackgroundColor:
|
623
|
+
underlayBackgroundColor: backgroundColor
|
587
624
|
}
|
588
625
|
};
|
589
626
|
};
|
590
|
-
const
|
627
|
+
const isMeasure = (measure)=>!('children' in measure);
|
628
|
+
const isMeasureGroup = (measure)=>'children' in measure;
|
629
|
+
const isMeasures = (measures)=>measures.every(isMeasure);
|
630
|
+
const dimensionTreeToColumns = (spec, context)=>{
|
591
631
|
const { advancedVSeed } = context;
|
592
|
-
const
|
632
|
+
const dimensions = advancedVSeed.dimensions;
|
593
633
|
const result = {
|
594
634
|
...spec
|
595
635
|
};
|
596
636
|
const eachNode = (node)=>{
|
597
|
-
if (
|
598
|
-
return {
|
637
|
+
if (isMeasure(node)) return {
|
599
638
|
width: 'auto'
|
600
639
|
};
|
640
|
+
return {};
|
601
641
|
};
|
602
|
-
const columns = treeTreeToColumns(
|
642
|
+
const columns = treeTreeToColumns(dimensions, eachNode);
|
603
643
|
return {
|
604
644
|
...result,
|
605
645
|
columns: [
|
@@ -608,19 +648,106 @@ const measureTreeToColumns = (spec, context)=>{
|
|
608
648
|
]
|
609
649
|
};
|
610
650
|
};
|
611
|
-
const
|
651
|
+
const treeTreeToColumns = (tree, callback)=>{
|
652
|
+
const result = tree.map((item)=>{
|
653
|
+
if ('children' in item && Array.isArray(item.children)) {
|
654
|
+
const groupNode = item;
|
655
|
+
const field = groupNode.id;
|
656
|
+
const title = groupNode.alias ?? groupNode.id;
|
657
|
+
const props = callback?.(groupNode) || {};
|
658
|
+
return {
|
659
|
+
field,
|
660
|
+
title,
|
661
|
+
columns: treeTreeToColumns(item.children, callback),
|
662
|
+
...props
|
663
|
+
};
|
664
|
+
}
|
665
|
+
{
|
666
|
+
const field = item.id;
|
667
|
+
const title = item.alias ?? item.id;
|
668
|
+
const props = callback?.(item) || {};
|
669
|
+
return {
|
670
|
+
field,
|
671
|
+
title,
|
672
|
+
...props
|
673
|
+
};
|
674
|
+
}
|
675
|
+
});
|
676
|
+
return result || [];
|
677
|
+
};
|
678
|
+
const createNumFormatter = (format, locale = intl.getLocale())=>{
|
679
|
+
const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
|
680
|
+
const numFormatterOptions = {
|
681
|
+
style: 'decimal',
|
682
|
+
notation: 'scientific' === type ? 'scientific' : 'standard',
|
683
|
+
roundingMode,
|
684
|
+
roundingPriority
|
685
|
+
};
|
686
|
+
if ((0, external_remeda_namespaceObject.isNumber)(fractionDigits)) {
|
687
|
+
if (fractionDigits >= 0) {
|
688
|
+
numFormatterOptions.minimumFractionDigits = fractionDigits;
|
689
|
+
numFormatterOptions.maximumFractionDigits = fractionDigits;
|
690
|
+
}
|
691
|
+
}
|
692
|
+
if ((0, external_remeda_namespaceObject.isNumber)(significantDigits) && significantDigits > 0) {
|
693
|
+
if (significantDigits > 0) {
|
694
|
+
numFormatterOptions.minimumSignificantDigits = significantDigits;
|
695
|
+
numFormatterOptions.maximumSignificantDigits = significantDigits;
|
696
|
+
}
|
697
|
+
}
|
698
|
+
const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
|
699
|
+
return (value)=>{
|
700
|
+
let num = Number(value);
|
701
|
+
let typeSymbol = '';
|
702
|
+
if (Number.isNaN(num)) return String(value);
|
703
|
+
if ('percent' === type) {
|
704
|
+
num *= 100;
|
705
|
+
typeSymbol = '%';
|
706
|
+
} else if ('permille' === type) {
|
707
|
+
num *= 1000;
|
708
|
+
typeSymbol = "\u2030";
|
709
|
+
} else if ('number' === type) num /= ratio || 1;
|
710
|
+
let numStr = numFormatter.format(num);
|
711
|
+
if (thousandSeparator) {
|
712
|
+
const parts = numStr.split('.');
|
713
|
+
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
714
|
+
numStr = parts.join('.');
|
715
|
+
}
|
716
|
+
return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
|
717
|
+
};
|
718
|
+
};
|
719
|
+
const autoNumFormatter = (value, locale = intl.getLocale())=>{
|
720
|
+
if (null == value) return String(value);
|
721
|
+
const num = Number(value);
|
722
|
+
if (Number.isNaN(num)) return String(value);
|
723
|
+
const numFormatterOptions = {
|
724
|
+
style: 'decimal',
|
725
|
+
notation: 'compact'
|
726
|
+
};
|
727
|
+
numFormatterOptions.minimumFractionDigits = 0;
|
728
|
+
numFormatterOptions.maximumFractionDigits = 2;
|
729
|
+
const numFormatter = new Intl.NumberFormat(locale, {
|
730
|
+
...numFormatterOptions
|
731
|
+
});
|
732
|
+
return numFormatter.format(Number(value));
|
733
|
+
};
|
734
|
+
const createFormatter = (format)=>createNumFormatter(format);
|
735
|
+
const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
|
736
|
+
const measureTreeToColumns = (spec, context)=>{
|
612
737
|
const { advancedVSeed } = context;
|
613
|
-
const
|
738
|
+
const { locale } = advancedVSeed;
|
739
|
+
const measures = advancedVSeed.measures;
|
614
740
|
const result = {
|
615
741
|
...spec
|
616
742
|
};
|
617
743
|
const eachNode = (node)=>{
|
618
|
-
if (
|
619
|
-
|
620
|
-
|
744
|
+
if (isMeasure(node)) return {
|
745
|
+
width: 'auto',
|
746
|
+
fieldFormat: fieldFormat(node, locale)
|
621
747
|
};
|
748
|
+
return {};
|
622
749
|
};
|
623
|
-
const columns =
|
750
|
+
const columns = measuresToColumns_treeTreeToColumns(measures, eachNode);
|
624
751
|
return {
|
625
752
|
...result,
|
626
753
|
columns: [
|
@@ -629,7 +756,16 @@ const dimensionTreeToColumns = (spec, context)=>{
|
|
629
756
|
]
|
630
757
|
};
|
631
758
|
};
|
632
|
-
const
|
759
|
+
const fieldFormat = (node, locale)=>(datum)=>{
|
760
|
+
const { format = {}, autoFormat = true, id } = node;
|
761
|
+
const value = datum[id];
|
762
|
+
if (!(0, external_remeda_namespaceObject.isEmpty)(format)) {
|
763
|
+
const formatter = createFormatter(format);
|
764
|
+
return formatter(value);
|
765
|
+
}
|
766
|
+
if (autoFormat) return autoFormatter(value, locale);
|
767
|
+
};
|
768
|
+
const measuresToColumns_treeTreeToColumns = (tree, callback)=>{
|
633
769
|
const result = tree.map((item)=>{
|
634
770
|
if ('children' in item && Array.isArray(item.children)) {
|
635
771
|
const groupNode = item;
|
@@ -639,7 +775,7 @@ const treeTreeToColumns = (tree, callback)=>{
|
|
639
775
|
return {
|
640
776
|
field,
|
641
777
|
title,
|
642
|
-
columns:
|
778
|
+
columns: measuresToColumns_treeTreeToColumns(item.children, callback),
|
643
779
|
...props
|
644
780
|
};
|
645
781
|
}
|
@@ -661,8 +797,8 @@ const bodyStyle = (spec, context)=>{
|
|
661
797
|
...spec
|
662
798
|
};
|
663
799
|
const { advancedVSeed } = context;
|
664
|
-
const {
|
665
|
-
const themeConfig =
|
800
|
+
const { chartType, config } = advancedVSeed;
|
801
|
+
const themeConfig = config?.[chartType];
|
666
802
|
if (!result.theme || !themeConfig) return result;
|
667
803
|
const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)';
|
668
804
|
const backgroundColor = themeConfig.bodyBackgroundColor || '#fff';
|
@@ -700,8 +836,8 @@ const headerStyle = (spec, context)=>{
|
|
700
836
|
...spec
|
701
837
|
};
|
702
838
|
const { advancedVSeed } = context;
|
703
|
-
const {
|
704
|
-
const themConfig =
|
839
|
+
const { config, chartType } = advancedVSeed;
|
840
|
+
const themConfig = config?.[chartType];
|
705
841
|
if (!result.theme || !themConfig) return result;
|
706
842
|
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
707
843
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
@@ -748,8 +884,8 @@ const frameStyle = (spec, context)=>{
|
|
748
884
|
...spec
|
749
885
|
};
|
750
886
|
const { advancedVSeed } = context;
|
751
|
-
const {
|
752
|
-
const themConfig =
|
887
|
+
const { config, chartType } = advancedVSeed;
|
888
|
+
const themConfig = config?.[chartType];
|
753
889
|
if (!result.theme || !themConfig) return result;
|
754
890
|
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
755
891
|
result.theme.frameStyle = {
|
@@ -764,8 +900,8 @@ const selectionStyle = (spec, context)=>{
|
|
764
900
|
...spec
|
765
901
|
};
|
766
902
|
const { advancedVSeed } = context;
|
767
|
-
const {
|
768
|
-
const themConfig =
|
903
|
+
const { config, chartType } = advancedVSeed;
|
904
|
+
const themConfig = config?.[chartType];
|
769
905
|
if (!result.theme || !themConfig) return result;
|
770
906
|
const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
|
771
907
|
const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)';
|
@@ -889,16 +1025,46 @@ const autoPivotDimensions = (advancedVSeed, context)=>{
|
|
889
1025
|
}));
|
890
1026
|
return result;
|
891
1027
|
};
|
1028
|
+
const pivotTableConfig = (advancedVSeed, context)=>{
|
1029
|
+
const { vseed } = context;
|
1030
|
+
const { chartType } = vseed;
|
1031
|
+
const result = {
|
1032
|
+
...advancedVSeed
|
1033
|
+
};
|
1034
|
+
const config = (0, external_remeda_namespaceObject.pick)(vseed, [
|
1035
|
+
'backgroundColor',
|
1036
|
+
'bodyFontSize',
|
1037
|
+
'bodyFontColor',
|
1038
|
+
'bodyBackgroundColor',
|
1039
|
+
'headerFontSize',
|
1040
|
+
'headerFontColor',
|
1041
|
+
'headerBackgroundColor',
|
1042
|
+
'hoverHeaderBackgroundColor',
|
1043
|
+
'hoverHeaderInlineBackgroundColor',
|
1044
|
+
'selectedBorderColor',
|
1045
|
+
'selectedBackgroundColor'
|
1046
|
+
]);
|
1047
|
+
result.config = {
|
1048
|
+
...result.config || {},
|
1049
|
+
[chartType]: {
|
1050
|
+
...config
|
1051
|
+
}
|
1052
|
+
};
|
1053
|
+
return result;
|
1054
|
+
};
|
892
1055
|
const pivotTableAdvancedPipeline = [
|
893
1056
|
initAdvancedVSeed,
|
894
1057
|
autoPivotMeasures,
|
895
1058
|
autoPivotDimensions,
|
896
1059
|
records_records,
|
1060
|
+
pivotTableConfig,
|
897
1061
|
theme_theme
|
898
1062
|
];
|
899
1063
|
const initPivotTable = (spec, context)=>{
|
900
1064
|
const { advancedVSeed } = context;
|
901
1065
|
const { dataset } = advancedVSeed;
|
1066
|
+
const { config } = advancedVSeed;
|
1067
|
+
const { backgroundColor = 'transparent' } = config.pivotTable || {};
|
902
1068
|
return {
|
903
1069
|
...spec,
|
904
1070
|
records: dataset,
|
@@ -927,7 +1093,7 @@ const initPivotTable = (spec, context)=>{
|
|
927
1093
|
direction: 'row'
|
928
1094
|
},
|
929
1095
|
theme: {
|
930
|
-
underlayBackgroundColor:
|
1096
|
+
underlayBackgroundColor: backgroundColor
|
931
1097
|
}
|
932
1098
|
};
|
933
1099
|
};
|
@@ -959,26 +1125,39 @@ const pivotRows = (spec, context)=>{
|
|
959
1125
|
};
|
960
1126
|
const pivotIndicators = (spec, context)=>{
|
961
1127
|
const { advancedVSeed } = context;
|
1128
|
+
const { locale } = advancedVSeed;
|
962
1129
|
const measures = advancedVSeed.measures;
|
963
1130
|
return {
|
964
1131
|
...spec,
|
965
1132
|
indicatorsAsCol: true,
|
966
1133
|
indicatorTitle: intl.i18n`指标名称`,
|
967
|
-
indicators: measures.map((item)=>
|
1134
|
+
indicators: measures.map((item)=>{
|
1135
|
+
if (isMeasure(item)) return {
|
968
1136
|
cellType: 'text',
|
969
1137
|
indicatorKey: item.id,
|
970
1138
|
title: item.alias || item.id,
|
971
|
-
width: 'auto'
|
972
|
-
|
1139
|
+
width: 'auto',
|
1140
|
+
format: pivotIndicators_fieldFormat(item, locale)
|
1141
|
+
};
|
1142
|
+
return {};
|
1143
|
+
})
|
973
1144
|
};
|
974
1145
|
};
|
1146
|
+
const pivotIndicators_fieldFormat = (node, locale)=>(value)=>{
|
1147
|
+
const { format = {}, autoFormat = true } = node;
|
1148
|
+
if (!(0, external_remeda_namespaceObject.isEmpty)(format)) {
|
1149
|
+
const formatter = createFormatter(format);
|
1150
|
+
return formatter(value);
|
1151
|
+
}
|
1152
|
+
if (autoFormat) return autoFormatter(value, locale);
|
1153
|
+
};
|
975
1154
|
const rowHeaderStyle = (spec, context)=>{
|
976
1155
|
const result = {
|
977
1156
|
...spec
|
978
1157
|
};
|
979
1158
|
const { advancedVSeed } = context;
|
980
|
-
const {
|
981
|
-
const themConfig =
|
1159
|
+
const { config, chartType } = advancedVSeed;
|
1160
|
+
const themConfig = config?.[chartType];
|
982
1161
|
if (!result.theme || !themConfig) return result;
|
983
1162
|
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
984
1163
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
@@ -1025,8 +1204,8 @@ const cornerHeaderStyle = (spec, context)=>{
|
|
1025
1204
|
...spec
|
1026
1205
|
};
|
1027
1206
|
const { advancedVSeed } = context;
|
1028
|
-
const {
|
1029
|
-
const themConfig =
|
1207
|
+
const { config, chartType } = advancedVSeed;
|
1208
|
+
const themConfig = config?.[chartType];
|
1030
1209
|
if (!result.theme || !themConfig) return result;
|
1031
1210
|
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
1032
1211
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
@@ -1048,9 +1227,9 @@ const cornerHeaderStyle = (spec, context)=>{
|
|
1048
1227
|
],
|
1049
1228
|
textAlign: 'left',
|
1050
1229
|
hover: {
|
1051
|
-
cellBgColor: hoverCellColor,
|
1052
|
-
inlineRowBgColor: hoverInlineColor,
|
1053
|
-
inlineColumnBgColor: hoverInlineColor
|
1230
|
+
cellBgColor: hoverCellColor || void 0,
|
1231
|
+
inlineRowBgColor: hoverInlineColor || void 0,
|
1232
|
+
inlineColumnBgColor: hoverInlineColor || void 0
|
1054
1233
|
},
|
1055
1234
|
frameStyle: {
|
1056
1235
|
borderColor: [
|
@@ -1071,6 +1250,29 @@ const cornerHeaderStyle = (spec, context)=>{
|
|
1071
1250
|
};
|
1072
1251
|
return result;
|
1073
1252
|
};
|
1253
|
+
var new_data_set_AggregationType;
|
1254
|
+
!function(AggregationType) {
|
1255
|
+
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";
|
1256
|
+
}(new_data_set_AggregationType || (new_data_set_AggregationType = {}));
|
1257
|
+
var new_data_set_SortType;
|
1258
|
+
!function(SortType) {
|
1259
|
+
SortType.ASC = "ASC", SortType.DESC = "DESC", SortType.NORMAL = "NORMAL", SortType.desc = "desc", SortType.asc = "asc", SortType.normal = "normal";
|
1260
|
+
}(new_data_set_SortType || (new_data_set_SortType = {}));
|
1261
|
+
const dataConfig = (spec, context)=>{
|
1262
|
+
const { advancedVSeed } = context;
|
1263
|
+
const measures = findAllMeasures(advancedVSeed.measures);
|
1264
|
+
const aggregationRules = measures.map((measure)=>({
|
1265
|
+
field: measure.id,
|
1266
|
+
aggregationType: new_data_set_AggregationType.NONE,
|
1267
|
+
indicatorKey: measure.id
|
1268
|
+
}));
|
1269
|
+
return {
|
1270
|
+
...spec,
|
1271
|
+
dataConfig: {
|
1272
|
+
aggregationRules
|
1273
|
+
}
|
1274
|
+
};
|
1275
|
+
};
|
1074
1276
|
const pivotTableSpecPipeline = [
|
1075
1277
|
initPivotTable,
|
1076
1278
|
pivotColumns,
|
@@ -1081,7 +1283,8 @@ const pivotTableSpecPipeline = [
|
|
1081
1283
|
rowHeaderStyle,
|
1082
1284
|
cornerHeaderStyle,
|
1083
1285
|
frameStyle,
|
1084
|
-
selectionStyle
|
1286
|
+
selectionStyle,
|
1287
|
+
dataConfig
|
1085
1288
|
];
|
1086
1289
|
const registerPivotTable = ()=>{
|
1087
1290
|
Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
|
@@ -1776,7 +1979,7 @@ const background_backgroundColor = (spec, context)=>{
|
|
1776
1979
|
const datasetXY = (spec, context)=>{
|
1777
1980
|
const { advancedVSeed, vseed } = context;
|
1778
1981
|
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
1779
|
-
const
|
1982
|
+
const orderMapping = analysis?.orderMapping || {};
|
1780
1983
|
const angle = encoding[0]?.angle?.[0];
|
1781
1984
|
const x = encoding[0]?.x?.[0];
|
1782
1985
|
const group = encoding[0]?.group?.[0];
|
@@ -1821,7 +2024,7 @@ const progressive = (spec, context)=>{
|
|
1821
2024
|
...spec
|
1822
2025
|
};
|
1823
2026
|
const { advancedVSeed } = context;
|
1824
|
-
const { dataset } = advancedVSeed;
|
2027
|
+
const { dataset = [] } = advancedVSeed;
|
1825
2028
|
const size = dataset.length;
|
1826
2029
|
if (size < 5000) return result;
|
1827
2030
|
result.large = true;
|
@@ -1926,64 +2129,6 @@ const xBand = (spec, context)=>{
|
|
1926
2129
|
};
|
1927
2130
|
const ANNOTATION_Z_INDEX = 1000;
|
1928
2131
|
const LINEAR_AXIS_INNER_OFFSET_TOP = 7;
|
1929
|
-
const createNumFormatter = (format, locale = intl.getLocale())=>{
|
1930
|
-
const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
|
1931
|
-
const numFormatterOptions = {
|
1932
|
-
style: 'decimal',
|
1933
|
-
notation: 'scientific' === type ? 'scientific' : 'standard',
|
1934
|
-
roundingMode,
|
1935
|
-
roundingPriority
|
1936
|
-
};
|
1937
|
-
if ((0, external_remeda_namespaceObject.isNumber)(fractionDigits)) {
|
1938
|
-
if (fractionDigits >= 0) {
|
1939
|
-
numFormatterOptions.minimumFractionDigits = fractionDigits;
|
1940
|
-
numFormatterOptions.maximumFractionDigits = fractionDigits;
|
1941
|
-
}
|
1942
|
-
}
|
1943
|
-
if ((0, external_remeda_namespaceObject.isNumber)(significantDigits) && significantDigits > 0) {
|
1944
|
-
if (significantDigits > 0) {
|
1945
|
-
numFormatterOptions.minimumSignificantDigits = significantDigits;
|
1946
|
-
numFormatterOptions.maximumSignificantDigits = significantDigits;
|
1947
|
-
}
|
1948
|
-
}
|
1949
|
-
const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
|
1950
|
-
return (value)=>{
|
1951
|
-
let num = Number(value);
|
1952
|
-
let typeSymbol = '';
|
1953
|
-
if (Number.isNaN(num)) return num.toString();
|
1954
|
-
if ('percent' === type) {
|
1955
|
-
num *= 100;
|
1956
|
-
typeSymbol = '%';
|
1957
|
-
} else if ('permille' === type) {
|
1958
|
-
num *= 1000;
|
1959
|
-
typeSymbol = "\u2030";
|
1960
|
-
} else if ('number' === type) num /= ratio || 1;
|
1961
|
-
let numStr = numFormatter.format(num);
|
1962
|
-
if (thousandSeparator) {
|
1963
|
-
const parts = numStr.split('.');
|
1964
|
-
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
1965
|
-
numStr = parts.join('.');
|
1966
|
-
}
|
1967
|
-
return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
|
1968
|
-
};
|
1969
|
-
};
|
1970
|
-
const autoNumFormatter = (value, locale = intl.getLocale())=>{
|
1971
|
-
if (null == value) return String(value);
|
1972
|
-
const num = Number(value);
|
1973
|
-
if (Number.isNaN(num)) return String(value);
|
1974
|
-
const numFormatterOptions = {
|
1975
|
-
style: 'decimal',
|
1976
|
-
notation: 'compact'
|
1977
|
-
};
|
1978
|
-
numFormatterOptions.minimumFractionDigits = 0;
|
1979
|
-
numFormatterOptions.maximumFractionDigits = 2;
|
1980
|
-
const numFormatter = new Intl.NumberFormat(locale, {
|
1981
|
-
...numFormatterOptions
|
1982
|
-
});
|
1983
|
-
return numFormatter.format(Number(value));
|
1984
|
-
};
|
1985
|
-
const createFormatter = (format)=>createNumFormatter(format);
|
1986
|
-
const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
|
1987
2132
|
const yLinear = (spec, context)=>{
|
1988
2133
|
const result = {
|
1989
2134
|
...spec
|
@@ -2186,7 +2331,11 @@ const verticalCrosshairLine = (spec, context)=>{
|
|
2186
2331
|
const config = advancedVSeed.config?.[chartType]?.crosshairLine;
|
2187
2332
|
if (!config) return result;
|
2188
2333
|
if (!result.crosshair) result.crosshair = {};
|
2189
|
-
const
|
2334
|
+
const visible = config.visible || true;
|
2335
|
+
const lineColor = config.lineColor || void 0;
|
2336
|
+
const labelColor = config.labelColor || void 0;
|
2337
|
+
const labelVisible = config.labelVisible || void 0;
|
2338
|
+
const labelBackgroundColor = config.labelBackgroundColor || void 0;
|
2190
2339
|
const crosshair = result.crosshair;
|
2191
2340
|
crosshair.xField = {
|
2192
2341
|
visible,
|
@@ -2576,7 +2725,7 @@ const annotationPoint_annotationPoint = (spec, context)=>{
|
|
2576
2725
|
annotationPoint
|
2577
2726
|
];
|
2578
2727
|
const markPoint = annotationPointList.flatMap((annotationPoint)=>{
|
2579
|
-
const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top',
|
2728
|
+
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;
|
2580
2729
|
const dataset = advancedVSeed.dataset.flat();
|
2581
2730
|
const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
|
2582
2731
|
return selectedData.map((datum)=>({
|
@@ -2605,20 +2754,20 @@ const annotationPoint_annotationPoint = (spec, context)=>{
|
|
2605
2754
|
textAlign: textAlign,
|
2606
2755
|
textBaseline: textBaseline,
|
2607
2756
|
fill: textColor,
|
2608
|
-
stroke:
|
2757
|
+
stroke: textBackgroundColor,
|
2609
2758
|
lineWidth: 1,
|
2610
2759
|
fontSize: textFontSize,
|
2611
2760
|
fontWeight: textFontWeight,
|
2612
2761
|
dy: textFontSize
|
2613
2762
|
},
|
2614
2763
|
labelBackground: {
|
2615
|
-
visible:
|
2616
|
-
padding:
|
2764
|
+
visible: textBackgroundVisible,
|
2765
|
+
padding: textBackgroundPadding,
|
2617
2766
|
style: {
|
2618
|
-
cornerRadius:
|
2619
|
-
fill:
|
2620
|
-
stroke:
|
2621
|
-
lineWidth:
|
2767
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
2768
|
+
fill: textBackgroundColor,
|
2769
|
+
stroke: textBackgroundBorderColor,
|
2770
|
+
lineWidth: textBackgroundBorderWidth,
|
2622
2771
|
dy: textFontSize
|
2623
2772
|
}
|
2624
2773
|
}
|
@@ -2648,7 +2797,7 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2648
2797
|
insideEnd: 'insideEndTop'
|
2649
2798
|
};
|
2650
2799
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
2651
|
-
const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top',
|
2800
|
+
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;
|
2652
2801
|
const dataset = advancedVSeed.dataset.flat();
|
2653
2802
|
const generateOneMarkLine = (x)=>({
|
2654
2803
|
x: x,
|
@@ -2674,10 +2823,10 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2674
2823
|
},
|
2675
2824
|
label: {
|
2676
2825
|
text: text,
|
2677
|
-
position: positionMap[textPosition],
|
2826
|
+
position: positionMap[textPosition || 'insideEnd'],
|
2678
2827
|
style: {
|
2679
2828
|
visible: true,
|
2680
|
-
stroke:
|
2829
|
+
stroke: textBackgroundColor,
|
2681
2830
|
lineWidth: 1,
|
2682
2831
|
textAlign: textAlign,
|
2683
2832
|
textBaseline: textBaseline,
|
@@ -2687,20 +2836,20 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
|
|
2687
2836
|
dy: textFontSize
|
2688
2837
|
},
|
2689
2838
|
labelBackground: {
|
2690
|
-
visible:
|
2691
|
-
padding:
|
2839
|
+
visible: textBackgroundVisible,
|
2840
|
+
padding: textBackgroundPadding,
|
2692
2841
|
style: {
|
2693
2842
|
dy: textFontSize,
|
2694
|
-
cornerRadius:
|
2695
|
-
fill:
|
2696
|
-
stroke:
|
2697
|
-
lineWidth:
|
2843
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
2844
|
+
fill: textBackgroundColor,
|
2845
|
+
stroke: textBackgroundBorderColor,
|
2846
|
+
lineWidth: textBackgroundBorderWidth
|
2698
2847
|
}
|
2699
2848
|
}
|
2700
2849
|
},
|
2701
2850
|
endSymbol: {
|
2702
2851
|
visible: true,
|
2703
|
-
size: 10 + lineWidth,
|
2852
|
+
size: 10 + (lineWidth || 1),
|
2704
2853
|
style: {
|
2705
2854
|
dy: 4,
|
2706
2855
|
fill: lineColor
|
@@ -2747,7 +2896,7 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
2747
2896
|
insideEnd: 'insideEndTop'
|
2748
2897
|
};
|
2749
2898
|
const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
|
2750
|
-
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,
|
2899
|
+
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;
|
2751
2900
|
const dataset = advancedVSeed.dataset.flat();
|
2752
2901
|
const generateOneMarkLine = (y)=>({
|
2753
2902
|
y,
|
@@ -2773,11 +2922,11 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
2773
2922
|
},
|
2774
2923
|
label: {
|
2775
2924
|
text: text,
|
2776
|
-
position: positionMap[textPosition],
|
2925
|
+
position: positionMap[textPosition || 'insideEnd'],
|
2777
2926
|
style: {
|
2778
2927
|
visible: true,
|
2779
2928
|
dy: textFontSize,
|
2780
|
-
stroke:
|
2929
|
+
stroke: textBackgroundColor,
|
2781
2930
|
lineWidth: 1,
|
2782
2931
|
textAlign: textAlign,
|
2783
2932
|
textBaseline: textBaseline,
|
@@ -2786,20 +2935,20 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
|
|
2786
2935
|
fontWeight: textFontWeight
|
2787
2936
|
},
|
2788
2937
|
labelBackground: {
|
2789
|
-
visible:
|
2790
|
-
padding:
|
2938
|
+
visible: textBackgroundVisible,
|
2939
|
+
padding: textBackgroundPadding,
|
2791
2940
|
style: {
|
2792
2941
|
dy: textFontSize,
|
2793
|
-
cornerRadius:
|
2794
|
-
fill:
|
2795
|
-
stroke:
|
2796
|
-
lineWidth:
|
2942
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
2943
|
+
fill: textBackgroundColor,
|
2944
|
+
stroke: textBackgroundBorderColor,
|
2945
|
+
lineWidth: textBackgroundBorderWidth
|
2797
2946
|
}
|
2798
2947
|
}
|
2799
2948
|
},
|
2800
2949
|
endSymbol: {
|
2801
2950
|
visible: true,
|
2802
|
-
size: 10 + lineWidth,
|
2951
|
+
size: 10 + (lineWidth || 1),
|
2803
2952
|
style: {
|
2804
2953
|
dx: -4,
|
2805
2954
|
fill: lineColor
|
@@ -2848,9 +2997,11 @@ const annotationArea_annotationArea = (spec, context)=>{
|
|
2848
2997
|
right: 'insideRight'
|
2849
2998
|
};
|
2850
2999
|
const markArea = annotationAreaList.flatMap((annotationArea)=>{
|
2851
|
-
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top',
|
3000
|
+
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;
|
2852
3001
|
const dataset = advancedVSeed.dataset.flat();
|
2853
3002
|
const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
|
3003
|
+
const labelPosition = positionMap[textPosition || 'top'];
|
3004
|
+
const isBottom = labelPosition.toLocaleLowerCase().includes('bottom');
|
2854
3005
|
return {
|
2855
3006
|
zIndex: ANNOTATION_Z_INDEX,
|
2856
3007
|
regionRelative: true,
|
@@ -2863,8 +3014,8 @@ const annotationArea_annotationArea = (spec, context)=>{
|
|
2863
3014
|
const xAxisHelper = context.getXAxisHelper();
|
2864
3015
|
if ('function' == typeof xAxisHelper?.getBandwidth) {
|
2865
3016
|
const yScale = yAxisHelper.getScale();
|
2866
|
-
const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
|
2867
|
-
const maxX = Math.max(...xyList.map((item)=>item.x)) + outerPadding;
|
3017
|
+
const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
|
3018
|
+
const maxX = Math.max(...xyList.map((item)=>item.x)) + (outerPadding || 4);
|
2868
3019
|
const minY = Math.min(...yScale.range());
|
2869
3020
|
const maxY = Math.max(...yScale.range());
|
2870
3021
|
return [
|
@@ -2888,8 +3039,8 @@ const annotationArea_annotationArea = (spec, context)=>{
|
|
2888
3039
|
}
|
2889
3040
|
if ('function' == typeof yAxisHelper?.getBandwidth) {
|
2890
3041
|
const xScale = xAxisHelper.getScale();
|
2891
|
-
const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
|
2892
|
-
const maxY = Math.max(...xyList.map((item)=>item.y)) + outerPadding;
|
3042
|
+
const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
|
3043
|
+
const maxY = Math.max(...xyList.map((item)=>item.y)) + (outerPadding || 4);
|
2893
3044
|
const minX = Math.min(...xScale.range());
|
2894
3045
|
const maxX = Math.max(...xScale.range());
|
2895
3046
|
return [
|
@@ -2914,28 +3065,28 @@ const annotationArea_annotationArea = (spec, context)=>{
|
|
2914
3065
|
return [];
|
2915
3066
|
},
|
2916
3067
|
label: {
|
2917
|
-
position:
|
3068
|
+
position: labelPosition,
|
2918
3069
|
visible: true,
|
2919
3070
|
text: text,
|
2920
3071
|
style: {
|
2921
|
-
dy: textFontSize,
|
3072
|
+
dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
|
2922
3073
|
textAlign: textAlign,
|
2923
3074
|
textBaseline: textBaseline,
|
2924
3075
|
fill: textColor,
|
2925
|
-
stroke:
|
3076
|
+
stroke: textBackgroundColor,
|
2926
3077
|
lineWidth: 1,
|
2927
3078
|
fontSize: textFontSize,
|
2928
3079
|
fontWeight: textFontWeight
|
2929
3080
|
},
|
2930
3081
|
labelBackground: {
|
2931
|
-
visible:
|
2932
|
-
padding:
|
3082
|
+
visible: textBackgroundVisible,
|
3083
|
+
padding: textBackgroundPadding,
|
2933
3084
|
style: {
|
2934
|
-
dy: textFontSize,
|
2935
|
-
cornerRadius:
|
2936
|
-
fill:
|
2937
|
-
stroke:
|
2938
|
-
lineWidth:
|
3085
|
+
dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
|
3086
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
3087
|
+
fill: textBackgroundColor,
|
3088
|
+
stroke: textBackgroundBorderColor,
|
3089
|
+
lineWidth: textBackgroundBorderWidth
|
2939
3090
|
}
|
2940
3091
|
}
|
2941
3092
|
},
|
@@ -3577,7 +3728,11 @@ const verticalCrosshairRect = (spec, context)=>{
|
|
3577
3728
|
const config = advancedVSeed.config?.[chartType]?.crosshairRect;
|
3578
3729
|
if (!config) return result;
|
3579
3730
|
if (!result.crosshair) result.crosshair = {};
|
3580
|
-
const
|
3731
|
+
const visible = config.visible || true;
|
3732
|
+
const rectColor = config.rectColor || void 0;
|
3733
|
+
const labelColor = config.labelColor || void 0;
|
3734
|
+
const labelVisible = config.labelVisible || false;
|
3735
|
+
const labelBackgroundColor = config.labelBackgroundColor || void 0;
|
3581
3736
|
const crosshair = result.crosshair;
|
3582
3737
|
crosshair.xField = {
|
3583
3738
|
visible,
|
@@ -3606,14 +3761,13 @@ const verticalCrosshairRect = (spec, context)=>{
|
|
3606
3761
|
};
|
3607
3762
|
const barStyle_barStyle = (spec, context)=>{
|
3608
3763
|
const { advancedVSeed } = context;
|
3609
|
-
const { markStyle, dataset } = advancedVSeed;
|
3764
|
+
const { markStyle, dataset = [] } = advancedVSeed;
|
3610
3765
|
const { barStyle } = markStyle;
|
3611
3766
|
const showStroke = dataset.length <= 100;
|
3612
3767
|
const result = {
|
3613
3768
|
...spec,
|
3614
3769
|
bar: {
|
3615
3770
|
style: {
|
3616
|
-
stroke: '#fff',
|
3617
3771
|
lineWidth: showStroke ? 1 : 0
|
3618
3772
|
},
|
3619
3773
|
state: {
|
@@ -3689,7 +3843,7 @@ const annotationAreaBand = (spec, context)=>{
|
|
3689
3843
|
right: 'insideRight'
|
3690
3844
|
};
|
3691
3845
|
const markArea = annotationAreaList.flatMap((annotationArea)=>{
|
3692
|
-
const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top',
|
3846
|
+
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;
|
3693
3847
|
const dataset = advancedVSeed.dataset.flat();
|
3694
3848
|
const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
|
3695
3849
|
return {
|
@@ -3706,8 +3860,8 @@ const annotationAreaBand = (spec, context)=>{
|
|
3706
3860
|
const depth = context.fieldX.length ?? 0;
|
3707
3861
|
const xBandWidth = xAxisHelper?.getBandwidth?.(depth - 1);
|
3708
3862
|
const yScale = yAxisHelper.getScale();
|
3709
|
-
const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
|
3710
|
-
const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + outerPadding;
|
3863
|
+
const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
|
3864
|
+
const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + (outerPadding || 4);
|
3711
3865
|
const minY = Math.min(...yScale.range());
|
3712
3866
|
const maxY = Math.max(...yScale.range());
|
3713
3867
|
return [
|
@@ -3733,8 +3887,8 @@ const annotationAreaBand = (spec, context)=>{
|
|
3733
3887
|
const depth = context.fieldY.length ?? 0;
|
3734
3888
|
const yBandWidth = yAxisHelper?.getBandwidth?.(depth - 1);
|
3735
3889
|
const xScale = xAxisHelper.getScale();
|
3736
|
-
const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
|
3737
|
-
const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + outerPadding;
|
3890
|
+
const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
|
3891
|
+
const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + (outerPadding || 4);
|
3738
3892
|
const minX = Math.min(...xScale.range());
|
3739
3893
|
const maxX = Math.max(...xScale.range());
|
3740
3894
|
return [
|
@@ -3759,28 +3913,28 @@ const annotationAreaBand = (spec, context)=>{
|
|
3759
3913
|
return [];
|
3760
3914
|
},
|
3761
3915
|
label: {
|
3762
|
-
position: positionMap[textPosition],
|
3916
|
+
position: positionMap[textPosition || 'top'],
|
3763
3917
|
visible: true,
|
3764
3918
|
text: text,
|
3765
3919
|
style: {
|
3766
3920
|
dy: textFontSize,
|
3767
3921
|
textAlign: textAlign,
|
3768
3922
|
textBaseline: textBaseline,
|
3769
|
-
stroke:
|
3923
|
+
stroke: textBackgroundColor,
|
3770
3924
|
lineWidth: 1,
|
3771
3925
|
fill: textColor,
|
3772
3926
|
fontSize: textFontSize,
|
3773
3927
|
fontWeight: textFontWeight
|
3774
3928
|
},
|
3775
3929
|
labelBackground: {
|
3776
|
-
visible:
|
3777
|
-
padding:
|
3930
|
+
visible: textBackgroundVisible,
|
3931
|
+
padding: textBackgroundPadding,
|
3778
3932
|
style: {
|
3779
3933
|
dy: textFontSize,
|
3780
|
-
cornerRadius:
|
3781
|
-
fill:
|
3782
|
-
stroke:
|
3783
|
-
lineWidth:
|
3934
|
+
cornerRadius: textBackgroundBorderRadius ?? 4,
|
3935
|
+
fill: textBackgroundColor,
|
3936
|
+
stroke: textBackgroundBorderColor,
|
3937
|
+
lineWidth: textBackgroundBorderWidth
|
3784
3938
|
}
|
3785
3939
|
}
|
3786
3940
|
},
|
@@ -4110,7 +4264,7 @@ const initBar = (spec, context)=>{
|
|
4110
4264
|
const datasetYX = (spec, context)=>{
|
4111
4265
|
const { advancedVSeed, vseed } = context;
|
4112
4266
|
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
4113
|
-
const
|
4267
|
+
const orderMapping = analysis?.orderMapping || {};
|
4114
4268
|
const angle = encoding[0]?.angle?.[0];
|
4115
4269
|
const y = encoding[0]?.y?.[0];
|
4116
4270
|
const group = encoding[0]?.group?.[0];
|
@@ -4336,7 +4490,11 @@ const horizontalCrosshairRect = (spec, context)=>{
|
|
4336
4490
|
const config = advancedVSeed.config?.[chartType]?.crosshairRect;
|
4337
4491
|
if (!config) return result;
|
4338
4492
|
if (!result.crosshair) result.crosshair = {};
|
4339
|
-
const
|
4493
|
+
const visible = config.visible || true;
|
4494
|
+
const rectColor = config.rectColor || void 0;
|
4495
|
+
const labelColor = config.labelColor || void 0;
|
4496
|
+
const labelVisible = config.labelVisible || false;
|
4497
|
+
const labelBackgroundColor = config.labelBackgroundColor || void 0;
|
4340
4498
|
const crosshair = result.crosshair;
|
4341
4499
|
crosshair.yField = {
|
4342
4500
|
visible,
|
@@ -5055,6 +5213,35 @@ const series = (...args)=>{
|
|
5055
5213
|
return result;
|
5056
5214
|
};
|
5057
5215
|
};
|
5216
|
+
const seriesDualAxis = (...args)=>{
|
5217
|
+
const result = {
|
5218
|
+
type: 'common',
|
5219
|
+
padding: 0,
|
5220
|
+
region: [
|
5221
|
+
{
|
5222
|
+
clip: true
|
5223
|
+
}
|
5224
|
+
]
|
5225
|
+
};
|
5226
|
+
const createDualContext = (context, index)=>{
|
5227
|
+
const { advancedVSeed } = context;
|
5228
|
+
const dataset = advancedVSeed.dataset[index];
|
5229
|
+
return {
|
5230
|
+
...context,
|
5231
|
+
advancedVSeed: {
|
5232
|
+
...advancedVSeed,
|
5233
|
+
dataset: dataset
|
5234
|
+
}
|
5235
|
+
};
|
5236
|
+
};
|
5237
|
+
return (_, context)=>{
|
5238
|
+
result.series = args.map((pipeline, index)=>{
|
5239
|
+
const seriesContext = createDualContext(context, index);
|
5240
|
+
return execPipeline(pipeline, seriesContext, {});
|
5241
|
+
});
|
5242
|
+
return result;
|
5243
|
+
};
|
5244
|
+
};
|
5058
5245
|
const initAreaRange = (spec, context)=>{
|
5059
5246
|
const result = {
|
5060
5247
|
...spec
|
@@ -5484,7 +5671,11 @@ const horizontalCrosshairLine = (spec, context)=>{
|
|
5484
5671
|
const config = advancedVSeed.config?.[chartType]?.crosshairLine;
|
5485
5672
|
if (!config) return result;
|
5486
5673
|
if (!result.crosshair) result.crosshair = {};
|
5487
|
-
const
|
5674
|
+
const visible = config.visible || true;
|
5675
|
+
const lineColor = config.lineColor || void 0;
|
5676
|
+
const labelColor = config.labelColor || void 0;
|
5677
|
+
const labelVisible = config.labelVisible || void 0;
|
5678
|
+
const labelBackgroundColor = config.labelBackgroundColor || void 0;
|
5488
5679
|
const crosshair = result.crosshair;
|
5489
5680
|
crosshair.yField = {
|
5490
5681
|
visible,
|
@@ -5987,7 +6178,7 @@ const dualChartTypeSecondary = (spec, context)=>{
|
|
5987
6178
|
const datasetPrimary = (spec, context)=>{
|
5988
6179
|
const { advancedVSeed, vseed } = context;
|
5989
6180
|
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
5990
|
-
const
|
6181
|
+
const orderMapping = analysis?.orderMapping || {};
|
5991
6182
|
const x = encoding[0]?.x?.[0];
|
5992
6183
|
const group = encoding[0]?.group?.[0];
|
5993
6184
|
const id = datasetReshapeInfo[0].id;
|
@@ -6018,7 +6209,7 @@ const datasetPrimary = (spec, context)=>{
|
|
6018
6209
|
...spec,
|
6019
6210
|
data: {
|
6020
6211
|
id: `${id}-primary-dataset`,
|
6021
|
-
values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset
|
6212
|
+
values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
|
6022
6213
|
fields: fields
|
6023
6214
|
}
|
6024
6215
|
};
|
@@ -6026,7 +6217,7 @@ const datasetPrimary = (spec, context)=>{
|
|
6026
6217
|
const datasetSecondary = (spec, context)=>{
|
6027
6218
|
const { advancedVSeed, vseed } = context;
|
6028
6219
|
const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
|
6029
|
-
const
|
6220
|
+
const orderMapping = analysis?.orderMapping || {};
|
6030
6221
|
const x = encoding[0]?.x?.[0];
|
6031
6222
|
const group = encoding[0]?.group?.[0];
|
6032
6223
|
const id = datasetReshapeInfo[0].id;
|
@@ -6057,7 +6248,7 @@ const datasetSecondary = (spec, context)=>{
|
|
6057
6248
|
...spec,
|
6058
6249
|
data: {
|
6059
6250
|
id: `${id}-secondary-dataset`,
|
6060
|
-
values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset
|
6251
|
+
values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
|
6061
6252
|
fields: fields
|
6062
6253
|
}
|
6063
6254
|
};
|
@@ -6485,7 +6676,7 @@ const yLinearSecondary = (spec, context)=>{
|
|
6485
6676
|
return result;
|
6486
6677
|
};
|
6487
6678
|
const dualAxis = [
|
6488
|
-
|
6679
|
+
seriesDualAxis([
|
6489
6680
|
initDualAxisPrimary,
|
6490
6681
|
dualChartTypePrimary,
|
6491
6682
|
datasetPrimary,
|
@@ -6528,7 +6719,7 @@ const pivotDualAxis = [
|
|
6528
6719
|
pivotIndicators_pivotIndicatorsAsRow,
|
6529
6720
|
datasetPivot,
|
6530
6721
|
pivotIndicators_pivotIndicators([
|
6531
|
-
|
6722
|
+
seriesDualAxis([
|
6532
6723
|
initDualAxisPrimary,
|
6533
6724
|
dualChartTypePrimary,
|
6534
6725
|
datasetPrimary,
|
@@ -7922,7 +8113,8 @@ const lightTheme = ()=>{
|
|
7922
8113
|
hoverHeaderBackgroundColor: '#D9DDE4',
|
7923
8114
|
hoverHeaderInlineBackgroundColor: '#D9DDE455',
|
7924
8115
|
selectedBorderColor: '#4080ff',
|
7925
|
-
selectedBackgroundColor: '#bedaff33'
|
8116
|
+
selectedBackgroundColor: '#bedaff33',
|
8117
|
+
backgroundColor: 'transparent'
|
7926
8118
|
};
|
7927
8119
|
return {
|
7928
8120
|
config: {
|
@@ -7942,8 +8134,8 @@ const lightTheme = ()=>{
|
|
7942
8134
|
stackCornerRadius: [
|
7943
8135
|
4,
|
7944
8136
|
4,
|
7945
|
-
|
7946
|
-
|
8137
|
+
4,
|
8138
|
+
4
|
7947
8139
|
]
|
7948
8140
|
},
|
7949
8141
|
columnParallel: {
|
@@ -7954,8 +8146,8 @@ const lightTheme = ()=>{
|
|
7954
8146
|
stackCornerRadius: [
|
7955
8147
|
4,
|
7956
8148
|
4,
|
7957
|
-
|
7958
|
-
|
8149
|
+
4,
|
8150
|
+
4
|
7959
8151
|
]
|
7960
8152
|
},
|
7961
8153
|
columnPercent: {
|
@@ -7966,8 +8158,8 @@ const lightTheme = ()=>{
|
|
7966
8158
|
stackCornerRadius: [
|
7967
8159
|
4,
|
7968
8160
|
4,
|
7969
|
-
|
7970
|
-
|
8161
|
+
4,
|
8162
|
+
4
|
7971
8163
|
]
|
7972
8164
|
},
|
7973
8165
|
bar: {
|
@@ -7976,10 +8168,10 @@ const lightTheme = ()=>{
|
|
7976
8168
|
yAxis: barBandAxis,
|
7977
8169
|
crosshairRect,
|
7978
8170
|
stackCornerRadius: [
|
7979
|
-
0,
|
7980
8171
|
4,
|
7981
8172
|
4,
|
7982
|
-
|
8173
|
+
4,
|
8174
|
+
4
|
7983
8175
|
]
|
7984
8176
|
},
|
7985
8177
|
barParallel: {
|
@@ -7988,10 +8180,10 @@ const lightTheme = ()=>{
|
|
7988
8180
|
yAxis: barBandAxis,
|
7989
8181
|
crosshairRect,
|
7990
8182
|
stackCornerRadius: [
|
7991
|
-
0,
|
7992
8183
|
4,
|
7993
8184
|
4,
|
7994
|
-
|
8185
|
+
4,
|
8186
|
+
4
|
7995
8187
|
]
|
7996
8188
|
},
|
7997
8189
|
barPercent: {
|
@@ -8000,10 +8192,10 @@ const lightTheme = ()=>{
|
|
8000
8192
|
yAxis: barBandAxis,
|
8001
8193
|
crosshairRect,
|
8002
8194
|
stackCornerRadius: [
|
8003
|
-
0,
|
8004
8195
|
4,
|
8005
8196
|
4,
|
8006
|
-
|
8197
|
+
4,
|
8198
|
+
4
|
8007
8199
|
]
|
8008
8200
|
},
|
8009
8201
|
area: {
|
@@ -8280,8 +8472,8 @@ const darkTheme = ()=>{
|
|
8280
8472
|
stackCornerRadius: [
|
8281
8473
|
4,
|
8282
8474
|
4,
|
8283
|
-
|
8284
|
-
|
8475
|
+
4,
|
8476
|
+
4
|
8285
8477
|
]
|
8286
8478
|
},
|
8287
8479
|
columnParallel: {
|
@@ -8292,8 +8484,8 @@ const darkTheme = ()=>{
|
|
8292
8484
|
stackCornerRadius: [
|
8293
8485
|
4,
|
8294
8486
|
4,
|
8295
|
-
|
8296
|
-
|
8487
|
+
4,
|
8488
|
+
4
|
8297
8489
|
]
|
8298
8490
|
},
|
8299
8491
|
columnPercent: {
|
@@ -8304,8 +8496,8 @@ const darkTheme = ()=>{
|
|
8304
8496
|
stackCornerRadius: [
|
8305
8497
|
4,
|
8306
8498
|
4,
|
8307
|
-
|
8308
|
-
|
8499
|
+
4,
|
8500
|
+
4
|
8309
8501
|
]
|
8310
8502
|
},
|
8311
8503
|
bar: {
|
@@ -8326,10 +8518,10 @@ const darkTheme = ()=>{
|
|
8326
8518
|
yAxis: barBandAxis,
|
8327
8519
|
crosshairRect: crosshairRect,
|
8328
8520
|
stackCornerRadius: [
|
8329
|
-
0,
|
8330
8521
|
4,
|
8331
8522
|
4,
|
8332
|
-
|
8523
|
+
4,
|
8524
|
+
4
|
8333
8525
|
]
|
8334
8526
|
},
|
8335
8527
|
barPercent: {
|
@@ -8338,10 +8530,10 @@ const darkTheme = ()=>{
|
|
8338
8530
|
yAxis: barBandAxis,
|
8339
8531
|
crosshairRect: crosshairRect,
|
8340
8532
|
stackCornerRadius: [
|
8341
|
-
0,
|
8342
8533
|
4,
|
8343
8534
|
4,
|
8344
|
-
|
8535
|
+
4,
|
8536
|
+
4
|
8345
8537
|
]
|
8346
8538
|
},
|
8347
8539
|
area: {
|
@@ -8478,6 +8670,9 @@ const updateAdvanced = (chartType, advancedPipe)=>{
|
|
8478
8670
|
const updateSpec = (chartType, specPipe)=>{
|
8479
8671
|
Builder._customSpecPipe[chartType] = specPipe;
|
8480
8672
|
};
|
8673
|
+
const isDimension = (dimension)=>!('children' in dimension);
|
8674
|
+
const isDimensionGroup = (dimension)=>'children' in dimension;
|
8675
|
+
const isDimensions = (dimensions)=>dimensions.every(isDimension);
|
8481
8676
|
const external_zod_namespaceObject = require("zod");
|
8482
8677
|
const zChartType = external_zod_namespaceObject.z["enum"]([
|
8483
8678
|
'table',
|
@@ -8605,117 +8800,117 @@ const zDatasetReshapeInfo = external_zod_namespaceObject.z.array(external_zod_na
|
|
8605
8800
|
id: external_zod_namespaceObject.z.string(),
|
8606
8801
|
index: external_zod_namespaceObject.z.number(),
|
8607
8802
|
foldInfo: zFoldInfo,
|
8608
|
-
foldInfoList: external_zod_namespaceObject.z.array(zFoldInfo).
|
8803
|
+
foldInfoList: external_zod_namespaceObject.z.array(zFoldInfo).nullish(),
|
8609
8804
|
unfoldInfo: zUnfoldInfo
|
8610
8805
|
}));
|
8611
8806
|
const zEncoding = external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.object({
|
8612
|
-
x: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8613
|
-
y: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8614
|
-
color: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8615
|
-
group: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8616
|
-
angle: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8617
|
-
radius: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8618
|
-
tooltip: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8619
|
-
size: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8807
|
+
x: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
|
8808
|
+
y: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
|
8809
|
+
color: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
|
8810
|
+
group: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
|
8811
|
+
angle: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
|
8812
|
+
radius: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
|
8813
|
+
tooltip: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
|
8814
|
+
size: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish()
|
8620
8815
|
}));
|
8621
8816
|
const zXBandAxis = external_zod_namespaceObject.z.object({
|
8622
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8623
|
-
labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).
|
8624
|
-
labelAutoHideGap: external_zod_namespaceObject.z.number().default(0).
|
8625
|
-
labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).
|
8817
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8818
|
+
labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8819
|
+
labelAutoHideGap: external_zod_namespaceObject.z.number().default(0).nullish(),
|
8820
|
+
labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8626
8821
|
labelAutoRotateAngleRange: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number()).default([
|
8627
8822
|
0,
|
8628
8823
|
-45,
|
8629
8824
|
-90
|
8630
|
-
]).
|
8631
|
-
labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).
|
8632
|
-
labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).
|
8825
|
+
]).nullish(),
|
8826
|
+
labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8827
|
+
labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).nullish(),
|
8633
8828
|
label: external_zod_namespaceObject.z.object({
|
8634
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8635
|
-
labelColor: external_zod_namespaceObject.z.string().default('#797B85').
|
8636
|
-
labelFontSize: external_zod_namespaceObject.z.number().default(12).
|
8637
|
-
labelFontWeight: external_zod_namespaceObject.z.number().default(400).
|
8638
|
-
labelAngle: external_zod_namespaceObject.z.number().default(0).
|
8639
|
-
}).
|
8829
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8830
|
+
labelColor: external_zod_namespaceObject.z.string().default('#797B85').nullish(),
|
8831
|
+
labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
8832
|
+
labelFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
|
8833
|
+
labelAngle: external_zod_namespaceObject.z.number().default(0).nullish()
|
8834
|
+
}).nullish(),
|
8640
8835
|
line: external_zod_namespaceObject.z.object({
|
8641
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8642
|
-
lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').
|
8643
|
-
lineWidth: external_zod_namespaceObject.z.number().default(1).
|
8644
|
-
}).
|
8836
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8837
|
+
lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
8838
|
+
lineWidth: external_zod_namespaceObject.z.number().default(1).nullish()
|
8839
|
+
}).nullish(),
|
8645
8840
|
tick: external_zod_namespaceObject.z.object({
|
8646
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8647
|
-
tickInside: external_zod_namespaceObject.z.boolean().default(false).
|
8648
|
-
tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').
|
8649
|
-
tickSize: external_zod_namespaceObject.z.number().default(4).
|
8650
|
-
}).
|
8841
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8842
|
+
tickInside: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
8843
|
+
tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
8844
|
+
tickSize: external_zod_namespaceObject.z.number().default(4).nullish()
|
8845
|
+
}).nullish(),
|
8651
8846
|
title: external_zod_namespaceObject.z.object({
|
8652
|
-
visible: external_zod_namespaceObject.z.boolean().default(false).
|
8653
|
-
titleText: external_zod_namespaceObject.z.string().default('').
|
8654
|
-
titleColor: external_zod_namespaceObject.z.string().default('#646A73').
|
8655
|
-
titleFontSize: external_zod_namespaceObject.z.number().default(12).
|
8656
|
-
titleFontWeight: external_zod_namespaceObject.z.number().default(400).
|
8657
|
-
}).
|
8847
|
+
visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
8848
|
+
titleText: external_zod_namespaceObject.z.string().default('').nullish(),
|
8849
|
+
titleColor: external_zod_namespaceObject.z.string().default('#646A73').nullish(),
|
8850
|
+
titleFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
8851
|
+
titleFontWeight: external_zod_namespaceObject.z.number().default(400).nullish()
|
8852
|
+
}).nullish(),
|
8658
8853
|
grid: external_zod_namespaceObject.z.object({
|
8659
|
-
visible: external_zod_namespaceObject.z.boolean().default(false).
|
8660
|
-
gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').
|
8661
|
-
gridWidth: external_zod_namespaceObject.z.number().default(0.5).
|
8662
|
-
}).
|
8854
|
+
visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
8855
|
+
gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
|
8856
|
+
gridWidth: external_zod_namespaceObject.z.number().default(0.5).nullish()
|
8857
|
+
}).nullish()
|
8663
8858
|
});
|
8664
8859
|
const zYBandAxis = zXBandAxis;
|
8665
8860
|
const zXLinearAxis = external_zod_namespaceObject.z.object({
|
8666
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8667
|
-
min: external_zod_namespaceObject.z.number().
|
8668
|
-
max: external_zod_namespaceObject.z.number().
|
8669
|
-
nice: external_zod_namespaceObject.z.boolean().default(true).
|
8670
|
-
zero: external_zod_namespaceObject.z.boolean().default(true).
|
8671
|
-
log: external_zod_namespaceObject.z.boolean().default(false).
|
8672
|
-
logBase: external_zod_namespaceObject.z.number().default(10).
|
8673
|
-
inverse: external_zod_namespaceObject.z.boolean().default(false).
|
8861
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8862
|
+
min: external_zod_namespaceObject.z.number().nullish(),
|
8863
|
+
max: external_zod_namespaceObject.z.number().nullish(),
|
8864
|
+
nice: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8865
|
+
zero: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8866
|
+
log: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
8867
|
+
logBase: external_zod_namespaceObject.z.number().default(10).nullish(),
|
8868
|
+
inverse: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
8674
8869
|
label: external_zod_namespaceObject.z.object({
|
8675
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8676
|
-
labelColor: external_zod_namespaceObject.z.string().default('#797B85').
|
8677
|
-
labelFontSize: external_zod_namespaceObject.z.number().default(12).
|
8678
|
-
labelFontWeight: external_zod_namespaceObject.z.number().default(400).
|
8679
|
-
labelAngle: external_zod_namespaceObject.z.number().default(0).
|
8680
|
-
}).
|
8870
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8871
|
+
labelColor: external_zod_namespaceObject.z.string().default('#797B85').nullish(),
|
8872
|
+
labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
8873
|
+
labelFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
|
8874
|
+
labelAngle: external_zod_namespaceObject.z.number().default(0).nullish()
|
8875
|
+
}).nullish(),
|
8681
8876
|
line: external_zod_namespaceObject.z.object({
|
8682
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8683
|
-
lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').
|
8684
|
-
lineWidth: external_zod_namespaceObject.z.number().default(1).
|
8685
|
-
}).
|
8877
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8878
|
+
lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
8879
|
+
lineWidth: external_zod_namespaceObject.z.number().default(1).nullish()
|
8880
|
+
}).nullish(),
|
8686
8881
|
tick: external_zod_namespaceObject.z.object({
|
8687
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8688
|
-
tickInside: external_zod_namespaceObject.z.boolean().default(false).
|
8689
|
-
tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').
|
8690
|
-
tickSize: external_zod_namespaceObject.z.number().default(4).
|
8691
|
-
}).
|
8882
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8883
|
+
tickInside: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
8884
|
+
tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
8885
|
+
tickSize: external_zod_namespaceObject.z.number().default(4).nullish()
|
8886
|
+
}).nullish(),
|
8692
8887
|
title: external_zod_namespaceObject.z.object({
|
8693
|
-
visible: external_zod_namespaceObject.z.boolean().default(false).
|
8694
|
-
titleText: external_zod_namespaceObject.z.string().default('').
|
8695
|
-
titleColor: external_zod_namespaceObject.z.string().default('#646A73').
|
8696
|
-
titleFontSize: external_zod_namespaceObject.z.number().default(12).
|
8697
|
-
titleFontWeight: external_zod_namespaceObject.z.number().default(400).
|
8698
|
-
}).
|
8888
|
+
visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
8889
|
+
titleText: external_zod_namespaceObject.z.string().default('').nullish(),
|
8890
|
+
titleColor: external_zod_namespaceObject.z.string().default('#646A73').nullish(),
|
8891
|
+
titleFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
8892
|
+
titleFontWeight: external_zod_namespaceObject.z.number().default(400).nullish()
|
8893
|
+
}).nullish(),
|
8699
8894
|
grid: external_zod_namespaceObject.z.object({
|
8700
|
-
visible: external_zod_namespaceObject.z.boolean().default(false).
|
8701
|
-
gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').
|
8702
|
-
gridWidth: external_zod_namespaceObject.z.number().default(0.5).
|
8703
|
-
}).
|
8895
|
+
visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
8896
|
+
gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
|
8897
|
+
gridWidth: external_zod_namespaceObject.z.number().default(0.5).nullish()
|
8898
|
+
}).nullish()
|
8704
8899
|
});
|
8705
8900
|
const zYLinearAxis = zXLinearAxis;
|
8706
8901
|
const zCrosshairLine = external_zod_namespaceObject.z.object({
|
8707
|
-
visible: external_zod_namespaceObject.z.boolean().
|
8708
|
-
lineColor: external_zod_namespaceObject.z.string().
|
8709
|
-
labelColor: external_zod_namespaceObject.z.string().
|
8710
|
-
labelVisible: external_zod_namespaceObject.z.boolean().
|
8711
|
-
labelBackgroundColor: external_zod_namespaceObject.z.string().
|
8902
|
+
visible: external_zod_namespaceObject.z.boolean().nullish(),
|
8903
|
+
lineColor: external_zod_namespaceObject.z.string().nullish(),
|
8904
|
+
labelColor: external_zod_namespaceObject.z.string().nullish(),
|
8905
|
+
labelVisible: external_zod_namespaceObject.z.boolean().nullish(),
|
8906
|
+
labelBackgroundColor: external_zod_namespaceObject.z.string().nullish()
|
8712
8907
|
});
|
8713
8908
|
const zCrosshairRect = external_zod_namespaceObject.z.object({
|
8714
|
-
visible: external_zod_namespaceObject.z.boolean().
|
8715
|
-
rectColor: external_zod_namespaceObject.z.string().
|
8716
|
-
labelColor: external_zod_namespaceObject.z.string().
|
8717
|
-
labelVisible: external_zod_namespaceObject.z.boolean().
|
8718
|
-
labelBackgroundColor: external_zod_namespaceObject.z.string().
|
8909
|
+
visible: external_zod_namespaceObject.z.boolean().nullish(),
|
8910
|
+
rectColor: external_zod_namespaceObject.z.string().nullish(),
|
8911
|
+
labelColor: external_zod_namespaceObject.z.string().nullish(),
|
8912
|
+
labelVisible: external_zod_namespaceObject.z.boolean().nullish(),
|
8913
|
+
labelBackgroundColor: external_zod_namespaceObject.z.string().nullish()
|
8719
8914
|
});
|
8720
8915
|
const zStackCornerRadius = external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number())).default([
|
8721
8916
|
3,
|
@@ -8723,21 +8918,21 @@ const zStackCornerRadius = external_zod_namespaceObject.z.number().or(external_z
|
|
8723
8918
|
0,
|
8724
8919
|
0
|
8725
8920
|
]);
|
8726
|
-
const zBackgroundColor = external_zod_namespaceObject.z.string().default('transparent').
|
8921
|
+
const zBackgroundColor = external_zod_namespaceObject.z.string().default('transparent').nullish();
|
8727
8922
|
const zColor = external_zod_namespaceObject.z.object({
|
8728
|
-
colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8729
|
-
colorMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.string()).
|
8923
|
+
colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
|
8924
|
+
colorMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.string()).nullish()
|
8730
8925
|
});
|
8731
8926
|
const zLinearColor = external_zod_namespaceObject.z.object({
|
8732
|
-
colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).
|
8927
|
+
colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish()
|
8733
8928
|
});
|
8734
8929
|
const zLabel = external_zod_namespaceObject.z.object({
|
8735
|
-
enable: external_zod_namespaceObject.z.boolean().default(true).
|
8930
|
+
enable: external_zod_namespaceObject.z.boolean().default(true).nullish()
|
8736
8931
|
});
|
8737
8932
|
const zLegend = external_zod_namespaceObject.z.object({
|
8738
|
-
enable: external_zod_namespaceObject.z.boolean().default(true).
|
8739
|
-
border: external_zod_namespaceObject.z.boolean().default(true).
|
8740
|
-
maxSize: external_zod_namespaceObject.z.number().default(1).
|
8933
|
+
enable: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8934
|
+
border: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8935
|
+
maxSize: external_zod_namespaceObject.z.number().default(1).nullish(),
|
8741
8936
|
shapeType: external_zod_namespaceObject.z["enum"]([
|
8742
8937
|
'circle',
|
8743
8938
|
'cross',
|
@@ -8761,7 +8956,7 @@ const zLegend = external_zod_namespaceObject.z.object({
|
|
8761
8956
|
'arrowRight',
|
8762
8957
|
'rectRound',
|
8763
8958
|
'roundLine'
|
8764
|
-
]).default('rectRound').
|
8959
|
+
]).default('rectRound').nullish(),
|
8765
8960
|
position: external_zod_namespaceObject.z["enum"]([
|
8766
8961
|
'left',
|
8767
8962
|
'leftTop',
|
@@ -8783,10 +8978,10 @@ const zLegend = external_zod_namespaceObject.z.object({
|
|
8783
8978
|
'bottomRight',
|
8784
8979
|
'bl',
|
8785
8980
|
'br'
|
8786
|
-
]).default('bottom').
|
8787
|
-
labelFontSize: external_zod_namespaceObject.z.number().default(12).
|
8788
|
-
labelFontColor: external_zod_namespaceObject.z.string().default('#fff').
|
8789
|
-
labelFontWeight: external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.string()).default(400).
|
8981
|
+
]).default('bottom').nullish(),
|
8982
|
+
labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
8983
|
+
labelFontColor: external_zod_namespaceObject.z.string().default('#fff').nullish(),
|
8984
|
+
labelFontWeight: external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.string()).default(400).nullish()
|
8790
8985
|
});
|
8791
8986
|
const zColorLegend = external_zod_namespaceObject.z.object({
|
8792
8987
|
position: external_zod_namespaceObject.z["enum"]([
|
@@ -8810,194 +9005,195 @@ const zColorLegend = external_zod_namespaceObject.z.object({
|
|
8810
9005
|
'bottomRight',
|
8811
9006
|
'bl',
|
8812
9007
|
'br'
|
8813
|
-
]).default('bottom').
|
8814
|
-
enable: external_zod_namespaceObject.z.boolean().default(true).
|
9008
|
+
]).default('bottom').nullish(),
|
9009
|
+
enable: external_zod_namespaceObject.z.boolean().default(true).nullish()
|
8815
9010
|
});
|
8816
9011
|
const zTooltip = external_zod_namespaceObject.z.object({
|
8817
|
-
enable: external_zod_namespaceObject.z.boolean().default(true).
|
9012
|
+
enable: external_zod_namespaceObject.z.boolean().default(true).nullish()
|
8818
9013
|
});
|
8819
9014
|
const zTableConfig = external_zod_namespaceObject.z.object({
|
8820
|
-
|
8821
|
-
|
8822
|
-
|
8823
|
-
|
8824
|
-
|
8825
|
-
|
8826
|
-
|
8827
|
-
|
8828
|
-
|
8829
|
-
|
8830
|
-
|
8831
|
-
|
8832
|
-
|
9015
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9016
|
+
borderColor: external_zod_namespaceObject.z.string().nullish(),
|
9017
|
+
bodyFontSize: external_zod_namespaceObject.z.number().nullish(),
|
9018
|
+
bodyFontColor: external_zod_namespaceObject.z.string().nullish(),
|
9019
|
+
bodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9020
|
+
hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9021
|
+
hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9022
|
+
headerFontSize: external_zod_namespaceObject.z.number().nullish(),
|
9023
|
+
headerFontColor: external_zod_namespaceObject.z.string().nullish(),
|
9024
|
+
headerBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9025
|
+
hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9026
|
+
hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9027
|
+
selectedBorderColor: external_zod_namespaceObject.z.string().nullish(),
|
9028
|
+
selectedBackgroundColor: external_zod_namespaceObject.z.string().nullish()
|
8833
9029
|
});
|
8834
9030
|
const zPivotTableConfig = zTableConfig;
|
8835
9031
|
const zLineConfig = external_zod_namespaceObject.z.object({
|
8836
|
-
backgroundColor: zBackgroundColor.
|
8837
|
-
label: zLabel.
|
8838
|
-
color: zColor.
|
8839
|
-
tooltip: zTooltip.
|
8840
|
-
legend: zLegend.
|
8841
|
-
xAxis: zXBandAxis.
|
8842
|
-
yAxis: zYLinearAxis.
|
8843
|
-
crosshairLine: zCrosshairLine.
|
9032
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9033
|
+
label: zLabel.nullish(),
|
9034
|
+
color: zColor.nullish(),
|
9035
|
+
tooltip: zTooltip.nullish(),
|
9036
|
+
legend: zLegend.nullish(),
|
9037
|
+
xAxis: zXBandAxis.nullish(),
|
9038
|
+
yAxis: zYLinearAxis.nullish(),
|
9039
|
+
crosshairLine: zCrosshairLine.nullish()
|
8844
9040
|
});
|
8845
9041
|
const zColumnConfig = external_zod_namespaceObject.z.object({
|
8846
|
-
backgroundColor: zBackgroundColor.
|
8847
|
-
label: zLabel.
|
8848
|
-
color: zColor.
|
8849
|
-
tooltip: zTooltip.
|
8850
|
-
legend: zLegend.
|
8851
|
-
xAxis: zXBandAxis.
|
8852
|
-
yAxis: zYLinearAxis.
|
8853
|
-
crosshairRect: zCrosshairRect.
|
8854
|
-
stackCornerRadius: zStackCornerRadius.
|
9042
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9043
|
+
label: zLabel.nullish(),
|
9044
|
+
color: zColor.nullish(),
|
9045
|
+
tooltip: zTooltip.nullish(),
|
9046
|
+
legend: zLegend.nullish(),
|
9047
|
+
xAxis: zXBandAxis.nullish(),
|
9048
|
+
yAxis: zYLinearAxis.nullish(),
|
9049
|
+
crosshairRect: zCrosshairRect.nullish(),
|
9050
|
+
stackCornerRadius: zStackCornerRadius.nullish()
|
8855
9051
|
});
|
8856
9052
|
const zColumnParallelConfig = zColumnConfig;
|
8857
9053
|
const zColumnPercentConfig = zColumnConfig;
|
8858
9054
|
const zBarConfig = external_zod_namespaceObject.z.object({
|
8859
|
-
backgroundColor: zBackgroundColor.
|
8860
|
-
label: zLabel.
|
8861
|
-
color: zColor.
|
8862
|
-
tooltip: zTooltip.
|
8863
|
-
legend: zLegend.
|
8864
|
-
xAxis: zXLinearAxis.
|
8865
|
-
yAxis: zYBandAxis.
|
8866
|
-
crosshairRect: zCrosshairRect.
|
8867
|
-
stackCornerRadius: zStackCornerRadius.
|
9055
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9056
|
+
label: zLabel.nullish(),
|
9057
|
+
color: zColor.nullish(),
|
9058
|
+
tooltip: zTooltip.nullish(),
|
9059
|
+
legend: zLegend.nullish(),
|
9060
|
+
xAxis: zXLinearAxis.nullish(),
|
9061
|
+
yAxis: zYBandAxis.nullish(),
|
9062
|
+
crosshairRect: zCrosshairRect.nullish(),
|
9063
|
+
stackCornerRadius: zStackCornerRadius.nullish()
|
8868
9064
|
});
|
8869
9065
|
const zBarParallelConfig = zBarConfig;
|
8870
9066
|
const zBarPercentConfig = zBarConfig;
|
8871
9067
|
const zAreaConfig = external_zod_namespaceObject.z.object({
|
8872
|
-
backgroundColor: zBackgroundColor.
|
8873
|
-
label: zLabel.
|
8874
|
-
color: zColor.
|
8875
|
-
tooltip: zTooltip.
|
8876
|
-
legend: zLegend.
|
8877
|
-
xAxis: zXBandAxis.
|
8878
|
-
yAxis: zYLinearAxis.
|
8879
|
-
crosshairLine: zCrosshairLine.
|
9068
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9069
|
+
label: zLabel.nullish(),
|
9070
|
+
color: zColor.nullish(),
|
9071
|
+
tooltip: zTooltip.nullish(),
|
9072
|
+
legend: zLegend.nullish(),
|
9073
|
+
xAxis: zXBandAxis.nullish(),
|
9074
|
+
yAxis: zYLinearAxis.nullish(),
|
9075
|
+
crosshairLine: zCrosshairLine.nullish()
|
8880
9076
|
});
|
8881
9077
|
const zAreaPercentConfig = zAreaConfig;
|
8882
9078
|
const zAreaRangeConfig = zAreaConfig;
|
8883
9079
|
const zDualAxisConfig = external_zod_namespaceObject.z.object({
|
8884
|
-
backgroundColor: zBackgroundColor.
|
8885
|
-
label: zLabel.
|
8886
|
-
color: zColor.
|
8887
|
-
tooltip: zTooltip.
|
8888
|
-
legend: zLegend.
|
8889
|
-
dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).
|
8890
|
-
primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).
|
8891
|
-
secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).
|
8892
|
-
xAxis: zXBandAxis.
|
8893
|
-
crosshairRect: zCrosshairRect.
|
9080
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9081
|
+
label: zLabel.nullish(),
|
9082
|
+
color: zColor.nullish(),
|
9083
|
+
tooltip: zTooltip.nullish(),
|
9084
|
+
legend: zLegend.nullish(),
|
9085
|
+
dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).nullish(),
|
9086
|
+
primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
|
9087
|
+
secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
|
9088
|
+
xAxis: zXBandAxis.nullish(),
|
9089
|
+
crosshairRect: zCrosshairRect.nullish()
|
8894
9090
|
});
|
8895
9091
|
const zScatterConfig = external_zod_namespaceObject.z.object({
|
8896
|
-
backgroundColor: zBackgroundColor.
|
8897
|
-
label: zLabel.
|
8898
|
-
color: zColor.
|
8899
|
-
tooltip: zTooltip.
|
8900
|
-
legend: zLegend.
|
8901
|
-
xAxis: zXLinearAxis.
|
8902
|
-
yAxis: zYLinearAxis.
|
8903
|
-
crosshairLine: zCrosshairLine.
|
9092
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9093
|
+
label: zLabel.nullish(),
|
9094
|
+
color: zColor.nullish(),
|
9095
|
+
tooltip: zTooltip.nullish(),
|
9096
|
+
legend: zLegend.nullish(),
|
9097
|
+
xAxis: zXLinearAxis.nullish(),
|
9098
|
+
yAxis: zYLinearAxis.nullish(),
|
9099
|
+
crosshairLine: zCrosshairLine.nullish()
|
8904
9100
|
});
|
8905
9101
|
const zRoseConfig = external_zod_namespaceObject.z.object({
|
8906
|
-
backgroundColor: zBackgroundColor.
|
8907
|
-
label: zLabel.
|
8908
|
-
color: zColor.
|
8909
|
-
tooltip: zTooltip.
|
8910
|
-
legend: zLegend.
|
9102
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9103
|
+
label: zLabel.nullish(),
|
9104
|
+
color: zColor.nullish(),
|
9105
|
+
tooltip: zTooltip.nullish(),
|
9106
|
+
legend: zLegend.nullish()
|
8911
9107
|
});
|
8912
9108
|
const zRoseParallelConfig = zRoseConfig;
|
8913
9109
|
const zPieConfig = external_zod_namespaceObject.z.object({
|
8914
|
-
backgroundColor: zBackgroundColor.
|
8915
|
-
label: zLabel.
|
8916
|
-
color: zColor.
|
8917
|
-
tooltip: zTooltip.
|
8918
|
-
legend: zLegend.
|
9110
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9111
|
+
label: zLabel.nullish(),
|
9112
|
+
color: zColor.nullish(),
|
9113
|
+
tooltip: zTooltip.nullish(),
|
9114
|
+
legend: zLegend.nullish()
|
8919
9115
|
});
|
8920
9116
|
const zDonutConfig = zPieConfig;
|
8921
9117
|
const zRadarConfig = zPieConfig;
|
8922
9118
|
const zFunnelConfig = zPieConfig;
|
8923
9119
|
const zHeatmapConfig = zPieConfig;
|
8924
9120
|
const zConfig = external_zod_namespaceObject.z.object({
|
8925
|
-
table: zTableConfig.
|
8926
|
-
pivotTable: zPivotTableConfig.
|
8927
|
-
line: zLineConfig.
|
8928
|
-
column: zColumnConfig.
|
8929
|
-
columnParallel: zColumnParallelConfig.
|
8930
|
-
columnPercent: zColumnPercentConfig.
|
8931
|
-
bar: zBarConfig.
|
8932
|
-
barParallel: zBarParallelConfig.
|
8933
|
-
barPercent: zBarPercentConfig.
|
8934
|
-
area: zAreaConfig.
|
8935
|
-
areaPercent: zAreaPercentConfig.
|
8936
|
-
areaRange: zAreaRangeConfig.
|
8937
|
-
scatter: zScatterConfig.
|
8938
|
-
dualAxis: zDualAxisConfig.
|
8939
|
-
rose: zRoseConfig.
|
8940
|
-
roseParallel: zRoseParallelConfig.
|
8941
|
-
pie: zPieConfig.
|
8942
|
-
donut: zDonutConfig.
|
8943
|
-
radar: zRadarConfig.
|
8944
|
-
funnel: zFunnelConfig.
|
8945
|
-
heatmap: zHeatmapConfig.
|
9121
|
+
table: zTableConfig.nullish(),
|
9122
|
+
pivotTable: zPivotTableConfig.nullish(),
|
9123
|
+
line: zLineConfig.nullish(),
|
9124
|
+
column: zColumnConfig.nullish(),
|
9125
|
+
columnParallel: zColumnParallelConfig.nullish(),
|
9126
|
+
columnPercent: zColumnPercentConfig.nullish(),
|
9127
|
+
bar: zBarConfig.nullish(),
|
9128
|
+
barParallel: zBarParallelConfig.nullish(),
|
9129
|
+
barPercent: zBarPercentConfig.nullish(),
|
9130
|
+
area: zAreaConfig.nullish(),
|
9131
|
+
areaPercent: zAreaPercentConfig.nullish(),
|
9132
|
+
areaRange: zAreaRangeConfig.nullish(),
|
9133
|
+
scatter: zScatterConfig.nullish(),
|
9134
|
+
dualAxis: zDualAxisConfig.nullish(),
|
9135
|
+
rose: zRoseConfig.nullish(),
|
9136
|
+
roseParallel: zRoseParallelConfig.nullish(),
|
9137
|
+
pie: zPieConfig.nullish(),
|
9138
|
+
donut: zDonutConfig.nullish(),
|
9139
|
+
radar: zRadarConfig.nullish(),
|
9140
|
+
funnel: zFunnelConfig.nullish(),
|
9141
|
+
heatmap: zHeatmapConfig.nullish()
|
8946
9142
|
});
|
8947
9143
|
const zAxis = external_zod_namespaceObject.z.object({
|
8948
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8949
|
-
min: external_zod_namespaceObject.z.number().
|
8950
|
-
max: external_zod_namespaceObject.z.number().
|
8951
|
-
nice: external_zod_namespaceObject.z.boolean().default(true).
|
8952
|
-
zero: external_zod_namespaceObject.z.boolean().default(true).
|
8953
|
-
inverse: external_zod_namespaceObject.z.boolean().default(false).
|
8954
|
-
log: external_zod_namespaceObject.z.boolean().default(false).
|
8955
|
-
logBase: external_zod_namespaceObject.z.number().default(10).
|
8956
|
-
labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).
|
8957
|
-
labelAutoHideGap: external_zod_namespaceObject.z.number().default(4).
|
8958
|
-
labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).
|
9144
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9145
|
+
min: external_zod_namespaceObject.z.number().nullish(),
|
9146
|
+
max: external_zod_namespaceObject.z.number().nullish(),
|
9147
|
+
nice: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9148
|
+
zero: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9149
|
+
inverse: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
9150
|
+
log: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
9151
|
+
logBase: external_zod_namespaceObject.z.number().default(10).nullish(),
|
9152
|
+
labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9153
|
+
labelAutoHideGap: external_zod_namespaceObject.z.number().default(4).nullish(),
|
9154
|
+
labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
8959
9155
|
labelAutoRotateAngleRange: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number()).default([
|
8960
9156
|
0,
|
8961
9157
|
-45,
|
8962
9158
|
-90
|
8963
|
-
]).
|
8964
|
-
labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).
|
8965
|
-
labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).
|
9159
|
+
]).nullish(),
|
9160
|
+
labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9161
|
+
labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).nullish(),
|
8966
9162
|
label: external_zod_namespaceObject.z.object({
|
8967
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8968
|
-
labelColor: external_zod_namespaceObject.z.string().default('#797B85').
|
8969
|
-
labelFontSize: external_zod_namespaceObject.z.number().default(12).
|
8970
|
-
labelFontWeight: external_zod_namespaceObject.z.number().default(400).
|
8971
|
-
labelAngle: external_zod_namespaceObject.z.number().default(0).
|
8972
|
-
}).
|
9163
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9164
|
+
labelColor: external_zod_namespaceObject.z.string().default('#797B85').nullish(),
|
9165
|
+
labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
9166
|
+
labelFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
|
9167
|
+
labelAngle: external_zod_namespaceObject.z.number().default(0).nullish()
|
9168
|
+
}).nullish(),
|
8973
9169
|
line: external_zod_namespaceObject.z.object({
|
8974
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8975
|
-
lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').
|
8976
|
-
lineWidth: external_zod_namespaceObject.z.number().default(1).
|
8977
|
-
}).
|
9170
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9171
|
+
lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
9172
|
+
lineWidth: external_zod_namespaceObject.z.number().default(1).nullish()
|
9173
|
+
}).nullish(),
|
8978
9174
|
tick: external_zod_namespaceObject.z.object({
|
8979
|
-
visible: external_zod_namespaceObject.z.boolean().default(true).
|
8980
|
-
tickInside: external_zod_namespaceObject.z.boolean().default(false).
|
8981
|
-
tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').
|
8982
|
-
tickSize: external_zod_namespaceObject.z.number().default(4).
|
8983
|
-
}).
|
9175
|
+
visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9176
|
+
tickInside: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
9177
|
+
tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
|
9178
|
+
tickSize: external_zod_namespaceObject.z.number().default(4).nullish()
|
9179
|
+
}).nullish(),
|
8984
9180
|
title: external_zod_namespaceObject.z.object({
|
8985
|
-
visible: external_zod_namespaceObject.z.boolean().default(false).
|
8986
|
-
titleText: external_zod_namespaceObject.z.string().default('').
|
8987
|
-
titleColor: external_zod_namespaceObject.z.string().default('#646A73').
|
8988
|
-
titleFontSize: external_zod_namespaceObject.z.number().default(12).
|
8989
|
-
titleFontWeight: external_zod_namespaceObject.z.number().default(400).
|
8990
|
-
}).
|
9181
|
+
visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
9182
|
+
titleText: external_zod_namespaceObject.z.string().default('').nullish(),
|
9183
|
+
titleColor: external_zod_namespaceObject.z.string().default('#646A73').nullish(),
|
9184
|
+
titleFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
9185
|
+
titleFontWeight: external_zod_namespaceObject.z.number().default(400).nullish()
|
9186
|
+
}).nullish(),
|
8991
9187
|
grid: external_zod_namespaceObject.z.object({
|
8992
|
-
visible: external_zod_namespaceObject.z.boolean().default(false).
|
8993
|
-
gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').
|
8994
|
-
gridWidth: external_zod_namespaceObject.z.number().default(0.5).
|
8995
|
-
}).
|
9188
|
+
visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
|
9189
|
+
gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
|
9190
|
+
gridWidth: external_zod_namespaceObject.z.number().default(0.5).nullish()
|
9191
|
+
}).nullish()
|
8996
9192
|
});
|
8997
9193
|
const zCustomThemeConfig = external_zod_namespaceObject.z.object({
|
8998
|
-
config: zConfig.
|
9194
|
+
config: zConfig.nullish()
|
8999
9195
|
});
|
9000
|
-
const zCustomTheme = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), zCustomThemeConfig).
|
9196
|
+
const zCustomTheme = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), zCustomThemeConfig).nullish();
|
9001
9197
|
const zTheme = external_zod_namespaceObject.z.string();
|
9002
9198
|
const zSelector = external_zod_namespaceObject.z.union([
|
9003
9199
|
external_zod_namespaceObject.z.string(),
|
@@ -9013,7 +9209,7 @@ const zSelector = external_zod_namespaceObject.z.union([
|
|
9013
9209
|
'>=',
|
9014
9210
|
'<=',
|
9015
9211
|
'between'
|
9016
|
-
]).
|
9212
|
+
]).nullish(),
|
9017
9213
|
op: external_zod_namespaceObject.z["enum"]([
|
9018
9214
|
'=',
|
9019
9215
|
'==',
|
@@ -9023,7 +9219,7 @@ const zSelector = external_zod_namespaceObject.z.union([
|
|
9023
9219
|
'>=',
|
9024
9220
|
'<=',
|
9025
9221
|
'between'
|
9026
|
-
]).
|
9222
|
+
]).nullish(),
|
9027
9223
|
value: external_zod_namespaceObject.z.union([
|
9028
9224
|
external_zod_namespaceObject.z.string(),
|
9029
9225
|
external_zod_namespaceObject.z.number(),
|
@@ -9038,11 +9234,11 @@ const zSelector = external_zod_namespaceObject.z.union([
|
|
9038
9234
|
operator: external_zod_namespaceObject.z["enum"]([
|
9039
9235
|
'in',
|
9040
9236
|
'not in'
|
9041
|
-
]).
|
9237
|
+
]).nullish(),
|
9042
9238
|
op: external_zod_namespaceObject.z["enum"]([
|
9043
9239
|
'in',
|
9044
9240
|
'not in'
|
9045
|
-
]).
|
9241
|
+
]).nullish(),
|
9046
9242
|
value: external_zod_namespaceObject.z.union([
|
9047
9243
|
external_zod_namespaceObject.z.string(),
|
9048
9244
|
external_zod_namespaceObject.z.number(),
|
@@ -9058,103 +9254,103 @@ const zBarStyle = external_zod_namespaceObject.z.object({
|
|
9058
9254
|
selector: external_zod_namespaceObject.z.union([
|
9059
9255
|
zSelector,
|
9060
9256
|
zSelectors
|
9061
|
-
]).
|
9062
|
-
barColor: external_zod_namespaceObject.z.string().
|
9063
|
-
barColorOpacity: external_zod_namespaceObject.z.number().
|
9064
|
-
barBorderColor: external_zod_namespaceObject.z.string().
|
9065
|
-
barBorderWidth: external_zod_namespaceObject.z.number().
|
9257
|
+
]).nullish(),
|
9258
|
+
barColor: external_zod_namespaceObject.z.string().nullish(),
|
9259
|
+
barColorOpacity: external_zod_namespaceObject.z.number().nullish(),
|
9260
|
+
barBorderColor: external_zod_namespaceObject.z.string().nullish(),
|
9261
|
+
barBorderWidth: external_zod_namespaceObject.z.number().nullish(),
|
9066
9262
|
barBorderStyle: external_zod_namespaceObject.z.union([
|
9067
9263
|
external_zod_namespaceObject.z.literal('solid'),
|
9068
9264
|
external_zod_namespaceObject.z.literal('dashed'),
|
9069
9265
|
external_zod_namespaceObject.z.literal('dotted')
|
9070
|
-
]).
|
9266
|
+
]).nullish(),
|
9071
9267
|
barRadius: external_zod_namespaceObject.z.union([
|
9072
9268
|
external_zod_namespaceObject.z.number(),
|
9073
9269
|
external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number())
|
9074
|
-
]).
|
9270
|
+
]).nullish()
|
9075
9271
|
});
|
9076
9272
|
const zPointStyle = external_zod_namespaceObject.z.object({
|
9077
9273
|
selector: external_zod_namespaceObject.z.union([
|
9078
9274
|
zSelector,
|
9079
9275
|
zSelectors
|
9080
|
-
]).
|
9081
|
-
pointSize: external_zod_namespaceObject.z.number().
|
9082
|
-
pointColor: external_zod_namespaceObject.z.string().
|
9083
|
-
pointColorOpacity: external_zod_namespaceObject.z.number().
|
9084
|
-
pointBorderColor: external_zod_namespaceObject.z.string().
|
9085
|
-
pointBorderWidth: external_zod_namespaceObject.z.number().
|
9276
|
+
]).nullish(),
|
9277
|
+
pointSize: external_zod_namespaceObject.z.number().nullish(),
|
9278
|
+
pointColor: external_zod_namespaceObject.z.string().nullish(),
|
9279
|
+
pointColorOpacity: external_zod_namespaceObject.z.number().nullish(),
|
9280
|
+
pointBorderColor: external_zod_namespaceObject.z.string().nullish(),
|
9281
|
+
pointBorderWidth: external_zod_namespaceObject.z.number().nullish(),
|
9086
9282
|
pointBorderStyle: external_zod_namespaceObject.z.union([
|
9087
9283
|
external_zod_namespaceObject.z["enum"]([
|
9088
9284
|
'solid',
|
9089
9285
|
'dashed',
|
9090
9286
|
'dotted'
|
9091
9287
|
])
|
9092
|
-
]).
|
9288
|
+
]).nullish()
|
9093
9289
|
});
|
9094
9290
|
const zLineStyle = external_zod_namespaceObject.z.object({
|
9095
9291
|
selector: external_zod_namespaceObject.z.union([
|
9096
9292
|
zSelector,
|
9097
9293
|
zSelectors
|
9098
|
-
]).
|
9099
|
-
lineSmooth: external_zod_namespaceObject.z.boolean().
|
9100
|
-
lineColor: external_zod_namespaceObject.z.string().
|
9101
|
-
lineColorOpacity: external_zod_namespaceObject.z.number().
|
9102
|
-
lineWidth: external_zod_namespaceObject.z.number().
|
9294
|
+
]).nullish(),
|
9295
|
+
lineSmooth: external_zod_namespaceObject.z.boolean().nullish(),
|
9296
|
+
lineColor: external_zod_namespaceObject.z.string().nullish(),
|
9297
|
+
lineColorOpacity: external_zod_namespaceObject.z.number().nullish(),
|
9298
|
+
lineWidth: external_zod_namespaceObject.z.number().nullish(),
|
9103
9299
|
lineStyle: external_zod_namespaceObject.z.union([
|
9104
9300
|
external_zod_namespaceObject.z["enum"]([
|
9105
9301
|
'solid',
|
9106
9302
|
'dashed',
|
9107
9303
|
'dotted'
|
9108
9304
|
])
|
9109
|
-
]).
|
9305
|
+
]).nullish()
|
9110
9306
|
});
|
9111
9307
|
const zAreaStyle = external_zod_namespaceObject.z.object({
|
9112
9308
|
selector: external_zod_namespaceObject.z.union([
|
9113
9309
|
zSelector,
|
9114
9310
|
zSelectors
|
9115
|
-
]).
|
9116
|
-
areaColor: external_zod_namespaceObject.z.string().
|
9117
|
-
areaColorOpacity: external_zod_namespaceObject.z.number().
|
9311
|
+
]).nullish(),
|
9312
|
+
areaColor: external_zod_namespaceObject.z.string().nullish(),
|
9313
|
+
areaColorOpacity: external_zod_namespaceObject.z.number().nullish()
|
9118
9314
|
});
|
9119
9315
|
const zMarkStyle = external_zod_namespaceObject.z.object({
|
9120
|
-
barStyle: zBarStyle.or(external_zod_namespaceObject.z.array(zBarStyle)).
|
9121
|
-
pointStyle: zPointStyle.or(external_zod_namespaceObject.z.array(zPointStyle)).
|
9122
|
-
lineStyle: zLineStyle.or(external_zod_namespaceObject.z.array(zLineStyle)).
|
9123
|
-
areaStyle: zAreaStyle.or(external_zod_namespaceObject.z.array(zAreaStyle)).
|
9316
|
+
barStyle: zBarStyle.or(external_zod_namespaceObject.z.array(zBarStyle)).nullish(),
|
9317
|
+
pointStyle: zPointStyle.or(external_zod_namespaceObject.z.array(zPointStyle)).nullish(),
|
9318
|
+
lineStyle: zLineStyle.or(external_zod_namespaceObject.z.array(zLineStyle)).nullish(),
|
9319
|
+
areaStyle: zAreaStyle.or(external_zod_namespaceObject.z.array(zAreaStyle)).nullish()
|
9124
9320
|
});
|
9125
9321
|
const zAnnotationPoint = external_zod_namespaceObject.z.object({
|
9126
9322
|
selector: external_zod_namespaceObject.z.union([
|
9127
9323
|
zSelector,
|
9128
9324
|
zSelectors
|
9129
9325
|
]),
|
9130
|
-
text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).
|
9131
|
-
textColor: external_zod_namespaceObject.z.string().default('#ffffff').
|
9132
|
-
textFontSize: external_zod_namespaceObject.z.number().default(12).
|
9133
|
-
textFontWeight: external_zod_namespaceObject.z.number().default(400).
|
9326
|
+
text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
|
9327
|
+
textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
|
9328
|
+
textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
9329
|
+
textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
|
9134
9330
|
textAlign: external_zod_namespaceObject.z["enum"]([
|
9135
9331
|
'left',
|
9136
9332
|
'right',
|
9137
9333
|
'center'
|
9138
|
-
]).default('center').
|
9334
|
+
]).default('center').nullish(),
|
9139
9335
|
textBaseline: external_zod_namespaceObject.z["enum"]([
|
9140
9336
|
'top',
|
9141
9337
|
'middle',
|
9142
9338
|
'bottom'
|
9143
|
-
]).default('middle').
|
9144
|
-
|
9145
|
-
|
9146
|
-
|
9147
|
-
|
9148
|
-
|
9149
|
-
|
9150
|
-
offsetY: external_zod_namespaceObject.z.number().default(0).
|
9151
|
-
offsetX: external_zod_namespaceObject.z.number().default(0).
|
9339
|
+
]).default('middle').nullish(),
|
9340
|
+
textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9341
|
+
textBackgroundColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
|
9342
|
+
textBackgroundBorderColor: external_zod_namespaceObject.z.string().nullish(),
|
9343
|
+
textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
|
9344
|
+
textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
|
9345
|
+
textBackgroundPadding: external_zod_namespaceObject.z.number().nullish(),
|
9346
|
+
offsetY: external_zod_namespaceObject.z.number().default(0).nullish(),
|
9347
|
+
offsetX: external_zod_namespaceObject.z.number().default(0).nullish()
|
9152
9348
|
});
|
9153
9349
|
const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
|
9154
9350
|
selector: external_zod_namespaceObject.z.union([
|
9155
9351
|
zSelector,
|
9156
9352
|
zSelectors
|
9157
|
-
]).
|
9353
|
+
]).nullish(),
|
9158
9354
|
xValue: external_zod_namespaceObject.z.union([
|
9159
9355
|
external_zod_namespaceObject.z.number(),
|
9160
9356
|
external_zod_namespaceObject.z.string(),
|
@@ -9162,8 +9358,8 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
|
|
9162
9358
|
external_zod_namespaceObject.z.number(),
|
9163
9359
|
external_zod_namespaceObject.z.string()
|
9164
9360
|
]))
|
9165
|
-
]).
|
9166
|
-
text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).
|
9361
|
+
]).nullish(),
|
9362
|
+
text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
|
9167
9363
|
textPosition: external_zod_namespaceObject.z["enum"]([
|
9168
9364
|
'outsideStart',
|
9169
9365
|
'outsideEnd',
|
@@ -9171,34 +9367,34 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
|
|
9171
9367
|
'insideStart',
|
9172
9368
|
'insideMiddle',
|
9173
9369
|
'insideEnd'
|
9174
|
-
]).default('insideEnd').
|
9175
|
-
textColor: external_zod_namespaceObject.z.string().default('#ffffff').
|
9176
|
-
textFontSize: external_zod_namespaceObject.z.number().default(12).
|
9177
|
-
textFontWeight: external_zod_namespaceObject.z.number().default(400).
|
9370
|
+
]).default('insideEnd').nullish(),
|
9371
|
+
textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
|
9372
|
+
textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
9373
|
+
textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
|
9178
9374
|
textAlign: external_zod_namespaceObject.z["enum"]([
|
9179
9375
|
'left',
|
9180
9376
|
'right',
|
9181
9377
|
'center'
|
9182
|
-
]).default('right').
|
9378
|
+
]).default('right').nullish(),
|
9183
9379
|
textBaseline: external_zod_namespaceObject.z["enum"]([
|
9184
9380
|
'top',
|
9185
9381
|
'middle',
|
9186
9382
|
'bottom'
|
9187
|
-
]).default('top').
|
9188
|
-
|
9189
|
-
|
9190
|
-
|
9383
|
+
]).default('top').nullish(),
|
9384
|
+
textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9385
|
+
textBackgroundColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
|
9386
|
+
textBackgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
|
9387
|
+
textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
|
9388
|
+
textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
|
9389
|
+
textBackgroundPadding: external_zod_namespaceObject.z.number().default(2).nullish(),
|
9390
|
+
lineVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9391
|
+
lineColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
|
9392
|
+
lineWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
|
9191
9393
|
lineStyle: external_zod_namespaceObject.z.union([
|
9192
9394
|
external_zod_namespaceObject.z.literal('solid'),
|
9193
9395
|
external_zod_namespaceObject.z.literal('dashed'),
|
9194
9396
|
external_zod_namespaceObject.z.literal('dotted')
|
9195
|
-
]).default('dashed').
|
9196
|
-
backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
|
9197
|
-
backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
|
9198
|
-
backgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
|
9199
|
-
backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
|
9200
|
-
backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
|
9201
|
-
backgroundPadding: external_zod_namespaceObject.z.number().default(2).optional(),
|
9397
|
+
]).default('dashed').nullish(),
|
9202
9398
|
offsetX: external_zod_namespaceObject.z.number().default(0),
|
9203
9399
|
offsetY: external_zod_namespaceObject.z.number().default(0)
|
9204
9400
|
});
|
@@ -9206,7 +9402,7 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
|
|
9206
9402
|
selector: external_zod_namespaceObject.z.union([
|
9207
9403
|
zSelector,
|
9208
9404
|
zSelectors
|
9209
|
-
]).
|
9405
|
+
]).nullish(),
|
9210
9406
|
yValue: external_zod_namespaceObject.z.union([
|
9211
9407
|
external_zod_namespaceObject.z.number(),
|
9212
9408
|
external_zod_namespaceObject.z.string(),
|
@@ -9214,8 +9410,8 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
|
|
9214
9410
|
external_zod_namespaceObject.z.number(),
|
9215
9411
|
external_zod_namespaceObject.z.string()
|
9216
9412
|
]))
|
9217
|
-
]).
|
9218
|
-
text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).
|
9413
|
+
]).nullish(),
|
9414
|
+
text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
|
9219
9415
|
textPosition: external_zod_namespaceObject.z["enum"]([
|
9220
9416
|
'outsideStart',
|
9221
9417
|
'outsideEnd',
|
@@ -9223,34 +9419,34 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
|
|
9223
9419
|
'insideStart',
|
9224
9420
|
'insideMiddle',
|
9225
9421
|
'insideEnd'
|
9226
|
-
]).default('insideEnd').
|
9227
|
-
textColor: external_zod_namespaceObject.z.string().default('#ffffff').
|
9228
|
-
textFontSize: external_zod_namespaceObject.z.number().default(12).
|
9229
|
-
textFontWeight: external_zod_namespaceObject.z.number().default(400).
|
9422
|
+
]).default('insideEnd').nullish(),
|
9423
|
+
textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
|
9424
|
+
textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
9425
|
+
textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
|
9230
9426
|
textAlign: external_zod_namespaceObject.z["enum"]([
|
9231
9427
|
'left',
|
9232
9428
|
'right',
|
9233
9429
|
'center'
|
9234
|
-
]).default('right').
|
9430
|
+
]).default('right').nullish(),
|
9235
9431
|
textBaseline: external_zod_namespaceObject.z["enum"]([
|
9236
9432
|
'top',
|
9237
9433
|
'middle',
|
9238
9434
|
'bottom'
|
9239
|
-
]).default('top').
|
9240
|
-
lineVisible: external_zod_namespaceObject.z.boolean().default(true).
|
9241
|
-
lineColor: external_zod_namespaceObject.z.string().default('#212121').
|
9242
|
-
lineWidth: external_zod_namespaceObject.z.number().default(1).
|
9435
|
+
]).default('top').nullish(),
|
9436
|
+
lineVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9437
|
+
lineColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
|
9438
|
+
lineWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
|
9243
9439
|
lineStyle: external_zod_namespaceObject.z.union([
|
9244
9440
|
external_zod_namespaceObject.z.literal('solid'),
|
9245
9441
|
external_zod_namespaceObject.z.literal('dashed'),
|
9246
9442
|
external_zod_namespaceObject.z.literal('dotted')
|
9247
|
-
]).default('dashed').
|
9248
|
-
|
9249
|
-
|
9250
|
-
|
9251
|
-
|
9252
|
-
|
9253
|
-
|
9443
|
+
]).default('dashed').nullish(),
|
9444
|
+
textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9445
|
+
textBackgroundColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
|
9446
|
+
textBackgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
|
9447
|
+
textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
|
9448
|
+
textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
|
9449
|
+
textBackgroundPadding: external_zod_namespaceObject.z.number().default(2).nullish(),
|
9254
9450
|
offsetX: external_zod_namespaceObject.z.number().default(0),
|
9255
9451
|
offsetY: external_zod_namespaceObject.z.number().default(0)
|
9256
9452
|
});
|
@@ -9268,60 +9464,60 @@ const zAnnotationArea = external_zod_namespaceObject.z.object({
|
|
9268
9464
|
'bottomRight',
|
9269
9465
|
'left',
|
9270
9466
|
'right'
|
9271
|
-
]).default('top').
|
9272
|
-
text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).
|
9273
|
-
textColor: external_zod_namespaceObject.z.string().default('#ffffff').
|
9274
|
-
textFontSize: external_zod_namespaceObject.z.number().default(12).
|
9275
|
-
textFontWeight: external_zod_namespaceObject.z.number().default(400).
|
9467
|
+
]).default('top').nullish(),
|
9468
|
+
text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
|
9469
|
+
textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
|
9470
|
+
textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
|
9471
|
+
textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
|
9276
9472
|
textAlign: external_zod_namespaceObject.z["enum"]([
|
9277
9473
|
'left',
|
9278
9474
|
'right',
|
9279
9475
|
'center'
|
9280
|
-
]).default('center').
|
9476
|
+
]).default('center').nullish(),
|
9281
9477
|
textBaseline: external_zod_namespaceObject.z["enum"]([
|
9282
9478
|
'top',
|
9283
9479
|
'middle',
|
9284
9480
|
'bottom'
|
9285
|
-
]).default('top').
|
9286
|
-
|
9287
|
-
|
9288
|
-
|
9289
|
-
|
9290
|
-
|
9291
|
-
|
9292
|
-
areaColor: external_zod_namespaceObject.z.string().default('#888888').
|
9293
|
-
areaColorOpacity: external_zod_namespaceObject.z.number().default(0.15).
|
9294
|
-
areaBorderColor: external_zod_namespaceObject.z.string().default('#888888').
|
9295
|
-
areaBorderWidth: external_zod_namespaceObject.z.number().default(1).
|
9296
|
-
areaBorderRadius: external_zod_namespaceObject.z.number().default(4).
|
9297
|
-
outerPadding: external_zod_namespaceObject.z.number().default(4).
|
9298
|
-
offsetX: external_zod_namespaceObject.z.number().default(0).
|
9299
|
-
offsetY: external_zod_namespaceObject.z.number().default(0).
|
9481
|
+
]).default('top').nullish(),
|
9482
|
+
textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
|
9483
|
+
textBackgroundColor: external_zod_namespaceObject.z.string().default('#191d24').nullish(),
|
9484
|
+
textBackgroundBorderColor: external_zod_namespaceObject.z.string().default('#191d24').nullish(),
|
9485
|
+
textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
|
9486
|
+
textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
|
9487
|
+
textBackgroundPadding: external_zod_namespaceObject.z.number().default(4).nullish(),
|
9488
|
+
areaColor: external_zod_namespaceObject.z.string().default('#888888').nullish(),
|
9489
|
+
areaColorOpacity: external_zod_namespaceObject.z.number().default(0.15).nullish(),
|
9490
|
+
areaBorderColor: external_zod_namespaceObject.z.string().default('#888888').nullish(),
|
9491
|
+
areaBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
|
9492
|
+
areaBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
|
9493
|
+
outerPadding: external_zod_namespaceObject.z.number().default(4).nullish(),
|
9494
|
+
offsetX: external_zod_namespaceObject.z.number().default(0).nullish(),
|
9495
|
+
offsetY: external_zod_namespaceObject.z.number().default(0).nullish()
|
9300
9496
|
});
|
9301
9497
|
const zAnnotation = external_zod_namespaceObject.z.object({
|
9302
|
-
annotationPoint: zAnnotationPoint.or(external_zod_namespaceObject.z.array(zAnnotationPoint)).
|
9303
|
-
annotationVerticalLine: zAnnotationVerticalLine.or(external_zod_namespaceObject.z.array(zAnnotationVerticalLine)).
|
9304
|
-
annotationHorizontalLine: zAnnotationHorizontalLine.or(external_zod_namespaceObject.z.array(zAnnotationHorizontalLine)).
|
9305
|
-
annotationArea: zAnnotationArea.or(external_zod_namespaceObject.z.array(zAnnotationArea)).
|
9498
|
+
annotationPoint: zAnnotationPoint.or(external_zod_namespaceObject.z.array(zAnnotationPoint)).nullish(),
|
9499
|
+
annotationVerticalLine: zAnnotationVerticalLine.or(external_zod_namespaceObject.z.array(zAnnotationVerticalLine)).nullish(),
|
9500
|
+
annotationHorizontalLine: zAnnotationHorizontalLine.or(external_zod_namespaceObject.z.array(zAnnotationHorizontalLine)).nullish(),
|
9501
|
+
annotationArea: zAnnotationArea.or(external_zod_namespaceObject.z.array(zAnnotationArea)).nullish()
|
9306
9502
|
});
|
9307
9503
|
const zSort = external_zod_namespaceObject.z.object({
|
9308
9504
|
order: external_zod_namespaceObject.z["enum"]([
|
9309
9505
|
'asc',
|
9310
9506
|
'desc'
|
9311
9507
|
]).default('asc'),
|
9312
|
-
orderBy: external_zod_namespaceObject.z.string().
|
9313
|
-
customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).
|
9508
|
+
orderBy: external_zod_namespaceObject.z.string().nullish(),
|
9509
|
+
customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).nullish()
|
9314
9510
|
});
|
9315
9511
|
const zSortLegend = external_zod_namespaceObject.z.object({
|
9316
9512
|
order: external_zod_namespaceObject.z["enum"]([
|
9317
9513
|
'asc',
|
9318
9514
|
'desc'
|
9319
9515
|
]).default('asc'),
|
9320
|
-
orderBy: external_zod_namespaceObject.z.string().
|
9321
|
-
customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).
|
9516
|
+
orderBy: external_zod_namespaceObject.z.string().nullish(),
|
9517
|
+
customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).nullish()
|
9322
9518
|
});
|
9323
9519
|
const zAnalysis = external_zod_namespaceObject.z.object({
|
9324
|
-
orderMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).
|
9520
|
+
orderMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish()
|
9325
9521
|
});
|
9326
9522
|
const zLocale = external_zod_namespaceObject.z["enum"]([
|
9327
9523
|
'zh-CN',
|
@@ -9329,384 +9525,410 @@ const zLocale = external_zod_namespaceObject.z["enum"]([
|
|
9329
9525
|
]).default('zh-CN');
|
9330
9526
|
const zTable = external_zod_namespaceObject.z.object({
|
9331
9527
|
chartType: external_zod_namespaceObject.z.literal('table'),
|
9332
|
-
dataset: zDataset.
|
9333
|
-
dimensions: zDimensions.
|
9334
|
-
measures: zMeasureTree.
|
9335
|
-
backgroundColor: zBackgroundColor.
|
9336
|
-
|
9337
|
-
|
9528
|
+
dataset: zDataset.nullish(),
|
9529
|
+
dimensions: zDimensions.nullish(),
|
9530
|
+
measures: zMeasureTree.nullish(),
|
9531
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9532
|
+
borderColor: external_zod_namespaceObject.z.string().nullish(),
|
9533
|
+
bodyFontSize: external_zod_namespaceObject.z.number().nullish(),
|
9534
|
+
bodyFontColor: external_zod_namespaceObject.z.string().nullish(),
|
9535
|
+
bodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9536
|
+
hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9537
|
+
hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9538
|
+
headerFontSize: external_zod_namespaceObject.z.number().nullish(),
|
9539
|
+
headerFontColor: external_zod_namespaceObject.z.string().nullish(),
|
9540
|
+
headerBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9541
|
+
hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9542
|
+
hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9543
|
+
selectedBorderColor: external_zod_namespaceObject.z.string().nullish(),
|
9544
|
+
selectedBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9545
|
+
theme: zTheme.nullish(),
|
9546
|
+
locale: zLocale.nullish()
|
9338
9547
|
});
|
9339
9548
|
const zPivotTable = external_zod_namespaceObject.z.object({
|
9340
9549
|
chartType: external_zod_namespaceObject.z.literal('pivotTable'),
|
9341
|
-
dataset: zDataset.
|
9342
|
-
dimensions: zDimensions.
|
9343
|
-
measures: zMeasures.
|
9344
|
-
backgroundColor: zBackgroundColor.
|
9345
|
-
|
9346
|
-
|
9550
|
+
dataset: zDataset.nullish(),
|
9551
|
+
dimensions: zDimensions.nullish(),
|
9552
|
+
measures: zMeasures.nullish(),
|
9553
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9554
|
+
borderColor: external_zod_namespaceObject.z.string().nullish(),
|
9555
|
+
bodyFontSize: external_zod_namespaceObject.z.number().nullish(),
|
9556
|
+
bodyFontColor: external_zod_namespaceObject.z.string().nullish(),
|
9557
|
+
bodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9558
|
+
hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9559
|
+
hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9560
|
+
headerFontSize: external_zod_namespaceObject.z.number().nullish(),
|
9561
|
+
headerFontColor: external_zod_namespaceObject.z.string().nullish(),
|
9562
|
+
headerBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9563
|
+
hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9564
|
+
hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9565
|
+
selectedBorderColor: external_zod_namespaceObject.z.string().nullish(),
|
9566
|
+
selectedBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
|
9567
|
+
theme: zTheme.nullish(),
|
9568
|
+
locale: zLocale.nullish()
|
9347
9569
|
});
|
9348
9570
|
const zLine = external_zod_namespaceObject.z.object({
|
9349
9571
|
chartType: external_zod_namespaceObject.z.literal('line'),
|
9350
|
-
dataset: zDataset.
|
9351
|
-
dimensions: zDimensions.
|
9352
|
-
measures: zMeasureTree.
|
9353
|
-
backgroundColor: zBackgroundColor.
|
9354
|
-
color: zColor.
|
9355
|
-
label: zLabel.
|
9356
|
-
legend: zLegend.
|
9357
|
-
tooltip: zTooltip.
|
9358
|
-
xAxis: zXBandAxis.
|
9359
|
-
yAxis: zYLinearAxis.
|
9360
|
-
crosshairLine: zCrosshairLine.
|
9361
|
-
sort: zSort.
|
9362
|
-
sortLegend: zSortLegend.
|
9363
|
-
theme: zTheme.
|
9364
|
-
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).
|
9365
|
-
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).
|
9366
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9367
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9368
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9369
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9370
|
-
locale: zLocale.
|
9572
|
+
dataset: zDataset.nullish(),
|
9573
|
+
dimensions: zDimensions.nullish(),
|
9574
|
+
measures: zMeasureTree.nullish(),
|
9575
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9576
|
+
color: zColor.nullish(),
|
9577
|
+
label: zLabel.nullish(),
|
9578
|
+
legend: zLegend.nullish(),
|
9579
|
+
tooltip: zTooltip.nullish(),
|
9580
|
+
xAxis: zXBandAxis.nullish(),
|
9581
|
+
yAxis: zYLinearAxis.nullish(),
|
9582
|
+
crosshairLine: zCrosshairLine.nullish(),
|
9583
|
+
sort: zSort.nullish(),
|
9584
|
+
sortLegend: zSortLegend.nullish(),
|
9585
|
+
theme: zTheme.nullish(),
|
9586
|
+
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
|
9587
|
+
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
|
9588
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9589
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9590
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9591
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9592
|
+
locale: zLocale.nullish()
|
9371
9593
|
});
|
9372
9594
|
const zColumn = external_zod_namespaceObject.z.object({
|
9373
9595
|
chartType: external_zod_namespaceObject.z.literal('column'),
|
9374
|
-
dataset: zDataset.
|
9375
|
-
dimensions: zDimensions.
|
9376
|
-
measures: zMeasureTree.
|
9377
|
-
backgroundColor: zBackgroundColor.
|
9378
|
-
color: zColor.
|
9379
|
-
label: zLabel.
|
9380
|
-
legend: zLegend.
|
9381
|
-
tooltip: zTooltip.
|
9382
|
-
xAxis: zXBandAxis.
|
9383
|
-
yAxis: zYLinearAxis.
|
9384
|
-
crosshairRect: zCrosshairRect.
|
9385
|
-
stackCornerRadius: zStackCornerRadius.
|
9386
|
-
theme: zTheme.
|
9387
|
-
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).
|
9388
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9389
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9390
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9391
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9392
|
-
locale: zLocale.
|
9596
|
+
dataset: zDataset.nullish(),
|
9597
|
+
dimensions: zDimensions.nullish(),
|
9598
|
+
measures: zMeasureTree.nullish(),
|
9599
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9600
|
+
color: zColor.nullish(),
|
9601
|
+
label: zLabel.nullish(),
|
9602
|
+
legend: zLegend.nullish(),
|
9603
|
+
tooltip: zTooltip.nullish(),
|
9604
|
+
xAxis: zXBandAxis.nullish(),
|
9605
|
+
yAxis: zYLinearAxis.nullish(),
|
9606
|
+
crosshairRect: zCrosshairRect.nullish(),
|
9607
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
9608
|
+
theme: zTheme.nullish(),
|
9609
|
+
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
|
9610
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9611
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9612
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9613
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9614
|
+
locale: zLocale.nullish()
|
9393
9615
|
});
|
9394
9616
|
const zColumnParallel = external_zod_namespaceObject.z.object({
|
9395
9617
|
chartType: external_zod_namespaceObject.z.literal('columnParallel'),
|
9396
|
-
dataset: zDataset.
|
9397
|
-
dimensions: zDimensions.
|
9398
|
-
measures: zMeasureTree.
|
9399
|
-
backgroundColor: zBackgroundColor.
|
9400
|
-
color: zColor.
|
9401
|
-
label: zLabel.
|
9402
|
-
legend: zLegend.
|
9403
|
-
tooltip: zTooltip.
|
9404
|
-
xAxis: zXBandAxis.
|
9405
|
-
yAxis: zYLinearAxis.
|
9406
|
-
crosshairRect: zCrosshairRect.
|
9407
|
-
stackCornerRadius: zStackCornerRadius.
|
9408
|
-
theme: zTheme.
|
9409
|
-
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).
|
9410
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9411
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9412
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9413
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9414
|
-
locale: zLocale.
|
9618
|
+
dataset: zDataset.nullish(),
|
9619
|
+
dimensions: zDimensions.nullish(),
|
9620
|
+
measures: zMeasureTree.nullish(),
|
9621
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9622
|
+
color: zColor.nullish(),
|
9623
|
+
label: zLabel.nullish(),
|
9624
|
+
legend: zLegend.nullish(),
|
9625
|
+
tooltip: zTooltip.nullish(),
|
9626
|
+
xAxis: zXBandAxis.nullish(),
|
9627
|
+
yAxis: zYLinearAxis.nullish(),
|
9628
|
+
crosshairRect: zCrosshairRect.nullish(),
|
9629
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
9630
|
+
theme: zTheme.nullish(),
|
9631
|
+
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
|
9632
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9633
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9634
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9635
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9636
|
+
locale: zLocale.nullish()
|
9415
9637
|
});
|
9416
9638
|
const zColumnPercent = external_zod_namespaceObject.z.object({
|
9417
9639
|
chartType: external_zod_namespaceObject.z.literal('columnPercent'),
|
9418
|
-
dataset: zDataset.
|
9419
|
-
dimensions: zDimensions.
|
9420
|
-
measures: zMeasureTree.
|
9421
|
-
backgroundColor: zBackgroundColor.
|
9422
|
-
color: zColor.
|
9423
|
-
label: zLabel.
|
9424
|
-
legend: zLegend.
|
9425
|
-
tooltip: zTooltip.
|
9426
|
-
xAxis: zXBandAxis.
|
9427
|
-
yAxis: zYLinearAxis.
|
9428
|
-
crosshairRect: zCrosshairRect.
|
9429
|
-
stackCornerRadius: zStackCornerRadius.
|
9430
|
-
theme: zTheme.
|
9431
|
-
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).
|
9432
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9433
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9434
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9435
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9436
|
-
locale: zLocale.
|
9640
|
+
dataset: zDataset.nullish(),
|
9641
|
+
dimensions: zDimensions.nullish(),
|
9642
|
+
measures: zMeasureTree.nullish(),
|
9643
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9644
|
+
color: zColor.nullish(),
|
9645
|
+
label: zLabel.nullish(),
|
9646
|
+
legend: zLegend.nullish(),
|
9647
|
+
tooltip: zTooltip.nullish(),
|
9648
|
+
xAxis: zXBandAxis.nullish(),
|
9649
|
+
yAxis: zYLinearAxis.nullish(),
|
9650
|
+
crosshairRect: zCrosshairRect.nullish(),
|
9651
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
9652
|
+
theme: zTheme.nullish(),
|
9653
|
+
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
|
9654
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9655
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9656
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9657
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9658
|
+
locale: zLocale.nullish()
|
9437
9659
|
});
|
9438
9660
|
const zBar = external_zod_namespaceObject.z.object({
|
9439
9661
|
chartType: external_zod_namespaceObject.z.literal('bar'),
|
9440
|
-
dataset: zDataset.
|
9441
|
-
dimensions: zDimensions.
|
9442
|
-
measures: zMeasureTree.
|
9443
|
-
backgroundColor: zBackgroundColor.
|
9444
|
-
color: zColor.
|
9445
|
-
label: zLabel.
|
9446
|
-
legend: zLegend.
|
9447
|
-
tooltip: zTooltip.
|
9448
|
-
xAxis: zXLinearAxis.
|
9449
|
-
yAxis: zYBandAxis.
|
9450
|
-
crosshairRect: zCrosshairRect.
|
9451
|
-
stackCornerRadius: zStackCornerRadius.
|
9452
|
-
theme: zTheme.
|
9453
|
-
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).
|
9454
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9455
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9456
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9457
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9458
|
-
locale: zLocale.
|
9662
|
+
dataset: zDataset.nullish(),
|
9663
|
+
dimensions: zDimensions.nullish(),
|
9664
|
+
measures: zMeasureTree.nullish(),
|
9665
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9666
|
+
color: zColor.nullish(),
|
9667
|
+
label: zLabel.nullish(),
|
9668
|
+
legend: zLegend.nullish(),
|
9669
|
+
tooltip: zTooltip.nullish(),
|
9670
|
+
xAxis: zXLinearAxis.nullish(),
|
9671
|
+
yAxis: zYBandAxis.nullish(),
|
9672
|
+
crosshairRect: zCrosshairRect.nullish(),
|
9673
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
9674
|
+
theme: zTheme.nullish(),
|
9675
|
+
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
|
9676
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9677
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9678
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9679
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9680
|
+
locale: zLocale.nullish()
|
9459
9681
|
});
|
9460
9682
|
const zBarParallel = external_zod_namespaceObject.z.object({
|
9461
9683
|
chartType: external_zod_namespaceObject.z.literal('barParallel'),
|
9462
|
-
dataset: zDataset.
|
9463
|
-
dimensions: zDimensions.
|
9464
|
-
measures: zMeasureTree.
|
9465
|
-
backgroundColor: zBackgroundColor.
|
9466
|
-
color: zColor.
|
9467
|
-
label: zLabel.
|
9468
|
-
legend: zLegend.
|
9469
|
-
tooltip: zTooltip.
|
9470
|
-
xAxis: zXLinearAxis.
|
9471
|
-
yAxis: zYBandAxis.
|
9472
|
-
crosshairRect: zCrosshairRect.
|
9473
|
-
stackCornerRadius: zStackCornerRadius.
|
9474
|
-
theme: zTheme.
|
9475
|
-
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).
|
9476
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9477
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9478
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9479
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9480
|
-
locale: zLocale.
|
9684
|
+
dataset: zDataset.nullish(),
|
9685
|
+
dimensions: zDimensions.nullish(),
|
9686
|
+
measures: zMeasureTree.nullish(),
|
9687
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9688
|
+
color: zColor.nullish(),
|
9689
|
+
label: zLabel.nullish(),
|
9690
|
+
legend: zLegend.nullish(),
|
9691
|
+
tooltip: zTooltip.nullish(),
|
9692
|
+
xAxis: zXLinearAxis.nullish(),
|
9693
|
+
yAxis: zYBandAxis.nullish(),
|
9694
|
+
crosshairRect: zCrosshairRect.nullish(),
|
9695
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
9696
|
+
theme: zTheme.nullish(),
|
9697
|
+
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
|
9698
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9699
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9700
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9701
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9702
|
+
locale: zLocale.nullish()
|
9481
9703
|
});
|
9482
9704
|
const zBarPercent = external_zod_namespaceObject.z.object({
|
9483
9705
|
chartType: external_zod_namespaceObject.z.literal('barPercent'),
|
9484
|
-
dataset: zDataset.
|
9485
|
-
dimensions: zDimensions.
|
9486
|
-
measures: zMeasureTree.
|
9487
|
-
backgroundColor: zBackgroundColor.
|
9488
|
-
color: zColor.
|
9489
|
-
label: zLabel.
|
9490
|
-
legend: zLegend.
|
9491
|
-
tooltip: zTooltip.
|
9492
|
-
xAxis: zXLinearAxis.
|
9493
|
-
yAxis: zYBandAxis.
|
9494
|
-
crosshairRect: zCrosshairRect.
|
9495
|
-
stackCornerRadius: zStackCornerRadius.
|
9496
|
-
theme: zTheme.
|
9497
|
-
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).
|
9498
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9499
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9500
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9501
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9502
|
-
locale: zLocale.
|
9706
|
+
dataset: zDataset.nullish(),
|
9707
|
+
dimensions: zDimensions.nullish(),
|
9708
|
+
measures: zMeasureTree.nullish(),
|
9709
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9710
|
+
color: zColor.nullish(),
|
9711
|
+
label: zLabel.nullish(),
|
9712
|
+
legend: zLegend.nullish(),
|
9713
|
+
tooltip: zTooltip.nullish(),
|
9714
|
+
xAxis: zXLinearAxis.nullish(),
|
9715
|
+
yAxis: zYBandAxis.nullish(),
|
9716
|
+
crosshairRect: zCrosshairRect.nullish(),
|
9717
|
+
stackCornerRadius: zStackCornerRadius.nullish(),
|
9718
|
+
theme: zTheme.nullish(),
|
9719
|
+
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
|
9720
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9721
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9722
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9723
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9724
|
+
locale: zLocale.nullish()
|
9503
9725
|
});
|
9504
9726
|
const zArea = external_zod_namespaceObject.z.object({
|
9505
9727
|
chartType: external_zod_namespaceObject.z.literal('area'),
|
9506
|
-
dataset: zDataset.
|
9507
|
-
dimensions: zDimensions.
|
9508
|
-
measures: zMeasureTree.
|
9509
|
-
backgroundColor: zBackgroundColor.
|
9510
|
-
color: zColor.
|
9511
|
-
label: zLabel.
|
9512
|
-
legend: zLegend.
|
9513
|
-
tooltip: zTooltip.
|
9514
|
-
xAxis: zXBandAxis.
|
9515
|
-
yAxis: zYLinearAxis.
|
9516
|
-
crosshairLine: zCrosshairLine.
|
9517
|
-
theme: zTheme.
|
9518
|
-
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).
|
9519
|
-
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).
|
9520
|
-
areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).
|
9521
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9522
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9523
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9524
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9525
|
-
locale: zLocale.
|
9728
|
+
dataset: zDataset.nullish(),
|
9729
|
+
dimensions: zDimensions.nullish(),
|
9730
|
+
measures: zMeasureTree.nullish(),
|
9731
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9732
|
+
color: zColor.nullish(),
|
9733
|
+
label: zLabel.nullish(),
|
9734
|
+
legend: zLegend.nullish(),
|
9735
|
+
tooltip: zTooltip.nullish(),
|
9736
|
+
xAxis: zXBandAxis.nullish(),
|
9737
|
+
yAxis: zYLinearAxis.nullish(),
|
9738
|
+
crosshairLine: zCrosshairLine.nullish(),
|
9739
|
+
theme: zTheme.nullish(),
|
9740
|
+
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
|
9741
|
+
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
|
9742
|
+
areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
|
9743
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9744
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9745
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9746
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9747
|
+
locale: zLocale.nullish()
|
9526
9748
|
});
|
9527
9749
|
const zAreaPercent = external_zod_namespaceObject.z.object({
|
9528
9750
|
chartType: external_zod_namespaceObject.z.literal('areaPercent'),
|
9529
|
-
dataset: zDataset.
|
9530
|
-
dimensions: zDimensions.
|
9531
|
-
measures: zMeasureTree.
|
9532
|
-
backgroundColor: zBackgroundColor.
|
9533
|
-
color: zColor.
|
9534
|
-
label: zLabel.
|
9535
|
-
legend: zLegend.
|
9536
|
-
tooltip: zTooltip.
|
9537
|
-
xAxis: zXBandAxis.
|
9538
|
-
yAxis: zYLinearAxis.
|
9539
|
-
crosshairLine: zCrosshairLine.
|
9540
|
-
theme: zTheme.
|
9541
|
-
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).
|
9542
|
-
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).
|
9543
|
-
areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).
|
9544
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9545
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9546
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9547
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9548
|
-
locale: zLocale.
|
9751
|
+
dataset: zDataset.nullish(),
|
9752
|
+
dimensions: zDimensions.nullish(),
|
9753
|
+
measures: zMeasureTree.nullish(),
|
9754
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9755
|
+
color: zColor.nullish(),
|
9756
|
+
label: zLabel.nullish(),
|
9757
|
+
legend: zLegend.nullish(),
|
9758
|
+
tooltip: zTooltip.nullish(),
|
9759
|
+
xAxis: zXBandAxis.nullish(),
|
9760
|
+
yAxis: zYLinearAxis.nullish(),
|
9761
|
+
crosshairLine: zCrosshairLine.nullish(),
|
9762
|
+
theme: zTheme.nullish(),
|
9763
|
+
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
|
9764
|
+
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
|
9765
|
+
areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
|
9766
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9767
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9768
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9769
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9770
|
+
locale: zLocale.nullish()
|
9549
9771
|
});
|
9550
9772
|
const zAreaRange = external_zod_namespaceObject.z.object({
|
9551
9773
|
chartType: external_zod_namespaceObject.z.literal('areaRange'),
|
9552
|
-
dataset: zDataset.
|
9553
|
-
dimensions: zDimensions.
|
9554
|
-
measures: zMeasureTree.
|
9555
|
-
backgroundColor: zBackgroundColor.
|
9556
|
-
label: zLabel.
|
9557
|
-
xAxis: zXBandAxis.
|
9558
|
-
yAxis: zYLinearAxis.
|
9559
|
-
crosshairLine: zCrosshairLine.
|
9560
|
-
theme: zTheme.
|
9561
|
-
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).
|
9562
|
-
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).
|
9563
|
-
areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).
|
9564
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9565
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9566
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9567
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9568
|
-
locale: zLocale.
|
9774
|
+
dataset: zDataset.nullish(),
|
9775
|
+
dimensions: zDimensions.nullish(),
|
9776
|
+
measures: zMeasureTree.nullish(),
|
9777
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9778
|
+
label: zLabel.nullish(),
|
9779
|
+
xAxis: zXBandAxis.nullish(),
|
9780
|
+
yAxis: zYLinearAxis.nullish(),
|
9781
|
+
crosshairLine: zCrosshairLine.nullish(),
|
9782
|
+
theme: zTheme.nullish(),
|
9783
|
+
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
|
9784
|
+
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
|
9785
|
+
areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
|
9786
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9787
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9788
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9789
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9790
|
+
locale: zLocale.nullish()
|
9569
9791
|
});
|
9570
9792
|
const zScatter = external_zod_namespaceObject.z.object({
|
9571
9793
|
chartType: external_zod_namespaceObject.z.literal('scatter'),
|
9572
|
-
dataset: zDataset.
|
9573
|
-
dimensions: zDimensions.
|
9574
|
-
measures: zMeasureTree.
|
9575
|
-
backgroundColor: zBackgroundColor.
|
9576
|
-
color: zColor.
|
9577
|
-
label: zLabel.
|
9578
|
-
legend: zLegend.
|
9579
|
-
tooltip: zTooltip.
|
9580
|
-
xAxis: zXLinearAxis.
|
9581
|
-
yAxis: zYLinearAxis.
|
9582
|
-
crosshairLine: zCrosshairLine.
|
9583
|
-
theme: zTheme.
|
9584
|
-
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).
|
9585
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9586
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9587
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9588
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9589
|
-
locale: zLocale.
|
9794
|
+
dataset: zDataset.nullish(),
|
9795
|
+
dimensions: zDimensions.nullish(),
|
9796
|
+
measures: zMeasureTree.nullish(),
|
9797
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9798
|
+
color: zColor.nullish(),
|
9799
|
+
label: zLabel.nullish(),
|
9800
|
+
legend: zLegend.nullish(),
|
9801
|
+
tooltip: zTooltip.nullish(),
|
9802
|
+
xAxis: zXLinearAxis.nullish(),
|
9803
|
+
yAxis: zYLinearAxis.nullish(),
|
9804
|
+
crosshairLine: zCrosshairLine.nullish(),
|
9805
|
+
theme: zTheme.nullish(),
|
9806
|
+
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
|
9807
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9808
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9809
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9810
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9811
|
+
locale: zLocale.nullish()
|
9590
9812
|
});
|
9591
9813
|
const zDualAxis = external_zod_namespaceObject.z.object({
|
9592
9814
|
chartType: external_zod_namespaceObject.z.literal('dualAxis'),
|
9593
|
-
dataset: zDataset.
|
9594
|
-
dimensions: zDimensions.
|
9595
|
-
measures: zMeasureTree.
|
9596
|
-
dualMeasures: zDualMeasures.
|
9597
|
-
dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).
|
9598
|
-
primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).
|
9599
|
-
secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).
|
9600
|
-
xAxis: zXBandAxis.
|
9601
|
-
backgroundColor: zBackgroundColor.
|
9602
|
-
color: zColor.
|
9603
|
-
label: zLabel.
|
9604
|
-
legend: zLegend.
|
9605
|
-
tooltip: zTooltip.
|
9606
|
-
crosshairRect: zCrosshairRect.
|
9607
|
-
sort: zSort.
|
9608
|
-
sortLegend: zSortLegend.
|
9609
|
-
theme: zTheme.
|
9610
|
-
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).
|
9611
|
-
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).
|
9612
|
-
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).
|
9613
|
-
areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).
|
9614
|
-
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).
|
9615
|
-
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).
|
9616
|
-
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).
|
9617
|
-
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).
|
9618
|
-
locale: zLocale.
|
9815
|
+
dataset: zDataset.nullish(),
|
9816
|
+
dimensions: zDimensions.nullish(),
|
9817
|
+
measures: zMeasureTree.nullish(),
|
9818
|
+
dualMeasures: zDualMeasures.nullish(),
|
9819
|
+
dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).nullish(),
|
9820
|
+
primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
|
9821
|
+
secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
|
9822
|
+
xAxis: zXBandAxis.nullish(),
|
9823
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9824
|
+
color: zColor.nullish(),
|
9825
|
+
label: zLabel.nullish(),
|
9826
|
+
legend: zLegend.nullish(),
|
9827
|
+
tooltip: zTooltip.nullish(),
|
9828
|
+
crosshairRect: zCrosshairRect.nullish(),
|
9829
|
+
sort: zSort.nullish(),
|
9830
|
+
sortLegend: zSortLegend.nullish(),
|
9831
|
+
theme: zTheme.nullish(),
|
9832
|
+
barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
|
9833
|
+
pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
|
9834
|
+
lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
|
9835
|
+
areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
|
9836
|
+
annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
9837
|
+
annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
|
9838
|
+
annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
|
9839
|
+
annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
|
9840
|
+
locale: zLocale.nullish()
|
9619
9841
|
});
|
9620
9842
|
const zRose = external_zod_namespaceObject.z.object({
|
9621
9843
|
chartType: external_zod_namespaceObject.z.literal('rose'),
|
9622
|
-
dataset: zDataset.
|
9623
|
-
dimensions: zDimensions.
|
9624
|
-
measures: zMeasureTree.
|
9625
|
-
backgroundColor: zBackgroundColor.
|
9626
|
-
color: zColor.
|
9627
|
-
label: zLabel.
|
9628
|
-
legend: zLegend.
|
9629
|
-
tooltip: zTooltip.
|
9630
|
-
theme: zTheme.
|
9631
|
-
locale: zLocale.
|
9844
|
+
dataset: zDataset.nullish(),
|
9845
|
+
dimensions: zDimensions.nullish(),
|
9846
|
+
measures: zMeasureTree.nullish(),
|
9847
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9848
|
+
color: zColor.nullish(),
|
9849
|
+
label: zLabel.nullish(),
|
9850
|
+
legend: zLegend.nullish(),
|
9851
|
+
tooltip: zTooltip.nullish(),
|
9852
|
+
theme: zTheme.nullish(),
|
9853
|
+
locale: zLocale.nullish()
|
9632
9854
|
});
|
9633
9855
|
const zRoseParallel = external_zod_namespaceObject.z.object({
|
9634
9856
|
chartType: external_zod_namespaceObject.z.literal('roseParallel'),
|
9635
|
-
dataset: zDataset.
|
9636
|
-
dimensions: zDimensions.
|
9637
|
-
measures: zMeasureTree.
|
9638
|
-
backgroundColor: zBackgroundColor.
|
9639
|
-
color: zColor.
|
9640
|
-
label: zLabel.
|
9641
|
-
legend: zLegend.
|
9642
|
-
tooltip: zTooltip.
|
9643
|
-
theme: zTheme.
|
9644
|
-
locale: zLocale.
|
9857
|
+
dataset: zDataset.nullish(),
|
9858
|
+
dimensions: zDimensions.nullish(),
|
9859
|
+
measures: zMeasureTree.nullish(),
|
9860
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9861
|
+
color: zColor.nullish(),
|
9862
|
+
label: zLabel.nullish(),
|
9863
|
+
legend: zLegend.nullish(),
|
9864
|
+
tooltip: zTooltip.nullish(),
|
9865
|
+
theme: zTheme.nullish(),
|
9866
|
+
locale: zLocale.nullish()
|
9645
9867
|
});
|
9646
9868
|
const zPie = external_zod_namespaceObject.z.object({
|
9647
9869
|
chartType: external_zod_namespaceObject.z.literal('pie'),
|
9648
|
-
dataset: zDataset.
|
9649
|
-
dimensions: zDimensions.
|
9650
|
-
measures: zMeasureTree.
|
9651
|
-
backgroundColor: zBackgroundColor.
|
9652
|
-
color: zColor.
|
9653
|
-
label: zLabel.
|
9654
|
-
legend: zLegend.
|
9655
|
-
tooltip: zTooltip.
|
9656
|
-
theme: zTheme.
|
9657
|
-
locale: zLocale.
|
9870
|
+
dataset: zDataset.nullish(),
|
9871
|
+
dimensions: zDimensions.nullish(),
|
9872
|
+
measures: zMeasureTree.nullish(),
|
9873
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9874
|
+
color: zColor.nullish(),
|
9875
|
+
label: zLabel.nullish(),
|
9876
|
+
legend: zLegend.nullish(),
|
9877
|
+
tooltip: zTooltip.nullish(),
|
9878
|
+
theme: zTheme.nullish(),
|
9879
|
+
locale: zLocale.nullish()
|
9658
9880
|
});
|
9659
9881
|
const zDonut = external_zod_namespaceObject.z.object({
|
9660
9882
|
chartType: external_zod_namespaceObject.z.literal('donut'),
|
9661
|
-
dataset: zDataset.
|
9662
|
-
dimensions: zDimensions.
|
9663
|
-
measures: zMeasureTree.
|
9664
|
-
backgroundColor: zBackgroundColor.
|
9665
|
-
color: zColor.
|
9666
|
-
label: zLabel.
|
9667
|
-
legend: zLegend.
|
9668
|
-
tooltip: zTooltip.
|
9669
|
-
theme: zTheme.
|
9670
|
-
locale: zLocale.
|
9883
|
+
dataset: zDataset.nullish(),
|
9884
|
+
dimensions: zDimensions.nullish(),
|
9885
|
+
measures: zMeasureTree.nullish(),
|
9886
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9887
|
+
color: zColor.nullish(),
|
9888
|
+
label: zLabel.nullish(),
|
9889
|
+
legend: zLegend.nullish(),
|
9890
|
+
tooltip: zTooltip.nullish(),
|
9891
|
+
theme: zTheme.nullish(),
|
9892
|
+
locale: zLocale.nullish()
|
9671
9893
|
});
|
9672
9894
|
const zRadar = external_zod_namespaceObject.z.object({
|
9673
9895
|
chartType: external_zod_namespaceObject.z.literal('radar'),
|
9674
|
-
dataset: zDataset.
|
9675
|
-
dimensions: zDimensions.
|
9676
|
-
measures: zMeasureTree.
|
9677
|
-
backgroundColor: zBackgroundColor.
|
9678
|
-
color: zColor.
|
9679
|
-
label: zLabel.
|
9680
|
-
legend: zLegend.
|
9681
|
-
tooltip: zTooltip.
|
9682
|
-
theme: zTheme.
|
9683
|
-
locale: zLocale.
|
9896
|
+
dataset: zDataset.nullish(),
|
9897
|
+
dimensions: zDimensions.nullish(),
|
9898
|
+
measures: zMeasureTree.nullish(),
|
9899
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9900
|
+
color: zColor.nullish(),
|
9901
|
+
label: zLabel.nullish(),
|
9902
|
+
legend: zLegend.nullish(),
|
9903
|
+
tooltip: zTooltip.nullish(),
|
9904
|
+
theme: zTheme.nullish(),
|
9905
|
+
locale: zLocale.nullish()
|
9684
9906
|
});
|
9685
9907
|
const zFunnel = external_zod_namespaceObject.z.object({
|
9686
9908
|
chartType: external_zod_namespaceObject.z.literal('funnel'),
|
9687
|
-
dataset: zDataset.
|
9688
|
-
dimensions: zDimensions.
|
9689
|
-
measures: zMeasureTree.
|
9690
|
-
backgroundColor: zBackgroundColor.
|
9691
|
-
color: zLinearColor.
|
9692
|
-
label: zLabel.
|
9693
|
-
legend: zColorLegend.
|
9694
|
-
tooltip: zTooltip.
|
9695
|
-
theme: zTheme.
|
9696
|
-
locale: zLocale.
|
9909
|
+
dataset: zDataset.nullish(),
|
9910
|
+
dimensions: zDimensions.nullish(),
|
9911
|
+
measures: zMeasureTree.nullish(),
|
9912
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9913
|
+
color: zLinearColor.nullish(),
|
9914
|
+
label: zLabel.nullish(),
|
9915
|
+
legend: zColorLegend.nullish(),
|
9916
|
+
tooltip: zTooltip.nullish(),
|
9917
|
+
theme: zTheme.nullish(),
|
9918
|
+
locale: zLocale.nullish()
|
9697
9919
|
});
|
9698
9920
|
const zHeatmap = external_zod_namespaceObject.z.object({
|
9699
9921
|
chartType: external_zod_namespaceObject.z.literal('heatmap'),
|
9700
|
-
dataset: zDataset.
|
9701
|
-
dimensions: zDimensions.
|
9702
|
-
measures: zMeasureTree.
|
9703
|
-
backgroundColor: zBackgroundColor.
|
9704
|
-
color: zLinearColor.
|
9705
|
-
label: zLabel.
|
9706
|
-
legend: zColorLegend.
|
9707
|
-
tooltip: zTooltip.
|
9708
|
-
theme: zTheme.
|
9709
|
-
locale: zLocale.
|
9922
|
+
dataset: zDataset.nullish(),
|
9923
|
+
dimensions: zDimensions.nullish(),
|
9924
|
+
measures: zMeasureTree.nullish(),
|
9925
|
+
backgroundColor: zBackgroundColor.nullish(),
|
9926
|
+
color: zLinearColor.nullish(),
|
9927
|
+
label: zLabel.nullish(),
|
9928
|
+
legend: zColorLegend.nullish(),
|
9929
|
+
tooltip: zTooltip.nullish(),
|
9930
|
+
theme: zTheme.nullish(),
|
9931
|
+
locale: zLocale.nullish()
|
9710
9932
|
});
|
9711
9933
|
const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
|
9712
9934
|
zTable,
|
@@ -9802,8 +10024,14 @@ exports.heatmapAdvancedPipeline = __webpack_exports__.heatmapAdvancedPipeline;
|
|
9802
10024
|
exports.heatmapSpecPipeline = __webpack_exports__.heatmapSpecPipeline;
|
9803
10025
|
exports.i18n = __webpack_exports__.i18n;
|
9804
10026
|
exports.intl = __webpack_exports__.intl;
|
10027
|
+
exports.isDimension = __webpack_exports__.isDimension;
|
10028
|
+
exports.isDimensionGroup = __webpack_exports__.isDimensionGroup;
|
9805
10029
|
exports.isDimensionSelector = __webpack_exports__.isDimensionSelector;
|
10030
|
+
exports.isDimensions = __webpack_exports__.isDimensions;
|
10031
|
+
exports.isMeasure = __webpack_exports__.isMeasure;
|
10032
|
+
exports.isMeasureGroup = __webpack_exports__.isMeasureGroup;
|
9806
10033
|
exports.isMeasureSelector = __webpack_exports__.isMeasureSelector;
|
10034
|
+
exports.isMeasures = __webpack_exports__.isMeasures;
|
9807
10035
|
exports.isPartialDatumSelector = __webpack_exports__.isPartialDatumSelector;
|
9808
10036
|
exports.isPivotChart = __webpack_exports__.isPivotChart;
|
9809
10037
|
exports.isPivotTable = __webpack_exports__.isPivotTable;
|
@@ -10011,8 +10239,14 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
10011
10239
|
"heatmapSpecPipeline",
|
10012
10240
|
"i18n",
|
10013
10241
|
"intl",
|
10242
|
+
"isDimension",
|
10243
|
+
"isDimensionGroup",
|
10014
10244
|
"isDimensionSelector",
|
10245
|
+
"isDimensions",
|
10246
|
+
"isMeasure",
|
10247
|
+
"isMeasureGroup",
|
10015
10248
|
"isMeasureSelector",
|
10249
|
+
"isMeasures",
|
10016
10250
|
"isPartialDatumSelector",
|
10017
10251
|
"isPivotChart",
|
10018
10252
|
"isPivotTable",
|