@fluentui/react-charting 5.19.30 → 5.19.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.
- package/CHANGELOG.json +37 -1
- package/CHANGELOG.md +12 -2
- package/README.md +1 -1
- package/dist/react-charting.d.ts +61 -11
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +12 -3
- package/lib/components/CommonComponents/CartesianChart.base.js +2 -1
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.js +2 -1
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.base.js +2 -1
- package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +42 -29
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +22 -7
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.js +3 -2
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +2 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +3 -2
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.js +2 -1
- package/lib/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +2 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js +2 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +2 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +31 -19
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +20 -2
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +2 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +32 -20
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +19 -2
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib/utilities/locale-util.d.ts +3 -0
- package/lib/utilities/locale-util.js +18 -0
- package/lib/utilities/locale-util.js.map +1 -0
- package/lib/utilities/utilities.d.ts +3 -0
- package/lib/utilities/utilities.js +29 -0
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +6 -6
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.base.js +2 -2
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.js +6 -6
- package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +41 -28
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +22 -7
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +2 -2
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +5 -5
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +18 -18
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-amd/components/PieChart/Arc/Arc.js +3 -3
- package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +3 -3
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +3 -3
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +2 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +30 -18
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +20 -2
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +2 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +31 -19
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +19 -2
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +5 -5
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib-amd/utilities/locale-util.d.ts +3 -0
- package/lib-amd/utilities/locale-util.js +24 -0
- package/lib-amd/utilities/locale-util.js.map +1 -0
- package/lib-amd/utilities/utilities.d.ts +3 -0
- package/lib-amd/utilities/utilities.js +33 -1
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +6 -5
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +2 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +6 -5
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +3 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +41 -28
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +22 -7
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +3 -2
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +5 -4
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +3 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +20 -19
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.js +3 -2
- package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +3 -2
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +3 -2
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +2 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +30 -18
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.d.ts +20 -2
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +2 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +31 -19
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +19 -2
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js +5 -5
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib-commonjs/utilities/locale-util.d.ts +3 -0
- package/lib-commonjs/utilities/locale-util.js +22 -0
- package/lib-commonjs/utilities/locale-util.js.map +1 -0
- package/lib-commonjs/utilities/utilities.d.ts +3 -0
- package/lib-commonjs/utilities/utilities.js +33 -1
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VerticalBarChart/VerticalBarChart.types.ts +23 -2
- package/src/components/VerticalStackedBarChart/VerticalStackedBarChart.types.ts +22 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,43 @@
|
|
|
2
2
|
"name": "@fluentui/react-charting",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 04 Mar 2024 07:25:51 GMT",
|
|
6
|
+
"tag": "@fluentui/react-charting_v5.19.31",
|
|
7
|
+
"version": "5.19.31",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kumarkshitij@microsoft.com",
|
|
12
|
+
"package": "@fluentui/react-charting",
|
|
13
|
+
"commit": "5fa09dd5fd1d2a75447fa781f1b919fbc12f47c4",
|
|
14
|
+
"comment": "Fix 2:1 spacing in vertical bar charts with string x-axis"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "srmukher@microsoft.com",
|
|
18
|
+
"package": "@fluentui/react-charting",
|
|
19
|
+
"commit": "cb7b32981d6f82f0696a8e89e3ea19dd2eee3266",
|
|
20
|
+
"comment": "Reducing monosize of charts and removing circular dependencies"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Fri, 01 Mar 2024 07:26:28 GMT",
|
|
27
|
+
"tag": "@fluentui/react-charting_v5.19.30",
|
|
28
|
+
"version": "5.19.30",
|
|
29
|
+
"comments": {
|
|
30
|
+
"none": [
|
|
31
|
+
{
|
|
32
|
+
"author": "shubhabrata08@gmail.com",
|
|
33
|
+
"package": "@fluentui/react-charting",
|
|
34
|
+
"commit": "f357c800c5f39bfe46a9081ce47f38b983dfbe7e",
|
|
35
|
+
"comment": "Add dynamic status badge for test coverage"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Tue, 27 Feb 2024 07:25:41 GMT",
|
|
6
42
|
"tag": "@fluentui/react-charting_v5.19.30",
|
|
7
43
|
"version": "5.19.30",
|
|
8
44
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-charting
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 04 Mar 2024 07:25:51 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [5.19.31](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.19.31)
|
|
8
|
+
|
|
9
|
+
Mon, 04 Mar 2024 07:25:51 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.19.30..@fluentui/react-charting_v5.19.31)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Fix 2:1 spacing in vertical bar charts with string x-axis ([PR #30192](https://github.com/microsoft/fluentui/pull/30192) by kumarkshitij@microsoft.com)
|
|
15
|
+
- Reducing monosize of charts and removing circular dependencies ([PR #30630](https://github.com/microsoft/fluentui/pull/30630) by srmukher@microsoft.com)
|
|
16
|
+
|
|
7
17
|
## [5.19.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.19.30)
|
|
8
18
|
|
|
9
|
-
Tue, 27 Feb 2024 07:25:
|
|
19
|
+
Tue, 27 Feb 2024 07:25:41 GMT
|
|
10
20
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.19.29..@fluentui/react-charting_v5.19.30)
|
|
11
21
|
|
|
12
22
|
### Patches
|
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ A comprehensive contributor guide is available in our internal [wiki](https://ak
|
|
|
61
61
|
|
|
62
62
|
## Testing
|
|
63
63
|
|
|
64
|
-

|
|
65
65
|
|
|
66
66
|
The library has a wide variety of tests to ensure quality of the library.
|
|
67
67
|
The tests range from component tests, unit tests, visual regression tests, accessibility tests, integration tests and manual tests.
|
package/dist/react-charting.d.ts
CHANGED
|
@@ -1214,14 +1214,11 @@ export declare interface IGroupedVerticalBarChartProps extends ICartesianChartPr
|
|
|
1214
1214
|
*/
|
|
1215
1215
|
data: IGroupedVerticalBarChartData[];
|
|
1216
1216
|
/**
|
|
1217
|
-
*
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1220
|
-
* Formula: width of parent div / (Number Of Groups * (Number Of single bars in group + 2))
|
|
1221
|
-
* Note: By changing barwidth manually it may cause some spatial and graph override issues,
|
|
1222
|
-
* better to avoid using this prop.
|
|
1217
|
+
* Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px.
|
|
1218
|
+
* When set to `auto` (which is only applicable to string x-axis), the bar width is calculated from padding values.
|
|
1219
|
+
* @default 16
|
|
1223
1220
|
*/
|
|
1224
|
-
barwidth?: number;
|
|
1221
|
+
barwidth?: number | 'default' | 'auto';
|
|
1225
1222
|
/**
|
|
1226
1223
|
* Call to provide customized styling that will layer on top of the variant rules.
|
|
1227
1224
|
*/
|
|
@@ -1271,6 +1268,24 @@ export declare interface IGroupedVerticalBarChartProps extends ICartesianChartPr
|
|
|
1271
1268
|
* @default false
|
|
1272
1269
|
*/
|
|
1273
1270
|
hideLabels?: boolean;
|
|
1271
|
+
/**
|
|
1272
|
+
* Maximum width of a bar, in pixels.
|
|
1273
|
+
*/
|
|
1274
|
+
maxBarWidth?: number;
|
|
1275
|
+
/**
|
|
1276
|
+
* Padding between groups as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
|
|
1277
|
+
* Takes a number in the range [0, 1]. Only applicable to string x-axis.
|
|
1278
|
+
* Note: groupWidthInTermsOfBarWidth is calculated at runtime based on
|
|
1279
|
+
* the number of bars in a group and the gap between the bars.
|
|
1280
|
+
* @default 2 / (2 + groupWidthInTermsOfBarWidth)
|
|
1281
|
+
*/
|
|
1282
|
+
xAxisInnerPadding?: number;
|
|
1283
|
+
/**
|
|
1284
|
+
* Padding before the first group and after the last group as a fraction of
|
|
1285
|
+
* the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
|
|
1286
|
+
* Only applicable to string x-axis.
|
|
1287
|
+
*/
|
|
1288
|
+
xAxisOuterPadding?: number;
|
|
1274
1289
|
}
|
|
1275
1290
|
|
|
1276
1291
|
/**
|
|
@@ -3477,9 +3492,11 @@ export declare interface IVerticalBarChartProps extends ICartesianChartProps {
|
|
|
3477
3492
|
*/
|
|
3478
3493
|
onRenderCalloutPerDataPoint?: IRenderFunction<IVerticalBarChartDataPoint>;
|
|
3479
3494
|
/**
|
|
3480
|
-
* Width of each bar in the chart.
|
|
3495
|
+
* Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px.
|
|
3496
|
+
* When set to `auto` (which is only applicable to string x-axis), the bar width is calculated from padding values.
|
|
3497
|
+
* @default 16
|
|
3481
3498
|
*/
|
|
3482
|
-
barWidth?: number;
|
|
3499
|
+
barWidth?: number | 'default' | 'auto';
|
|
3483
3500
|
/**
|
|
3484
3501
|
* Colors from which to select the color of each bar.
|
|
3485
3502
|
*/
|
|
@@ -3525,6 +3542,22 @@ export declare interface IVerticalBarChartProps extends ICartesianChartProps {
|
|
|
3525
3542
|
* @default false
|
|
3526
3543
|
*/
|
|
3527
3544
|
hideLabels?: boolean;
|
|
3545
|
+
/**
|
|
3546
|
+
* Maximum width of a bar, in pixels.
|
|
3547
|
+
*/
|
|
3548
|
+
maxBarWidth?: number;
|
|
3549
|
+
/**
|
|
3550
|
+
* Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
|
|
3551
|
+
* Takes a number in the range [0, 1]. Only applicable to string x-axis.
|
|
3552
|
+
* @default 2/3
|
|
3553
|
+
*/
|
|
3554
|
+
xAxisInnerPadding?: number;
|
|
3555
|
+
/**
|
|
3556
|
+
* Padding before the first bar and after the last bar as a fraction of
|
|
3557
|
+
* the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
|
|
3558
|
+
* Only applicable to string x-axis.
|
|
3559
|
+
*/
|
|
3560
|
+
xAxisOuterPadding?: number;
|
|
3528
3561
|
}
|
|
3529
3562
|
|
|
3530
3563
|
/**
|
|
@@ -3598,9 +3631,10 @@ export declare interface IVerticalStackedBarChartProps extends ICartesianChartPr
|
|
|
3598
3631
|
*/
|
|
3599
3632
|
data: IVerticalStackedChartProps[];
|
|
3600
3633
|
/**
|
|
3601
|
-
* Width of each bar in the chart.
|
|
3634
|
+
* Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px.
|
|
3635
|
+
* When set to `auto` (which is only applicable to string x-axis), the bar width is calculated from padding values.
|
|
3602
3636
|
*/
|
|
3603
|
-
barWidth?: number;
|
|
3637
|
+
barWidth?: number | 'default' | 'auto';
|
|
3604
3638
|
/**
|
|
3605
3639
|
* Gap (max) between bars in a stack. When non-zero, the bars in a stack will
|
|
3606
3640
|
* be separated by gaps. The actual size of each gap is calculated as 20% of
|
|
@@ -3681,6 +3715,22 @@ export declare interface IVerticalStackedBarChartProps extends ICartesianChartPr
|
|
|
3681
3715
|
* @default false
|
|
3682
3716
|
*/
|
|
3683
3717
|
hideLabels?: boolean;
|
|
3718
|
+
/**
|
|
3719
|
+
* Maximum width of a bar, in pixels.
|
|
3720
|
+
*/
|
|
3721
|
+
maxBarWidth?: number;
|
|
3722
|
+
/**
|
|
3723
|
+
* Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
|
|
3724
|
+
* Takes a number in the range [0, 1]. Only applicable to string x-axis.
|
|
3725
|
+
* @default 2/3
|
|
3726
|
+
*/
|
|
3727
|
+
xAxisInnerPadding?: number;
|
|
3728
|
+
/**
|
|
3729
|
+
* Padding before the first bar and after the last bar as a fraction of
|
|
3730
|
+
* the [step](https://d3js.org/d3-scale/band#band_step). Takes a number in the range [0, 1].
|
|
3731
|
+
* Only applicable to string x-axis.
|
|
3732
|
+
*/
|
|
3733
|
+
xAxisOuterPadding?: number;
|
|
3684
3734
|
}
|
|
3685
3735
|
|
|
3686
3736
|
/**
|