@visactor/vseed 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +36 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +9 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/barWidth/barGapInGroup.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/barWidth/barGapInGroup.js +14 -0
- package/dist/esm/pipeline/spec/chart/pipes/barWidth/barGapInGroup.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/barWidth/barMaxWidth.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/barWidth/barMaxWidth.js +14 -0
- package/dist/esm/pipeline/spec/chart/pipes/barWidth/barMaxWidth.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/barWidth/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/barWidth/index.js +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
- package/dist/esm/theme/common/annotaion.d.ts +3 -0
- package/dist/esm/theme/common/annotaion.js +33 -49
- package/dist/esm/theme/common/annotaion.js.map +1 -1
- package/dist/esm/theme/common/label.d.ts +18 -0
- package/dist/esm/theme/common/label.js +9 -1
- package/dist/esm/theme/common/label.js.map +1 -1
- package/dist/esm/theme/dark/dark.js +2 -2
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/light/light.js +2 -2
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +12 -0
- package/dist/esm/types/chartType/bar/bar.d.ts +5 -1
- package/dist/esm/types/chartType/bar/zBar.d.ts +1 -0
- package/dist/esm/types/chartType/bar/zBar.js +2 -1
- package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
- package/dist/esm/types/chartType/barParallel/barParallel.d.ts +9 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +2 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.js +3 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
- package/dist/esm/types/chartType/barPercent/barPercent.d.ts +5 -1
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +1 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
- package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
- package/dist/esm/types/chartType/column/column.d.ts +5 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +1 -0
- package/dist/esm/types/chartType/column/zColumn.js +2 -1
- package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
- package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +9 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +2 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +3 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
- package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +5 -1
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +1 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
- package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +9 -1
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +2 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.js +3 -1
- package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
- package/dist/esm/types/properties/config/barWidth/index.d.ts +5 -0
- package/dist/esm/types/properties/config/barWidth/index.js +6 -0
- package/dist/esm/types/properties/config/barWidth/index.js.map +1 -0
- package/dist/esm/types/properties/config/column.d.ts +6 -0
- package/dist/esm/types/properties/config/column.js +3 -0
- package/dist/esm/types/properties/config/column.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +6 -0
- package/dist/esm/types/properties/config/index.d.ts +1 -0
- package/dist/esm/types/properties/config/index.js +1 -0
- package/dist/esm/types/properties/config/label/label.d.ts +4 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +12 -0
- package/dist/esm/types/zVseed.d.ts +10 -0
- package/dist/umd/index.js +104 -55
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/umd/index.js
CHANGED
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
tableAdvancedPipeline: ()=>tableAdvancedPipeline,
|
|
123
123
|
zMeasureTree: ()=>zMeasureTree,
|
|
124
124
|
zStackCornerRadius: ()=>zStackCornerRadius,
|
|
125
|
-
zRose: ()=>zRose,
|
|
126
125
|
registerRose: ()=>registerRose,
|
|
127
126
|
zPivotChartGridConfig: ()=>zPivotChartGridConfig,
|
|
127
|
+
zRose: ()=>zRose,
|
|
128
128
|
registerTable: ()=>registerTable,
|
|
129
129
|
isMeasureGroup: ()=>isMeasureGroup,
|
|
130
130
|
autoFormatter: ()=>autoFormatter,
|
|
@@ -199,11 +199,12 @@
|
|
|
199
199
|
pieAdvancedPipeline: ()=>pieAdvancedPipeline,
|
|
200
200
|
zDualMeasures: ()=>zDualMeasures,
|
|
201
201
|
isTable: ()=>isTable,
|
|
202
|
+
zBarMaxWidth: ()=>zBarMaxWidth,
|
|
202
203
|
zDonut: ()=>zDonut,
|
|
203
|
-
zFunnelTransform: ()=>zFunnelTransform,
|
|
204
204
|
XEncoding: ()=>XEncoding,
|
|
205
205
|
findFirstMeasure: ()=>findFirstMeasure,
|
|
206
206
|
scatterAdvancedPipeline: ()=>scatterAdvancedPipeline,
|
|
207
|
+
zFunnelTransform: ()=>zFunnelTransform,
|
|
207
208
|
zRoseConfig: ()=>zRoseConfig,
|
|
208
209
|
zScatterMeasures: ()=>zScatterMeasures,
|
|
209
210
|
zAnnotation: ()=>zAnnotation,
|
|
@@ -283,6 +284,7 @@
|
|
|
283
284
|
zCustomTheme: ()=>zCustomTheme,
|
|
284
285
|
zTableConfig: ()=>zTableConfig,
|
|
285
286
|
zColumnPercentConfig: ()=>zColumnPercentConfig,
|
|
287
|
+
zBarGapInGroup: ()=>zBarGapInGroup,
|
|
286
288
|
ChartTypeEnum: ()=>ChartTypeEnum,
|
|
287
289
|
zVSeed: ()=>zVSeed,
|
|
288
290
|
radarAdvancedPipeline: ()=>radarAdvancedPipeline,
|
|
@@ -3356,7 +3358,7 @@
|
|
|
3356
3358
|
return formatter(percentValue);
|
|
3357
3359
|
};
|
|
3358
3360
|
const buildLabel = (label, vseedMeasures = [], vseedDimensions = [], advancedVSeedDimensions, advancedVSeedMeasures, encoding, foldInfoList)=>{
|
|
3359
|
-
const { enable, wrap, showValue, showValuePercent, showDimension, labelOverlap, labelColorSmartInvert, labelColor, labelFontSize, labelFontWeight, labelBackgroundColor, labelPosition, autoFormat, numFormat = {} } = label;
|
|
3361
|
+
const { enable, wrap, showValue, showValuePercent, showDimension, labelOverlap, labelColorSmartInvert, labelStroke, labelColor, labelFontSize, labelFontWeight, labelBackgroundColor, labelPosition, autoFormat, numFormat = {} } = label;
|
|
3360
3362
|
const hasDimLabelEncoding = vseedDimensions.some((item)=>encoding.label?.includes(item.id));
|
|
3361
3363
|
const labelDims = T(hasDimLabelEncoding ? vseedDimensions.filter((item)=>encoding.label?.includes(item.id)) : showDimension ? advancedVSeedDimensions.filter((d)=>d.id !== MeasureName) : [], (item)=>item.id);
|
|
3362
3364
|
const labelMeas = T(vseedMeasures.filter((item)=>encoding.label?.includes(item.id)), (item)=>item.id);
|
|
@@ -3391,6 +3393,7 @@
|
|
|
3391
3393
|
},
|
|
3392
3394
|
position: labelPosition,
|
|
3393
3395
|
style: {
|
|
3396
|
+
stroke: labelStroke,
|
|
3394
3397
|
fill: labelColor,
|
|
3395
3398
|
fontSize: labelFontSize,
|
|
3396
3399
|
fontWeight: labelFontWeight,
|
|
@@ -4599,7 +4602,9 @@
|
|
|
4599
4602
|
'xAxis',
|
|
4600
4603
|
'yAxis',
|
|
4601
4604
|
'crosshairRect',
|
|
4602
|
-
'stackCornerRadius'
|
|
4605
|
+
'stackCornerRadius',
|
|
4606
|
+
'barMaxWidth',
|
|
4607
|
+
'barGapInGroup'
|
|
4603
4608
|
]);
|
|
4604
4609
|
const config = replaceNullToUndefined(pickedConfig);
|
|
4605
4610
|
result.config = {
|
|
@@ -4675,6 +4680,16 @@
|
|
|
4675
4680
|
}
|
|
4676
4681
|
};
|
|
4677
4682
|
};
|
|
4683
|
+
const barMaxWidth_barMaxWidth = (spec, context)=>{
|
|
4684
|
+
const { advancedVSeed, vseed } = context;
|
|
4685
|
+
const { chartType } = vseed;
|
|
4686
|
+
const barMaxWidth = advancedVSeed.config?.[chartType]?.barMaxWidth;
|
|
4687
|
+
if (!chunk_JK3VNB42_n(barMaxWidth)) return {
|
|
4688
|
+
...spec,
|
|
4689
|
+
barMaxWidth
|
|
4690
|
+
};
|
|
4691
|
+
return spec;
|
|
4692
|
+
};
|
|
4678
4693
|
const stackInverse = (spec)=>{
|
|
4679
4694
|
const result = {
|
|
4680
4695
|
...spec
|
|
@@ -4953,6 +4968,7 @@
|
|
|
4953
4968
|
const column = [
|
|
4954
4969
|
initColumn,
|
|
4955
4970
|
stackCornerRadius_stackCornerRadius,
|
|
4971
|
+
barMaxWidth_barMaxWidth,
|
|
4956
4972
|
stackInverse,
|
|
4957
4973
|
colorAdapter(color_color, linearColor),
|
|
4958
4974
|
background_backgroundColor,
|
|
@@ -5138,9 +5154,21 @@
|
|
|
5138
5154
|
result.animation = true;
|
|
5139
5155
|
return result;
|
|
5140
5156
|
};
|
|
5157
|
+
const barGapInGroup_barGapInGroup = (spec, context)=>{
|
|
5158
|
+
const { advancedVSeed, vseed } = context;
|
|
5159
|
+
const { chartType } = vseed;
|
|
5160
|
+
const barGapInGroup = advancedVSeed.config?.[chartType]?.barGapInGroup;
|
|
5161
|
+
if (!chunk_JK3VNB42_n(barGapInGroup)) return {
|
|
5162
|
+
...spec,
|
|
5163
|
+
barGapInGroup
|
|
5164
|
+
};
|
|
5165
|
+
return spec;
|
|
5166
|
+
};
|
|
5141
5167
|
const columnParallel = [
|
|
5142
5168
|
initColumnParallel,
|
|
5143
5169
|
stackCornerRadius_stackCornerRadius,
|
|
5170
|
+
barMaxWidth_barMaxWidth,
|
|
5171
|
+
barGapInGroup_barGapInGroup,
|
|
5144
5172
|
colorAdapter(color_color, linearColor),
|
|
5145
5173
|
background_backgroundColor,
|
|
5146
5174
|
datasetXY,
|
|
@@ -5232,6 +5260,7 @@
|
|
|
5232
5260
|
initColumn,
|
|
5233
5261
|
stackCornerRadius_stackCornerRadius,
|
|
5234
5262
|
stackInverse,
|
|
5263
|
+
barMaxWidth_barMaxWidth,
|
|
5235
5264
|
colorAdapter(color_color, linearColor),
|
|
5236
5265
|
background_backgroundColor,
|
|
5237
5266
|
percent,
|
|
@@ -5673,6 +5702,7 @@
|
|
|
5673
5702
|
const bar = [
|
|
5674
5703
|
initBar,
|
|
5675
5704
|
stackCornerRadius_stackCornerRadius,
|
|
5705
|
+
barMaxWidth_barMaxWidth,
|
|
5676
5706
|
colorAdapter(color_color, linearColor),
|
|
5677
5707
|
background_backgroundColor,
|
|
5678
5708
|
datasetYX,
|
|
@@ -5785,6 +5815,8 @@
|
|
|
5785
5815
|
const barParallel = [
|
|
5786
5816
|
initBarParallel,
|
|
5787
5817
|
stackCornerRadius_stackCornerRadius,
|
|
5818
|
+
barMaxWidth_barMaxWidth,
|
|
5819
|
+
barGapInGroup_barGapInGroup,
|
|
5788
5820
|
colorAdapter(color_color, linearColor),
|
|
5789
5821
|
background_backgroundColor,
|
|
5790
5822
|
datasetYX,
|
|
@@ -5867,6 +5899,7 @@
|
|
|
5867
5899
|
const barPercent = [
|
|
5868
5900
|
initBar,
|
|
5869
5901
|
stackCornerRadius_stackCornerRadius,
|
|
5902
|
+
barMaxWidth_barMaxWidth,
|
|
5870
5903
|
colorAdapter(color_color, linearColor),
|
|
5871
5904
|
background_backgroundColor,
|
|
5872
5905
|
percent,
|
|
@@ -7109,7 +7142,9 @@
|
|
|
7109
7142
|
'primaryYAxis',
|
|
7110
7143
|
'secondaryYAxis',
|
|
7111
7144
|
'crosshairLine',
|
|
7112
|
-
'crosshairRect'
|
|
7145
|
+
'crosshairRect',
|
|
7146
|
+
'barGapInGroup',
|
|
7147
|
+
'barMaxWidth'
|
|
7113
7148
|
]);
|
|
7114
7149
|
const config = replaceNullToUndefined(pickedConfig);
|
|
7115
7150
|
result.config = {
|
|
@@ -7731,6 +7766,8 @@
|
|
|
7731
7766
|
labelPrimary,
|
|
7732
7767
|
tooltipPrimary,
|
|
7733
7768
|
progressive,
|
|
7769
|
+
barMaxWidth_barMaxWidth,
|
|
7770
|
+
barGapInGroup_barGapInGroup,
|
|
7734
7771
|
colorBarStyleFill(barStyle_barStyle),
|
|
7735
7772
|
colorPointStyleFill(pointStyle_pointStyle),
|
|
7736
7773
|
pointStateDimensionHover,
|
|
@@ -7743,6 +7780,8 @@
|
|
|
7743
7780
|
labelSecondary,
|
|
7744
7781
|
tooltipSecondary,
|
|
7745
7782
|
progressive,
|
|
7783
|
+
barMaxWidth_barMaxWidth,
|
|
7784
|
+
barGapInGroup_barGapInGroup,
|
|
7746
7785
|
colorBarStyleFill(barStyle_barStyle),
|
|
7747
7786
|
colorPointStyleFill(pointStyle_pointStyle),
|
|
7748
7787
|
pointStateDimensionHover,
|
|
@@ -7774,6 +7813,8 @@
|
|
|
7774
7813
|
labelPrimary,
|
|
7775
7814
|
tooltipPrimary,
|
|
7776
7815
|
progressive,
|
|
7816
|
+
barMaxWidth_barMaxWidth,
|
|
7817
|
+
barGapInGroup_barGapInGroup,
|
|
7777
7818
|
colorBarStyleFill(barStyle_barStyle),
|
|
7778
7819
|
colorPointStyleFill(pointStyle_pointStyle),
|
|
7779
7820
|
pointStateDimensionHover,
|
|
@@ -7786,6 +7827,8 @@
|
|
|
7786
7827
|
labelSecondary,
|
|
7787
7828
|
tooltipSecondary,
|
|
7788
7829
|
progressive,
|
|
7830
|
+
barMaxWidth_barMaxWidth,
|
|
7831
|
+
barGapInGroup_barGapInGroup,
|
|
7789
7832
|
colorBarStyleFill(barStyle_barStyle),
|
|
7790
7833
|
colorPointStyleFill(pointStyle_pointStyle),
|
|
7791
7834
|
pointStateDimensionHover,
|
|
@@ -9296,6 +9339,14 @@
|
|
|
9296
9339
|
labelColorSmartInvert: false,
|
|
9297
9340
|
labelOverlap: true
|
|
9298
9341
|
});
|
|
9342
|
+
const getDarkLabel = ()=>({
|
|
9343
|
+
...getDefaultLabel(),
|
|
9344
|
+
labelStroke: '#21252C'
|
|
9345
|
+
});
|
|
9346
|
+
const getLightLabel = ()=>({
|
|
9347
|
+
...getDefaultLabel(),
|
|
9348
|
+
labelStroke: '#fff'
|
|
9349
|
+
});
|
|
9299
9350
|
const getDefaultLegend = ()=>({
|
|
9300
9351
|
enable: true,
|
|
9301
9352
|
border: true,
|
|
@@ -9519,48 +9570,48 @@
|
|
|
9519
9570
|
lineWidth: 1
|
|
9520
9571
|
}
|
|
9521
9572
|
});
|
|
9522
|
-
const
|
|
9523
|
-
textColor: '#ffffff',
|
|
9573
|
+
const getDefaultAnnotationPoint = ()=>({
|
|
9524
9574
|
textBackgroundVisible: true,
|
|
9525
|
-
textBackgroundColor: '#364159',
|
|
9526
|
-
textBackgroundBorderColor: '#3641594d',
|
|
9527
9575
|
textFontSize: 12,
|
|
9528
9576
|
textFontWeight: 400,
|
|
9529
9577
|
textBackgroundBorderRadius: 4,
|
|
9530
9578
|
textBackgroundBorderWidth: 1,
|
|
9531
9579
|
textBackgroundPadding: 2
|
|
9532
9580
|
});
|
|
9533
|
-
const
|
|
9534
|
-
|
|
9581
|
+
const getLightAnnotationPoint = ()=>({
|
|
9582
|
+
...getDefaultAnnotationPoint(),
|
|
9583
|
+
textColor: '#ffffff',
|
|
9584
|
+
textBackgroundColor: '#364159',
|
|
9585
|
+
textBackgroundBorderColor: '#3641594d'
|
|
9586
|
+
});
|
|
9587
|
+
const getDefaultAnnotationLine = ()=>({
|
|
9588
|
+
lineVisible: true,
|
|
9535
9589
|
lineWidth: 1,
|
|
9536
9590
|
lineStyle: 'solid',
|
|
9537
|
-
lineVisible: true,
|
|
9538
|
-
textColor: '#ffffff',
|
|
9539
9591
|
textFontSize: 12,
|
|
9540
9592
|
textFontWeight: 400,
|
|
9541
9593
|
startSymbolVisible: true,
|
|
9542
9594
|
endSymbolVisible: false,
|
|
9543
9595
|
textBackgroundVisible: true,
|
|
9544
|
-
textBackgroundColor: '#BCC1CB',
|
|
9545
|
-
textBackgroundBorderColor: '#BCC1CB',
|
|
9546
9596
|
textBackgroundBorderWidth: 1,
|
|
9547
9597
|
textBackgroundBorderRadius: 0,
|
|
9548
9598
|
textBackgroundPadding: 2
|
|
9549
9599
|
});
|
|
9550
|
-
const
|
|
9551
|
-
|
|
9600
|
+
const getLightAnnotationHorizontalLine = ()=>({
|
|
9601
|
+
...getDefaultAnnotationLine(),
|
|
9602
|
+
lineColor: '#BCC1CB',
|
|
9552
9603
|
textColor: '#ffffff',
|
|
9604
|
+
textBackgroundColor: '#BCC1CB',
|
|
9605
|
+
textBackgroundBorderColor: '#BCC1CB'
|
|
9606
|
+
});
|
|
9607
|
+
const getLightAnnotationVerticalLine = ()=>getLightAnnotationHorizontalLine();
|
|
9608
|
+
const getDefaultAnnotationArea = ()=>({
|
|
9553
9609
|
textFontSize: 12,
|
|
9554
9610
|
textFontWeight: 400,
|
|
9555
9611
|
textBackgroundVisible: true,
|
|
9556
|
-
textBackgroundColor: '#BCC1CB',
|
|
9557
|
-
textBackgroundBorderColor: '#BCC1CB',
|
|
9558
9612
|
textBackgroundBorderWidth: 1,
|
|
9559
9613
|
textBackgroundBorderRadius: 0,
|
|
9560
9614
|
textBackgroundPadding: 4,
|
|
9561
|
-
areaColor: '#BCC1CB',
|
|
9562
|
-
areaColorOpacity: 0.12,
|
|
9563
|
-
areaBorderColor: '#BCC1CB',
|
|
9564
9615
|
areaBorderWidth: 0,
|
|
9565
9616
|
areaBorderRadius: 0,
|
|
9566
9617
|
areaLineDash: [
|
|
@@ -9569,6 +9620,15 @@
|
|
|
9569
9620
|
],
|
|
9570
9621
|
outerPadding: 4
|
|
9571
9622
|
});
|
|
9623
|
+
const getLightAnnotationArea = ()=>({
|
|
9624
|
+
...getDefaultAnnotationArea(),
|
|
9625
|
+
textColor: '#ffffff',
|
|
9626
|
+
textBackgroundColor: '#BCC1CB',
|
|
9627
|
+
textBackgroundBorderColor: '#BCC1CB',
|
|
9628
|
+
areaColor: '#BCC1CB',
|
|
9629
|
+
areaColorOpacity: 0.12,
|
|
9630
|
+
areaBorderColor: '#BCC1CB'
|
|
9631
|
+
});
|
|
9572
9632
|
const getLightAnnotation = ()=>({
|
|
9573
9633
|
annotationPoint: getLightAnnotationPoint(),
|
|
9574
9634
|
annotationHorizontalLine: getLightAnnotationHorizontalLine(),
|
|
@@ -9576,52 +9636,27 @@
|
|
|
9576
9636
|
annotationArea: getLightAnnotationArea()
|
|
9577
9637
|
});
|
|
9578
9638
|
const getDarkAnnotationPoint = ()=>({
|
|
9639
|
+
...getDefaultAnnotationPoint(),
|
|
9579
9640
|
textColor: '#4B4F54',
|
|
9580
|
-
textBackgroundVisible: true,
|
|
9581
9641
|
textBackgroundColor: '#ffffff',
|
|
9582
|
-
textBackgroundBorderColor: '#ffffff'
|
|
9583
|
-
textFontSize: 12,
|
|
9584
|
-
textFontWeight: 400,
|
|
9585
|
-
textBackgroundBorderRadius: 4,
|
|
9586
|
-
textBackgroundBorderWidth: 1,
|
|
9587
|
-
textBackgroundPadding: 2
|
|
9642
|
+
textBackgroundBorderColor: '#ffffff'
|
|
9588
9643
|
});
|
|
9589
9644
|
const getDarkAnnotationHorizontalLine = ()=>({
|
|
9645
|
+
...getDefaultAnnotationLine(),
|
|
9590
9646
|
lineColor: '#55595F',
|
|
9591
|
-
lineWidth: 1,
|
|
9592
|
-
lineStyle: 'solid',
|
|
9593
|
-
lineVisible: true,
|
|
9594
|
-
textFontSize: 12,
|
|
9595
|
-
textFontWeight: 400,
|
|
9596
|
-
textBackgroundVisible: true,
|
|
9597
9647
|
textColor: '#E2E3E6',
|
|
9598
9648
|
textBackgroundColor: '#55595F',
|
|
9599
|
-
textBackgroundBorderColor: '#55595F'
|
|
9600
|
-
textBackgroundBorderWidth: 1,
|
|
9601
|
-
textBackgroundBorderRadius: 0,
|
|
9602
|
-
textBackgroundPadding: 2
|
|
9649
|
+
textBackgroundBorderColor: '#55595F'
|
|
9603
9650
|
});
|
|
9604
9651
|
const getDarkAnnotationVerticalLine = ()=>getDarkAnnotationHorizontalLine();
|
|
9605
9652
|
const getDarkAnnotationArea = ()=>({
|
|
9653
|
+
...getDefaultAnnotationArea(),
|
|
9606
9654
|
textColor: '#E2E3E6',
|
|
9607
|
-
textFontSize: 12,
|
|
9608
|
-
textFontWeight: 400,
|
|
9609
|
-
textBackgroundVisible: true,
|
|
9610
9655
|
textBackgroundColor: '#55595F',
|
|
9611
9656
|
textBackgroundBorderColor: '#55595F',
|
|
9612
|
-
textBackgroundBorderWidth: 1,
|
|
9613
|
-
textBackgroundBorderRadius: 0,
|
|
9614
|
-
textBackgroundPadding: 4,
|
|
9615
9657
|
areaColor: '#E2E3E6',
|
|
9616
9658
|
areaColorOpacity: 0.15,
|
|
9617
|
-
areaBorderColor: '#E2E3E6'
|
|
9618
|
-
areaBorderWidth: 0,
|
|
9619
|
-
areaBorderRadius: 0,
|
|
9620
|
-
areaLineDash: [
|
|
9621
|
-
2,
|
|
9622
|
-
2
|
|
9623
|
-
],
|
|
9624
|
-
outerPadding: 4
|
|
9659
|
+
areaBorderColor: '#E2E3E6'
|
|
9625
9660
|
});
|
|
9626
9661
|
const getDarkAnnotation = ()=>({
|
|
9627
9662
|
annotationPoint: getDarkAnnotationPoint(),
|
|
@@ -9664,7 +9699,7 @@
|
|
|
9664
9699
|
const baseConfig = {
|
|
9665
9700
|
backgroundColor: 'transparent',
|
|
9666
9701
|
color: getLightColor(),
|
|
9667
|
-
label:
|
|
9702
|
+
label: getLightLabel(),
|
|
9668
9703
|
legend: getDefaultLegend(),
|
|
9669
9704
|
tooltip: getDefaultTooltip()
|
|
9670
9705
|
};
|
|
@@ -9914,7 +9949,7 @@
|
|
|
9914
9949
|
const baseConfig = {
|
|
9915
9950
|
backgroundColor: 'transparent',
|
|
9916
9951
|
color: getDarkColor(),
|
|
9917
|
-
label:
|
|
9952
|
+
label: getDarkLabel(),
|
|
9918
9953
|
legend: getDefaultLegend(),
|
|
9919
9954
|
tooltip: getDefaultTooltip()
|
|
9920
9955
|
};
|
|
@@ -14200,6 +14235,8 @@
|
|
|
14200
14235
|
0,
|
|
14201
14236
|
0
|
|
14202
14237
|
]);
|
|
14238
|
+
const zBarMaxWidth = schemas_number().or(schemas_string());
|
|
14239
|
+
const zBarGapInGroup = schemas_number().or(schemas_string());
|
|
14203
14240
|
const zColumnConfig = schemas_object({
|
|
14204
14241
|
backgroundColor: zBackgroundColor.nullish(),
|
|
14205
14242
|
label: zLabel.nullish(),
|
|
@@ -14210,6 +14247,8 @@
|
|
|
14210
14247
|
yAxis: zYLinearAxis.nullish(),
|
|
14211
14248
|
crosshairRect: zCrosshairRect.nullish(),
|
|
14212
14249
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
14250
|
+
barMaxWidth: zBarMaxWidth.nullish(),
|
|
14251
|
+
barGapInGroup: zBarGapInGroup.nullish(),
|
|
14213
14252
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
14214
14253
|
annotation: zAnnotationConfig.nullish()
|
|
14215
14254
|
});
|
|
@@ -14589,6 +14628,7 @@
|
|
|
14589
14628
|
yAxis: zYLinearAxis.nullish(),
|
|
14590
14629
|
crosshairRect: zCrosshairRect.nullish(),
|
|
14591
14630
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
14631
|
+
barMaxWidth: zBarMaxWidth.nullish(),
|
|
14592
14632
|
theme: zTheme.nullish(),
|
|
14593
14633
|
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
|
14594
14634
|
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
|
@@ -14612,6 +14652,8 @@
|
|
|
14612
14652
|
yAxis: zYLinearAxis.nullish(),
|
|
14613
14653
|
crosshairRect: zCrosshairRect.nullish(),
|
|
14614
14654
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
14655
|
+
barMaxWidth: zBarMaxWidth.nullish(),
|
|
14656
|
+
barGapInGroup: zBarGapInGroup.nullish(),
|
|
14615
14657
|
theme: zTheme.nullish(),
|
|
14616
14658
|
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
|
14617
14659
|
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
|
@@ -14635,6 +14677,7 @@
|
|
|
14635
14677
|
yAxis: zYLinearAxis.nullish(),
|
|
14636
14678
|
crosshairRect: zCrosshairRect.nullish(),
|
|
14637
14679
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
14680
|
+
barMaxWidth: zBarMaxWidth.nullish(),
|
|
14638
14681
|
theme: zTheme.nullish(),
|
|
14639
14682
|
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
|
14640
14683
|
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
|
@@ -14658,6 +14701,7 @@
|
|
|
14658
14701
|
yAxis: zYBandAxis.nullish(),
|
|
14659
14702
|
crosshairRect: zCrosshairRect.nullish(),
|
|
14660
14703
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
14704
|
+
barMaxWidth: zBarMaxWidth.nullish(),
|
|
14661
14705
|
theme: zTheme.nullish(),
|
|
14662
14706
|
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
|
14663
14707
|
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
|
@@ -14681,6 +14725,8 @@
|
|
|
14681
14725
|
yAxis: zYBandAxis.nullish(),
|
|
14682
14726
|
crosshairRect: zCrosshairRect.nullish(),
|
|
14683
14727
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
14728
|
+
barMaxWidth: zBarMaxWidth.nullish(),
|
|
14729
|
+
barGapInGroup: zBarGapInGroup.nullish(),
|
|
14684
14730
|
theme: zTheme.nullish(),
|
|
14685
14731
|
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
|
14686
14732
|
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
|
@@ -14704,6 +14750,7 @@
|
|
|
14704
14750
|
yAxis: zYBandAxis.nullish(),
|
|
14705
14751
|
crosshairRect: zCrosshairRect.nullish(),
|
|
14706
14752
|
stackCornerRadius: zStackCornerRadius.nullish(),
|
|
14753
|
+
barMaxWidth: zBarMaxWidth.nullish(),
|
|
14707
14754
|
theme: zTheme.nullish(),
|
|
14708
14755
|
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
|
14709
14756
|
annotationPoint: schemas_array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
|
@@ -14805,6 +14852,8 @@
|
|
|
14805
14852
|
sort: zSort.nullish(),
|
|
14806
14853
|
sortLegend: zSortLegend.nullish(),
|
|
14807
14854
|
theme: zTheme.nullish(),
|
|
14855
|
+
barMaxWidth: zBarMaxWidth.nullish(),
|
|
14856
|
+
barGapInGroup: zBarGapInGroup.nullish(),
|
|
14808
14857
|
barStyle: schemas_array(zBarStyle).or(zBarStyle).nullish(),
|
|
14809
14858
|
pointStyle: schemas_array(zPointStyle).or(zPointStyle).nullish(),
|
|
14810
14859
|
lineStyle: schemas_array(zLineStyle).or(zLineStyle).nullish(),
|