@fluentui/react-charts 9.3.2 → 9.3.4
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.md +47 -2
- package/dist/index.d.ts +151 -1
- package/lib/components/AreaChart/AreaChart.js +208 -60
- package/lib/components/AreaChart/AreaChart.js.map +1 -1
- package/lib/components/ChartTable/ChartTable.js +14 -12
- package/lib/components/ChartTable/ChartTable.js.map +1 -1
- package/lib/components/ChartTable/useChartTableStyles.styles.js +3 -3
- package/lib/components/ChartTable/useChartTableStyles.styles.js.map +1 -1
- package/lib/components/ChartTable/useChartTableStyles.styles.raw.js +2 -2
- package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.js +5 -6
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib/components/CommonComponents/ChartPopover.js +2 -1
- package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
- package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -1
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +3 -2
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js +2 -1
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +3 -2
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -1
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js +2 -1
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +16 -7
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +63 -18
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +471 -207
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.js +8 -7
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.js +16 -32
- package/lib/components/DonutChart/DonutChart.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.js +4 -4
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib/components/DonutChart/useDonutChartStyles.styles.js +3 -2
- package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -1
- package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js +2 -1
- package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
- package/lib/components/FunnelChart/FunnelChart.js +23 -45
- package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
- package/lib/components/FunnelChart/useFunnelChartStyles.styles.js +3 -2
- package/lib/components/FunnelChart/useFunnelChartStyles.styles.js.map +1 -1
- package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js +2 -1
- package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.js +21 -46
- package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +3 -2
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -1
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js +2 -1
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +332 -114
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +3 -2
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +2 -1
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
- package/lib/components/Legends/Legends.js +1 -1
- package/lib/components/Legends/Legends.js.map +1 -1
- package/lib/components/LineChart/LineChart.js +145 -97
- package/lib/components/LineChart/LineChart.js.map +1 -1
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +3 -2
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js +2 -1
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.js +7 -11
- package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
- package/lib/types/DataPoint.js +1 -3
- package/lib/types/DataPoint.js.map +1 -1
- package/lib/utilities/utilities.js +77 -26
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.js +207 -59
- package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
- package/lib-commonjs/components/ChartTable/ChartTable.js +13 -12
- package/lib-commonjs/components/ChartTable/ChartTable.js.map +1 -1
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js +3 -3
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js.map +1 -1
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js +2 -2
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +5 -6
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/ChartPopover.js +2 -1
- package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +7 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +7 -1
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +16 -7
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js +65 -18
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +470 -206
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +8 -7
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.js +16 -32
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +4 -4
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +7 -1
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/FunnelChart/FunnelChart.js +23 -45
- package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +1 -1
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js +7 -1
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.js +21 -46
- package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js +7 -1
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +329 -112
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +7 -1
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.js +1 -1
- package/lib-commonjs/components/Legends/Legends.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js +144 -96
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js +7 -1
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.js +6 -10
- package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -1
- package/lib-commonjs/types/DataPoint.js +1 -3
- package/lib-commonjs/types/DataPoint.js.map +1 -1
- package/lib-commonjs/utilities/utilities.js +80 -26
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,57 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-charts
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 31 Oct 2025 16:17:34 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.3.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.3.4)
|
|
8
|
+
|
|
9
|
+
Fri, 31 Oct 2025 16:17:34 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.3.3..@fluentui/react-charts_v9.3.4)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- fix chart crash issue ([PR #35399](https://github.com/microsoft/fluentui/pull/35399) by anushgupta@microsoft.com)
|
|
15
|
+
- update react version to react 19 ([PR #35402](https://github.com/microsoft/fluentui/pull/35402) by anushgupta@microsoft.com)
|
|
16
|
+
- fix dark mode styles of chart table ([PR #35377](https://github.com/microsoft/fluentui/pull/35377) by anushgupta@microsoft.com)
|
|
17
|
+
- fix chart exceptions ([PR #35393](https://github.com/microsoft/fluentui/pull/35393) by anushgupta@microsoft.com)
|
|
18
|
+
- feat: map deprecated plotly create_gantt() scatter traces to gantt chart ([PR #35334](https://github.com/microsoft/fluentui/pull/35334) by kumarkshitij@microsoft.com)
|
|
19
|
+
- Bump @fluentui/react-button to v9.6.10 ([PR #35402](https://github.com/microsoft/fluentui/pull/35402) by beachball)
|
|
20
|
+
- Bump @fluentui/react-jsx-runtime to v9.3.1 ([PR #35402](https://github.com/microsoft/fluentui/pull/35402) by beachball)
|
|
21
|
+
- Bump @fluentui/react-overflow to v9.6.3 ([PR #35402](https://github.com/microsoft/fluentui/pull/35402) by beachball)
|
|
22
|
+
- Bump @fluentui/react-popover to v9.12.10 ([PR #35402](https://github.com/microsoft/fluentui/pull/35402) by beachball)
|
|
23
|
+
- Bump @fluentui/react-tabster to v9.26.8 ([PR #35402](https://github.com/microsoft/fluentui/pull/35402) by beachball)
|
|
24
|
+
- Bump @fluentui/react-tooltip to v9.8.9 ([PR #35402](https://github.com/microsoft/fluentui/pull/35402) by beachball)
|
|
25
|
+
- Bump @fluentui/react-utilities to v9.25.2 ([PR #35402](https://github.com/microsoft/fluentui/pull/35402) by beachball)
|
|
26
|
+
|
|
27
|
+
## [9.3.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.3.3)
|
|
28
|
+
|
|
29
|
+
Tue, 21 Oct 2025 14:16:55 GMT
|
|
30
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.3.2..@fluentui/react-charts_v9.3.3)
|
|
31
|
+
|
|
32
|
+
### Patches
|
|
33
|
+
|
|
34
|
+
- fix: callout not appearing on scatter chart ([PR #35310](https://github.com/microsoft/fluentui/pull/35310) by kumarkshitij@microsoft.com)
|
|
35
|
+
- fix place value formatting bug in donut chart ([PR #35315](https://github.com/microsoft/fluentui/pull/35315) by anushgupta@microsoft.com)
|
|
36
|
+
- add missing code in v9 ([PR #35318](https://github.com/microsoft/fluentui/pull/35318) by anushgupta@microsoft.com)
|
|
37
|
+
- fix: resolve data points based on axis type + replace invalid values with 0 for valid coordinates ([PR #35323](https://github.com/microsoft/fluentui/pull/35323) by kumarkshitij@microsoft.com)
|
|
38
|
+
- support reference lines in line chart and VBC ([PR #35330](https://github.com/microsoft/fluentui/pull/35330) by anushgupta@microsoft.com)
|
|
39
|
+
- fix legend shape bug ([PR #35335](https://github.com/microsoft/fluentui/pull/35335) by anushgupta@microsoft.com)
|
|
40
|
+
- feat: add support for lines in GVBC ([PR #35321](https://github.com/microsoft/fluentui/pull/35321) by kumarkshitij@microsoft.com)
|
|
41
|
+
- fix donut colors and segment orders ([PR #35316](https://github.com/microsoft/fluentui/pull/35316) by anushgupta@microsoft.com)
|
|
42
|
+
- add fill for scatter polar chart ([PR #35317](https://github.com/microsoft/fluentui/pull/35317) by anushgupta@microsoft.com)
|
|
43
|
+
- fix(react-charts): Show markers only when mode has markers for large data ([PR #35311](https://github.com/microsoft/fluentui/pull/35311) by 120183316+srmukher@users.noreply.github.com)
|
|
44
|
+
- fix popover positioning issue ([PR #35289](https://github.com/microsoft/fluentui/pull/35289) by anushgupta@microsoft.com)
|
|
45
|
+
- fix chart exception issue ([PR #35342](https://github.com/microsoft/fluentui/pull/35342) by anushgupta@microsoft.com)
|
|
46
|
+
- Bump @fluentui/react-button to v9.6.9 ([PR #35343](https://github.com/microsoft/fluentui/pull/35343) by beachball)
|
|
47
|
+
- Bump @fluentui/react-jsx-runtime to v9.3.0 ([PR #35343](https://github.com/microsoft/fluentui/pull/35343) by beachball)
|
|
48
|
+
- Bump @fluentui/react-overflow to v9.6.2 ([PR #35343](https://github.com/microsoft/fluentui/pull/35343) by beachball)
|
|
49
|
+
- Bump @fluentui/react-popover to v9.12.9 ([PR #35343](https://github.com/microsoft/fluentui/pull/35343) by beachball)
|
|
50
|
+
- Bump @fluentui/react-tooltip to v9.8.8 ([PR #35343](https://github.com/microsoft/fluentui/pull/35343) by beachball)
|
|
51
|
+
|
|
7
52
|
## [9.3.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.3.2)
|
|
8
53
|
|
|
9
|
-
Wed, 08 Oct 2025 12:
|
|
54
|
+
Wed, 08 Oct 2025 12:04:53 GMT
|
|
10
55
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.3.1..@fluentui/react-charts_v9.3.2)
|
|
11
56
|
|
|
12
57
|
### Patches
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CurveFactory } from 'd3-shape';
|
|
2
2
|
import type { JSXElement } from '@fluentui/react-utilities';
|
|
3
|
+
import { PositioningShorthand } from '@fluentui/react-positioning';
|
|
3
4
|
import * as React_2 from 'react';
|
|
4
5
|
import { RefObject } from 'react';
|
|
5
6
|
import { SankeyGraph } from 'd3-sankey';
|
|
@@ -161,6 +162,10 @@ export declare type AxisProps = {
|
|
|
161
162
|
* - Exception: when `tickStep` uses `"L<f>"`, you can specify the raw value directly.
|
|
162
163
|
*/
|
|
163
164
|
tick0?: number | Date;
|
|
165
|
+
/**
|
|
166
|
+
* Sets the text displayed at each tick position specified by `tickValues`. Used with `tickValues`.
|
|
167
|
+
*/
|
|
168
|
+
tickText?: string[];
|
|
164
169
|
};
|
|
165
170
|
|
|
166
171
|
/**
|
|
@@ -173,6 +178,24 @@ export declare type AxisProps = {
|
|
|
173
178
|
*/
|
|
174
179
|
export declare type AxisScaleType = 'default' | 'log';
|
|
175
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Represents a bar series.
|
|
183
|
+
*/
|
|
184
|
+
export declare interface BarSeries<X extends string | number | Date, Y extends string | number | Date> extends DataSeries {
|
|
185
|
+
/**
|
|
186
|
+
* Type discriminator: always 'bar' for this series.
|
|
187
|
+
*/
|
|
188
|
+
type: 'bar';
|
|
189
|
+
/**
|
|
190
|
+
* Array of data points for the series.
|
|
191
|
+
*/
|
|
192
|
+
data: DataPointV2<X, Y>[];
|
|
193
|
+
/**
|
|
194
|
+
* Optional group identifier for the series.
|
|
195
|
+
*/
|
|
196
|
+
key?: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
176
199
|
/**
|
|
177
200
|
* {@docCategory ChartData}
|
|
178
201
|
*/
|
|
@@ -736,6 +759,7 @@ export declare interface ChartPopoverProps {
|
|
|
736
759
|
ratio?: [number, number];
|
|
737
760
|
isCartesian?: boolean;
|
|
738
761
|
styles?: Partial<PopoverComponentStyles>;
|
|
762
|
+
positioning?: PositioningShorthand;
|
|
739
763
|
}
|
|
740
764
|
|
|
741
765
|
/**
|
|
@@ -927,6 +951,82 @@ export declare interface DataPoint {
|
|
|
927
951
|
onClick?: VoidFunction;
|
|
928
952
|
}
|
|
929
953
|
|
|
954
|
+
/**
|
|
955
|
+
* Represents a single data point in a series.
|
|
956
|
+
*/
|
|
957
|
+
export declare interface DataPointV2<X extends string | number | Date, Y extends string | number | Date> {
|
|
958
|
+
/**
|
|
959
|
+
* X-axis value of the data point.
|
|
960
|
+
*/
|
|
961
|
+
x: X;
|
|
962
|
+
/**
|
|
963
|
+
* Y-axis value of the data point.
|
|
964
|
+
*/
|
|
965
|
+
y: Y;
|
|
966
|
+
/**
|
|
967
|
+
* Optional click handler for the data point.
|
|
968
|
+
*/
|
|
969
|
+
onClick?: () => void;
|
|
970
|
+
/**
|
|
971
|
+
* Custom text to show in the callout in place of the x-axis value.
|
|
972
|
+
*/
|
|
973
|
+
xAxisCalloutData?: string;
|
|
974
|
+
/**
|
|
975
|
+
* Custom text to show in the callout in place of the y-axis value.
|
|
976
|
+
*/
|
|
977
|
+
yAxisCalloutData?: string;
|
|
978
|
+
/**
|
|
979
|
+
* Accessibility properties for the data point.
|
|
980
|
+
*/
|
|
981
|
+
callOutAccessibilityData?: AccessibilityProps;
|
|
982
|
+
/**
|
|
983
|
+
* Custom marker size for the data point.
|
|
984
|
+
*/
|
|
985
|
+
markerSize?: number;
|
|
986
|
+
/**
|
|
987
|
+
* Optional text to annotate or label the data point.
|
|
988
|
+
*/
|
|
989
|
+
text?: string;
|
|
990
|
+
/**
|
|
991
|
+
* Color of the data point. If not provided, it will inherit the series color.
|
|
992
|
+
*/
|
|
993
|
+
color?: string;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Base interface for a series.
|
|
998
|
+
*/
|
|
999
|
+
export declare interface DataSeries {
|
|
1000
|
+
/**
|
|
1001
|
+
* Name of the series to be displayed in the legend.
|
|
1002
|
+
*/
|
|
1003
|
+
legend: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Shape used in the legend (e.g., circle, square).
|
|
1006
|
+
*/
|
|
1007
|
+
legendShape?: LegendShape;
|
|
1008
|
+
/**
|
|
1009
|
+
* Color of the series.
|
|
1010
|
+
*/
|
|
1011
|
+
color?: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* Opacity of the series.
|
|
1014
|
+
*/
|
|
1015
|
+
opacity?: number;
|
|
1016
|
+
/**
|
|
1017
|
+
* Gradient fill for the series (start and end colors).
|
|
1018
|
+
*/
|
|
1019
|
+
gradient?: [string, string];
|
|
1020
|
+
/**
|
|
1021
|
+
* Whether this series should be plotted against a secondary Y-axis.
|
|
1022
|
+
*/
|
|
1023
|
+
useSecondaryYScale?: boolean;
|
|
1024
|
+
/**
|
|
1025
|
+
* Callback invoked when the legend item is clicked.
|
|
1026
|
+
*/
|
|
1027
|
+
onLegendClick?: (selectedLegend: string | null | string[]) => void;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
930
1030
|
export declare const DataVizPalette: {
|
|
931
1031
|
color1: string;
|
|
932
1032
|
color2: string;
|
|
@@ -1109,6 +1209,13 @@ export declare interface DonutChartProps extends CartesianChartProps {
|
|
|
1109
1209
|
* @default false
|
|
1110
1210
|
*/
|
|
1111
1211
|
roundCorners?: boolean;
|
|
1212
|
+
/**
|
|
1213
|
+
* Rendering order of the legend
|
|
1214
|
+
* @default 'default'
|
|
1215
|
+
* 'default' - as per data provided
|
|
1216
|
+
* 'sorted' - in descending order of value
|
|
1217
|
+
*/
|
|
1218
|
+
order?: 'default' | 'sorted';
|
|
1112
1219
|
}
|
|
1113
1220
|
|
|
1114
1221
|
/**
|
|
@@ -1760,6 +1867,11 @@ export declare interface GroupedVerticalBarChartProps extends CartesianChartProp
|
|
|
1760
1867
|
* The prop used to enable rounded corners for the chart.
|
|
1761
1868
|
*/
|
|
1762
1869
|
roundCorners?: boolean;
|
|
1870
|
+
/**
|
|
1871
|
+
* New flexible data prop - supports both bar and line series.
|
|
1872
|
+
* Use `dataV2` instead of `data` when line series are included.
|
|
1873
|
+
*/
|
|
1874
|
+
dataV2?: (BarSeries<string, number> | LineSeries<string, number>)[];
|
|
1763
1875
|
}
|
|
1764
1876
|
|
|
1765
1877
|
/**
|
|
@@ -1800,7 +1912,7 @@ export declare interface GVBarChartSeriesPoint {
|
|
|
1800
1912
|
/**
|
|
1801
1913
|
* Color for the legend in the chart
|
|
1802
1914
|
*/
|
|
1803
|
-
color
|
|
1915
|
+
color?: string;
|
|
1804
1916
|
/**
|
|
1805
1917
|
* Legend text in the chart
|
|
1806
1918
|
*/
|
|
@@ -2716,6 +2828,10 @@ export declare interface LineChartDataPoint extends BaseDataPoint {
|
|
|
2716
2828
|
* text labels of marker points
|
|
2717
2829
|
*/
|
|
2718
2830
|
text?: string;
|
|
2831
|
+
/**
|
|
2832
|
+
* Per-point marker color (overrides series color when present)
|
|
2833
|
+
*/
|
|
2834
|
+
markerColor?: string;
|
|
2719
2835
|
}
|
|
2720
2836
|
|
|
2721
2837
|
/**
|
|
@@ -2956,6 +3072,36 @@ export declare interface LineDataInVerticalStackedBarChart {
|
|
|
2956
3072
|
lineOptions?: LineChartLineOptions;
|
|
2957
3073
|
}
|
|
2958
3074
|
|
|
3075
|
+
/**
|
|
3076
|
+
* Represents a line series.
|
|
3077
|
+
*/
|
|
3078
|
+
export declare interface LineSeries<X extends string | number | Date, Y extends string | number | Date> extends DataSeries {
|
|
3079
|
+
/**
|
|
3080
|
+
* Type discriminator: always 'line' for this series.
|
|
3081
|
+
*/
|
|
3082
|
+
type: 'line';
|
|
3083
|
+
/**
|
|
3084
|
+
* Array of data points for the series.
|
|
3085
|
+
*/
|
|
3086
|
+
data: DataPointV2<X, Y>[];
|
|
3087
|
+
/**
|
|
3088
|
+
* Optional gaps to render in the line.
|
|
3089
|
+
*/
|
|
3090
|
+
gaps?: LineChartGap[];
|
|
3091
|
+
/**
|
|
3092
|
+
* Additional line rendering options (e.g., stroke width, curve type).
|
|
3093
|
+
*/
|
|
3094
|
+
lineOptions?: LineChartLineOptions;
|
|
3095
|
+
/**
|
|
3096
|
+
* If true, hides dots for inactive (unfocused/unhovered) data points.
|
|
3097
|
+
*/
|
|
3098
|
+
hideInactiveDots?: boolean;
|
|
3099
|
+
/**
|
|
3100
|
+
* Callback invoked when the line itself is clicked.
|
|
3101
|
+
*/
|
|
3102
|
+
onLineClick?: () => void;
|
|
3103
|
+
}
|
|
3104
|
+
|
|
2959
3105
|
export declare interface MapXToDataSet {
|
|
2960
3106
|
[key: string]: LineChartDataPoint[];
|
|
2961
3107
|
[key: number]: LineChartDataPoint[];
|
|
@@ -3440,6 +3586,10 @@ export declare interface ScatterChartDataPoint extends BaseDataPoint {
|
|
|
3440
3586
|
* text labels of marker points
|
|
3441
3587
|
*/
|
|
3442
3588
|
text?: string;
|
|
3589
|
+
/**
|
|
3590
|
+
* Per-point marker color (overrides series color when present)
|
|
3591
|
+
*/
|
|
3592
|
+
markerColor?: string;
|
|
3443
3593
|
}
|
|
3444
3594
|
|
|
3445
3595
|
/**
|