@fluentui/react-charts 9.2.1 → 9.2.3
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 +57 -2
- package/dist/index.d.ts +168 -15
- package/lib/ChartTable.js +1 -0
- package/lib/ChartTable.js.map +1 -0
- package/lib/components/AreaChart/AreaChart.js +4 -1
- package/lib/components/AreaChart/AreaChart.js.map +1 -1
- package/lib/components/AreaChart/useAreaChartStyles.styles.js +2 -1
- package/lib/components/AreaChart/useAreaChartStyles.styles.js.map +1 -1
- package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js +2 -1
- package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
- package/lib/components/ChartTable/ChartTable.js +58 -0
- package/lib/components/ChartTable/ChartTable.js.map +1 -0
- package/lib/components/ChartTable/ChartTable.types.js +1 -0
- package/lib/components/ChartTable/ChartTable.types.js.map +1 -0
- package/lib/components/ChartTable/index.js +3 -0
- package/lib/components/ChartTable/index.js.map +1 -0
- package/lib/components/ChartTable/useChartTableStyles.styles.js +93 -0
- package/lib/components/ChartTable/useChartTableStyles.styles.js.map +1 -0
- package/lib/components/ChartTable/useChartTableStyles.styles.raw.js +55 -0
- package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.js +170 -100
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -1
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +13 -0
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js +12 -0
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +180 -102
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +100 -0
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +890 -211
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.js +2 -2
- 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.map +1 -1
- package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
- package/lib/components/GanttChart/GanttChart.js.map +1 -1
- package/lib/components/GanttChart/useGanttChartStyles.styles.js +2 -1
- package/lib/components/GanttChart/useGanttChartStyles.styles.js.map +1 -1
- package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js +2 -1
- package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +185 -144
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +2 -1
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +2 -1
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.js +175 -114
- package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +2 -1
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -1
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +2 -1
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +26 -6
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +2 -1
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +2 -1
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
- package/lib/components/Legends/Legends.js.map +1 -1
- package/lib/components/Legends/OverflowMenu.js.map +1 -1
- package/lib/components/LineChart/LineChart.js +251 -78
- package/lib/components/LineChart/LineChart.js.map +1 -1
- package/lib/components/LineChart/LineChart.types.js.map +1 -1
- package/lib/components/LineChart/useLineChartStyles.styles.js +10 -3
- package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -1
- package/lib/components/LineChart/useLineChartStyles.styles.raw.js +14 -2
- package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.js +56 -37
- package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
- package/lib/components/ScatterChart/useScatterChartStyles.styles.js +21 -4
- package/lib/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
- package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js +16 -3
- package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.js +38 -14
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +2 -1
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +2 -1
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +214 -96
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +2 -1
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +2 -1
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/types/DataPoint.js.map +1 -1
- package/lib/utilities/FocusableTooltipText.js.map +1 -1
- package/lib/utilities/utilities.js +41 -42
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/utilities/vbc-utils.js +24 -0
- package/lib/utilities/vbc-utils.js.map +1 -1
- package/lib-commonjs/ChartTable.js +6 -0
- package/lib-commonjs/ChartTable.js.map +1 -0
- package/lib-commonjs/components/AreaChart/AreaChart.js +4 -1
- package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js +2 -1
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/ChartTable/ChartTable.js +69 -0
- package/lib-commonjs/components/ChartTable/ChartTable.js.map +1 -0
- package/lib-commonjs/components/ChartTable/ChartTable.types.js +6 -0
- package/lib-commonjs/components/ChartTable/ChartTable.types.js.map +1 -0
- package/lib-commonjs/components/ChartTable/index.js +8 -0
- package/lib-commonjs/components/ChartTable/index.js.map +1 -0
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js +196 -0
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js.map +1 -0
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js +69 -0
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +169 -98
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +13 -0
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js +12 -0
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +176 -100
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js +128 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +909 -209
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.js +1 -1
- 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.map +1 -1
- package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +1 -1
- package/lib-commonjs/components/GanttChart/GanttChart.js.map +1 -1
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js +2 -1
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +183 -142
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +2 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +174 -113
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js +2 -1
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +25 -5
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +2 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.js.map +1 -1
- package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js +250 -78
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +12 -3
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js +14 -2
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.js +56 -37
- package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js +30 -3
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js +15 -2
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +37 -13
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +2 -1
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +213 -95
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +2 -1
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/index.js +1 -0
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types/DataPoint.js.map +1 -1
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/utilities.js +44 -41
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/lib-commonjs/utilities/vbc-utils.js +27 -0
- package/lib-commonjs/utilities/vbc-utils.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,67 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-charts
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 21 Aug 2025 12:20:32 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.2.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.2.3)
|
|
8
|
+
|
|
9
|
+
Thu, 21 Aug 2025 12:20:32 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.2.2..@fluentui/react-charts_v9.2.3)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- add labels for text+markers ([PR #35025](https://github.com/microsoft/fluentui/pull/35025) by anushgupta@microsoft.com)
|
|
15
|
+
- fix scatter chart bugs ([PR #35047](https://github.com/microsoft/fluentui/pull/35047) by anushgupta@microsoft.com)
|
|
16
|
+
- update validation to tolerate invalid traces ([PR #34998](https://github.com/microsoft/fluentui/pull/34998) by anushgupta@microsoft.com)
|
|
17
|
+
- support for ordering tick labels ([PR #35053](https://github.com/microsoft/fluentui/pull/35053) by anushgupta@microsoft.com)
|
|
18
|
+
- colorscale support for bar charts ([PR #35026](https://github.com/microsoft/fluentui/pull/35026) by anushgupta@microsoft.com)
|
|
19
|
+
- pie chart fix ([PR #35013](https://github.com/microsoft/fluentui/pull/35013) by anushgupta@microsoft.com)
|
|
20
|
+
- use piecolorway for donut chart ([PR #34999](https://github.com/microsoft/fluentui/pull/34999) by anushgupta@microsoft.com)
|
|
21
|
+
- enable scatter chart in v9 declatative ([PR #35036](https://github.com/microsoft/fluentui/pull/35036) by anushgupta@microsoft.com)
|
|
22
|
+
- support for using opacity provided in plotly schema ([PR #35045](https://github.com/microsoft/fluentui/pull/35045) by anushgupta@microsoft.com)
|
|
23
|
+
- add date axis support in vsbc ([PR #35018](https://github.com/microsoft/fluentui/pull/35018) by anushgupta@microsoft.com)
|
|
24
|
+
- add support for multiplot declarative chart ([PR #35038](https://github.com/microsoft/fluentui/pull/35038) by anushgupta@microsoft.com)
|
|
25
|
+
- add styles to tables ([PR #35012](https://github.com/microsoft/fluentui/pull/35012) by anushgupta@microsoft.com)
|
|
26
|
+
- remove duplicated legends in line chart ([PR #34991](https://github.com/microsoft/fluentui/pull/34991) by anushgupta@microsoft.com)
|
|
27
|
+
- fix color issue in gvbc ([PR #35050](https://github.com/microsoft/fluentui/pull/35050) by anushgupta@microsoft.com)
|
|
28
|
+
- support for lines+markers ([PR #34997](https://github.com/microsoft/fluentui/pull/34997) by anushgupta@microsoft.com)
|
|
29
|
+
- use schema colorscale for gvbc ([PR #35011](https://github.com/microsoft/fluentui/pull/35011) by anushgupta@microsoft.com)
|
|
30
|
+
- add support for string y axis in VSBC ([PR #35016](https://github.com/microsoft/fluentui/pull/35016) by anushgupta@microsoft.com)
|
|
31
|
+
- Bump @fluentui/react-button to v9.6.5 ([PR #35055](https://github.com/microsoft/fluentui/pull/35055) by beachball)
|
|
32
|
+
- Bump @fluentui/react-jsx-runtime to v9.1.6 ([PR #35055](https://github.com/microsoft/fluentui/pull/35055) by beachball)
|
|
33
|
+
- Bump @fluentui/react-overflow to v9.5.5 ([PR #35055](https://github.com/microsoft/fluentui/pull/35055) by beachball)
|
|
34
|
+
- Bump @fluentui/react-popover to v9.12.5 ([PR #35055](https://github.com/microsoft/fluentui/pull/35055) by beachball)
|
|
35
|
+
- Bump @fluentui/react-shared-contexts to v9.25.0 ([PR #35055](https://github.com/microsoft/fluentui/pull/35055) by beachball)
|
|
36
|
+
- Bump @fluentui/react-tabster to v9.26.4 ([PR #35055](https://github.com/microsoft/fluentui/pull/35055) by beachball)
|
|
37
|
+
- Bump @fluentui/react-tooltip to v9.8.4 ([PR #35055](https://github.com/microsoft/fluentui/pull/35055) by beachball)
|
|
38
|
+
- Bump @fluentui/react-utilities to v9.24.0 ([PR #35055](https://github.com/microsoft/fluentui/pull/35055) by beachball)
|
|
39
|
+
|
|
40
|
+
## [9.2.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.2.2)
|
|
41
|
+
|
|
42
|
+
Thu, 07 Aug 2025 10:03:21 GMT
|
|
43
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.2.1..@fluentui/react-charts_v9.2.2)
|
|
44
|
+
|
|
45
|
+
### Patches
|
|
46
|
+
|
|
47
|
+
- support for stacked grouped vertical bar chart+ enable wrapping of string x-axis labels in declarative chart+ hide overlapping labels based on post transform width ([PR #34936](https://github.com/microsoft/fluentui/pull/34936) by anushgupta@microsoft.com)
|
|
48
|
+
- support schema colors ([PR #34967](https://github.com/microsoft/fluentui/pull/34967) by anushgupta@microsoft.com)
|
|
49
|
+
- fix: migrate to R19 compatible JSX.* namespace types ([PR #34923](https://github.com/microsoft/fluentui/pull/34923) by martinhochel@microsoft.com)
|
|
50
|
+
- Add support for plotly generated tables ([PR #34980](https://github.com/microsoft/fluentui/pull/34980) by anushgupta@microsoft.com)
|
|
51
|
+
- enable interaction with line points without bars ([PR #34953](https://github.com/microsoft/fluentui/pull/34953) by anushgupta@microsoft.com)
|
|
52
|
+
- enable round corners in declarative charts ([PR #34981](https://github.com/microsoft/fluentui/pull/34981) by anushgupta@microsoft.com)
|
|
53
|
+
- create plotly aligned colorway ([PR #34978](https://github.com/microsoft/fluentui/pull/34978) by anushgupta@microsoft.com)
|
|
54
|
+
- Bump @fluentui/react-button to v9.6.4 ([PR #34980](https://github.com/microsoft/fluentui/pull/34980) by beachball)
|
|
55
|
+
- Bump @fluentui/react-jsx-runtime to v9.1.5 ([PR #34980](https://github.com/microsoft/fluentui/pull/34980) by beachball)
|
|
56
|
+
- Bump @fluentui/react-overflow to v9.5.4 ([PR #34980](https://github.com/microsoft/fluentui/pull/34980) by beachball)
|
|
57
|
+
- Bump @fluentui/react-popover to v9.12.4 ([PR #34980](https://github.com/microsoft/fluentui/pull/34980) by beachball)
|
|
58
|
+
- Bump @fluentui/react-tabster to v9.26.3 ([PR #34980](https://github.com/microsoft/fluentui/pull/34980) by beachball)
|
|
59
|
+
- Bump @fluentui/react-tooltip to v9.8.3 ([PR #34980](https://github.com/microsoft/fluentui/pull/34980) by beachball)
|
|
60
|
+
- Bump @fluentui/react-utilities to v9.23.2 ([PR #34980](https://github.com/microsoft/fluentui/pull/34980) by beachball)
|
|
61
|
+
|
|
7
62
|
## [9.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.2.1)
|
|
8
63
|
|
|
9
|
-
Wed, 30 Jul 2025 16:
|
|
64
|
+
Wed, 30 Jul 2025 16:55:44 GMT
|
|
10
65
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.2.0..@fluentui/react-charts_v9.2.1)
|
|
11
66
|
|
|
12
67
|
### Patches
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
1
|
import { CurveFactory } from 'd3-shape';
|
|
2
|
+
import type { JSXElement } from '@fluentui/react-utilities';
|
|
4
3
|
import * as React_2 from 'react';
|
|
5
4
|
import { RefObject } from 'react';
|
|
6
5
|
import { SankeyGraph } from 'd3-sankey';
|
|
@@ -156,6 +155,10 @@ declare interface BaseDataPoint {
|
|
|
156
155
|
* X axis Accessibility data for callout
|
|
157
156
|
*/
|
|
158
157
|
xAxisCalloutAccessibilityData?: AccessibilityProps;
|
|
158
|
+
/**
|
|
159
|
+
* Marker size of the points
|
|
160
|
+
*/
|
|
161
|
+
markerSize?: number;
|
|
159
162
|
}
|
|
160
163
|
|
|
161
164
|
export declare interface Basestate {
|
|
@@ -163,14 +166,14 @@ export declare interface Basestate {
|
|
|
163
166
|
_height?: number;
|
|
164
167
|
activeLegend?: string;
|
|
165
168
|
color?: string;
|
|
166
|
-
dataForHoverCard?: number;
|
|
169
|
+
dataForHoverCard?: number | string;
|
|
167
170
|
isCalloutVisible: boolean;
|
|
168
171
|
isLegendSelected?: boolean;
|
|
169
172
|
isLegendHovered?: boolean;
|
|
170
173
|
refSelected?: any;
|
|
171
174
|
YValueHover?: {
|
|
172
175
|
legend?: string;
|
|
173
|
-
y?: number;
|
|
176
|
+
y?: number | string;
|
|
174
177
|
color?: string;
|
|
175
178
|
}[];
|
|
176
179
|
hoverYValue?: string | number | null;
|
|
@@ -530,9 +533,13 @@ export declare interface CartesianChartStyles {
|
|
|
530
533
|
*/
|
|
531
534
|
tooltip?: string;
|
|
532
535
|
/**
|
|
533
|
-
* styles for
|
|
536
|
+
* styles for axis title
|
|
534
537
|
*/
|
|
535
538
|
axisTitle?: string;
|
|
539
|
+
/**
|
|
540
|
+
* styles for axis annotation
|
|
541
|
+
*/
|
|
542
|
+
axisAnnotation?: string;
|
|
536
543
|
/**
|
|
537
544
|
* Style for the chart Title.
|
|
538
545
|
*/
|
|
@@ -637,7 +644,7 @@ export declare interface ChartPopoverProps {
|
|
|
637
644
|
color?: string;
|
|
638
645
|
culture?: string;
|
|
639
646
|
customCallout?: {
|
|
640
|
-
customizedCallout?:
|
|
647
|
+
customizedCallout?: JSXElement;
|
|
641
648
|
customCalloutProps?: ChartPopoverProps;
|
|
642
649
|
};
|
|
643
650
|
isCalloutForStack?: boolean;
|
|
@@ -677,6 +684,10 @@ export declare interface ChartProps {
|
|
|
677
684
|
* data for the points in the line chart
|
|
678
685
|
*/
|
|
679
686
|
lineChartData?: LineChartPoints[];
|
|
687
|
+
/**
|
|
688
|
+
* data for the points in the scatter chart
|
|
689
|
+
*/
|
|
690
|
+
scatterChartData?: ScatterChartPoints[];
|
|
680
691
|
/**
|
|
681
692
|
* data for the points in the line chart
|
|
682
693
|
*/
|
|
@@ -691,6 +702,64 @@ export declare interface ChartProps {
|
|
|
691
702
|
pointLineOptions?: SVGProps<SVGLineElement>;
|
|
692
703
|
}
|
|
693
704
|
|
|
705
|
+
export declare const ChartTable: React_2.FunctionComponent<ChartTableProps>;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Chart Table properties
|
|
709
|
+
* {@docCategory ChartTable}
|
|
710
|
+
*/
|
|
711
|
+
export declare interface ChartTableProps {
|
|
712
|
+
/**
|
|
713
|
+
* 1d or 2d Array of header values.
|
|
714
|
+
*/
|
|
715
|
+
headers: {
|
|
716
|
+
value: string | number | boolean | null;
|
|
717
|
+
style?: React_2.CSSProperties;
|
|
718
|
+
}[];
|
|
719
|
+
/**
|
|
720
|
+
* Array of rows. Each row corresponds to one data entry under each column.
|
|
721
|
+
*/
|
|
722
|
+
rows: {
|
|
723
|
+
value: string | number | boolean | null;
|
|
724
|
+
style?: React_2.CSSProperties;
|
|
725
|
+
}[][];
|
|
726
|
+
/**
|
|
727
|
+
* Optional width for the table
|
|
728
|
+
* @default '100%'
|
|
729
|
+
*/
|
|
730
|
+
width?: string | number;
|
|
731
|
+
/**
|
|
732
|
+
* Optional height for the table
|
|
733
|
+
* @default '650px'
|
|
734
|
+
*/
|
|
735
|
+
height?: string | number;
|
|
736
|
+
/**
|
|
737
|
+
* Additional class name(s) to apply to the table chart
|
|
738
|
+
*/
|
|
739
|
+
className?: string;
|
|
740
|
+
/**
|
|
741
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
742
|
+
*/
|
|
743
|
+
styles?: ChartTableStyles;
|
|
744
|
+
/**
|
|
745
|
+
* Optional callback to access the Chart interface. Use this instead of ref for accessing
|
|
746
|
+
* the public methods and properties of the component.
|
|
747
|
+
*/
|
|
748
|
+
componentRef?: React_2.RefObject<Chart>;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Table Chart styles
|
|
753
|
+
* {@docCategory ChartTable}
|
|
754
|
+
*/
|
|
755
|
+
export declare interface ChartTableStyles {
|
|
756
|
+
root?: string | React_2.CSSProperties;
|
|
757
|
+
table?: string;
|
|
758
|
+
headerCell?: string;
|
|
759
|
+
bodyCell?: string;
|
|
760
|
+
chart?: string;
|
|
761
|
+
}
|
|
762
|
+
|
|
694
763
|
declare enum ChartTypes {
|
|
695
764
|
AreaChart = 0,
|
|
696
765
|
LineChart = 1,
|
|
@@ -731,6 +800,8 @@ export declare interface ColorFillBarsProps {
|
|
|
731
800
|
onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;
|
|
732
801
|
}
|
|
733
802
|
|
|
803
|
+
declare type ColorwayType = 'default' | 'builtin' | 'others' | undefined;
|
|
804
|
+
|
|
734
805
|
/**
|
|
735
806
|
* Used for custom callout data interface. As Area chart callout data will be prepared from given props.data,
|
|
736
807
|
* Those required data passing to onRenderCalloutPerDataPoint and onRenderCalloutPerStack.
|
|
@@ -852,6 +923,14 @@ export declare interface DeclarativeChartProps extends React_2.RefAttributes<HTM
|
|
|
852
923
|
* the public methods and properties of the component.
|
|
853
924
|
*/
|
|
854
925
|
componentRef?: React_2.RefObject<IDeclarativeChart>;
|
|
926
|
+
/**
|
|
927
|
+
* Optional prop to specify the colorway type of the chart.
|
|
928
|
+
* - 'default': Use Fluent UI color palette aligning with plotly colorway.
|
|
929
|
+
* - 'builtin': Use Fluent UI colorway.
|
|
930
|
+
* - 'others': Reserved for future colorways.
|
|
931
|
+
* @default 'default'
|
|
932
|
+
*/
|
|
933
|
+
colorwayType?: ColorwayType;
|
|
855
934
|
}
|
|
856
935
|
|
|
857
936
|
/**
|
|
@@ -884,7 +963,7 @@ export declare interface DonutChartProps {
|
|
|
884
963
|
/**
|
|
885
964
|
* Define a custom callout renderer for a data point
|
|
886
965
|
*/
|
|
887
|
-
onRenderCalloutPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) =>
|
|
966
|
+
onRenderCalloutPerDataPoint?: (dataPointCalloutProps: ChartDataPoint) => JSXElement | undefined;
|
|
888
967
|
/**
|
|
889
968
|
* Define a custom callout props override
|
|
890
969
|
*/
|
|
@@ -947,6 +1026,11 @@ export declare interface DonutChartProps {
|
|
|
947
1026
|
* the public methods and properties of the component.
|
|
948
1027
|
*/
|
|
949
1028
|
componentRef?: React_2.RefObject<Chart>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Prop to enable the round corners in the chart
|
|
1031
|
+
* @default false
|
|
1032
|
+
*/
|
|
1033
|
+
roundCorners?: boolean;
|
|
950
1034
|
}
|
|
951
1035
|
|
|
952
1036
|
/**
|
|
@@ -1485,7 +1569,7 @@ export declare type GaugeChartVariant = 'single-segment' | 'multiple-segments';
|
|
|
1485
1569
|
*/
|
|
1486
1570
|
export declare type GaugeValueFormat = 'percentage' | 'fraction';
|
|
1487
1571
|
|
|
1488
|
-
export declare const getChartValueLabel: (chartValue: number, minValue: number, maxValue: number, chartValueFormat?: GaugeValueFormat | ((sweepFraction: [number, number]) => string)
|
|
1572
|
+
export declare const getChartValueLabel: (chartValue: number, minValue: number, maxValue: number, chartValueFormat?: GaugeValueFormat | ((sweepFraction: [number, number]) => string), forCallout?: boolean) => string;
|
|
1489
1573
|
|
|
1490
1574
|
export declare const getColorContrast: (c1: string, c2: string) => number;
|
|
1491
1575
|
|
|
@@ -1939,7 +2023,7 @@ export declare interface HorizontalBarChartProps extends React_2.RefAttributes<H
|
|
|
1939
2023
|
/**
|
|
1940
2024
|
* prop to render the custom callout
|
|
1941
2025
|
*/
|
|
1942
|
-
onRenderCalloutPerHorizontalBar?: (props: ChartDataPoint) =>
|
|
2026
|
+
onRenderCalloutPerHorizontalBar?: (props: ChartDataPoint) => JSXElement | undefined;
|
|
1943
2027
|
/**
|
|
1944
2028
|
* Define a custom callout props override
|
|
1945
2029
|
*/
|
|
@@ -2545,6 +2629,10 @@ export declare interface LineChartDataPoint extends BaseDataPoint {
|
|
|
2545
2629
|
* Dependent value of the data point, rendered along the y-axis.
|
|
2546
2630
|
*/
|
|
2547
2631
|
y: number;
|
|
2632
|
+
/**
|
|
2633
|
+
* text labels of marker points
|
|
2634
|
+
*/
|
|
2635
|
+
text?: string;
|
|
2548
2636
|
}
|
|
2549
2637
|
|
|
2550
2638
|
/**
|
|
@@ -2600,6 +2688,10 @@ export declare interface LineChartLineOptions extends SVGProps<SVGPathElement> {
|
|
|
2600
2688
|
* @default 'linear'
|
|
2601
2689
|
*/
|
|
2602
2690
|
curve?: 'linear' | 'natural' | 'step' | 'stepAfter' | 'stepBefore' | CurveFactory;
|
|
2691
|
+
/**
|
|
2692
|
+
* Defines the mode of points to be rendered.
|
|
2693
|
+
*/
|
|
2694
|
+
mode?: 'lines' | 'markers' | 'text' | 'lines+markers' | 'text+markers' | 'text+lines' | 'text+lines+markers' | 'none' | 'gauge' | 'number' | 'delta' | 'number+delta' | 'gauge+number' | 'gauge+number+delta' | 'gauge+delta' | 'markers+text' | 'lines+text' | 'lines+markers+text';
|
|
2603
2695
|
}
|
|
2604
2696
|
|
|
2605
2697
|
/**
|
|
@@ -2724,6 +2816,10 @@ export declare interface LineChartStyles extends CartesianChartStyles {
|
|
|
2724
2816
|
* styles for line border
|
|
2725
2817
|
*/
|
|
2726
2818
|
lineBorder?: string;
|
|
2819
|
+
/**
|
|
2820
|
+
* styles for marker label
|
|
2821
|
+
*/
|
|
2822
|
+
markerLabel?: string;
|
|
2727
2823
|
}
|
|
2728
2824
|
|
|
2729
2825
|
/**
|
|
@@ -2747,7 +2843,7 @@ export declare interface LineDataInVerticalBarChart {
|
|
|
2747
2843
|
* {@docCategory ChartData}
|
|
2748
2844
|
*/
|
|
2749
2845
|
export declare interface LineDataInVerticalStackedBarChart {
|
|
2750
|
-
y: number;
|
|
2846
|
+
y: number | string;
|
|
2751
2847
|
color: string;
|
|
2752
2848
|
legend: string;
|
|
2753
2849
|
/**
|
|
@@ -2758,7 +2854,7 @@ export declare interface LineDataInVerticalStackedBarChart {
|
|
|
2758
2854
|
/**
|
|
2759
2855
|
* Data to show in callout
|
|
2760
2856
|
*/
|
|
2761
|
-
data?: number;
|
|
2857
|
+
data?: number | string;
|
|
2762
2858
|
yAxisCalloutData?: string;
|
|
2763
2859
|
/**
|
|
2764
2860
|
* Whether to use the secondary y scale or not
|
|
@@ -2823,7 +2919,7 @@ export declare interface ModifiedCartesianChartProps extends CartesianChartProps
|
|
|
2823
2919
|
/**
|
|
2824
2920
|
* Legends of the chart.
|
|
2825
2921
|
*/
|
|
2826
|
-
legendBars:
|
|
2922
|
+
legendBars: JSXElement | null;
|
|
2827
2923
|
/**
|
|
2828
2924
|
* Callout props
|
|
2829
2925
|
*/
|
|
@@ -2992,7 +3088,7 @@ export declare interface RefArrayData {
|
|
|
2992
3088
|
* @public
|
|
2993
3089
|
*/
|
|
2994
3090
|
declare interface RenderFunction<P> {
|
|
2995
|
-
(props?: P, defaultRender?: (props?: P) =>
|
|
3091
|
+
(props?: P, defaultRender?: (props?: P) => JSXElement | null): JSXElement | null;
|
|
2996
3092
|
}
|
|
2997
3093
|
|
|
2998
3094
|
/**
|
|
@@ -3251,6 +3347,50 @@ export declare interface ScatterChartDataPoint extends BaseDataPoint {
|
|
|
3251
3347
|
* Marker size of the points
|
|
3252
3348
|
*/
|
|
3253
3349
|
markerSize?: number;
|
|
3350
|
+
/**
|
|
3351
|
+
* text labels of marker points
|
|
3352
|
+
*/
|
|
3353
|
+
text?: string;
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
/**
|
|
3357
|
+
* {@docCategory IChartData}
|
|
3358
|
+
*/
|
|
3359
|
+
export declare interface ScatterChartPoints {
|
|
3360
|
+
/**
|
|
3361
|
+
* Legend text for the datapoint in the chart
|
|
3362
|
+
*/
|
|
3363
|
+
legend: string;
|
|
3364
|
+
/**
|
|
3365
|
+
* The shape for the legend
|
|
3366
|
+
* default: show the rect legend
|
|
3367
|
+
*/
|
|
3368
|
+
legendShape?: LegendShape;
|
|
3369
|
+
/**
|
|
3370
|
+
* dataPoints for the line chart
|
|
3371
|
+
*/
|
|
3372
|
+
data: ScatterChartDataPoint[];
|
|
3373
|
+
/**
|
|
3374
|
+
* color for the legend in the chart
|
|
3375
|
+
*/
|
|
3376
|
+
color?: string;
|
|
3377
|
+
/**
|
|
3378
|
+
* opacity for chart fill color
|
|
3379
|
+
*/
|
|
3380
|
+
opacity?: number;
|
|
3381
|
+
/**
|
|
3382
|
+
* hide dots for points that are not active
|
|
3383
|
+
*/
|
|
3384
|
+
hideNonActiveDots?: boolean;
|
|
3385
|
+
/**
|
|
3386
|
+
* Defines the function that is executed on clicking this legend
|
|
3387
|
+
*/
|
|
3388
|
+
onLegendClick?: (selectedLegend: string | null | string[]) => void;
|
|
3389
|
+
/**
|
|
3390
|
+
* Whether to use the secondary y scale or not
|
|
3391
|
+
* False by default.
|
|
3392
|
+
*/
|
|
3393
|
+
useSecondaryYScale?: boolean;
|
|
3254
3394
|
}
|
|
3255
3395
|
|
|
3256
3396
|
/**
|
|
@@ -3292,6 +3432,10 @@ export declare interface ScatterChartStyleProps extends CartesianChartStyleProps
|
|
|
3292
3432
|
* {@docCategory ScatterChart}
|
|
3293
3433
|
*/
|
|
3294
3434
|
export declare interface ScatterChartStyles extends CartesianChartStyles {
|
|
3435
|
+
/**
|
|
3436
|
+
* Style for the marker label
|
|
3437
|
+
*/
|
|
3438
|
+
markerLabel?: string;
|
|
3295
3439
|
}
|
|
3296
3440
|
|
|
3297
3441
|
/**
|
|
@@ -3720,6 +3864,15 @@ export declare interface VerticalStackedBarChartProps extends CartesianChartProp
|
|
|
3720
3864
|
* @default 'default'
|
|
3721
3865
|
*/
|
|
3722
3866
|
mode?: 'default' | 'plotly';
|
|
3867
|
+
/**
|
|
3868
|
+
*@default false
|
|
3869
|
+
*Used for to elipse y axis labes and show tooltip on x axis labels
|
|
3870
|
+
*/
|
|
3871
|
+
showYAxisLablesTooltip?: boolean;
|
|
3872
|
+
/**
|
|
3873
|
+
*@default false
|
|
3874
|
+
*Used for showing complete y axis lables */
|
|
3875
|
+
showYAxisLables?: boolean;
|
|
3723
3876
|
}
|
|
3724
3877
|
|
|
3725
3878
|
/**
|
|
@@ -3791,7 +3944,7 @@ export declare interface VSChartDataPoint {
|
|
|
3791
3944
|
/**
|
|
3792
3945
|
* data the datapoint in the chart
|
|
3793
3946
|
*/
|
|
3794
|
-
data: number;
|
|
3947
|
+
data: number | string;
|
|
3795
3948
|
/**
|
|
3796
3949
|
* Legend text for the datapoint in the chart
|
|
3797
3950
|
*/
|
|
@@ -3840,7 +3993,7 @@ declare enum YAxisType {
|
|
|
3840
3993
|
|
|
3841
3994
|
export declare interface YValueHover {
|
|
3842
3995
|
legend?: string;
|
|
3843
|
-
y?: number;
|
|
3996
|
+
y?: number | string;
|
|
3844
3997
|
color?: string;
|
|
3845
3998
|
data?: string | number;
|
|
3846
3999
|
shouldDrawBorderBottom?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/ChartTable/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ChartTable.ts"],"sourcesContent":["export * from './components/ChartTable/index';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC"}
|
|
@@ -91,6 +91,9 @@ export const AreaChart = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
|
91
91
|
};
|
|
92
92
|
}, []);
|
|
93
93
|
const classes = useAreaChartStyles(props);
|
|
94
|
+
function _getMinMaxOfYAxis(points, yAxisType, useSecondaryYScale) {
|
|
95
|
+
return findNumericMinMaxOfY(points, yAxisType, useSecondaryYScale);
|
|
96
|
+
}
|
|
94
97
|
function _getDomainNRangeValues(points, margins, width, chartType, isRTL, xAxisType, barWidth, tickValues) {
|
|
95
98
|
let domainNRangeValue;
|
|
96
99
|
if (xAxisType === XAxisTypes.NumericAxis) {
|
|
@@ -788,7 +791,7 @@ export const AreaChart = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
|
788
791
|
createStringYAxis: createStringYAxis,
|
|
789
792
|
getmargins: _getMargins,
|
|
790
793
|
onChartMouseLeave: _handleChartMouseLeave,
|
|
791
|
-
getMinMaxOfYAxis:
|
|
794
|
+
getMinMaxOfYAxis: _getMinMaxOfYAxis,
|
|
792
795
|
enableFirstRenderOptimization: props.enablePerfOptimization && _firstRenderOptimization,
|
|
793
796
|
componentRef: cartesianChartRef,
|
|
794
797
|
/* eslint-disable react/jsx-no-bind */ // eslint-disable-next-line react/no-children-prop, @typescript-eslint/no-shadow
|