@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/umd/index.js CHANGED
@@ -30,6 +30,7 @@
30
30
  var __webpack_exports__ = {};
31
31
  __webpack_require__.r(__webpack_exports__);
32
32
  __webpack_require__.d(__webpack_exports__, {
33
+ zTooltip: ()=>zTooltip,
33
34
  funnelAdvancedPipeline: ()=>funnelAdvancedPipeline,
34
35
  zHeatmapConfig: ()=>zHeatmapConfig,
35
36
  zBar: ()=>zBar,
@@ -54,6 +55,7 @@
54
55
  zDualMeasure: ()=>zDualMeasure,
55
56
  zSortLegend: ()=>zSortLegend,
56
57
  pivotTableAdvancedPipeline: ()=>pivotTableAdvancedPipeline,
58
+ isMeasures: ()=>isMeasures,
57
59
  zYBandAxis: ()=>zYBandAxis,
58
60
  dataReshapeFor1D2M: ()=>dataReshapeFor1D2M,
59
61
  zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
@@ -107,31 +109,31 @@
107
109
  registerLightTheme: ()=>registerLightTheme,
108
110
  roseAdvancedPipeline: ()=>roseAdvancedPipeline,
109
111
  zBarParallel: ()=>zBarParallel,
110
- isPartialDatumSelector: ()=>isPartialDatumSelector,
112
+ registerDarkTheme: ()=>registerDarkTheme,
111
113
  registerPivotTable: ()=>registerPivotTable,
112
- tableAdvancedPipeline: ()=>tableAdvancedPipeline,
113
- pieSpecPipeline: ()=>pieSpecPipeline,
114
+ isPartialDatumSelector: ()=>isPartialDatumSelector,
115
+ isDimensionGroup: ()=>isDimensionGroup,
114
116
  dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
115
- registerDarkTheme: ()=>registerDarkTheme,
116
- zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
117
+ pieSpecPipeline: ()=>pieSpecPipeline,
118
+ tableAdvancedPipeline: ()=>tableAdvancedPipeline,
117
119
  barSpecPipeline: ()=>barSpecPipeline,
118
- zChartType: ()=>zChartType,
120
+ zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
119
121
  registerRose: ()=>registerRose,
120
- zCrosshairLine: ()=>zCrosshairLine,
122
+ zChartType: ()=>zChartType,
121
123
  unfoldDimensions: ()=>unfoldDimensions,
122
124
  roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
123
125
  registerTable: ()=>registerTable,
124
126
  autoFormatter: ()=>autoFormatter,
127
+ isMeasureGroup: ()=>isMeasureGroup,
125
128
  findFirstDimension: ()=>findFirstDimension,
126
- Builder: ()=>Builder,
127
129
  registerAll: ()=>registerAll,
128
130
  registerBar: ()=>registerBar,
129
131
  isVChart: ()=>isVChart,
130
132
  radarSpecPipeline: ()=>radarSpecPipeline,
133
+ Builder: ()=>Builder,
134
+ zCrosshairLine: ()=>zCrosshairLine,
131
135
  zMeasureTree: ()=>zMeasureTree,
132
136
  zPieConfig: ()=>zPieConfig,
133
- zPivotTable: ()=>zPivotTable,
134
- zRadar: ()=>zRadar,
135
137
  registerLine: ()=>registerLine,
136
138
  registerCustomTheme: ()=>registerCustomTheme,
137
139
  zColor: ()=>zColor,
@@ -151,7 +153,7 @@
151
153
  zAxis: ()=>zAxis,
152
154
  isVTable: ()=>isVTable,
153
155
  zMeasures: ()=>zMeasures,
154
- zRadarConfig: ()=>zRadarConfig,
156
+ zPivotTable: ()=>zPivotTable,
155
157
  zLine: ()=>zLine,
156
158
  columnSpecPipeline: ()=>columnSpecPipeline,
157
159
  UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
@@ -160,8 +162,9 @@
160
162
  zLinearColor: ()=>zLinearColor,
161
163
  zAreaStyle: ()=>zAreaStyle,
162
164
  ORIGINAL_DATA: ()=>ORIGINAL_DATA,
163
- zStackCornerRadius: ()=>zStackCornerRadius,
165
+ zRadarConfig: ()=>zRadarConfig,
164
166
  zAnnotationArea: ()=>zAnnotationArea,
167
+ zStackCornerRadius: ()=>zStackCornerRadius,
165
168
  zUnfoldInfo: ()=>zUnfoldInfo,
166
169
  zRose: ()=>zRose,
167
170
  columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
@@ -172,7 +175,9 @@
172
175
  registerColumnParallel: ()=>registerColumnParallel,
173
176
  updateAdvanced: ()=>updateAdvanced,
174
177
  zDimension: ()=>zDimension,
178
+ zRadar: ()=>zRadar,
175
179
  zTable: ()=>zTable,
180
+ isMeasure: ()=>isMeasure,
176
181
  FoldSecondaryMeasureValue: ()=>FoldSecondaryMeasureValue,
177
182
  zSort: ()=>zSort,
178
183
  isPivotChart: ()=>isPivotChart,
@@ -194,8 +199,8 @@
194
199
  registerBarParallel: ()=>registerBarParallel,
195
200
  registerRadar: ()=>registerRadar,
196
201
  zLocale: ()=>zLocale,
202
+ isDimension: ()=>isDimension,
197
203
  pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
198
- zMeasure: ()=>zMeasure,
199
204
  areaRangeSpecPipeline: ()=>areaRangeSpecPipeline,
200
205
  areaRangeAdvancedPipeline: ()=>areaRangeAdvancedPipeline,
201
206
  dualAxisAdvancedPipeline: ()=>dualAxisAdvancedPipeline,
@@ -208,9 +213,10 @@
208
213
  zConfig: ()=>zConfig,
209
214
  zEncoding: ()=>zEncoding,
210
215
  zBarStyle: ()=>zBarStyle,
216
+ zMeasure: ()=>zMeasure,
211
217
  zRoseParallelConfig: ()=>zRoseParallelConfig,
212
- zXLinearAxis: ()=>zXLinearAxis,
213
218
  zAreaPercent: ()=>zAreaPercent,
219
+ zXLinearAxis: ()=>zXLinearAxis,
214
220
  columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
215
221
  isValueSelector: ()=>isValueSelector,
216
222
  donutAdvancedPipeline: ()=>donutAdvancedPipeline,
@@ -228,8 +234,8 @@
228
234
  lineAdvancedPipeline: ()=>lineAdvancedPipeline,
229
235
  zBarPercentConfig: ()=>zBarPercentConfig,
230
236
  lineSpecPipeline: ()=>lineSpecPipeline,
237
+ isDimensions: ()=>isDimensions,
231
238
  zScatterConfig: ()=>zScatterConfig,
232
- zTooltip: ()=>zTooltip,
233
239
  createFormatter: ()=>createFormatter,
234
240
  zDimensionGroup: ()=>zDimensionGroup,
235
241
  isMeasureSelector: ()=>isMeasureSelector,
@@ -609,11 +615,6 @@
609
615
  dataset
610
616
  };
611
617
  };
612
- function chunk_BZNENX2T_r(o) {
613
- if ("object" != typeof o || null === o) return !1;
614
- let e = Object.getPrototypeOf(o);
615
- return null === e || e === Object.prototype;
616
- }
617
618
  function chunk_D6FCK2GA_u(o, n, a) {
618
619
  let t = (r)=>o(r, ...n);
619
620
  return void 0 === a ? t : Object.assign(t, {
@@ -627,6 +628,46 @@
627
628
  if (1 === a) return chunk_D6FCK2GA_u(r, n, o);
628
629
  throw new Error("Wrong number of arguments");
629
630
  }
631
+ function chunk_2T7K3PFL_i(...e) {
632
+ return chunk_WIMGWYZL_u(chunk_2T7K3PFL_o, e);
633
+ }
634
+ function chunk_2T7K3PFL_o(e, s) {
635
+ let r = {};
636
+ for (let n of s)n in e && (r[n] = e[n]);
637
+ return r;
638
+ }
639
+ const tableConfig_tableConfig = (advancedVSeed, context)=>{
640
+ const { vseed } = context;
641
+ const { chartType } = vseed;
642
+ const result = {
643
+ ...advancedVSeed
644
+ };
645
+ const config = chunk_2T7K3PFL_i(vseed, [
646
+ 'backgroundColor',
647
+ 'bodyFontSize',
648
+ 'bodyFontColor',
649
+ 'bodyBackgroundColor',
650
+ 'headerFontSize',
651
+ 'headerFontColor',
652
+ 'headerBackgroundColor',
653
+ 'hoverHeaderBackgroundColor',
654
+ 'hoverHeaderInlineBackgroundColor',
655
+ 'selectedBorderColor',
656
+ 'selectedBackgroundColor'
657
+ ]);
658
+ result.config = {
659
+ ...result.config || {},
660
+ [chartType]: {
661
+ ...config
662
+ }
663
+ };
664
+ return result;
665
+ };
666
+ function chunk_BZNENX2T_r(o) {
667
+ if ("object" != typeof o || null === o) return !1;
668
+ let e = Object.getPrototypeOf(o);
669
+ return null === e || e === Object.prototype;
670
+ }
630
671
  function D(...e) {
631
672
  return chunk_WIMGWYZL_u(chunk_PDQFB3TV_s, e);
632
673
  }
@@ -667,6 +708,12 @@
667
708
  for (let [e, c] of n.entries())r[e] = chunk_BCBB46UE_u(c, o, t);
668
709
  return r;
669
710
  }
711
+ function chunk_SFZGYJFI_t(r) {
712
+ return "string" == typeof r;
713
+ }
714
+ function chunk_6GTAPB47_e(r) {
715
+ return "number" == typeof r && !Number.isNaN(r);
716
+ }
670
717
  function chunk_NMC53JVB_o(e) {
671
718
  return "object" == typeof e && null !== e;
672
719
  }
@@ -705,6 +752,7 @@
705
752
  return result;
706
753
  };
707
754
  const mergeArray = (arr, themeItem)=>{
755
+ if (chunk_JK3VNB42_n(themeItem) || chunk_SFZGYJFI_t(themeItem) || chunk_6GTAPB47_e(themeItem)) return arr;
708
756
  if (!Array.isArray(arr)) return arr;
709
757
  if (arr.some((d)=>!chunk_NMC53JVB_o(d))) return arr;
710
758
  return arr.map((item)=>chunk_5S4PYKVY_t(themeItem, item));
@@ -714,11 +762,14 @@
714
762
  autoMeasures,
715
763
  autoDimensions,
716
764
  records_records,
765
+ tableConfig_tableConfig,
717
766
  theme_theme
718
767
  ];
719
768
  const initTable = (spec, context)=>{
720
769
  const { advancedVSeed } = context;
721
770
  const { dataset } = advancedVSeed;
771
+ const { config } = advancedVSeed;
772
+ const { backgroundColor = 'transparent' } = config.table || {};
722
773
  return {
723
774
  ...spec,
724
775
  records: dataset,
@@ -740,23 +791,26 @@
740
791
  highlightMode: 'row'
741
792
  },
742
793
  theme: {
743
- underlayBackgroundColor: 'transparent'
794
+ underlayBackgroundColor: backgroundColor
744
795
  }
745
796
  };
746
797
  };
747
- const measureTreeToColumns = (spec, context)=>{
798
+ const isMeasure = (measure)=>!('children' in measure);
799
+ const isMeasureGroup = (measure)=>'children' in measure;
800
+ const isMeasures = (measures)=>measures.every(isMeasure);
801
+ const dimensionTreeToColumns = (spec, context)=>{
748
802
  const { advancedVSeed } = context;
749
- const measures = advancedVSeed.measures;
803
+ const dimensions = advancedVSeed.dimensions;
750
804
  const result = {
751
805
  ...spec
752
806
  };
753
807
  const eachNode = (node)=>{
754
- if ('children' in node) return {};
755
- return {
808
+ if (isMeasure(node)) return {
756
809
  width: 'auto'
757
810
  };
811
+ return {};
758
812
  };
759
- const columns = treeTreeToColumns(measures, eachNode);
813
+ const columns = treeTreeToColumns(dimensions, eachNode);
760
814
  return {
761
815
  ...result,
762
816
  columns: [
@@ -765,19 +819,109 @@
765
819
  ]
766
820
  };
767
821
  };
768
- const dimensionTreeToColumns = (spec, context)=>{
822
+ const treeTreeToColumns = (tree, callback)=>{
823
+ const result = tree.map((item)=>{
824
+ if ('children' in item && Array.isArray(item.children)) {
825
+ const groupNode = item;
826
+ const field = groupNode.id;
827
+ const title = groupNode.alias ?? groupNode.id;
828
+ const props = callback?.(groupNode) || {};
829
+ return {
830
+ field,
831
+ title,
832
+ columns: treeTreeToColumns(item.children, callback),
833
+ ...props
834
+ };
835
+ }
836
+ {
837
+ const field = item.id;
838
+ const title = item.alias ?? item.id;
839
+ const props = callback?.(item) || {};
840
+ return {
841
+ field,
842
+ title,
843
+ ...props
844
+ };
845
+ }
846
+ });
847
+ return result || [];
848
+ };
849
+ function chunk_VCYTMP4D_n(e) {
850
+ return void 0 === e ? !0 : "string" == typeof e || Array.isArray(e) ? 0 === e.length : 0 === Object.keys(e).length;
851
+ }
852
+ const createNumFormatter = (format, locale = intl.getLocale())=>{
853
+ const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
854
+ const numFormatterOptions = {
855
+ style: 'decimal',
856
+ notation: 'scientific' === type ? 'scientific' : 'standard',
857
+ roundingMode,
858
+ roundingPriority
859
+ };
860
+ if (chunk_6GTAPB47_e(fractionDigits)) {
861
+ if (fractionDigits >= 0) {
862
+ numFormatterOptions.minimumFractionDigits = fractionDigits;
863
+ numFormatterOptions.maximumFractionDigits = fractionDigits;
864
+ }
865
+ }
866
+ if (chunk_6GTAPB47_e(significantDigits) && significantDigits > 0) {
867
+ if (significantDigits > 0) {
868
+ numFormatterOptions.minimumSignificantDigits = significantDigits;
869
+ numFormatterOptions.maximumSignificantDigits = significantDigits;
870
+ }
871
+ }
872
+ const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
873
+ return (value)=>{
874
+ let num = Number(value);
875
+ let typeSymbol = '';
876
+ if (Number.isNaN(num)) return String(value);
877
+ if ('percent' === type) {
878
+ num *= 100;
879
+ typeSymbol = '%';
880
+ } else if ('permille' === type) {
881
+ num *= 1000;
882
+ typeSymbol = "\u2030";
883
+ } else if ('number' === type) num /= ratio || 1;
884
+ let numStr = numFormatter.format(num);
885
+ if (thousandSeparator) {
886
+ const parts = numStr.split('.');
887
+ parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
888
+ numStr = parts.join('.');
889
+ }
890
+ return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
891
+ };
892
+ };
893
+ const autoNumFormatter = (value, locale = intl.getLocale())=>{
894
+ if (null == value) return String(value);
895
+ const num = Number(value);
896
+ if (Number.isNaN(num)) return String(value);
897
+ const numFormatterOptions = {
898
+ style: 'decimal',
899
+ notation: 'compact'
900
+ };
901
+ numFormatterOptions.minimumFractionDigits = 0;
902
+ numFormatterOptions.maximumFractionDigits = 2;
903
+ const numFormatter = new Intl.NumberFormat(locale, {
904
+ ...numFormatterOptions
905
+ });
906
+ return numFormatter.format(Number(value));
907
+ };
908
+ const createFormatter = (format)=>createNumFormatter(format);
909
+ const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
910
+ const measureTreeToColumns = (spec, context)=>{
769
911
  const { advancedVSeed } = context;
770
- const dimensions = advancedVSeed.dimensions;
912
+ const { locale } = advancedVSeed;
913
+ const measures = advancedVSeed.measures;
771
914
  const result = {
772
915
  ...spec
773
916
  };
774
917
  const eachNode = (node)=>{
775
- if ('children' in node) return {};
776
- return {
777
- width: 'auto'
918
+ if (isMeasure(node)) return {
919
+ width: 'auto',
920
+ fieldFormat: fieldFormat(node, locale)
778
921
  };
922
+ return {};
779
923
  };
780
- const columns = treeTreeToColumns(dimensions, eachNode);
924
+ const columns = measuresToColumns_treeTreeToColumns(measures, eachNode);
781
925
  return {
782
926
  ...result,
783
927
  columns: [
@@ -786,7 +930,16 @@
786
930
  ]
787
931
  };
788
932
  };
789
- const treeTreeToColumns = (tree, callback)=>{
933
+ const fieldFormat = (node, locale)=>(datum)=>{
934
+ const { format = {}, autoFormat = true, id } = node;
935
+ const value = datum[id];
936
+ if (!chunk_VCYTMP4D_n(format)) {
937
+ const formatter = createFormatter(format);
938
+ return formatter(value);
939
+ }
940
+ if (autoFormat) return autoFormatter(value, locale);
941
+ };
942
+ const measuresToColumns_treeTreeToColumns = (tree, callback)=>{
790
943
  const result = tree.map((item)=>{
791
944
  if ('children' in item && Array.isArray(item.children)) {
792
945
  const groupNode = item;
@@ -796,7 +949,7 @@
796
949
  return {
797
950
  field,
798
951
  title,
799
- columns: treeTreeToColumns(item.children, callback),
952
+ columns: measuresToColumns_treeTreeToColumns(item.children, callback),
800
953
  ...props
801
954
  };
802
955
  }
@@ -818,8 +971,8 @@
818
971
  ...spec
819
972
  };
820
973
  const { advancedVSeed } = context;
821
- const { customTheme, chartType } = advancedVSeed;
822
- const themeConfig = customTheme?.config?.[chartType];
974
+ const { chartType, config } = advancedVSeed;
975
+ const themeConfig = config?.[chartType];
823
976
  if (!result.theme || !themeConfig) return result;
824
977
  const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)';
825
978
  const backgroundColor = themeConfig.bodyBackgroundColor || '#fff';
@@ -857,8 +1010,8 @@
857
1010
  ...spec
858
1011
  };
859
1012
  const { advancedVSeed } = context;
860
- const { customTheme, chartType } = advancedVSeed;
861
- const themConfig = customTheme?.config?.[chartType];
1013
+ const { config, chartType } = advancedVSeed;
1014
+ const themConfig = config?.[chartType];
862
1015
  if (!result.theme || !themConfig) return result;
863
1016
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
864
1017
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -905,8 +1058,8 @@
905
1058
  ...spec
906
1059
  };
907
1060
  const { advancedVSeed } = context;
908
- const { customTheme, chartType } = advancedVSeed;
909
- const themConfig = customTheme?.config?.[chartType];
1061
+ const { config, chartType } = advancedVSeed;
1062
+ const themConfig = config?.[chartType];
910
1063
  if (!result.theme || !themConfig) return result;
911
1064
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
912
1065
  result.theme.frameStyle = {
@@ -921,8 +1074,8 @@
921
1074
  ...spec
922
1075
  };
923
1076
  const { advancedVSeed } = context;
924
- const { customTheme, chartType } = advancedVSeed;
925
- const themConfig = customTheme?.config?.[chartType];
1077
+ const { config, chartType } = advancedVSeed;
1078
+ const themConfig = config?.[chartType];
926
1079
  if (!result.theme || !themConfig) return result;
927
1080
  const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
928
1081
  const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)';
@@ -1046,16 +1199,46 @@
1046
1199
  }));
1047
1200
  return result;
1048
1201
  };
1202
+ const pivotTableConfig = (advancedVSeed, context)=>{
1203
+ const { vseed } = context;
1204
+ const { chartType } = vseed;
1205
+ const result = {
1206
+ ...advancedVSeed
1207
+ };
1208
+ const config = chunk_2T7K3PFL_i(vseed, [
1209
+ 'backgroundColor',
1210
+ 'bodyFontSize',
1211
+ 'bodyFontColor',
1212
+ 'bodyBackgroundColor',
1213
+ 'headerFontSize',
1214
+ 'headerFontColor',
1215
+ 'headerBackgroundColor',
1216
+ 'hoverHeaderBackgroundColor',
1217
+ 'hoverHeaderInlineBackgroundColor',
1218
+ 'selectedBorderColor',
1219
+ 'selectedBackgroundColor'
1220
+ ]);
1221
+ result.config = {
1222
+ ...result.config || {},
1223
+ [chartType]: {
1224
+ ...config
1225
+ }
1226
+ };
1227
+ return result;
1228
+ };
1049
1229
  const pivotTableAdvancedPipeline = [
1050
1230
  initAdvancedVSeed,
1051
1231
  autoPivotMeasures,
1052
1232
  autoPivotDimensions,
1053
1233
  records_records,
1234
+ pivotTableConfig,
1054
1235
  theme_theme
1055
1236
  ];
1056
1237
  const initPivotTable = (spec, context)=>{
1057
1238
  const { advancedVSeed } = context;
1058
1239
  const { dataset } = advancedVSeed;
1240
+ const { config } = advancedVSeed;
1241
+ const { backgroundColor = 'transparent' } = config.pivotTable || {};
1059
1242
  return {
1060
1243
  ...spec,
1061
1244
  records: dataset,
@@ -1076,6 +1259,9 @@
1076
1259
  tooltip: {
1077
1260
  isShowOverflowTextTooltip: true
1078
1261
  },
1262
+ corner: {
1263
+ titleOnDimension: 'all'
1264
+ },
1079
1265
  widthAdaptiveMode: 'all',
1080
1266
  animationAppear: {
1081
1267
  duration: 300,
@@ -1084,7 +1270,7 @@
1084
1270
  direction: 'row'
1085
1271
  },
1086
1272
  theme: {
1087
- underlayBackgroundColor: 'transparent'
1273
+ underlayBackgroundColor: backgroundColor
1088
1274
  }
1089
1275
  };
1090
1276
  };
@@ -1116,26 +1302,39 @@
1116
1302
  };
1117
1303
  const pivotIndicators = (spec, context)=>{
1118
1304
  const { advancedVSeed } = context;
1305
+ const { locale } = advancedVSeed;
1119
1306
  const measures = advancedVSeed.measures;
1120
1307
  return {
1121
1308
  ...spec,
1122
1309
  indicatorsAsCol: true,
1123
1310
  indicatorTitle: intl.i18n`指标名称`,
1124
- indicators: measures.map((item)=>({
1311
+ indicators: measures.map((item)=>{
1312
+ if (isMeasure(item)) return {
1125
1313
  cellType: 'text',
1126
1314
  indicatorKey: item.id,
1127
1315
  title: item.alias || item.id,
1128
- width: 'auto'
1129
- }))
1316
+ width: 'auto',
1317
+ format: pivotIndicators_fieldFormat(item, locale)
1318
+ };
1319
+ return {};
1320
+ })
1130
1321
  };
1131
1322
  };
1323
+ const pivotIndicators_fieldFormat = (node, locale)=>(value)=>{
1324
+ const { format = {}, autoFormat = true } = node;
1325
+ if (!chunk_VCYTMP4D_n(format)) {
1326
+ const formatter = createFormatter(format);
1327
+ return formatter(value);
1328
+ }
1329
+ if (autoFormat) return autoFormatter(value, locale);
1330
+ };
1132
1331
  const rowHeaderStyle = (spec, context)=>{
1133
1332
  const result = {
1134
1333
  ...spec
1135
1334
  };
1136
1335
  const { advancedVSeed } = context;
1137
- const { customTheme, chartType } = advancedVSeed;
1138
- const themConfig = customTheme?.config?.[chartType];
1336
+ const { config, chartType } = advancedVSeed;
1337
+ const themConfig = config?.[chartType];
1139
1338
  if (!result.theme || !themConfig) return result;
1140
1339
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
1141
1340
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -1182,8 +1381,8 @@
1182
1381
  ...spec
1183
1382
  };
1184
1383
  const { advancedVSeed } = context;
1185
- const { customTheme, chartType } = advancedVSeed;
1186
- const themConfig = customTheme?.config?.[chartType];
1384
+ const { config, chartType } = advancedVSeed;
1385
+ const themConfig = config?.[chartType];
1187
1386
  if (!result.theme || !themConfig) return result;
1188
1387
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
1189
1388
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -1205,9 +1404,9 @@
1205
1404
  ],
1206
1405
  textAlign: 'left',
1207
1406
  hover: {
1208
- cellBgColor: hoverCellColor,
1209
- inlineRowBgColor: hoverInlineColor,
1210
- inlineColumnBgColor: hoverInlineColor
1407
+ cellBgColor: hoverCellColor || void 0,
1408
+ inlineRowBgColor: hoverInlineColor || void 0,
1409
+ inlineColumnBgColor: hoverInlineColor || void 0
1211
1410
  },
1212
1411
  frameStyle: {
1213
1412
  borderColor: [
@@ -1228,6 +1427,29 @@
1228
1427
  };
1229
1428
  return result;
1230
1429
  };
1430
+ var new_data_set_AggregationType;
1431
+ !function(AggregationType) {
1432
+ 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";
1433
+ }(new_data_set_AggregationType || (new_data_set_AggregationType = {}));
1434
+ var new_data_set_SortType;
1435
+ !function(SortType) {
1436
+ SortType.ASC = "ASC", SortType.DESC = "DESC", SortType.NORMAL = "NORMAL", SortType.desc = "desc", SortType.asc = "asc", SortType.normal = "normal";
1437
+ }(new_data_set_SortType || (new_data_set_SortType = {}));
1438
+ const dataConfig = (spec, context)=>{
1439
+ const { advancedVSeed } = context;
1440
+ const measures = findAllMeasures(advancedVSeed.measures);
1441
+ const aggregationRules = measures.map((measure)=>({
1442
+ field: measure.id,
1443
+ aggregationType: new_data_set_AggregationType.NONE,
1444
+ indicatorKey: measure.id
1445
+ }));
1446
+ return {
1447
+ ...spec,
1448
+ dataConfig: {
1449
+ aggregationRules
1450
+ }
1451
+ };
1452
+ };
1231
1453
  const pivotTableSpecPipeline = [
1232
1454
  initPivotTable,
1233
1455
  pivotColumns,
@@ -1238,7 +1460,8 @@
1238
1460
  rowHeaderStyle,
1239
1461
  cornerHeaderStyle,
1240
1462
  frameStyle,
1241
- selectionStyle
1463
+ selectionStyle,
1464
+ dataConfig
1242
1465
  ];
1243
1466
  const registerPivotTable = ()=>{
1244
1467
  Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
@@ -1770,14 +1993,6 @@
1770
1993
  });
1771
1994
  return chunk_QJLMYOTX_i(res.map((item)=>item[id]));
1772
1995
  };
1773
- function chunk_2T7K3PFL_i(...e) {
1774
- return chunk_WIMGWYZL_u(chunk_2T7K3PFL_o, e);
1775
- }
1776
- function chunk_2T7K3PFL_o(e, s) {
1777
- let r = {};
1778
- for (let n of s)n in e && (r[n] = e[n]);
1779
- return r;
1780
- }
1781
1996
  const lineConfig = (advancedVSeed, context)=>{
1782
1997
  const { vseed } = context;
1783
1998
  const { chartType } = vseed;
@@ -1939,22 +2154,44 @@
1939
2154
  const colorIdMap = unfoldInfo.colorIdMap;
1940
2155
  const { color } = baseConfig;
1941
2156
  const { colorScheme, colorMapping } = color;
1942
- const mappingList = [];
1943
- if (colorMapping) Object.entries(colorMapping).sort((a, b)=>a[0].split(Separator).length - b[0].split(Separator).length).forEach(([key, value])=>{
1944
- const idMap = Object.entries(colorIdMap).filter(([_, v])=>v.includes(key));
1945
- for (const [colorId] of idMap)mappingList.push([
1946
- colorId,
1947
- value
1948
- ]);
1949
- });
1950
2157
  result.color = {
1951
2158
  type: 'ordinal',
1952
2159
  domain: colorItems,
1953
2160
  range: colorScheme,
1954
- specified: Object.fromEntries(mappingList)
2161
+ specified: createSpecifiedForColorMapping(colorMapping, colorIdMap, colorItems)
1955
2162
  };
1956
2163
  return result;
1957
2164
  };
2165
+ const createSpecifiedForColorMapping = (colorMapping, colorIdMap, colorItems)=>{
2166
+ if (!colorMapping || !colorIdMap || !colorItems) return;
2167
+ const matchedList = [];
2168
+ const colors = Object.entries(colorMapping).sort((a, b)=>b[0].length - a[0].length);
2169
+ const accurateMap = colors.reduce((prev, cur)=>{
2170
+ const name = cur[0];
2171
+ const colorValue = cur[1];
2172
+ const accurateMatchedList = Object.entries(colorIdMap).filter(([colorKey, colorAlias])=>colorKey === name || colorAlias === name);
2173
+ accurateMatchedList.forEach((item)=>{
2174
+ prev[item[0]] = colorValue;
2175
+ matchedList.push(name);
2176
+ });
2177
+ return prev;
2178
+ }, {});
2179
+ const fuzzyMap = colors.reduce((prev, cur)=>{
2180
+ const name = cur[0];
2181
+ const colorValue = cur[1];
2182
+ if (matchedList.includes(name)) return prev;
2183
+ const fuzzyMatchedList = Object.entries(colorIdMap).filter(([colorKey, colorAlias])=>colorKey.includes(name) || colorAlias.includes(name));
2184
+ fuzzyMatchedList.forEach((item)=>{
2185
+ if (prev[item[0]]) return;
2186
+ prev[item[0]] = colorValue;
2187
+ });
2188
+ return prev;
2189
+ }, {});
2190
+ return {
2191
+ ...fuzzyMap,
2192
+ ...accurateMap
2193
+ };
2194
+ };
1958
2195
  const background_backgroundColor = (spec, context)=>{
1959
2196
  const result = {
1960
2197
  ...spec
@@ -1971,7 +2208,7 @@
1971
2208
  const datasetXY = (spec, context)=>{
1972
2209
  const { advancedVSeed, vseed } = context;
1973
2210
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
1974
- const { orderMapping = {} } = analysis ?? {};
2211
+ const orderMapping = analysis?.orderMapping || {};
1975
2212
  const angle = encoding[0]?.angle?.[0];
1976
2213
  const x = encoding[0]?.x?.[0];
1977
2214
  const group = encoding[0]?.group?.[0];
@@ -2016,7 +2253,7 @@
2016
2253
  ...spec
2017
2254
  };
2018
2255
  const { advancedVSeed } = context;
2019
- const { dataset } = advancedVSeed;
2256
+ const { dataset = [] } = advancedVSeed;
2020
2257
  const size = dataset.length;
2021
2258
  if (size < 5000) return result;
2022
2259
  result.large = true;
@@ -2121,67 +2358,8 @@
2121
2358
  };
2122
2359
  const ANNOTATION_Z_INDEX = 1000;
2123
2360
  const LINEAR_AXIS_INNER_OFFSET_TOP = 7;
2124
- function chunk_6GTAPB47_e(r) {
2125
- return "number" == typeof r && !Number.isNaN(r);
2126
- }
2127
- const createNumFormatter = (format, locale = intl.getLocale())=>{
2128
- const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
2129
- const numFormatterOptions = {
2130
- style: 'decimal',
2131
- notation: 'scientific' === type ? 'scientific' : 'standard',
2132
- roundingMode,
2133
- roundingPriority
2134
- };
2135
- if (chunk_6GTAPB47_e(fractionDigits)) {
2136
- if (fractionDigits >= 0) {
2137
- numFormatterOptions.minimumFractionDigits = fractionDigits;
2138
- numFormatterOptions.maximumFractionDigits = fractionDigits;
2139
- }
2140
- }
2141
- if (chunk_6GTAPB47_e(significantDigits) && significantDigits > 0) {
2142
- if (significantDigits > 0) {
2143
- numFormatterOptions.minimumSignificantDigits = significantDigits;
2144
- numFormatterOptions.maximumSignificantDigits = significantDigits;
2145
- }
2146
- }
2147
- const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
2148
- return (value)=>{
2149
- let num = Number(value);
2150
- let typeSymbol = '';
2151
- if (Number.isNaN(num)) return num.toString();
2152
- if ('percent' === type) {
2153
- num *= 100;
2154
- typeSymbol = '%';
2155
- } else if ('permille' === type) {
2156
- num *= 1000;
2157
- typeSymbol = "\u2030";
2158
- } else if ('number' === type) num /= ratio || 1;
2159
- let numStr = numFormatter.format(num);
2160
- if (thousandSeparator) {
2161
- const parts = numStr.split('.');
2162
- parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
2163
- numStr = parts.join('.');
2164
- }
2165
- return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
2166
- };
2167
- };
2168
- const autoNumFormatter = (value, locale = intl.getLocale())=>{
2169
- if (null == value) return String(value);
2170
- const num = Number(value);
2171
- if (Number.isNaN(num)) return String(value);
2172
- const numFormatterOptions = {
2173
- style: 'decimal',
2174
- notation: 'compact'
2175
- };
2176
- numFormatterOptions.minimumFractionDigits = 0;
2177
- numFormatterOptions.maximumFractionDigits = 2;
2178
- const numFormatter = new Intl.NumberFormat(locale, {
2179
- ...numFormatterOptions
2180
- });
2181
- return numFormatter.format(Number(value));
2182
- };
2183
- const createFormatter = (format)=>createNumFormatter(format);
2184
- const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
2361
+ const DUAL_AXIS_CHART_COLUMN_Z_INDEX = 1000;
2362
+ const DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX = 1001;
2185
2363
  const yLinear = (spec, context)=>{
2186
2364
  const result = {
2187
2365
  ...spec
@@ -2264,9 +2442,6 @@
2264
2442
  ];
2265
2443
  return result;
2266
2444
  };
2267
- function chunk_VCYTMP4D_n(e) {
2268
- return void 0 === e ? !0 : "string" == typeof e || Array.isArray(e) ? 0 === e.length : 0 === Object.keys(e).length;
2269
- }
2270
2445
  const label_label = (spec, context)=>{
2271
2446
  const result = {
2272
2447
  ...spec
@@ -2387,7 +2562,11 @@
2387
2562
  const config = advancedVSeed.config?.[chartType]?.crosshairLine;
2388
2563
  if (!config) return result;
2389
2564
  if (!result.crosshair) result.crosshair = {};
2390
- const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
2565
+ const visible = config.visible || true;
2566
+ const lineColor = config.lineColor || void 0;
2567
+ const labelColor = config.labelColor || void 0;
2568
+ const labelVisible = config.labelVisible || void 0;
2569
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
2391
2570
  const crosshair = result.crosshair;
2392
2571
  crosshair.xField = {
2393
2572
  visible,
@@ -2674,7 +2853,12 @@
2674
2853
  ...point.state || {},
2675
2854
  dimension_hover: {
2676
2855
  scaleX: 1.4,
2677
- scaleY: 1.4
2856
+ scaleY: 1.4,
2857
+ outerBorder: {
2858
+ lineWidth: 4,
2859
+ strokeOpacity: 0.25,
2860
+ distance: 2
2861
+ }
2678
2862
  }
2679
2863
  }
2680
2864
  }
@@ -2793,7 +2977,7 @@
2793
2977
  annotationPoint
2794
2978
  ];
2795
2979
  const markPoint = annotationPointList.flatMap((annotationPoint)=>{
2796
- 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;
2980
+ 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;
2797
2981
  const dataset = advancedVSeed.dataset.flat();
2798
2982
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
2799
2983
  return selectedData.map((datum)=>({
@@ -2822,20 +3006,20 @@
2822
3006
  textAlign: textAlign,
2823
3007
  textBaseline: textBaseline,
2824
3008
  fill: textColor,
2825
- stroke: backgroundColor,
3009
+ stroke: textBackgroundColor,
2826
3010
  lineWidth: 1,
2827
3011
  fontSize: textFontSize,
2828
3012
  fontWeight: textFontWeight,
2829
3013
  dy: textFontSize
2830
3014
  },
2831
3015
  labelBackground: {
2832
- visible: backgroundVisible,
2833
- padding: backgroundPadding,
3016
+ visible: textBackgroundVisible,
3017
+ padding: textBackgroundPadding,
2834
3018
  style: {
2835
- cornerRadius: backgroundBorderRadius ?? 4,
2836
- fill: backgroundColor,
2837
- stroke: backgroundBorderColor,
2838
- lineWidth: backgroundBorderWidth,
3019
+ cornerRadius: textBackgroundBorderRadius ?? 4,
3020
+ fill: textBackgroundColor,
3021
+ stroke: textBackgroundBorderColor,
3022
+ lineWidth: textBackgroundBorderWidth,
2839
3023
  dy: textFontSize
2840
3024
  }
2841
3025
  }
@@ -2851,9 +3035,6 @@
2851
3035
  function chunk_BO3LQZNF_o(r) {
2852
3036
  return Array.isArray(r);
2853
3037
  }
2854
- function chunk_SFZGYJFI_t(r) {
2855
- return "string" == typeof r;
2856
- }
2857
3038
  const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2858
3039
  const { advancedVSeed } = context;
2859
3040
  const { annotation, encoding } = advancedVSeed;
@@ -2871,13 +3052,11 @@
2871
3052
  insideEnd: 'insideEndTop'
2872
3053
  };
2873
3054
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2874
- 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;
3055
+ 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;
2875
3056
  const dataset = advancedVSeed.dataset.flat();
2876
3057
  const generateOneMarkLine = (x)=>({
2877
3058
  x: x,
2878
3059
  zIndex: ANNOTATION_Z_INDEX,
2879
- offsetX,
2880
- offsetY,
2881
3060
  line: {
2882
3061
  style: {
2883
3062
  visible: lineVisible,
@@ -2897,10 +3076,10 @@
2897
3076
  },
2898
3077
  label: {
2899
3078
  text: text,
2900
- position: positionMap[textPosition],
3079
+ position: positionMap[textPosition || 'insideEnd'],
2901
3080
  style: {
2902
3081
  visible: true,
2903
- stroke: backgroundColor,
3082
+ stroke: textBackgroundColor,
2904
3083
  lineWidth: 1,
2905
3084
  textAlign: textAlign,
2906
3085
  textBaseline: textBaseline,
@@ -2910,20 +3089,20 @@
2910
3089
  dy: textFontSize
2911
3090
  },
2912
3091
  labelBackground: {
2913
- visible: backgroundVisible,
2914
- padding: backgroundPadding,
3092
+ visible: textBackgroundVisible,
3093
+ padding: textBackgroundPadding,
2915
3094
  style: {
2916
3095
  dy: textFontSize,
2917
- cornerRadius: backgroundBorderRadius ?? 4,
2918
- fill: backgroundColor,
2919
- stroke: backgroundBorderColor,
2920
- lineWidth: backgroundBorderWidth
3096
+ cornerRadius: textBackgroundBorderRadius ?? 4,
3097
+ fill: textBackgroundColor,
3098
+ stroke: textBackgroundBorderColor,
3099
+ lineWidth: textBackgroundBorderWidth
2921
3100
  }
2922
3101
  }
2923
3102
  },
2924
3103
  endSymbol: {
2925
3104
  visible: true,
2926
- size: 10 + lineWidth,
3105
+ size: 10 + (lineWidth || 1),
2927
3106
  style: {
2928
3107
  dy: 4,
2929
3108
  fill: lineColor
@@ -2970,12 +3149,10 @@
2970
3149
  insideEnd: 'insideEndTop'
2971
3150
  };
2972
3151
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2973
- 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;
3152
+ 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;
2974
3153
  const dataset = advancedVSeed.dataset.flat();
2975
3154
  const generateOneMarkLine = (y)=>({
2976
3155
  y,
2977
- offsetX,
2978
- offsetY,
2979
3156
  zIndex: ANNOTATION_Z_INDEX,
2980
3157
  line: {
2981
3158
  style: {
@@ -2996,11 +3173,11 @@
2996
3173
  },
2997
3174
  label: {
2998
3175
  text: text,
2999
- position: positionMap[textPosition],
3176
+ position: positionMap[textPosition || 'insideEnd'],
3000
3177
  style: {
3001
3178
  visible: true,
3002
3179
  dy: textFontSize,
3003
- stroke: backgroundColor,
3180
+ stroke: textBackgroundColor,
3004
3181
  lineWidth: 1,
3005
3182
  textAlign: textAlign,
3006
3183
  textBaseline: textBaseline,
@@ -3009,20 +3186,20 @@
3009
3186
  fontWeight: textFontWeight
3010
3187
  },
3011
3188
  labelBackground: {
3012
- visible: backgroundVisible,
3013
- padding: backgroundPadding,
3189
+ visible: textBackgroundVisible,
3190
+ padding: textBackgroundPadding,
3014
3191
  style: {
3015
3192
  dy: textFontSize,
3016
- cornerRadius: backgroundBorderRadius ?? 4,
3017
- fill: backgroundColor,
3018
- stroke: backgroundBorderColor,
3019
- lineWidth: backgroundBorderWidth
3193
+ cornerRadius: textBackgroundBorderRadius ?? 4,
3194
+ fill: textBackgroundColor,
3195
+ stroke: textBackgroundBorderColor,
3196
+ lineWidth: textBackgroundBorderWidth
3020
3197
  }
3021
3198
  }
3022
3199
  },
3023
3200
  endSymbol: {
3024
3201
  visible: true,
3025
- size: 10 + lineWidth,
3202
+ size: 10 + (lineWidth || 1),
3026
3203
  style: {
3027
3204
  dx: -4,
3028
3205
  fill: lineColor
@@ -3071,14 +3248,14 @@
3071
3248
  right: 'insideRight'
3072
3249
  };
3073
3250
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
3074
- 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;
3251
+ 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;
3075
3252
  const dataset = advancedVSeed.dataset.flat();
3076
3253
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3254
+ const labelPosition = positionMap[textPosition || 'top'];
3255
+ const isBottom = labelPosition.toLocaleLowerCase().includes('bottom');
3077
3256
  return {
3078
3257
  zIndex: ANNOTATION_Z_INDEX,
3079
3258
  regionRelative: true,
3080
- offsetX,
3081
- offsetY,
3082
3259
  positions: (data, context)=>{
3083
3260
  const positionData = data.filter((item)=>selectedData.some((datum)=>isSubset(datum, item)));
3084
3261
  const xyList = positionData.map((datum)=>context.dataToPosition(datum));
@@ -3086,8 +3263,8 @@
3086
3263
  const xAxisHelper = context.getXAxisHelper();
3087
3264
  if ('function' == typeof xAxisHelper?.getBandwidth) {
3088
3265
  const yScale = yAxisHelper.getScale();
3089
- const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
3090
- const maxX = Math.max(...xyList.map((item)=>item.x)) + outerPadding;
3266
+ const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
3267
+ const maxX = Math.max(...xyList.map((item)=>item.x)) + (outerPadding || 4);
3091
3268
  const minY = Math.min(...yScale.range());
3092
3269
  const maxY = Math.max(...yScale.range());
3093
3270
  return [
@@ -3111,8 +3288,8 @@
3111
3288
  }
3112
3289
  if ('function' == typeof yAxisHelper?.getBandwidth) {
3113
3290
  const xScale = xAxisHelper.getScale();
3114
- const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
3115
- const maxY = Math.max(...xyList.map((item)=>item.y)) + outerPadding;
3291
+ const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
3292
+ const maxY = Math.max(...xyList.map((item)=>item.y)) + (outerPadding || 4);
3116
3293
  const minX = Math.min(...xScale.range());
3117
3294
  const maxX = Math.max(...xScale.range());
3118
3295
  return [
@@ -3137,28 +3314,28 @@
3137
3314
  return [];
3138
3315
  },
3139
3316
  label: {
3140
- position: positionMap[textPosition],
3317
+ position: labelPosition,
3141
3318
  visible: true,
3142
3319
  text: text,
3143
3320
  style: {
3144
- dy: textFontSize,
3321
+ dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
3145
3322
  textAlign: textAlign,
3146
3323
  textBaseline: textBaseline,
3147
3324
  fill: textColor,
3148
- stroke: backgroundColor,
3325
+ stroke: textBackgroundColor,
3149
3326
  lineWidth: 1,
3150
3327
  fontSize: textFontSize,
3151
3328
  fontWeight: textFontWeight
3152
3329
  },
3153
3330
  labelBackground: {
3154
- visible: backgroundVisible,
3155
- padding: backgroundPadding,
3331
+ visible: textBackgroundVisible,
3332
+ padding: textBackgroundPadding,
3156
3333
  style: {
3157
- dy: textFontSize,
3158
- cornerRadius: backgroundBorderRadius ?? 4,
3159
- fill: backgroundColor,
3160
- stroke: backgroundBorderColor,
3161
- lineWidth: backgroundBorderWidth
3334
+ dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
3335
+ cornerRadius: textBackgroundBorderRadius ?? 4,
3336
+ fill: textBackgroundColor,
3337
+ stroke: textBackgroundBorderColor,
3338
+ lineWidth: textBackgroundBorderWidth
3162
3339
  }
3163
3340
  }
3164
3341
  },
@@ -3498,11 +3675,11 @@
3498
3675
  label: d,
3499
3676
  shape: {
3500
3677
  outerBorder: border ? {
3501
- stroke: colorScheme?.[index],
3678
+ stroke: colorScheme?.[index % colorScheme.length],
3502
3679
  distance: 3,
3503
3680
  lineWidth: 1
3504
3681
  } : void 0,
3505
- fill: colorScheme?.[index]
3682
+ fill: colorScheme?.[index % colorScheme.length]
3506
3683
  }
3507
3684
  })),
3508
3685
  item: {
@@ -3800,7 +3977,11 @@
3800
3977
  const config = advancedVSeed.config?.[chartType]?.crosshairRect;
3801
3978
  if (!config) return result;
3802
3979
  if (!result.crosshair) result.crosshair = {};
3803
- const { visible = true, rectColor, labelColor, labelVisible, labelBackgroundColor } = config;
3980
+ const visible = config.visible || true;
3981
+ const rectColor = config.rectColor || void 0;
3982
+ const labelColor = config.labelColor || void 0;
3983
+ const labelVisible = config.labelVisible || false;
3984
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
3804
3985
  const crosshair = result.crosshair;
3805
3986
  crosshair.xField = {
3806
3987
  visible,
@@ -3829,14 +4010,13 @@
3829
4010
  };
3830
4011
  const barStyle_barStyle = (spec, context)=>{
3831
4012
  const { advancedVSeed } = context;
3832
- const { markStyle, dataset } = advancedVSeed;
4013
+ const { markStyle, dataset = [] } = advancedVSeed;
3833
4014
  const { barStyle } = markStyle;
3834
4015
  const showStroke = dataset.length <= 100;
3835
4016
  const result = {
3836
4017
  ...spec,
3837
4018
  bar: {
3838
4019
  style: {
3839
- stroke: '#fff',
3840
4020
  lineWidth: showStroke ? 1 : 0
3841
4021
  },
3842
4022
  state: {
@@ -3912,14 +4092,12 @@
3912
4092
  right: 'insideRight'
3913
4093
  };
3914
4094
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
3915
- 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;
4095
+ 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;
3916
4096
  const dataset = advancedVSeed.dataset.flat();
3917
4097
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3918
4098
  return {
3919
4099
  zIndex: ANNOTATION_Z_INDEX,
3920
4100
  regionRelative: true,
3921
- offsetX,
3922
- offsetY,
3923
4101
  positions: (data, context)=>{
3924
4102
  const positionData = data.filter((item)=>selectedData.some((datum)=>isSubset(datum, item)));
3925
4103
  const xyList = positionData.map((datum)=>context.dataToPosition(datum));
@@ -3929,8 +4107,8 @@
3929
4107
  const depth = context.fieldX.length ?? 0;
3930
4108
  const xBandWidth = xAxisHelper?.getBandwidth?.(depth - 1);
3931
4109
  const yScale = yAxisHelper.getScale();
3932
- const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
3933
- const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + outerPadding;
4110
+ const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
4111
+ const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + (outerPadding || 4);
3934
4112
  const minY = Math.min(...yScale.range());
3935
4113
  const maxY = Math.max(...yScale.range());
3936
4114
  return [
@@ -3956,8 +4134,8 @@
3956
4134
  const depth = context.fieldY.length ?? 0;
3957
4135
  const yBandWidth = yAxisHelper?.getBandwidth?.(depth - 1);
3958
4136
  const xScale = xAxisHelper.getScale();
3959
- const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
3960
- const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + outerPadding;
4137
+ const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
4138
+ const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + (outerPadding || 4);
3961
4139
  const minX = Math.min(...xScale.range());
3962
4140
  const maxX = Math.max(...xScale.range());
3963
4141
  return [
@@ -3982,28 +4160,28 @@
3982
4160
  return [];
3983
4161
  },
3984
4162
  label: {
3985
- position: positionMap[textPosition],
4163
+ position: positionMap[textPosition || 'top'],
3986
4164
  visible: true,
3987
4165
  text: text,
3988
4166
  style: {
3989
4167
  dy: textFontSize,
3990
4168
  textAlign: textAlign,
3991
4169
  textBaseline: textBaseline,
3992
- stroke: backgroundColor,
4170
+ stroke: textBackgroundColor,
3993
4171
  lineWidth: 1,
3994
4172
  fill: textColor,
3995
4173
  fontSize: textFontSize,
3996
4174
  fontWeight: textFontWeight
3997
4175
  },
3998
4176
  labelBackground: {
3999
- visible: backgroundVisible,
4000
- padding: backgroundPadding,
4177
+ visible: textBackgroundVisible,
4178
+ padding: textBackgroundPadding,
4001
4179
  style: {
4002
4180
  dy: textFontSize,
4003
- cornerRadius: backgroundBorderRadius ?? 4,
4004
- fill: backgroundColor,
4005
- stroke: backgroundBorderColor,
4006
- lineWidth: backgroundBorderWidth
4181
+ cornerRadius: textBackgroundBorderRadius ?? 4,
4182
+ fill: textBackgroundColor,
4183
+ stroke: textBackgroundBorderColor,
4184
+ lineWidth: textBackgroundBorderWidth
4007
4185
  }
4008
4186
  }
4009
4187
  },
@@ -4333,7 +4511,7 @@
4333
4511
  const datasetYX = (spec, context)=>{
4334
4512
  const { advancedVSeed, vseed } = context;
4335
4513
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
4336
- const { orderMapping = {} } = analysis ?? {};
4514
+ const orderMapping = analysis?.orderMapping || {};
4337
4515
  const angle = encoding[0]?.angle?.[0];
4338
4516
  const y = encoding[0]?.y?.[0];
4339
4517
  const group = encoding[0]?.group?.[0];
@@ -4559,7 +4737,11 @@
4559
4737
  const config = advancedVSeed.config?.[chartType]?.crosshairRect;
4560
4738
  if (!config) return result;
4561
4739
  if (!result.crosshair) result.crosshair = {};
4562
- const { visible = true, rectColor, labelColor, labelVisible, labelBackgroundColor } = config;
4740
+ const visible = config.visible || true;
4741
+ const rectColor = config.rectColor || void 0;
4742
+ const labelColor = config.labelColor || void 0;
4743
+ const labelVisible = config.labelVisible || false;
4744
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
4563
4745
  const crosshair = result.crosshair;
4564
4746
  crosshair.yField = {
4565
4747
  visible,
@@ -5278,6 +5460,35 @@
5278
5460
  return result;
5279
5461
  };
5280
5462
  };
5463
+ const seriesDualAxis = (...args)=>{
5464
+ const result = {
5465
+ type: 'common',
5466
+ padding: 0,
5467
+ region: [
5468
+ {
5469
+ clip: true
5470
+ }
5471
+ ]
5472
+ };
5473
+ const createDualContext = (context, index)=>{
5474
+ const { advancedVSeed } = context;
5475
+ const dataset = advancedVSeed.dataset[index];
5476
+ return {
5477
+ ...context,
5478
+ advancedVSeed: {
5479
+ ...advancedVSeed,
5480
+ dataset: dataset
5481
+ }
5482
+ };
5483
+ };
5484
+ return (_, context)=>{
5485
+ result.series = args.map((pipeline, index)=>{
5486
+ const seriesContext = createDualContext(context, index);
5487
+ return execPipeline(pipeline, seriesContext, {});
5488
+ });
5489
+ return result;
5490
+ };
5491
+ };
5281
5492
  const initAreaRange = (spec, context)=>{
5282
5493
  const result = {
5283
5494
  ...spec
@@ -5707,7 +5918,11 @@
5707
5918
  const config = advancedVSeed.config?.[chartType]?.crosshairLine;
5708
5919
  if (!config) return result;
5709
5920
  if (!result.crosshair) result.crosshair = {};
5710
- const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
5921
+ const visible = config.visible || true;
5922
+ const lineColor = config.lineColor || void 0;
5923
+ const labelColor = config.labelColor || void 0;
5924
+ const labelVisible = config.labelVisible || void 0;
5925
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
5711
5926
  const crosshair = result.crosshair;
5712
5927
  crosshair.yField = {
5713
5928
  visible,
@@ -5957,6 +6172,7 @@
5957
6172
  'legend',
5958
6173
  'tooltip',
5959
6174
  'dualChartType',
6175
+ 'alignTicks',
5960
6176
  'primaryYAxis',
5961
6177
  'secondaryYAxis',
5962
6178
  'crosshairLine'
@@ -6109,7 +6325,8 @@
6109
6325
  };
6110
6326
  const dualChartTypePrimary = (spec, context)=>{
6111
6327
  const result = {
6112
- ...spec
6328
+ ...spec,
6329
+ zIndex: DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX
6113
6330
  };
6114
6331
  const { advancedVSeed, vseed } = context;
6115
6332
  const { chartType } = vseed;
@@ -6120,12 +6337,16 @@
6120
6337
  secondary: 'line'
6121
6338
  };
6122
6339
  const primary = Array.isArray(config) ? config[index].primary || config[0].primary : config.primary;
6123
- switch(primary){
6340
+ const secondary = Array.isArray(config) ? config[index].secondary || config[0].secondary : config.secondary;
6341
+ const bothColumn = 'column' === primary && 'column' === secondary;
6342
+ const type = bothColumn ? 'columnParallel' : primary;
6343
+ switch(type){
6124
6344
  case 'line':
6125
6345
  result.type = 'line';
6126
6346
  break;
6127
6347
  case 'column':
6128
6348
  result.type = 'bar';
6349
+ result.zIndex = DUAL_AXIS_CHART_COLUMN_Z_INDEX;
6129
6350
  break;
6130
6351
  case 'columnParallel':
6131
6352
  {
@@ -6136,6 +6357,7 @@
6136
6357
  datasetReshapeInfo[0].unfoldInfo.groupId
6137
6358
  ];
6138
6359
  columnSpec.type = 'bar';
6360
+ result.zIndex = DUAL_AXIS_CHART_COLUMN_Z_INDEX;
6139
6361
  break;
6140
6362
  }
6141
6363
  case 'columnPercent':
@@ -6159,7 +6381,8 @@
6159
6381
  };
6160
6382
  const dualChartTypeSecondary = (spec, context)=>{
6161
6383
  const result = {
6162
- ...spec
6384
+ ...spec,
6385
+ zIndex: DUAL_AXIS_CHART_NON_COLUMN_Z_INDEX
6163
6386
  };
6164
6387
  const { advancedVSeed, vseed } = context;
6165
6388
  const { chartType } = vseed;
@@ -6169,13 +6392,17 @@
6169
6392
  secondary: 'line'
6170
6393
  };
6171
6394
  const index = datasetReshapeInfo[0].index;
6395
+ const primary = Array.isArray(config) ? config[index].primary || config[0].primary : config.primary;
6172
6396
  const secondary = Array.isArray(config) ? config[index].secondary || config[0].secondary : config.secondary;
6173
- switch(secondary){
6397
+ const bothColumn = 'column' === primary && 'column' === secondary;
6398
+ const type = bothColumn ? 'columnParallel' : secondary;
6399
+ switch(type){
6174
6400
  case 'line':
6175
6401
  result.type = 'line';
6176
6402
  break;
6177
6403
  case 'column':
6178
6404
  result.type = 'bar';
6405
+ result.zIndex = DUAL_AXIS_CHART_COLUMN_Z_INDEX;
6179
6406
  break;
6180
6407
  case 'columnParallel':
6181
6408
  {
@@ -6186,6 +6413,7 @@
6186
6413
  datasetReshapeInfo[0].unfoldInfo.groupId
6187
6414
  ];
6188
6415
  columnSpec.type = 'bar';
6416
+ result.zIndex = DUAL_AXIS_CHART_COLUMN_Z_INDEX;
6189
6417
  break;
6190
6418
  }
6191
6419
  case 'columnPercent':
@@ -6210,7 +6438,7 @@
6210
6438
  const datasetPrimary = (spec, context)=>{
6211
6439
  const { advancedVSeed, vseed } = context;
6212
6440
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
6213
- const { orderMapping = {} } = analysis ?? {};
6441
+ const orderMapping = analysis?.orderMapping || {};
6214
6442
  const x = encoding[0]?.x?.[0];
6215
6443
  const group = encoding[0]?.group?.[0];
6216
6444
  const id = datasetReshapeInfo[0].id;
@@ -6241,7 +6469,7 @@
6241
6469
  ...spec,
6242
6470
  data: {
6243
6471
  id: `${id}-primary-dataset`,
6244
- values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset[0],
6472
+ values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
6245
6473
  fields: fields
6246
6474
  }
6247
6475
  };
@@ -6249,7 +6477,7 @@
6249
6477
  const datasetSecondary = (spec, context)=>{
6250
6478
  const { advancedVSeed, vseed } = context;
6251
6479
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
6252
- const { orderMapping = {} } = analysis ?? {};
6480
+ const orderMapping = analysis?.orderMapping || {};
6253
6481
  const x = encoding[0]?.x?.[0];
6254
6482
  const group = encoding[0]?.group?.[0];
6255
6483
  const id = datasetReshapeInfo[0].id;
@@ -6280,7 +6508,7 @@
6280
6508
  ...spec,
6281
6509
  data: {
6282
6510
  id: `${id}-secondary-dataset`,
6283
- values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset[1],
6511
+ values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
6284
6512
  fields: fields
6285
6513
  }
6286
6514
  };
@@ -6524,12 +6752,18 @@
6524
6752
  const { locale, datasetReshapeInfo } = advancedVSeed;
6525
6753
  const index = datasetReshapeInfo[0].index;
6526
6754
  const primaryYAxis = advancedVSeed.config?.[chartType]?.primaryYAxis;
6527
- const config = Array.isArray(primaryYAxis) ? primaryYAxis[index] || primaryYAxis[0] : primaryYAxis;
6755
+ const yAxisConfig = Array.isArray(primaryYAxis) ? primaryYAxis[index] || primaryYAxis[0] : primaryYAxis;
6756
+ const alignTicks = advancedVSeed.config?.[chartType]?.alignTicks;
6757
+ const alignTicksConfig = Array.isArray(alignTicks) ? alignTicks[index] || alignTicks[0] : alignTicks;
6528
6758
  if (datasetReshapeInfo[0].foldInfoList?.[0] && chunk_VCYTMP4D_n(datasetReshapeInfo[0].foldInfoList[0].foldMap)) return result;
6529
6759
  const id = `${datasetReshapeInfo[0].id}-primary-axis`;
6530
- const seriesId = `${datasetReshapeInfo[0].id}-primary-series`;
6760
+ const seriesIds = [
6761
+ `${datasetReshapeInfo[0].id}-primary-series`,
6762
+ `${datasetReshapeInfo[0].id}-secondary-series`
6763
+ ];
6764
+ const seriesId = alignTicksConfig ? seriesIds : seriesIds[0];
6531
6765
  if (!result.axes) result.axes = [];
6532
- if (!config) {
6766
+ if (!yAxisConfig) {
6533
6767
  result.axes = [
6534
6768
  ...result.axes,
6535
6769
  {
@@ -6537,26 +6771,16 @@
6537
6771
  id,
6538
6772
  seriesId,
6539
6773
  type: 'linear',
6540
- orient: 'left',
6541
- sync: {
6542
- axisId: `${datasetReshapeInfo[0].id}-secondary-axis`,
6543
- tickAlign: false,
6544
- zeroAlign: true
6545
- }
6774
+ orient: 'left'
6546
6775
  }
6547
6776
  ];
6548
6777
  return result;
6549
6778
  }
6550
- const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10 } = config;
6779
+ const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10 } = yAxisConfig;
6551
6780
  const linearAxis = {
6552
6781
  visible,
6553
6782
  id,
6554
6783
  seriesId,
6555
- sync: {
6556
- axisId: `${datasetReshapeInfo[0].id}-secondary-axis`,
6557
- tickAlign: false,
6558
- zeroAlign: true
6559
- },
6560
6784
  type: log ? 'log' : 'linear',
6561
6785
  base: logBase,
6562
6786
  orient: 'left',
@@ -6625,12 +6849,22 @@
6625
6849
  const { locale, datasetReshapeInfo } = advancedVSeed;
6626
6850
  const index = datasetReshapeInfo[0].index;
6627
6851
  const secondaryYAxis = advancedVSeed.config?.[chartType]?.secondaryYAxis;
6628
- const config = Array.isArray(secondaryYAxis) ? secondaryYAxis[index] || secondaryYAxis[0] : secondaryYAxis;
6852
+ const yAxisConfig = Array.isArray(secondaryYAxis) ? secondaryYAxis[index] || secondaryYAxis[0] : secondaryYAxis;
6853
+ const alignTicks = advancedVSeed.config?.[chartType]?.alignTicks;
6854
+ const alignTicksConfig = Array.isArray(alignTicks) ? alignTicks[index] || alignTicks[0] : alignTicks;
6629
6855
  if (chunk_JK3VNB42_n(datasetReshapeInfo[0].foldInfoList?.[1])) return result;
6856
+ const sync = {
6857
+ axisId: `${datasetReshapeInfo[0].id}-primary-axis`,
6858
+ zeroAlign: true
6859
+ };
6630
6860
  const id = `${datasetReshapeInfo[0].id}-secondary-axis`;
6631
- const seriesId = `${datasetReshapeInfo[0].id}-secondary-series`;
6861
+ const seriesIds = [
6862
+ `${datasetReshapeInfo[0].id}-primary-series`,
6863
+ `${datasetReshapeInfo[0].id}-secondary-series`
6864
+ ];
6865
+ const seriesId = alignTicksConfig ? seriesIds : seriesIds[1];
6632
6866
  if (!result.axes) result.axes = [];
6633
- if (!config) {
6867
+ if (!yAxisConfig) {
6634
6868
  result.axes = [
6635
6869
  ...result.axes,
6636
6870
  {
@@ -6638,16 +6872,18 @@
6638
6872
  id,
6639
6873
  seriesId,
6640
6874
  type: 'linear',
6641
- orient: 'right'
6875
+ orient: 'right',
6876
+ sync
6642
6877
  }
6643
6878
  ];
6644
6879
  return result;
6645
6880
  }
6646
- const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10 } = config;
6881
+ const { visible = true, label, tick, title, grid, line, zero, nice, inverse, max, min, log, logBase = 10 } = yAxisConfig;
6647
6882
  const linearAxis = {
6648
6883
  visible,
6649
6884
  id,
6650
6885
  seriesId,
6886
+ sync,
6651
6887
  type: log ? 'log' : 'linear',
6652
6888
  base: logBase,
6653
6889
  orient: 'right',
@@ -6708,7 +6944,7 @@
6708
6944
  return result;
6709
6945
  };
6710
6946
  const dualAxis = [
6711
- series([
6947
+ seriesDualAxis([
6712
6948
  initDualAxisPrimary,
6713
6949
  dualChartTypePrimary,
6714
6950
  datasetPrimary,
@@ -6751,7 +6987,7 @@
6751
6987
  pivotIndicators_pivotIndicatorsAsRow,
6752
6988
  datasetPivot,
6753
6989
  pivotIndicators_pivotIndicators([
6754
- series([
6990
+ seriesDualAxis([
6755
6991
  initDualAxisPrimary,
6756
6992
  dualChartTypePrimary,
6757
6993
  datasetPrimary,
@@ -8145,7 +8381,8 @@
8145
8381
  hoverHeaderBackgroundColor: '#D9DDE4',
8146
8382
  hoverHeaderInlineBackgroundColor: '#D9DDE455',
8147
8383
  selectedBorderColor: '#4080ff',
8148
- selectedBackgroundColor: '#bedaff33'
8384
+ selectedBackgroundColor: '#bedaff33',
8385
+ backgroundColor: 'transparent'
8149
8386
  };
8150
8387
  return {
8151
8388
  config: {
@@ -8165,8 +8402,8 @@
8165
8402
  stackCornerRadius: [
8166
8403
  4,
8167
8404
  4,
8168
- 0,
8169
- 0
8405
+ 4,
8406
+ 4
8170
8407
  ]
8171
8408
  },
8172
8409
  columnParallel: {
@@ -8177,8 +8414,8 @@
8177
8414
  stackCornerRadius: [
8178
8415
  4,
8179
8416
  4,
8180
- 0,
8181
- 0
8417
+ 4,
8418
+ 4
8182
8419
  ]
8183
8420
  },
8184
8421
  columnPercent: {
@@ -8189,8 +8426,8 @@
8189
8426
  stackCornerRadius: [
8190
8427
  4,
8191
8428
  4,
8192
- 0,
8193
- 0
8429
+ 4,
8430
+ 4
8194
8431
  ]
8195
8432
  },
8196
8433
  bar: {
@@ -8199,10 +8436,10 @@
8199
8436
  yAxis: barBandAxis,
8200
8437
  crosshairRect,
8201
8438
  stackCornerRadius: [
8202
- 0,
8203
8439
  4,
8204
8440
  4,
8205
- 0
8441
+ 4,
8442
+ 4
8206
8443
  ]
8207
8444
  },
8208
8445
  barParallel: {
@@ -8211,10 +8448,10 @@
8211
8448
  yAxis: barBandAxis,
8212
8449
  crosshairRect,
8213
8450
  stackCornerRadius: [
8214
- 0,
8215
8451
  4,
8216
8452
  4,
8217
- 0
8453
+ 4,
8454
+ 4
8218
8455
  ]
8219
8456
  },
8220
8457
  barPercent: {
@@ -8223,10 +8460,10 @@
8223
8460
  yAxis: barBandAxis,
8224
8461
  crosshairRect,
8225
8462
  stackCornerRadius: [
8226
- 0,
8227
8463
  4,
8228
8464
  4,
8229
- 0
8465
+ 4,
8466
+ 4
8230
8467
  ]
8231
8468
  },
8232
8469
  area: {
@@ -8503,8 +8740,8 @@
8503
8740
  stackCornerRadius: [
8504
8741
  4,
8505
8742
  4,
8506
- 0,
8507
- 0
8743
+ 4,
8744
+ 4
8508
8745
  ]
8509
8746
  },
8510
8747
  columnParallel: {
@@ -8515,8 +8752,8 @@
8515
8752
  stackCornerRadius: [
8516
8753
  4,
8517
8754
  4,
8518
- 0,
8519
- 0
8755
+ 4,
8756
+ 4
8520
8757
  ]
8521
8758
  },
8522
8759
  columnPercent: {
@@ -8527,8 +8764,8 @@
8527
8764
  stackCornerRadius: [
8528
8765
  4,
8529
8766
  4,
8530
- 0,
8531
- 0
8767
+ 4,
8768
+ 4
8532
8769
  ]
8533
8770
  },
8534
8771
  bar: {
@@ -8549,10 +8786,10 @@
8549
8786
  yAxis: barBandAxis,
8550
8787
  crosshairRect: crosshairRect,
8551
8788
  stackCornerRadius: [
8552
- 0,
8553
8789
  4,
8554
8790
  4,
8555
- 0
8791
+ 4,
8792
+ 4
8556
8793
  ]
8557
8794
  },
8558
8795
  barPercent: {
@@ -8561,10 +8798,10 @@
8561
8798
  yAxis: barBandAxis,
8562
8799
  crosshairRect: crosshairRect,
8563
8800
  stackCornerRadius: [
8564
- 0,
8565
8801
  4,
8566
8802
  4,
8567
- 0
8803
+ 4,
8804
+ 4
8568
8805
  ]
8569
8806
  },
8570
8807
  area: {
@@ -8701,6 +8938,9 @@
8701
8938
  const updateSpec = (chartType, specPipe)=>{
8702
8939
  Builder._customSpecPipe[chartType] = specPipe;
8703
8940
  };
8941
+ const isDimension = (dimension)=>!('children' in dimension);
8942
+ const isDimensionGroup = (dimension)=>'children' in dimension;
8943
+ const isDimensions = (dimensions)=>dimensions.every(isDimension);
8704
8944
  Object.freeze({
8705
8945
  status: "aborted"
8706
8946
  });
@@ -12110,117 +12350,117 @@
12110
12350
  id: schemas_string(),
12111
12351
  index: schemas_number(),
12112
12352
  foldInfo: zFoldInfo,
12113
- foldInfoList: schemas_array(zFoldInfo).optional(),
12353
+ foldInfoList: schemas_array(zFoldInfo).nullish(),
12114
12354
  unfoldInfo: zUnfoldInfo
12115
12355
  }));
12116
12356
  const zEncoding = schemas_array(schemas_object({
12117
- x: schemas_array(schemas_string()).optional(),
12118
- y: schemas_array(schemas_string()).optional(),
12119
- color: schemas_array(schemas_string()).optional(),
12120
- group: schemas_array(schemas_string()).optional(),
12121
- angle: schemas_array(schemas_string()).optional(),
12122
- radius: schemas_array(schemas_string()).optional(),
12123
- tooltip: schemas_array(schemas_string()).optional(),
12124
- size: schemas_array(schemas_string()).optional()
12357
+ x: schemas_array(schemas_string()).nullish(),
12358
+ y: schemas_array(schemas_string()).nullish(),
12359
+ color: schemas_array(schemas_string()).nullish(),
12360
+ group: schemas_array(schemas_string()).nullish(),
12361
+ angle: schemas_array(schemas_string()).nullish(),
12362
+ radius: schemas_array(schemas_string()).nullish(),
12363
+ tooltip: schemas_array(schemas_string()).nullish(),
12364
+ size: schemas_array(schemas_string()).nullish()
12125
12365
  }));
12126
12366
  const zXBandAxis = schemas_object({
12127
- visible: schemas_boolean().default(true).optional(),
12128
- labelAutoHide: schemas_boolean().default(true).optional(),
12129
- labelAutoHideGap: schemas_number().default(0).optional(),
12130
- labelAutoRotate: schemas_boolean().default(true).optional(),
12367
+ visible: schemas_boolean().default(true).nullish(),
12368
+ labelAutoHide: schemas_boolean().default(true).nullish(),
12369
+ labelAutoHideGap: schemas_number().default(0).nullish(),
12370
+ labelAutoRotate: schemas_boolean().default(true).nullish(),
12131
12371
  labelAutoRotateAngleRange: schemas_array(schemas_number()).default([
12132
12372
  0,
12133
12373
  -45,
12134
12374
  -90
12135
- ]).optional(),
12136
- labelAutoLimit: schemas_boolean().default(true).optional(),
12137
- labelAutoLimitLength: schemas_number().default(100).optional(),
12375
+ ]).nullish(),
12376
+ labelAutoLimit: schemas_boolean().default(true).nullish(),
12377
+ labelAutoLimitLength: schemas_number().default(100).nullish(),
12138
12378
  label: schemas_object({
12139
- visible: schemas_boolean().default(true).optional(),
12140
- labelColor: schemas_string().default('#797B85').optional(),
12141
- labelFontSize: schemas_number().default(12).optional(),
12142
- labelFontWeight: schemas_number().default(400).optional(),
12143
- labelAngle: schemas_number().default(0).optional()
12144
- }).optional(),
12379
+ visible: schemas_boolean().default(true).nullish(),
12380
+ labelColor: schemas_string().default('#797B85').nullish(),
12381
+ labelFontSize: schemas_number().default(12).nullish(),
12382
+ labelFontWeight: schemas_number().default(400).nullish(),
12383
+ labelAngle: schemas_number().default(0).nullish()
12384
+ }).nullish(),
12145
12385
  line: schemas_object({
12146
- visible: schemas_boolean().default(true).optional(),
12147
- lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').optional(),
12148
- lineWidth: schemas_number().default(1).optional()
12149
- }).optional(),
12386
+ visible: schemas_boolean().default(true).nullish(),
12387
+ lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
12388
+ lineWidth: schemas_number().default(1).nullish()
12389
+ }).nullish(),
12150
12390
  tick: schemas_object({
12151
- visible: schemas_boolean().default(true).optional(),
12152
- tickInside: schemas_boolean().default(false).optional(),
12153
- tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').optional(),
12154
- tickSize: schemas_number().default(4).optional()
12155
- }).optional(),
12391
+ visible: schemas_boolean().default(true).nullish(),
12392
+ tickInside: schemas_boolean().default(false).nullish(),
12393
+ tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
12394
+ tickSize: schemas_number().default(4).nullish()
12395
+ }).nullish(),
12156
12396
  title: schemas_object({
12157
- visible: schemas_boolean().default(false).optional(),
12158
- titleText: schemas_string().default('').optional(),
12159
- titleColor: schemas_string().default('#646A73').optional(),
12160
- titleFontSize: schemas_number().default(12).optional(),
12161
- titleFontWeight: schemas_number().default(400).optional()
12162
- }).optional(),
12397
+ visible: schemas_boolean().default(false).nullish(),
12398
+ titleText: schemas_string().default('').nullish(),
12399
+ titleColor: schemas_string().default('#646A73').nullish(),
12400
+ titleFontSize: schemas_number().default(12).nullish(),
12401
+ titleFontWeight: schemas_number().default(400).nullish()
12402
+ }).nullish(),
12163
12403
  grid: schemas_object({
12164
- visible: schemas_boolean().default(false).optional(),
12165
- gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').optional(),
12166
- gridWidth: schemas_number().default(0.5).optional()
12167
- }).optional()
12404
+ visible: schemas_boolean().default(false).nullish(),
12405
+ gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').nullish(),
12406
+ gridWidth: schemas_number().default(0.5).nullish()
12407
+ }).nullish()
12168
12408
  });
12169
12409
  const zYBandAxis = zXBandAxis;
12170
12410
  const zXLinearAxis = schemas_object({
12171
- visible: schemas_boolean().default(true).optional(),
12172
- min: schemas_number().optional(),
12173
- max: schemas_number().optional(),
12174
- nice: schemas_boolean().default(true).optional(),
12175
- zero: schemas_boolean().default(true).optional(),
12176
- log: schemas_boolean().default(false).optional(),
12177
- logBase: schemas_number().default(10).optional(),
12178
- inverse: schemas_boolean().default(false).optional(),
12411
+ visible: schemas_boolean().default(true).nullish(),
12412
+ min: schemas_number().nullish(),
12413
+ max: schemas_number().nullish(),
12414
+ nice: schemas_boolean().default(true).nullish(),
12415
+ zero: schemas_boolean().default(true).nullish(),
12416
+ log: schemas_boolean().default(false).nullish(),
12417
+ logBase: schemas_number().default(10).nullish(),
12418
+ inverse: schemas_boolean().default(false).nullish(),
12179
12419
  label: schemas_object({
12180
- visible: schemas_boolean().default(true).optional(),
12181
- labelColor: schemas_string().default('#797B85').optional(),
12182
- labelFontSize: schemas_number().default(12).optional(),
12183
- labelFontWeight: schemas_number().default(400).optional(),
12184
- labelAngle: schemas_number().default(0).optional()
12185
- }).optional(),
12420
+ visible: schemas_boolean().default(true).nullish(),
12421
+ labelColor: schemas_string().default('#797B85').nullish(),
12422
+ labelFontSize: schemas_number().default(12).nullish(),
12423
+ labelFontWeight: schemas_number().default(400).nullish(),
12424
+ labelAngle: schemas_number().default(0).nullish()
12425
+ }).nullish(),
12186
12426
  line: schemas_object({
12187
- visible: schemas_boolean().default(true).optional(),
12188
- lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').optional(),
12189
- lineWidth: schemas_number().default(1).optional()
12190
- }).optional(),
12427
+ visible: schemas_boolean().default(true).nullish(),
12428
+ lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
12429
+ lineWidth: schemas_number().default(1).nullish()
12430
+ }).nullish(),
12191
12431
  tick: schemas_object({
12192
- visible: schemas_boolean().default(true).optional(),
12193
- tickInside: schemas_boolean().default(false).optional(),
12194
- tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').optional(),
12195
- tickSize: schemas_number().default(4).optional()
12196
- }).optional(),
12432
+ visible: schemas_boolean().default(true).nullish(),
12433
+ tickInside: schemas_boolean().default(false).nullish(),
12434
+ tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
12435
+ tickSize: schemas_number().default(4).nullish()
12436
+ }).nullish(),
12197
12437
  title: schemas_object({
12198
- visible: schemas_boolean().default(false).optional(),
12199
- titleText: schemas_string().default('').optional(),
12200
- titleColor: schemas_string().default('#646A73').optional(),
12201
- titleFontSize: schemas_number().default(12).optional(),
12202
- titleFontWeight: schemas_number().default(400).optional()
12203
- }).optional(),
12438
+ visible: schemas_boolean().default(false).nullish(),
12439
+ titleText: schemas_string().default('').nullish(),
12440
+ titleColor: schemas_string().default('#646A73').nullish(),
12441
+ titleFontSize: schemas_number().default(12).nullish(),
12442
+ titleFontWeight: schemas_number().default(400).nullish()
12443
+ }).nullish(),
12204
12444
  grid: schemas_object({
12205
- visible: schemas_boolean().default(false).optional(),
12206
- gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').optional(),
12207
- gridWidth: schemas_number().default(0.5).optional()
12208
- }).optional()
12445
+ visible: schemas_boolean().default(false).nullish(),
12446
+ gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').nullish(),
12447
+ gridWidth: schemas_number().default(0.5).nullish()
12448
+ }).nullish()
12209
12449
  });
12210
12450
  const zYLinearAxis = zXLinearAxis;
12211
12451
  const zCrosshairLine = schemas_object({
12212
- visible: schemas_boolean().optional(),
12213
- lineColor: schemas_string().optional(),
12214
- labelColor: schemas_string().optional(),
12215
- labelVisible: schemas_boolean().optional(),
12216
- labelBackgroundColor: schemas_string().optional()
12452
+ visible: schemas_boolean().nullish(),
12453
+ lineColor: schemas_string().nullish(),
12454
+ labelColor: schemas_string().nullish(),
12455
+ labelVisible: schemas_boolean().nullish(),
12456
+ labelBackgroundColor: schemas_string().nullish()
12217
12457
  });
12218
12458
  const zCrosshairRect = schemas_object({
12219
- visible: schemas_boolean().optional(),
12220
- rectColor: schemas_string().optional(),
12221
- labelColor: schemas_string().optional(),
12222
- labelVisible: schemas_boolean().optional(),
12223
- labelBackgroundColor: schemas_string().optional()
12459
+ visible: schemas_boolean().nullish(),
12460
+ rectColor: schemas_string().nullish(),
12461
+ labelColor: schemas_string().nullish(),
12462
+ labelVisible: schemas_boolean().nullish(),
12463
+ labelBackgroundColor: schemas_string().nullish()
12224
12464
  });
12225
12465
  const zStackCornerRadius = schemas_number().or(schemas_array(schemas_number())).default([
12226
12466
  3,
@@ -12228,21 +12468,21 @@
12228
12468
  0,
12229
12469
  0
12230
12470
  ]);
12231
- const zBackgroundColor = schemas_string().default('transparent').optional();
12471
+ const zBackgroundColor = schemas_string().default('transparent').nullish();
12232
12472
  const zColor = schemas_object({
12233
- colorScheme: schemas_array(schemas_string()).optional(),
12234
- colorMapping: record(schemas_string(), schemas_string()).optional()
12473
+ colorScheme: schemas_array(schemas_string()).nullish(),
12474
+ colorMapping: record(schemas_string(), schemas_string()).nullish()
12235
12475
  });
12236
12476
  const zLinearColor = schemas_object({
12237
- colorScheme: schemas_array(schemas_string()).optional()
12477
+ colorScheme: schemas_array(schemas_string()).nullish()
12238
12478
  });
12239
12479
  const zLabel = schemas_object({
12240
- enable: schemas_boolean().default(true).optional()
12480
+ enable: schemas_boolean().default(true).nullish()
12241
12481
  });
12242
12482
  const zLegend = schemas_object({
12243
- enable: schemas_boolean().default(true).optional(),
12244
- border: schemas_boolean().default(true).optional(),
12245
- maxSize: schemas_number().default(1).optional(),
12483
+ enable: schemas_boolean().default(true).nullish(),
12484
+ border: schemas_boolean().default(true).nullish(),
12485
+ maxSize: schemas_number().default(1).nullish(),
12246
12486
  shapeType: schemas_enum([
12247
12487
  'circle',
12248
12488
  'cross',
@@ -12266,7 +12506,7 @@
12266
12506
  'arrowRight',
12267
12507
  'rectRound',
12268
12508
  'roundLine'
12269
- ]).default('rectRound').optional(),
12509
+ ]).default('rectRound').nullish(),
12270
12510
  position: schemas_enum([
12271
12511
  'left',
12272
12512
  'leftTop',
@@ -12288,10 +12528,10 @@
12288
12528
  'bottomRight',
12289
12529
  'bl',
12290
12530
  'br'
12291
- ]).default('bottom').optional(),
12292
- labelFontSize: schemas_number().default(12).optional(),
12293
- labelFontColor: schemas_string().default('#fff').optional(),
12294
- labelFontWeight: schemas_number().or(schemas_string()).default(400).optional()
12531
+ ]).default('bottom').nullish(),
12532
+ labelFontSize: schemas_number().default(12).nullish(),
12533
+ labelFontColor: schemas_string().default('#fff').nullish(),
12534
+ labelFontWeight: schemas_number().or(schemas_string()).default(400).nullish()
12295
12535
  });
12296
12536
  const zColorLegend = schemas_object({
12297
12537
  position: schemas_enum([
@@ -12315,194 +12555,196 @@
12315
12555
  'bottomRight',
12316
12556
  'bl',
12317
12557
  'br'
12318
- ]).default('bottom').optional(),
12319
- enable: schemas_boolean().default(true).optional()
12558
+ ]).default('bottom').nullish(),
12559
+ enable: schemas_boolean().default(true).nullish()
12320
12560
  });
12321
12561
  const zTooltip = schemas_object({
12322
- enable: schemas_boolean().default(true).optional()
12562
+ enable: schemas_boolean().default(true).nullish()
12323
12563
  });
12324
12564
  const zTableConfig = schemas_object({
12325
- borderColor: schemas_string().optional(),
12326
- bodyFontSize: schemas_number().optional(),
12327
- bodyFontColor: schemas_string().optional(),
12328
- bodyBackgroundColor: schemas_string().optional(),
12329
- hoverBodyBackgroundColor: schemas_string().optional(),
12330
- hoverBodyInlineBackgroundColor: schemas_string().optional(),
12331
- headerFontSize: schemas_number().optional(),
12332
- headerFontColor: schemas_string().optional(),
12333
- headerBackgroundColor: schemas_string().optional(),
12334
- hoverHeaderBackgroundColor: schemas_string().optional(),
12335
- hoverHeaderInlineBackgroundColor: schemas_string().optional(),
12336
- selectedBorderColor: schemas_string().optional(),
12337
- selectedBackgroundColor: schemas_string().optional()
12565
+ backgroundColor: zBackgroundColor.nullish(),
12566
+ borderColor: schemas_string().nullish(),
12567
+ bodyFontSize: schemas_number().nullish(),
12568
+ bodyFontColor: schemas_string().nullish(),
12569
+ bodyBackgroundColor: schemas_string().nullish(),
12570
+ hoverBodyBackgroundColor: schemas_string().nullish(),
12571
+ hoverBodyInlineBackgroundColor: schemas_string().nullish(),
12572
+ headerFontSize: schemas_number().nullish(),
12573
+ headerFontColor: schemas_string().nullish(),
12574
+ headerBackgroundColor: schemas_string().nullish(),
12575
+ hoverHeaderBackgroundColor: schemas_string().nullish(),
12576
+ hoverHeaderInlineBackgroundColor: schemas_string().nullish(),
12577
+ selectedBorderColor: schemas_string().nullish(),
12578
+ selectedBackgroundColor: schemas_string().nullish()
12338
12579
  });
12339
12580
  const zPivotTableConfig = zTableConfig;
12340
12581
  const zLineConfig = schemas_object({
12341
- backgroundColor: zBackgroundColor.optional(),
12342
- label: zLabel.optional(),
12343
- color: zColor.optional(),
12344
- tooltip: zTooltip.optional(),
12345
- legend: zLegend.optional(),
12346
- xAxis: zXBandAxis.optional(),
12347
- yAxis: zYLinearAxis.optional(),
12348
- crosshairLine: zCrosshairLine.optional()
12582
+ backgroundColor: zBackgroundColor.nullish(),
12583
+ label: zLabel.nullish(),
12584
+ color: zColor.nullish(),
12585
+ tooltip: zTooltip.nullish(),
12586
+ legend: zLegend.nullish(),
12587
+ xAxis: zXBandAxis.nullish(),
12588
+ yAxis: zYLinearAxis.nullish(),
12589
+ crosshairLine: zCrosshairLine.nullish()
12349
12590
  });
12350
12591
  const zColumnConfig = schemas_object({
12351
- backgroundColor: zBackgroundColor.optional(),
12352
- label: zLabel.optional(),
12353
- color: zColor.optional(),
12354
- tooltip: zTooltip.optional(),
12355
- legend: zLegend.optional(),
12356
- xAxis: zXBandAxis.optional(),
12357
- yAxis: zYLinearAxis.optional(),
12358
- crosshairRect: zCrosshairRect.optional(),
12359
- stackCornerRadius: zStackCornerRadius.optional()
12592
+ backgroundColor: zBackgroundColor.nullish(),
12593
+ label: zLabel.nullish(),
12594
+ color: zColor.nullish(),
12595
+ tooltip: zTooltip.nullish(),
12596
+ legend: zLegend.nullish(),
12597
+ xAxis: zXBandAxis.nullish(),
12598
+ yAxis: zYLinearAxis.nullish(),
12599
+ crosshairRect: zCrosshairRect.nullish(),
12600
+ stackCornerRadius: zStackCornerRadius.nullish()
12360
12601
  });
12361
12602
  const zColumnParallelConfig = zColumnConfig;
12362
12603
  const zColumnPercentConfig = zColumnConfig;
12363
12604
  const zBarConfig = schemas_object({
12364
- backgroundColor: zBackgroundColor.optional(),
12365
- label: zLabel.optional(),
12366
- color: zColor.optional(),
12367
- tooltip: zTooltip.optional(),
12368
- legend: zLegend.optional(),
12369
- xAxis: zXLinearAxis.optional(),
12370
- yAxis: zYBandAxis.optional(),
12371
- crosshairRect: zCrosshairRect.optional(),
12372
- stackCornerRadius: zStackCornerRadius.optional()
12605
+ backgroundColor: zBackgroundColor.nullish(),
12606
+ label: zLabel.nullish(),
12607
+ color: zColor.nullish(),
12608
+ tooltip: zTooltip.nullish(),
12609
+ legend: zLegend.nullish(),
12610
+ xAxis: zXLinearAxis.nullish(),
12611
+ yAxis: zYBandAxis.nullish(),
12612
+ crosshairRect: zCrosshairRect.nullish(),
12613
+ stackCornerRadius: zStackCornerRadius.nullish()
12373
12614
  });
12374
12615
  const zBarParallelConfig = zBarConfig;
12375
12616
  const zBarPercentConfig = zBarConfig;
12376
12617
  const zAreaConfig = schemas_object({
12377
- backgroundColor: zBackgroundColor.optional(),
12378
- label: zLabel.optional(),
12379
- color: zColor.optional(),
12380
- tooltip: zTooltip.optional(),
12381
- legend: zLegend.optional(),
12382
- xAxis: zXBandAxis.optional(),
12383
- yAxis: zYLinearAxis.optional(),
12384
- crosshairLine: zCrosshairLine.optional()
12618
+ backgroundColor: zBackgroundColor.nullish(),
12619
+ label: zLabel.nullish(),
12620
+ color: zColor.nullish(),
12621
+ tooltip: zTooltip.nullish(),
12622
+ legend: zLegend.nullish(),
12623
+ xAxis: zXBandAxis.nullish(),
12624
+ yAxis: zYLinearAxis.nullish(),
12625
+ crosshairLine: zCrosshairLine.nullish()
12385
12626
  });
12386
12627
  const zAreaPercentConfig = zAreaConfig;
12387
12628
  const zAreaRangeConfig = zAreaConfig;
12388
12629
  const zDualAxisConfig = schemas_object({
12389
- backgroundColor: zBackgroundColor.optional(),
12390
- label: zLabel.optional(),
12391
- color: zColor.optional(),
12392
- tooltip: zTooltip.optional(),
12393
- legend: zLegend.optional(),
12394
- dualChartType: schemas_array(zDualChartType).or(zDualChartType).optional(),
12395
- primaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).optional(),
12396
- secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).optional(),
12397
- xAxis: zXBandAxis.optional(),
12398
- crosshairRect: zCrosshairRect.optional()
12630
+ backgroundColor: zBackgroundColor.nullish(),
12631
+ label: zLabel.nullish(),
12632
+ color: zColor.nullish(),
12633
+ tooltip: zTooltip.nullish(),
12634
+ legend: zLegend.nullish(),
12635
+ dualChartType: schemas_array(zDualChartType).or(zDualChartType).nullish(),
12636
+ alignTicks: schemas_array(schemas_boolean()).or(schemas_boolean()).nullish(),
12637
+ primaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
12638
+ secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
12639
+ xAxis: zXBandAxis.nullish(),
12640
+ crosshairRect: zCrosshairRect.nullish()
12399
12641
  });
12400
12642
  const zScatterConfig = schemas_object({
12401
- backgroundColor: zBackgroundColor.optional(),
12402
- label: zLabel.optional(),
12403
- color: zColor.optional(),
12404
- tooltip: zTooltip.optional(),
12405
- legend: zLegend.optional(),
12406
- xAxis: zXLinearAxis.optional(),
12407
- yAxis: zYLinearAxis.optional(),
12408
- crosshairLine: zCrosshairLine.optional()
12643
+ backgroundColor: zBackgroundColor.nullish(),
12644
+ label: zLabel.nullish(),
12645
+ color: zColor.nullish(),
12646
+ tooltip: zTooltip.nullish(),
12647
+ legend: zLegend.nullish(),
12648
+ xAxis: zXLinearAxis.nullish(),
12649
+ yAxis: zYLinearAxis.nullish(),
12650
+ crosshairLine: zCrosshairLine.nullish()
12409
12651
  });
12410
12652
  const zRoseConfig = schemas_object({
12411
- backgroundColor: zBackgroundColor.optional(),
12412
- label: zLabel.optional(),
12413
- color: zColor.optional(),
12414
- tooltip: zTooltip.optional(),
12415
- legend: zLegend.optional()
12653
+ backgroundColor: zBackgroundColor.nullish(),
12654
+ label: zLabel.nullish(),
12655
+ color: zColor.nullish(),
12656
+ tooltip: zTooltip.nullish(),
12657
+ legend: zLegend.nullish()
12416
12658
  });
12417
12659
  const zRoseParallelConfig = zRoseConfig;
12418
12660
  const zPieConfig = schemas_object({
12419
- backgroundColor: zBackgroundColor.optional(),
12420
- label: zLabel.optional(),
12421
- color: zColor.optional(),
12422
- tooltip: zTooltip.optional(),
12423
- legend: zLegend.optional()
12661
+ backgroundColor: zBackgroundColor.nullish(),
12662
+ label: zLabel.nullish(),
12663
+ color: zColor.nullish(),
12664
+ tooltip: zTooltip.nullish(),
12665
+ legend: zLegend.nullish()
12424
12666
  });
12425
12667
  const zDonutConfig = zPieConfig;
12426
12668
  const zRadarConfig = zPieConfig;
12427
12669
  const zFunnelConfig = zPieConfig;
12428
12670
  const zHeatmapConfig = zPieConfig;
12429
12671
  const zConfig = schemas_object({
12430
- table: zTableConfig.optional(),
12431
- pivotTable: zPivotTableConfig.optional(),
12432
- line: zLineConfig.optional(),
12433
- column: zColumnConfig.optional(),
12434
- columnParallel: zColumnParallelConfig.optional(),
12435
- columnPercent: zColumnPercentConfig.optional(),
12436
- bar: zBarConfig.optional(),
12437
- barParallel: zBarParallelConfig.optional(),
12438
- barPercent: zBarPercentConfig.optional(),
12439
- area: zAreaConfig.optional(),
12440
- areaPercent: zAreaPercentConfig.optional(),
12441
- areaRange: zAreaRangeConfig.optional(),
12442
- scatter: zScatterConfig.optional(),
12443
- dualAxis: zDualAxisConfig.optional(),
12444
- rose: zRoseConfig.optional(),
12445
- roseParallel: zRoseParallelConfig.optional(),
12446
- pie: zPieConfig.optional(),
12447
- donut: zDonutConfig.optional(),
12448
- radar: zRadarConfig.optional(),
12449
- funnel: zFunnelConfig.optional(),
12450
- heatmap: zHeatmapConfig.optional()
12672
+ table: zTableConfig.nullish(),
12673
+ pivotTable: zPivotTableConfig.nullish(),
12674
+ line: zLineConfig.nullish(),
12675
+ column: zColumnConfig.nullish(),
12676
+ columnParallel: zColumnParallelConfig.nullish(),
12677
+ columnPercent: zColumnPercentConfig.nullish(),
12678
+ bar: zBarConfig.nullish(),
12679
+ barParallel: zBarParallelConfig.nullish(),
12680
+ barPercent: zBarPercentConfig.nullish(),
12681
+ area: zAreaConfig.nullish(),
12682
+ areaPercent: zAreaPercentConfig.nullish(),
12683
+ areaRange: zAreaRangeConfig.nullish(),
12684
+ scatter: zScatterConfig.nullish(),
12685
+ dualAxis: zDualAxisConfig.nullish(),
12686
+ rose: zRoseConfig.nullish(),
12687
+ roseParallel: zRoseParallelConfig.nullish(),
12688
+ pie: zPieConfig.nullish(),
12689
+ donut: zDonutConfig.nullish(),
12690
+ radar: zRadarConfig.nullish(),
12691
+ funnel: zFunnelConfig.nullish(),
12692
+ heatmap: zHeatmapConfig.nullish()
12451
12693
  });
12452
12694
  const zAxis = schemas_object({
12453
- visible: schemas_boolean().default(true).optional(),
12454
- min: schemas_number().optional(),
12455
- max: schemas_number().optional(),
12456
- nice: schemas_boolean().default(true).optional(),
12457
- zero: schemas_boolean().default(true).optional(),
12458
- inverse: schemas_boolean().default(false).optional(),
12459
- log: schemas_boolean().default(false).optional(),
12460
- logBase: schemas_number().default(10).optional(),
12461
- labelAutoHide: schemas_boolean().default(true).optional(),
12462
- labelAutoHideGap: schemas_number().default(4).optional(),
12463
- labelAutoRotate: schemas_boolean().default(true).optional(),
12695
+ visible: schemas_boolean().default(true).nullish(),
12696
+ min: schemas_number().nullish(),
12697
+ max: schemas_number().nullish(),
12698
+ nice: schemas_boolean().default(true).nullish(),
12699
+ zero: schemas_boolean().default(true).nullish(),
12700
+ inverse: schemas_boolean().default(false).nullish(),
12701
+ log: schemas_boolean().default(false).nullish(),
12702
+ logBase: schemas_number().default(10).nullish(),
12703
+ labelAutoHide: schemas_boolean().default(true).nullish(),
12704
+ labelAutoHideGap: schemas_number().default(4).nullish(),
12705
+ labelAutoRotate: schemas_boolean().default(true).nullish(),
12464
12706
  labelAutoRotateAngleRange: schemas_array(schemas_number()).default([
12465
12707
  0,
12466
12708
  -45,
12467
12709
  -90
12468
- ]).optional(),
12469
- labelAutoLimit: schemas_boolean().default(true).optional(),
12470
- labelAutoLimitLength: schemas_number().default(100).optional(),
12710
+ ]).nullish(),
12711
+ labelAutoLimit: schemas_boolean().default(true).nullish(),
12712
+ labelAutoLimitLength: schemas_number().default(100).nullish(),
12471
12713
  label: schemas_object({
12472
- visible: schemas_boolean().default(true).optional(),
12473
- labelColor: schemas_string().default('#797B85').optional(),
12474
- labelFontSize: schemas_number().default(12).optional(),
12475
- labelFontWeight: schemas_number().default(400).optional(),
12476
- labelAngle: schemas_number().default(0).optional()
12477
- }).optional(),
12714
+ visible: schemas_boolean().default(true).nullish(),
12715
+ labelColor: schemas_string().default('#797B85').nullish(),
12716
+ labelFontSize: schemas_number().default(12).nullish(),
12717
+ labelFontWeight: schemas_number().default(400).nullish(),
12718
+ labelAngle: schemas_number().default(0).nullish()
12719
+ }).nullish(),
12478
12720
  line: schemas_object({
12479
- visible: schemas_boolean().default(true).optional(),
12480
- lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').optional(),
12481
- lineWidth: schemas_number().default(1).optional()
12482
- }).optional(),
12721
+ visible: schemas_boolean().default(true).nullish(),
12722
+ lineColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
12723
+ lineWidth: schemas_number().default(1).nullish()
12724
+ }).nullish(),
12483
12725
  tick: schemas_object({
12484
- visible: schemas_boolean().default(true).optional(),
12485
- tickInside: schemas_boolean().default(false).optional(),
12486
- tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').optional(),
12487
- tickSize: schemas_number().default(4).optional()
12488
- }).optional(),
12726
+ visible: schemas_boolean().default(true).nullish(),
12727
+ tickInside: schemas_boolean().default(false).nullish(),
12728
+ tickColor: schemas_string().default('rgba(54, 65, 89, 0.30)').nullish(),
12729
+ tickSize: schemas_number().default(4).nullish()
12730
+ }).nullish(),
12489
12731
  title: schemas_object({
12490
- visible: schemas_boolean().default(false).optional(),
12491
- titleText: schemas_string().default('').optional(),
12492
- titleColor: schemas_string().default('#646A73').optional(),
12493
- titleFontSize: schemas_number().default(12).optional(),
12494
- titleFontWeight: schemas_number().default(400).optional()
12495
- }).optional(),
12732
+ visible: schemas_boolean().default(false).nullish(),
12733
+ titleText: schemas_string().default('').nullish(),
12734
+ titleColor: schemas_string().default('#646A73').nullish(),
12735
+ titleFontSize: schemas_number().default(12).nullish(),
12736
+ titleFontWeight: schemas_number().default(400).nullish()
12737
+ }).nullish(),
12496
12738
  grid: schemas_object({
12497
- visible: schemas_boolean().default(false).optional(),
12498
- gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').optional(),
12499
- gridWidth: schemas_number().default(0.5).optional()
12500
- }).optional()
12739
+ visible: schemas_boolean().default(false).nullish(),
12740
+ gridColor: schemas_string().default('rgba(54, 65, 89, 0.15)').nullish(),
12741
+ gridWidth: schemas_number().default(0.5).nullish()
12742
+ }).nullish()
12501
12743
  });
12502
12744
  const zCustomThemeConfig = schemas_object({
12503
- config: zConfig.optional()
12745
+ config: zConfig.nullish()
12504
12746
  });
12505
- const zCustomTheme = record(schemas_string(), zCustomThemeConfig).optional();
12747
+ const zCustomTheme = record(schemas_string(), zCustomThemeConfig).nullish();
12506
12748
  const zTheme = schemas_string();
12507
12749
  const zSelector = union([
12508
12750
  schemas_string(),
@@ -12518,7 +12760,7 @@
12518
12760
  '>=',
12519
12761
  '<=',
12520
12762
  'between'
12521
- ]).optional(),
12763
+ ]).nullish(),
12522
12764
  op: schemas_enum([
12523
12765
  '=',
12524
12766
  '==',
@@ -12528,7 +12770,7 @@
12528
12770
  '>=',
12529
12771
  '<=',
12530
12772
  'between'
12531
- ]).optional(),
12773
+ ]).nullish(),
12532
12774
  value: union([
12533
12775
  schemas_string(),
12534
12776
  schemas_number(),
@@ -12543,11 +12785,11 @@
12543
12785
  operator: schemas_enum([
12544
12786
  'in',
12545
12787
  'not in'
12546
- ]).optional(),
12788
+ ]).nullish(),
12547
12789
  op: schemas_enum([
12548
12790
  'in',
12549
12791
  'not in'
12550
- ]).optional(),
12792
+ ]).nullish(),
12551
12793
  value: union([
12552
12794
  schemas_string(),
12553
12795
  schemas_number(),
@@ -12563,103 +12805,103 @@
12563
12805
  selector: union([
12564
12806
  zSelector,
12565
12807
  zSelectors
12566
- ]).optional(),
12567
- barColor: schemas_string().optional(),
12568
- barColorOpacity: schemas_number().optional(),
12569
- barBorderColor: schemas_string().optional(),
12570
- barBorderWidth: schemas_number().optional(),
12808
+ ]).nullish(),
12809
+ barColor: schemas_string().nullish(),
12810
+ barColorOpacity: schemas_number().nullish(),
12811
+ barBorderColor: schemas_string().nullish(),
12812
+ barBorderWidth: schemas_number().nullish(),
12571
12813
  barBorderStyle: union([
12572
12814
  literal('solid'),
12573
12815
  literal('dashed'),
12574
12816
  literal('dotted')
12575
- ]).optional(),
12817
+ ]).nullish(),
12576
12818
  barRadius: union([
12577
12819
  schemas_number(),
12578
12820
  schemas_array(schemas_number())
12579
- ]).optional()
12821
+ ]).nullish()
12580
12822
  });
12581
12823
  const zPointStyle = schemas_object({
12582
12824
  selector: union([
12583
12825
  zSelector,
12584
12826
  zSelectors
12585
- ]).optional(),
12586
- pointSize: schemas_number().optional(),
12587
- pointColor: schemas_string().optional(),
12588
- pointColorOpacity: schemas_number().optional(),
12589
- pointBorderColor: schemas_string().optional(),
12590
- pointBorderWidth: schemas_number().optional(),
12827
+ ]).nullish(),
12828
+ pointSize: schemas_number().nullish(),
12829
+ pointColor: schemas_string().nullish(),
12830
+ pointColorOpacity: schemas_number().nullish(),
12831
+ pointBorderColor: schemas_string().nullish(),
12832
+ pointBorderWidth: schemas_number().nullish(),
12591
12833
  pointBorderStyle: union([
12592
12834
  schemas_enum([
12593
12835
  'solid',
12594
12836
  'dashed',
12595
12837
  'dotted'
12596
12838
  ])
12597
- ]).optional()
12839
+ ]).nullish()
12598
12840
  });
12599
12841
  const zLineStyle = schemas_object({
12600
12842
  selector: union([
12601
12843
  zSelector,
12602
12844
  zSelectors
12603
- ]).optional(),
12604
- lineSmooth: schemas_boolean().optional(),
12605
- lineColor: schemas_string().optional(),
12606
- lineColorOpacity: schemas_number().optional(),
12607
- lineWidth: schemas_number().optional(),
12845
+ ]).nullish(),
12846
+ lineSmooth: schemas_boolean().nullish(),
12847
+ lineColor: schemas_string().nullish(),
12848
+ lineColorOpacity: schemas_number().nullish(),
12849
+ lineWidth: schemas_number().nullish(),
12608
12850
  lineStyle: union([
12609
12851
  schemas_enum([
12610
12852
  'solid',
12611
12853
  'dashed',
12612
12854
  'dotted'
12613
12855
  ])
12614
- ]).optional()
12856
+ ]).nullish()
12615
12857
  });
12616
12858
  const zAreaStyle = schemas_object({
12617
12859
  selector: union([
12618
12860
  zSelector,
12619
12861
  zSelectors
12620
- ]).optional(),
12621
- areaColor: schemas_string().optional(),
12622
- areaColorOpacity: schemas_number().optional()
12862
+ ]).nullish(),
12863
+ areaColor: schemas_string().nullish(),
12864
+ areaColorOpacity: schemas_number().nullish()
12623
12865
  });
12624
12866
  const zMarkStyle = schemas_object({
12625
- barStyle: zBarStyle.or(schemas_array(zBarStyle)).optional(),
12626
- pointStyle: zPointStyle.or(schemas_array(zPointStyle)).optional(),
12627
- lineStyle: zLineStyle.or(schemas_array(zLineStyle)).optional(),
12628
- areaStyle: zAreaStyle.or(schemas_array(zAreaStyle)).optional()
12867
+ barStyle: zBarStyle.or(schemas_array(zBarStyle)).nullish(),
12868
+ pointStyle: zPointStyle.or(schemas_array(zPointStyle)).nullish(),
12869
+ lineStyle: zLineStyle.or(schemas_array(zLineStyle)).nullish(),
12870
+ areaStyle: zAreaStyle.or(schemas_array(zAreaStyle)).nullish()
12629
12871
  });
12630
12872
  const zAnnotationPoint = schemas_object({
12631
12873
  selector: union([
12632
12874
  zSelector,
12633
12875
  zSelectors
12634
12876
  ]),
12635
- text: schemas_string().or(schemas_array(schemas_string())).optional(),
12636
- textColor: schemas_string().default('#ffffff').optional(),
12637
- textFontSize: schemas_number().default(12).optional(),
12638
- textFontWeight: schemas_number().default(400).optional(),
12877
+ text: schemas_string().or(schemas_array(schemas_string())).nullish(),
12878
+ textColor: schemas_string().default('#ffffff').nullish(),
12879
+ textFontSize: schemas_number().default(12).nullish(),
12880
+ textFontWeight: schemas_number().default(400).nullish(),
12639
12881
  textAlign: schemas_enum([
12640
12882
  'left',
12641
12883
  'right',
12642
12884
  'center'
12643
- ]).default('center').optional(),
12885
+ ]).default('center').nullish(),
12644
12886
  textBaseline: schemas_enum([
12645
12887
  'top',
12646
12888
  'middle',
12647
12889
  'bottom'
12648
- ]).default('middle').optional(),
12649
- backgroundVisible: schemas_boolean().default(true).optional(),
12650
- backgroundColor: schemas_string().default('#212121').optional(),
12651
- backgroundBorderColor: schemas_string().optional(),
12652
- backgroundBorderWidth: schemas_number().default(1).optional(),
12653
- backgroundBorderRadius: schemas_number().default(4).optional(),
12654
- backgroundPadding: schemas_number().optional(),
12655
- offsetY: schemas_number().default(0).optional(),
12656
- offsetX: schemas_number().default(0).optional()
12890
+ ]).default('middle').nullish(),
12891
+ textBackgroundVisible: schemas_boolean().default(true).nullish(),
12892
+ textBackgroundColor: schemas_string().default('#212121').nullish(),
12893
+ textBackgroundBorderColor: schemas_string().nullish(),
12894
+ textBackgroundBorderWidth: schemas_number().default(1).nullish(),
12895
+ textBackgroundBorderRadius: schemas_number().default(4).nullish(),
12896
+ textBackgroundPadding: schemas_number().nullish(),
12897
+ offsetY: schemas_number().default(0).nullish(),
12898
+ offsetX: schemas_number().default(0).nullish()
12657
12899
  });
12658
12900
  const zAnnotationVerticalLine = schemas_object({
12659
12901
  selector: union([
12660
12902
  zSelector,
12661
12903
  zSelectors
12662
- ]).optional(),
12904
+ ]).nullish(),
12663
12905
  xValue: union([
12664
12906
  schemas_number(),
12665
12907
  schemas_string(),
@@ -12667,8 +12909,8 @@
12667
12909
  schemas_number(),
12668
12910
  schemas_string()
12669
12911
  ]))
12670
- ]).optional(),
12671
- text: schemas_string().or(schemas_array(schemas_string())).optional(),
12912
+ ]).nullish(),
12913
+ text: schemas_string().or(schemas_array(schemas_string())).nullish(),
12672
12914
  textPosition: schemas_enum([
12673
12915
  'outsideStart',
12674
12916
  'outsideEnd',
@@ -12676,42 +12918,40 @@
12676
12918
  'insideStart',
12677
12919
  'insideMiddle',
12678
12920
  'insideEnd'
12679
- ]).default('insideEnd').optional(),
12680
- textColor: schemas_string().default('#ffffff').optional(),
12681
- textFontSize: schemas_number().default(12).optional(),
12682
- textFontWeight: schemas_number().default(400).optional(),
12921
+ ]).default('insideEnd').nullish(),
12922
+ textColor: schemas_string().default('#ffffff').nullish(),
12923
+ textFontSize: schemas_number().default(12).nullish(),
12924
+ textFontWeight: schemas_number().default(400).nullish(),
12683
12925
  textAlign: schemas_enum([
12684
12926
  'left',
12685
12927
  'right',
12686
12928
  'center'
12687
- ]).default('right').optional(),
12929
+ ]).default('right').nullish(),
12688
12930
  textBaseline: schemas_enum([
12689
12931
  'top',
12690
12932
  'middle',
12691
12933
  'bottom'
12692
- ]).default('top').optional(),
12693
- lineVisible: schemas_boolean().default(true).optional(),
12694
- lineColor: schemas_string().default('#212121').optional(),
12695
- lineWidth: schemas_number().default(1).optional(),
12934
+ ]).default('top').nullish(),
12935
+ textBackgroundVisible: schemas_boolean().default(true).nullish(),
12936
+ textBackgroundColor: schemas_string().default('#212121').nullish(),
12937
+ textBackgroundBorderColor: schemas_string().default('#212121').nullish(),
12938
+ textBackgroundBorderRadius: schemas_number().default(4).nullish(),
12939
+ textBackgroundBorderWidth: schemas_number().default(1).nullish(),
12940
+ textBackgroundPadding: schemas_number().default(2).nullish(),
12941
+ lineVisible: schemas_boolean().default(true).nullish(),
12942
+ lineColor: schemas_string().default('#212121').nullish(),
12943
+ lineWidth: schemas_number().default(1).nullish(),
12696
12944
  lineStyle: union([
12697
12945
  literal('solid'),
12698
12946
  literal('dashed'),
12699
12947
  literal('dotted')
12700
- ]).default('dashed').optional(),
12701
- backgroundVisible: schemas_boolean().default(true).optional(),
12702
- backgroundColor: schemas_string().default('#212121').optional(),
12703
- backgroundBorderColor: schemas_string().default('#212121').optional(),
12704
- backgroundBorderRadius: schemas_number().default(4).optional(),
12705
- backgroundBorderWidth: schemas_number().default(1).optional(),
12706
- backgroundPadding: schemas_number().default(2).optional(),
12707
- offsetX: schemas_number().default(0),
12708
- offsetY: schemas_number().default(0)
12948
+ ]).default('dashed').nullish()
12709
12949
  });
12710
12950
  const zAnnotationHorizontalLine = schemas_object({
12711
12951
  selector: union([
12712
12952
  zSelector,
12713
12953
  zSelectors
12714
- ]).optional(),
12954
+ ]).nullish(),
12715
12955
  yValue: union([
12716
12956
  schemas_number(),
12717
12957
  schemas_string(),
@@ -12719,8 +12959,8 @@
12719
12959
  schemas_number(),
12720
12960
  schemas_string()
12721
12961
  ]))
12722
- ]).optional(),
12723
- text: schemas_string().or(schemas_array(schemas_string())).optional(),
12962
+ ]).nullish(),
12963
+ text: schemas_string().or(schemas_array(schemas_string())).nullish(),
12724
12964
  textPosition: schemas_enum([
12725
12965
  'outsideStart',
12726
12966
  'outsideEnd',
@@ -12728,36 +12968,34 @@
12728
12968
  'insideStart',
12729
12969
  'insideMiddle',
12730
12970
  'insideEnd'
12731
- ]).default('insideEnd').optional(),
12732
- textColor: schemas_string().default('#ffffff').optional(),
12733
- textFontSize: schemas_number().default(12).optional(),
12734
- textFontWeight: schemas_number().default(400).optional(),
12971
+ ]).default('insideEnd').nullish(),
12972
+ textColor: schemas_string().default('#ffffff').nullish(),
12973
+ textFontSize: schemas_number().default(12).nullish(),
12974
+ textFontWeight: schemas_number().default(400).nullish(),
12735
12975
  textAlign: schemas_enum([
12736
12976
  'left',
12737
12977
  'right',
12738
12978
  'center'
12739
- ]).default('right').optional(),
12979
+ ]).default('right').nullish(),
12740
12980
  textBaseline: schemas_enum([
12741
12981
  'top',
12742
12982
  'middle',
12743
12983
  'bottom'
12744
- ]).default('top').optional(),
12745
- lineVisible: schemas_boolean().default(true).optional(),
12746
- lineColor: schemas_string().default('#212121').optional(),
12747
- lineWidth: schemas_number().default(1).optional(),
12984
+ ]).default('top').nullish(),
12985
+ lineVisible: schemas_boolean().default(true).nullish(),
12986
+ lineColor: schemas_string().default('#212121').nullish(),
12987
+ lineWidth: schemas_number().default(1).nullish(),
12748
12988
  lineStyle: union([
12749
12989
  literal('solid'),
12750
12990
  literal('dashed'),
12751
12991
  literal('dotted')
12752
- ]).default('dashed').optional(),
12753
- backgroundVisible: schemas_boolean().default(true).optional(),
12754
- backgroundColor: schemas_string().default('#212121').optional(),
12755
- backgroundBorderColor: schemas_string().default('#212121').optional(),
12756
- backgroundBorderRadius: schemas_number().default(4).optional(),
12757
- backgroundBorderWidth: schemas_number().default(1).optional(),
12758
- backgroundPadding: schemas_number().default(2).optional(),
12759
- offsetX: schemas_number().default(0),
12760
- offsetY: schemas_number().default(0)
12992
+ ]).default('dashed').nullish(),
12993
+ textBackgroundVisible: schemas_boolean().default(true).nullish(),
12994
+ textBackgroundColor: schemas_string().default('#212121').nullish(),
12995
+ textBackgroundBorderColor: schemas_string().default('#212121').nullish(),
12996
+ textBackgroundBorderRadius: schemas_number().default(4).nullish(),
12997
+ textBackgroundBorderWidth: schemas_number().default(1).nullish(),
12998
+ textBackgroundPadding: schemas_number().default(2).nullish()
12761
12999
  });
12762
13000
  const zAnnotationArea = schemas_object({
12763
13001
  selector: union([
@@ -12773,60 +13011,58 @@
12773
13011
  'bottomRight',
12774
13012
  'left',
12775
13013
  'right'
12776
- ]).default('top').optional(),
12777
- text: schemas_string().or(schemas_array(schemas_string())).optional(),
12778
- textColor: schemas_string().default('#ffffff').optional(),
12779
- textFontSize: schemas_number().default(12).optional(),
12780
- textFontWeight: schemas_number().default(400).optional(),
13014
+ ]).default('top').nullish(),
13015
+ text: schemas_string().or(schemas_array(schemas_string())).nullish(),
13016
+ textColor: schemas_string().default('#ffffff').nullish(),
13017
+ textFontSize: schemas_number().default(12).nullish(),
13018
+ textFontWeight: schemas_number().default(400).nullish(),
12781
13019
  textAlign: schemas_enum([
12782
13020
  'left',
12783
13021
  'right',
12784
13022
  'center'
12785
- ]).default('center').optional(),
13023
+ ]).default('center').nullish(),
12786
13024
  textBaseline: schemas_enum([
12787
13025
  'top',
12788
13026
  'middle',
12789
13027
  'bottom'
12790
- ]).default('top').optional(),
12791
- backgroundVisible: schemas_boolean().default(true).optional(),
12792
- backgroundColor: schemas_string().default('#191d24').optional(),
12793
- backgroundBorderColor: schemas_string().default('#191d24').optional(),
12794
- backgroundBorderWidth: schemas_number().default(1).optional(),
12795
- backgroundBorderRadius: schemas_number().default(4).optional(),
12796
- backgroundPadding: schemas_number().default(4).optional(),
12797
- areaColor: schemas_string().default('#888888').optional(),
12798
- areaColorOpacity: schemas_number().default(0.15).optional(),
12799
- areaBorderColor: schemas_string().default('#888888').optional(),
12800
- areaBorderWidth: schemas_number().default(1).optional(),
12801
- areaBorderRadius: schemas_number().default(4).optional(),
12802
- outerPadding: schemas_number().default(4).optional(),
12803
- offsetX: schemas_number().default(0).optional(),
12804
- offsetY: schemas_number().default(0).optional()
13028
+ ]).default('top').nullish(),
13029
+ textBackgroundVisible: schemas_boolean().default(true).nullish(),
13030
+ textBackgroundColor: schemas_string().default('#191d24').nullish(),
13031
+ textBackgroundBorderColor: schemas_string().default('#191d24').nullish(),
13032
+ textBackgroundBorderWidth: schemas_number().default(1).nullish(),
13033
+ textBackgroundBorderRadius: schemas_number().default(4).nullish(),
13034
+ textBackgroundPadding: schemas_number().default(4).nullish(),
13035
+ areaColor: schemas_string().default('#888888').nullish(),
13036
+ areaColorOpacity: schemas_number().default(0.15).nullish(),
13037
+ areaBorderColor: schemas_string().default('#888888').nullish(),
13038
+ areaBorderWidth: schemas_number().default(1).nullish(),
13039
+ areaBorderRadius: schemas_number().default(4).nullish(),
13040
+ outerPadding: schemas_number().default(4).nullish()
12805
13041
  });
12806
13042
  const zAnnotation = schemas_object({
12807
- annotationPoint: zAnnotationPoint.or(schemas_array(zAnnotationPoint)).optional(),
12808
- annotationVerticalLine: zAnnotationVerticalLine.or(schemas_array(zAnnotationVerticalLine)).optional(),
12809
- annotationHorizontalLine: zAnnotationHorizontalLine.or(schemas_array(zAnnotationHorizontalLine)).optional(),
12810
- annotationArea: zAnnotationArea.or(schemas_array(zAnnotationArea)).optional()
13043
+ annotationPoint: zAnnotationPoint.or(schemas_array(zAnnotationPoint)).nullish(),
13044
+ annotationVerticalLine: zAnnotationVerticalLine.or(schemas_array(zAnnotationVerticalLine)).nullish(),
13045
+ annotationHorizontalLine: zAnnotationHorizontalLine.or(schemas_array(zAnnotationHorizontalLine)).nullish(),
13046
+ annotationArea: zAnnotationArea.or(schemas_array(zAnnotationArea)).nullish()
12811
13047
  });
12812
13048
  const zSort = schemas_object({
12813
13049
  order: schemas_enum([
12814
13050
  'asc',
12815
13051
  'desc'
12816
13052
  ]).default('asc'),
12817
- orderBy: schemas_string().optional(),
12818
- customOrder: schemas_array(any()).optional()
13053
+ orderBy: schemas_string().nullish(),
13054
+ customOrder: schemas_array(any()).nullish()
12819
13055
  });
12820
13056
  const zSortLegend = schemas_object({
12821
13057
  order: schemas_enum([
12822
13058
  'asc',
12823
13059
  'desc'
12824
13060
  ]).default('asc'),
12825
- orderBy: schemas_string().optional(),
12826
- customOrder: schemas_array(any()).optional()
13061
+ orderBy: schemas_string().nullish(),
13062
+ customOrder: schemas_array(any()).nullish()
12827
13063
  });
12828
13064
  const zAnalysis = schemas_object({
12829
- orderMapping: record(schemas_string(), schemas_array(schemas_string())).optional()
13065
+ orderMapping: record(schemas_string(), schemas_array(schemas_string())).nullish()
12830
13066
  });
12831
13067
  const zLocale = schemas_enum([
12832
13068
  'zh-CN',
@@ -12834,384 +13070,411 @@
12834
13070
  ]).default('zh-CN');
12835
13071
  const zTable = schemas_object({
12836
13072
  chartType: literal('table'),
12837
- dataset: zDataset.optional(),
12838
- dimensions: zDimensions.optional(),
12839
- measures: zMeasureTree.optional(),
12840
- backgroundColor: zBackgroundColor.optional(),
12841
- theme: zTheme.optional(),
12842
- locale: zLocale.optional()
13073
+ dataset: zDataset.nullish(),
13074
+ dimensions: zDimensions.nullish(),
13075
+ measures: zMeasureTree.nullish(),
13076
+ backgroundColor: zBackgroundColor.nullish(),
13077
+ borderColor: schemas_string().nullish(),
13078
+ bodyFontSize: schemas_number().nullish(),
13079
+ bodyFontColor: schemas_string().nullish(),
13080
+ bodyBackgroundColor: schemas_string().nullish(),
13081
+ hoverBodyBackgroundColor: schemas_string().nullish(),
13082
+ hoverBodyInlineBackgroundColor: schemas_string().nullish(),
13083
+ headerFontSize: schemas_number().nullish(),
13084
+ headerFontColor: schemas_string().nullish(),
13085
+ headerBackgroundColor: schemas_string().nullish(),
13086
+ hoverHeaderBackgroundColor: schemas_string().nullish(),
13087
+ hoverHeaderInlineBackgroundColor: schemas_string().nullish(),
13088
+ selectedBorderColor: schemas_string().nullish(),
13089
+ selectedBackgroundColor: schemas_string().nullish(),
13090
+ theme: zTheme.nullish(),
13091
+ locale: zLocale.nullish()
12843
13092
  });
12844
13093
  const zPivotTable = schemas_object({
12845
13094
  chartType: literal('pivotTable'),
12846
- dataset: zDataset.optional(),
12847
- dimensions: zDimensions.optional(),
12848
- measures: zMeasures.optional(),
12849
- backgroundColor: zBackgroundColor.optional(),
12850
- theme: zTheme.optional(),
12851
- locale: zLocale.optional()
13095
+ dataset: zDataset.nullish(),
13096
+ dimensions: zDimensions.nullish(),
13097
+ measures: zMeasures.nullish(),
13098
+ backgroundColor: zBackgroundColor.nullish(),
13099
+ borderColor: schemas_string().nullish(),
13100
+ bodyFontSize: schemas_number().nullish(),
13101
+ bodyFontColor: schemas_string().nullish(),
13102
+ bodyBackgroundColor: schemas_string().nullish(),
13103
+ hoverBodyBackgroundColor: schemas_string().nullish(),
13104
+ hoverBodyInlineBackgroundColor: schemas_string().nullish(),
13105
+ headerFontSize: schemas_number().nullish(),
13106
+ headerFontColor: schemas_string().nullish(),
13107
+ headerBackgroundColor: schemas_string().nullish(),
13108
+ hoverHeaderBackgroundColor: schemas_string().nullish(),
13109
+ hoverHeaderInlineBackgroundColor: schemas_string().nullish(),
13110
+ selectedBorderColor: schemas_string().nullish(),
13111
+ selectedBackgroundColor: schemas_string().nullish(),
13112
+ theme: zTheme.nullish(),
13113
+ locale: zLocale.nullish()
12852
13114
  });
12853
13115
  const zLine = schemas_object({
12854
13116
  chartType: literal('line'),
12855
- dataset: zDataset.optional(),
12856
- dimensions: zDimensions.optional(),
12857
- measures: zMeasureTree.optional(),
12858
- backgroundColor: zBackgroundColor.optional(),
12859
- color: zColor.optional(),
12860
- label: zLabel.optional(),
12861
- legend: zLegend.optional(),
12862
- tooltip: zTooltip.optional(),
12863
- xAxis: zXBandAxis.optional(),
12864
- yAxis: zYLinearAxis.optional(),
12865
- crosshairLine: zCrosshairLine.optional(),
12866
- sort: zSort.optional(),
12867
- sortLegend: zSortLegend.optional(),
12868
- theme: zTheme.optional(),
12869
- pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
12870
- lineStyle: schemas_array(zLineStyle).or(zLineStyle).optional(),
12871
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
12872
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
12873
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
12874
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
12875
- locale: zLocale.optional()
13117
+ dataset: zDataset.nullish(),
13118
+ dimensions: zDimensions.nullish(),
13119
+ measures: zMeasureTree.nullish(),
13120
+ backgroundColor: zBackgroundColor.nullish(),
13121
+ color: zColor.nullish(),
13122
+ label: zLabel.nullish(),
13123
+ legend: zLegend.nullish(),
13124
+ tooltip: zTooltip.nullish(),
13125
+ xAxis: zXBandAxis.nullish(),
13126
+ yAxis: zYLinearAxis.nullish(),
13127
+ crosshairLine: zCrosshairLine.nullish(),
13128
+ sort: zSort.nullish(),
13129
+ sortLegend: zSortLegend.nullish(),
13130
+ theme: zTheme.nullish(),
13131
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
13132
+ lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
13133
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13134
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13135
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13136
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13137
+ locale: zLocale.nullish()
12876
13138
  });
12877
13139
  const zColumn = schemas_object({
12878
13140
  chartType: literal('column'),
12879
- dataset: zDataset.optional(),
12880
- dimensions: zDimensions.optional(),
12881
- measures: zMeasureTree.optional(),
12882
- backgroundColor: zBackgroundColor.optional(),
12883
- color: zColor.optional(),
12884
- label: zLabel.optional(),
12885
- legend: zLegend.optional(),
12886
- tooltip: zTooltip.optional(),
12887
- xAxis: zXBandAxis.optional(),
12888
- yAxis: zYLinearAxis.optional(),
12889
- crosshairRect: zCrosshairRect.optional(),
12890
- stackCornerRadius: zStackCornerRadius.optional(),
12891
- theme: zTheme.optional(),
12892
- barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
12893
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
12894
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
12895
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
12896
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
12897
- locale: zLocale.optional()
13141
+ dataset: zDataset.nullish(),
13142
+ dimensions: zDimensions.nullish(),
13143
+ measures: zMeasureTree.nullish(),
13144
+ backgroundColor: zBackgroundColor.nullish(),
13145
+ color: zColor.nullish(),
13146
+ label: zLabel.nullish(),
13147
+ legend: zLegend.nullish(),
13148
+ tooltip: zTooltip.nullish(),
13149
+ xAxis: zXBandAxis.nullish(),
13150
+ yAxis: zYLinearAxis.nullish(),
13151
+ crosshairRect: zCrosshairRect.nullish(),
13152
+ stackCornerRadius: zStackCornerRadius.nullish(),
13153
+ theme: zTheme.nullish(),
13154
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
13155
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13156
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13157
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13158
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13159
+ locale: zLocale.nullish()
12898
13160
  });
12899
13161
  const zColumnParallel = schemas_object({
12900
13162
  chartType: literal('columnParallel'),
12901
- dataset: zDataset.optional(),
12902
- dimensions: zDimensions.optional(),
12903
- measures: zMeasureTree.optional(),
12904
- backgroundColor: zBackgroundColor.optional(),
12905
- color: zColor.optional(),
12906
- label: zLabel.optional(),
12907
- legend: zLegend.optional(),
12908
- tooltip: zTooltip.optional(),
12909
- xAxis: zXBandAxis.optional(),
12910
- yAxis: zYLinearAxis.optional(),
12911
- crosshairRect: zCrosshairRect.optional(),
12912
- stackCornerRadius: zStackCornerRadius.optional(),
12913
- theme: zTheme.optional(),
12914
- barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
12915
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
12916
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
12917
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
12918
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
12919
- locale: zLocale.optional()
13163
+ dataset: zDataset.nullish(),
13164
+ dimensions: zDimensions.nullish(),
13165
+ measures: zMeasureTree.nullish(),
13166
+ backgroundColor: zBackgroundColor.nullish(),
13167
+ color: zColor.nullish(),
13168
+ label: zLabel.nullish(),
13169
+ legend: zLegend.nullish(),
13170
+ tooltip: zTooltip.nullish(),
13171
+ xAxis: zXBandAxis.nullish(),
13172
+ yAxis: zYLinearAxis.nullish(),
13173
+ crosshairRect: zCrosshairRect.nullish(),
13174
+ stackCornerRadius: zStackCornerRadius.nullish(),
13175
+ theme: zTheme.nullish(),
13176
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
13177
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13178
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13179
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13180
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13181
+ locale: zLocale.nullish()
12920
13182
  });
12921
13183
  const zColumnPercent = schemas_object({
12922
13184
  chartType: literal('columnPercent'),
12923
- dataset: zDataset.optional(),
12924
- dimensions: zDimensions.optional(),
12925
- measures: zMeasureTree.optional(),
12926
- backgroundColor: zBackgroundColor.optional(),
12927
- color: zColor.optional(),
12928
- label: zLabel.optional(),
12929
- legend: zLegend.optional(),
12930
- tooltip: zTooltip.optional(),
12931
- xAxis: zXBandAxis.optional(),
12932
- yAxis: zYLinearAxis.optional(),
12933
- crosshairRect: zCrosshairRect.optional(),
12934
- stackCornerRadius: zStackCornerRadius.optional(),
12935
- theme: zTheme.optional(),
12936
- barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
12937
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
12938
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
12939
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
12940
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
12941
- locale: zLocale.optional()
13185
+ dataset: zDataset.nullish(),
13186
+ dimensions: zDimensions.nullish(),
13187
+ measures: zMeasureTree.nullish(),
13188
+ backgroundColor: zBackgroundColor.nullish(),
13189
+ color: zColor.nullish(),
13190
+ label: zLabel.nullish(),
13191
+ legend: zLegend.nullish(),
13192
+ tooltip: zTooltip.nullish(),
13193
+ xAxis: zXBandAxis.nullish(),
13194
+ yAxis: zYLinearAxis.nullish(),
13195
+ crosshairRect: zCrosshairRect.nullish(),
13196
+ stackCornerRadius: zStackCornerRadius.nullish(),
13197
+ theme: zTheme.nullish(),
13198
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
13199
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13200
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13201
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13202
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13203
+ locale: zLocale.nullish()
12942
13204
  });
12943
13205
  const zBar = schemas_object({
12944
13206
  chartType: literal('bar'),
12945
- dataset: zDataset.optional(),
12946
- dimensions: zDimensions.optional(),
12947
- measures: zMeasureTree.optional(),
12948
- backgroundColor: zBackgroundColor.optional(),
12949
- color: zColor.optional(),
12950
- label: zLabel.optional(),
12951
- legend: zLegend.optional(),
12952
- tooltip: zTooltip.optional(),
12953
- xAxis: zXLinearAxis.optional(),
12954
- yAxis: zYBandAxis.optional(),
12955
- crosshairRect: zCrosshairRect.optional(),
12956
- stackCornerRadius: zStackCornerRadius.optional(),
12957
- theme: zTheme.optional(),
12958
- barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
12959
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
12960
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
12961
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
12962
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
12963
- locale: zLocale.optional()
13207
+ dataset: zDataset.nullish(),
13208
+ dimensions: zDimensions.nullish(),
13209
+ measures: zMeasureTree.nullish(),
13210
+ backgroundColor: zBackgroundColor.nullish(),
13211
+ color: zColor.nullish(),
13212
+ label: zLabel.nullish(),
13213
+ legend: zLegend.nullish(),
13214
+ tooltip: zTooltip.nullish(),
13215
+ xAxis: zXLinearAxis.nullish(),
13216
+ yAxis: zYBandAxis.nullish(),
13217
+ crosshairRect: zCrosshairRect.nullish(),
13218
+ stackCornerRadius: zStackCornerRadius.nullish(),
13219
+ theme: zTheme.nullish(),
13220
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
13221
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13222
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13223
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13224
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13225
+ locale: zLocale.nullish()
12964
13226
  });
12965
13227
  const zBarParallel = schemas_object({
12966
13228
  chartType: literal('barParallel'),
12967
- dataset: zDataset.optional(),
12968
- dimensions: zDimensions.optional(),
12969
- measures: zMeasureTree.optional(),
12970
- backgroundColor: zBackgroundColor.optional(),
12971
- color: zColor.optional(),
12972
- label: zLabel.optional(),
12973
- legend: zLegend.optional(),
12974
- tooltip: zTooltip.optional(),
12975
- xAxis: zXLinearAxis.optional(),
12976
- yAxis: zYBandAxis.optional(),
12977
- crosshairRect: zCrosshairRect.optional(),
12978
- stackCornerRadius: zStackCornerRadius.optional(),
12979
- theme: zTheme.optional(),
12980
- barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
12981
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
12982
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
12983
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
12984
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
12985
- locale: zLocale.optional()
13229
+ dataset: zDataset.nullish(),
13230
+ dimensions: zDimensions.nullish(),
13231
+ measures: zMeasureTree.nullish(),
13232
+ backgroundColor: zBackgroundColor.nullish(),
13233
+ color: zColor.nullish(),
13234
+ label: zLabel.nullish(),
13235
+ legend: zLegend.nullish(),
13236
+ tooltip: zTooltip.nullish(),
13237
+ xAxis: zXLinearAxis.nullish(),
13238
+ yAxis: zYBandAxis.nullish(),
13239
+ crosshairRect: zCrosshairRect.nullish(),
13240
+ stackCornerRadius: zStackCornerRadius.nullish(),
13241
+ theme: zTheme.nullish(),
13242
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
13243
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13244
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13245
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13246
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13247
+ locale: zLocale.nullish()
12986
13248
  });
12987
13249
  const zBarPercent = schemas_object({
12988
13250
  chartType: literal('barPercent'),
12989
- dataset: zDataset.optional(),
12990
- dimensions: zDimensions.optional(),
12991
- measures: zMeasureTree.optional(),
12992
- backgroundColor: zBackgroundColor.optional(),
12993
- color: zColor.optional(),
12994
- label: zLabel.optional(),
12995
- legend: zLegend.optional(),
12996
- tooltip: zTooltip.optional(),
12997
- xAxis: zXLinearAxis.optional(),
12998
- yAxis: zYBandAxis.optional(),
12999
- crosshairRect: zCrosshairRect.optional(),
13000
- stackCornerRadius: zStackCornerRadius.optional(),
13001
- theme: zTheme.optional(),
13002
- barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
13003
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
13004
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
13005
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
13006
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
13007
- locale: zLocale.optional()
13251
+ dataset: zDataset.nullish(),
13252
+ dimensions: zDimensions.nullish(),
13253
+ measures: zMeasureTree.nullish(),
13254
+ backgroundColor: zBackgroundColor.nullish(),
13255
+ color: zColor.nullish(),
13256
+ label: zLabel.nullish(),
13257
+ legend: zLegend.nullish(),
13258
+ tooltip: zTooltip.nullish(),
13259
+ xAxis: zXLinearAxis.nullish(),
13260
+ yAxis: zYBandAxis.nullish(),
13261
+ crosshairRect: zCrosshairRect.nullish(),
13262
+ stackCornerRadius: zStackCornerRadius.nullish(),
13263
+ theme: zTheme.nullish(),
13264
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
13265
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13266
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13267
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13268
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13269
+ locale: zLocale.nullish()
13008
13270
  });
13009
13271
  const zArea = schemas_object({
13010
13272
  chartType: literal('area'),
13011
- dataset: zDataset.optional(),
13012
- dimensions: zDimensions.optional(),
13013
- measures: zMeasureTree.optional(),
13014
- backgroundColor: zBackgroundColor.optional(),
13015
- color: zColor.optional(),
13016
- label: zLabel.optional(),
13017
- legend: zLegend.optional(),
13018
- tooltip: zTooltip.optional(),
13019
- xAxis: zXBandAxis.optional(),
13020
- yAxis: zYLinearAxis.optional(),
13021
- crosshairLine: zCrosshairLine.optional(),
13022
- theme: zTheme.optional(),
13023
- pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
13024
- lineStyle: schemas_array(zLineStyle).or(zLineStyle).optional(),
13025
- areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).optional(),
13026
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
13027
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
13028
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
13029
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
13030
- locale: zLocale.optional()
13273
+ dataset: zDataset.nullish(),
13274
+ dimensions: zDimensions.nullish(),
13275
+ measures: zMeasureTree.nullish(),
13276
+ backgroundColor: zBackgroundColor.nullish(),
13277
+ color: zColor.nullish(),
13278
+ label: zLabel.nullish(),
13279
+ legend: zLegend.nullish(),
13280
+ tooltip: zTooltip.nullish(),
13281
+ xAxis: zXBandAxis.nullish(),
13282
+ yAxis: zYLinearAxis.nullish(),
13283
+ crosshairLine: zCrosshairLine.nullish(),
13284
+ theme: zTheme.nullish(),
13285
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
13286
+ lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
13287
+ areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).nullish(),
13288
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13289
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13290
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13291
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13292
+ locale: zLocale.nullish()
13031
13293
  });
13032
13294
  const zAreaPercent = schemas_object({
13033
13295
  chartType: literal('areaPercent'),
13034
- dataset: zDataset.optional(),
13035
- dimensions: zDimensions.optional(),
13036
- measures: zMeasureTree.optional(),
13037
- backgroundColor: zBackgroundColor.optional(),
13038
- color: zColor.optional(),
13039
- label: zLabel.optional(),
13040
- legend: zLegend.optional(),
13041
- tooltip: zTooltip.optional(),
13042
- xAxis: zXBandAxis.optional(),
13043
- yAxis: zYLinearAxis.optional(),
13044
- crosshairLine: zCrosshairLine.optional(),
13045
- theme: zTheme.optional(),
13046
- pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
13047
- lineStyle: schemas_array(zLineStyle).or(zLineStyle).optional(),
13048
- areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).optional(),
13049
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
13050
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
13051
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
13052
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
13053
- locale: zLocale.optional()
13296
+ dataset: zDataset.nullish(),
13297
+ dimensions: zDimensions.nullish(),
13298
+ measures: zMeasureTree.nullish(),
13299
+ backgroundColor: zBackgroundColor.nullish(),
13300
+ color: zColor.nullish(),
13301
+ label: zLabel.nullish(),
13302
+ legend: zLegend.nullish(),
13303
+ tooltip: zTooltip.nullish(),
13304
+ xAxis: zXBandAxis.nullish(),
13305
+ yAxis: zYLinearAxis.nullish(),
13306
+ crosshairLine: zCrosshairLine.nullish(),
13307
+ theme: zTheme.nullish(),
13308
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
13309
+ lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
13310
+ areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).nullish(),
13311
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13312
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13313
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13314
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13315
+ locale: zLocale.nullish()
13054
13316
  });
13055
13317
  const zAreaRange = schemas_object({
13056
13318
  chartType: literal('areaRange'),
13057
- dataset: zDataset.optional(),
13058
- dimensions: zDimensions.optional(),
13059
- measures: zMeasureTree.optional(),
13060
- backgroundColor: zBackgroundColor.optional(),
13061
- label: zLabel.optional(),
13062
- xAxis: zXBandAxis.optional(),
13063
- yAxis: zYLinearAxis.optional(),
13064
- crosshairLine: zCrosshairLine.optional(),
13065
- theme: zTheme.optional(),
13066
- pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
13067
- lineStyle: schemas_array(zLineStyle).or(zLineStyle).optional(),
13068
- areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).optional(),
13069
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
13070
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
13071
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
13072
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
13073
- locale: zLocale.optional()
13319
+ dataset: zDataset.nullish(),
13320
+ dimensions: zDimensions.nullish(),
13321
+ measures: zMeasureTree.nullish(),
13322
+ backgroundColor: zBackgroundColor.nullish(),
13323
+ label: zLabel.nullish(),
13324
+ xAxis: zXBandAxis.nullish(),
13325
+ yAxis: zYLinearAxis.nullish(),
13326
+ crosshairLine: zCrosshairLine.nullish(),
13327
+ theme: zTheme.nullish(),
13328
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
13329
+ lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
13330
+ areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).nullish(),
13331
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13332
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13333
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13334
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13335
+ locale: zLocale.nullish()
13074
13336
  });
13075
13337
  const zScatter = schemas_object({
13076
13338
  chartType: literal('scatter'),
13077
- dataset: zDataset.optional(),
13078
- dimensions: zDimensions.optional(),
13079
- measures: zMeasureTree.optional(),
13080
- backgroundColor: zBackgroundColor.optional(),
13081
- color: zColor.optional(),
13082
- label: zLabel.optional(),
13083
- legend: zLegend.optional(),
13084
- tooltip: zTooltip.optional(),
13085
- xAxis: zXLinearAxis.optional(),
13086
- yAxis: zYLinearAxis.optional(),
13087
- crosshairLine: zCrosshairLine.optional(),
13088
- theme: zTheme.optional(),
13089
- pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
13090
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
13091
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
13092
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
13093
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
13094
- locale: zLocale.optional()
13339
+ dataset: zDataset.nullish(),
13340
+ dimensions: zDimensions.nullish(),
13341
+ measures: zMeasureTree.nullish(),
13342
+ backgroundColor: zBackgroundColor.nullish(),
13343
+ color: zColor.nullish(),
13344
+ label: zLabel.nullish(),
13345
+ legend: zLegend.nullish(),
13346
+ tooltip: zTooltip.nullish(),
13347
+ xAxis: zXLinearAxis.nullish(),
13348
+ yAxis: zYLinearAxis.nullish(),
13349
+ crosshairLine: zCrosshairLine.nullish(),
13350
+ theme: zTheme.nullish(),
13351
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
13352
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13353
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13354
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13355
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13356
+ locale: zLocale.nullish()
13095
13357
  });
13096
13358
  const zDualAxis = schemas_object({
13097
13359
  chartType: literal('dualAxis'),
13098
- dataset: zDataset.optional(),
13099
- dimensions: zDimensions.optional(),
13100
- measures: zMeasureTree.optional(),
13101
- dualMeasures: zDualMeasures.optional(),
13102
- dualChartType: schemas_array(zDualChartType).or(zDualChartType).optional(),
13103
- primaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).optional(),
13104
- secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).optional(),
13105
- xAxis: zXBandAxis.optional(),
13106
- backgroundColor: zBackgroundColor.optional(),
13107
- color: zColor.optional(),
13108
- label: zLabel.optional(),
13109
- legend: zLegend.optional(),
13110
- tooltip: zTooltip.optional(),
13111
- crosshairRect: zCrosshairRect.optional(),
13112
- sort: zSort.optional(),
13113
- sortLegend: zSortLegend.optional(),
13114
- theme: zTheme.optional(),
13115
- barStyle: schemas_array(zBarStyle).or(zBarStyle).optional(),
13116
- pointStyle: schemas_array(zPointStyle).or(zPointStyle).optional(),
13117
- lineStyle: schemas_array(zLineStyle).or(zLineStyle).optional(),
13118
- areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).optional(),
13119
- annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).optional(),
13120
- annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
13121
- annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
13122
- annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).optional(),
13123
- locale: zLocale.optional()
13360
+ dataset: zDataset.nullish(),
13361
+ dimensions: zDimensions.nullish(),
13362
+ measures: zMeasureTree.nullish(),
13363
+ dualMeasures: zDualMeasures.nullish(),
13364
+ dualChartType: schemas_array(zDualChartType).or(zDualChartType).nullish(),
13365
+ alignTicks: schemas_array(schemas_boolean()).or(schemas_boolean()).nullish(),
13366
+ primaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
13367
+ secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
13368
+ xAxis: zXBandAxis.nullish(),
13369
+ backgroundColor: zBackgroundColor.nullish(),
13370
+ color: zColor.nullish(),
13371
+ label: zLabel.nullish(),
13372
+ legend: zLegend.nullish(),
13373
+ tooltip: zTooltip.nullish(),
13374
+ crosshairRect: zCrosshairRect.nullish(),
13375
+ sort: zSort.nullish(),
13376
+ sortLegend: zSortLegend.nullish(),
13377
+ theme: zTheme.nullish(),
13378
+ barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
13379
+ pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
13380
+ lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
13381
+ areaStyle: schemas_array(zAreaStyle).or(zAreaStyle).nullish(),
13382
+ annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
13383
+ annotationVerticalLine: schemas_array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
13384
+ annotationHorizontalLine: schemas_array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
13385
+ annotationArea: schemas_array(zAnnotationArea).or(zAnnotationArea).nullish(),
13386
+ locale: zLocale.nullish()
13124
13387
  });
13125
13388
  const zRose = schemas_object({
13126
13389
  chartType: literal('rose'),
13127
- dataset: zDataset.optional(),
13128
- dimensions: zDimensions.optional(),
13129
- measures: zMeasureTree.optional(),
13130
- backgroundColor: zBackgroundColor.optional(),
13131
- color: zColor.optional(),
13132
- label: zLabel.optional(),
13133
- legend: zLegend.optional(),
13134
- tooltip: zTooltip.optional(),
13135
- theme: zTheme.optional(),
13136
- locale: zLocale.optional()
13390
+ dataset: zDataset.nullish(),
13391
+ dimensions: zDimensions.nullish(),
13392
+ measures: zMeasureTree.nullish(),
13393
+ backgroundColor: zBackgroundColor.nullish(),
13394
+ color: zColor.nullish(),
13395
+ label: zLabel.nullish(),
13396
+ legend: zLegend.nullish(),
13397
+ tooltip: zTooltip.nullish(),
13398
+ theme: zTheme.nullish(),
13399
+ locale: zLocale.nullish()
13137
13400
  });
13138
13401
  const zRoseParallel = schemas_object({
13139
13402
  chartType: literal('roseParallel'),
13140
- dataset: zDataset.optional(),
13141
- dimensions: zDimensions.optional(),
13142
- measures: zMeasureTree.optional(),
13143
- backgroundColor: zBackgroundColor.optional(),
13144
- color: zColor.optional(),
13145
- label: zLabel.optional(),
13146
- legend: zLegend.optional(),
13147
- tooltip: zTooltip.optional(),
13148
- theme: zTheme.optional(),
13149
- locale: zLocale.optional()
13403
+ dataset: zDataset.nullish(),
13404
+ dimensions: zDimensions.nullish(),
13405
+ measures: zMeasureTree.nullish(),
13406
+ backgroundColor: zBackgroundColor.nullish(),
13407
+ color: zColor.nullish(),
13408
+ label: zLabel.nullish(),
13409
+ legend: zLegend.nullish(),
13410
+ tooltip: zTooltip.nullish(),
13411
+ theme: zTheme.nullish(),
13412
+ locale: zLocale.nullish()
13150
13413
  });
13151
13414
  const zPie = schemas_object({
13152
13415
  chartType: literal('pie'),
13153
- dataset: zDataset.optional(),
13154
- dimensions: zDimensions.optional(),
13155
- measures: zMeasureTree.optional(),
13156
- backgroundColor: zBackgroundColor.optional(),
13157
- color: zColor.optional(),
13158
- label: zLabel.optional(),
13159
- legend: zLegend.optional(),
13160
- tooltip: zTooltip.optional(),
13161
- theme: zTheme.optional(),
13162
- locale: zLocale.optional()
13416
+ dataset: zDataset.nullish(),
13417
+ dimensions: zDimensions.nullish(),
13418
+ measures: zMeasureTree.nullish(),
13419
+ backgroundColor: zBackgroundColor.nullish(),
13420
+ color: zColor.nullish(),
13421
+ label: zLabel.nullish(),
13422
+ legend: zLegend.nullish(),
13423
+ tooltip: zTooltip.nullish(),
13424
+ theme: zTheme.nullish(),
13425
+ locale: zLocale.nullish()
13163
13426
  });
13164
13427
  const zDonut = schemas_object({
13165
13428
  chartType: literal('donut'),
13166
- dataset: zDataset.optional(),
13167
- dimensions: zDimensions.optional(),
13168
- measures: zMeasureTree.optional(),
13169
- backgroundColor: zBackgroundColor.optional(),
13170
- color: zColor.optional(),
13171
- label: zLabel.optional(),
13172
- legend: zLegend.optional(),
13173
- tooltip: zTooltip.optional(),
13174
- theme: zTheme.optional(),
13175
- locale: zLocale.optional()
13429
+ dataset: zDataset.nullish(),
13430
+ dimensions: zDimensions.nullish(),
13431
+ measures: zMeasureTree.nullish(),
13432
+ backgroundColor: zBackgroundColor.nullish(),
13433
+ color: zColor.nullish(),
13434
+ label: zLabel.nullish(),
13435
+ legend: zLegend.nullish(),
13436
+ tooltip: zTooltip.nullish(),
13437
+ theme: zTheme.nullish(),
13438
+ locale: zLocale.nullish()
13176
13439
  });
13177
13440
  const zRadar = schemas_object({
13178
13441
  chartType: literal('radar'),
13179
- dataset: zDataset.optional(),
13180
- dimensions: zDimensions.optional(),
13181
- measures: zMeasureTree.optional(),
13182
- backgroundColor: zBackgroundColor.optional(),
13183
- color: zColor.optional(),
13184
- label: zLabel.optional(),
13185
- legend: zLegend.optional(),
13186
- tooltip: zTooltip.optional(),
13187
- theme: zTheme.optional(),
13188
- locale: zLocale.optional()
13442
+ dataset: zDataset.nullish(),
13443
+ dimensions: zDimensions.nullish(),
13444
+ measures: zMeasureTree.nullish(),
13445
+ backgroundColor: zBackgroundColor.nullish(),
13446
+ color: zColor.nullish(),
13447
+ label: zLabel.nullish(),
13448
+ legend: zLegend.nullish(),
13449
+ tooltip: zTooltip.nullish(),
13450
+ theme: zTheme.nullish(),
13451
+ locale: zLocale.nullish()
13189
13452
  });
13190
13453
  const zFunnel = schemas_object({
13191
13454
  chartType: literal('funnel'),
13192
- dataset: zDataset.optional(),
13193
- dimensions: zDimensions.optional(),
13194
- measures: zMeasureTree.optional(),
13195
- backgroundColor: zBackgroundColor.optional(),
13196
- color: zLinearColor.optional(),
13197
- label: zLabel.optional(),
13198
- legend: zColorLegend.optional(),
13199
- tooltip: zTooltip.optional(),
13200
- theme: zTheme.optional(),
13201
- locale: zLocale.optional()
13455
+ dataset: zDataset.nullish(),
13456
+ dimensions: zDimensions.nullish(),
13457
+ measures: zMeasureTree.nullish(),
13458
+ backgroundColor: zBackgroundColor.nullish(),
13459
+ color: zLinearColor.nullish(),
13460
+ label: zLabel.nullish(),
13461
+ legend: zColorLegend.nullish(),
13462
+ tooltip: zTooltip.nullish(),
13463
+ theme: zTheme.nullish(),
13464
+ locale: zLocale.nullish()
13202
13465
  });
13203
13466
  const zHeatmap = schemas_object({
13204
13467
  chartType: literal('heatmap'),
13205
- dataset: zDataset.optional(),
13206
- dimensions: zDimensions.optional(),
13207
- measures: zMeasureTree.optional(),
13208
- backgroundColor: zBackgroundColor.optional(),
13209
- color: zLinearColor.optional(),
13210
- label: zLabel.optional(),
13211
- legend: zColorLegend.optional(),
13212
- tooltip: zTooltip.optional(),
13213
- theme: zTheme.optional(),
13214
- locale: zLocale.optional()
13468
+ dataset: zDataset.nullish(),
13469
+ dimensions: zDimensions.nullish(),
13470
+ measures: zMeasureTree.nullish(),
13471
+ backgroundColor: zBackgroundColor.nullish(),
13472
+ color: zLinearColor.nullish(),
13473
+ label: zLabel.nullish(),
13474
+ legend: zColorLegend.nullish(),
13475
+ tooltip: zTooltip.nullish(),
13476
+ theme: zTheme.nullish(),
13477
+ locale: zLocale.nullish()
13215
13478
  });
13216
13479
  const zVSeed = discriminatedUnion('chartType', [
13217
13480
  zTable,