@visactor/vseed 0.1.29 → 0.1.31

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 (41) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +864 -0
  4. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js +6 -4
  5. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js.map +1 -1
  6. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js +18 -13
  7. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js.map +1 -1
  8. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js +1 -0
  9. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js.map +1 -1
  10. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +9 -7
  11. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  12. package/dist/esm/pipeline/spec/table/pipeline/pivotTable.js +2 -1
  13. package/dist/esm/pipeline/spec/table/pipeline/pivotTable.js.map +1 -1
  14. package/dist/esm/pipeline/spec/table/pipes/corner/index.d.ts +1 -0
  15. package/dist/esm/pipeline/spec/table/pipes/corner/index.js +2 -0
  16. package/dist/esm/pipeline/spec/table/pipes/corner/titleOnDimension.d.ts +2 -0
  17. package/dist/esm/pipeline/spec/table/pipes/corner/titleOnDimension.js +12 -0
  18. package/dist/esm/pipeline/spec/table/pipes/corner/titleOnDimension.js.map +1 -0
  19. package/dist/esm/pipeline/spec/table/pipes/index.d.ts +1 -0
  20. package/dist/esm/pipeline/spec/table/pipes/index.js +1 -0
  21. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js +5 -3
  22. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js.map +1 -1
  23. package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js.map +1 -1
  24. package/dist/esm/pipeline/utils/chatType.d.ts +1 -0
  25. package/dist/esm/pipeline/utils/chatType.js +2 -1
  26. package/dist/esm/pipeline/utils/chatType.js.map +1 -1
  27. package/dist/esm/theme/common/table.d.ts +3 -1
  28. package/dist/esm/theme/common/table.js +11 -1
  29. package/dist/esm/theme/common/table.js.map +1 -1
  30. package/dist/esm/theme/dark/dark.js +37 -19
  31. package/dist/esm/theme/dark/dark.js.map +1 -1
  32. package/dist/esm/theme/light/light.js +37 -19
  33. package/dist/esm/theme/light/light.js.map +1 -1
  34. package/dist/esm/types/advancedVSeed.d.ts +288 -0
  35. package/dist/esm/types/properties/config/config.d.ts +297 -0
  36. package/dist/esm/types/properties/config/config.js +25 -9
  37. package/dist/esm/types/properties/config/config.js.map +1 -1
  38. package/dist/esm/types/properties/theme/customTheme.d.ts +288 -0
  39. package/dist/umd/index.js +157 -72
  40. package/dist/umd/index.js.map +1 -1
  41. package/package.json +1 -1
package/dist/umd/index.js CHANGED
@@ -119,6 +119,7 @@
119
119
  zMeasureTree: ()=>zMeasureTree,
120
120
  zStackCornerRadius: ()=>zStackCornerRadius,
121
121
  registerRose: ()=>registerRose,
122
+ zPivotChartGridConfig: ()=>zPivotChartGridConfig,
122
123
  zRose: ()=>zRose,
123
124
  registerTable: ()=>registerTable,
124
125
  isMeasureGroup: ()=>isMeasureGroup,
@@ -294,10 +295,11 @@
294
295
  zScatterConfig: ()=>zScatterConfig,
295
296
  donutAdvancedPipeline: ()=>donutAdvancedPipeline,
296
297
  zTooltip: ()=>zTooltip,
298
+ isBarLikeChart: ()=>isBarLikeChart,
297
299
  barParallelAdvancedPipeline: ()=>barParallelAdvancedPipeline,
298
300
  deleteMeasureTreeByCallback: ()=>deleteMeasureTreeByCallback,
299
- barPercentSpecPipeline: ()=>barPercentSpecPipeline,
300
301
  zBarPercentConfig: ()=>zBarPercentConfig,
302
+ barPercentSpecPipeline: ()=>barPercentSpecPipeline,
301
303
  dataReshapeByEncoding: ()=>dataReshapeByEncoding,
302
304
  lineSpecPipeline: ()=>lineSpecPipeline,
303
305
  zDimensionGroup: ()=>zDimensionGroup
@@ -561,6 +563,7 @@
561
563
  const isAreaPercent = (vseed)=>vseed.chartType === ChartTypeEnum.AreaPercent;
562
564
  const isColumnPercent = (vseed)=>vseed.chartType === ChartTypeEnum.ColumnPercent;
563
565
  const isBarPercent = (vseed)=>vseed.chartType === ChartTypeEnum.BarPercent;
566
+ const isBarLikeChart = (vseed)=>vseed.chartType === ChartTypeEnum.Bar || vseed.chartType === ChartTypeEnum.BarPercent || vseed.chartType === ChartTypeEnum.BarParallel;
564
567
  const isVTable = (vseed)=>[
565
568
  'table',
566
569
  'pivotTable'
@@ -1333,11 +1336,12 @@
1333
1336
  const result = {
1334
1337
  ...advancedVSeed
1335
1338
  };
1336
- const MeaName = {
1339
+ const measures = findAllMeasures(advancedVSeed.measures);
1340
+ if (measures.length > 1 && !result.dimensions?.some((dim)=>dim.id === MeasureName)) result.dimensions?.push({
1337
1341
  id: MeasureName,
1338
- alias: intl.i18n`指标名称`
1339
- };
1340
- if (!result.dimensions?.some((dim)=>dim.id === MeasureName)) result.dimensions?.push(MeaName);
1342
+ alias: intl.i18n`指标名称`,
1343
+ encoding: 'column'
1344
+ });
1341
1345
  return result;
1342
1346
  };
1343
1347
  const encodingForPivotTable = (advancedVSeed)=>{
@@ -1596,20 +1600,31 @@
1596
1600
  }))
1597
1601
  };
1598
1602
  };
1603
+ const titleOnDimension = (spec)=>{
1604
+ const { rows = [], columns = [] } = spec;
1605
+ return {
1606
+ ...spec,
1607
+ corner: {
1608
+ titleOnDimension: rows.length <= 1 && columns.length >= 1 ? 'column' : 'row'
1609
+ }
1610
+ };
1611
+ };
1599
1612
  const pivotIndicators = (spec, context)=>{
1600
1613
  const { advancedVSeed } = context;
1601
1614
  const { measures, datasetReshapeInfo } = advancedVSeed;
1602
1615
  const { foldInfo } = datasetReshapeInfo[0];
1616
+ const hasRow = spec?.rows?.length > 0;
1617
+ const foldMapValues = Object.values(foldInfo.foldMap);
1603
1618
  return {
1604
1619
  ...spec,
1605
- indicatorsAsCol: true,
1606
1620
  indicatorTitle: intl.i18n`指标名称`,
1607
- hideIndicatorName: true,
1621
+ indicatorsAsCol: hasRow,
1622
+ hideIndicatorName: hasRow,
1608
1623
  indicators: [
1609
1624
  {
1610
1625
  cellType: 'text',
1611
1626
  indicatorKey: foldInfo.measureValue,
1612
- title: 'indicator',
1627
+ title: foldMapValues.length > 1 ? '' : foldMapValues[0],
1613
1628
  width: 'auto',
1614
1629
  format: pivotIndicators_fieldFormat(measures, foldInfo)
1615
1630
  }
@@ -1752,6 +1767,7 @@
1752
1767
  initPivotTable,
1753
1768
  pivotColumns,
1754
1769
  pivotRows,
1770
+ titleOnDimension,
1755
1771
  pivotIndicators,
1756
1772
  bodyStyle,
1757
1773
  headerStyle,
@@ -3549,29 +3565,31 @@
3549
3565
  const annotationPointList = Array.isArray(annotationPoint) ? annotationPoint : [
3550
3566
  annotationPoint
3551
3567
  ];
3568
+ const isHorizontalBar = isBarLikeChart(advancedVSeed);
3569
+ const defaultStyle = isHorizontalBar ? {
3570
+ textAlign: 'right',
3571
+ textBaseline: 'middle'
3572
+ } : {
3573
+ textAlign: 'center',
3574
+ textBaseline: 'top'
3575
+ };
3552
3576
  const markPoint = annotationPointList.flatMap((annotationPoint)=>{
3553
- 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;
3577
+ const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = defaultStyle.textAlign, textBaseline = defaultStyle.textBaseline, textBackgroundBorderColor, textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundColor = '#212121', textBackgroundPadding = 2, textBackgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
3554
3578
  const dataset = advancedVSeed.dataset.flat();
3555
3579
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3580
+ const dx = -10 - (isHorizontalBar ? textFontSize : 0);
3581
+ const dy = isHorizontalBar ? 0 : textFontSize;
3556
3582
  return selectedData.map((datum)=>({
3557
3583
  zIndex: 1000,
3558
3584
  regionRelative: true,
3559
- position: (data, context)=>{
3560
- const targetDatum = data.find((item)=>isSubset(datum, item));
3561
- if (targetDatum) {
3562
- const { x, y } = context.dataToPosition(targetDatum);
3563
- return {
3564
- x,
3565
- y
3566
- };
3567
- }
3568
- },
3585
+ coordinate: (data)=>data.find((item)=>isSubset(datum, item)),
3569
3586
  itemLine: {
3570
3587
  visible: false
3571
3588
  },
3572
3589
  itemContent: {
3573
3590
  offsetY,
3574
3591
  offsetX,
3592
+ confine: true,
3575
3593
  text: {
3576
3594
  text: text,
3577
3595
  style: {
@@ -3583,7 +3601,8 @@
3583
3601
  lineWidth: 1,
3584
3602
  fontSize: textFontSize,
3585
3603
  fontWeight: textFontWeight,
3586
- dy: textFontSize
3604
+ dx,
3605
+ dy
3587
3606
  },
3588
3607
  labelBackground: {
3589
3608
  visible: textBackgroundVisible,
@@ -3593,7 +3612,8 @@
3593
3612
  fill: textBackgroundColor,
3594
3613
  stroke: textBackgroundBorderColor,
3595
3614
  lineWidth: textBackgroundBorderWidth,
3596
- dy: textFontSize
3615
+ dx,
3616
+ dy
3597
3617
  }
3598
3618
  }
3599
3619
  }
@@ -3966,18 +3986,20 @@
3966
3986
  };
3967
3987
  };
3968
3988
  const pivotGridStyle = (spec, context)=>{
3969
- const { vseed } = context;
3989
+ const { vseed, advancedVSeed } = context;
3990
+ const { config, chartType } = advancedVSeed;
3991
+ const themConfig = config?.[chartType]?.pivotGrid ?? {};
3970
3992
  const onlyCombination = !isPivot(vseed) && isCombination(vseed);
3971
3993
  const result = {
3972
3994
  ...spec
3973
3995
  };
3974
3996
  const transparent = 'rgba(0,0,0,0)';
3975
- const borderColor = '#e3e5eb';
3976
- const bodyFontColor = '#141414';
3977
- const headerFontColor = '#21252c';
3978
- const headerBackgroundColor = 'rgba(0,0,0,0)';
3979
- const hoverHeaderBackgroundColor = onlyCombination ? transparent : '#D9DDE4';
3980
- const hoverHeaderInlineBackgroundColor = onlyCombination ? transparent : '#D9DDE455';
3997
+ const borderColor = themConfig.borderColor ?? '#e3e5eb';
3998
+ const bodyFontColor = themConfig.bodyFontColor ?? '#141414';
3999
+ const headerFontColor = themConfig.headerFontColor ?? '#21252c';
4000
+ const headerBackgroundColor = themConfig.headerBackgroundColor ?? 'rgba(0,0,0,0)';
4001
+ const hoverHeaderBackgroundColor = onlyCombination ? transparent : themConfig.hoverHeaderBackgroundColor ?? '#D9DDE4';
4002
+ const hoverHeaderInlineBackgroundColor = onlyCombination ? transparent : themConfig.hoverHeaderInlineBackgroundColor ?? '#D9DDE455';
3981
4003
  return {
3982
4004
  ...result,
3983
4005
  theme: {
@@ -4239,6 +4261,7 @@
4239
4261
  dimensionKey: dim.id,
4240
4262
  title: dim.alias || dim.id
4241
4263
  }));
4264
+ console.log('Pivot Column Dimensions:', columns);
4242
4265
  return {
4243
4266
  ...result,
4244
4267
  columns: columns
@@ -9213,6 +9236,16 @@
9213
9236
  selectedBorderColor: '#3073f2',
9214
9237
  selectedBackgroundColor: '#4284ff33'
9215
9238
  });
9239
+ const pickPivotChartGridConfig = (tableConfig)=>({
9240
+ borderColor: tableConfig.borderColor,
9241
+ bodyFontColor: tableConfig.bodyFontColor,
9242
+ headerFontColor: tableConfig.headerFontColor,
9243
+ headerBackgroundColor: tableConfig.headerBackgroundColor,
9244
+ hoverHeaderBackgroundColor: tableConfig.hoverHeaderBackgroundColor,
9245
+ hoverHeaderInlineBackgroundColor: tableConfig.hoverHeaderInlineBackgroundColor
9246
+ });
9247
+ const getLightPivotChartGridConfig = ()=>pickPivotChartGridConfig(getLightTableConfig());
9248
+ const getDarkPivotChartGridConfig = ()=>pickPivotChartGridConfig(getDarkTableConfig());
9216
9249
  const getDefaultTooltip = ()=>({
9217
9250
  enable: true
9218
9251
  });
@@ -9403,7 +9436,8 @@
9403
9436
  ...baseConfig,
9404
9437
  xAxis: bandAxis,
9405
9438
  yAxis: linearAxis,
9406
- crosshairLine
9439
+ crosshairLine,
9440
+ pivotGrid: getLightPivotChartGridConfig()
9407
9441
  },
9408
9442
  column: {
9409
9443
  ...baseConfig,
@@ -9415,7 +9449,8 @@
9415
9449
  4,
9416
9450
  0,
9417
9451
  0
9418
- ]
9452
+ ],
9453
+ pivotGrid: getLightPivotChartGridConfig()
9419
9454
  },
9420
9455
  columnParallel: {
9421
9456
  ...baseConfig,
@@ -9427,7 +9462,8 @@
9427
9462
  4,
9428
9463
  0,
9429
9464
  0
9430
- ]
9465
+ ],
9466
+ pivotGrid: getLightPivotChartGridConfig()
9431
9467
  },
9432
9468
  columnPercent: {
9433
9469
  ...baseConfig,
@@ -9441,7 +9477,8 @@
9441
9477
  4,
9442
9478
  0,
9443
9479
  0
9444
- ]
9480
+ ],
9481
+ pivotGrid: getLightPivotChartGridConfig()
9445
9482
  },
9446
9483
  bar: {
9447
9484
  ...baseConfig,
@@ -9453,7 +9490,8 @@
9453
9490
  4,
9454
9491
  4,
9455
9492
  0
9456
- ]
9493
+ ],
9494
+ pivotGrid: getLightPivotChartGridConfig()
9457
9495
  },
9458
9496
  barParallel: {
9459
9497
  ...baseConfig,
@@ -9465,7 +9503,8 @@
9465
9503
  4,
9466
9504
  4,
9467
9505
  0
9468
- ]
9506
+ ],
9507
+ pivotGrid: getLightPivotChartGridConfig()
9469
9508
  },
9470
9509
  barPercent: {
9471
9510
  ...baseConfig,
@@ -9479,13 +9518,15 @@
9479
9518
  4,
9480
9519
  4,
9481
9520
  0
9482
- ]
9521
+ ],
9522
+ pivotGrid: getLightPivotChartGridConfig()
9483
9523
  },
9484
9524
  area: {
9485
9525
  ...baseConfig,
9486
9526
  xAxis: bandAxis,
9487
9527
  yAxis: linearAxis,
9488
- crosshairLine
9528
+ crosshairLine,
9529
+ pivotGrid: getLightPivotChartGridConfig()
9489
9530
  },
9490
9531
  areaPercent: {
9491
9532
  ...baseConfig,
@@ -9493,7 +9534,8 @@
9493
9534
  yAxis: {
9494
9535
  ...linearAxis
9495
9536
  },
9496
- crosshairLine
9537
+ crosshairLine,
9538
+ pivotGrid: getLightPivotChartGridConfig()
9497
9539
  },
9498
9540
  scatter: {
9499
9541
  ...baseConfig,
@@ -9520,7 +9562,8 @@
9520
9562
  ...baseConfig.label,
9521
9563
  showValue: false,
9522
9564
  showValuePercent: false
9523
- }
9565
+ },
9566
+ pivotGrid: getLightPivotChartGridConfig()
9524
9567
  },
9525
9568
  dualAxis: {
9526
9569
  ...baseConfig,
@@ -9536,7 +9579,8 @@
9536
9579
  primary: 'column',
9537
9580
  secondary: 'line'
9538
9581
  },
9539
- crosshairRect
9582
+ crosshairRect,
9583
+ pivotGrid: getLightPivotChartGridConfig()
9540
9584
  },
9541
9585
  pie: {
9542
9586
  ...baseConfig,
@@ -9545,7 +9589,8 @@
9545
9589
  showValuePercent: true,
9546
9590
  labelLayout: 'labelLine',
9547
9591
  showDimension: true
9548
- }
9592
+ },
9593
+ pivotGrid: getLightPivotChartGridConfig()
9549
9594
  },
9550
9595
  donut: {
9551
9596
  ...baseConfig,
@@ -9554,10 +9599,12 @@
9554
9599
  showValuePercent: true,
9555
9600
  labelLayout: 'labelLine',
9556
9601
  showDimension: true
9557
- }
9602
+ },
9603
+ pivotGrid: getLightPivotChartGridConfig()
9558
9604
  },
9559
9605
  radar: {
9560
- ...baseConfig
9606
+ ...baseConfig,
9607
+ pivotGrid: getLightPivotChartGridConfig()
9561
9608
  },
9562
9609
  rose: {
9563
9610
  ...baseConfig,
@@ -9565,7 +9612,8 @@
9565
9612
  ...baseConfig.label,
9566
9613
  showValuePercent: true,
9567
9614
  showDimension: true
9568
- }
9615
+ },
9616
+ pivotGrid: getLightPivotChartGridConfig()
9569
9617
  },
9570
9618
  roseParallel: {
9571
9619
  ...baseConfig,
@@ -9573,17 +9621,20 @@
9573
9621
  ...baseConfig.label,
9574
9622
  showValuePercent: true,
9575
9623
  showDimension: true
9576
- }
9624
+ },
9625
+ pivotGrid: getLightPivotChartGridConfig()
9577
9626
  },
9578
9627
  funnel: {
9579
- ...baseConfig
9628
+ ...baseConfig,
9629
+ pivotGrid: getLightPivotChartGridConfig()
9580
9630
  },
9581
9631
  heatmap: {
9582
9632
  ...baseConfig,
9583
9633
  label: {
9584
9634
  ...baseConfig.label,
9585
9635
  labelColorSmartInvert: true
9586
- }
9636
+ },
9637
+ pivotGrid: getLightPivotChartGridConfig()
9587
9638
  }
9588
9639
  }
9589
9640
  };
@@ -9622,7 +9673,8 @@
9622
9673
  ...baseConfig,
9623
9674
  xAxis: bandAxis,
9624
9675
  yAxis: linearAxis,
9625
- crosshairLine: crosshairLine
9676
+ crosshairLine: crosshairLine,
9677
+ pivotGrid: getDarkPivotChartGridConfig()
9626
9678
  },
9627
9679
  column: {
9628
9680
  ...baseConfig,
@@ -9634,7 +9686,8 @@
9634
9686
  4,
9635
9687
  0,
9636
9688
  0
9637
- ]
9689
+ ],
9690
+ pivotGrid: getDarkPivotChartGridConfig()
9638
9691
  },
9639
9692
  columnParallel: {
9640
9693
  ...baseConfig,
@@ -9646,7 +9699,8 @@
9646
9699
  4,
9647
9700
  0,
9648
9701
  0
9649
- ]
9702
+ ],
9703
+ pivotGrid: getDarkPivotChartGridConfig()
9650
9704
  },
9651
9705
  columnPercent: {
9652
9706
  ...baseConfig,
@@ -9658,7 +9712,8 @@
9658
9712
  4,
9659
9713
  0,
9660
9714
  0
9661
- ]
9715
+ ],
9716
+ pivotGrid: getDarkPivotChartGridConfig()
9662
9717
  },
9663
9718
  bar: {
9664
9719
  ...baseConfig,
@@ -9670,7 +9725,8 @@
9670
9725
  4,
9671
9726
  4,
9672
9727
  0
9673
- ]
9728
+ ],
9729
+ pivotGrid: getDarkPivotChartGridConfig()
9674
9730
  },
9675
9731
  barParallel: {
9676
9732
  ...baseConfig,
@@ -9682,7 +9738,8 @@
9682
9738
  4,
9683
9739
  4,
9684
9740
  0
9685
- ]
9741
+ ],
9742
+ pivotGrid: getDarkPivotChartGridConfig()
9686
9743
  },
9687
9744
  barPercent: {
9688
9745
  ...baseConfig,
@@ -9694,19 +9751,22 @@
9694
9751
  4,
9695
9752
  4,
9696
9753
  0
9697
- ]
9754
+ ],
9755
+ pivotGrid: getDarkPivotChartGridConfig()
9698
9756
  },
9699
9757
  area: {
9700
9758
  ...baseConfig,
9701
9759
  xAxis: bandAxis,
9702
9760
  yAxis: linearAxis,
9703
- crosshairLine: crosshairLine
9761
+ crosshairLine: crosshairLine,
9762
+ pivotGrid: getDarkPivotChartGridConfig()
9704
9763
  },
9705
9764
  areaPercent: {
9706
9765
  ...baseConfig,
9707
9766
  xAxis: bandAxis,
9708
9767
  yAxis: linearAxis,
9709
- crosshairLine: crosshairLine
9768
+ crosshairLine: crosshairLine,
9769
+ pivotGrid: getDarkPivotChartGridConfig()
9710
9770
  },
9711
9771
  scatter: {
9712
9772
  ...baseConfig,
@@ -9733,7 +9793,8 @@
9733
9793
  ...baseConfig.label,
9734
9794
  showValue: false,
9735
9795
  showValuePercent: false
9736
- }
9796
+ },
9797
+ pivotGrid: getDarkPivotChartGridConfig()
9737
9798
  },
9738
9799
  dualAxis: {
9739
9800
  ...baseConfig,
@@ -9749,7 +9810,8 @@
9749
9810
  primary: 'column',
9750
9811
  secondary: 'line'
9751
9812
  },
9752
- crosshairRect
9813
+ crosshairRect,
9814
+ pivotGrid: getDarkPivotChartGridConfig()
9753
9815
  },
9754
9816
  pie: {
9755
9817
  ...baseConfig,
@@ -9758,7 +9820,8 @@
9758
9820
  showValuePercent: true,
9759
9821
  labelLayout: 'labelLine',
9760
9822
  showDimension: true
9761
- }
9823
+ },
9824
+ pivotGrid: getDarkPivotChartGridConfig()
9762
9825
  },
9763
9826
  donut: {
9764
9827
  ...baseConfig,
@@ -9767,10 +9830,12 @@
9767
9830
  showValuePercent: true,
9768
9831
  labelLayout: 'labelLine',
9769
9832
  showDimension: true
9770
- }
9833
+ },
9834
+ pivotGrid: getDarkPivotChartGridConfig()
9771
9835
  },
9772
9836
  radar: {
9773
- ...baseConfig
9837
+ ...baseConfig,
9838
+ pivotGrid: getDarkPivotChartGridConfig()
9774
9839
  },
9775
9840
  rose: {
9776
9841
  ...baseConfig,
@@ -9778,7 +9843,8 @@
9778
9843
  ...baseConfig.label,
9779
9844
  showValuePercent: true,
9780
9845
  showDimension: true
9781
- }
9846
+ },
9847
+ pivotGrid: getDarkPivotChartGridConfig()
9782
9848
  },
9783
9849
  roseParallel: {
9784
9850
  ...baseConfig,
@@ -9786,17 +9852,20 @@
9786
9852
  ...baseConfig.label,
9787
9853
  showValuePercent: true,
9788
9854
  showDimension: true
9789
- }
9855
+ },
9856
+ pivotGrid: getDarkPivotChartGridConfig()
9790
9857
  },
9791
9858
  funnel: {
9792
- ...baseConfig
9859
+ ...baseConfig,
9860
+ pivotGrid: getDarkPivotChartGridConfig()
9793
9861
  },
9794
9862
  heatmap: {
9795
9863
  ...baseConfig,
9796
9864
  label: {
9797
9865
  ...baseConfig.label,
9798
9866
  labelColorSmartInvert: true
9799
- }
9867
+ },
9868
+ pivotGrid: getDarkPivotChartGridConfig()
9800
9869
  }
9801
9870
  }
9802
9871
  };
@@ -13622,6 +13691,14 @@
13622
13691
  selectedBackgroundColor: schemas_string().nullish()
13623
13692
  });
13624
13693
  const zPivotTableConfig = zTableConfig;
13694
+ const zPivotChartGridConfig = schemas_object({
13695
+ borderColor: schemas_string().nullish(),
13696
+ bodyFontColor: schemas_string().nullish(),
13697
+ headerFontColor: schemas_string().nullish(),
13698
+ headerBackgroundColor: schemas_string().nullish(),
13699
+ hoverHeaderBackgroundColor: schemas_string().nullish(),
13700
+ hoverHeaderInlineBackgroundColor: schemas_string().nullish()
13701
+ });
13625
13702
  const zLineConfig = schemas_object({
13626
13703
  backgroundColor: zBackgroundColor.nullish(),
13627
13704
  label: zLabel.nullish(),
@@ -13630,7 +13707,8 @@
13630
13707
  legend: zLegend.nullish(),
13631
13708
  xAxis: zXBandAxis.nullish(),
13632
13709
  yAxis: zYLinearAxis.nullish(),
13633
- crosshairLine: zCrosshairLine.nullish()
13710
+ crosshairLine: zCrosshairLine.nullish(),
13711
+ pivotGrid: zPivotChartGridConfig.nullish()
13634
13712
  });
13635
13713
  const zColumnConfig = schemas_object({
13636
13714
  backgroundColor: zBackgroundColor.nullish(),
@@ -13641,7 +13719,8 @@
13641
13719
  xAxis: zXBandAxis.nullish(),
13642
13720
  yAxis: zYLinearAxis.nullish(),
13643
13721
  crosshairRect: zCrosshairRect.nullish(),
13644
- stackCornerRadius: zStackCornerRadius.nullish()
13722
+ stackCornerRadius: zStackCornerRadius.nullish(),
13723
+ pivotGrid: zPivotChartGridConfig.nullish()
13645
13724
  });
13646
13725
  const zColumnParallelConfig = zColumnConfig;
13647
13726
  const zColumnPercentConfig = zColumnConfig;
@@ -13654,7 +13733,8 @@
13654
13733
  xAxis: zXLinearAxis.nullish(),
13655
13734
  yAxis: zYBandAxis.nullish(),
13656
13735
  crosshairRect: zCrosshairRect.nullish(),
13657
- stackCornerRadius: zStackCornerRadius.nullish()
13736
+ stackCornerRadius: zStackCornerRadius.nullish(),
13737
+ pivotGrid: zPivotChartGridConfig.nullish()
13658
13738
  });
13659
13739
  const zBarParallelConfig = zBarConfig;
13660
13740
  const zBarPercentConfig = zBarConfig;
@@ -13666,7 +13746,8 @@
13666
13746
  legend: zLegend.nullish(),
13667
13747
  xAxis: zXBandAxis.nullish(),
13668
13748
  yAxis: zYLinearAxis.nullish(),
13669
- crosshairLine: zCrosshairLine.nullish()
13749
+ crosshairLine: zCrosshairLine.nullish(),
13750
+ pivotGrid: zPivotChartGridConfig.nullish()
13670
13751
  });
13671
13752
  const zAreaPercentConfig = zAreaConfig;
13672
13753
  const zDualAxisConfig = schemas_object({
@@ -13680,7 +13761,8 @@
13680
13761
  primaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
13681
13762
  secondaryYAxis: schemas_array(zYLinearAxis).or(zYLinearAxis).nullish(),
13682
13763
  xAxis: zXBandAxis.nullish(),
13683
- crosshairRect: zCrosshairRect.nullish()
13764
+ crosshairRect: zCrosshairRect.nullish(),
13765
+ pivotGrid: zPivotChartGridConfig.nullish()
13684
13766
  });
13685
13767
  const zScatterConfig = schemas_object({
13686
13768
  backgroundColor: zBackgroundColor.nullish(),
@@ -13692,14 +13774,16 @@
13692
13774
  yAxis: zYLinearAxis.nullish(),
13693
13775
  crosshairLine: zCrosshairLine.nullish(),
13694
13776
  size: schemas_number().or(schemas_array(schemas_number())).nullish(),
13695
- sizeRange: schemas_number().or(schemas_array(schemas_number())).nullish()
13777
+ sizeRange: schemas_number().or(schemas_array(schemas_number())).nullish(),
13778
+ pivotGrid: zPivotChartGridConfig.nullish()
13696
13779
  });
13697
13780
  const zRoseConfig = schemas_object({
13698
13781
  backgroundColor: zBackgroundColor.nullish(),
13699
13782
  label: zPieLabel.nullish(),
13700
13783
  color: zColor.nullish(),
13701
13784
  tooltip: zTooltip.nullish(),
13702
- legend: zLegend.nullish()
13785
+ legend: zLegend.nullish(),
13786
+ pivotGrid: zPivotChartGridConfig.nullish()
13703
13787
  });
13704
13788
  const zRoseParallelConfig = zRoseConfig;
13705
13789
  const zPieConfig = schemas_object({
@@ -13707,7 +13791,8 @@
13707
13791
  label: zPieLabel.nullish(),
13708
13792
  color: zColor.nullish(),
13709
13793
  tooltip: zTooltip.nullish(),
13710
- legend: zLegend.nullish()
13794
+ legend: zLegend.nullish(),
13795
+ pivotGrid: zPivotChartGridConfig.nullish()
13711
13796
  });
13712
13797
  const zDonutConfig = zPieConfig;
13713
13798
  const zRadarConfig = zPieConfig;