@visactor/vseed 0.0.35 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/builder/builder/builder.d.ts +8924 -8912
  2. package/dist/index.cjs +1128 -883
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +1097 -870
  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/dimensions/index.d.ts +1 -0
  18. package/dist/pipeline/utils/dimensions/typeGuard.d.ts +4 -0
  19. package/dist/pipeline/utils/measures/index.d.ts +1 -0
  20. package/dist/pipeline/utils/measures/typeGuard.d.ts +4 -0
  21. package/dist/types/advancedVSeed.d.ts +3843 -3839
  22. package/dist/types/chartType/area/zArea.d.ts +569 -569
  23. package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +569 -569
  24. package/dist/types/chartType/areaRange/zAreaRange.d.ts +550 -550
  25. package/dist/types/chartType/bar/bar.d.ts +0 -1183
  26. package/dist/types/chartType/bar/index.d.ts +2 -1
  27. package/dist/types/chartType/bar/zBar.d.ts +1183 -0
  28. package/dist/types/chartType/barParallel/barParallel.d.ts +0 -1183
  29. package/dist/types/chartType/barParallel/index.d.ts +2 -1
  30. package/dist/types/chartType/barParallel/zBarParallel.d.ts +1183 -0
  31. package/dist/types/chartType/barPercent/barPercent.d.ts +0 -1183
  32. package/dist/types/chartType/barPercent/index.d.ts +2 -1
  33. package/dist/types/chartType/barPercent/zBarPercent.d.ts +1183 -0
  34. package/dist/types/chartType/column/column.d.ts +0 -1183
  35. package/dist/types/chartType/column/index.d.ts +2 -1
  36. package/dist/types/chartType/column/zColumn.d.ts +1183 -0
  37. package/dist/types/chartType/columnParallel/columnParallel.d.ts +0 -1183
  38. package/dist/types/chartType/columnParallel/index.d.ts +2 -1
  39. package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +1183 -0
  40. package/dist/types/chartType/columnPercent/columnPercent.d.ts +0 -1183
  41. package/dist/types/chartType/columnPercent/index.d.ts +2 -1
  42. package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +1183 -0
  43. package/dist/types/chartType/donut/donut.d.ts +0 -119
  44. package/dist/types/chartType/donut/index.d.ts +2 -1
  45. package/dist/types/chartType/donut/zDonut.d.ts +119 -0
  46. package/dist/types/chartType/dualAxis/dualAxis.d.ts +58 -0
  47. package/dist/types/chartType/dualAxis/zDualAxis.d.ts +747 -749
  48. package/dist/types/chartType/funnel/funnel.d.ts +0 -89
  49. package/dist/types/chartType/funnel/index.d.ts +2 -1
  50. package/dist/types/chartType/funnel/zFunnel.d.ts +89 -0
  51. package/dist/types/chartType/heatmap/heatmap.d.ts +0 -89
  52. package/dist/types/chartType/heatmap/index.d.ts +2 -1
  53. package/dist/types/chartType/heatmap/zHeatmap.d.ts +89 -0
  54. package/dist/types/chartType/line/index.d.ts +2 -1
  55. package/dist/types/chartType/line/line.d.ts +0 -1365
  56. package/dist/types/chartType/line/zLine.d.ts +1365 -0
  57. package/dist/types/chartType/pie/index.d.ts +2 -1
  58. package/dist/types/chartType/pie/pie.d.ts +0 -119
  59. package/dist/types/chartType/pie/zPie.d.ts +119 -0
  60. package/dist/types/chartType/pivotTable/index.d.ts +2 -1
  61. package/dist/types/chartType/pivotTable/pivotTable.d.ts +44 -60
  62. package/dist/types/chartType/pivotTable/zPivotTable.d.ts +68 -0
  63. package/dist/types/chartType/radar/index.d.ts +2 -1
  64. package/dist/types/chartType/radar/radar.d.ts +0 -119
  65. package/dist/types/chartType/radar/zRadar.d.ts +119 -0
  66. package/dist/types/chartType/rose/index.d.ts +2 -1
  67. package/dist/types/chartType/rose/rose.d.ts +0 -119
  68. package/dist/types/chartType/rose/zRose.d.ts +119 -0
  69. package/dist/types/chartType/roseParallel/index.d.ts +2 -1
  70. package/dist/types/chartType/roseParallel/roseParallel.d.ts +0 -119
  71. package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +119 -0
  72. package/dist/types/chartType/scatter/index.d.ts +2 -1
  73. package/dist/types/chartType/scatter/scatter.d.ts +0 -1191
  74. package/dist/types/chartType/scatter/zScatter.d.ts +1191 -0
  75. package/dist/types/chartType/table/index.d.ts +2 -1
  76. package/dist/types/chartType/table/table.d.ts +45 -64
  77. package/dist/types/chartType/table/zTable.d.ts +68 -0
  78. package/dist/types/dataSelector/selector.d.ts +16 -16
  79. package/dist/types/properties/analysis/analysis.d.ts +1 -1
  80. package/dist/types/properties/analysis/sort.d.ts +2 -4
  81. package/dist/types/properties/analysis/sortLegend.d.ts +2 -3
  82. package/dist/types/properties/annotation/annotation.d.ts +308 -308
  83. package/dist/types/properties/annotation/annotationArea.d.ts +20 -130
  84. package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +31 -138
  85. package/dist/types/properties/annotation/annotationPoint.d.ts +20 -114
  86. package/dist/types/properties/annotation/annotationVerticalLine.d.ts +6 -113
  87. package/dist/types/properties/annotation/index.d.ts +8 -4
  88. package/dist/types/properties/annotation/zAnnotationArea.d.ts +110 -0
  89. package/dist/types/properties/annotation/zAnnotationHorizontalLine.d.ts +107 -0
  90. package/dist/types/properties/annotation/zAnnotationPoint.d.ts +94 -0
  91. package/dist/types/properties/annotation/zAnnotationVerticalLine.d.ts +107 -0
  92. package/dist/types/properties/config/axes/axis.d.ts +45 -45
  93. package/dist/types/properties/config/axes/bandAxis.d.ts +74 -74
  94. package/dist/types/properties/config/axes/linearAxis.d.ts +76 -76
  95. package/dist/types/properties/config/backgroundColor/backgroundColor.d.ts +1 -1
  96. package/dist/types/properties/config/color/color.d.ts +3 -3
  97. package/dist/types/properties/config/config.d.ts +3286 -3282
  98. package/dist/types/properties/config/crosshair/crosshair.d.ts +10 -10
  99. package/dist/types/properties/config/label/label.d.ts +1 -1
  100. package/dist/types/properties/config/legend/legend.d.ts +13 -13
  101. package/dist/types/properties/config/tooltip/tooltip.d.ts +1 -1
  102. package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +2 -2
  103. package/dist/types/properties/encoding/encoding.d.ts +8 -8
  104. package/dist/types/properties/markStyle/areaStyle.d.ts +20 -20
  105. package/dist/types/properties/markStyle/barStyle.d.ts +24 -24
  106. package/dist/types/properties/markStyle/lineStyle.d.ts +24 -24
  107. package/dist/types/properties/markStyle/markStyle.d.ts +194 -194
  108. package/dist/types/properties/markStyle/pointStyle.d.ts +35 -35
  109. package/dist/types/properties/measures/dualMeasures.d.ts +0 -2
  110. package/dist/types/properties/measures/zDualMeasures.d.ts +0 -4
  111. package/dist/types/properties/theme/customTheme.d.ts +3334 -3330
  112. package/dist/types/vseed.d.ts +6781 -6757
  113. package/dist/umd/index.js +1148 -905
  114. package/dist/umd/index.js.map +1 -1
  115. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clone, groupBy, isArray, isEmpty, isNullish, isNumber, isString, mergeDeep, omit, pick, sort, unique } from "remeda";
1
+ import { clone, groupBy, isArray, isEmpty, isNullish, isNumber, isObjectType, isString, merge, mergeDeep, omit, pick, sort, unique } from "remeda";
2
2
  import { z } from "zod";
3
3
  const execPipeline = (pipeline, context, initialValue = {})=>{
4
4
  const result = pipeline.reduce((prev, cur)=>cur(prev, context), initialValue);
@@ -286,6 +286,33 @@ const records_records = (advancedVSeed, context)=>{
286
286
  dataset
287
287
  };
288
288
  };
289
+ const tableConfig_tableConfig = (advancedVSeed, context)=>{
290
+ const { vseed } = context;
291
+ const { chartType } = vseed;
292
+ const result = {
293
+ ...advancedVSeed
294
+ };
295
+ const config = pick(vseed, [
296
+ 'backgroundColor',
297
+ 'bodyFontSize',
298
+ 'bodyFontColor',
299
+ 'bodyBackgroundColor',
300
+ 'headerFontSize',
301
+ 'headerFontColor',
302
+ 'headerBackgroundColor',
303
+ 'hoverHeaderBackgroundColor',
304
+ 'hoverHeaderInlineBackgroundColor',
305
+ 'selectedBorderColor',
306
+ 'selectedBackgroundColor'
307
+ ]);
308
+ result.config = {
309
+ ...result.config || {},
310
+ [chartType]: {
311
+ ...config
312
+ }
313
+ };
314
+ return result;
315
+ };
289
316
  const theme_theme = (advancedVSeed, context)=>{
290
317
  const { customTheme, vseed } = context;
291
318
  const { theme = 'light', chartType } = vseed;
@@ -297,6 +324,10 @@ const theme_theme = (advancedVSeed, context)=>{
297
324
  if (chartConfigTheme) {
298
325
  const chartConfig = result.config?.[chartType] || {};
299
326
  const mergedConfig = mergeDeep(chartConfigTheme, clone(chartConfig));
327
+ for(const _k in mergedConfig){
328
+ const key = _k;
329
+ if (Array.isArray(mergedConfig[key])) mergedConfig[key] = mergeArray(mergedConfig[key], chartConfigTheme[key]);
330
+ }
300
331
  result.config = {
301
332
  [chartType]: mergedConfig
302
333
  };
@@ -309,16 +340,25 @@ const theme_theme = (advancedVSeed, context)=>{
309
340
  };
310
341
  return result;
311
342
  };
343
+ const mergeArray = (arr, themeItem)=>{
344
+ if (isNullish(themeItem) || isString(themeItem) || isNumber(themeItem)) return arr;
345
+ if (!Array.isArray(arr)) return arr;
346
+ if (arr.some((d)=>!isObjectType(d))) return arr;
347
+ return arr.map((item)=>merge(themeItem, item));
348
+ };
312
349
  const tableAdvancedPipeline = [
313
350
  initAdvancedVSeed,
314
351
  autoMeasures,
315
352
  autoDimensions,
316
353
  records_records,
354
+ tableConfig_tableConfig,
317
355
  theme_theme
318
356
  ];
319
357
  const initTable = (spec, context)=>{
320
358
  const { advancedVSeed } = context;
321
359
  const { dataset } = advancedVSeed;
360
+ const { config } = advancedVSeed;
361
+ const { backgroundColor = 'transparent' } = config.table || {};
322
362
  return {
323
363
  ...spec,
324
364
  records: dataset,
@@ -340,23 +380,26 @@ const initTable = (spec, context)=>{
340
380
  highlightMode: 'row'
341
381
  },
342
382
  theme: {
343
- underlayBackgroundColor: 'transparent'
383
+ underlayBackgroundColor: backgroundColor
344
384
  }
345
385
  };
346
386
  };
347
- const measureTreeToColumns = (spec, context)=>{
387
+ const isMeasure = (measure)=>!('children' in measure);
388
+ const isMeasureGroup = (measure)=>'children' in measure;
389
+ const isMeasures = (measures)=>measures.every(isMeasure);
390
+ const dimensionTreeToColumns = (spec, context)=>{
348
391
  const { advancedVSeed } = context;
349
- const measures = advancedVSeed.measures;
392
+ const dimensions = advancedVSeed.dimensions;
350
393
  const result = {
351
394
  ...spec
352
395
  };
353
396
  const eachNode = (node)=>{
354
- if ('children' in node) return {};
355
- return {
397
+ if (isMeasure(node)) return {
356
398
  width: 'auto'
357
399
  };
400
+ return {};
358
401
  };
359
- const columns = treeTreeToColumns(measures, eachNode);
402
+ const columns = treeTreeToColumns(dimensions, eachNode);
360
403
  return {
361
404
  ...result,
362
405
  columns: [
@@ -365,19 +408,106 @@ const measureTreeToColumns = (spec, context)=>{
365
408
  ]
366
409
  };
367
410
  };
368
- const dimensionTreeToColumns = (spec, context)=>{
411
+ const treeTreeToColumns = (tree, callback)=>{
412
+ const result = tree.map((item)=>{
413
+ if ('children' in item && Array.isArray(item.children)) {
414
+ const groupNode = item;
415
+ const field = groupNode.id;
416
+ const title = groupNode.alias ?? groupNode.id;
417
+ const props = callback?.(groupNode) || {};
418
+ return {
419
+ field,
420
+ title,
421
+ columns: treeTreeToColumns(item.children, callback),
422
+ ...props
423
+ };
424
+ }
425
+ {
426
+ const field = item.id;
427
+ const title = item.alias ?? item.id;
428
+ const props = callback?.(item) || {};
429
+ return {
430
+ field,
431
+ title,
432
+ ...props
433
+ };
434
+ }
435
+ });
436
+ return result || [];
437
+ };
438
+ const createNumFormatter = (format, locale = intl.getLocale())=>{
439
+ const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
440
+ const numFormatterOptions = {
441
+ style: 'decimal',
442
+ notation: 'scientific' === type ? 'scientific' : 'standard',
443
+ roundingMode,
444
+ roundingPriority
445
+ };
446
+ if (isNumber(fractionDigits)) {
447
+ if (fractionDigits >= 0) {
448
+ numFormatterOptions.minimumFractionDigits = fractionDigits;
449
+ numFormatterOptions.maximumFractionDigits = fractionDigits;
450
+ }
451
+ }
452
+ if (isNumber(significantDigits) && significantDigits > 0) {
453
+ if (significantDigits > 0) {
454
+ numFormatterOptions.minimumSignificantDigits = significantDigits;
455
+ numFormatterOptions.maximumSignificantDigits = significantDigits;
456
+ }
457
+ }
458
+ const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
459
+ return (value)=>{
460
+ let num = Number(value);
461
+ let typeSymbol = '';
462
+ if (Number.isNaN(num)) return String(value);
463
+ if ('percent' === type) {
464
+ num *= 100;
465
+ typeSymbol = '%';
466
+ } else if ('permille' === type) {
467
+ num *= 1000;
468
+ typeSymbol = "\u2030";
469
+ } else if ('number' === type) num /= ratio || 1;
470
+ let numStr = numFormatter.format(num);
471
+ if (thousandSeparator) {
472
+ const parts = numStr.split('.');
473
+ parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
474
+ numStr = parts.join('.');
475
+ }
476
+ return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
477
+ };
478
+ };
479
+ const autoNumFormatter = (value, locale = intl.getLocale())=>{
480
+ if (null == value) return String(value);
481
+ const num = Number(value);
482
+ if (Number.isNaN(num)) return String(value);
483
+ const numFormatterOptions = {
484
+ style: 'decimal',
485
+ notation: 'compact'
486
+ };
487
+ numFormatterOptions.minimumFractionDigits = 0;
488
+ numFormatterOptions.maximumFractionDigits = 2;
489
+ const numFormatter = new Intl.NumberFormat(locale, {
490
+ ...numFormatterOptions
491
+ });
492
+ return numFormatter.format(Number(value));
493
+ };
494
+ const createFormatter = (format)=>createNumFormatter(format);
495
+ const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
496
+ const measureTreeToColumns = (spec, context)=>{
369
497
  const { advancedVSeed } = context;
370
- const dimensions = advancedVSeed.dimensions;
498
+ const { locale } = advancedVSeed;
499
+ const measures = advancedVSeed.measures;
371
500
  const result = {
372
501
  ...spec
373
502
  };
374
503
  const eachNode = (node)=>{
375
- if ('children' in node) return {};
376
- return {
377
- width: 'auto'
504
+ if (isMeasure(node)) return {
505
+ width: 'auto',
506
+ fieldFormat: fieldFormat(node, locale)
378
507
  };
508
+ return {};
379
509
  };
380
- const columns = treeTreeToColumns(dimensions, eachNode);
510
+ const columns = measuresToColumns_treeTreeToColumns(measures, eachNode);
381
511
  return {
382
512
  ...result,
383
513
  columns: [
@@ -386,7 +516,16 @@ const dimensionTreeToColumns = (spec, context)=>{
386
516
  ]
387
517
  };
388
518
  };
389
- const treeTreeToColumns = (tree, callback)=>{
519
+ const fieldFormat = (node, locale)=>(datum)=>{
520
+ const { format = {}, autoFormat = true, id } = node;
521
+ const value = datum[id];
522
+ if (!isEmpty(format)) {
523
+ const formatter = createFormatter(format);
524
+ return formatter(value);
525
+ }
526
+ if (autoFormat) return autoFormatter(value, locale);
527
+ };
528
+ const measuresToColumns_treeTreeToColumns = (tree, callback)=>{
390
529
  const result = tree.map((item)=>{
391
530
  if ('children' in item && Array.isArray(item.children)) {
392
531
  const groupNode = item;
@@ -396,7 +535,7 @@ const treeTreeToColumns = (tree, callback)=>{
396
535
  return {
397
536
  field,
398
537
  title,
399
- columns: treeTreeToColumns(item.children, callback),
538
+ columns: measuresToColumns_treeTreeToColumns(item.children, callback),
400
539
  ...props
401
540
  };
402
541
  }
@@ -418,8 +557,8 @@ const bodyStyle = (spec, context)=>{
418
557
  ...spec
419
558
  };
420
559
  const { advancedVSeed } = context;
421
- const { customTheme, chartType } = advancedVSeed;
422
- const themeConfig = customTheme?.config?.[chartType];
560
+ const { chartType, config } = advancedVSeed;
561
+ const themeConfig = config?.[chartType];
423
562
  if (!result.theme || !themeConfig) return result;
424
563
  const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)';
425
564
  const backgroundColor = themeConfig.bodyBackgroundColor || '#fff';
@@ -457,8 +596,8 @@ const headerStyle = (spec, context)=>{
457
596
  ...spec
458
597
  };
459
598
  const { advancedVSeed } = context;
460
- const { customTheme, chartType } = advancedVSeed;
461
- const themConfig = customTheme?.config?.[chartType];
599
+ const { config, chartType } = advancedVSeed;
600
+ const themConfig = config?.[chartType];
462
601
  if (!result.theme || !themConfig) return result;
463
602
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
464
603
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -505,8 +644,8 @@ const frameStyle = (spec, context)=>{
505
644
  ...spec
506
645
  };
507
646
  const { advancedVSeed } = context;
508
- const { customTheme, chartType } = advancedVSeed;
509
- const themConfig = customTheme?.config?.[chartType];
647
+ const { config, chartType } = advancedVSeed;
648
+ const themConfig = config?.[chartType];
510
649
  if (!result.theme || !themConfig) return result;
511
650
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
512
651
  result.theme.frameStyle = {
@@ -521,8 +660,8 @@ const selectionStyle = (spec, context)=>{
521
660
  ...spec
522
661
  };
523
662
  const { advancedVSeed } = context;
524
- const { customTheme, chartType } = advancedVSeed;
525
- const themConfig = customTheme?.config?.[chartType];
663
+ const { config, chartType } = advancedVSeed;
664
+ const themConfig = config?.[chartType];
526
665
  if (!result.theme || !themConfig) return result;
527
666
  const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
528
667
  const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)';
@@ -646,16 +785,46 @@ const autoPivotDimensions = (advancedVSeed, context)=>{
646
785
  }));
647
786
  return result;
648
787
  };
788
+ const pivotTableConfig = (advancedVSeed, context)=>{
789
+ const { vseed } = context;
790
+ const { chartType } = vseed;
791
+ const result = {
792
+ ...advancedVSeed
793
+ };
794
+ const config = pick(vseed, [
795
+ 'backgroundColor',
796
+ 'bodyFontSize',
797
+ 'bodyFontColor',
798
+ 'bodyBackgroundColor',
799
+ 'headerFontSize',
800
+ 'headerFontColor',
801
+ 'headerBackgroundColor',
802
+ 'hoverHeaderBackgroundColor',
803
+ 'hoverHeaderInlineBackgroundColor',
804
+ 'selectedBorderColor',
805
+ 'selectedBackgroundColor'
806
+ ]);
807
+ result.config = {
808
+ ...result.config || {},
809
+ [chartType]: {
810
+ ...config
811
+ }
812
+ };
813
+ return result;
814
+ };
649
815
  const pivotTableAdvancedPipeline = [
650
816
  initAdvancedVSeed,
651
817
  autoPivotMeasures,
652
818
  autoPivotDimensions,
653
819
  records_records,
820
+ pivotTableConfig,
654
821
  theme_theme
655
822
  ];
656
823
  const initPivotTable = (spec, context)=>{
657
824
  const { advancedVSeed } = context;
658
825
  const { dataset } = advancedVSeed;
826
+ const { config } = advancedVSeed;
827
+ const { backgroundColor = 'transparent' } = config.pivotTable || {};
659
828
  return {
660
829
  ...spec,
661
830
  records: dataset,
@@ -684,7 +853,7 @@ const initPivotTable = (spec, context)=>{
684
853
  direction: 'row'
685
854
  },
686
855
  theme: {
687
- underlayBackgroundColor: 'transparent'
856
+ underlayBackgroundColor: backgroundColor
688
857
  }
689
858
  };
690
859
  };
@@ -716,26 +885,39 @@ const pivotRows = (spec, context)=>{
716
885
  };
717
886
  const pivotIndicators = (spec, context)=>{
718
887
  const { advancedVSeed } = context;
888
+ const { locale } = advancedVSeed;
719
889
  const measures = advancedVSeed.measures;
720
890
  return {
721
891
  ...spec,
722
892
  indicatorsAsCol: true,
723
893
  indicatorTitle: intl.i18n`指标名称`,
724
- indicators: measures.map((item)=>({
894
+ indicators: measures.map((item)=>{
895
+ if (isMeasure(item)) return {
725
896
  cellType: 'text',
726
897
  indicatorKey: item.id,
727
898
  title: item.alias || item.id,
728
- width: 'auto'
729
- }))
899
+ width: 'auto',
900
+ format: pivotIndicators_fieldFormat(item, locale)
901
+ };
902
+ return {};
903
+ })
730
904
  };
731
905
  };
906
+ const pivotIndicators_fieldFormat = (node, locale)=>(value)=>{
907
+ const { format = {}, autoFormat = true } = node;
908
+ if (!isEmpty(format)) {
909
+ const formatter = createFormatter(format);
910
+ return formatter(value);
911
+ }
912
+ if (autoFormat) return autoFormatter(value, locale);
913
+ };
732
914
  const rowHeaderStyle = (spec, context)=>{
733
915
  const result = {
734
916
  ...spec
735
917
  };
736
918
  const { advancedVSeed } = context;
737
- const { customTheme, chartType } = advancedVSeed;
738
- const themConfig = customTheme?.config?.[chartType];
919
+ const { config, chartType } = advancedVSeed;
920
+ const themConfig = config?.[chartType];
739
921
  if (!result.theme || !themConfig) return result;
740
922
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
741
923
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -782,8 +964,8 @@ const cornerHeaderStyle = (spec, context)=>{
782
964
  ...spec
783
965
  };
784
966
  const { advancedVSeed } = context;
785
- const { customTheme, chartType } = advancedVSeed;
786
- const themConfig = customTheme?.config?.[chartType];
967
+ const { config, chartType } = advancedVSeed;
968
+ const themConfig = config?.[chartType];
787
969
  if (!result.theme || !themConfig) return result;
788
970
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
789
971
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -805,9 +987,9 @@ const cornerHeaderStyle = (spec, context)=>{
805
987
  ],
806
988
  textAlign: 'left',
807
989
  hover: {
808
- cellBgColor: hoverCellColor,
809
- inlineRowBgColor: hoverInlineColor,
810
- inlineColumnBgColor: hoverInlineColor
990
+ cellBgColor: hoverCellColor || void 0,
991
+ inlineRowBgColor: hoverInlineColor || void 0,
992
+ inlineColumnBgColor: hoverInlineColor || void 0
811
993
  },
812
994
  frameStyle: {
813
995
  borderColor: [
@@ -828,6 +1010,29 @@ const cornerHeaderStyle = (spec, context)=>{
828
1010
  };
829
1011
  return result;
830
1012
  };
1013
+ var new_data_set_AggregationType;
1014
+ !function(AggregationType) {
1015
+ 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";
1016
+ }(new_data_set_AggregationType || (new_data_set_AggregationType = {}));
1017
+ var new_data_set_SortType;
1018
+ !function(SortType) {
1019
+ SortType.ASC = "ASC", SortType.DESC = "DESC", SortType.NORMAL = "NORMAL", SortType.desc = "desc", SortType.asc = "asc", SortType.normal = "normal";
1020
+ }(new_data_set_SortType || (new_data_set_SortType = {}));
1021
+ const dataConfig = (spec, context)=>{
1022
+ const { advancedVSeed } = context;
1023
+ const measures = findAllMeasures(advancedVSeed.measures);
1024
+ const aggregationRules = measures.map((measure)=>({
1025
+ field: measure.id,
1026
+ aggregationType: new_data_set_AggregationType.NONE,
1027
+ indicatorKey: measure.id
1028
+ }));
1029
+ return {
1030
+ ...spec,
1031
+ dataConfig: {
1032
+ aggregationRules
1033
+ }
1034
+ };
1035
+ };
831
1036
  const pivotTableSpecPipeline = [
832
1037
  initPivotTable,
833
1038
  pivotColumns,
@@ -838,7 +1043,8 @@ const pivotTableSpecPipeline = [
838
1043
  rowHeaderStyle,
839
1044
  cornerHeaderStyle,
840
1045
  frameStyle,
841
- selectionStyle
1046
+ selectionStyle,
1047
+ dataConfig
842
1048
  ];
843
1049
  const registerPivotTable = ()=>{
844
1050
  Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
@@ -1533,7 +1739,7 @@ const background_backgroundColor = (spec, context)=>{
1533
1739
  const datasetXY = (spec, context)=>{
1534
1740
  const { advancedVSeed, vseed } = context;
1535
1741
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
1536
- const { orderMapping = {} } = analysis ?? {};
1742
+ const orderMapping = analysis?.orderMapping || {};
1537
1743
  const angle = encoding[0]?.angle?.[0];
1538
1744
  const x = encoding[0]?.x?.[0];
1539
1745
  const group = encoding[0]?.group?.[0];
@@ -1578,7 +1784,7 @@ const progressive = (spec, context)=>{
1578
1784
  ...spec
1579
1785
  };
1580
1786
  const { advancedVSeed } = context;
1581
- const { dataset } = advancedVSeed;
1787
+ const { dataset = [] } = advancedVSeed;
1582
1788
  const size = dataset.length;
1583
1789
  if (size < 5000) return result;
1584
1790
  result.large = true;
@@ -1683,64 +1889,6 @@ const xBand = (spec, context)=>{
1683
1889
  };
1684
1890
  const ANNOTATION_Z_INDEX = 1000;
1685
1891
  const LINEAR_AXIS_INNER_OFFSET_TOP = 7;
1686
- const createNumFormatter = (format, locale = intl.getLocale())=>{
1687
- const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
1688
- const numFormatterOptions = {
1689
- style: 'decimal',
1690
- notation: 'scientific' === type ? 'scientific' : 'standard',
1691
- roundingMode,
1692
- roundingPriority
1693
- };
1694
- if (isNumber(fractionDigits)) {
1695
- if (fractionDigits >= 0) {
1696
- numFormatterOptions.minimumFractionDigits = fractionDigits;
1697
- numFormatterOptions.maximumFractionDigits = fractionDigits;
1698
- }
1699
- }
1700
- if (isNumber(significantDigits) && significantDigits > 0) {
1701
- if (significantDigits > 0) {
1702
- numFormatterOptions.minimumSignificantDigits = significantDigits;
1703
- numFormatterOptions.maximumSignificantDigits = significantDigits;
1704
- }
1705
- }
1706
- const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
1707
- return (value)=>{
1708
- let num = Number(value);
1709
- let typeSymbol = '';
1710
- if (Number.isNaN(num)) return num.toString();
1711
- if ('percent' === type) {
1712
- num *= 100;
1713
- typeSymbol = '%';
1714
- } else if ('permille' === type) {
1715
- num *= 1000;
1716
- typeSymbol = "\u2030";
1717
- } else if ('number' === type) num /= ratio || 1;
1718
- let numStr = numFormatter.format(num);
1719
- if (thousandSeparator) {
1720
- const parts = numStr.split('.');
1721
- parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
1722
- numStr = parts.join('.');
1723
- }
1724
- return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
1725
- };
1726
- };
1727
- const autoNumFormatter = (value, locale = intl.getLocale())=>{
1728
- if (null == value) return String(value);
1729
- const num = Number(value);
1730
- if (Number.isNaN(num)) return String(value);
1731
- const numFormatterOptions = {
1732
- style: 'decimal',
1733
- notation: 'compact'
1734
- };
1735
- numFormatterOptions.minimumFractionDigits = 0;
1736
- numFormatterOptions.maximumFractionDigits = 2;
1737
- const numFormatter = new Intl.NumberFormat(locale, {
1738
- ...numFormatterOptions
1739
- });
1740
- return numFormatter.format(Number(value));
1741
- };
1742
- const createFormatter = (format)=>createNumFormatter(format);
1743
- const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
1744
1892
  const yLinear = (spec, context)=>{
1745
1893
  const result = {
1746
1894
  ...spec
@@ -1943,7 +2091,11 @@ const verticalCrosshairLine = (spec, context)=>{
1943
2091
  const config = advancedVSeed.config?.[chartType]?.crosshairLine;
1944
2092
  if (!config) return result;
1945
2093
  if (!result.crosshair) result.crosshair = {};
1946
- const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
2094
+ const visible = config.visible || true;
2095
+ const lineColor = config.lineColor || void 0;
2096
+ const labelColor = config.labelColor || void 0;
2097
+ const labelVisible = config.labelVisible || void 0;
2098
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
1947
2099
  const crosshair = result.crosshair;
1948
2100
  crosshair.xField = {
1949
2101
  visible,
@@ -2333,7 +2485,7 @@ const annotationPoint_annotationPoint = (spec, context)=>{
2333
2485
  annotationPoint
2334
2486
  ];
2335
2487
  const markPoint = annotationPointList.flatMap((annotationPoint)=>{
2336
- 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;
2488
+ 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;
2337
2489
  const dataset = advancedVSeed.dataset.flat();
2338
2490
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
2339
2491
  return selectedData.map((datum)=>({
@@ -2362,20 +2514,20 @@ const annotationPoint_annotationPoint = (spec, context)=>{
2362
2514
  textAlign: textAlign,
2363
2515
  textBaseline: textBaseline,
2364
2516
  fill: textColor,
2365
- stroke: backgroundColor,
2517
+ stroke: textBackgroundColor,
2366
2518
  lineWidth: 1,
2367
2519
  fontSize: textFontSize,
2368
2520
  fontWeight: textFontWeight,
2369
2521
  dy: textFontSize
2370
2522
  },
2371
2523
  labelBackground: {
2372
- visible: backgroundVisible,
2373
- padding: backgroundPadding,
2524
+ visible: textBackgroundVisible,
2525
+ padding: textBackgroundPadding,
2374
2526
  style: {
2375
- cornerRadius: backgroundBorderRadius ?? 4,
2376
- fill: backgroundColor,
2377
- stroke: backgroundBorderColor,
2378
- lineWidth: backgroundBorderWidth,
2527
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2528
+ fill: textBackgroundColor,
2529
+ stroke: textBackgroundBorderColor,
2530
+ lineWidth: textBackgroundBorderWidth,
2379
2531
  dy: textFontSize
2380
2532
  }
2381
2533
  }
@@ -2405,7 +2557,7 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2405
2557
  insideEnd: 'insideEndTop'
2406
2558
  };
2407
2559
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2408
- 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;
2560
+ const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', textBackgroundVisible = true, textBackgroundBorderColor = '#212121', textBackgroundColor = '#212121', textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundPadding = 2, lineVisible = true, lineColor = '#212121', lineWidth = 1, lineStyle = 'dashed', offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2409
2561
  const dataset = advancedVSeed.dataset.flat();
2410
2562
  const generateOneMarkLine = (x)=>({
2411
2563
  x: x,
@@ -2431,10 +2583,10 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2431
2583
  },
2432
2584
  label: {
2433
2585
  text: text,
2434
- position: positionMap[textPosition],
2586
+ position: positionMap[textPosition || 'insideEnd'],
2435
2587
  style: {
2436
2588
  visible: true,
2437
- stroke: backgroundColor,
2589
+ stroke: textBackgroundColor,
2438
2590
  lineWidth: 1,
2439
2591
  textAlign: textAlign,
2440
2592
  textBaseline: textBaseline,
@@ -2444,20 +2596,20 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2444
2596
  dy: textFontSize
2445
2597
  },
2446
2598
  labelBackground: {
2447
- visible: backgroundVisible,
2448
- padding: backgroundPadding,
2599
+ visible: textBackgroundVisible,
2600
+ padding: textBackgroundPadding,
2449
2601
  style: {
2450
2602
  dy: textFontSize,
2451
- cornerRadius: backgroundBorderRadius ?? 4,
2452
- fill: backgroundColor,
2453
- stroke: backgroundBorderColor,
2454
- lineWidth: backgroundBorderWidth
2603
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2604
+ fill: textBackgroundColor,
2605
+ stroke: textBackgroundBorderColor,
2606
+ lineWidth: textBackgroundBorderWidth
2455
2607
  }
2456
2608
  }
2457
2609
  },
2458
2610
  endSymbol: {
2459
2611
  visible: true,
2460
- size: 10 + lineWidth,
2612
+ size: 10 + (lineWidth || 1),
2461
2613
  style: {
2462
2614
  dy: 4,
2463
2615
  fill: lineColor
@@ -2504,7 +2656,7 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2504
2656
  insideEnd: 'insideEndTop'
2505
2657
  };
2506
2658
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2507
- 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;
2659
+ const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, textBackgroundVisible = true, textBackgroundColor = '#212121', textBackgroundBorderColor = '#212121', textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundPadding = 2, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2508
2660
  const dataset = advancedVSeed.dataset.flat();
2509
2661
  const generateOneMarkLine = (y)=>({
2510
2662
  y,
@@ -2530,11 +2682,11 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2530
2682
  },
2531
2683
  label: {
2532
2684
  text: text,
2533
- position: positionMap[textPosition],
2685
+ position: positionMap[textPosition || 'insideEnd'],
2534
2686
  style: {
2535
2687
  visible: true,
2536
2688
  dy: textFontSize,
2537
- stroke: backgroundColor,
2689
+ stroke: textBackgroundColor,
2538
2690
  lineWidth: 1,
2539
2691
  textAlign: textAlign,
2540
2692
  textBaseline: textBaseline,
@@ -2543,20 +2695,20 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2543
2695
  fontWeight: textFontWeight
2544
2696
  },
2545
2697
  labelBackground: {
2546
- visible: backgroundVisible,
2547
- padding: backgroundPadding,
2698
+ visible: textBackgroundVisible,
2699
+ padding: textBackgroundPadding,
2548
2700
  style: {
2549
2701
  dy: textFontSize,
2550
- cornerRadius: backgroundBorderRadius ?? 4,
2551
- fill: backgroundColor,
2552
- stroke: backgroundBorderColor,
2553
- lineWidth: backgroundBorderWidth
2702
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2703
+ fill: textBackgroundColor,
2704
+ stroke: textBackgroundBorderColor,
2705
+ lineWidth: textBackgroundBorderWidth
2554
2706
  }
2555
2707
  }
2556
2708
  },
2557
2709
  endSymbol: {
2558
2710
  visible: true,
2559
- size: 10 + lineWidth,
2711
+ size: 10 + (lineWidth || 1),
2560
2712
  style: {
2561
2713
  dx: -4,
2562
2714
  fill: lineColor
@@ -2605,9 +2757,11 @@ const annotationArea_annotationArea = (spec, context)=>{
2605
2757
  right: 'insideRight'
2606
2758
  };
2607
2759
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
2608
- 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;
2760
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = true, textBackgroundColor = '#191d24', textBackgroundBorderColor = '#191d24', textBackgroundBorderWidth = 1, textBackgroundBorderRadius = 4, textBackgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
2609
2761
  const dataset = advancedVSeed.dataset.flat();
2610
2762
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
2763
+ const labelPosition = positionMap[textPosition || 'top'];
2764
+ const isBottom = labelPosition.toLocaleLowerCase().includes('bottom');
2611
2765
  return {
2612
2766
  zIndex: ANNOTATION_Z_INDEX,
2613
2767
  regionRelative: true,
@@ -2620,8 +2774,8 @@ const annotationArea_annotationArea = (spec, context)=>{
2620
2774
  const xAxisHelper = context.getXAxisHelper();
2621
2775
  if ('function' == typeof xAxisHelper?.getBandwidth) {
2622
2776
  const yScale = yAxisHelper.getScale();
2623
- const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
2624
- const maxX = Math.max(...xyList.map((item)=>item.x)) + outerPadding;
2777
+ const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
2778
+ const maxX = Math.max(...xyList.map((item)=>item.x)) + (outerPadding || 4);
2625
2779
  const minY = Math.min(...yScale.range());
2626
2780
  const maxY = Math.max(...yScale.range());
2627
2781
  return [
@@ -2645,8 +2799,8 @@ const annotationArea_annotationArea = (spec, context)=>{
2645
2799
  }
2646
2800
  if ('function' == typeof yAxisHelper?.getBandwidth) {
2647
2801
  const xScale = xAxisHelper.getScale();
2648
- const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
2649
- const maxY = Math.max(...xyList.map((item)=>item.y)) + outerPadding;
2802
+ const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
2803
+ const maxY = Math.max(...xyList.map((item)=>item.y)) + (outerPadding || 4);
2650
2804
  const minX = Math.min(...xScale.range());
2651
2805
  const maxX = Math.max(...xScale.range());
2652
2806
  return [
@@ -2671,28 +2825,28 @@ const annotationArea_annotationArea = (spec, context)=>{
2671
2825
  return [];
2672
2826
  },
2673
2827
  label: {
2674
- position: positionMap[textPosition],
2828
+ position: labelPosition,
2675
2829
  visible: true,
2676
2830
  text: text,
2677
2831
  style: {
2678
- dy: textFontSize,
2832
+ dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
2679
2833
  textAlign: textAlign,
2680
2834
  textBaseline: textBaseline,
2681
2835
  fill: textColor,
2682
- stroke: backgroundColor,
2836
+ stroke: textBackgroundColor,
2683
2837
  lineWidth: 1,
2684
2838
  fontSize: textFontSize,
2685
2839
  fontWeight: textFontWeight
2686
2840
  },
2687
2841
  labelBackground: {
2688
- visible: backgroundVisible,
2689
- padding: backgroundPadding,
2842
+ visible: textBackgroundVisible,
2843
+ padding: textBackgroundPadding,
2690
2844
  style: {
2691
- dy: textFontSize,
2692
- cornerRadius: backgroundBorderRadius ?? 4,
2693
- fill: backgroundColor,
2694
- stroke: backgroundBorderColor,
2695
- lineWidth: backgroundBorderWidth
2845
+ dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
2846
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2847
+ fill: textBackgroundColor,
2848
+ stroke: textBackgroundBorderColor,
2849
+ lineWidth: textBackgroundBorderWidth
2696
2850
  }
2697
2851
  }
2698
2852
  },
@@ -3334,7 +3488,11 @@ const verticalCrosshairRect = (spec, context)=>{
3334
3488
  const config = advancedVSeed.config?.[chartType]?.crosshairRect;
3335
3489
  if (!config) return result;
3336
3490
  if (!result.crosshair) result.crosshair = {};
3337
- const { visible = true, rectColor, labelColor, labelVisible, labelBackgroundColor } = config;
3491
+ const visible = config.visible || true;
3492
+ const rectColor = config.rectColor || void 0;
3493
+ const labelColor = config.labelColor || void 0;
3494
+ const labelVisible = config.labelVisible || false;
3495
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
3338
3496
  const crosshair = result.crosshair;
3339
3497
  crosshair.xField = {
3340
3498
  visible,
@@ -3363,14 +3521,13 @@ const verticalCrosshairRect = (spec, context)=>{
3363
3521
  };
3364
3522
  const barStyle_barStyle = (spec, context)=>{
3365
3523
  const { advancedVSeed } = context;
3366
- const { markStyle, dataset } = advancedVSeed;
3524
+ const { markStyle, dataset = [] } = advancedVSeed;
3367
3525
  const { barStyle } = markStyle;
3368
3526
  const showStroke = dataset.length <= 100;
3369
3527
  const result = {
3370
3528
  ...spec,
3371
3529
  bar: {
3372
3530
  style: {
3373
- stroke: '#fff',
3374
3531
  lineWidth: showStroke ? 1 : 0
3375
3532
  },
3376
3533
  state: {
@@ -3446,7 +3603,7 @@ const annotationAreaBand = (spec, context)=>{
3446
3603
  right: 'insideRight'
3447
3604
  };
3448
3605
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
3449
- 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;
3606
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = true, textBackgroundColor = '#191d24', textBackgroundBorderColor = '#191d24', textBackgroundBorderWidth = 1, textBackgroundBorderRadius = 4, textBackgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
3450
3607
  const dataset = advancedVSeed.dataset.flat();
3451
3608
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3452
3609
  return {
@@ -3463,8 +3620,8 @@ const annotationAreaBand = (spec, context)=>{
3463
3620
  const depth = context.fieldX.length ?? 0;
3464
3621
  const xBandWidth = xAxisHelper?.getBandwidth?.(depth - 1);
3465
3622
  const yScale = yAxisHelper.getScale();
3466
- const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
3467
- const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + outerPadding;
3623
+ const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
3624
+ const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + (outerPadding || 4);
3468
3625
  const minY = Math.min(...yScale.range());
3469
3626
  const maxY = Math.max(...yScale.range());
3470
3627
  return [
@@ -3490,8 +3647,8 @@ const annotationAreaBand = (spec, context)=>{
3490
3647
  const depth = context.fieldY.length ?? 0;
3491
3648
  const yBandWidth = yAxisHelper?.getBandwidth?.(depth - 1);
3492
3649
  const xScale = xAxisHelper.getScale();
3493
- const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
3494
- const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + outerPadding;
3650
+ const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
3651
+ const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + (outerPadding || 4);
3495
3652
  const minX = Math.min(...xScale.range());
3496
3653
  const maxX = Math.max(...xScale.range());
3497
3654
  return [
@@ -3516,28 +3673,28 @@ const annotationAreaBand = (spec, context)=>{
3516
3673
  return [];
3517
3674
  },
3518
3675
  label: {
3519
- position: positionMap[textPosition],
3676
+ position: positionMap[textPosition || 'top'],
3520
3677
  visible: true,
3521
3678
  text: text,
3522
3679
  style: {
3523
3680
  dy: textFontSize,
3524
3681
  textAlign: textAlign,
3525
3682
  textBaseline: textBaseline,
3526
- stroke: backgroundColor,
3683
+ stroke: textBackgroundColor,
3527
3684
  lineWidth: 1,
3528
3685
  fill: textColor,
3529
3686
  fontSize: textFontSize,
3530
3687
  fontWeight: textFontWeight
3531
3688
  },
3532
3689
  labelBackground: {
3533
- visible: backgroundVisible,
3534
- padding: backgroundPadding,
3690
+ visible: textBackgroundVisible,
3691
+ padding: textBackgroundPadding,
3535
3692
  style: {
3536
3693
  dy: textFontSize,
3537
- cornerRadius: backgroundBorderRadius ?? 4,
3538
- fill: backgroundColor,
3539
- stroke: backgroundBorderColor,
3540
- lineWidth: backgroundBorderWidth
3694
+ cornerRadius: textBackgroundBorderRadius ?? 4,
3695
+ fill: textBackgroundColor,
3696
+ stroke: textBackgroundBorderColor,
3697
+ lineWidth: textBackgroundBorderWidth
3541
3698
  }
3542
3699
  }
3543
3700
  },
@@ -3867,7 +4024,7 @@ const initBar = (spec, context)=>{
3867
4024
  const datasetYX = (spec, context)=>{
3868
4025
  const { advancedVSeed, vseed } = context;
3869
4026
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
3870
- const { orderMapping = {} } = analysis ?? {};
4027
+ const orderMapping = analysis?.orderMapping || {};
3871
4028
  const angle = encoding[0]?.angle?.[0];
3872
4029
  const y = encoding[0]?.y?.[0];
3873
4030
  const group = encoding[0]?.group?.[0];
@@ -4020,7 +4177,7 @@ const yBand = (spec, context)=>{
4020
4177
  label: {
4021
4178
  visible: label?.visible,
4022
4179
  flush: true,
4023
- containerAlign: 'left',
4180
+ containerAlign: 'right',
4024
4181
  space: 8,
4025
4182
  style: {
4026
4183
  maxLineWidth: labelAutoLimitLength,
@@ -4093,7 +4250,11 @@ const horizontalCrosshairRect = (spec, context)=>{
4093
4250
  const config = advancedVSeed.config?.[chartType]?.crosshairRect;
4094
4251
  if (!config) return result;
4095
4252
  if (!result.crosshair) result.crosshair = {};
4096
- const { visible = true, rectColor, labelColor, labelVisible, labelBackgroundColor } = config;
4253
+ const visible = config.visible || true;
4254
+ const rectColor = config.rectColor || void 0;
4255
+ const labelColor = config.labelColor || void 0;
4256
+ const labelVisible = config.labelVisible || false;
4257
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
4097
4258
  const crosshair = result.crosshair;
4098
4259
  crosshair.yField = {
4099
4260
  visible,
@@ -4812,6 +4973,35 @@ const series = (...args)=>{
4812
4973
  return result;
4813
4974
  };
4814
4975
  };
4976
+ const seriesDualAxis = (...args)=>{
4977
+ const result = {
4978
+ type: 'common',
4979
+ padding: 0,
4980
+ region: [
4981
+ {
4982
+ clip: true
4983
+ }
4984
+ ]
4985
+ };
4986
+ const createDualContext = (context, index)=>{
4987
+ const { advancedVSeed } = context;
4988
+ const dataset = advancedVSeed.dataset[index];
4989
+ return {
4990
+ ...context,
4991
+ advancedVSeed: {
4992
+ ...advancedVSeed,
4993
+ dataset: dataset
4994
+ }
4995
+ };
4996
+ };
4997
+ return (_, context)=>{
4998
+ result.series = args.map((pipeline, index)=>{
4999
+ const seriesContext = createDualContext(context, index);
5000
+ return execPipeline(pipeline, seriesContext, {});
5001
+ });
5002
+ return result;
5003
+ };
5004
+ };
4815
5005
  const initAreaRange = (spec, context)=>{
4816
5006
  const result = {
4817
5007
  ...spec
@@ -5241,7 +5431,11 @@ const horizontalCrosshairLine = (spec, context)=>{
5241
5431
  const config = advancedVSeed.config?.[chartType]?.crosshairLine;
5242
5432
  if (!config) return result;
5243
5433
  if (!result.crosshair) result.crosshair = {};
5244
- const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
5434
+ const visible = config.visible || true;
5435
+ const lineColor = config.lineColor || void 0;
5436
+ const labelColor = config.labelColor || void 0;
5437
+ const labelVisible = config.labelVisible || void 0;
5438
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
5245
5439
  const crosshair = result.crosshair;
5246
5440
  crosshair.yField = {
5247
5441
  visible,
@@ -5556,15 +5750,18 @@ const autoDualMeasures = (advancedVSeed, context)=>{
5556
5750
  };
5557
5751
  const dualMeasuresToMeasureTree = (dualMeasures)=>{
5558
5752
  const measureTree = dualMeasures.map((item, index)=>{
5559
- const { primaryMeasures, secondaryMeasures, primaryAlias, secondaryAlias } = item;
5753
+ const { primaryMeasures, secondaryMeasures } = item;
5560
5754
  const groupChildren = [];
5755
+ let id = '';
5561
5756
  if (primaryMeasures) {
5562
5757
  const arrPrimaryMeasures = Array.isArray(primaryMeasures) ? primaryMeasures : [
5563
5758
  primaryMeasures
5564
5759
  ];
5760
+ const alias = arrPrimaryMeasures.map((item)=>item.alias || item.id).toString();
5761
+ id += alias;
5565
5762
  groupChildren.push({
5566
5763
  id: `${index}-primary`,
5567
- alias: primaryAlias || arrPrimaryMeasures.map((item)=>item.alias || item.id).toString(),
5764
+ alias: arrPrimaryMeasures.map((item)=>item.alias || item.id).toString(),
5568
5765
  children: arrPrimaryMeasures
5569
5766
  });
5570
5767
  }
@@ -5572,17 +5769,14 @@ const dualMeasuresToMeasureTree = (dualMeasures)=>{
5572
5769
  const arrSecondaryMeasures = Array.isArray(secondaryMeasures) ? secondaryMeasures : [
5573
5770
  secondaryMeasures
5574
5771
  ];
5772
+ const alias = arrSecondaryMeasures.map((item)=>item.alias || item.id).toString();
5773
+ id += alias;
5575
5774
  groupChildren.push({
5576
5775
  id: `${index}-secondary`,
5577
- alias: secondaryAlias || arrSecondaryMeasures.map((item)=>item.alias || item.id).toString(),
5776
+ alias: arrSecondaryMeasures.map((item)=>item.alias || item.id).toString(),
5578
5777
  children: arrSecondaryMeasures
5579
5778
  });
5580
5779
  }
5581
- const id = [
5582
- primaryAlias,
5583
- secondaryAlias,
5584
- index
5585
- ].filter((d)=>!isNullish(d)).join('-');
5586
5780
  return {
5587
5781
  id,
5588
5782
  alias: id,
@@ -5744,7 +5938,7 @@ const dualChartTypeSecondary = (spec, context)=>{
5744
5938
  const datasetPrimary = (spec, context)=>{
5745
5939
  const { advancedVSeed, vseed } = context;
5746
5940
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
5747
- const { orderMapping = {} } = analysis ?? {};
5941
+ const orderMapping = analysis?.orderMapping || {};
5748
5942
  const x = encoding[0]?.x?.[0];
5749
5943
  const group = encoding[0]?.group?.[0];
5750
5944
  const id = datasetReshapeInfo[0].id;
@@ -5775,7 +5969,7 @@ const datasetPrimary = (spec, context)=>{
5775
5969
  ...spec,
5776
5970
  data: {
5777
5971
  id: `${id}-primary-dataset`,
5778
- values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset[0],
5972
+ values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
5779
5973
  fields: fields
5780
5974
  }
5781
5975
  };
@@ -5783,7 +5977,7 @@ const datasetPrimary = (spec, context)=>{
5783
5977
  const datasetSecondary = (spec, context)=>{
5784
5978
  const { advancedVSeed, vseed } = context;
5785
5979
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
5786
- const { orderMapping = {} } = analysis ?? {};
5980
+ const orderMapping = analysis?.orderMapping || {};
5787
5981
  const x = encoding[0]?.x?.[0];
5788
5982
  const group = encoding[0]?.group?.[0];
5789
5983
  const id = datasetReshapeInfo[0].id;
@@ -5814,7 +6008,7 @@ const datasetSecondary = (spec, context)=>{
5814
6008
  ...spec,
5815
6009
  data: {
5816
6010
  id: `${id}-secondary-dataset`,
5817
- values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset[1],
6011
+ values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
5818
6012
  fields: fields
5819
6013
  }
5820
6014
  };
@@ -6056,7 +6250,9 @@ const yLinearPrimary = (spec, context)=>{
6056
6250
  const { advancedVSeed, vseed } = context;
6057
6251
  const { chartType } = vseed;
6058
6252
  const { locale, datasetReshapeInfo } = advancedVSeed;
6059
- const config = advancedVSeed.config?.[chartType]?.primaryYAxis;
6253
+ const index = datasetReshapeInfo[0].index;
6254
+ const primaryYAxis = advancedVSeed.config?.[chartType]?.primaryYAxis;
6255
+ const config = Array.isArray(primaryYAxis) ? primaryYAxis[index] || primaryYAxis[0] : primaryYAxis;
6060
6256
  if (datasetReshapeInfo[0].foldInfoList?.[0] && isEmpty(datasetReshapeInfo[0].foldInfoList[0].foldMap)) return result;
6061
6257
  const id = `${datasetReshapeInfo[0].id}-primary-axis`;
6062
6258
  const seriesId = `${datasetReshapeInfo[0].id}-primary-series`;
@@ -6155,7 +6351,9 @@ const yLinearSecondary = (spec, context)=>{
6155
6351
  const { advancedVSeed, vseed } = context;
6156
6352
  const { chartType } = vseed;
6157
6353
  const { locale, datasetReshapeInfo } = advancedVSeed;
6158
- const config = advancedVSeed.config?.[chartType]?.secondaryYAxis;
6354
+ const index = datasetReshapeInfo[0].index;
6355
+ const secondaryYAxis = advancedVSeed.config?.[chartType]?.secondaryYAxis;
6356
+ const config = Array.isArray(secondaryYAxis) ? secondaryYAxis[index] || secondaryYAxis[0] : secondaryYAxis;
6159
6357
  if (isNullish(datasetReshapeInfo[0].foldInfoList?.[1])) return result;
6160
6358
  const id = `${datasetReshapeInfo[0].id}-secondary-axis`;
6161
6359
  const seriesId = `${datasetReshapeInfo[0].id}-secondary-series`;
@@ -6238,7 +6436,7 @@ const yLinearSecondary = (spec, context)=>{
6238
6436
  return result;
6239
6437
  };
6240
6438
  const dualAxis = [
6241
- series([
6439
+ seriesDualAxis([
6242
6440
  initDualAxisPrimary,
6243
6441
  dualChartTypePrimary,
6244
6442
  datasetPrimary,
@@ -6281,7 +6479,7 @@ const pivotDualAxis = [
6281
6479
  pivotIndicators_pivotIndicatorsAsRow,
6282
6480
  datasetPivot,
6283
6481
  pivotIndicators_pivotIndicators([
6284
- series([
6482
+ seriesDualAxis([
6285
6483
  initDualAxisPrimary,
6286
6484
  dualChartTypePrimary,
6287
6485
  datasetPrimary,
@@ -7675,7 +7873,8 @@ const lightTheme = ()=>{
7675
7873
  hoverHeaderBackgroundColor: '#D9DDE4',
7676
7874
  hoverHeaderInlineBackgroundColor: '#D9DDE455',
7677
7875
  selectedBorderColor: '#4080ff',
7678
- selectedBackgroundColor: '#bedaff33'
7876
+ selectedBackgroundColor: '#bedaff33',
7877
+ backgroundColor: 'transparent'
7679
7878
  };
7680
7879
  return {
7681
7880
  config: {
@@ -7695,8 +7894,8 @@ const lightTheme = ()=>{
7695
7894
  stackCornerRadius: [
7696
7895
  4,
7697
7896
  4,
7698
- 0,
7699
- 0
7897
+ 4,
7898
+ 4
7700
7899
  ]
7701
7900
  },
7702
7901
  columnParallel: {
@@ -7707,8 +7906,8 @@ const lightTheme = ()=>{
7707
7906
  stackCornerRadius: [
7708
7907
  4,
7709
7908
  4,
7710
- 0,
7711
- 0
7909
+ 4,
7910
+ 4
7712
7911
  ]
7713
7912
  },
7714
7913
  columnPercent: {
@@ -7719,8 +7918,8 @@ const lightTheme = ()=>{
7719
7918
  stackCornerRadius: [
7720
7919
  4,
7721
7920
  4,
7722
- 0,
7723
- 0
7921
+ 4,
7922
+ 4
7724
7923
  ]
7725
7924
  },
7726
7925
  bar: {
@@ -7729,10 +7928,10 @@ const lightTheme = ()=>{
7729
7928
  yAxis: barBandAxis,
7730
7929
  crosshairRect,
7731
7930
  stackCornerRadius: [
7732
- 0,
7733
7931
  4,
7734
7932
  4,
7735
- 0
7933
+ 4,
7934
+ 4
7736
7935
  ]
7737
7936
  },
7738
7937
  barParallel: {
@@ -7741,10 +7940,10 @@ const lightTheme = ()=>{
7741
7940
  yAxis: barBandAxis,
7742
7941
  crosshairRect,
7743
7942
  stackCornerRadius: [
7744
- 0,
7745
7943
  4,
7746
7944
  4,
7747
- 0
7945
+ 4,
7946
+ 4
7748
7947
  ]
7749
7948
  },
7750
7949
  barPercent: {
@@ -7753,10 +7952,10 @@ const lightTheme = ()=>{
7753
7952
  yAxis: barBandAxis,
7754
7953
  crosshairRect,
7755
7954
  stackCornerRadius: [
7756
- 0,
7757
7955
  4,
7758
7956
  4,
7759
- 0
7957
+ 4,
7958
+ 4
7760
7959
  ]
7761
7960
  },
7762
7961
  area: {
@@ -8033,8 +8232,8 @@ const darkTheme = ()=>{
8033
8232
  stackCornerRadius: [
8034
8233
  4,
8035
8234
  4,
8036
- 0,
8037
- 0
8235
+ 4,
8236
+ 4
8038
8237
  ]
8039
8238
  },
8040
8239
  columnParallel: {
@@ -8045,8 +8244,8 @@ const darkTheme = ()=>{
8045
8244
  stackCornerRadius: [
8046
8245
  4,
8047
8246
  4,
8048
- 0,
8049
- 0
8247
+ 4,
8248
+ 4
8050
8249
  ]
8051
8250
  },
8052
8251
  columnPercent: {
@@ -8057,8 +8256,8 @@ const darkTheme = ()=>{
8057
8256
  stackCornerRadius: [
8058
8257
  4,
8059
8258
  4,
8060
- 0,
8061
- 0
8259
+ 4,
8260
+ 4
8062
8261
  ]
8063
8262
  },
8064
8263
  bar: {
@@ -8079,10 +8278,10 @@ const darkTheme = ()=>{
8079
8278
  yAxis: barBandAxis,
8080
8279
  crosshairRect: crosshairRect,
8081
8280
  stackCornerRadius: [
8082
- 0,
8083
8281
  4,
8084
8282
  4,
8085
- 0
8283
+ 4,
8284
+ 4
8086
8285
  ]
8087
8286
  },
8088
8287
  barPercent: {
@@ -8091,10 +8290,10 @@ const darkTheme = ()=>{
8091
8290
  yAxis: barBandAxis,
8092
8291
  crosshairRect: crosshairRect,
8093
8292
  stackCornerRadius: [
8094
- 0,
8095
8293
  4,
8096
8294
  4,
8097
- 0
8295
+ 4,
8296
+ 4
8098
8297
  ]
8099
8298
  },
8100
8299
  area: {
@@ -8231,6 +8430,9 @@ const updateAdvanced = (chartType, advancedPipe)=>{
8231
8430
  const updateSpec = (chartType, specPipe)=>{
8232
8431
  Builder._customSpecPipe[chartType] = specPipe;
8233
8432
  };
8433
+ const isDimension = (dimension)=>!('children' in dimension);
8434
+ const isDimensionGroup = (dimension)=>'children' in dimension;
8435
+ const isDimensions = (dimensions)=>dimensions.every(isDimension);
8234
8436
  const zChartType = z["enum"]([
8235
8437
  'table',
8236
8438
  'pivotTable',
@@ -8338,9 +8540,7 @@ const zMeasureTree = z.array(zMeasureGroup.or(zMeasure));
8338
8540
  const zDualMeasure = z.object({
8339
8541
  id: z.string(),
8340
8542
  primaryMeasures: z.array(zMeasure).or(zMeasure).optional(),
8341
- primaryAlias: z.string().optional(),
8342
- secondaryMeasures: z.array(zMeasure).or(zMeasure).optional(),
8343
- secondaryAlias: z.string().optional()
8543
+ secondaryMeasures: z.array(zMeasure).or(zMeasure).optional()
8344
8544
  });
8345
8545
  const zDualMeasures = z.array(zDualMeasure);
8346
8546
  const zFoldInfo = z.object({
@@ -8359,117 +8559,117 @@ const zDatasetReshapeInfo = z.array(z.object({
8359
8559
  id: z.string(),
8360
8560
  index: z.number(),
8361
8561
  foldInfo: zFoldInfo,
8362
- foldInfoList: z.array(zFoldInfo).optional(),
8562
+ foldInfoList: z.array(zFoldInfo).nullish(),
8363
8563
  unfoldInfo: zUnfoldInfo
8364
8564
  }));
8365
8565
  const zEncoding = z.array(z.object({
8366
- x: z.array(z.string()).optional(),
8367
- y: z.array(z.string()).optional(),
8368
- color: z.array(z.string()).optional(),
8369
- group: z.array(z.string()).optional(),
8370
- angle: z.array(z.string()).optional(),
8371
- radius: z.array(z.string()).optional(),
8372
- tooltip: z.array(z.string()).optional(),
8373
- size: z.array(z.string()).optional()
8566
+ x: z.array(z.string()).nullish(),
8567
+ y: z.array(z.string()).nullish(),
8568
+ color: z.array(z.string()).nullish(),
8569
+ group: z.array(z.string()).nullish(),
8570
+ angle: z.array(z.string()).nullish(),
8571
+ radius: z.array(z.string()).nullish(),
8572
+ tooltip: z.array(z.string()).nullish(),
8573
+ size: z.array(z.string()).nullish()
8374
8574
  }));
8375
8575
  const zXBandAxis = z.object({
8376
- visible: z.boolean().default(true).optional(),
8377
- labelAutoHide: z.boolean().default(true).optional(),
8378
- labelAutoHideGap: z.number().default(0).optional(),
8379
- labelAutoRotate: z.boolean().default(true).optional(),
8576
+ visible: z.boolean().default(true).nullish(),
8577
+ labelAutoHide: z.boolean().default(true).nullish(),
8578
+ labelAutoHideGap: z.number().default(0).nullish(),
8579
+ labelAutoRotate: z.boolean().default(true).nullish(),
8380
8580
  labelAutoRotateAngleRange: z.array(z.number()).default([
8381
8581
  0,
8382
8582
  -45,
8383
8583
  -90
8384
- ]).optional(),
8385
- labelAutoLimit: z.boolean().default(true).optional(),
8386
- labelAutoLimitLength: z.number().default(100).optional(),
8584
+ ]).nullish(),
8585
+ labelAutoLimit: z.boolean().default(true).nullish(),
8586
+ labelAutoLimitLength: z.number().default(100).nullish(),
8387
8587
  label: z.object({
8388
- visible: z.boolean().default(true).optional(),
8389
- labelColor: z.string().default('#797B85').optional(),
8390
- labelFontSize: z.number().default(12).optional(),
8391
- labelFontWeight: z.number().default(400).optional(),
8392
- labelAngle: z.number().default(0).optional()
8393
- }).optional(),
8588
+ visible: z.boolean().default(true).nullish(),
8589
+ labelColor: z.string().default('#797B85').nullish(),
8590
+ labelFontSize: z.number().default(12).nullish(),
8591
+ labelFontWeight: z.number().default(400).nullish(),
8592
+ labelAngle: z.number().default(0).nullish()
8593
+ }).nullish(),
8394
8594
  line: z.object({
8395
- visible: z.boolean().default(true).optional(),
8396
- lineColor: z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8397
- lineWidth: z.number().default(1).optional()
8398
- }).optional(),
8595
+ visible: z.boolean().default(true).nullish(),
8596
+ lineColor: z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8597
+ lineWidth: z.number().default(1).nullish()
8598
+ }).nullish(),
8399
8599
  tick: z.object({
8400
- visible: z.boolean().default(true).optional(),
8401
- tickInside: z.boolean().default(false).optional(),
8402
- tickColor: z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8403
- tickSize: z.number().default(4).optional()
8404
- }).optional(),
8600
+ visible: z.boolean().default(true).nullish(),
8601
+ tickInside: z.boolean().default(false).nullish(),
8602
+ tickColor: z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8603
+ tickSize: z.number().default(4).nullish()
8604
+ }).nullish(),
8405
8605
  title: z.object({
8406
- visible: z.boolean().default(false).optional(),
8407
- titleText: z.string().default('').optional(),
8408
- titleColor: z.string().default('#646A73').optional(),
8409
- titleFontSize: z.number().default(12).optional(),
8410
- titleFontWeight: z.number().default(400).optional()
8411
- }).optional(),
8606
+ visible: z.boolean().default(false).nullish(),
8607
+ titleText: z.string().default('').nullish(),
8608
+ titleColor: z.string().default('#646A73').nullish(),
8609
+ titleFontSize: z.number().default(12).nullish(),
8610
+ titleFontWeight: z.number().default(400).nullish()
8611
+ }).nullish(),
8412
8612
  grid: z.object({
8413
- visible: z.boolean().default(false).optional(),
8414
- gridColor: z.string().default('rgba(54, 65, 89, 0.15)').optional(),
8415
- gridWidth: z.number().default(0.5).optional()
8416
- }).optional()
8613
+ visible: z.boolean().default(false).nullish(),
8614
+ gridColor: z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
8615
+ gridWidth: z.number().default(0.5).nullish()
8616
+ }).nullish()
8417
8617
  });
8418
8618
  const zYBandAxis = zXBandAxis;
8419
8619
  const zXLinearAxis = z.object({
8420
- visible: z.boolean().default(true).optional(),
8421
- min: z.number().optional(),
8422
- max: z.number().optional(),
8423
- nice: z.boolean().default(true).optional(),
8424
- zero: z.boolean().default(true).optional(),
8425
- log: z.boolean().default(false).optional(),
8426
- logBase: z.number().default(10).optional(),
8427
- inverse: z.boolean().default(false).optional(),
8620
+ visible: z.boolean().default(true).nullish(),
8621
+ min: z.number().nullish(),
8622
+ max: z.number().nullish(),
8623
+ nice: z.boolean().default(true).nullish(),
8624
+ zero: z.boolean().default(true).nullish(),
8625
+ log: z.boolean().default(false).nullish(),
8626
+ logBase: z.number().default(10).nullish(),
8627
+ inverse: z.boolean().default(false).nullish(),
8428
8628
  label: z.object({
8429
- visible: z.boolean().default(true).optional(),
8430
- labelColor: z.string().default('#797B85').optional(),
8431
- labelFontSize: z.number().default(12).optional(),
8432
- labelFontWeight: z.number().default(400).optional(),
8433
- labelAngle: z.number().default(0).optional()
8434
- }).optional(),
8629
+ visible: z.boolean().default(true).nullish(),
8630
+ labelColor: z.string().default('#797B85').nullish(),
8631
+ labelFontSize: z.number().default(12).nullish(),
8632
+ labelFontWeight: z.number().default(400).nullish(),
8633
+ labelAngle: z.number().default(0).nullish()
8634
+ }).nullish(),
8435
8635
  line: z.object({
8436
- visible: z.boolean().default(true).optional(),
8437
- lineColor: z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8438
- lineWidth: z.number().default(1).optional()
8439
- }).optional(),
8636
+ visible: z.boolean().default(true).nullish(),
8637
+ lineColor: z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8638
+ lineWidth: z.number().default(1).nullish()
8639
+ }).nullish(),
8440
8640
  tick: z.object({
8441
- visible: z.boolean().default(true).optional(),
8442
- tickInside: z.boolean().default(false).optional(),
8443
- tickColor: z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8444
- tickSize: z.number().default(4).optional()
8445
- }).optional(),
8641
+ visible: z.boolean().default(true).nullish(),
8642
+ tickInside: z.boolean().default(false).nullish(),
8643
+ tickColor: z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8644
+ tickSize: z.number().default(4).nullish()
8645
+ }).nullish(),
8446
8646
  title: z.object({
8447
- visible: z.boolean().default(false).optional(),
8448
- titleText: z.string().default('').optional(),
8449
- titleColor: z.string().default('#646A73').optional(),
8450
- titleFontSize: z.number().default(12).optional(),
8451
- titleFontWeight: z.number().default(400).optional()
8452
- }).optional(),
8647
+ visible: z.boolean().default(false).nullish(),
8648
+ titleText: z.string().default('').nullish(),
8649
+ titleColor: z.string().default('#646A73').nullish(),
8650
+ titleFontSize: z.number().default(12).nullish(),
8651
+ titleFontWeight: z.number().default(400).nullish()
8652
+ }).nullish(),
8453
8653
  grid: z.object({
8454
- visible: z.boolean().default(false).optional(),
8455
- gridColor: z.string().default('rgba(54, 65, 89, 0.15)').optional(),
8456
- gridWidth: z.number().default(0.5).optional()
8457
- }).optional()
8654
+ visible: z.boolean().default(false).nullish(),
8655
+ gridColor: z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
8656
+ gridWidth: z.number().default(0.5).nullish()
8657
+ }).nullish()
8458
8658
  });
8459
8659
  const zYLinearAxis = zXLinearAxis;
8460
8660
  const zCrosshairLine = z.object({
8461
- visible: z.boolean().optional(),
8462
- lineColor: z.string().optional(),
8463
- labelColor: z.string().optional(),
8464
- labelVisible: z.boolean().optional(),
8465
- labelBackgroundColor: z.string().optional()
8661
+ visible: z.boolean().nullish(),
8662
+ lineColor: z.string().nullish(),
8663
+ labelColor: z.string().nullish(),
8664
+ labelVisible: z.boolean().nullish(),
8665
+ labelBackgroundColor: z.string().nullish()
8466
8666
  });
8467
8667
  const zCrosshairRect = z.object({
8468
- visible: z.boolean().optional(),
8469
- rectColor: z.string().optional(),
8470
- labelColor: z.string().optional(),
8471
- labelVisible: z.boolean().optional(),
8472
- labelBackgroundColor: z.string().optional()
8668
+ visible: z.boolean().nullish(),
8669
+ rectColor: z.string().nullish(),
8670
+ labelColor: z.string().nullish(),
8671
+ labelVisible: z.boolean().nullish(),
8672
+ labelBackgroundColor: z.string().nullish()
8473
8673
  });
8474
8674
  const zStackCornerRadius = z.number().or(z.array(z.number())).default([
8475
8675
  3,
@@ -8477,21 +8677,21 @@ const zStackCornerRadius = z.number().or(z.array(z.number())).default([
8477
8677
  0,
8478
8678
  0
8479
8679
  ]);
8480
- const zBackgroundColor = z.string().default('transparent').optional();
8680
+ const zBackgroundColor = z.string().default('transparent').nullish();
8481
8681
  const zColor = z.object({
8482
- colorScheme: z.array(z.string()).optional(),
8483
- colorMapping: z.record(z.string(), z.string()).optional()
8682
+ colorScheme: z.array(z.string()).nullish(),
8683
+ colorMapping: z.record(z.string(), z.string()).nullish()
8484
8684
  });
8485
8685
  const zLinearColor = z.object({
8486
- colorScheme: z.array(z.string()).optional()
8686
+ colorScheme: z.array(z.string()).nullish()
8487
8687
  });
8488
8688
  const zLabel = z.object({
8489
- enable: z.boolean().default(true).optional()
8689
+ enable: z.boolean().default(true).nullish()
8490
8690
  });
8491
8691
  const zLegend = z.object({
8492
- enable: z.boolean().default(true).optional(),
8493
- border: z.boolean().default(true).optional(),
8494
- maxSize: z.number().default(1).optional(),
8692
+ enable: z.boolean().default(true).nullish(),
8693
+ border: z.boolean().default(true).nullish(),
8694
+ maxSize: z.number().default(1).nullish(),
8495
8695
  shapeType: z["enum"]([
8496
8696
  'circle',
8497
8697
  'cross',
@@ -8515,7 +8715,7 @@ const zLegend = z.object({
8515
8715
  'arrowRight',
8516
8716
  'rectRound',
8517
8717
  'roundLine'
8518
- ]).default('rectRound').optional(),
8718
+ ]).default('rectRound').nullish(),
8519
8719
  position: z["enum"]([
8520
8720
  'left',
8521
8721
  'leftTop',
@@ -8537,10 +8737,10 @@ const zLegend = z.object({
8537
8737
  'bottomRight',
8538
8738
  'bl',
8539
8739
  'br'
8540
- ]).default('bottom').optional(),
8541
- labelFontSize: z.number().default(12).optional(),
8542
- labelFontColor: z.string().default('#fff').optional(),
8543
- labelFontWeight: z.number().or(z.string()).default(400).optional()
8740
+ ]).default('bottom').nullish(),
8741
+ labelFontSize: z.number().default(12).nullish(),
8742
+ labelFontColor: z.string().default('#fff').nullish(),
8743
+ labelFontWeight: z.number().or(z.string()).default(400).nullish()
8544
8744
  });
8545
8745
  const zColorLegend = z.object({
8546
8746
  position: z["enum"]([
@@ -8564,194 +8764,195 @@ const zColorLegend = z.object({
8564
8764
  'bottomRight',
8565
8765
  'bl',
8566
8766
  'br'
8567
- ]).default('bottom').optional(),
8568
- enable: z.boolean().default(true).optional()
8767
+ ]).default('bottom').nullish(),
8768
+ enable: z.boolean().default(true).nullish()
8569
8769
  });
8570
8770
  const zTooltip = z.object({
8571
- enable: z.boolean().default(true).optional()
8771
+ enable: z.boolean().default(true).nullish()
8572
8772
  });
8573
8773
  const zTableConfig = z.object({
8574
- borderColor: z.string().optional(),
8575
- bodyFontSize: z.number().optional(),
8576
- bodyFontColor: z.string().optional(),
8577
- bodyBackgroundColor: z.string().optional(),
8578
- hoverBodyBackgroundColor: z.string().optional(),
8579
- hoverBodyInlineBackgroundColor: z.string().optional(),
8580
- headerFontSize: z.number().optional(),
8581
- headerFontColor: z.string().optional(),
8582
- headerBackgroundColor: z.string().optional(),
8583
- hoverHeaderBackgroundColor: z.string().optional(),
8584
- hoverHeaderInlineBackgroundColor: z.string().optional(),
8585
- selectedBorderColor: z.string().optional(),
8586
- selectedBackgroundColor: z.string().optional()
8774
+ backgroundColor: zBackgroundColor.nullish(),
8775
+ borderColor: z.string().nullish(),
8776
+ bodyFontSize: z.number().nullish(),
8777
+ bodyFontColor: z.string().nullish(),
8778
+ bodyBackgroundColor: z.string().nullish(),
8779
+ hoverBodyBackgroundColor: z.string().nullish(),
8780
+ hoverBodyInlineBackgroundColor: z.string().nullish(),
8781
+ headerFontSize: z.number().nullish(),
8782
+ headerFontColor: z.string().nullish(),
8783
+ headerBackgroundColor: z.string().nullish(),
8784
+ hoverHeaderBackgroundColor: z.string().nullish(),
8785
+ hoverHeaderInlineBackgroundColor: z.string().nullish(),
8786
+ selectedBorderColor: z.string().nullish(),
8787
+ selectedBackgroundColor: z.string().nullish()
8587
8788
  });
8588
8789
  const zPivotTableConfig = zTableConfig;
8589
8790
  const zLineConfig = z.object({
8590
- backgroundColor: zBackgroundColor.optional(),
8591
- label: zLabel.optional(),
8592
- color: zColor.optional(),
8593
- tooltip: zTooltip.optional(),
8594
- legend: zLegend.optional(),
8595
- xAxis: zXBandAxis.optional(),
8596
- yAxis: zYLinearAxis.optional(),
8597
- crosshairLine: zCrosshairLine.optional()
8791
+ backgroundColor: zBackgroundColor.nullish(),
8792
+ label: zLabel.nullish(),
8793
+ color: zColor.nullish(),
8794
+ tooltip: zTooltip.nullish(),
8795
+ legend: zLegend.nullish(),
8796
+ xAxis: zXBandAxis.nullish(),
8797
+ yAxis: zYLinearAxis.nullish(),
8798
+ crosshairLine: zCrosshairLine.nullish()
8598
8799
  });
8599
8800
  const zColumnConfig = z.object({
8600
- backgroundColor: zBackgroundColor.optional(),
8601
- label: zLabel.optional(),
8602
- color: zColor.optional(),
8603
- tooltip: zTooltip.optional(),
8604
- legend: zLegend.optional(),
8605
- xAxis: zXBandAxis.optional(),
8606
- yAxis: zYLinearAxis.optional(),
8607
- crosshairRect: zCrosshairRect.optional(),
8608
- stackCornerRadius: zStackCornerRadius.optional()
8801
+ backgroundColor: zBackgroundColor.nullish(),
8802
+ label: zLabel.nullish(),
8803
+ color: zColor.nullish(),
8804
+ tooltip: zTooltip.nullish(),
8805
+ legend: zLegend.nullish(),
8806
+ xAxis: zXBandAxis.nullish(),
8807
+ yAxis: zYLinearAxis.nullish(),
8808
+ crosshairRect: zCrosshairRect.nullish(),
8809
+ stackCornerRadius: zStackCornerRadius.nullish()
8609
8810
  });
8610
8811
  const zColumnParallelConfig = zColumnConfig;
8611
8812
  const zColumnPercentConfig = zColumnConfig;
8612
8813
  const zBarConfig = z.object({
8613
- backgroundColor: zBackgroundColor.optional(),
8614
- label: zLabel.optional(),
8615
- color: zColor.optional(),
8616
- tooltip: zTooltip.optional(),
8617
- legend: zLegend.optional(),
8618
- xAxis: zXLinearAxis.optional(),
8619
- yAxis: zYBandAxis.optional(),
8620
- crosshairRect: zCrosshairRect.optional(),
8621
- stackCornerRadius: zStackCornerRadius.optional()
8814
+ backgroundColor: zBackgroundColor.nullish(),
8815
+ label: zLabel.nullish(),
8816
+ color: zColor.nullish(),
8817
+ tooltip: zTooltip.nullish(),
8818
+ legend: zLegend.nullish(),
8819
+ xAxis: zXLinearAxis.nullish(),
8820
+ yAxis: zYBandAxis.nullish(),
8821
+ crosshairRect: zCrosshairRect.nullish(),
8822
+ stackCornerRadius: zStackCornerRadius.nullish()
8622
8823
  });
8623
8824
  const zBarParallelConfig = zBarConfig;
8624
8825
  const zBarPercentConfig = zBarConfig;
8625
8826
  const zAreaConfig = z.object({
8626
- backgroundColor: zBackgroundColor.optional(),
8627
- label: zLabel.optional(),
8628
- color: zColor.optional(),
8629
- tooltip: zTooltip.optional(),
8630
- legend: zLegend.optional(),
8631
- xAxis: zXBandAxis.optional(),
8632
- yAxis: zYLinearAxis.optional(),
8633
- crosshairLine: zCrosshairLine.optional()
8827
+ backgroundColor: zBackgroundColor.nullish(),
8828
+ label: zLabel.nullish(),
8829
+ color: zColor.nullish(),
8830
+ tooltip: zTooltip.nullish(),
8831
+ legend: zLegend.nullish(),
8832
+ xAxis: zXBandAxis.nullish(),
8833
+ yAxis: zYLinearAxis.nullish(),
8834
+ crosshairLine: zCrosshairLine.nullish()
8634
8835
  });
8635
8836
  const zAreaPercentConfig = zAreaConfig;
8636
8837
  const zAreaRangeConfig = zAreaConfig;
8637
8838
  const zDualAxisConfig = z.object({
8638
- backgroundColor: zBackgroundColor.optional(),
8639
- label: zLabel.optional(),
8640
- color: zColor.optional(),
8641
- tooltip: zTooltip.optional(),
8642
- legend: zLegend.optional(),
8643
- dualChartType: z.array(zDualChartType).or(zDualChartType).optional(),
8644
- primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).optional(),
8645
- secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).optional(),
8646
- xAxis: zXBandAxis.optional(),
8647
- crosshairRect: zCrosshairRect.optional()
8839
+ backgroundColor: zBackgroundColor.nullish(),
8840
+ label: zLabel.nullish(),
8841
+ color: zColor.nullish(),
8842
+ tooltip: zTooltip.nullish(),
8843
+ legend: zLegend.nullish(),
8844
+ dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),
8845
+ primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
8846
+ secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
8847
+ xAxis: zXBandAxis.nullish(),
8848
+ crosshairRect: zCrosshairRect.nullish()
8648
8849
  });
8649
8850
  const zScatterConfig = z.object({
8650
- backgroundColor: zBackgroundColor.optional(),
8651
- label: zLabel.optional(),
8652
- color: zColor.optional(),
8653
- tooltip: zTooltip.optional(),
8654
- legend: zLegend.optional(),
8655
- xAxis: zXLinearAxis.optional(),
8656
- yAxis: zYLinearAxis.optional(),
8657
- crosshairLine: zCrosshairLine.optional()
8851
+ backgroundColor: zBackgroundColor.nullish(),
8852
+ label: zLabel.nullish(),
8853
+ color: zColor.nullish(),
8854
+ tooltip: zTooltip.nullish(),
8855
+ legend: zLegend.nullish(),
8856
+ xAxis: zXLinearAxis.nullish(),
8857
+ yAxis: zYLinearAxis.nullish(),
8858
+ crosshairLine: zCrosshairLine.nullish()
8658
8859
  });
8659
8860
  const zRoseConfig = z.object({
8660
- backgroundColor: zBackgroundColor.optional(),
8661
- label: zLabel.optional(),
8662
- color: zColor.optional(),
8663
- tooltip: zTooltip.optional(),
8664
- legend: zLegend.optional()
8861
+ backgroundColor: zBackgroundColor.nullish(),
8862
+ label: zLabel.nullish(),
8863
+ color: zColor.nullish(),
8864
+ tooltip: zTooltip.nullish(),
8865
+ legend: zLegend.nullish()
8665
8866
  });
8666
8867
  const zRoseParallelConfig = zRoseConfig;
8667
8868
  const zPieConfig = z.object({
8668
- backgroundColor: zBackgroundColor.optional(),
8669
- label: zLabel.optional(),
8670
- color: zColor.optional(),
8671
- tooltip: zTooltip.optional(),
8672
- legend: zLegend.optional()
8869
+ backgroundColor: zBackgroundColor.nullish(),
8870
+ label: zLabel.nullish(),
8871
+ color: zColor.nullish(),
8872
+ tooltip: zTooltip.nullish(),
8873
+ legend: zLegend.nullish()
8673
8874
  });
8674
8875
  const zDonutConfig = zPieConfig;
8675
8876
  const zRadarConfig = zPieConfig;
8676
8877
  const zFunnelConfig = zPieConfig;
8677
8878
  const zHeatmapConfig = zPieConfig;
8678
8879
  const zConfig = z.object({
8679
- table: zTableConfig.optional(),
8680
- pivotTable: zPivotTableConfig.optional(),
8681
- line: zLineConfig.optional(),
8682
- column: zColumnConfig.optional(),
8683
- columnParallel: zColumnParallelConfig.optional(),
8684
- columnPercent: zColumnPercentConfig.optional(),
8685
- bar: zBarConfig.optional(),
8686
- barParallel: zBarParallelConfig.optional(),
8687
- barPercent: zBarPercentConfig.optional(),
8688
- area: zAreaConfig.optional(),
8689
- areaPercent: zAreaPercentConfig.optional(),
8690
- areaRange: zAreaRangeConfig.optional(),
8691
- scatter: zScatterConfig.optional(),
8692
- dualAxis: zDualAxisConfig.optional(),
8693
- rose: zRoseConfig.optional(),
8694
- roseParallel: zRoseParallelConfig.optional(),
8695
- pie: zPieConfig.optional(),
8696
- donut: zDonutConfig.optional(),
8697
- radar: zRadarConfig.optional(),
8698
- funnel: zFunnelConfig.optional(),
8699
- heatmap: zHeatmapConfig.optional()
8880
+ table: zTableConfig.nullish(),
8881
+ pivotTable: zPivotTableConfig.nullish(),
8882
+ line: zLineConfig.nullish(),
8883
+ column: zColumnConfig.nullish(),
8884
+ columnParallel: zColumnParallelConfig.nullish(),
8885
+ columnPercent: zColumnPercentConfig.nullish(),
8886
+ bar: zBarConfig.nullish(),
8887
+ barParallel: zBarParallelConfig.nullish(),
8888
+ barPercent: zBarPercentConfig.nullish(),
8889
+ area: zAreaConfig.nullish(),
8890
+ areaPercent: zAreaPercentConfig.nullish(),
8891
+ areaRange: zAreaRangeConfig.nullish(),
8892
+ scatter: zScatterConfig.nullish(),
8893
+ dualAxis: zDualAxisConfig.nullish(),
8894
+ rose: zRoseConfig.nullish(),
8895
+ roseParallel: zRoseParallelConfig.nullish(),
8896
+ pie: zPieConfig.nullish(),
8897
+ donut: zDonutConfig.nullish(),
8898
+ radar: zRadarConfig.nullish(),
8899
+ funnel: zFunnelConfig.nullish(),
8900
+ heatmap: zHeatmapConfig.nullish()
8700
8901
  });
8701
8902
  const zAxis = z.object({
8702
- visible: z.boolean().default(true).optional(),
8703
- min: z.number().optional(),
8704
- max: z.number().optional(),
8705
- nice: z.boolean().default(true).optional(),
8706
- zero: z.boolean().default(true).optional(),
8707
- inverse: z.boolean().default(false).optional(),
8708
- log: z.boolean().default(false).optional(),
8709
- logBase: z.number().default(10).optional(),
8710
- labelAutoHide: z.boolean().default(true).optional(),
8711
- labelAutoHideGap: z.number().default(4).optional(),
8712
- labelAutoRotate: z.boolean().default(true).optional(),
8903
+ visible: z.boolean().default(true).nullish(),
8904
+ min: z.number().nullish(),
8905
+ max: z.number().nullish(),
8906
+ nice: z.boolean().default(true).nullish(),
8907
+ zero: z.boolean().default(true).nullish(),
8908
+ inverse: z.boolean().default(false).nullish(),
8909
+ log: z.boolean().default(false).nullish(),
8910
+ logBase: z.number().default(10).nullish(),
8911
+ labelAutoHide: z.boolean().default(true).nullish(),
8912
+ labelAutoHideGap: z.number().default(4).nullish(),
8913
+ labelAutoRotate: z.boolean().default(true).nullish(),
8713
8914
  labelAutoRotateAngleRange: z.array(z.number()).default([
8714
8915
  0,
8715
8916
  -45,
8716
8917
  -90
8717
- ]).optional(),
8718
- labelAutoLimit: z.boolean().default(true).optional(),
8719
- labelAutoLimitLength: z.number().default(100).optional(),
8918
+ ]).nullish(),
8919
+ labelAutoLimit: z.boolean().default(true).nullish(),
8920
+ labelAutoLimitLength: z.number().default(100).nullish(),
8720
8921
  label: z.object({
8721
- visible: z.boolean().default(true).optional(),
8722
- labelColor: z.string().default('#797B85').optional(),
8723
- labelFontSize: z.number().default(12).optional(),
8724
- labelFontWeight: z.number().default(400).optional(),
8725
- labelAngle: z.number().default(0).optional()
8726
- }).optional(),
8922
+ visible: z.boolean().default(true).nullish(),
8923
+ labelColor: z.string().default('#797B85').nullish(),
8924
+ labelFontSize: z.number().default(12).nullish(),
8925
+ labelFontWeight: z.number().default(400).nullish(),
8926
+ labelAngle: z.number().default(0).nullish()
8927
+ }).nullish(),
8727
8928
  line: z.object({
8728
- visible: z.boolean().default(true).optional(),
8729
- lineColor: z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8730
- lineWidth: z.number().default(1).optional()
8731
- }).optional(),
8929
+ visible: z.boolean().default(true).nullish(),
8930
+ lineColor: z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8931
+ lineWidth: z.number().default(1).nullish()
8932
+ }).nullish(),
8732
8933
  tick: z.object({
8733
- visible: z.boolean().default(true).optional(),
8734
- tickInside: z.boolean().default(false).optional(),
8735
- tickColor: z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8736
- tickSize: z.number().default(4).optional()
8737
- }).optional(),
8934
+ visible: z.boolean().default(true).nullish(),
8935
+ tickInside: z.boolean().default(false).nullish(),
8936
+ tickColor: z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8937
+ tickSize: z.number().default(4).nullish()
8938
+ }).nullish(),
8738
8939
  title: z.object({
8739
- visible: z.boolean().default(false).optional(),
8740
- titleText: z.string().default('').optional(),
8741
- titleColor: z.string().default('#646A73').optional(),
8742
- titleFontSize: z.number().default(12).optional(),
8743
- titleFontWeight: z.number().default(400).optional()
8744
- }).optional(),
8940
+ visible: z.boolean().default(false).nullish(),
8941
+ titleText: z.string().default('').nullish(),
8942
+ titleColor: z.string().default('#646A73').nullish(),
8943
+ titleFontSize: z.number().default(12).nullish(),
8944
+ titleFontWeight: z.number().default(400).nullish()
8945
+ }).nullish(),
8745
8946
  grid: z.object({
8746
- visible: z.boolean().default(false).optional(),
8747
- gridColor: z.string().default('rgba(54, 65, 89, 0.15)').optional(),
8748
- gridWidth: z.number().default(0.5).optional()
8749
- }).optional()
8947
+ visible: z.boolean().default(false).nullish(),
8948
+ gridColor: z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
8949
+ gridWidth: z.number().default(0.5).nullish()
8950
+ }).nullish()
8750
8951
  });
8751
8952
  const zCustomThemeConfig = z.object({
8752
- config: zConfig.optional()
8953
+ config: zConfig.nullish()
8753
8954
  });
8754
- const zCustomTheme = z.record(z.string(), zCustomThemeConfig).optional();
8955
+ const zCustomTheme = z.record(z.string(), zCustomThemeConfig).nullish();
8755
8956
  const zTheme = z.string();
8756
8957
  const zSelector = z.union([
8757
8958
  z.string(),
@@ -8767,7 +8968,7 @@ const zSelector = z.union([
8767
8968
  '>=',
8768
8969
  '<=',
8769
8970
  'between'
8770
- ]).optional(),
8971
+ ]).nullish(),
8771
8972
  op: z["enum"]([
8772
8973
  '=',
8773
8974
  '==',
@@ -8777,7 +8978,7 @@ const zSelector = z.union([
8777
8978
  '>=',
8778
8979
  '<=',
8779
8980
  'between'
8780
- ]).optional(),
8981
+ ]).nullish(),
8781
8982
  value: z.union([
8782
8983
  z.string(),
8783
8984
  z.number(),
@@ -8792,11 +8993,11 @@ const zSelector = z.union([
8792
8993
  operator: z["enum"]([
8793
8994
  'in',
8794
8995
  'not in'
8795
- ]).optional(),
8996
+ ]).nullish(),
8796
8997
  op: z["enum"]([
8797
8998
  'in',
8798
8999
  'not in'
8799
- ]).optional(),
9000
+ ]).nullish(),
8800
9001
  value: z.union([
8801
9002
  z.string(),
8802
9003
  z.number(),
@@ -8812,103 +9013,103 @@ const zBarStyle = z.object({
8812
9013
  selector: z.union([
8813
9014
  zSelector,
8814
9015
  zSelectors
8815
- ]).optional(),
8816
- barColor: z.string().optional(),
8817
- barColorOpacity: z.number().optional(),
8818
- barBorderColor: z.string().optional(),
8819
- barBorderWidth: z.number().optional(),
9016
+ ]).nullish(),
9017
+ barColor: z.string().nullish(),
9018
+ barColorOpacity: z.number().nullish(),
9019
+ barBorderColor: z.string().nullish(),
9020
+ barBorderWidth: z.number().nullish(),
8820
9021
  barBorderStyle: z.union([
8821
9022
  z.literal('solid'),
8822
9023
  z.literal('dashed'),
8823
9024
  z.literal('dotted')
8824
- ]).optional(),
9025
+ ]).nullish(),
8825
9026
  barRadius: z.union([
8826
9027
  z.number(),
8827
9028
  z.array(z.number())
8828
- ]).optional()
9029
+ ]).nullish()
8829
9030
  });
8830
9031
  const zPointStyle = z.object({
8831
9032
  selector: z.union([
8832
9033
  zSelector,
8833
9034
  zSelectors
8834
- ]).optional(),
8835
- pointSize: z.number().optional(),
8836
- pointColor: z.string().optional(),
8837
- pointColorOpacity: z.number().optional(),
8838
- pointBorderColor: z.string().optional(),
8839
- pointBorderWidth: z.number().optional(),
9035
+ ]).nullish(),
9036
+ pointSize: z.number().nullish(),
9037
+ pointColor: z.string().nullish(),
9038
+ pointColorOpacity: z.number().nullish(),
9039
+ pointBorderColor: z.string().nullish(),
9040
+ pointBorderWidth: z.number().nullish(),
8840
9041
  pointBorderStyle: z.union([
8841
9042
  z["enum"]([
8842
9043
  'solid',
8843
9044
  'dashed',
8844
9045
  'dotted'
8845
9046
  ])
8846
- ]).optional()
9047
+ ]).nullish()
8847
9048
  });
8848
9049
  const zLineStyle = z.object({
8849
9050
  selector: z.union([
8850
9051
  zSelector,
8851
9052
  zSelectors
8852
- ]).optional(),
8853
- lineSmooth: z.boolean().optional(),
8854
- lineColor: z.string().optional(),
8855
- lineColorOpacity: z.number().optional(),
8856
- lineWidth: z.number().optional(),
9053
+ ]).nullish(),
9054
+ lineSmooth: z.boolean().nullish(),
9055
+ lineColor: z.string().nullish(),
9056
+ lineColorOpacity: z.number().nullish(),
9057
+ lineWidth: z.number().nullish(),
8857
9058
  lineStyle: z.union([
8858
9059
  z["enum"]([
8859
9060
  'solid',
8860
9061
  'dashed',
8861
9062
  'dotted'
8862
9063
  ])
8863
- ]).optional()
9064
+ ]).nullish()
8864
9065
  });
8865
9066
  const zAreaStyle = z.object({
8866
9067
  selector: z.union([
8867
9068
  zSelector,
8868
9069
  zSelectors
8869
- ]).optional(),
8870
- areaColor: z.string().optional(),
8871
- areaColorOpacity: z.number().optional()
9070
+ ]).nullish(),
9071
+ areaColor: z.string().nullish(),
9072
+ areaColorOpacity: z.number().nullish()
8872
9073
  });
8873
9074
  const zMarkStyle = z.object({
8874
- barStyle: zBarStyle.or(z.array(zBarStyle)).optional(),
8875
- pointStyle: zPointStyle.or(z.array(zPointStyle)).optional(),
8876
- lineStyle: zLineStyle.or(z.array(zLineStyle)).optional(),
8877
- areaStyle: zAreaStyle.or(z.array(zAreaStyle)).optional()
9075
+ barStyle: zBarStyle.or(z.array(zBarStyle)).nullish(),
9076
+ pointStyle: zPointStyle.or(z.array(zPointStyle)).nullish(),
9077
+ lineStyle: zLineStyle.or(z.array(zLineStyle)).nullish(),
9078
+ areaStyle: zAreaStyle.or(z.array(zAreaStyle)).nullish()
8878
9079
  });
8879
9080
  const zAnnotationPoint = z.object({
8880
9081
  selector: z.union([
8881
9082
  zSelector,
8882
9083
  zSelectors
8883
9084
  ]),
8884
- text: z.string().or(z.array(z.string())).optional(),
8885
- textColor: z.string().default('#ffffff').optional(),
8886
- textFontSize: z.number().default(12).optional(),
8887
- textFontWeight: z.number().default(400).optional(),
9085
+ text: z.string().or(z.array(z.string())).nullish(),
9086
+ textColor: z.string().default('#ffffff').nullish(),
9087
+ textFontSize: z.number().default(12).nullish(),
9088
+ textFontWeight: z.number().default(400).nullish(),
8888
9089
  textAlign: z["enum"]([
8889
9090
  'left',
8890
9091
  'right',
8891
9092
  'center'
8892
- ]).default('center').optional(),
9093
+ ]).default('center').nullish(),
8893
9094
  textBaseline: z["enum"]([
8894
9095
  'top',
8895
9096
  'middle',
8896
9097
  'bottom'
8897
- ]).default('middle').optional(),
8898
- backgroundVisible: z.boolean().default(true).optional(),
8899
- backgroundColor: z.string().default('#212121').optional(),
8900
- backgroundBorderColor: z.string().optional(),
8901
- backgroundBorderWidth: z.number().default(1).optional(),
8902
- backgroundBorderRadius: z.number().default(4).optional(),
8903
- backgroundPadding: z.number().optional(),
8904
- offsetY: z.number().default(0).optional(),
8905
- offsetX: z.number().default(0).optional()
9098
+ ]).default('middle').nullish(),
9099
+ textBackgroundVisible: z.boolean().default(true).nullish(),
9100
+ textBackgroundColor: z.string().default('#212121').nullish(),
9101
+ textBackgroundBorderColor: z.string().nullish(),
9102
+ textBackgroundBorderWidth: z.number().default(1).nullish(),
9103
+ textBackgroundBorderRadius: z.number().default(4).nullish(),
9104
+ textBackgroundPadding: z.number().nullish(),
9105
+ offsetY: z.number().default(0).nullish(),
9106
+ offsetX: z.number().default(0).nullish()
8906
9107
  });
8907
9108
  const zAnnotationVerticalLine = z.object({
8908
9109
  selector: z.union([
8909
9110
  zSelector,
8910
9111
  zSelectors
8911
- ]).optional(),
9112
+ ]).nullish(),
8912
9113
  xValue: z.union([
8913
9114
  z.number(),
8914
9115
  z.string(),
@@ -8916,8 +9117,8 @@ const zAnnotationVerticalLine = z.object({
8916
9117
  z.number(),
8917
9118
  z.string()
8918
9119
  ]))
8919
- ]).optional(),
8920
- text: z.string().or(z.array(z.string())).optional(),
9120
+ ]).nullish(),
9121
+ text: z.string().or(z.array(z.string())).nullish(),
8921
9122
  textPosition: z["enum"]([
8922
9123
  'outsideStart',
8923
9124
  'outsideEnd',
@@ -8925,34 +9126,34 @@ const zAnnotationVerticalLine = z.object({
8925
9126
  'insideStart',
8926
9127
  'insideMiddle',
8927
9128
  'insideEnd'
8928
- ]).default('insideEnd').optional(),
8929
- textColor: z.string().default('#ffffff').optional(),
8930
- textFontSize: z.number().default(12).optional(),
8931
- textFontWeight: z.number().default(400).optional(),
9129
+ ]).default('insideEnd').nullish(),
9130
+ textColor: z.string().default('#ffffff').nullish(),
9131
+ textFontSize: z.number().default(12).nullish(),
9132
+ textFontWeight: z.number().default(400).nullish(),
8932
9133
  textAlign: z["enum"]([
8933
9134
  'left',
8934
9135
  'right',
8935
9136
  'center'
8936
- ]).default('right').optional(),
9137
+ ]).default('right').nullish(),
8937
9138
  textBaseline: z["enum"]([
8938
9139
  'top',
8939
9140
  'middle',
8940
9141
  'bottom'
8941
- ]).default('top').optional(),
8942
- lineVisible: z.boolean().default(true).optional(),
8943
- lineColor: z.string().default('#212121').optional(),
8944
- lineWidth: z.number().default(1).optional(),
9142
+ ]).default('top').nullish(),
9143
+ textBackgroundVisible: z.boolean().default(true).nullish(),
9144
+ textBackgroundColor: z.string().default('#212121').nullish(),
9145
+ textBackgroundBorderColor: z.string().default('#212121').nullish(),
9146
+ textBackgroundBorderRadius: z.number().default(4).nullish(),
9147
+ textBackgroundBorderWidth: z.number().default(1).nullish(),
9148
+ textBackgroundPadding: z.number().default(2).nullish(),
9149
+ lineVisible: z.boolean().default(true).nullish(),
9150
+ lineColor: z.string().default('#212121').nullish(),
9151
+ lineWidth: z.number().default(1).nullish(),
8945
9152
  lineStyle: z.union([
8946
9153
  z.literal('solid'),
8947
9154
  z.literal('dashed'),
8948
9155
  z.literal('dotted')
8949
- ]).default('dashed').optional(),
8950
- backgroundVisible: z.boolean().default(true).optional(),
8951
- backgroundColor: z.string().default('#212121').optional(),
8952
- backgroundBorderColor: z.string().default('#212121').optional(),
8953
- backgroundBorderRadius: z.number().default(4).optional(),
8954
- backgroundBorderWidth: z.number().default(1).optional(),
8955
- backgroundPadding: z.number().default(2).optional(),
9156
+ ]).default('dashed').nullish(),
8956
9157
  offsetX: z.number().default(0),
8957
9158
  offsetY: z.number().default(0)
8958
9159
  });
@@ -8960,7 +9161,7 @@ const zAnnotationHorizontalLine = z.object({
8960
9161
  selector: z.union([
8961
9162
  zSelector,
8962
9163
  zSelectors
8963
- ]).optional(),
9164
+ ]).nullish(),
8964
9165
  yValue: z.union([
8965
9166
  z.number(),
8966
9167
  z.string(),
@@ -8968,8 +9169,8 @@ const zAnnotationHorizontalLine = z.object({
8968
9169
  z.number(),
8969
9170
  z.string()
8970
9171
  ]))
8971
- ]).optional(),
8972
- text: z.string().or(z.array(z.string())).optional(),
9172
+ ]).nullish(),
9173
+ text: z.string().or(z.array(z.string())).nullish(),
8973
9174
  textPosition: z["enum"]([
8974
9175
  'outsideStart',
8975
9176
  'outsideEnd',
@@ -8977,34 +9178,34 @@ const zAnnotationHorizontalLine = z.object({
8977
9178
  'insideStart',
8978
9179
  'insideMiddle',
8979
9180
  'insideEnd'
8980
- ]).default('insideEnd').optional(),
8981
- textColor: z.string().default('#ffffff').optional(),
8982
- textFontSize: z.number().default(12).optional(),
8983
- textFontWeight: z.number().default(400).optional(),
9181
+ ]).default('insideEnd').nullish(),
9182
+ textColor: z.string().default('#ffffff').nullish(),
9183
+ textFontSize: z.number().default(12).nullish(),
9184
+ textFontWeight: z.number().default(400).nullish(),
8984
9185
  textAlign: z["enum"]([
8985
9186
  'left',
8986
9187
  'right',
8987
9188
  'center'
8988
- ]).default('right').optional(),
9189
+ ]).default('right').nullish(),
8989
9190
  textBaseline: z["enum"]([
8990
9191
  'top',
8991
9192
  'middle',
8992
9193
  'bottom'
8993
- ]).default('top').optional(),
8994
- lineVisible: z.boolean().default(true).optional(),
8995
- lineColor: z.string().default('#212121').optional(),
8996
- lineWidth: z.number().default(1).optional(),
9194
+ ]).default('top').nullish(),
9195
+ lineVisible: z.boolean().default(true).nullish(),
9196
+ lineColor: z.string().default('#212121').nullish(),
9197
+ lineWidth: z.number().default(1).nullish(),
8997
9198
  lineStyle: z.union([
8998
9199
  z.literal('solid'),
8999
9200
  z.literal('dashed'),
9000
9201
  z.literal('dotted')
9001
- ]).default('dashed').optional(),
9002
- backgroundVisible: z.boolean().default(true).optional(),
9003
- backgroundColor: z.string().default('#212121').optional(),
9004
- backgroundBorderColor: z.string().default('#212121').optional(),
9005
- backgroundBorderRadius: z.number().default(4).optional(),
9006
- backgroundBorderWidth: z.number().default(1).optional(),
9007
- backgroundPadding: z.number().default(2).optional(),
9202
+ ]).default('dashed').nullish(),
9203
+ textBackgroundVisible: z.boolean().default(true).nullish(),
9204
+ textBackgroundColor: z.string().default('#212121').nullish(),
9205
+ textBackgroundBorderColor: z.string().default('#212121').nullish(),
9206
+ textBackgroundBorderRadius: z.number().default(4).nullish(),
9207
+ textBackgroundBorderWidth: z.number().default(1).nullish(),
9208
+ textBackgroundPadding: z.number().default(2).nullish(),
9008
9209
  offsetX: z.number().default(0),
9009
9210
  offsetY: z.number().default(0)
9010
9211
  });
@@ -9022,60 +9223,60 @@ const zAnnotationArea = z.object({
9022
9223
  'bottomRight',
9023
9224
  'left',
9024
9225
  'right'
9025
- ]).default('top').optional(),
9026
- text: z.string().or(z.array(z.string())).optional(),
9027
- textColor: z.string().default('#ffffff').optional(),
9028
- textFontSize: z.number().default(12).optional(),
9029
- textFontWeight: z.number().default(400).optional(),
9226
+ ]).default('top').nullish(),
9227
+ text: z.string().or(z.array(z.string())).nullish(),
9228
+ textColor: z.string().default('#ffffff').nullish(),
9229
+ textFontSize: z.number().default(12).nullish(),
9230
+ textFontWeight: z.number().default(400).nullish(),
9030
9231
  textAlign: z["enum"]([
9031
9232
  'left',
9032
9233
  'right',
9033
9234
  'center'
9034
- ]).default('center').optional(),
9235
+ ]).default('center').nullish(),
9035
9236
  textBaseline: z["enum"]([
9036
9237
  'top',
9037
9238
  'middle',
9038
9239
  'bottom'
9039
- ]).default('top').optional(),
9040
- backgroundVisible: z.boolean().default(true).optional(),
9041
- backgroundColor: z.string().default('#191d24').optional(),
9042
- backgroundBorderColor: z.string().default('#191d24').optional(),
9043
- backgroundBorderWidth: z.number().default(1).optional(),
9044
- backgroundBorderRadius: z.number().default(4).optional(),
9045
- backgroundPadding: z.number().default(4).optional(),
9046
- areaColor: z.string().default('#888888').optional(),
9047
- areaColorOpacity: z.number().default(0.15).optional(),
9048
- areaBorderColor: z.string().default('#888888').optional(),
9049
- areaBorderWidth: z.number().default(1).optional(),
9050
- areaBorderRadius: z.number().default(4).optional(),
9051
- outerPadding: z.number().default(4).optional(),
9052
- offsetX: z.number().default(0).optional(),
9053
- offsetY: z.number().default(0).optional()
9240
+ ]).default('top').nullish(),
9241
+ textBackgroundVisible: z.boolean().default(true).nullish(),
9242
+ textBackgroundColor: z.string().default('#191d24').nullish(),
9243
+ textBackgroundBorderColor: z.string().default('#191d24').nullish(),
9244
+ textBackgroundBorderWidth: z.number().default(1).nullish(),
9245
+ textBackgroundBorderRadius: z.number().default(4).nullish(),
9246
+ textBackgroundPadding: z.number().default(4).nullish(),
9247
+ areaColor: z.string().default('#888888').nullish(),
9248
+ areaColorOpacity: z.number().default(0.15).nullish(),
9249
+ areaBorderColor: z.string().default('#888888').nullish(),
9250
+ areaBorderWidth: z.number().default(1).nullish(),
9251
+ areaBorderRadius: z.number().default(4).nullish(),
9252
+ outerPadding: z.number().default(4).nullish(),
9253
+ offsetX: z.number().default(0).nullish(),
9254
+ offsetY: z.number().default(0).nullish()
9054
9255
  });
9055
9256
  const zAnnotation = z.object({
9056
- annotationPoint: zAnnotationPoint.or(z.array(zAnnotationPoint)).optional(),
9057
- annotationVerticalLine: zAnnotationVerticalLine.or(z.array(zAnnotationVerticalLine)).optional(),
9058
- annotationHorizontalLine: zAnnotationHorizontalLine.or(z.array(zAnnotationHorizontalLine)).optional(),
9059
- annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).optional()
9257
+ annotationPoint: zAnnotationPoint.or(z.array(zAnnotationPoint)).nullish(),
9258
+ annotationVerticalLine: zAnnotationVerticalLine.or(z.array(zAnnotationVerticalLine)).nullish(),
9259
+ annotationHorizontalLine: zAnnotationHorizontalLine.or(z.array(zAnnotationHorizontalLine)).nullish(),
9260
+ annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).nullish()
9060
9261
  });
9061
9262
  const zSort = z.object({
9062
9263
  order: z["enum"]([
9063
9264
  'asc',
9064
9265
  'desc'
9065
9266
  ]).default('asc'),
9066
- orderBy: z.string().optional(),
9067
- customOrder: z.array(z.any()).optional()
9267
+ orderBy: z.string().nullish(),
9268
+ customOrder: z.array(z.any()).nullish()
9068
9269
  });
9069
9270
  const zSortLegend = z.object({
9070
9271
  order: z["enum"]([
9071
9272
  'asc',
9072
9273
  'desc'
9073
9274
  ]).default('asc'),
9074
- orderBy: z.string().optional(),
9075
- customOrder: z.array(z.any()).optional()
9275
+ orderBy: z.string().nullish(),
9276
+ customOrder: z.array(z.any()).nullish()
9076
9277
  });
9077
9278
  const zAnalysis = z.object({
9078
- orderMapping: z.record(z.string(), z.array(z.string())).optional()
9279
+ orderMapping: z.record(z.string(), z.array(z.string())).nullish()
9079
9280
  });
9080
9281
  const zLocale = z["enum"]([
9081
9282
  'zh-CN',
@@ -9083,384 +9284,410 @@ const zLocale = z["enum"]([
9083
9284
  ]).default('zh-CN');
9084
9285
  const zTable = z.object({
9085
9286
  chartType: z.literal('table'),
9086
- dataset: zDataset.optional(),
9087
- dimensions: zDimensions.optional(),
9088
- measures: zMeasureTree.optional(),
9089
- backgroundColor: zBackgroundColor.optional(),
9090
- theme: zTheme.optional(),
9091
- locale: zLocale.optional()
9287
+ dataset: zDataset.nullish(),
9288
+ dimensions: zDimensions.nullish(),
9289
+ measures: zMeasureTree.nullish(),
9290
+ backgroundColor: zBackgroundColor.nullish(),
9291
+ borderColor: z.string().nullish(),
9292
+ bodyFontSize: z.number().nullish(),
9293
+ bodyFontColor: z.string().nullish(),
9294
+ bodyBackgroundColor: z.string().nullish(),
9295
+ hoverBodyBackgroundColor: z.string().nullish(),
9296
+ hoverBodyInlineBackgroundColor: z.string().nullish(),
9297
+ headerFontSize: z.number().nullish(),
9298
+ headerFontColor: z.string().nullish(),
9299
+ headerBackgroundColor: z.string().nullish(),
9300
+ hoverHeaderBackgroundColor: z.string().nullish(),
9301
+ hoverHeaderInlineBackgroundColor: z.string().nullish(),
9302
+ selectedBorderColor: z.string().nullish(),
9303
+ selectedBackgroundColor: z.string().nullish(),
9304
+ theme: zTheme.nullish(),
9305
+ locale: zLocale.nullish()
9092
9306
  });
9093
9307
  const zPivotTable = z.object({
9094
9308
  chartType: z.literal('pivotTable'),
9095
- dataset: zDataset.optional(),
9096
- dimensions: zDimensions.optional(),
9097
- measures: zMeasures.optional(),
9098
- backgroundColor: zBackgroundColor.optional(),
9099
- theme: zTheme.optional(),
9100
- locale: zLocale.optional()
9309
+ dataset: zDataset.nullish(),
9310
+ dimensions: zDimensions.nullish(),
9311
+ measures: zMeasures.nullish(),
9312
+ backgroundColor: zBackgroundColor.nullish(),
9313
+ borderColor: z.string().nullish(),
9314
+ bodyFontSize: z.number().nullish(),
9315
+ bodyFontColor: z.string().nullish(),
9316
+ bodyBackgroundColor: z.string().nullish(),
9317
+ hoverBodyBackgroundColor: z.string().nullish(),
9318
+ hoverBodyInlineBackgroundColor: z.string().nullish(),
9319
+ headerFontSize: z.number().nullish(),
9320
+ headerFontColor: z.string().nullish(),
9321
+ headerBackgroundColor: z.string().nullish(),
9322
+ hoverHeaderBackgroundColor: z.string().nullish(),
9323
+ hoverHeaderInlineBackgroundColor: z.string().nullish(),
9324
+ selectedBorderColor: z.string().nullish(),
9325
+ selectedBackgroundColor: z.string().nullish(),
9326
+ theme: zTheme.nullish(),
9327
+ locale: zLocale.nullish()
9101
9328
  });
9102
9329
  const zLine = z.object({
9103
9330
  chartType: z.literal('line'),
9104
- dataset: zDataset.optional(),
9105
- dimensions: zDimensions.optional(),
9106
- measures: zMeasureTree.optional(),
9107
- backgroundColor: zBackgroundColor.optional(),
9108
- color: zColor.optional(),
9109
- label: zLabel.optional(),
9110
- legend: zLegend.optional(),
9111
- tooltip: zTooltip.optional(),
9112
- xAxis: zXBandAxis.optional(),
9113
- yAxis: zYLinearAxis.optional(),
9114
- crosshairLine: zCrosshairLine.optional(),
9115
- sort: zSort.optional(),
9116
- sortLegend: zSortLegend.optional(),
9117
- theme: zTheme.optional(),
9118
- pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
9119
- lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
9120
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9121
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9122
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9123
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9124
- locale: zLocale.optional()
9331
+ dataset: zDataset.nullish(),
9332
+ dimensions: zDimensions.nullish(),
9333
+ measures: zMeasureTree.nullish(),
9334
+ backgroundColor: zBackgroundColor.nullish(),
9335
+ color: zColor.nullish(),
9336
+ label: zLabel.nullish(),
9337
+ legend: zLegend.nullish(),
9338
+ tooltip: zTooltip.nullish(),
9339
+ xAxis: zXBandAxis.nullish(),
9340
+ yAxis: zYLinearAxis.nullish(),
9341
+ crosshairLine: zCrosshairLine.nullish(),
9342
+ sort: zSort.nullish(),
9343
+ sortLegend: zSortLegend.nullish(),
9344
+ theme: zTheme.nullish(),
9345
+ pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),
9346
+ lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),
9347
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9348
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9349
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9350
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9351
+ locale: zLocale.nullish()
9125
9352
  });
9126
9353
  const zColumn = z.object({
9127
9354
  chartType: z.literal('column'),
9128
- dataset: zDataset.optional(),
9129
- dimensions: zDimensions.optional(),
9130
- measures: zMeasureTree.optional(),
9131
- backgroundColor: zBackgroundColor.optional(),
9132
- color: zColor.optional(),
9133
- label: zLabel.optional(),
9134
- legend: zLegend.optional(),
9135
- tooltip: zTooltip.optional(),
9136
- xAxis: zXBandAxis.optional(),
9137
- yAxis: zYLinearAxis.optional(),
9138
- crosshairRect: zCrosshairRect.optional(),
9139
- stackCornerRadius: zStackCornerRadius.optional(),
9140
- theme: zTheme.optional(),
9141
- barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
9142
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9143
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9144
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9145
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9146
- locale: zLocale.optional()
9355
+ dataset: zDataset.nullish(),
9356
+ dimensions: zDimensions.nullish(),
9357
+ measures: zMeasureTree.nullish(),
9358
+ backgroundColor: zBackgroundColor.nullish(),
9359
+ color: zColor.nullish(),
9360
+ label: zLabel.nullish(),
9361
+ legend: zLegend.nullish(),
9362
+ tooltip: zTooltip.nullish(),
9363
+ xAxis: zXBandAxis.nullish(),
9364
+ yAxis: zYLinearAxis.nullish(),
9365
+ crosshairRect: zCrosshairRect.nullish(),
9366
+ stackCornerRadius: zStackCornerRadius.nullish(),
9367
+ theme: zTheme.nullish(),
9368
+ barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),
9369
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9370
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9371
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9372
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9373
+ locale: zLocale.nullish()
9147
9374
  });
9148
9375
  const zColumnParallel = z.object({
9149
9376
  chartType: z.literal('columnParallel'),
9150
- dataset: zDataset.optional(),
9151
- dimensions: zDimensions.optional(),
9152
- measures: zMeasureTree.optional(),
9153
- backgroundColor: zBackgroundColor.optional(),
9154
- color: zColor.optional(),
9155
- label: zLabel.optional(),
9156
- legend: zLegend.optional(),
9157
- tooltip: zTooltip.optional(),
9158
- xAxis: zXBandAxis.optional(),
9159
- yAxis: zYLinearAxis.optional(),
9160
- crosshairRect: zCrosshairRect.optional(),
9161
- stackCornerRadius: zStackCornerRadius.optional(),
9162
- theme: zTheme.optional(),
9163
- barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
9164
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9165
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9166
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9167
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9168
- locale: zLocale.optional()
9377
+ dataset: zDataset.nullish(),
9378
+ dimensions: zDimensions.nullish(),
9379
+ measures: zMeasureTree.nullish(),
9380
+ backgroundColor: zBackgroundColor.nullish(),
9381
+ color: zColor.nullish(),
9382
+ label: zLabel.nullish(),
9383
+ legend: zLegend.nullish(),
9384
+ tooltip: zTooltip.nullish(),
9385
+ xAxis: zXBandAxis.nullish(),
9386
+ yAxis: zYLinearAxis.nullish(),
9387
+ crosshairRect: zCrosshairRect.nullish(),
9388
+ stackCornerRadius: zStackCornerRadius.nullish(),
9389
+ theme: zTheme.nullish(),
9390
+ barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),
9391
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9392
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9393
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9394
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9395
+ locale: zLocale.nullish()
9169
9396
  });
9170
9397
  const zColumnPercent = z.object({
9171
9398
  chartType: z.literal('columnPercent'),
9172
- dataset: zDataset.optional(),
9173
- dimensions: zDimensions.optional(),
9174
- measures: zMeasureTree.optional(),
9175
- backgroundColor: zBackgroundColor.optional(),
9176
- color: zColor.optional(),
9177
- label: zLabel.optional(),
9178
- legend: zLegend.optional(),
9179
- tooltip: zTooltip.optional(),
9180
- xAxis: zXBandAxis.optional(),
9181
- yAxis: zYLinearAxis.optional(),
9182
- crosshairRect: zCrosshairRect.optional(),
9183
- stackCornerRadius: zStackCornerRadius.optional(),
9184
- theme: zTheme.optional(),
9185
- barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
9186
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9187
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9188
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9189
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9190
- locale: zLocale.optional()
9399
+ dataset: zDataset.nullish(),
9400
+ dimensions: zDimensions.nullish(),
9401
+ measures: zMeasureTree.nullish(),
9402
+ backgroundColor: zBackgroundColor.nullish(),
9403
+ color: zColor.nullish(),
9404
+ label: zLabel.nullish(),
9405
+ legend: zLegend.nullish(),
9406
+ tooltip: zTooltip.nullish(),
9407
+ xAxis: zXBandAxis.nullish(),
9408
+ yAxis: zYLinearAxis.nullish(),
9409
+ crosshairRect: zCrosshairRect.nullish(),
9410
+ stackCornerRadius: zStackCornerRadius.nullish(),
9411
+ theme: zTheme.nullish(),
9412
+ barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),
9413
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9414
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9415
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9416
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9417
+ locale: zLocale.nullish()
9191
9418
  });
9192
9419
  const zBar = z.object({
9193
9420
  chartType: z.literal('bar'),
9194
- dataset: zDataset.optional(),
9195
- dimensions: zDimensions.optional(),
9196
- measures: zMeasureTree.optional(),
9197
- backgroundColor: zBackgroundColor.optional(),
9198
- color: zColor.optional(),
9199
- label: zLabel.optional(),
9200
- legend: zLegend.optional(),
9201
- tooltip: zTooltip.optional(),
9202
- xAxis: zXLinearAxis.optional(),
9203
- yAxis: zYBandAxis.optional(),
9204
- crosshairRect: zCrosshairRect.optional(),
9205
- stackCornerRadius: zStackCornerRadius.optional(),
9206
- theme: zTheme.optional(),
9207
- barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
9208
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9209
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9210
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9211
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9212
- locale: zLocale.optional()
9421
+ dataset: zDataset.nullish(),
9422
+ dimensions: zDimensions.nullish(),
9423
+ measures: zMeasureTree.nullish(),
9424
+ backgroundColor: zBackgroundColor.nullish(),
9425
+ color: zColor.nullish(),
9426
+ label: zLabel.nullish(),
9427
+ legend: zLegend.nullish(),
9428
+ tooltip: zTooltip.nullish(),
9429
+ xAxis: zXLinearAxis.nullish(),
9430
+ yAxis: zYBandAxis.nullish(),
9431
+ crosshairRect: zCrosshairRect.nullish(),
9432
+ stackCornerRadius: zStackCornerRadius.nullish(),
9433
+ theme: zTheme.nullish(),
9434
+ barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),
9435
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9436
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9437
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9438
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9439
+ locale: zLocale.nullish()
9213
9440
  });
9214
9441
  const zBarParallel = z.object({
9215
9442
  chartType: z.literal('barParallel'),
9216
- dataset: zDataset.optional(),
9217
- dimensions: zDimensions.optional(),
9218
- measures: zMeasureTree.optional(),
9219
- backgroundColor: zBackgroundColor.optional(),
9220
- color: zColor.optional(),
9221
- label: zLabel.optional(),
9222
- legend: zLegend.optional(),
9223
- tooltip: zTooltip.optional(),
9224
- xAxis: zXLinearAxis.optional(),
9225
- yAxis: zYBandAxis.optional(),
9226
- crosshairRect: zCrosshairRect.optional(),
9227
- stackCornerRadius: zStackCornerRadius.optional(),
9228
- theme: zTheme.optional(),
9229
- barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
9230
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9231
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9232
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9233
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9234
- locale: zLocale.optional()
9443
+ dataset: zDataset.nullish(),
9444
+ dimensions: zDimensions.nullish(),
9445
+ measures: zMeasureTree.nullish(),
9446
+ backgroundColor: zBackgroundColor.nullish(),
9447
+ color: zColor.nullish(),
9448
+ label: zLabel.nullish(),
9449
+ legend: zLegend.nullish(),
9450
+ tooltip: zTooltip.nullish(),
9451
+ xAxis: zXLinearAxis.nullish(),
9452
+ yAxis: zYBandAxis.nullish(),
9453
+ crosshairRect: zCrosshairRect.nullish(),
9454
+ stackCornerRadius: zStackCornerRadius.nullish(),
9455
+ theme: zTheme.nullish(),
9456
+ barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),
9457
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9458
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9459
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9460
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9461
+ locale: zLocale.nullish()
9235
9462
  });
9236
9463
  const zBarPercent = z.object({
9237
9464
  chartType: z.literal('barPercent'),
9238
- dataset: zDataset.optional(),
9239
- dimensions: zDimensions.optional(),
9240
- measures: zMeasureTree.optional(),
9241
- backgroundColor: zBackgroundColor.optional(),
9242
- color: zColor.optional(),
9243
- label: zLabel.optional(),
9244
- legend: zLegend.optional(),
9245
- tooltip: zTooltip.optional(),
9246
- xAxis: zXLinearAxis.optional(),
9247
- yAxis: zYBandAxis.optional(),
9248
- crosshairRect: zCrosshairRect.optional(),
9249
- stackCornerRadius: zStackCornerRadius.optional(),
9250
- theme: zTheme.optional(),
9251
- barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
9252
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9253
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9254
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9255
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9256
- locale: zLocale.optional()
9465
+ dataset: zDataset.nullish(),
9466
+ dimensions: zDimensions.nullish(),
9467
+ measures: zMeasureTree.nullish(),
9468
+ backgroundColor: zBackgroundColor.nullish(),
9469
+ color: zColor.nullish(),
9470
+ label: zLabel.nullish(),
9471
+ legend: zLegend.nullish(),
9472
+ tooltip: zTooltip.nullish(),
9473
+ xAxis: zXLinearAxis.nullish(),
9474
+ yAxis: zYBandAxis.nullish(),
9475
+ crosshairRect: zCrosshairRect.nullish(),
9476
+ stackCornerRadius: zStackCornerRadius.nullish(),
9477
+ theme: zTheme.nullish(),
9478
+ barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),
9479
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9480
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9481
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9482
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9483
+ locale: zLocale.nullish()
9257
9484
  });
9258
9485
  const zArea = z.object({
9259
9486
  chartType: z.literal('area'),
9260
- dataset: zDataset.optional(),
9261
- dimensions: zDimensions.optional(),
9262
- measures: zMeasureTree.optional(),
9263
- backgroundColor: zBackgroundColor.optional(),
9264
- color: zColor.optional(),
9265
- label: zLabel.optional(),
9266
- legend: zLegend.optional(),
9267
- tooltip: zTooltip.optional(),
9268
- xAxis: zXBandAxis.optional(),
9269
- yAxis: zYLinearAxis.optional(),
9270
- crosshairLine: zCrosshairLine.optional(),
9271
- theme: zTheme.optional(),
9272
- pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
9273
- lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
9274
- areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
9275
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9276
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9277
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9278
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9279
- locale: zLocale.optional()
9487
+ dataset: zDataset.nullish(),
9488
+ dimensions: zDimensions.nullish(),
9489
+ measures: zMeasureTree.nullish(),
9490
+ backgroundColor: zBackgroundColor.nullish(),
9491
+ color: zColor.nullish(),
9492
+ label: zLabel.nullish(),
9493
+ legend: zLegend.nullish(),
9494
+ tooltip: zTooltip.nullish(),
9495
+ xAxis: zXBandAxis.nullish(),
9496
+ yAxis: zYLinearAxis.nullish(),
9497
+ crosshairLine: zCrosshairLine.nullish(),
9498
+ theme: zTheme.nullish(),
9499
+ pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),
9500
+ lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),
9501
+ areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),
9502
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9503
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9504
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9505
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9506
+ locale: zLocale.nullish()
9280
9507
  });
9281
9508
  const zAreaPercent = z.object({
9282
9509
  chartType: z.literal('areaPercent'),
9283
- dataset: zDataset.optional(),
9284
- dimensions: zDimensions.optional(),
9285
- measures: zMeasureTree.optional(),
9286
- backgroundColor: zBackgroundColor.optional(),
9287
- color: zColor.optional(),
9288
- label: zLabel.optional(),
9289
- legend: zLegend.optional(),
9290
- tooltip: zTooltip.optional(),
9291
- xAxis: zXBandAxis.optional(),
9292
- yAxis: zYLinearAxis.optional(),
9293
- crosshairLine: zCrosshairLine.optional(),
9294
- theme: zTheme.optional(),
9295
- pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
9296
- lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
9297
- areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
9298
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9299
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9300
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9301
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9302
- locale: zLocale.optional()
9510
+ dataset: zDataset.nullish(),
9511
+ dimensions: zDimensions.nullish(),
9512
+ measures: zMeasureTree.nullish(),
9513
+ backgroundColor: zBackgroundColor.nullish(),
9514
+ color: zColor.nullish(),
9515
+ label: zLabel.nullish(),
9516
+ legend: zLegend.nullish(),
9517
+ tooltip: zTooltip.nullish(),
9518
+ xAxis: zXBandAxis.nullish(),
9519
+ yAxis: zYLinearAxis.nullish(),
9520
+ crosshairLine: zCrosshairLine.nullish(),
9521
+ theme: zTheme.nullish(),
9522
+ pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),
9523
+ lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),
9524
+ areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),
9525
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9526
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9527
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9528
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9529
+ locale: zLocale.nullish()
9303
9530
  });
9304
9531
  const zAreaRange = z.object({
9305
9532
  chartType: z.literal('areaRange'),
9306
- dataset: zDataset.optional(),
9307
- dimensions: zDimensions.optional(),
9308
- measures: zMeasureTree.optional(),
9309
- backgroundColor: zBackgroundColor.optional(),
9310
- label: zLabel.optional(),
9311
- xAxis: zXBandAxis.optional(),
9312
- yAxis: zYLinearAxis.optional(),
9313
- crosshairLine: zCrosshairLine.optional(),
9314
- theme: zTheme.optional(),
9315
- pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
9316
- lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
9317
- areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
9318
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9319
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9320
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9321
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9322
- locale: zLocale.optional()
9533
+ dataset: zDataset.nullish(),
9534
+ dimensions: zDimensions.nullish(),
9535
+ measures: zMeasureTree.nullish(),
9536
+ backgroundColor: zBackgroundColor.nullish(),
9537
+ label: zLabel.nullish(),
9538
+ xAxis: zXBandAxis.nullish(),
9539
+ yAxis: zYLinearAxis.nullish(),
9540
+ crosshairLine: zCrosshairLine.nullish(),
9541
+ theme: zTheme.nullish(),
9542
+ pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),
9543
+ lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),
9544
+ areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),
9545
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9546
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9547
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9548
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9549
+ locale: zLocale.nullish()
9323
9550
  });
9324
9551
  const zScatter = z.object({
9325
9552
  chartType: z.literal('scatter'),
9326
- dataset: zDataset.optional(),
9327
- dimensions: zDimensions.optional(),
9328
- measures: zMeasureTree.optional(),
9329
- backgroundColor: zBackgroundColor.optional(),
9330
- color: zColor.optional(),
9331
- label: zLabel.optional(),
9332
- legend: zLegend.optional(),
9333
- tooltip: zTooltip.optional(),
9334
- xAxis: zXLinearAxis.optional(),
9335
- yAxis: zYLinearAxis.optional(),
9336
- crosshairLine: zCrosshairLine.optional(),
9337
- theme: zTheme.optional(),
9338
- pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
9339
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9340
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9341
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9342
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9343
- locale: zLocale.optional()
9553
+ dataset: zDataset.nullish(),
9554
+ dimensions: zDimensions.nullish(),
9555
+ measures: zMeasureTree.nullish(),
9556
+ backgroundColor: zBackgroundColor.nullish(),
9557
+ color: zColor.nullish(),
9558
+ label: zLabel.nullish(),
9559
+ legend: zLegend.nullish(),
9560
+ tooltip: zTooltip.nullish(),
9561
+ xAxis: zXLinearAxis.nullish(),
9562
+ yAxis: zYLinearAxis.nullish(),
9563
+ crosshairLine: zCrosshairLine.nullish(),
9564
+ theme: zTheme.nullish(),
9565
+ pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),
9566
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9567
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9568
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9569
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9570
+ locale: zLocale.nullish()
9344
9571
  });
9345
9572
  const zDualAxis = z.object({
9346
9573
  chartType: z.literal('dualAxis'),
9347
- dataset: zDataset.optional(),
9348
- dimensions: zDimensions.optional(),
9349
- measures: zMeasureTree.optional(),
9350
- dualMeasures: zDualMeasures.optional(),
9351
- dualChartType: z.array(zDualChartType).or(zDualChartType).optional(),
9352
- primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).optional(),
9353
- secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).optional(),
9354
- xAxis: zXBandAxis.optional(),
9355
- backgroundColor: zBackgroundColor.optional(),
9356
- color: zColor.optional(),
9357
- label: zLabel.optional(),
9358
- legend: zLegend.optional(),
9359
- tooltip: zTooltip.optional(),
9360
- crosshairRect: zCrosshairRect.optional(),
9361
- sort: zSort.optional(),
9362
- sortLegend: zSortLegend.optional(),
9363
- theme: zTheme.optional(),
9364
- barStyle: z.array(zBarStyle).or(zBarStyle).optional(),
9365
- pointStyle: z.array(zPointStyle).or(zPointStyle).optional(),
9366
- lineStyle: z.array(zLineStyle).or(zLineStyle).optional(),
9367
- areaStyle: z.array(zAreaStyle).or(zAreaStyle).optional(),
9368
- annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9369
- annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9370
- annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9371
- annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9372
- locale: zLocale.optional()
9574
+ dataset: zDataset.nullish(),
9575
+ dimensions: zDimensions.nullish(),
9576
+ measures: zMeasureTree.nullish(),
9577
+ dualMeasures: zDualMeasures.nullish(),
9578
+ dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),
9579
+ primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9580
+ secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9581
+ xAxis: zXBandAxis.nullish(),
9582
+ backgroundColor: zBackgroundColor.nullish(),
9583
+ color: zColor.nullish(),
9584
+ label: zLabel.nullish(),
9585
+ legend: zLegend.nullish(),
9586
+ tooltip: zTooltip.nullish(),
9587
+ crosshairRect: zCrosshairRect.nullish(),
9588
+ sort: zSort.nullish(),
9589
+ sortLegend: zSortLegend.nullish(),
9590
+ theme: zTheme.nullish(),
9591
+ barStyle: z.array(zBarStyle).or(zBarStyle).nullish(),
9592
+ pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),
9593
+ lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),
9594
+ areaStyle: z.array(zAreaStyle).or(zAreaStyle).nullish(),
9595
+ annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9596
+ annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9597
+ annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9598
+ annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9599
+ locale: zLocale.nullish()
9373
9600
  });
9374
9601
  const zRose = z.object({
9375
9602
  chartType: z.literal('rose'),
9376
- dataset: zDataset.optional(),
9377
- dimensions: zDimensions.optional(),
9378
- measures: zMeasureTree.optional(),
9379
- backgroundColor: zBackgroundColor.optional(),
9380
- color: zColor.optional(),
9381
- label: zLabel.optional(),
9382
- legend: zLegend.optional(),
9383
- tooltip: zTooltip.optional(),
9384
- theme: zTheme.optional(),
9385
- locale: zLocale.optional()
9603
+ dataset: zDataset.nullish(),
9604
+ dimensions: zDimensions.nullish(),
9605
+ measures: zMeasureTree.nullish(),
9606
+ backgroundColor: zBackgroundColor.nullish(),
9607
+ color: zColor.nullish(),
9608
+ label: zLabel.nullish(),
9609
+ legend: zLegend.nullish(),
9610
+ tooltip: zTooltip.nullish(),
9611
+ theme: zTheme.nullish(),
9612
+ locale: zLocale.nullish()
9386
9613
  });
9387
9614
  const zRoseParallel = z.object({
9388
9615
  chartType: z.literal('roseParallel'),
9389
- dataset: zDataset.optional(),
9390
- dimensions: zDimensions.optional(),
9391
- measures: zMeasureTree.optional(),
9392
- backgroundColor: zBackgroundColor.optional(),
9393
- color: zColor.optional(),
9394
- label: zLabel.optional(),
9395
- legend: zLegend.optional(),
9396
- tooltip: zTooltip.optional(),
9397
- theme: zTheme.optional(),
9398
- locale: zLocale.optional()
9616
+ dataset: zDataset.nullish(),
9617
+ dimensions: zDimensions.nullish(),
9618
+ measures: zMeasureTree.nullish(),
9619
+ backgroundColor: zBackgroundColor.nullish(),
9620
+ color: zColor.nullish(),
9621
+ label: zLabel.nullish(),
9622
+ legend: zLegend.nullish(),
9623
+ tooltip: zTooltip.nullish(),
9624
+ theme: zTheme.nullish(),
9625
+ locale: zLocale.nullish()
9399
9626
  });
9400
9627
  const zPie = z.object({
9401
9628
  chartType: z.literal('pie'),
9402
- dataset: zDataset.optional(),
9403
- dimensions: zDimensions.optional(),
9404
- measures: zMeasureTree.optional(),
9405
- backgroundColor: zBackgroundColor.optional(),
9406
- color: zColor.optional(),
9407
- label: zLabel.optional(),
9408
- legend: zLegend.optional(),
9409
- tooltip: zTooltip.optional(),
9410
- theme: zTheme.optional(),
9411
- locale: zLocale.optional()
9629
+ dataset: zDataset.nullish(),
9630
+ dimensions: zDimensions.nullish(),
9631
+ measures: zMeasureTree.nullish(),
9632
+ backgroundColor: zBackgroundColor.nullish(),
9633
+ color: zColor.nullish(),
9634
+ label: zLabel.nullish(),
9635
+ legend: zLegend.nullish(),
9636
+ tooltip: zTooltip.nullish(),
9637
+ theme: zTheme.nullish(),
9638
+ locale: zLocale.nullish()
9412
9639
  });
9413
9640
  const zDonut = z.object({
9414
9641
  chartType: z.literal('donut'),
9415
- dataset: zDataset.optional(),
9416
- dimensions: zDimensions.optional(),
9417
- measures: zMeasureTree.optional(),
9418
- backgroundColor: zBackgroundColor.optional(),
9419
- color: zColor.optional(),
9420
- label: zLabel.optional(),
9421
- legend: zLegend.optional(),
9422
- tooltip: zTooltip.optional(),
9423
- theme: zTheme.optional(),
9424
- locale: zLocale.optional()
9642
+ dataset: zDataset.nullish(),
9643
+ dimensions: zDimensions.nullish(),
9644
+ measures: zMeasureTree.nullish(),
9645
+ backgroundColor: zBackgroundColor.nullish(),
9646
+ color: zColor.nullish(),
9647
+ label: zLabel.nullish(),
9648
+ legend: zLegend.nullish(),
9649
+ tooltip: zTooltip.nullish(),
9650
+ theme: zTheme.nullish(),
9651
+ locale: zLocale.nullish()
9425
9652
  });
9426
9653
  const zRadar = z.object({
9427
9654
  chartType: z.literal('radar'),
9428
- dataset: zDataset.optional(),
9429
- dimensions: zDimensions.optional(),
9430
- measures: zMeasureTree.optional(),
9431
- backgroundColor: zBackgroundColor.optional(),
9432
- color: zColor.optional(),
9433
- label: zLabel.optional(),
9434
- legend: zLegend.optional(),
9435
- tooltip: zTooltip.optional(),
9436
- theme: zTheme.optional(),
9437
- locale: zLocale.optional()
9655
+ dataset: zDataset.nullish(),
9656
+ dimensions: zDimensions.nullish(),
9657
+ measures: zMeasureTree.nullish(),
9658
+ backgroundColor: zBackgroundColor.nullish(),
9659
+ color: zColor.nullish(),
9660
+ label: zLabel.nullish(),
9661
+ legend: zLegend.nullish(),
9662
+ tooltip: zTooltip.nullish(),
9663
+ theme: zTheme.nullish(),
9664
+ locale: zLocale.nullish()
9438
9665
  });
9439
9666
  const zFunnel = z.object({
9440
9667
  chartType: z.literal('funnel'),
9441
- dataset: zDataset.optional(),
9442
- dimensions: zDimensions.optional(),
9443
- measures: zMeasureTree.optional(),
9444
- backgroundColor: zBackgroundColor.optional(),
9445
- color: zLinearColor.optional(),
9446
- label: zLabel.optional(),
9447
- legend: zColorLegend.optional(),
9448
- tooltip: zTooltip.optional(),
9449
- theme: zTheme.optional(),
9450
- locale: zLocale.optional()
9668
+ dataset: zDataset.nullish(),
9669
+ dimensions: zDimensions.nullish(),
9670
+ measures: zMeasureTree.nullish(),
9671
+ backgroundColor: zBackgroundColor.nullish(),
9672
+ color: zLinearColor.nullish(),
9673
+ label: zLabel.nullish(),
9674
+ legend: zColorLegend.nullish(),
9675
+ tooltip: zTooltip.nullish(),
9676
+ theme: zTheme.nullish(),
9677
+ locale: zLocale.nullish()
9451
9678
  });
9452
9679
  const zHeatmap = z.object({
9453
9680
  chartType: z.literal('heatmap'),
9454
- dataset: zDataset.optional(),
9455
- dimensions: zDimensions.optional(),
9456
- measures: zMeasureTree.optional(),
9457
- backgroundColor: zBackgroundColor.optional(),
9458
- color: zLinearColor.optional(),
9459
- label: zLabel.optional(),
9460
- legend: zColorLegend.optional(),
9461
- tooltip: zTooltip.optional(),
9462
- theme: zTheme.optional(),
9463
- locale: zLocale.optional()
9681
+ dataset: zDataset.nullish(),
9682
+ dimensions: zDimensions.nullish(),
9683
+ measures: zMeasureTree.nullish(),
9684
+ backgroundColor: zBackgroundColor.nullish(),
9685
+ color: zLinearColor.nullish(),
9686
+ label: zLabel.nullish(),
9687
+ legend: zColorLegend.nullish(),
9688
+ tooltip: zTooltip.nullish(),
9689
+ theme: zTheme.nullish(),
9690
+ locale: zLocale.nullish()
9464
9691
  });
9465
9692
  const zVSeed = z.discriminatedUnion('chartType', [
9466
9693
  zTable,
@@ -9500,6 +9727,6 @@ const zAdvancedVSeed = z.object({
9500
9727
  annotation: zAnnotation,
9501
9728
  locale: zLocale
9502
9729
  });
9503
- export { Builder, FoldMeasureId, FoldMeasureName, FoldMeasureValue, FoldPrimaryMeasureValue, FoldSecondaryMeasureValue, ORIGINAL_DATA, Separator, UnfoldDimensionGroup, UnfoldDimensionGroupId, areaAdvancedPipeline, areaPercentAdvancedPipeline, areaPercentSpecPipeline, areaRangeAdvancedPipeline, areaRangeSpecPipeline, areaSpecPipeline, autoFormatter, autoNumFormatter, barAdvancedPipeline, barParallelAdvancedPipeline, barParallelSpecPipeline, barPercentAdvancedPipeline, barPercentSpecPipeline, barSpecPipeline, columnAdvancedPipeline, columnParallelAdvancedPipeline, columnParallelSpecPipeline, columnPercentAdvancedPipeline, columnPercentSpecPipeline, columnSpecPipeline, createFormatter, createNumFormatter, darkTheme, dataReshapeFor1D, dataReshapeFor1D1M, dataReshapeFor1D2M, dataReshapeFor2D1M, dataReshapeFor2D1M0Name, donutAdvancedPipeline, donutSpecPipeline, dualAxisAdvancedPipeline, dualAxisSpecPipeline, execPipeline, findAllDimensions, findAllMeasures, findDimensionById, findFirstDimension, findFirstMeasure, findMeasureById, foldMeasures, funnelAdvancedPipeline, funnelSpecPipeline, heatmapAdvancedPipeline, heatmapSpecPipeline, i18n, intl, isDimensionSelector, isMeasureSelector, isPartialDatumSelector, isPivotChart, isPivotTable, isTable, isVChart, isVTable, isValueSelector, lightTheme, lineAdvancedPipeline, lineSpecPipeline, measureDepth, pieAdvancedPipeline, pieSpecPipeline, pivotTableAdvancedPipeline, pivotTableSpecPipeline, preorderTraverse, radarAdvancedPipeline, radarSpecPipeline, registerAll, registerArea, registerAreaPercent, registerAreaRange, registerBar, registerBarParallel, registerBarPercent, registerColumn, registerColumnParallel, registerColumnPercent, registerCustomTheme, registerDarkTheme, registerDonut, registerFunnel, registerHeatmap, registerLightTheme, registerLine, registerPie, registerPivotTable, registerRadar, registerRose, registerRoseParallel, registerScatter, registerTable, roseAdvancedPipeline, roseParallelAdvancedPipeline, roseParallelSpecPipeline, roseSpecPipeline, scatterAdvancedPipeline, scatterSpecPipeline, selector_selector as selector, tableAdvancedPipeline, tableSpecPipeline, unfoldDimensions, updateAdvanced, updateSpec, zAdvancedVSeed, zAnalysis, zAnnotation, zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zArea, zAreaConfig, zAreaPercent, zAreaPercentConfig, zAreaRange, zAreaRangeConfig, zAreaStyle, zAxis, zBackgroundColor, zBar, zBarConfig, zBarParallel, zBarParallelConfig, zBarPercent, zBarPercentConfig, zBarStyle, zChartType, zColor, zColorLegend, zColumn, zColumnConfig, zColumnParallel, zColumnParallelConfig, zColumnPercent, zColumnPercentConfig, zConfig, zCrosshairLine, zCrosshairRect, zCustomTheme, zCustomThemeConfig, zDataset, zDatasetReshapeInfo, zDatum, zDimension, zDimensionGroup, zDimensionTree, zDimensions, zDonut, zDonutConfig, zDualAxis, zDualAxisConfig, zDualChartType, zDualMeasure, zDualMeasures, zEncoding, zFoldInfo, zFunnel, zFunnelConfig, zHeatmap, zHeatmapConfig, zLabel, zLegend, zLine, zLineConfig, zLineStyle, zLinearColor, zLocale, zMarkStyle, zMeasure, zMeasureGroup, zMeasureTree, zMeasures, zNumFormat, zPie, zPieConfig, zPivotTable, zPivotTableConfig, zPointStyle, zRadar, zRadarConfig, zRose, zRoseConfig, zRoseParallel, zRoseParallelConfig, zScatter, zScatterConfig, zSort, zSortLegend, zStackCornerRadius, zTable, zTableConfig, zTheme, zTooltip, zUnfoldInfo, zVSeed, zXBandAxis, zXLinearAxis, zYBandAxis, zYLinearAxis };
9730
+ export { Builder, FoldMeasureId, FoldMeasureName, FoldMeasureValue, FoldPrimaryMeasureValue, FoldSecondaryMeasureValue, ORIGINAL_DATA, Separator, UnfoldDimensionGroup, UnfoldDimensionGroupId, areaAdvancedPipeline, areaPercentAdvancedPipeline, areaPercentSpecPipeline, areaRangeAdvancedPipeline, areaRangeSpecPipeline, areaSpecPipeline, autoFormatter, autoNumFormatter, barAdvancedPipeline, barParallelAdvancedPipeline, barParallelSpecPipeline, barPercentAdvancedPipeline, barPercentSpecPipeline, barSpecPipeline, columnAdvancedPipeline, columnParallelAdvancedPipeline, columnParallelSpecPipeline, columnPercentAdvancedPipeline, columnPercentSpecPipeline, columnSpecPipeline, createFormatter, createNumFormatter, darkTheme, dataReshapeFor1D, dataReshapeFor1D1M, dataReshapeFor1D2M, dataReshapeFor2D1M, dataReshapeFor2D1M0Name, donutAdvancedPipeline, donutSpecPipeline, dualAxisAdvancedPipeline, dualAxisSpecPipeline, execPipeline, findAllDimensions, findAllMeasures, findDimensionById, findFirstDimension, findFirstMeasure, findMeasureById, foldMeasures, funnelAdvancedPipeline, funnelSpecPipeline, heatmapAdvancedPipeline, heatmapSpecPipeline, i18n, intl, isDimension, isDimensionGroup, isDimensionSelector, isDimensions, isMeasure, isMeasureGroup, isMeasureSelector, isMeasures, isPartialDatumSelector, isPivotChart, isPivotTable, isTable, isVChart, isVTable, isValueSelector, lightTheme, lineAdvancedPipeline, lineSpecPipeline, measureDepth, pieAdvancedPipeline, pieSpecPipeline, pivotTableAdvancedPipeline, pivotTableSpecPipeline, preorderTraverse, radarAdvancedPipeline, radarSpecPipeline, registerAll, registerArea, registerAreaPercent, registerAreaRange, registerBar, registerBarParallel, registerBarPercent, registerColumn, registerColumnParallel, registerColumnPercent, registerCustomTheme, registerDarkTheme, registerDonut, registerFunnel, registerHeatmap, registerLightTheme, registerLine, registerPie, registerPivotTable, registerRadar, registerRose, registerRoseParallel, registerScatter, registerTable, roseAdvancedPipeline, roseParallelAdvancedPipeline, roseParallelSpecPipeline, roseSpecPipeline, scatterAdvancedPipeline, scatterSpecPipeline, selector_selector as selector, tableAdvancedPipeline, tableSpecPipeline, unfoldDimensions, updateAdvanced, updateSpec, zAdvancedVSeed, zAnalysis, zAnnotation, zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zArea, zAreaConfig, zAreaPercent, zAreaPercentConfig, zAreaRange, zAreaRangeConfig, zAreaStyle, zAxis, zBackgroundColor, zBar, zBarConfig, zBarParallel, zBarParallelConfig, zBarPercent, zBarPercentConfig, zBarStyle, zChartType, zColor, zColorLegend, zColumn, zColumnConfig, zColumnParallel, zColumnParallelConfig, zColumnPercent, zColumnPercentConfig, zConfig, zCrosshairLine, zCrosshairRect, zCustomTheme, zCustomThemeConfig, zDataset, zDatasetReshapeInfo, zDatum, zDimension, zDimensionGroup, zDimensionTree, zDimensions, zDonut, zDonutConfig, zDualAxis, zDualAxisConfig, zDualChartType, zDualMeasure, zDualMeasures, zEncoding, zFoldInfo, zFunnel, zFunnelConfig, zHeatmap, zHeatmapConfig, zLabel, zLegend, zLine, zLineConfig, zLineStyle, zLinearColor, zLocale, zMarkStyle, zMeasure, zMeasureGroup, zMeasureTree, zMeasures, zNumFormat, zPie, zPieConfig, zPivotTable, zPivotTableConfig, zPointStyle, zRadar, zRadarConfig, zRose, zRoseConfig, zRoseParallel, zRoseParallelConfig, zScatter, zScatterConfig, zSort, zSortLegend, zStackCornerRadius, zTable, zTableConfig, zTheme, zTooltip, zUnfoldInfo, zVSeed, zXBandAxis, zXLinearAxis, zYBandAxis, zYLinearAxis };
9504
9731
 
9505
9732
  //# sourceMappingURL=index.js.map