@visactor/vseed 0.0.36 → 0.0.38

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.
Files changed (123) hide show
  1. package/dist/builder/builder/builder.d.ts +8922 -8928
  2. package/dist/index.cjs +1192 -917
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +1160 -903
  5. package/dist/index.js.map +1 -1
  6. package/dist/pipeline/advanced/table/pipes/config/index.d.ts +2 -0
  7. package/dist/pipeline/advanced/table/pipes/config/pivotTableConfig.d.ts +2 -0
  8. package/dist/pipeline/advanced/table/pipes/config/tableConfig.d.ts +2 -0
  9. package/dist/pipeline/advanced/table/pipes/index.d.ts +1 -0
  10. package/dist/pipeline/spec/chart/pipes/series/index.d.ts +1 -1
  11. package/dist/pipeline/spec/chart/pipes/series/series.d.ts +1 -0
  12. package/dist/pipeline/spec/table/pipes/columns/dimensionsToColumns.d.ts +2 -0
  13. package/dist/pipeline/spec/table/pipes/columns/index.d.ts +1 -0
  14. package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +0 -1
  15. package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
  16. package/dist/pipeline/spec/table/pipes/indicators/pivotDataConfig.d.ts +2 -0
  17. package/dist/pipeline/utils/constant.d.ts +2 -0
  18. package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
  19. package/dist/pipeline/utils/dimensions/typeGuard.d.ts +4 -0
  20. package/dist/pipeline/utils/measures/index.d.ts +1 -0
  21. package/dist/pipeline/utils/measures/typeGuard.d.ts +4 -0
  22. package/dist/types/advancedVSeed.d.ts +3841 -3847
  23. package/dist/types/chartType/area/area.d.ts +11 -2
  24. package/dist/types/chartType/area/zArea.d.ts +565 -577
  25. package/dist/types/chartType/areaPercent/areaPercent.d.ts +4 -0
  26. package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +565 -577
  27. package/dist/types/chartType/areaRange/areaRange.d.ts +4 -0
  28. package/dist/types/chartType/areaRange/zAreaRange.d.ts +546 -558
  29. package/dist/types/chartType/bar/bar.d.ts +4 -1183
  30. package/dist/types/chartType/bar/index.d.ts +2 -1
  31. package/dist/types/chartType/bar/zBar.d.ts +1171 -0
  32. package/dist/types/chartType/barParallel/barParallel.d.ts +4 -1183
  33. package/dist/types/chartType/barParallel/index.d.ts +2 -1
  34. package/dist/types/chartType/barParallel/zBarParallel.d.ts +1171 -0
  35. package/dist/types/chartType/barPercent/barPercent.d.ts +4 -1183
  36. package/dist/types/chartType/barPercent/index.d.ts +2 -1
  37. package/dist/types/chartType/barPercent/zBarPercent.d.ts +1171 -0
  38. package/dist/types/chartType/column/column.d.ts +4 -1183
  39. package/dist/types/chartType/column/index.d.ts +2 -1
  40. package/dist/types/chartType/column/zColumn.d.ts +1171 -0
  41. package/dist/types/chartType/columnParallel/columnParallel.d.ts +4 -1183
  42. package/dist/types/chartType/columnParallel/index.d.ts +2 -1
  43. package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +1171 -0
  44. package/dist/types/chartType/columnPercent/columnPercent.d.ts +4 -1183
  45. package/dist/types/chartType/columnPercent/index.d.ts +2 -1
  46. package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +1171 -0
  47. package/dist/types/chartType/donut/donut.d.ts +4 -119
  48. package/dist/types/chartType/donut/index.d.ts +2 -1
  49. package/dist/types/chartType/donut/zDonut.d.ts +119 -0
  50. package/dist/types/chartType/dualAxis/dualAxis.d.ts +9 -0
  51. package/dist/types/chartType/dualAxis/zDualAxis.d.ts +744 -755
  52. package/dist/types/chartType/funnel/funnel.d.ts +4 -89
  53. package/dist/types/chartType/funnel/index.d.ts +2 -1
  54. package/dist/types/chartType/funnel/zFunnel.d.ts +89 -0
  55. package/dist/types/chartType/heatmap/heatmap.d.ts +4 -89
  56. package/dist/types/chartType/heatmap/index.d.ts +2 -1
  57. package/dist/types/chartType/heatmap/zHeatmap.d.ts +89 -0
  58. package/dist/types/chartType/line/index.d.ts +2 -1
  59. package/dist/types/chartType/line/line.d.ts +8 -1367
  60. package/dist/types/chartType/line/zLine.d.ts +1353 -0
  61. package/dist/types/chartType/pie/index.d.ts +2 -1
  62. package/dist/types/chartType/pie/pie.d.ts +4 -119
  63. package/dist/types/chartType/pie/zPie.d.ts +119 -0
  64. package/dist/types/chartType/pivotTable/index.d.ts +2 -1
  65. package/dist/types/chartType/pivotTable/pivotTable.d.ts +48 -60
  66. package/dist/types/chartType/pivotTable/zPivotTable.d.ts +68 -0
  67. package/dist/types/chartType/radar/index.d.ts +2 -1
  68. package/dist/types/chartType/radar/radar.d.ts +4 -119
  69. package/dist/types/chartType/radar/zRadar.d.ts +119 -0
  70. package/dist/types/chartType/rose/index.d.ts +2 -1
  71. package/dist/types/chartType/rose/rose.d.ts +4 -119
  72. package/dist/types/chartType/rose/zRose.d.ts +119 -0
  73. package/dist/types/chartType/roseParallel/index.d.ts +2 -1
  74. package/dist/types/chartType/roseParallel/roseParallel.d.ts +4 -119
  75. package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +119 -0
  76. package/dist/types/chartType/scatter/index.d.ts +2 -1
  77. package/dist/types/chartType/scatter/scatter.d.ts +4 -1191
  78. package/dist/types/chartType/scatter/zScatter.d.ts +1179 -0
  79. package/dist/types/chartType/table/index.d.ts +2 -1
  80. package/dist/types/chartType/table/table.d.ts +49 -64
  81. package/dist/types/chartType/table/zTable.d.ts +68 -0
  82. package/dist/types/dataSelector/selector.d.ts +70 -16
  83. package/dist/types/properties/analysis/analysis.d.ts +1 -1
  84. package/dist/types/properties/analysis/sort.d.ts +2 -4
  85. package/dist/types/properties/analysis/sortLegend.d.ts +2 -3
  86. package/dist/types/properties/annotation/annotation.d.ts +304 -316
  87. package/dist/types/properties/annotation/annotationArea.d.ts +12 -137
  88. package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +27 -148
  89. package/dist/types/properties/annotation/annotationPoint.d.ts +20 -114
  90. package/dist/types/properties/annotation/annotationVerticalLine.d.ts +6 -127
  91. package/dist/types/properties/annotation/index.d.ts +8 -4
  92. package/dist/types/properties/annotation/zAnnotationArea.d.ts +108 -0
  93. package/dist/types/properties/annotation/zAnnotationHorizontalLine.d.ts +105 -0
  94. package/dist/types/properties/annotation/zAnnotationPoint.d.ts +94 -0
  95. package/dist/types/properties/annotation/zAnnotationVerticalLine.d.ts +105 -0
  96. package/dist/types/properties/config/axes/axis.d.ts +44 -58
  97. package/dist/types/properties/config/axes/bandAxis.d.ts +74 -74
  98. package/dist/types/properties/config/axes/linearAxis.d.ts +76 -76
  99. package/dist/types/properties/config/backgroundColor/backgroundColor.d.ts +1 -1
  100. package/dist/types/properties/config/color/color.d.ts +7 -9
  101. package/dist/types/properties/config/config.d.ts +3288 -3282
  102. package/dist/types/properties/config/crosshair/crosshair.d.ts +14 -17
  103. package/dist/types/properties/config/crosshair/index.d.ts +2 -1
  104. package/dist/types/properties/config/crosshair/zCrosshair.d.ts +15 -0
  105. package/dist/types/properties/config/label/label.d.ts +1 -1
  106. package/dist/types/properties/config/legend/legend.d.ts +13 -17
  107. package/dist/types/properties/config/tooltip/tooltip.d.ts +1 -1
  108. package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +2 -2
  109. package/dist/types/properties/dimensions/dimensions.d.ts +6 -29
  110. package/dist/types/properties/dimensions/index.d.ts +2 -1
  111. package/dist/types/properties/dimensions/zDimensions.d.ts +30 -0
  112. package/dist/types/properties/encoding/encoding.d.ts +8 -8
  113. package/dist/types/properties/markStyle/areaStyle.d.ts +20 -20
  114. package/dist/types/properties/markStyle/barStyle.d.ts +24 -24
  115. package/dist/types/properties/markStyle/lineStyle.d.ts +24 -24
  116. package/dist/types/properties/markStyle/markStyle.d.ts +194 -194
  117. package/dist/types/properties/markStyle/pointStyle.d.ts +35 -35
  118. package/dist/types/properties/measures/measures.d.ts +3 -0
  119. package/dist/types/properties/theme/customTheme.d.ts +3336 -3330
  120. package/dist/types/vseed.d.ts +6734 -6851
  121. package/dist/umd/index.js +1202 -939
  122. package/dist/umd/index.js.map +1 -1
  123. 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
- isPartialDatumSelector: ()=>isPartialDatumSelector,
106
+ registerDarkTheme: ()=>registerDarkTheme,
105
107
  registerPivotTable: ()=>registerPivotTable,
106
- tableAdvancedPipeline: ()=>tableAdvancedPipeline,
107
- pieSpecPipeline: ()=>pieSpecPipeline,
108
+ isPartialDatumSelector: ()=>isPartialDatumSelector,
109
+ isDimensionGroup: ()=>isDimensionGroup,
108
110
  dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
109
- registerDarkTheme: ()=>registerDarkTheme,
110
- zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
111
+ pieSpecPipeline: ()=>pieSpecPipeline,
112
+ tableAdvancedPipeline: ()=>tableAdvancedPipeline,
111
113
  barSpecPipeline: ()=>barSpecPipeline,
112
- zChartType: ()=>zChartType,
114
+ zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
113
115
  registerRose: ()=>registerRose,
114
- zCrosshairLine: ()=>zCrosshairLine,
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
- zRadarConfig: ()=>zRadarConfig,
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
- zStackCornerRadius: ()=>zStackCornerRadius,
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: 'transparent'
623
+ underlayBackgroundColor: backgroundColor
587
624
  }
588
625
  };
589
626
  };
590
- const measureTreeToColumns = (spec, context)=>{
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 measures = advancedVSeed.measures;
632
+ const dimensions = advancedVSeed.dimensions;
593
633
  const result = {
594
634
  ...spec
595
635
  };
596
636
  const eachNode = (node)=>{
597
- if ('children' in node) return {};
598
- return {
637
+ if (isMeasure(node)) return {
599
638
  width: 'auto'
600
639
  };
640
+ return {};
601
641
  };
602
- const columns = treeTreeToColumns(measures, eachNode);
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 dimensionTreeToColumns = (spec, context)=>{
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 dimensions = advancedVSeed.dimensions;
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 ('children' in node) return {};
619
- return {
620
- width: 'auto'
744
+ if (isMeasure(node)) return {
745
+ width: 'auto',
746
+ fieldFormat: fieldFormat(node, locale)
621
747
  };
748
+ return {};
622
749
  };
623
- const columns = treeTreeToColumns(dimensions, eachNode);
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 treeTreeToColumns = (tree, callback)=>{
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: treeTreeToColumns(item.children, callback),
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 { customTheme, chartType } = advancedVSeed;
665
- const themeConfig = customTheme?.config?.[chartType];
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 { customTheme, chartType } = advancedVSeed;
704
- const themConfig = customTheme?.config?.[chartType];
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 { customTheme, chartType } = advancedVSeed;
752
- const themConfig = customTheme?.config?.[chartType];
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 { customTheme, chartType } = advancedVSeed;
768
- const themConfig = customTheme?.config?.[chartType];
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,
@@ -919,6 +1085,9 @@ const initPivotTable = (spec, context)=>{
919
1085
  tooltip: {
920
1086
  isShowOverflowTextTooltip: true
921
1087
  },
1088
+ corner: {
1089
+ titleOnDimension: 'all'
1090
+ },
922
1091
  widthAdaptiveMode: 'all',
923
1092
  animationAppear: {
924
1093
  duration: 300,
@@ -927,7 +1096,7 @@ const initPivotTable = (spec, context)=>{
927
1096
  direction: 'row'
928
1097
  },
929
1098
  theme: {
930
- underlayBackgroundColor: 'transparent'
1099
+ underlayBackgroundColor: backgroundColor
931
1100
  }
932
1101
  };
933
1102
  };
@@ -959,26 +1128,39 @@ const pivotRows = (spec, context)=>{
959
1128
  };
960
1129
  const pivotIndicators = (spec, context)=>{
961
1130
  const { advancedVSeed } = context;
1131
+ const { locale } = advancedVSeed;
962
1132
  const measures = advancedVSeed.measures;
963
1133
  return {
964
1134
  ...spec,
965
1135
  indicatorsAsCol: true,
966
1136
  indicatorTitle: intl.i18n`指标名称`,
967
- indicators: measures.map((item)=>({
1137
+ indicators: measures.map((item)=>{
1138
+ if (isMeasure(item)) return {
968
1139
  cellType: 'text',
969
1140
  indicatorKey: item.id,
970
1141
  title: item.alias || item.id,
971
- width: 'auto'
972
- }))
1142
+ width: 'auto',
1143
+ format: pivotIndicators_fieldFormat(item, locale)
1144
+ };
1145
+ return {};
1146
+ })
973
1147
  };
974
1148
  };
1149
+ const pivotIndicators_fieldFormat = (node, locale)=>(value)=>{
1150
+ const { format = {}, autoFormat = true } = node;
1151
+ if (!(0, external_remeda_namespaceObject.isEmpty)(format)) {
1152
+ const formatter = createFormatter(format);
1153
+ return formatter(value);
1154
+ }
1155
+ if (autoFormat) return autoFormatter(value, locale);
1156
+ };
975
1157
  const rowHeaderStyle = (spec, context)=>{
976
1158
  const result = {
977
1159
  ...spec
978
1160
  };
979
1161
  const { advancedVSeed } = context;
980
- const { customTheme, chartType } = advancedVSeed;
981
- const themConfig = customTheme?.config?.[chartType];
1162
+ const { config, chartType } = advancedVSeed;
1163
+ const themConfig = config?.[chartType];
982
1164
  if (!result.theme || !themConfig) return result;
983
1165
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
984
1166
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -1025,8 +1207,8 @@ const cornerHeaderStyle = (spec, context)=>{
1025
1207
  ...spec
1026
1208
  };
1027
1209
  const { advancedVSeed } = context;
1028
- const { customTheme, chartType } = advancedVSeed;
1029
- const themConfig = customTheme?.config?.[chartType];
1210
+ const { config, chartType } = advancedVSeed;
1211
+ const themConfig = config?.[chartType];
1030
1212
  if (!result.theme || !themConfig) return result;
1031
1213
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
1032
1214
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -1048,9 +1230,9 @@ const cornerHeaderStyle = (spec, context)=>{
1048
1230
  ],
1049
1231
  textAlign: 'left',
1050
1232
  hover: {
1051
- cellBgColor: hoverCellColor,
1052
- inlineRowBgColor: hoverInlineColor,
1053
- inlineColumnBgColor: hoverInlineColor
1233
+ cellBgColor: hoverCellColor || void 0,
1234
+ inlineRowBgColor: hoverInlineColor || void 0,
1235
+ inlineColumnBgColor: hoverInlineColor || void 0
1054
1236
  },
1055
1237
  frameStyle: {
1056
1238
  borderColor: [
@@ -1071,6 +1253,29 @@ const cornerHeaderStyle = (spec, context)=>{
1071
1253
  };
1072
1254
  return result;
1073
1255
  };
1256
+ var new_data_set_AggregationType;
1257
+ !function(AggregationType) {
1258
+ 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";
1259
+ }(new_data_set_AggregationType || (new_data_set_AggregationType = {}));
1260
+ var new_data_set_SortType;
1261
+ !function(SortType) {
1262
+ SortType.ASC = "ASC", SortType.DESC = "DESC", SortType.NORMAL = "NORMAL", SortType.desc = "desc", SortType.asc = "asc", SortType.normal = "normal";
1263
+ }(new_data_set_SortType || (new_data_set_SortType = {}));
1264
+ const dataConfig = (spec, context)=>{
1265
+ const { advancedVSeed } = context;
1266
+ const measures = findAllMeasures(advancedVSeed.measures);
1267
+ const aggregationRules = measures.map((measure)=>({
1268
+ field: measure.id,
1269
+ aggregationType: new_data_set_AggregationType.NONE,
1270
+ indicatorKey: measure.id
1271
+ }));
1272
+ return {
1273
+ ...spec,
1274
+ dataConfig: {
1275
+ aggregationRules
1276
+ }
1277
+ };
1278
+ };
1074
1279
  const pivotTableSpecPipeline = [
1075
1280
  initPivotTable,
1076
1281
  pivotColumns,
@@ -1081,7 +1286,8 @@ const pivotTableSpecPipeline = [
1081
1286
  rowHeaderStyle,
1082
1287
  cornerHeaderStyle,
1083
1288
  frameStyle,
1084
- selectionStyle
1289
+ selectionStyle,
1290
+ dataConfig
1085
1291
  ];
1086
1292
  const registerPivotTable = ()=>{
1087
1293
  Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
@@ -1744,22 +1950,44 @@ const color_color = (spec, context)=>{
1744
1950
  const colorIdMap = unfoldInfo.colorIdMap;
1745
1951
  const { color } = baseConfig;
1746
1952
  const { colorScheme, colorMapping } = color;
1747
- const mappingList = [];
1748
- if (colorMapping) Object.entries(colorMapping).sort((a, b)=>a[0].split(Separator).length - b[0].split(Separator).length).forEach(([key, value])=>{
1749
- const idMap = Object.entries(colorIdMap).filter(([_, v])=>v.includes(key));
1750
- for (const [colorId] of idMap)mappingList.push([
1751
- colorId,
1752
- value
1753
- ]);
1754
- });
1755
1953
  result.color = {
1756
1954
  type: 'ordinal',
1757
1955
  domain: colorItems,
1758
1956
  range: colorScheme,
1759
- specified: Object.fromEntries(mappingList)
1957
+ specified: createSpecifiedForColorMapping(colorMapping, colorIdMap, colorItems)
1760
1958
  };
1761
1959
  return result;
1762
1960
  };
1961
+ const createSpecifiedForColorMapping = (colorMapping, colorIdMap, colorItems)=>{
1962
+ if (!colorMapping || !colorIdMap || !colorItems) return;
1963
+ const matchedList = [];
1964
+ const colors = Object.entries(colorMapping).sort((a, b)=>b[0].length - a[0].length);
1965
+ const accurateMap = colors.reduce((prev, cur)=>{
1966
+ const name = cur[0];
1967
+ const colorValue = cur[1];
1968
+ const accurateMatchedList = Object.entries(colorIdMap).filter(([colorKey, colorAlias])=>colorKey === name || colorAlias === name);
1969
+ accurateMatchedList.forEach((item)=>{
1970
+ prev[item[0]] = colorValue;
1971
+ matchedList.push(name);
1972
+ });
1973
+ return prev;
1974
+ }, {});
1975
+ const fuzzyMap = colors.reduce((prev, cur)=>{
1976
+ const name = cur[0];
1977
+ const colorValue = cur[1];
1978
+ if (matchedList.includes(name)) return prev;
1979
+ const fuzzyMatchedList = Object.entries(colorIdMap).filter(([colorKey, colorAlias])=>colorKey.includes(name) || colorAlias.includes(name));
1980
+ fuzzyMatchedList.forEach((item)=>{
1981
+ if (prev[item[0]]) return;
1982
+ prev[item[0]] = colorValue;
1983
+ });
1984
+ return prev;
1985
+ }, {});
1986
+ return {
1987
+ ...fuzzyMap,
1988
+ ...accurateMap
1989
+ };
1990
+ };
1763
1991
  const background_backgroundColor = (spec, context)=>{
1764
1992
  const result = {
1765
1993
  ...spec
@@ -1776,7 +2004,7 @@ const background_backgroundColor = (spec, context)=>{
1776
2004
  const datasetXY = (spec, context)=>{
1777
2005
  const { advancedVSeed, vseed } = context;
1778
2006
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
1779
- const { orderMapping = {} } = analysis ?? {};
2007
+ const orderMapping = analysis?.orderMapping || {};
1780
2008
  const angle = encoding[0]?.angle?.[0];
1781
2009
  const x = encoding[0]?.x?.[0];
1782
2010
  const group = encoding[0]?.group?.[0];
@@ -1821,7 +2049,7 @@ const progressive = (spec, context)=>{
1821
2049
  ...spec
1822
2050
  };
1823
2051
  const { advancedVSeed } = context;
1824
- const { dataset } = advancedVSeed;
2052
+ const { dataset = [] } = advancedVSeed;
1825
2053
  const size = dataset.length;
1826
2054
  if (size < 5000) return result;
1827
2055
  result.large = true;
@@ -1926,64 +2154,8 @@ const xBand = (spec, context)=>{
1926
2154
  };
1927
2155
  const ANNOTATION_Z_INDEX = 1000;
1928
2156
  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);
2157
+ const DUAL_AXIS_CHART_COLUMN_Z_INDEX = 1000;
2158
+ const DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX = 1001;
1987
2159
  const yLinear = (spec, context)=>{
1988
2160
  const result = {
1989
2161
  ...spec
@@ -2186,7 +2358,11 @@ const verticalCrosshairLine = (spec, context)=>{
2186
2358
  const config = advancedVSeed.config?.[chartType]?.crosshairLine;
2187
2359
  if (!config) return result;
2188
2360
  if (!result.crosshair) result.crosshair = {};
2189
- const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
2361
+ const visible = config.visible || true;
2362
+ const lineColor = config.lineColor || void 0;
2363
+ const labelColor = config.labelColor || void 0;
2364
+ const labelVisible = config.labelVisible || void 0;
2365
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
2190
2366
  const crosshair = result.crosshair;
2191
2367
  crosshair.xField = {
2192
2368
  visible,
@@ -2473,7 +2649,12 @@ const pointStateDimensionHover = (spec)=>{
2473
2649
  ...point.state || {},
2474
2650
  dimension_hover: {
2475
2651
  scaleX: 1.4,
2476
- scaleY: 1.4
2652
+ scaleY: 1.4,
2653
+ outerBorder: {
2654
+ lineWidth: 4,
2655
+ strokeOpacity: 0.25,
2656
+ distance: 2
2657
+ }
2477
2658
  }
2478
2659
  }
2479
2660
  }
@@ -2576,7 +2757,7 @@ const annotationPoint_annotationPoint = (spec, context)=>{
2576
2757
  annotationPoint
2577
2758
  ];
2578
2759
  const markPoint = annotationPointList.flatMap((annotationPoint)=>{
2579
- const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
2760
+ 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
2761
  const dataset = advancedVSeed.dataset.flat();
2581
2762
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
2582
2763
  return selectedData.map((datum)=>({
@@ -2605,20 +2786,20 @@ const annotationPoint_annotationPoint = (spec, context)=>{
2605
2786
  textAlign: textAlign,
2606
2787
  textBaseline: textBaseline,
2607
2788
  fill: textColor,
2608
- stroke: backgroundColor,
2789
+ stroke: textBackgroundColor,
2609
2790
  lineWidth: 1,
2610
2791
  fontSize: textFontSize,
2611
2792
  fontWeight: textFontWeight,
2612
2793
  dy: textFontSize
2613
2794
  },
2614
2795
  labelBackground: {
2615
- visible: backgroundVisible,
2616
- padding: backgroundPadding,
2796
+ visible: textBackgroundVisible,
2797
+ padding: textBackgroundPadding,
2617
2798
  style: {
2618
- cornerRadius: backgroundBorderRadius ?? 4,
2619
- fill: backgroundColor,
2620
- stroke: backgroundBorderColor,
2621
- lineWidth: backgroundBorderWidth,
2799
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2800
+ fill: textBackgroundColor,
2801
+ stroke: textBackgroundBorderColor,
2802
+ lineWidth: textBackgroundBorderWidth,
2622
2803
  dy: textFontSize
2623
2804
  }
2624
2805
  }
@@ -2648,13 +2829,11 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2648
2829
  insideEnd: 'insideEndTop'
2649
2830
  };
2650
2831
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2651
- const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundVisible = true, backgroundBorderColor = '#212121', backgroundColor = '#212121', backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundPadding = 2, lineVisible = true, lineColor = '#212121', lineWidth = 1, lineStyle = 'dashed', offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2832
+ 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' } = annotationVerticalLine;
2652
2833
  const dataset = advancedVSeed.dataset.flat();
2653
2834
  const generateOneMarkLine = (x)=>({
2654
2835
  x: x,
2655
2836
  zIndex: ANNOTATION_Z_INDEX,
2656
- offsetX,
2657
- offsetY,
2658
2837
  line: {
2659
2838
  style: {
2660
2839
  visible: lineVisible,
@@ -2674,10 +2853,10 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2674
2853
  },
2675
2854
  label: {
2676
2855
  text: text,
2677
- position: positionMap[textPosition],
2856
+ position: positionMap[textPosition || 'insideEnd'],
2678
2857
  style: {
2679
2858
  visible: true,
2680
- stroke: backgroundColor,
2859
+ stroke: textBackgroundColor,
2681
2860
  lineWidth: 1,
2682
2861
  textAlign: textAlign,
2683
2862
  textBaseline: textBaseline,
@@ -2687,20 +2866,20 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2687
2866
  dy: textFontSize
2688
2867
  },
2689
2868
  labelBackground: {
2690
- visible: backgroundVisible,
2691
- padding: backgroundPadding,
2869
+ visible: textBackgroundVisible,
2870
+ padding: textBackgroundPadding,
2692
2871
  style: {
2693
2872
  dy: textFontSize,
2694
- cornerRadius: backgroundBorderRadius ?? 4,
2695
- fill: backgroundColor,
2696
- stroke: backgroundBorderColor,
2697
- lineWidth: backgroundBorderWidth
2873
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2874
+ fill: textBackgroundColor,
2875
+ stroke: textBackgroundBorderColor,
2876
+ lineWidth: textBackgroundBorderWidth
2698
2877
  }
2699
2878
  }
2700
2879
  },
2701
2880
  endSymbol: {
2702
2881
  visible: true,
2703
- size: 10 + lineWidth,
2882
+ size: 10 + (lineWidth || 1),
2704
2883
  style: {
2705
2884
  dy: 4,
2706
2885
  fill: lineColor
@@ -2747,12 +2926,10 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2747
2926
  insideEnd: 'insideEndTop'
2748
2927
  };
2749
2928
  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, backgroundVisible = true, backgroundColor = '#212121', backgroundBorderColor = '#212121', backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundPadding = 2, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2929
+ 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 } = annotationVerticalLine;
2751
2930
  const dataset = advancedVSeed.dataset.flat();
2752
2931
  const generateOneMarkLine = (y)=>({
2753
2932
  y,
2754
- offsetX,
2755
- offsetY,
2756
2933
  zIndex: ANNOTATION_Z_INDEX,
2757
2934
  line: {
2758
2935
  style: {
@@ -2773,11 +2950,11 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2773
2950
  },
2774
2951
  label: {
2775
2952
  text: text,
2776
- position: positionMap[textPosition],
2953
+ position: positionMap[textPosition || 'insideEnd'],
2777
2954
  style: {
2778
2955
  visible: true,
2779
2956
  dy: textFontSize,
2780
- stroke: backgroundColor,
2957
+ stroke: textBackgroundColor,
2781
2958
  lineWidth: 1,
2782
2959
  textAlign: textAlign,
2783
2960
  textBaseline: textBaseline,
@@ -2786,20 +2963,20 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2786
2963
  fontWeight: textFontWeight
2787
2964
  },
2788
2965
  labelBackground: {
2789
- visible: backgroundVisible,
2790
- padding: backgroundPadding,
2966
+ visible: textBackgroundVisible,
2967
+ padding: textBackgroundPadding,
2791
2968
  style: {
2792
2969
  dy: textFontSize,
2793
- cornerRadius: backgroundBorderRadius ?? 4,
2794
- fill: backgroundColor,
2795
- stroke: backgroundBorderColor,
2796
- lineWidth: backgroundBorderWidth
2970
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2971
+ fill: textBackgroundColor,
2972
+ stroke: textBackgroundBorderColor,
2973
+ lineWidth: textBackgroundBorderWidth
2797
2974
  }
2798
2975
  }
2799
2976
  },
2800
2977
  endSymbol: {
2801
2978
  visible: true,
2802
- size: 10 + lineWidth,
2979
+ size: 10 + (lineWidth || 1),
2803
2980
  style: {
2804
2981
  dx: -4,
2805
2982
  fill: lineColor
@@ -2848,14 +3025,14 @@ const annotationArea_annotationArea = (spec, context)=>{
2848
3025
  right: 'insideRight'
2849
3026
  };
2850
3027
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
2851
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundVisible = true, backgroundColor = '#191d24', backgroundBorderColor = '#191d24', backgroundBorderWidth = 1, backgroundBorderRadius = 4, backgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
3028
+ 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 } = annotationArea;
2852
3029
  const dataset = advancedVSeed.dataset.flat();
2853
3030
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3031
+ const labelPosition = positionMap[textPosition || 'top'];
3032
+ const isBottom = labelPosition.toLocaleLowerCase().includes('bottom');
2854
3033
  return {
2855
3034
  zIndex: ANNOTATION_Z_INDEX,
2856
3035
  regionRelative: true,
2857
- offsetX,
2858
- offsetY,
2859
3036
  positions: (data, context)=>{
2860
3037
  const positionData = data.filter((item)=>selectedData.some((datum)=>isSubset(datum, item)));
2861
3038
  const xyList = positionData.map((datum)=>context.dataToPosition(datum));
@@ -2863,8 +3040,8 @@ const annotationArea_annotationArea = (spec, context)=>{
2863
3040
  const xAxisHelper = context.getXAxisHelper();
2864
3041
  if ('function' == typeof xAxisHelper?.getBandwidth) {
2865
3042
  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;
3043
+ const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
3044
+ const maxX = Math.max(...xyList.map((item)=>item.x)) + (outerPadding || 4);
2868
3045
  const minY = Math.min(...yScale.range());
2869
3046
  const maxY = Math.max(...yScale.range());
2870
3047
  return [
@@ -2888,8 +3065,8 @@ const annotationArea_annotationArea = (spec, context)=>{
2888
3065
  }
2889
3066
  if ('function' == typeof yAxisHelper?.getBandwidth) {
2890
3067
  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;
3068
+ const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
3069
+ const maxY = Math.max(...xyList.map((item)=>item.y)) + (outerPadding || 4);
2893
3070
  const minX = Math.min(...xScale.range());
2894
3071
  const maxX = Math.max(...xScale.range());
2895
3072
  return [
@@ -2914,28 +3091,28 @@ const annotationArea_annotationArea = (spec, context)=>{
2914
3091
  return [];
2915
3092
  },
2916
3093
  label: {
2917
- position: positionMap[textPosition],
3094
+ position: labelPosition,
2918
3095
  visible: true,
2919
3096
  text: text,
2920
3097
  style: {
2921
- dy: textFontSize,
3098
+ dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
2922
3099
  textAlign: textAlign,
2923
3100
  textBaseline: textBaseline,
2924
3101
  fill: textColor,
2925
- stroke: backgroundColor,
3102
+ stroke: textBackgroundColor,
2926
3103
  lineWidth: 1,
2927
3104
  fontSize: textFontSize,
2928
3105
  fontWeight: textFontWeight
2929
3106
  },
2930
3107
  labelBackground: {
2931
- visible: backgroundVisible,
2932
- padding: backgroundPadding,
3108
+ visible: textBackgroundVisible,
3109
+ padding: textBackgroundPadding,
2933
3110
  style: {
2934
- dy: textFontSize,
2935
- cornerRadius: backgroundBorderRadius ?? 4,
2936
- fill: backgroundColor,
2937
- stroke: backgroundBorderColor,
2938
- lineWidth: backgroundBorderWidth
3111
+ dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
3112
+ cornerRadius: textBackgroundBorderRadius ?? 4,
3113
+ fill: textBackgroundColor,
3114
+ stroke: textBackgroundBorderColor,
3115
+ lineWidth: textBackgroundBorderWidth
2939
3116
  }
2940
3117
  }
2941
3118
  },
@@ -3275,11 +3452,11 @@ const pivotDiscreteLegend = (spec, context)=>{
3275
3452
  label: d,
3276
3453
  shape: {
3277
3454
  outerBorder: border ? {
3278
- stroke: colorScheme?.[index],
3455
+ stroke: colorScheme?.[index % colorScheme.length],
3279
3456
  distance: 3,
3280
3457
  lineWidth: 1
3281
3458
  } : void 0,
3282
- fill: colorScheme?.[index]
3459
+ fill: colorScheme?.[index % colorScheme.length]
3283
3460
  }
3284
3461
  })),
3285
3462
  item: {
@@ -3577,7 +3754,11 @@ const verticalCrosshairRect = (spec, context)=>{
3577
3754
  const config = advancedVSeed.config?.[chartType]?.crosshairRect;
3578
3755
  if (!config) return result;
3579
3756
  if (!result.crosshair) result.crosshair = {};
3580
- const { visible = true, rectColor, labelColor, labelVisible, labelBackgroundColor } = config;
3757
+ const visible = config.visible || true;
3758
+ const rectColor = config.rectColor || void 0;
3759
+ const labelColor = config.labelColor || void 0;
3760
+ const labelVisible = config.labelVisible || false;
3761
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
3581
3762
  const crosshair = result.crosshair;
3582
3763
  crosshair.xField = {
3583
3764
  visible,
@@ -3606,14 +3787,13 @@ const verticalCrosshairRect = (spec, context)=>{
3606
3787
  };
3607
3788
  const barStyle_barStyle = (spec, context)=>{
3608
3789
  const { advancedVSeed } = context;
3609
- const { markStyle, dataset } = advancedVSeed;
3790
+ const { markStyle, dataset = [] } = advancedVSeed;
3610
3791
  const { barStyle } = markStyle;
3611
3792
  const showStroke = dataset.length <= 100;
3612
3793
  const result = {
3613
3794
  ...spec,
3614
3795
  bar: {
3615
3796
  style: {
3616
- stroke: '#fff',
3617
3797
  lineWidth: showStroke ? 1 : 0
3618
3798
  },
3619
3799
  state: {
@@ -3689,14 +3869,12 @@ const annotationAreaBand = (spec, context)=>{
3689
3869
  right: 'insideRight'
3690
3870
  };
3691
3871
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
3692
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundVisible = true, backgroundColor = '#191d24', backgroundBorderColor = '#191d24', backgroundBorderWidth = 1, backgroundBorderRadius = 4, backgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
3872
+ 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 } = annotationArea;
3693
3873
  const dataset = advancedVSeed.dataset.flat();
3694
3874
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3695
3875
  return {
3696
3876
  zIndex: ANNOTATION_Z_INDEX,
3697
3877
  regionRelative: true,
3698
- offsetX,
3699
- offsetY,
3700
3878
  positions: (data, context)=>{
3701
3879
  const positionData = data.filter((item)=>selectedData.some((datum)=>isSubset(datum, item)));
3702
3880
  const xyList = positionData.map((datum)=>context.dataToPosition(datum));
@@ -3706,8 +3884,8 @@ const annotationAreaBand = (spec, context)=>{
3706
3884
  const depth = context.fieldX.length ?? 0;
3707
3885
  const xBandWidth = xAxisHelper?.getBandwidth?.(depth - 1);
3708
3886
  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;
3887
+ const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
3888
+ const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + (outerPadding || 4);
3711
3889
  const minY = Math.min(...yScale.range());
3712
3890
  const maxY = Math.max(...yScale.range());
3713
3891
  return [
@@ -3733,8 +3911,8 @@ const annotationAreaBand = (spec, context)=>{
3733
3911
  const depth = context.fieldY.length ?? 0;
3734
3912
  const yBandWidth = yAxisHelper?.getBandwidth?.(depth - 1);
3735
3913
  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;
3914
+ const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
3915
+ const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + (outerPadding || 4);
3738
3916
  const minX = Math.min(...xScale.range());
3739
3917
  const maxX = Math.max(...xScale.range());
3740
3918
  return [
@@ -3759,28 +3937,28 @@ const annotationAreaBand = (spec, context)=>{
3759
3937
  return [];
3760
3938
  },
3761
3939
  label: {
3762
- position: positionMap[textPosition],
3940
+ position: positionMap[textPosition || 'top'],
3763
3941
  visible: true,
3764
3942
  text: text,
3765
3943
  style: {
3766
3944
  dy: textFontSize,
3767
3945
  textAlign: textAlign,
3768
3946
  textBaseline: textBaseline,
3769
- stroke: backgroundColor,
3947
+ stroke: textBackgroundColor,
3770
3948
  lineWidth: 1,
3771
3949
  fill: textColor,
3772
3950
  fontSize: textFontSize,
3773
3951
  fontWeight: textFontWeight
3774
3952
  },
3775
3953
  labelBackground: {
3776
- visible: backgroundVisible,
3777
- padding: backgroundPadding,
3954
+ visible: textBackgroundVisible,
3955
+ padding: textBackgroundPadding,
3778
3956
  style: {
3779
3957
  dy: textFontSize,
3780
- cornerRadius: backgroundBorderRadius ?? 4,
3781
- fill: backgroundColor,
3782
- stroke: backgroundBorderColor,
3783
- lineWidth: backgroundBorderWidth
3958
+ cornerRadius: textBackgroundBorderRadius ?? 4,
3959
+ fill: textBackgroundColor,
3960
+ stroke: textBackgroundBorderColor,
3961
+ lineWidth: textBackgroundBorderWidth
3784
3962
  }
3785
3963
  }
3786
3964
  },
@@ -4110,7 +4288,7 @@ const initBar = (spec, context)=>{
4110
4288
  const datasetYX = (spec, context)=>{
4111
4289
  const { advancedVSeed, vseed } = context;
4112
4290
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
4113
- const { orderMapping = {} } = analysis ?? {};
4291
+ const orderMapping = analysis?.orderMapping || {};
4114
4292
  const angle = encoding[0]?.angle?.[0];
4115
4293
  const y = encoding[0]?.y?.[0];
4116
4294
  const group = encoding[0]?.group?.[0];
@@ -4336,7 +4514,11 @@ const horizontalCrosshairRect = (spec, context)=>{
4336
4514
  const config = advancedVSeed.config?.[chartType]?.crosshairRect;
4337
4515
  if (!config) return result;
4338
4516
  if (!result.crosshair) result.crosshair = {};
4339
- const { visible = true, rectColor, labelColor, labelVisible, labelBackgroundColor } = config;
4517
+ const visible = config.visible || true;
4518
+ const rectColor = config.rectColor || void 0;
4519
+ const labelColor = config.labelColor || void 0;
4520
+ const labelVisible = config.labelVisible || false;
4521
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
4340
4522
  const crosshair = result.crosshair;
4341
4523
  crosshair.yField = {
4342
4524
  visible,
@@ -5055,6 +5237,35 @@ const series = (...args)=>{
5055
5237
  return result;
5056
5238
  };
5057
5239
  };
5240
+ const seriesDualAxis = (...args)=>{
5241
+ const result = {
5242
+ type: 'common',
5243
+ padding: 0,
5244
+ region: [
5245
+ {
5246
+ clip: true
5247
+ }
5248
+ ]
5249
+ };
5250
+ const createDualContext = (context, index)=>{
5251
+ const { advancedVSeed } = context;
5252
+ const dataset = advancedVSeed.dataset[index];
5253
+ return {
5254
+ ...context,
5255
+ advancedVSeed: {
5256
+ ...advancedVSeed,
5257
+ dataset: dataset
5258
+ }
5259
+ };
5260
+ };
5261
+ return (_, context)=>{
5262
+ result.series = args.map((pipeline, index)=>{
5263
+ const seriesContext = createDualContext(context, index);
5264
+ return execPipeline(pipeline, seriesContext, {});
5265
+ });
5266
+ return result;
5267
+ };
5268
+ };
5058
5269
  const initAreaRange = (spec, context)=>{
5059
5270
  const result = {
5060
5271
  ...spec
@@ -5484,7 +5695,11 @@ const horizontalCrosshairLine = (spec, context)=>{
5484
5695
  const config = advancedVSeed.config?.[chartType]?.crosshairLine;
5485
5696
  if (!config) return result;
5486
5697
  if (!result.crosshair) result.crosshair = {};
5487
- const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
5698
+ const visible = config.visible || true;
5699
+ const lineColor = config.lineColor || void 0;
5700
+ const labelColor = config.labelColor || void 0;
5701
+ const labelVisible = config.labelVisible || void 0;
5702
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
5488
5703
  const crosshair = result.crosshair;
5489
5704
  crosshair.yField = {
5490
5705
  visible,
@@ -5734,6 +5949,7 @@ const dualAxisConfig = (advancedVSeed, context)=>{
5734
5949
  'legend',
5735
5950
  'tooltip',
5736
5951
  'dualChartType',
5952
+ 'alignTicks',
5737
5953
  'primaryYAxis',
5738
5954
  'secondaryYAxis',
5739
5955
  'crosshairLine'
@@ -5886,7 +6102,8 @@ const initDualAxisSecondary = (spec, context)=>{
5886
6102
  };
5887
6103
  const dualChartTypePrimary = (spec, context)=>{
5888
6104
  const result = {
5889
- ...spec
6105
+ ...spec,
6106
+ zIndex: DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX
5890
6107
  };
5891
6108
  const { advancedVSeed, vseed } = context;
5892
6109
  const { chartType } = vseed;
@@ -5897,12 +6114,16 @@ const dualChartTypePrimary = (spec, context)=>{
5897
6114
  secondary: 'line'
5898
6115
  };
5899
6116
  const primary = Array.isArray(config) ? config[index].primary || config[0].primary : config.primary;
5900
- switch(primary){
6117
+ const secondary = Array.isArray(config) ? config[index].secondary || config[0].secondary : config.secondary;
6118
+ const bothColumn = 'column' === primary && 'column' === secondary;
6119
+ const type = bothColumn ? 'columnParallel' : primary;
6120
+ switch(type){
5901
6121
  case 'line':
5902
6122
  result.type = 'line';
5903
6123
  break;
5904
6124
  case 'column':
5905
6125
  result.type = 'bar';
6126
+ result.zIndex = DUAL_AXIS_CHART_COLUMN_Z_INDEX;
5906
6127
  break;
5907
6128
  case 'columnParallel':
5908
6129
  {
@@ -5913,6 +6134,7 @@ const dualChartTypePrimary = (spec, context)=>{
5913
6134
  datasetReshapeInfo[0].unfoldInfo.groupId
5914
6135
  ];
5915
6136
  columnSpec.type = 'bar';
6137
+ result.zIndex = DUAL_AXIS_CHART_COLUMN_Z_INDEX;
5916
6138
  break;
5917
6139
  }
5918
6140
  case 'columnPercent':
@@ -5936,7 +6158,8 @@ const dualChartTypePrimary = (spec, context)=>{
5936
6158
  };
5937
6159
  const dualChartTypeSecondary = (spec, context)=>{
5938
6160
  const result = {
5939
- ...spec
6161
+ ...spec,
6162
+ zIndex: DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX
5940
6163
  };
5941
6164
  const { advancedVSeed, vseed } = context;
5942
6165
  const { chartType } = vseed;
@@ -5946,13 +6169,17 @@ const dualChartTypeSecondary = (spec, context)=>{
5946
6169
  secondary: 'line'
5947
6170
  };
5948
6171
  const index = datasetReshapeInfo[0].index;
6172
+ const primary = Array.isArray(config) ? config[index].primary || config[0].primary : config.primary;
5949
6173
  const secondary = Array.isArray(config) ? config[index].secondary || config[0].secondary : config.secondary;
5950
- switch(secondary){
6174
+ const bothColumn = 'column' === primary && 'column' === secondary;
6175
+ const type = bothColumn ? 'columnParallel' : secondary;
6176
+ switch(type){
5951
6177
  case 'line':
5952
6178
  result.type = 'line';
5953
6179
  break;
5954
6180
  case 'column':
5955
6181
  result.type = 'bar';
6182
+ result.zIndex = DUAL_AXIS_CHART_COLUMN_Z_INDEX;
5956
6183
  break;
5957
6184
  case 'columnParallel':
5958
6185
  {
@@ -5963,6 +6190,7 @@ const dualChartTypeSecondary = (spec, context)=>{
5963
6190
  datasetReshapeInfo[0].unfoldInfo.groupId
5964
6191
  ];
5965
6192
  columnSpec.type = 'bar';
6193
+ result.zIndex = DUAL_AXIS_CHART_COLUMN_Z_INDEX;
5966
6194
  break;
5967
6195
  }
5968
6196
  case 'columnPercent':
@@ -5987,7 +6215,7 @@ const dualChartTypeSecondary = (spec, context)=>{
5987
6215
  const datasetPrimary = (spec, context)=>{
5988
6216
  const { advancedVSeed, vseed } = context;
5989
6217
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
5990
- const { orderMapping = {} } = analysis ?? {};
6218
+ const orderMapping = analysis?.orderMapping || {};
5991
6219
  const x = encoding[0]?.x?.[0];
5992
6220
  const group = encoding[0]?.group?.[0];
5993
6221
  const id = datasetReshapeInfo[0].id;
@@ -6018,7 +6246,7 @@ const datasetPrimary = (spec, context)=>{
6018
6246
  ...spec,
6019
6247
  data: {
6020
6248
  id: `${id}-primary-dataset`,
6021
- values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset[0],
6249
+ values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
6022
6250
  fields: fields
6023
6251
  }
6024
6252
  };
@@ -6026,7 +6254,7 @@ const datasetPrimary = (spec, context)=>{
6026
6254
  const datasetSecondary = (spec, context)=>{
6027
6255
  const { advancedVSeed, vseed } = context;
6028
6256
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
6029
- const { orderMapping = {} } = analysis ?? {};
6257
+ const orderMapping = analysis?.orderMapping || {};
6030
6258
  const x = encoding[0]?.x?.[0];
6031
6259
  const group = encoding[0]?.group?.[0];
6032
6260
  const id = datasetReshapeInfo[0].id;
@@ -6057,7 +6285,7 @@ const datasetSecondary = (spec, context)=>{
6057
6285
  ...spec,
6058
6286
  data: {
6059
6287
  id: `${id}-secondary-dataset`,
6060
- values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset[1],
6288
+ values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
6061
6289
  fields: fields
6062
6290
  }
6063
6291
  };
@@ -6301,12 +6529,18 @@ const yLinearPrimary = (spec, context)=>{
6301
6529
  const { locale, datasetReshapeInfo } = advancedVSeed;
6302
6530
  const index = datasetReshapeInfo[0].index;
6303
6531
  const primaryYAxis = advancedVSeed.config?.[chartType]?.primaryYAxis;
6304
- const config = Array.isArray(primaryYAxis) ? primaryYAxis[index] || primaryYAxis[0] : primaryYAxis;
6532
+ const yAxisConfig = Array.isArray(primaryYAxis) ? primaryYAxis[index] || primaryYAxis[0] : primaryYAxis;
6533
+ const alignTicks = advancedVSeed.config?.[chartType]?.alignTicks;
6534
+ const alignTicksConfig = Array.isArray(alignTicks) ? alignTicks[index] || alignTicks[0] : alignTicks;
6305
6535
  if (datasetReshapeInfo[0].foldInfoList?.[0] && (0, external_remeda_namespaceObject.isEmpty)(datasetReshapeInfo[0].foldInfoList[0].foldMap)) return result;
6306
6536
  const id = `${datasetReshapeInfo[0].id}-primary-axis`;
6307
- const seriesId = `${datasetReshapeInfo[0].id}-primary-series`;
6537
+ const seriesIds = [
6538
+ `${datasetReshapeInfo[0].id}-primary-series`,
6539
+ `${datasetReshapeInfo[0].id}-secondary-series`
6540
+ ];
6541
+ const seriesId = alignTicksConfig ? seriesIds : seriesIds[0];
6308
6542
  if (!result.axes) result.axes = [];
6309
- if (!config) {
6543
+ if (!yAxisConfig) {
6310
6544
  result.axes = [
6311
6545
  ...result.axes,
6312
6546
  {
@@ -6314,26 +6548,16 @@ const yLinearPrimary = (spec, context)=>{
6314
6548
  id,
6315
6549
  seriesId,
6316
6550
  type: 'linear',
6317
- orient: 'left',
6318
- sync: {
6319
- axisId: `${datasetReshapeInfo[0].id}-secondary-axis`,
6320
- tickAlign: false,
6321
- zeroAlign: true
6322
- }
6551
+ orient: 'left'
6323
6552
  }
6324
6553
  ];
6325
6554
  return result;
6326
6555
  }
6327
- const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10 } = config;
6556
+ const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10 } = yAxisConfig;
6328
6557
  const linearAxis = {
6329
6558
  visible,
6330
6559
  id,
6331
6560
  seriesId,
6332
- sync: {
6333
- axisId: `${datasetReshapeInfo[0].id}-secondary-axis`,
6334
- tickAlign: false,
6335
- zeroAlign: true
6336
- },
6337
6561
  type: log ? 'log' : 'linear',
6338
6562
  base: logBase,
6339
6563
  orient: 'left',
@@ -6402,12 +6626,22 @@ const yLinearSecondary = (spec, context)=>{
6402
6626
  const { locale, datasetReshapeInfo } = advancedVSeed;
6403
6627
  const index = datasetReshapeInfo[0].index;
6404
6628
  const secondaryYAxis = advancedVSeed.config?.[chartType]?.secondaryYAxis;
6405
- const config = Array.isArray(secondaryYAxis) ? secondaryYAxis[index] || secondaryYAxis[0] : secondaryYAxis;
6629
+ const yAxisConfig = Array.isArray(secondaryYAxis) ? secondaryYAxis[index] || secondaryYAxis[0] : secondaryYAxis;
6630
+ const alignTicks = advancedVSeed.config?.[chartType]?.alignTicks;
6631
+ const alignTicksConfig = Array.isArray(alignTicks) ? alignTicks[index] || alignTicks[0] : alignTicks;
6406
6632
  if ((0, external_remeda_namespaceObject.isNullish)(datasetReshapeInfo[0].foldInfoList?.[1])) return result;
6633
+ const sync = {
6634
+ axisId: `${datasetReshapeInfo[0].id}-primary-axis`,
6635
+ zeroAlign: true
6636
+ };
6407
6637
  const id = `${datasetReshapeInfo[0].id}-secondary-axis`;
6408
- const seriesId = `${datasetReshapeInfo[0].id}-secondary-series`;
6638
+ const seriesIds = [
6639
+ `${datasetReshapeInfo[0].id}-primary-series`,
6640
+ `${datasetReshapeInfo[0].id}-secondary-series`
6641
+ ];
6642
+ const seriesId = alignTicksConfig ? seriesIds : seriesIds[1];
6409
6643
  if (!result.axes) result.axes = [];
6410
- if (!config) {
6644
+ if (!yAxisConfig) {
6411
6645
  result.axes = [
6412
6646
  ...result.axes,
6413
6647
  {
@@ -6415,16 +6649,18 @@ const yLinearSecondary = (spec, context)=>{
6415
6649
  id,
6416
6650
  seriesId,
6417
6651
  type: 'linear',
6418
- orient: 'right'
6652
+ orient: 'right',
6653
+ sync
6419
6654
  }
6420
6655
  ];
6421
6656
  return result;
6422
6657
  }
6423
- const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10 } = config;
6658
+ const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10 } = yAxisConfig;
6424
6659
  const linearAxis = {
6425
6660
  visible,
6426
6661
  id,
6427
6662
  seriesId,
6663
+ sync,
6428
6664
  type: log ? 'log' : 'linear',
6429
6665
  base: logBase,
6430
6666
  orient: 'right',
@@ -6485,7 +6721,7 @@ const yLinearSecondary = (spec, context)=>{
6485
6721
  return result;
6486
6722
  };
6487
6723
  const dualAxis = [
6488
- series([
6724
+ seriesDualAxis([
6489
6725
  initDualAxisPrimary,
6490
6726
  dualChartTypePrimary,
6491
6727
  datasetPrimary,
@@ -6528,7 +6764,7 @@ const pivotDualAxis = [
6528
6764
  pivotIndicators_pivotIndicatorsAsRow,
6529
6765
  datasetPivot,
6530
6766
  pivotIndicators_pivotIndicators([
6531
- series([
6767
+ seriesDualAxis([
6532
6768
  initDualAxisPrimary,
6533
6769
  dualChartTypePrimary,
6534
6770
  datasetPrimary,
@@ -7922,7 +8158,8 @@ const lightTheme = ()=>{
7922
8158
  hoverHeaderBackgroundColor: '#D9DDE4',
7923
8159
  hoverHeaderInlineBackgroundColor: '#D9DDE455',
7924
8160
  selectedBorderColor: '#4080ff',
7925
- selectedBackgroundColor: '#bedaff33'
8161
+ selectedBackgroundColor: '#bedaff33',
8162
+ backgroundColor: 'transparent'
7926
8163
  };
7927
8164
  return {
7928
8165
  config: {
@@ -7942,8 +8179,8 @@ const lightTheme = ()=>{
7942
8179
  stackCornerRadius: [
7943
8180
  4,
7944
8181
  4,
7945
- 0,
7946
- 0
8182
+ 4,
8183
+ 4
7947
8184
  ]
7948
8185
  },
7949
8186
  columnParallel: {
@@ -7954,8 +8191,8 @@ const lightTheme = ()=>{
7954
8191
  stackCornerRadius: [
7955
8192
  4,
7956
8193
  4,
7957
- 0,
7958
- 0
8194
+ 4,
8195
+ 4
7959
8196
  ]
7960
8197
  },
7961
8198
  columnPercent: {
@@ -7966,8 +8203,8 @@ const lightTheme = ()=>{
7966
8203
  stackCornerRadius: [
7967
8204
  4,
7968
8205
  4,
7969
- 0,
7970
- 0
8206
+ 4,
8207
+ 4
7971
8208
  ]
7972
8209
  },
7973
8210
  bar: {
@@ -7976,10 +8213,10 @@ const lightTheme = ()=>{
7976
8213
  yAxis: barBandAxis,
7977
8214
  crosshairRect,
7978
8215
  stackCornerRadius: [
7979
- 0,
7980
8216
  4,
7981
8217
  4,
7982
- 0
8218
+ 4,
8219
+ 4
7983
8220
  ]
7984
8221
  },
7985
8222
  barParallel: {
@@ -7988,10 +8225,10 @@ const lightTheme = ()=>{
7988
8225
  yAxis: barBandAxis,
7989
8226
  crosshairRect,
7990
8227
  stackCornerRadius: [
7991
- 0,
7992
8228
  4,
7993
8229
  4,
7994
- 0
8230
+ 4,
8231
+ 4
7995
8232
  ]
7996
8233
  },
7997
8234
  barPercent: {
@@ -8000,10 +8237,10 @@ const lightTheme = ()=>{
8000
8237
  yAxis: barBandAxis,
8001
8238
  crosshairRect,
8002
8239
  stackCornerRadius: [
8003
- 0,
8004
8240
  4,
8005
8241
  4,
8006
- 0
8242
+ 4,
8243
+ 4
8007
8244
  ]
8008
8245
  },
8009
8246
  area: {
@@ -8280,8 +8517,8 @@ const darkTheme = ()=>{
8280
8517
  stackCornerRadius: [
8281
8518
  4,
8282
8519
  4,
8283
- 0,
8284
- 0
8520
+ 4,
8521
+ 4
8285
8522
  ]
8286
8523
  },
8287
8524
  columnParallel: {
@@ -8292,8 +8529,8 @@ const darkTheme = ()=>{
8292
8529
  stackCornerRadius: [
8293
8530
  4,
8294
8531
  4,
8295
- 0,
8296
- 0
8532
+ 4,
8533
+ 4
8297
8534
  ]
8298
8535
  },
8299
8536
  columnPercent: {
@@ -8304,8 +8541,8 @@ const darkTheme = ()=>{
8304
8541
  stackCornerRadius: [
8305
8542
  4,
8306
8543
  4,
8307
- 0,
8308
- 0
8544
+ 4,
8545
+ 4
8309
8546
  ]
8310
8547
  },
8311
8548
  bar: {
@@ -8326,10 +8563,10 @@ const darkTheme = ()=>{
8326
8563
  yAxis: barBandAxis,
8327
8564
  crosshairRect: crosshairRect,
8328
8565
  stackCornerRadius: [
8329
- 0,
8330
8566
  4,
8331
8567
  4,
8332
- 0
8568
+ 4,
8569
+ 4
8333
8570
  ]
8334
8571
  },
8335
8572
  barPercent: {
@@ -8338,10 +8575,10 @@ const darkTheme = ()=>{
8338
8575
  yAxis: barBandAxis,
8339
8576
  crosshairRect: crosshairRect,
8340
8577
  stackCornerRadius: [
8341
- 0,
8342
8578
  4,
8343
8579
  4,
8344
- 0
8580
+ 4,
8581
+ 4
8345
8582
  ]
8346
8583
  },
8347
8584
  area: {
@@ -8478,6 +8715,9 @@ const updateAdvanced = (chartType, advancedPipe)=>{
8478
8715
  const updateSpec = (chartType, specPipe)=>{
8479
8716
  Builder._customSpecPipe[chartType] = specPipe;
8480
8717
  };
8718
+ const isDimension = (dimension)=>!('children' in dimension);
8719
+ const isDimensionGroup = (dimension)=>'children' in dimension;
8720
+ const isDimensions = (dimensions)=>dimensions.every(isDimension);
8481
8721
  const external_zod_namespaceObject = require("zod");
8482
8722
  const zChartType = external_zod_namespaceObject.z["enum"]([
8483
8723
  'table',
@@ -8605,117 +8845,117 @@ const zDatasetReshapeInfo = external_zod_namespaceObject.z.array(external_zod_na
8605
8845
  id: external_zod_namespaceObject.z.string(),
8606
8846
  index: external_zod_namespaceObject.z.number(),
8607
8847
  foldInfo: zFoldInfo,
8608
- foldInfoList: external_zod_namespaceObject.z.array(zFoldInfo).optional(),
8848
+ foldInfoList: external_zod_namespaceObject.z.array(zFoldInfo).nullish(),
8609
8849
  unfoldInfo: zUnfoldInfo
8610
8850
  }));
8611
8851
  const zEncoding = external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.object({
8612
- x: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8613
- y: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8614
- color: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8615
- group: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8616
- angle: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8617
- radius: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8618
- tooltip: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8619
- size: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional()
8852
+ x: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8853
+ y: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8854
+ color: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8855
+ group: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8856
+ angle: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8857
+ radius: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8858
+ tooltip: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8859
+ size: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish()
8620
8860
  }));
8621
8861
  const zXBandAxis = external_zod_namespaceObject.z.object({
8622
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8623
- labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).optional(),
8624
- labelAutoHideGap: external_zod_namespaceObject.z.number().default(0).optional(),
8625
- labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).optional(),
8862
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8863
+ labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8864
+ labelAutoHideGap: external_zod_namespaceObject.z.number().default(0).nullish(),
8865
+ labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8626
8866
  labelAutoRotateAngleRange: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number()).default([
8627
8867
  0,
8628
8868
  -45,
8629
8869
  -90
8630
- ]).optional(),
8631
- labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).optional(),
8632
- labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).optional(),
8870
+ ]).nullish(),
8871
+ labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8872
+ labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).nullish(),
8633
8873
  label: external_zod_namespaceObject.z.object({
8634
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8635
- labelColor: external_zod_namespaceObject.z.string().default('#797B85').optional(),
8636
- labelFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8637
- labelFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
8638
- labelAngle: external_zod_namespaceObject.z.number().default(0).optional()
8639
- }).optional(),
8874
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8875
+ labelColor: external_zod_namespaceObject.z.string().default('#797B85').nullish(),
8876
+ labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
8877
+ labelFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
8878
+ labelAngle: external_zod_namespaceObject.z.number().default(0).nullish()
8879
+ }).nullish(),
8640
8880
  line: external_zod_namespaceObject.z.object({
8641
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8642
- lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8643
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional()
8644
- }).optional(),
8881
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8882
+ lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8883
+ lineWidth: external_zod_namespaceObject.z.number().default(1).nullish()
8884
+ }).nullish(),
8645
8885
  tick: external_zod_namespaceObject.z.object({
8646
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8647
- tickInside: external_zod_namespaceObject.z.boolean().default(false).optional(),
8648
- tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8649
- tickSize: external_zod_namespaceObject.z.number().default(4).optional()
8650
- }).optional(),
8886
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8887
+ tickInside: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8888
+ tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8889
+ tickSize: external_zod_namespaceObject.z.number().default(4).nullish()
8890
+ }).nullish(),
8651
8891
  title: external_zod_namespaceObject.z.object({
8652
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8653
- titleText: external_zod_namespaceObject.z.string().default('').optional(),
8654
- titleColor: external_zod_namespaceObject.z.string().default('#646A73').optional(),
8655
- titleFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8656
- titleFontWeight: external_zod_namespaceObject.z.number().default(400).optional()
8657
- }).optional(),
8892
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8893
+ titleText: external_zod_namespaceObject.z.string().default('').nullish(),
8894
+ titleColor: external_zod_namespaceObject.z.string().default('#646A73').nullish(),
8895
+ titleFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
8896
+ titleFontWeight: external_zod_namespaceObject.z.number().default(400).nullish()
8897
+ }).nullish(),
8658
8898
  grid: external_zod_namespaceObject.z.object({
8659
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8660
- gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').optional(),
8661
- gridWidth: external_zod_namespaceObject.z.number().default(0.5).optional()
8662
- }).optional()
8899
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8900
+ gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
8901
+ gridWidth: external_zod_namespaceObject.z.number().default(0.5).nullish()
8902
+ }).nullish()
8663
8903
  });
8664
8904
  const zYBandAxis = zXBandAxis;
8665
8905
  const zXLinearAxis = external_zod_namespaceObject.z.object({
8666
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8667
- min: external_zod_namespaceObject.z.number().optional(),
8668
- max: external_zod_namespaceObject.z.number().optional(),
8669
- nice: external_zod_namespaceObject.z.boolean().default(true).optional(),
8670
- zero: external_zod_namespaceObject.z.boolean().default(true).optional(),
8671
- log: external_zod_namespaceObject.z.boolean().default(false).optional(),
8672
- logBase: external_zod_namespaceObject.z.number().default(10).optional(),
8673
- inverse: external_zod_namespaceObject.z.boolean().default(false).optional(),
8906
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8907
+ min: external_zod_namespaceObject.z.number().nullish(),
8908
+ max: external_zod_namespaceObject.z.number().nullish(),
8909
+ nice: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8910
+ zero: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8911
+ log: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8912
+ logBase: external_zod_namespaceObject.z.number().default(10).nullish(),
8913
+ inverse: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8674
8914
  label: external_zod_namespaceObject.z.object({
8675
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8676
- labelColor: external_zod_namespaceObject.z.string().default('#797B85').optional(),
8677
- labelFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8678
- labelFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
8679
- labelAngle: external_zod_namespaceObject.z.number().default(0).optional()
8680
- }).optional(),
8915
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8916
+ labelColor: external_zod_namespaceObject.z.string().default('#797B85').nullish(),
8917
+ labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
8918
+ labelFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
8919
+ labelAngle: external_zod_namespaceObject.z.number().default(0).nullish()
8920
+ }).nullish(),
8681
8921
  line: external_zod_namespaceObject.z.object({
8682
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8683
- lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8684
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional()
8685
- }).optional(),
8922
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8923
+ lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8924
+ lineWidth: external_zod_namespaceObject.z.number().default(1).nullish()
8925
+ }).nullish(),
8686
8926
  tick: external_zod_namespaceObject.z.object({
8687
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8688
- tickInside: external_zod_namespaceObject.z.boolean().default(false).optional(),
8689
- tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8690
- tickSize: external_zod_namespaceObject.z.number().default(4).optional()
8691
- }).optional(),
8927
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8928
+ tickInside: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8929
+ tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8930
+ tickSize: external_zod_namespaceObject.z.number().default(4).nullish()
8931
+ }).nullish(),
8692
8932
  title: external_zod_namespaceObject.z.object({
8693
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8694
- titleText: external_zod_namespaceObject.z.string().default('').optional(),
8695
- titleColor: external_zod_namespaceObject.z.string().default('#646A73').optional(),
8696
- titleFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8697
- titleFontWeight: external_zod_namespaceObject.z.number().default(400).optional()
8698
- }).optional(),
8933
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8934
+ titleText: external_zod_namespaceObject.z.string().default('').nullish(),
8935
+ titleColor: external_zod_namespaceObject.z.string().default('#646A73').nullish(),
8936
+ titleFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
8937
+ titleFontWeight: external_zod_namespaceObject.z.number().default(400).nullish()
8938
+ }).nullish(),
8699
8939
  grid: external_zod_namespaceObject.z.object({
8700
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8701
- gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').optional(),
8702
- gridWidth: external_zod_namespaceObject.z.number().default(0.5).optional()
8703
- }).optional()
8940
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8941
+ gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
8942
+ gridWidth: external_zod_namespaceObject.z.number().default(0.5).nullish()
8943
+ }).nullish()
8704
8944
  });
8705
8945
  const zYLinearAxis = zXLinearAxis;
8706
8946
  const zCrosshairLine = external_zod_namespaceObject.z.object({
8707
- visible: external_zod_namespaceObject.z.boolean().optional(),
8708
- lineColor: external_zod_namespaceObject.z.string().optional(),
8709
- labelColor: external_zod_namespaceObject.z.string().optional(),
8710
- labelVisible: external_zod_namespaceObject.z.boolean().optional(),
8711
- labelBackgroundColor: external_zod_namespaceObject.z.string().optional()
8947
+ visible: external_zod_namespaceObject.z.boolean().nullish(),
8948
+ lineColor: external_zod_namespaceObject.z.string().nullish(),
8949
+ labelColor: external_zod_namespaceObject.z.string().nullish(),
8950
+ labelVisible: external_zod_namespaceObject.z.boolean().nullish(),
8951
+ labelBackgroundColor: external_zod_namespaceObject.z.string().nullish()
8712
8952
  });
8713
8953
  const zCrosshairRect = external_zod_namespaceObject.z.object({
8714
- visible: external_zod_namespaceObject.z.boolean().optional(),
8715
- rectColor: external_zod_namespaceObject.z.string().optional(),
8716
- labelColor: external_zod_namespaceObject.z.string().optional(),
8717
- labelVisible: external_zod_namespaceObject.z.boolean().optional(),
8718
- labelBackgroundColor: external_zod_namespaceObject.z.string().optional()
8954
+ visible: external_zod_namespaceObject.z.boolean().nullish(),
8955
+ rectColor: external_zod_namespaceObject.z.string().nullish(),
8956
+ labelColor: external_zod_namespaceObject.z.string().nullish(),
8957
+ labelVisible: external_zod_namespaceObject.z.boolean().nullish(),
8958
+ labelBackgroundColor: external_zod_namespaceObject.z.string().nullish()
8719
8959
  });
8720
8960
  const zStackCornerRadius = external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number())).default([
8721
8961
  3,
@@ -8723,21 +8963,21 @@ const zStackCornerRadius = external_zod_namespaceObject.z.number().or(external_z
8723
8963
  0,
8724
8964
  0
8725
8965
  ]);
8726
- const zBackgroundColor = external_zod_namespaceObject.z.string().default('transparent').optional();
8966
+ const zBackgroundColor = external_zod_namespaceObject.z.string().default('transparent').nullish();
8727
8967
  const zColor = external_zod_namespaceObject.z.object({
8728
- colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8729
- colorMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.string()).optional()
8968
+ colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8969
+ colorMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.string()).nullish()
8730
8970
  });
8731
8971
  const zLinearColor = external_zod_namespaceObject.z.object({
8732
- colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional()
8972
+ colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish()
8733
8973
  });
8734
8974
  const zLabel = external_zod_namespaceObject.z.object({
8735
- enable: external_zod_namespaceObject.z.boolean().default(true).optional()
8975
+ enable: external_zod_namespaceObject.z.boolean().default(true).nullish()
8736
8976
  });
8737
8977
  const zLegend = external_zod_namespaceObject.z.object({
8738
- enable: external_zod_namespaceObject.z.boolean().default(true).optional(),
8739
- border: external_zod_namespaceObject.z.boolean().default(true).optional(),
8740
- maxSize: external_zod_namespaceObject.z.number().default(1).optional(),
8978
+ enable: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8979
+ border: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8980
+ maxSize: external_zod_namespaceObject.z.number().default(1).nullish(),
8741
8981
  shapeType: external_zod_namespaceObject.z["enum"]([
8742
8982
  'circle',
8743
8983
  'cross',
@@ -8761,7 +9001,7 @@ const zLegend = external_zod_namespaceObject.z.object({
8761
9001
  'arrowRight',
8762
9002
  'rectRound',
8763
9003
  'roundLine'
8764
- ]).default('rectRound').optional(),
9004
+ ]).default('rectRound').nullish(),
8765
9005
  position: external_zod_namespaceObject.z["enum"]([
8766
9006
  'left',
8767
9007
  'leftTop',
@@ -8783,10 +9023,10 @@ const zLegend = external_zod_namespaceObject.z.object({
8783
9023
  'bottomRight',
8784
9024
  'bl',
8785
9025
  'br'
8786
- ]).default('bottom').optional(),
8787
- labelFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8788
- labelFontColor: external_zod_namespaceObject.z.string().default('#fff').optional(),
8789
- labelFontWeight: external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.string()).default(400).optional()
9026
+ ]).default('bottom').nullish(),
9027
+ labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9028
+ labelFontColor: external_zod_namespaceObject.z.string().default('#fff').nullish(),
9029
+ labelFontWeight: external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.string()).default(400).nullish()
8790
9030
  });
8791
9031
  const zColorLegend = external_zod_namespaceObject.z.object({
8792
9032
  position: external_zod_namespaceObject.z["enum"]([
@@ -8810,194 +9050,196 @@ const zColorLegend = external_zod_namespaceObject.z.object({
8810
9050
  'bottomRight',
8811
9051
  'bl',
8812
9052
  'br'
8813
- ]).default('bottom').optional(),
8814
- enable: external_zod_namespaceObject.z.boolean().default(true).optional()
9053
+ ]).default('bottom').nullish(),
9054
+ enable: external_zod_namespaceObject.z.boolean().default(true).nullish()
8815
9055
  });
8816
9056
  const zTooltip = external_zod_namespaceObject.z.object({
8817
- enable: external_zod_namespaceObject.z.boolean().default(true).optional()
9057
+ enable: external_zod_namespaceObject.z.boolean().default(true).nullish()
8818
9058
  });
8819
9059
  const zTableConfig = external_zod_namespaceObject.z.object({
8820
- borderColor: external_zod_namespaceObject.z.string().optional(),
8821
- bodyFontSize: external_zod_namespaceObject.z.number().optional(),
8822
- bodyFontColor: external_zod_namespaceObject.z.string().optional(),
8823
- bodyBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8824
- hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8825
- hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8826
- headerFontSize: external_zod_namespaceObject.z.number().optional(),
8827
- headerFontColor: external_zod_namespaceObject.z.string().optional(),
8828
- headerBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8829
- hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8830
- hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8831
- selectedBorderColor: external_zod_namespaceObject.z.string().optional(),
8832
- selectedBackgroundColor: external_zod_namespaceObject.z.string().optional()
9060
+ backgroundColor: zBackgroundColor.nullish(),
9061
+ borderColor: external_zod_namespaceObject.z.string().nullish(),
9062
+ bodyFontSize: external_zod_namespaceObject.z.number().nullish(),
9063
+ bodyFontColor: external_zod_namespaceObject.z.string().nullish(),
9064
+ bodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9065
+ hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9066
+ hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9067
+ headerFontSize: external_zod_namespaceObject.z.number().nullish(),
9068
+ headerFontColor: external_zod_namespaceObject.z.string().nullish(),
9069
+ headerBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9070
+ hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9071
+ hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9072
+ selectedBorderColor: external_zod_namespaceObject.z.string().nullish(),
9073
+ selectedBackgroundColor: external_zod_namespaceObject.z.string().nullish()
8833
9074
  });
8834
9075
  const zPivotTableConfig = zTableConfig;
8835
9076
  const zLineConfig = external_zod_namespaceObject.z.object({
8836
- backgroundColor: zBackgroundColor.optional(),
8837
- label: zLabel.optional(),
8838
- color: zColor.optional(),
8839
- tooltip: zTooltip.optional(),
8840
- legend: zLegend.optional(),
8841
- xAxis: zXBandAxis.optional(),
8842
- yAxis: zYLinearAxis.optional(),
8843
- crosshairLine: zCrosshairLine.optional()
9077
+ backgroundColor: zBackgroundColor.nullish(),
9078
+ label: zLabel.nullish(),
9079
+ color: zColor.nullish(),
9080
+ tooltip: zTooltip.nullish(),
9081
+ legend: zLegend.nullish(),
9082
+ xAxis: zXBandAxis.nullish(),
9083
+ yAxis: zYLinearAxis.nullish(),
9084
+ crosshairLine: zCrosshairLine.nullish()
8844
9085
  });
8845
9086
  const zColumnConfig = external_zod_namespaceObject.z.object({
8846
- backgroundColor: zBackgroundColor.optional(),
8847
- label: zLabel.optional(),
8848
- color: zColor.optional(),
8849
- tooltip: zTooltip.optional(),
8850
- legend: zLegend.optional(),
8851
- xAxis: zXBandAxis.optional(),
8852
- yAxis: zYLinearAxis.optional(),
8853
- crosshairRect: zCrosshairRect.optional(),
8854
- stackCornerRadius: zStackCornerRadius.optional()
9087
+ backgroundColor: zBackgroundColor.nullish(),
9088
+ label: zLabel.nullish(),
9089
+ color: zColor.nullish(),
9090
+ tooltip: zTooltip.nullish(),
9091
+ legend: zLegend.nullish(),
9092
+ xAxis: zXBandAxis.nullish(),
9093
+ yAxis: zYLinearAxis.nullish(),
9094
+ crosshairRect: zCrosshairRect.nullish(),
9095
+ stackCornerRadius: zStackCornerRadius.nullish()
8855
9096
  });
8856
9097
  const zColumnParallelConfig = zColumnConfig;
8857
9098
  const zColumnPercentConfig = zColumnConfig;
8858
9099
  const zBarConfig = external_zod_namespaceObject.z.object({
8859
- backgroundColor: zBackgroundColor.optional(),
8860
- label: zLabel.optional(),
8861
- color: zColor.optional(),
8862
- tooltip: zTooltip.optional(),
8863
- legend: zLegend.optional(),
8864
- xAxis: zXLinearAxis.optional(),
8865
- yAxis: zYBandAxis.optional(),
8866
- crosshairRect: zCrosshairRect.optional(),
8867
- stackCornerRadius: zStackCornerRadius.optional()
9100
+ backgroundColor: zBackgroundColor.nullish(),
9101
+ label: zLabel.nullish(),
9102
+ color: zColor.nullish(),
9103
+ tooltip: zTooltip.nullish(),
9104
+ legend: zLegend.nullish(),
9105
+ xAxis: zXLinearAxis.nullish(),
9106
+ yAxis: zYBandAxis.nullish(),
9107
+ crosshairRect: zCrosshairRect.nullish(),
9108
+ stackCornerRadius: zStackCornerRadius.nullish()
8868
9109
  });
8869
9110
  const zBarParallelConfig = zBarConfig;
8870
9111
  const zBarPercentConfig = zBarConfig;
8871
9112
  const zAreaConfig = external_zod_namespaceObject.z.object({
8872
- backgroundColor: zBackgroundColor.optional(),
8873
- label: zLabel.optional(),
8874
- color: zColor.optional(),
8875
- tooltip: zTooltip.optional(),
8876
- legend: zLegend.optional(),
8877
- xAxis: zXBandAxis.optional(),
8878
- yAxis: zYLinearAxis.optional(),
8879
- crosshairLine: zCrosshairLine.optional()
9113
+ backgroundColor: zBackgroundColor.nullish(),
9114
+ label: zLabel.nullish(),
9115
+ color: zColor.nullish(),
9116
+ tooltip: zTooltip.nullish(),
9117
+ legend: zLegend.nullish(),
9118
+ xAxis: zXBandAxis.nullish(),
9119
+ yAxis: zYLinearAxis.nullish(),
9120
+ crosshairLine: zCrosshairLine.nullish()
8880
9121
  });
8881
9122
  const zAreaPercentConfig = zAreaConfig;
8882
9123
  const zAreaRangeConfig = zAreaConfig;
8883
9124
  const zDualAxisConfig = external_zod_namespaceObject.z.object({
8884
- backgroundColor: zBackgroundColor.optional(),
8885
- label: zLabel.optional(),
8886
- color: zColor.optional(),
8887
- tooltip: zTooltip.optional(),
8888
- legend: zLegend.optional(),
8889
- dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).optional(),
8890
- primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).optional(),
8891
- secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).optional(),
8892
- xAxis: zXBandAxis.optional(),
8893
- crosshairRect: zCrosshairRect.optional()
9125
+ backgroundColor: zBackgroundColor.nullish(),
9126
+ label: zLabel.nullish(),
9127
+ color: zColor.nullish(),
9128
+ tooltip: zTooltip.nullish(),
9129
+ legend: zLegend.nullish(),
9130
+ dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).nullish(),
9131
+ alignTicks: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.boolean()).or(external_zod_namespaceObject.z.boolean()).nullish(),
9132
+ primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9133
+ secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9134
+ xAxis: zXBandAxis.nullish(),
9135
+ crosshairRect: zCrosshairRect.nullish()
8894
9136
  });
8895
9137
  const zScatterConfig = external_zod_namespaceObject.z.object({
8896
- backgroundColor: zBackgroundColor.optional(),
8897
- label: zLabel.optional(),
8898
- color: zColor.optional(),
8899
- tooltip: zTooltip.optional(),
8900
- legend: zLegend.optional(),
8901
- xAxis: zXLinearAxis.optional(),
8902
- yAxis: zYLinearAxis.optional(),
8903
- crosshairLine: zCrosshairLine.optional()
9138
+ backgroundColor: zBackgroundColor.nullish(),
9139
+ label: zLabel.nullish(),
9140
+ color: zColor.nullish(),
9141
+ tooltip: zTooltip.nullish(),
9142
+ legend: zLegend.nullish(),
9143
+ xAxis: zXLinearAxis.nullish(),
9144
+ yAxis: zYLinearAxis.nullish(),
9145
+ crosshairLine: zCrosshairLine.nullish()
8904
9146
  });
8905
9147
  const zRoseConfig = external_zod_namespaceObject.z.object({
8906
- backgroundColor: zBackgroundColor.optional(),
8907
- label: zLabel.optional(),
8908
- color: zColor.optional(),
8909
- tooltip: zTooltip.optional(),
8910
- legend: zLegend.optional()
9148
+ backgroundColor: zBackgroundColor.nullish(),
9149
+ label: zLabel.nullish(),
9150
+ color: zColor.nullish(),
9151
+ tooltip: zTooltip.nullish(),
9152
+ legend: zLegend.nullish()
8911
9153
  });
8912
9154
  const zRoseParallelConfig = zRoseConfig;
8913
9155
  const zPieConfig = external_zod_namespaceObject.z.object({
8914
- backgroundColor: zBackgroundColor.optional(),
8915
- label: zLabel.optional(),
8916
- color: zColor.optional(),
8917
- tooltip: zTooltip.optional(),
8918
- legend: zLegend.optional()
9156
+ backgroundColor: zBackgroundColor.nullish(),
9157
+ label: zLabel.nullish(),
9158
+ color: zColor.nullish(),
9159
+ tooltip: zTooltip.nullish(),
9160
+ legend: zLegend.nullish()
8919
9161
  });
8920
9162
  const zDonutConfig = zPieConfig;
8921
9163
  const zRadarConfig = zPieConfig;
8922
9164
  const zFunnelConfig = zPieConfig;
8923
9165
  const zHeatmapConfig = zPieConfig;
8924
9166
  const zConfig = external_zod_namespaceObject.z.object({
8925
- table: zTableConfig.optional(),
8926
- pivotTable: zPivotTableConfig.optional(),
8927
- line: zLineConfig.optional(),
8928
- column: zColumnConfig.optional(),
8929
- columnParallel: zColumnParallelConfig.optional(),
8930
- columnPercent: zColumnPercentConfig.optional(),
8931
- bar: zBarConfig.optional(),
8932
- barParallel: zBarParallelConfig.optional(),
8933
- barPercent: zBarPercentConfig.optional(),
8934
- area: zAreaConfig.optional(),
8935
- areaPercent: zAreaPercentConfig.optional(),
8936
- areaRange: zAreaRangeConfig.optional(),
8937
- scatter: zScatterConfig.optional(),
8938
- dualAxis: zDualAxisConfig.optional(),
8939
- rose: zRoseConfig.optional(),
8940
- roseParallel: zRoseParallelConfig.optional(),
8941
- pie: zPieConfig.optional(),
8942
- donut: zDonutConfig.optional(),
8943
- radar: zRadarConfig.optional(),
8944
- funnel: zFunnelConfig.optional(),
8945
- heatmap: zHeatmapConfig.optional()
9167
+ table: zTableConfig.nullish(),
9168
+ pivotTable: zPivotTableConfig.nullish(),
9169
+ line: zLineConfig.nullish(),
9170
+ column: zColumnConfig.nullish(),
9171
+ columnParallel: zColumnParallelConfig.nullish(),
9172
+ columnPercent: zColumnPercentConfig.nullish(),
9173
+ bar: zBarConfig.nullish(),
9174
+ barParallel: zBarParallelConfig.nullish(),
9175
+ barPercent: zBarPercentConfig.nullish(),
9176
+ area: zAreaConfig.nullish(),
9177
+ areaPercent: zAreaPercentConfig.nullish(),
9178
+ areaRange: zAreaRangeConfig.nullish(),
9179
+ scatter: zScatterConfig.nullish(),
9180
+ dualAxis: zDualAxisConfig.nullish(),
9181
+ rose: zRoseConfig.nullish(),
9182
+ roseParallel: zRoseParallelConfig.nullish(),
9183
+ pie: zPieConfig.nullish(),
9184
+ donut: zDonutConfig.nullish(),
9185
+ radar: zRadarConfig.nullish(),
9186
+ funnel: zFunnelConfig.nullish(),
9187
+ heatmap: zHeatmapConfig.nullish()
8946
9188
  });
8947
9189
  const zAxis = external_zod_namespaceObject.z.object({
8948
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8949
- min: external_zod_namespaceObject.z.number().optional(),
8950
- max: external_zod_namespaceObject.z.number().optional(),
8951
- nice: external_zod_namespaceObject.z.boolean().default(true).optional(),
8952
- zero: external_zod_namespaceObject.z.boolean().default(true).optional(),
8953
- inverse: external_zod_namespaceObject.z.boolean().default(false).optional(),
8954
- log: external_zod_namespaceObject.z.boolean().default(false).optional(),
8955
- logBase: external_zod_namespaceObject.z.number().default(10).optional(),
8956
- labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).optional(),
8957
- labelAutoHideGap: external_zod_namespaceObject.z.number().default(4).optional(),
8958
- labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).optional(),
9190
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9191
+ min: external_zod_namespaceObject.z.number().nullish(),
9192
+ max: external_zod_namespaceObject.z.number().nullish(),
9193
+ nice: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9194
+ zero: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9195
+ inverse: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9196
+ log: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9197
+ logBase: external_zod_namespaceObject.z.number().default(10).nullish(),
9198
+ labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9199
+ labelAutoHideGap: external_zod_namespaceObject.z.number().default(4).nullish(),
9200
+ labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8959
9201
  labelAutoRotateAngleRange: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number()).default([
8960
9202
  0,
8961
9203
  -45,
8962
9204
  -90
8963
- ]).optional(),
8964
- labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).optional(),
8965
- labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).optional(),
9205
+ ]).nullish(),
9206
+ labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9207
+ labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).nullish(),
8966
9208
  label: external_zod_namespaceObject.z.object({
8967
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8968
- labelColor: external_zod_namespaceObject.z.string().default('#797B85').optional(),
8969
- labelFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8970
- labelFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
8971
- labelAngle: external_zod_namespaceObject.z.number().default(0).optional()
8972
- }).optional(),
9209
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9210
+ labelColor: external_zod_namespaceObject.z.string().default('#797B85').nullish(),
9211
+ labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9212
+ labelFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9213
+ labelAngle: external_zod_namespaceObject.z.number().default(0).nullish()
9214
+ }).nullish(),
8973
9215
  line: external_zod_namespaceObject.z.object({
8974
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8975
- lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8976
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional()
8977
- }).optional(),
9216
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9217
+ lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
9218
+ lineWidth: external_zod_namespaceObject.z.number().default(1).nullish()
9219
+ }).nullish(),
8978
9220
  tick: external_zod_namespaceObject.z.object({
8979
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8980
- tickInside: external_zod_namespaceObject.z.boolean().default(false).optional(),
8981
- tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8982
- tickSize: external_zod_namespaceObject.z.number().default(4).optional()
8983
- }).optional(),
9221
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9222
+ tickInside: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9223
+ tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
9224
+ tickSize: external_zod_namespaceObject.z.number().default(4).nullish()
9225
+ }).nullish(),
8984
9226
  title: external_zod_namespaceObject.z.object({
8985
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8986
- titleText: external_zod_namespaceObject.z.string().default('').optional(),
8987
- titleColor: external_zod_namespaceObject.z.string().default('#646A73').optional(),
8988
- titleFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8989
- titleFontWeight: external_zod_namespaceObject.z.number().default(400).optional()
8990
- }).optional(),
9227
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9228
+ titleText: external_zod_namespaceObject.z.string().default('').nullish(),
9229
+ titleColor: external_zod_namespaceObject.z.string().default('#646A73').nullish(),
9230
+ titleFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9231
+ titleFontWeight: external_zod_namespaceObject.z.number().default(400).nullish()
9232
+ }).nullish(),
8991
9233
  grid: external_zod_namespaceObject.z.object({
8992
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8993
- gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').optional(),
8994
- gridWidth: external_zod_namespaceObject.z.number().default(0.5).optional()
8995
- }).optional()
9234
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9235
+ gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
9236
+ gridWidth: external_zod_namespaceObject.z.number().default(0.5).nullish()
9237
+ }).nullish()
8996
9238
  });
8997
9239
  const zCustomThemeConfig = external_zod_namespaceObject.z.object({
8998
- config: zConfig.optional()
9240
+ config: zConfig.nullish()
8999
9241
  });
9000
- const zCustomTheme = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), zCustomThemeConfig).optional();
9242
+ const zCustomTheme = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), zCustomThemeConfig).nullish();
9001
9243
  const zTheme = external_zod_namespaceObject.z.string();
9002
9244
  const zSelector = external_zod_namespaceObject.z.union([
9003
9245
  external_zod_namespaceObject.z.string(),
@@ -9013,7 +9255,7 @@ const zSelector = external_zod_namespaceObject.z.union([
9013
9255
  '>=',
9014
9256
  '<=',
9015
9257
  'between'
9016
- ]).optional(),
9258
+ ]).nullish(),
9017
9259
  op: external_zod_namespaceObject.z["enum"]([
9018
9260
  '=',
9019
9261
  '==',
@@ -9023,7 +9265,7 @@ const zSelector = external_zod_namespaceObject.z.union([
9023
9265
  '>=',
9024
9266
  '<=',
9025
9267
  'between'
9026
- ]).optional(),
9268
+ ]).nullish(),
9027
9269
  value: external_zod_namespaceObject.z.union([
9028
9270
  external_zod_namespaceObject.z.string(),
9029
9271
  external_zod_namespaceObject.z.number(),
@@ -9038,11 +9280,11 @@ const zSelector = external_zod_namespaceObject.z.union([
9038
9280
  operator: external_zod_namespaceObject.z["enum"]([
9039
9281
  'in',
9040
9282
  'not in'
9041
- ]).optional(),
9283
+ ]).nullish(),
9042
9284
  op: external_zod_namespaceObject.z["enum"]([
9043
9285
  'in',
9044
9286
  'not in'
9045
- ]).optional(),
9287
+ ]).nullish(),
9046
9288
  value: external_zod_namespaceObject.z.union([
9047
9289
  external_zod_namespaceObject.z.string(),
9048
9290
  external_zod_namespaceObject.z.number(),
@@ -9058,103 +9300,103 @@ const zBarStyle = external_zod_namespaceObject.z.object({
9058
9300
  selector: external_zod_namespaceObject.z.union([
9059
9301
  zSelector,
9060
9302
  zSelectors
9061
- ]).optional(),
9062
- barColor: external_zod_namespaceObject.z.string().optional(),
9063
- barColorOpacity: external_zod_namespaceObject.z.number().optional(),
9064
- barBorderColor: external_zod_namespaceObject.z.string().optional(),
9065
- barBorderWidth: external_zod_namespaceObject.z.number().optional(),
9303
+ ]).nullish(),
9304
+ barColor: external_zod_namespaceObject.z.string().nullish(),
9305
+ barColorOpacity: external_zod_namespaceObject.z.number().nullish(),
9306
+ barBorderColor: external_zod_namespaceObject.z.string().nullish(),
9307
+ barBorderWidth: external_zod_namespaceObject.z.number().nullish(),
9066
9308
  barBorderStyle: external_zod_namespaceObject.z.union([
9067
9309
  external_zod_namespaceObject.z.literal('solid'),
9068
9310
  external_zod_namespaceObject.z.literal('dashed'),
9069
9311
  external_zod_namespaceObject.z.literal('dotted')
9070
- ]).optional(),
9312
+ ]).nullish(),
9071
9313
  barRadius: external_zod_namespaceObject.z.union([
9072
9314
  external_zod_namespaceObject.z.number(),
9073
9315
  external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number())
9074
- ]).optional()
9316
+ ]).nullish()
9075
9317
  });
9076
9318
  const zPointStyle = external_zod_namespaceObject.z.object({
9077
9319
  selector: external_zod_namespaceObject.z.union([
9078
9320
  zSelector,
9079
9321
  zSelectors
9080
- ]).optional(),
9081
- pointSize: external_zod_namespaceObject.z.number().optional(),
9082
- pointColor: external_zod_namespaceObject.z.string().optional(),
9083
- pointColorOpacity: external_zod_namespaceObject.z.number().optional(),
9084
- pointBorderColor: external_zod_namespaceObject.z.string().optional(),
9085
- pointBorderWidth: external_zod_namespaceObject.z.number().optional(),
9322
+ ]).nullish(),
9323
+ pointSize: external_zod_namespaceObject.z.number().nullish(),
9324
+ pointColor: external_zod_namespaceObject.z.string().nullish(),
9325
+ pointColorOpacity: external_zod_namespaceObject.z.number().nullish(),
9326
+ pointBorderColor: external_zod_namespaceObject.z.string().nullish(),
9327
+ pointBorderWidth: external_zod_namespaceObject.z.number().nullish(),
9086
9328
  pointBorderStyle: external_zod_namespaceObject.z.union([
9087
9329
  external_zod_namespaceObject.z["enum"]([
9088
9330
  'solid',
9089
9331
  'dashed',
9090
9332
  'dotted'
9091
9333
  ])
9092
- ]).optional()
9334
+ ]).nullish()
9093
9335
  });
9094
9336
  const zLineStyle = external_zod_namespaceObject.z.object({
9095
9337
  selector: external_zod_namespaceObject.z.union([
9096
9338
  zSelector,
9097
9339
  zSelectors
9098
- ]).optional(),
9099
- lineSmooth: external_zod_namespaceObject.z.boolean().optional(),
9100
- lineColor: external_zod_namespaceObject.z.string().optional(),
9101
- lineColorOpacity: external_zod_namespaceObject.z.number().optional(),
9102
- lineWidth: external_zod_namespaceObject.z.number().optional(),
9340
+ ]).nullish(),
9341
+ lineSmooth: external_zod_namespaceObject.z.boolean().nullish(),
9342
+ lineColor: external_zod_namespaceObject.z.string().nullish(),
9343
+ lineColorOpacity: external_zod_namespaceObject.z.number().nullish(),
9344
+ lineWidth: external_zod_namespaceObject.z.number().nullish(),
9103
9345
  lineStyle: external_zod_namespaceObject.z.union([
9104
9346
  external_zod_namespaceObject.z["enum"]([
9105
9347
  'solid',
9106
9348
  'dashed',
9107
9349
  'dotted'
9108
9350
  ])
9109
- ]).optional()
9351
+ ]).nullish()
9110
9352
  });
9111
9353
  const zAreaStyle = external_zod_namespaceObject.z.object({
9112
9354
  selector: external_zod_namespaceObject.z.union([
9113
9355
  zSelector,
9114
9356
  zSelectors
9115
- ]).optional(),
9116
- areaColor: external_zod_namespaceObject.z.string().optional(),
9117
- areaColorOpacity: external_zod_namespaceObject.z.number().optional()
9357
+ ]).nullish(),
9358
+ areaColor: external_zod_namespaceObject.z.string().nullish(),
9359
+ areaColorOpacity: external_zod_namespaceObject.z.number().nullish()
9118
9360
  });
9119
9361
  const zMarkStyle = external_zod_namespaceObject.z.object({
9120
- barStyle: zBarStyle.or(external_zod_namespaceObject.z.array(zBarStyle)).optional(),
9121
- pointStyle: zPointStyle.or(external_zod_namespaceObject.z.array(zPointStyle)).optional(),
9122
- lineStyle: zLineStyle.or(external_zod_namespaceObject.z.array(zLineStyle)).optional(),
9123
- areaStyle: zAreaStyle.or(external_zod_namespaceObject.z.array(zAreaStyle)).optional()
9362
+ barStyle: zBarStyle.or(external_zod_namespaceObject.z.array(zBarStyle)).nullish(),
9363
+ pointStyle: zPointStyle.or(external_zod_namespaceObject.z.array(zPointStyle)).nullish(),
9364
+ lineStyle: zLineStyle.or(external_zod_namespaceObject.z.array(zLineStyle)).nullish(),
9365
+ areaStyle: zAreaStyle.or(external_zod_namespaceObject.z.array(zAreaStyle)).nullish()
9124
9366
  });
9125
9367
  const zAnnotationPoint = external_zod_namespaceObject.z.object({
9126
9368
  selector: external_zod_namespaceObject.z.union([
9127
9369
  zSelector,
9128
9370
  zSelectors
9129
9371
  ]),
9130
- text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
9131
- textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
9132
- textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
9133
- textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
9372
+ text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
9373
+ textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
9374
+ textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9375
+ textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9134
9376
  textAlign: external_zod_namespaceObject.z["enum"]([
9135
9377
  'left',
9136
9378
  'right',
9137
9379
  'center'
9138
- ]).default('center').optional(),
9380
+ ]).default('center').nullish(),
9139
9381
  textBaseline: external_zod_namespaceObject.z["enum"]([
9140
9382
  'top',
9141
9383
  'middle',
9142
9384
  'bottom'
9143
- ]).default('middle').optional(),
9144
- backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9145
- backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9146
- backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
9147
- backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9148
- backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
9149
- backgroundPadding: external_zod_namespaceObject.z.number().optional(),
9150
- offsetY: external_zod_namespaceObject.z.number().default(0).optional(),
9151
- offsetX: external_zod_namespaceObject.z.number().default(0).optional()
9385
+ ]).default('middle').nullish(),
9386
+ textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9387
+ textBackgroundColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9388
+ textBackgroundBorderColor: external_zod_namespaceObject.z.string().nullish(),
9389
+ textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9390
+ textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9391
+ textBackgroundPadding: external_zod_namespaceObject.z.number().nullish(),
9392
+ offsetY: external_zod_namespaceObject.z.number().default(0).nullish(),
9393
+ offsetX: external_zod_namespaceObject.z.number().default(0).nullish()
9152
9394
  });
9153
9395
  const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
9154
9396
  selector: external_zod_namespaceObject.z.union([
9155
9397
  zSelector,
9156
9398
  zSelectors
9157
- ]).optional(),
9399
+ ]).nullish(),
9158
9400
  xValue: external_zod_namespaceObject.z.union([
9159
9401
  external_zod_namespaceObject.z.number(),
9160
9402
  external_zod_namespaceObject.z.string(),
@@ -9162,8 +9404,8 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
9162
9404
  external_zod_namespaceObject.z.number(),
9163
9405
  external_zod_namespaceObject.z.string()
9164
9406
  ]))
9165
- ]).optional(),
9166
- text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
9407
+ ]).nullish(),
9408
+ text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
9167
9409
  textPosition: external_zod_namespaceObject.z["enum"]([
9168
9410
  'outsideStart',
9169
9411
  'outsideEnd',
@@ -9171,42 +9413,40 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
9171
9413
  'insideStart',
9172
9414
  'insideMiddle',
9173
9415
  'insideEnd'
9174
- ]).default('insideEnd').optional(),
9175
- textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
9176
- textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
9177
- textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
9416
+ ]).default('insideEnd').nullish(),
9417
+ textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
9418
+ textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9419
+ textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9178
9420
  textAlign: external_zod_namespaceObject.z["enum"]([
9179
9421
  'left',
9180
9422
  'right',
9181
9423
  'center'
9182
- ]).default('right').optional(),
9424
+ ]).default('right').nullish(),
9183
9425
  textBaseline: external_zod_namespaceObject.z["enum"]([
9184
9426
  'top',
9185
9427
  'middle',
9186
9428
  'bottom'
9187
- ]).default('top').optional(),
9188
- lineVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9189
- lineColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9190
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9429
+ ]).default('top').nullish(),
9430
+ textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9431
+ textBackgroundColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9432
+ textBackgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9433
+ textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9434
+ textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9435
+ textBackgroundPadding: external_zod_namespaceObject.z.number().default(2).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(),
9191
9439
  lineStyle: external_zod_namespaceObject.z.union([
9192
9440
  external_zod_namespaceObject.z.literal('solid'),
9193
9441
  external_zod_namespaceObject.z.literal('dashed'),
9194
9442
  external_zod_namespaceObject.z.literal('dotted')
9195
- ]).default('dashed').optional(),
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(),
9202
- offsetX: external_zod_namespaceObject.z.number().default(0),
9203
- offsetY: external_zod_namespaceObject.z.number().default(0)
9443
+ ]).default('dashed').nullish()
9204
9444
  });
9205
9445
  const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
9206
9446
  selector: external_zod_namespaceObject.z.union([
9207
9447
  zSelector,
9208
9448
  zSelectors
9209
- ]).optional(),
9449
+ ]).nullish(),
9210
9450
  yValue: external_zod_namespaceObject.z.union([
9211
9451
  external_zod_namespaceObject.z.number(),
9212
9452
  external_zod_namespaceObject.z.string(),
@@ -9214,8 +9454,8 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
9214
9454
  external_zod_namespaceObject.z.number(),
9215
9455
  external_zod_namespaceObject.z.string()
9216
9456
  ]))
9217
- ]).optional(),
9218
- text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
9457
+ ]).nullish(),
9458
+ text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
9219
9459
  textPosition: external_zod_namespaceObject.z["enum"]([
9220
9460
  'outsideStart',
9221
9461
  'outsideEnd',
@@ -9223,36 +9463,34 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
9223
9463
  'insideStart',
9224
9464
  'insideMiddle',
9225
9465
  'insideEnd'
9226
- ]).default('insideEnd').optional(),
9227
- textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
9228
- textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
9229
- textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
9466
+ ]).default('insideEnd').nullish(),
9467
+ textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
9468
+ textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9469
+ textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9230
9470
  textAlign: external_zod_namespaceObject.z["enum"]([
9231
9471
  'left',
9232
9472
  'right',
9233
9473
  'center'
9234
- ]).default('right').optional(),
9474
+ ]).default('right').nullish(),
9235
9475
  textBaseline: external_zod_namespaceObject.z["enum"]([
9236
9476
  'top',
9237
9477
  'middle',
9238
9478
  'bottom'
9239
- ]).default('top').optional(),
9240
- lineVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9241
- lineColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9242
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9479
+ ]).default('top').nullish(),
9480
+ lineVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9481
+ lineColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9482
+ lineWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9243
9483
  lineStyle: external_zod_namespaceObject.z.union([
9244
9484
  external_zod_namespaceObject.z.literal('solid'),
9245
9485
  external_zod_namespaceObject.z.literal('dashed'),
9246
9486
  external_zod_namespaceObject.z.literal('dotted')
9247
- ]).default('dashed').optional(),
9248
- backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9249
- backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9250
- backgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9251
- backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
9252
- backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9253
- backgroundPadding: external_zod_namespaceObject.z.number().default(2).optional(),
9254
- offsetX: external_zod_namespaceObject.z.number().default(0),
9255
- offsetY: external_zod_namespaceObject.z.number().default(0)
9487
+ ]).default('dashed').nullish(),
9488
+ textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9489
+ textBackgroundColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9490
+ textBackgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9491
+ textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9492
+ textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9493
+ textBackgroundPadding: external_zod_namespaceObject.z.number().default(2).nullish()
9256
9494
  });
9257
9495
  const zAnnotationArea = external_zod_namespaceObject.z.object({
9258
9496
  selector: external_zod_namespaceObject.z.union([
@@ -9268,60 +9506,58 @@ const zAnnotationArea = external_zod_namespaceObject.z.object({
9268
9506
  'bottomRight',
9269
9507
  'left',
9270
9508
  'right'
9271
- ]).default('top').optional(),
9272
- text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
9273
- textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
9274
- textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
9275
- textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
9509
+ ]).default('top').nullish(),
9510
+ text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
9511
+ textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
9512
+ textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9513
+ textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9276
9514
  textAlign: external_zod_namespaceObject.z["enum"]([
9277
9515
  'left',
9278
9516
  'right',
9279
9517
  'center'
9280
- ]).default('center').optional(),
9518
+ ]).default('center').nullish(),
9281
9519
  textBaseline: external_zod_namespaceObject.z["enum"]([
9282
9520
  'top',
9283
9521
  'middle',
9284
9522
  'bottom'
9285
- ]).default('top').optional(),
9286
- backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9287
- backgroundColor: external_zod_namespaceObject.z.string().default('#191d24').optional(),
9288
- backgroundBorderColor: external_zod_namespaceObject.z.string().default('#191d24').optional(),
9289
- backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9290
- backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
9291
- backgroundPadding: external_zod_namespaceObject.z.number().default(4).optional(),
9292
- areaColor: external_zod_namespaceObject.z.string().default('#888888').optional(),
9293
- areaColorOpacity: external_zod_namespaceObject.z.number().default(0.15).optional(),
9294
- areaBorderColor: external_zod_namespaceObject.z.string().default('#888888').optional(),
9295
- areaBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9296
- areaBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
9297
- outerPadding: external_zod_namespaceObject.z.number().default(4).optional(),
9298
- offsetX: external_zod_namespaceObject.z.number().default(0).optional(),
9299
- offsetY: external_zod_namespaceObject.z.number().default(0).optional()
9523
+ ]).default('top').nullish(),
9524
+ textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9525
+ textBackgroundColor: external_zod_namespaceObject.z.string().default('#191d24').nullish(),
9526
+ textBackgroundBorderColor: external_zod_namespaceObject.z.string().default('#191d24').nullish(),
9527
+ textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9528
+ textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9529
+ textBackgroundPadding: external_zod_namespaceObject.z.number().default(4).nullish(),
9530
+ areaColor: external_zod_namespaceObject.z.string().default('#888888').nullish(),
9531
+ areaColorOpacity: external_zod_namespaceObject.z.number().default(0.15).nullish(),
9532
+ areaBorderColor: external_zod_namespaceObject.z.string().default('#888888').nullish(),
9533
+ areaBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9534
+ areaBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9535
+ outerPadding: external_zod_namespaceObject.z.number().default(4).nullish()
9300
9536
  });
9301
9537
  const zAnnotation = external_zod_namespaceObject.z.object({
9302
- annotationPoint: zAnnotationPoint.or(external_zod_namespaceObject.z.array(zAnnotationPoint)).optional(),
9303
- annotationVerticalLine: zAnnotationVerticalLine.or(external_zod_namespaceObject.z.array(zAnnotationVerticalLine)).optional(),
9304
- annotationHorizontalLine: zAnnotationHorizontalLine.or(external_zod_namespaceObject.z.array(zAnnotationHorizontalLine)).optional(),
9305
- annotationArea: zAnnotationArea.or(external_zod_namespaceObject.z.array(zAnnotationArea)).optional()
9538
+ annotationPoint: zAnnotationPoint.or(external_zod_namespaceObject.z.array(zAnnotationPoint)).nullish(),
9539
+ annotationVerticalLine: zAnnotationVerticalLine.or(external_zod_namespaceObject.z.array(zAnnotationVerticalLine)).nullish(),
9540
+ annotationHorizontalLine: zAnnotationHorizontalLine.or(external_zod_namespaceObject.z.array(zAnnotationHorizontalLine)).nullish(),
9541
+ annotationArea: zAnnotationArea.or(external_zod_namespaceObject.z.array(zAnnotationArea)).nullish()
9306
9542
  });
9307
9543
  const zSort = external_zod_namespaceObject.z.object({
9308
9544
  order: external_zod_namespaceObject.z["enum"]([
9309
9545
  'asc',
9310
9546
  'desc'
9311
9547
  ]).default('asc'),
9312
- orderBy: external_zod_namespaceObject.z.string().optional(),
9313
- customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).optional()
9548
+ orderBy: external_zod_namespaceObject.z.string().nullish(),
9549
+ customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).nullish()
9314
9550
  });
9315
9551
  const zSortLegend = external_zod_namespaceObject.z.object({
9316
9552
  order: external_zod_namespaceObject.z["enum"]([
9317
9553
  'asc',
9318
9554
  'desc'
9319
9555
  ]).default('asc'),
9320
- orderBy: external_zod_namespaceObject.z.string().optional(),
9321
- customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).optional()
9556
+ orderBy: external_zod_namespaceObject.z.string().nullish(),
9557
+ customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).nullish()
9322
9558
  });
9323
9559
  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())).optional()
9560
+ orderMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish()
9325
9561
  });
9326
9562
  const zLocale = external_zod_namespaceObject.z["enum"]([
9327
9563
  'zh-CN',
@@ -9329,384 +9565,411 @@ const zLocale = external_zod_namespaceObject.z["enum"]([
9329
9565
  ]).default('zh-CN');
9330
9566
  const zTable = external_zod_namespaceObject.z.object({
9331
9567
  chartType: external_zod_namespaceObject.z.literal('table'),
9332
- dataset: zDataset.optional(),
9333
- dimensions: zDimensions.optional(),
9334
- measures: zMeasureTree.optional(),
9335
- backgroundColor: zBackgroundColor.optional(),
9336
- theme: zTheme.optional(),
9337
- locale: zLocale.optional()
9568
+ dataset: zDataset.nullish(),
9569
+ dimensions: zDimensions.nullish(),
9570
+ measures: zMeasureTree.nullish(),
9571
+ backgroundColor: zBackgroundColor.nullish(),
9572
+ borderColor: external_zod_namespaceObject.z.string().nullish(),
9573
+ bodyFontSize: external_zod_namespaceObject.z.number().nullish(),
9574
+ bodyFontColor: external_zod_namespaceObject.z.string().nullish(),
9575
+ bodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9576
+ hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9577
+ hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9578
+ headerFontSize: external_zod_namespaceObject.z.number().nullish(),
9579
+ headerFontColor: external_zod_namespaceObject.z.string().nullish(),
9580
+ headerBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9581
+ hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9582
+ hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9583
+ selectedBorderColor: external_zod_namespaceObject.z.string().nullish(),
9584
+ selectedBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9585
+ theme: zTheme.nullish(),
9586
+ locale: zLocale.nullish()
9338
9587
  });
9339
9588
  const zPivotTable = external_zod_namespaceObject.z.object({
9340
9589
  chartType: external_zod_namespaceObject.z.literal('pivotTable'),
9341
- dataset: zDataset.optional(),
9342
- dimensions: zDimensions.optional(),
9343
- measures: zMeasures.optional(),
9344
- backgroundColor: zBackgroundColor.optional(),
9345
- theme: zTheme.optional(),
9346
- locale: zLocale.optional()
9590
+ dataset: zDataset.nullish(),
9591
+ dimensions: zDimensions.nullish(),
9592
+ measures: zMeasures.nullish(),
9593
+ backgroundColor: zBackgroundColor.nullish(),
9594
+ borderColor: external_zod_namespaceObject.z.string().nullish(),
9595
+ bodyFontSize: external_zod_namespaceObject.z.number().nullish(),
9596
+ bodyFontColor: external_zod_namespaceObject.z.string().nullish(),
9597
+ bodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9598
+ hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9599
+ hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9600
+ headerFontSize: external_zod_namespaceObject.z.number().nullish(),
9601
+ headerFontColor: external_zod_namespaceObject.z.string().nullish(),
9602
+ headerBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9603
+ hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9604
+ hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9605
+ selectedBorderColor: external_zod_namespaceObject.z.string().nullish(),
9606
+ selectedBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9607
+ theme: zTheme.nullish(),
9608
+ locale: zLocale.nullish()
9347
9609
  });
9348
9610
  const zLine = external_zod_namespaceObject.z.object({
9349
9611
  chartType: external_zod_namespaceObject.z.literal('line'),
9350
- dataset: zDataset.optional(),
9351
- dimensions: zDimensions.optional(),
9352
- measures: zMeasureTree.optional(),
9353
- backgroundColor: zBackgroundColor.optional(),
9354
- color: zColor.optional(),
9355
- label: zLabel.optional(),
9356
- legend: zLegend.optional(),
9357
- tooltip: zTooltip.optional(),
9358
- xAxis: zXBandAxis.optional(),
9359
- yAxis: zYLinearAxis.optional(),
9360
- crosshairLine: zCrosshairLine.optional(),
9361
- sort: zSort.optional(),
9362
- sortLegend: zSortLegend.optional(),
9363
- theme: zTheme.optional(),
9364
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9365
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9366
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9367
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9368
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9369
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9370
- locale: zLocale.optional()
9612
+ dataset: zDataset.nullish(),
9613
+ dimensions: zDimensions.nullish(),
9614
+ measures: zMeasureTree.nullish(),
9615
+ backgroundColor: zBackgroundColor.nullish(),
9616
+ color: zColor.nullish(),
9617
+ label: zLabel.nullish(),
9618
+ legend: zLegend.nullish(),
9619
+ tooltip: zTooltip.nullish(),
9620
+ xAxis: zXBandAxis.nullish(),
9621
+ yAxis: zYLinearAxis.nullish(),
9622
+ crosshairLine: zCrosshairLine.nullish(),
9623
+ sort: zSort.nullish(),
9624
+ sortLegend: zSortLegend.nullish(),
9625
+ theme: zTheme.nullish(),
9626
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9627
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9628
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9629
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9630
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9631
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9632
+ locale: zLocale.nullish()
9371
9633
  });
9372
9634
  const zColumn = external_zod_namespaceObject.z.object({
9373
9635
  chartType: external_zod_namespaceObject.z.literal('column'),
9374
- dataset: zDataset.optional(),
9375
- dimensions: zDimensions.optional(),
9376
- measures: zMeasureTree.optional(),
9377
- backgroundColor: zBackgroundColor.optional(),
9378
- color: zColor.optional(),
9379
- label: zLabel.optional(),
9380
- legend: zLegend.optional(),
9381
- tooltip: zTooltip.optional(),
9382
- xAxis: zXBandAxis.optional(),
9383
- yAxis: zYLinearAxis.optional(),
9384
- crosshairRect: zCrosshairRect.optional(),
9385
- stackCornerRadius: zStackCornerRadius.optional(),
9386
- theme: zTheme.optional(),
9387
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9388
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9389
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9390
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9391
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9392
- locale: zLocale.optional()
9636
+ dataset: zDataset.nullish(),
9637
+ dimensions: zDimensions.nullish(),
9638
+ measures: zMeasureTree.nullish(),
9639
+ backgroundColor: zBackgroundColor.nullish(),
9640
+ color: zColor.nullish(),
9641
+ label: zLabel.nullish(),
9642
+ legend: zLegend.nullish(),
9643
+ tooltip: zTooltip.nullish(),
9644
+ xAxis: zXBandAxis.nullish(),
9645
+ yAxis: zYLinearAxis.nullish(),
9646
+ crosshairRect: zCrosshairRect.nullish(),
9647
+ stackCornerRadius: zStackCornerRadius.nullish(),
9648
+ theme: zTheme.nullish(),
9649
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9650
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9651
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9652
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9653
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9654
+ locale: zLocale.nullish()
9393
9655
  });
9394
9656
  const zColumnParallel = external_zod_namespaceObject.z.object({
9395
9657
  chartType: external_zod_namespaceObject.z.literal('columnParallel'),
9396
- dataset: zDataset.optional(),
9397
- dimensions: zDimensions.optional(),
9398
- measures: zMeasureTree.optional(),
9399
- backgroundColor: zBackgroundColor.optional(),
9400
- color: zColor.optional(),
9401
- label: zLabel.optional(),
9402
- legend: zLegend.optional(),
9403
- tooltip: zTooltip.optional(),
9404
- xAxis: zXBandAxis.optional(),
9405
- yAxis: zYLinearAxis.optional(),
9406
- crosshairRect: zCrosshairRect.optional(),
9407
- stackCornerRadius: zStackCornerRadius.optional(),
9408
- theme: zTheme.optional(),
9409
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9410
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9411
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9412
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9413
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9414
- locale: zLocale.optional()
9658
+ dataset: zDataset.nullish(),
9659
+ dimensions: zDimensions.nullish(),
9660
+ measures: zMeasureTree.nullish(),
9661
+ backgroundColor: zBackgroundColor.nullish(),
9662
+ color: zColor.nullish(),
9663
+ label: zLabel.nullish(),
9664
+ legend: zLegend.nullish(),
9665
+ tooltip: zTooltip.nullish(),
9666
+ xAxis: zXBandAxis.nullish(),
9667
+ yAxis: zYLinearAxis.nullish(),
9668
+ crosshairRect: zCrosshairRect.nullish(),
9669
+ stackCornerRadius: zStackCornerRadius.nullish(),
9670
+ theme: zTheme.nullish(),
9671
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9672
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9673
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9674
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9675
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9676
+ locale: zLocale.nullish()
9415
9677
  });
9416
9678
  const zColumnPercent = external_zod_namespaceObject.z.object({
9417
9679
  chartType: external_zod_namespaceObject.z.literal('columnPercent'),
9418
- dataset: zDataset.optional(),
9419
- dimensions: zDimensions.optional(),
9420
- measures: zMeasureTree.optional(),
9421
- backgroundColor: zBackgroundColor.optional(),
9422
- color: zColor.optional(),
9423
- label: zLabel.optional(),
9424
- legend: zLegend.optional(),
9425
- tooltip: zTooltip.optional(),
9426
- xAxis: zXBandAxis.optional(),
9427
- yAxis: zYLinearAxis.optional(),
9428
- crosshairRect: zCrosshairRect.optional(),
9429
- stackCornerRadius: zStackCornerRadius.optional(),
9430
- theme: zTheme.optional(),
9431
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9432
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9433
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9434
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9435
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9436
- locale: zLocale.optional()
9680
+ dataset: zDataset.nullish(),
9681
+ dimensions: zDimensions.nullish(),
9682
+ measures: zMeasureTree.nullish(),
9683
+ backgroundColor: zBackgroundColor.nullish(),
9684
+ color: zColor.nullish(),
9685
+ label: zLabel.nullish(),
9686
+ legend: zLegend.nullish(),
9687
+ tooltip: zTooltip.nullish(),
9688
+ xAxis: zXBandAxis.nullish(),
9689
+ yAxis: zYLinearAxis.nullish(),
9690
+ crosshairRect: zCrosshairRect.nullish(),
9691
+ stackCornerRadius: zStackCornerRadius.nullish(),
9692
+ theme: zTheme.nullish(),
9693
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9694
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9695
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9696
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9697
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9698
+ locale: zLocale.nullish()
9437
9699
  });
9438
9700
  const zBar = external_zod_namespaceObject.z.object({
9439
9701
  chartType: external_zod_namespaceObject.z.literal('bar'),
9440
- dataset: zDataset.optional(),
9441
- dimensions: zDimensions.optional(),
9442
- measures: zMeasureTree.optional(),
9443
- backgroundColor: zBackgroundColor.optional(),
9444
- color: zColor.optional(),
9445
- label: zLabel.optional(),
9446
- legend: zLegend.optional(),
9447
- tooltip: zTooltip.optional(),
9448
- xAxis: zXLinearAxis.optional(),
9449
- yAxis: zYBandAxis.optional(),
9450
- crosshairRect: zCrosshairRect.optional(),
9451
- stackCornerRadius: zStackCornerRadius.optional(),
9452
- theme: zTheme.optional(),
9453
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9454
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9455
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9456
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9457
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9458
- locale: zLocale.optional()
9702
+ dataset: zDataset.nullish(),
9703
+ dimensions: zDimensions.nullish(),
9704
+ measures: zMeasureTree.nullish(),
9705
+ backgroundColor: zBackgroundColor.nullish(),
9706
+ color: zColor.nullish(),
9707
+ label: zLabel.nullish(),
9708
+ legend: zLegend.nullish(),
9709
+ tooltip: zTooltip.nullish(),
9710
+ xAxis: zXLinearAxis.nullish(),
9711
+ yAxis: zYBandAxis.nullish(),
9712
+ crosshairRect: zCrosshairRect.nullish(),
9713
+ stackCornerRadius: zStackCornerRadius.nullish(),
9714
+ theme: zTheme.nullish(),
9715
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9716
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9717
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9718
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9719
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9720
+ locale: zLocale.nullish()
9459
9721
  });
9460
9722
  const zBarParallel = external_zod_namespaceObject.z.object({
9461
9723
  chartType: external_zod_namespaceObject.z.literal('barParallel'),
9462
- dataset: zDataset.optional(),
9463
- dimensions: zDimensions.optional(),
9464
- measures: zMeasureTree.optional(),
9465
- backgroundColor: zBackgroundColor.optional(),
9466
- color: zColor.optional(),
9467
- label: zLabel.optional(),
9468
- legend: zLegend.optional(),
9469
- tooltip: zTooltip.optional(),
9470
- xAxis: zXLinearAxis.optional(),
9471
- yAxis: zYBandAxis.optional(),
9472
- crosshairRect: zCrosshairRect.optional(),
9473
- stackCornerRadius: zStackCornerRadius.optional(),
9474
- theme: zTheme.optional(),
9475
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9476
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9477
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9478
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9479
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9480
- locale: zLocale.optional()
9724
+ dataset: zDataset.nullish(),
9725
+ dimensions: zDimensions.nullish(),
9726
+ measures: zMeasureTree.nullish(),
9727
+ backgroundColor: zBackgroundColor.nullish(),
9728
+ color: zColor.nullish(),
9729
+ label: zLabel.nullish(),
9730
+ legend: zLegend.nullish(),
9731
+ tooltip: zTooltip.nullish(),
9732
+ xAxis: zXLinearAxis.nullish(),
9733
+ yAxis: zYBandAxis.nullish(),
9734
+ crosshairRect: zCrosshairRect.nullish(),
9735
+ stackCornerRadius: zStackCornerRadius.nullish(),
9736
+ theme: zTheme.nullish(),
9737
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9738
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9739
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9740
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9741
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9742
+ locale: zLocale.nullish()
9481
9743
  });
9482
9744
  const zBarPercent = external_zod_namespaceObject.z.object({
9483
9745
  chartType: external_zod_namespaceObject.z.literal('barPercent'),
9484
- dataset: zDataset.optional(),
9485
- dimensions: zDimensions.optional(),
9486
- measures: zMeasureTree.optional(),
9487
- backgroundColor: zBackgroundColor.optional(),
9488
- color: zColor.optional(),
9489
- label: zLabel.optional(),
9490
- legend: zLegend.optional(),
9491
- tooltip: zTooltip.optional(),
9492
- xAxis: zXLinearAxis.optional(),
9493
- yAxis: zYBandAxis.optional(),
9494
- crosshairRect: zCrosshairRect.optional(),
9495
- stackCornerRadius: zStackCornerRadius.optional(),
9496
- theme: zTheme.optional(),
9497
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9498
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9499
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9500
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9501
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9502
- locale: zLocale.optional()
9746
+ dataset: zDataset.nullish(),
9747
+ dimensions: zDimensions.nullish(),
9748
+ measures: zMeasureTree.nullish(),
9749
+ backgroundColor: zBackgroundColor.nullish(),
9750
+ color: zColor.nullish(),
9751
+ label: zLabel.nullish(),
9752
+ legend: zLegend.nullish(),
9753
+ tooltip: zTooltip.nullish(),
9754
+ xAxis: zXLinearAxis.nullish(),
9755
+ yAxis: zYBandAxis.nullish(),
9756
+ crosshairRect: zCrosshairRect.nullish(),
9757
+ stackCornerRadius: zStackCornerRadius.nullish(),
9758
+ theme: zTheme.nullish(),
9759
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9760
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9761
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9762
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9763
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9764
+ locale: zLocale.nullish()
9503
9765
  });
9504
9766
  const zArea = external_zod_namespaceObject.z.object({
9505
9767
  chartType: external_zod_namespaceObject.z.literal('area'),
9506
- dataset: zDataset.optional(),
9507
- dimensions: zDimensions.optional(),
9508
- measures: zMeasureTree.optional(),
9509
- backgroundColor: zBackgroundColor.optional(),
9510
- color: zColor.optional(),
9511
- label: zLabel.optional(),
9512
- legend: zLegend.optional(),
9513
- tooltip: zTooltip.optional(),
9514
- xAxis: zXBandAxis.optional(),
9515
- yAxis: zYLinearAxis.optional(),
9516
- crosshairLine: zCrosshairLine.optional(),
9517
- theme: zTheme.optional(),
9518
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9519
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9520
- areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).optional(),
9521
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9522
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9523
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9524
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9525
- locale: zLocale.optional()
9768
+ dataset: zDataset.nullish(),
9769
+ dimensions: zDimensions.nullish(),
9770
+ measures: zMeasureTree.nullish(),
9771
+ backgroundColor: zBackgroundColor.nullish(),
9772
+ color: zColor.nullish(),
9773
+ label: zLabel.nullish(),
9774
+ legend: zLegend.nullish(),
9775
+ tooltip: zTooltip.nullish(),
9776
+ xAxis: zXBandAxis.nullish(),
9777
+ yAxis: zYLinearAxis.nullish(),
9778
+ crosshairLine: zCrosshairLine.nullish(),
9779
+ theme: zTheme.nullish(),
9780
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9781
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9782
+ areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
9783
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9784
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9785
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9786
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9787
+ locale: zLocale.nullish()
9526
9788
  });
9527
9789
  const zAreaPercent = external_zod_namespaceObject.z.object({
9528
9790
  chartType: external_zod_namespaceObject.z.literal('areaPercent'),
9529
- dataset: zDataset.optional(),
9530
- dimensions: zDimensions.optional(),
9531
- measures: zMeasureTree.optional(),
9532
- backgroundColor: zBackgroundColor.optional(),
9533
- color: zColor.optional(),
9534
- label: zLabel.optional(),
9535
- legend: zLegend.optional(),
9536
- tooltip: zTooltip.optional(),
9537
- xAxis: zXBandAxis.optional(),
9538
- yAxis: zYLinearAxis.optional(),
9539
- crosshairLine: zCrosshairLine.optional(),
9540
- theme: zTheme.optional(),
9541
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9542
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9543
- areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).optional(),
9544
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9545
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9546
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9547
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9548
- locale: zLocale.optional()
9791
+ dataset: zDataset.nullish(),
9792
+ dimensions: zDimensions.nullish(),
9793
+ measures: zMeasureTree.nullish(),
9794
+ backgroundColor: zBackgroundColor.nullish(),
9795
+ color: zColor.nullish(),
9796
+ label: zLabel.nullish(),
9797
+ legend: zLegend.nullish(),
9798
+ tooltip: zTooltip.nullish(),
9799
+ xAxis: zXBandAxis.nullish(),
9800
+ yAxis: zYLinearAxis.nullish(),
9801
+ crosshairLine: zCrosshairLine.nullish(),
9802
+ theme: zTheme.nullish(),
9803
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9804
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9805
+ areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
9806
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9807
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9808
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9809
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9810
+ locale: zLocale.nullish()
9549
9811
  });
9550
9812
  const zAreaRange = external_zod_namespaceObject.z.object({
9551
9813
  chartType: external_zod_namespaceObject.z.literal('areaRange'),
9552
- dataset: zDataset.optional(),
9553
- dimensions: zDimensions.optional(),
9554
- measures: zMeasureTree.optional(),
9555
- backgroundColor: zBackgroundColor.optional(),
9556
- label: zLabel.optional(),
9557
- xAxis: zXBandAxis.optional(),
9558
- yAxis: zYLinearAxis.optional(),
9559
- crosshairLine: zCrosshairLine.optional(),
9560
- theme: zTheme.optional(),
9561
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9562
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9563
- areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).optional(),
9564
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9565
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9566
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9567
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9568
- locale: zLocale.optional()
9814
+ dataset: zDataset.nullish(),
9815
+ dimensions: zDimensions.nullish(),
9816
+ measures: zMeasureTree.nullish(),
9817
+ backgroundColor: zBackgroundColor.nullish(),
9818
+ label: zLabel.nullish(),
9819
+ xAxis: zXBandAxis.nullish(),
9820
+ yAxis: zYLinearAxis.nullish(),
9821
+ crosshairLine: zCrosshairLine.nullish(),
9822
+ theme: zTheme.nullish(),
9823
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9824
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9825
+ areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
9826
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9827
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9828
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9829
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9830
+ locale: zLocale.nullish()
9569
9831
  });
9570
9832
  const zScatter = external_zod_namespaceObject.z.object({
9571
9833
  chartType: external_zod_namespaceObject.z.literal('scatter'),
9572
- dataset: zDataset.optional(),
9573
- dimensions: zDimensions.optional(),
9574
- measures: zMeasureTree.optional(),
9575
- backgroundColor: zBackgroundColor.optional(),
9576
- color: zColor.optional(),
9577
- label: zLabel.optional(),
9578
- legend: zLegend.optional(),
9579
- tooltip: zTooltip.optional(),
9580
- xAxis: zXLinearAxis.optional(),
9581
- yAxis: zYLinearAxis.optional(),
9582
- crosshairLine: zCrosshairLine.optional(),
9583
- theme: zTheme.optional(),
9584
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9585
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9586
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9587
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9588
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9589
- locale: zLocale.optional()
9834
+ dataset: zDataset.nullish(),
9835
+ dimensions: zDimensions.nullish(),
9836
+ measures: zMeasureTree.nullish(),
9837
+ backgroundColor: zBackgroundColor.nullish(),
9838
+ color: zColor.nullish(),
9839
+ label: zLabel.nullish(),
9840
+ legend: zLegend.nullish(),
9841
+ tooltip: zTooltip.nullish(),
9842
+ xAxis: zXLinearAxis.nullish(),
9843
+ yAxis: zYLinearAxis.nullish(),
9844
+ crosshairLine: zCrosshairLine.nullish(),
9845
+ theme: zTheme.nullish(),
9846
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9847
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9848
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9849
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9850
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9851
+ locale: zLocale.nullish()
9590
9852
  });
9591
9853
  const zDualAxis = external_zod_namespaceObject.z.object({
9592
9854
  chartType: external_zod_namespaceObject.z.literal('dualAxis'),
9593
- dataset: zDataset.optional(),
9594
- dimensions: zDimensions.optional(),
9595
- measures: zMeasureTree.optional(),
9596
- dualMeasures: zDualMeasures.optional(),
9597
- dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).optional(),
9598
- primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).optional(),
9599
- secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).optional(),
9600
- xAxis: zXBandAxis.optional(),
9601
- backgroundColor: zBackgroundColor.optional(),
9602
- color: zColor.optional(),
9603
- label: zLabel.optional(),
9604
- legend: zLegend.optional(),
9605
- tooltip: zTooltip.optional(),
9606
- crosshairRect: zCrosshairRect.optional(),
9607
- sort: zSort.optional(),
9608
- sortLegend: zSortLegend.optional(),
9609
- theme: zTheme.optional(),
9610
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9611
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9612
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9613
- areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).optional(),
9614
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9615
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9616
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9617
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9618
- locale: zLocale.optional()
9855
+ dataset: zDataset.nullish(),
9856
+ dimensions: zDimensions.nullish(),
9857
+ measures: zMeasureTree.nullish(),
9858
+ dualMeasures: zDualMeasures.nullish(),
9859
+ dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).nullish(),
9860
+ alignTicks: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.boolean()).or(external_zod_namespaceObject.z.boolean()).nullish(),
9861
+ primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9862
+ secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9863
+ xAxis: zXBandAxis.nullish(),
9864
+ backgroundColor: zBackgroundColor.nullish(),
9865
+ color: zColor.nullish(),
9866
+ label: zLabel.nullish(),
9867
+ legend: zLegend.nullish(),
9868
+ tooltip: zTooltip.nullish(),
9869
+ crosshairRect: zCrosshairRect.nullish(),
9870
+ sort: zSort.nullish(),
9871
+ sortLegend: zSortLegend.nullish(),
9872
+ theme: zTheme.nullish(),
9873
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9874
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9875
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9876
+ areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
9877
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9878
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9879
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9880
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9881
+ locale: zLocale.nullish()
9619
9882
  });
9620
9883
  const zRose = external_zod_namespaceObject.z.object({
9621
9884
  chartType: external_zod_namespaceObject.z.literal('rose'),
9622
- dataset: zDataset.optional(),
9623
- dimensions: zDimensions.optional(),
9624
- measures: zMeasureTree.optional(),
9625
- backgroundColor: zBackgroundColor.optional(),
9626
- color: zColor.optional(),
9627
- label: zLabel.optional(),
9628
- legend: zLegend.optional(),
9629
- tooltip: zTooltip.optional(),
9630
- theme: zTheme.optional(),
9631
- locale: zLocale.optional()
9885
+ dataset: zDataset.nullish(),
9886
+ dimensions: zDimensions.nullish(),
9887
+ measures: zMeasureTree.nullish(),
9888
+ backgroundColor: zBackgroundColor.nullish(),
9889
+ color: zColor.nullish(),
9890
+ label: zLabel.nullish(),
9891
+ legend: zLegend.nullish(),
9892
+ tooltip: zTooltip.nullish(),
9893
+ theme: zTheme.nullish(),
9894
+ locale: zLocale.nullish()
9632
9895
  });
9633
9896
  const zRoseParallel = external_zod_namespaceObject.z.object({
9634
9897
  chartType: external_zod_namespaceObject.z.literal('roseParallel'),
9635
- dataset: zDataset.optional(),
9636
- dimensions: zDimensions.optional(),
9637
- measures: zMeasureTree.optional(),
9638
- backgroundColor: zBackgroundColor.optional(),
9639
- color: zColor.optional(),
9640
- label: zLabel.optional(),
9641
- legend: zLegend.optional(),
9642
- tooltip: zTooltip.optional(),
9643
- theme: zTheme.optional(),
9644
- locale: zLocale.optional()
9898
+ dataset: zDataset.nullish(),
9899
+ dimensions: zDimensions.nullish(),
9900
+ measures: zMeasureTree.nullish(),
9901
+ backgroundColor: zBackgroundColor.nullish(),
9902
+ color: zColor.nullish(),
9903
+ label: zLabel.nullish(),
9904
+ legend: zLegend.nullish(),
9905
+ tooltip: zTooltip.nullish(),
9906
+ theme: zTheme.nullish(),
9907
+ locale: zLocale.nullish()
9645
9908
  });
9646
9909
  const zPie = external_zod_namespaceObject.z.object({
9647
9910
  chartType: external_zod_namespaceObject.z.literal('pie'),
9648
- dataset: zDataset.optional(),
9649
- dimensions: zDimensions.optional(),
9650
- measures: zMeasureTree.optional(),
9651
- backgroundColor: zBackgroundColor.optional(),
9652
- color: zColor.optional(),
9653
- label: zLabel.optional(),
9654
- legend: zLegend.optional(),
9655
- tooltip: zTooltip.optional(),
9656
- theme: zTheme.optional(),
9657
- locale: zLocale.optional()
9911
+ dataset: zDataset.nullish(),
9912
+ dimensions: zDimensions.nullish(),
9913
+ measures: zMeasureTree.nullish(),
9914
+ backgroundColor: zBackgroundColor.nullish(),
9915
+ color: zColor.nullish(),
9916
+ label: zLabel.nullish(),
9917
+ legend: zLegend.nullish(),
9918
+ tooltip: zTooltip.nullish(),
9919
+ theme: zTheme.nullish(),
9920
+ locale: zLocale.nullish()
9658
9921
  });
9659
9922
  const zDonut = external_zod_namespaceObject.z.object({
9660
9923
  chartType: external_zod_namespaceObject.z.literal('donut'),
9661
- dataset: zDataset.optional(),
9662
- dimensions: zDimensions.optional(),
9663
- measures: zMeasureTree.optional(),
9664
- backgroundColor: zBackgroundColor.optional(),
9665
- color: zColor.optional(),
9666
- label: zLabel.optional(),
9667
- legend: zLegend.optional(),
9668
- tooltip: zTooltip.optional(),
9669
- theme: zTheme.optional(),
9670
- locale: zLocale.optional()
9924
+ dataset: zDataset.nullish(),
9925
+ dimensions: zDimensions.nullish(),
9926
+ measures: zMeasureTree.nullish(),
9927
+ backgroundColor: zBackgroundColor.nullish(),
9928
+ color: zColor.nullish(),
9929
+ label: zLabel.nullish(),
9930
+ legend: zLegend.nullish(),
9931
+ tooltip: zTooltip.nullish(),
9932
+ theme: zTheme.nullish(),
9933
+ locale: zLocale.nullish()
9671
9934
  });
9672
9935
  const zRadar = external_zod_namespaceObject.z.object({
9673
9936
  chartType: external_zod_namespaceObject.z.literal('radar'),
9674
- dataset: zDataset.optional(),
9675
- dimensions: zDimensions.optional(),
9676
- measures: zMeasureTree.optional(),
9677
- backgroundColor: zBackgroundColor.optional(),
9678
- color: zColor.optional(),
9679
- label: zLabel.optional(),
9680
- legend: zLegend.optional(),
9681
- tooltip: zTooltip.optional(),
9682
- theme: zTheme.optional(),
9683
- locale: zLocale.optional()
9937
+ dataset: zDataset.nullish(),
9938
+ dimensions: zDimensions.nullish(),
9939
+ measures: zMeasureTree.nullish(),
9940
+ backgroundColor: zBackgroundColor.nullish(),
9941
+ color: zColor.nullish(),
9942
+ label: zLabel.nullish(),
9943
+ legend: zLegend.nullish(),
9944
+ tooltip: zTooltip.nullish(),
9945
+ theme: zTheme.nullish(),
9946
+ locale: zLocale.nullish()
9684
9947
  });
9685
9948
  const zFunnel = external_zod_namespaceObject.z.object({
9686
9949
  chartType: external_zod_namespaceObject.z.literal('funnel'),
9687
- dataset: zDataset.optional(),
9688
- dimensions: zDimensions.optional(),
9689
- measures: zMeasureTree.optional(),
9690
- backgroundColor: zBackgroundColor.optional(),
9691
- color: zLinearColor.optional(),
9692
- label: zLabel.optional(),
9693
- legend: zColorLegend.optional(),
9694
- tooltip: zTooltip.optional(),
9695
- theme: zTheme.optional(),
9696
- locale: zLocale.optional()
9950
+ dataset: zDataset.nullish(),
9951
+ dimensions: zDimensions.nullish(),
9952
+ measures: zMeasureTree.nullish(),
9953
+ backgroundColor: zBackgroundColor.nullish(),
9954
+ color: zLinearColor.nullish(),
9955
+ label: zLabel.nullish(),
9956
+ legend: zColorLegend.nullish(),
9957
+ tooltip: zTooltip.nullish(),
9958
+ theme: zTheme.nullish(),
9959
+ locale: zLocale.nullish()
9697
9960
  });
9698
9961
  const zHeatmap = external_zod_namespaceObject.z.object({
9699
9962
  chartType: external_zod_namespaceObject.z.literal('heatmap'),
9700
- dataset: zDataset.optional(),
9701
- dimensions: zDimensions.optional(),
9702
- measures: zMeasureTree.optional(),
9703
- backgroundColor: zBackgroundColor.optional(),
9704
- color: zLinearColor.optional(),
9705
- label: zLabel.optional(),
9706
- legend: zColorLegend.optional(),
9707
- tooltip: zTooltip.optional(),
9708
- theme: zTheme.optional(),
9709
- locale: zLocale.optional()
9963
+ dataset: zDataset.nullish(),
9964
+ dimensions: zDimensions.nullish(),
9965
+ measures: zMeasureTree.nullish(),
9966
+ backgroundColor: zBackgroundColor.nullish(),
9967
+ color: zLinearColor.nullish(),
9968
+ label: zLabel.nullish(),
9969
+ legend: zColorLegend.nullish(),
9970
+ tooltip: zTooltip.nullish(),
9971
+ theme: zTheme.nullish(),
9972
+ locale: zLocale.nullish()
9710
9973
  });
9711
9974
  const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
9712
9975
  zTable,
@@ -9802,8 +10065,14 @@ exports.heatmapAdvancedPipeline = __webpack_exports__.heatmapAdvancedPipeline;
9802
10065
  exports.heatmapSpecPipeline = __webpack_exports__.heatmapSpecPipeline;
9803
10066
  exports.i18n = __webpack_exports__.i18n;
9804
10067
  exports.intl = __webpack_exports__.intl;
10068
+ exports.isDimension = __webpack_exports__.isDimension;
10069
+ exports.isDimensionGroup = __webpack_exports__.isDimensionGroup;
9805
10070
  exports.isDimensionSelector = __webpack_exports__.isDimensionSelector;
10071
+ exports.isDimensions = __webpack_exports__.isDimensions;
10072
+ exports.isMeasure = __webpack_exports__.isMeasure;
10073
+ exports.isMeasureGroup = __webpack_exports__.isMeasureGroup;
9806
10074
  exports.isMeasureSelector = __webpack_exports__.isMeasureSelector;
10075
+ exports.isMeasures = __webpack_exports__.isMeasures;
9807
10076
  exports.isPartialDatumSelector = __webpack_exports__.isPartialDatumSelector;
9808
10077
  exports.isPivotChart = __webpack_exports__.isPivotChart;
9809
10078
  exports.isPivotTable = __webpack_exports__.isPivotTable;
@@ -10011,8 +10280,14 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
10011
10280
  "heatmapSpecPipeline",
10012
10281
  "i18n",
10013
10282
  "intl",
10283
+ "isDimension",
10284
+ "isDimensionGroup",
10014
10285
  "isDimensionSelector",
10286
+ "isDimensions",
10287
+ "isMeasure",
10288
+ "isMeasureGroup",
10015
10289
  "isMeasureSelector",
10290
+ "isMeasures",
10016
10291
  "isPartialDatumSelector",
10017
10292
  "isPivotChart",
10018
10293
  "isPivotTable",