@fluentui/react-charts 9.3.0 → 9.3.1
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 +11 -2
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +3 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +3 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-charts
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 06 Oct 2025 15:01:29 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.3.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.3.1)
|
|
8
|
+
|
|
9
|
+
Mon, 06 Oct 2025 15:01:29 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.3.0..@fluentui/react-charts_v9.3.1)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- feat: enable wrapping of string x-axis labels in scatterchart ([PR #35231](https://github.com/microsoft/fluentui/pull/35231) by 132879294+v-baambati@users.noreply.github.com)
|
|
15
|
+
|
|
7
16
|
## [9.3.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.3.0)
|
|
8
17
|
|
|
9
|
-
Thu, 02 Oct 2025 15:
|
|
18
|
+
Thu, 02 Oct 2025 15:12:14 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.2.4..@fluentui/react-charts_v9.3.0)
|
|
11
20
|
|
|
12
21
|
### Minor changes
|
|
@@ -708,6 +708,7 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
|
|
|
708
708
|
let mode = 'tonexty';
|
|
709
709
|
const { legends, hideLegend } = getLegendProps(input.data, input.layout, isMultiPlot);
|
|
710
710
|
const yAxisTickFormat = getYAxisTickFormat(input.data[0], input.layout);
|
|
711
|
+
var shouldWrapLabels = false;
|
|
711
712
|
const chartData = input.data.map((series, index)=>{
|
|
712
713
|
var _series_mode, _series_line, _series_marker, _series_line1, _input_layout_template_layout, _input_layout_template, _input_layout, _series_mode1;
|
|
713
714
|
const colors = isScatterMarkers ? (series === null || series === void 0 ? void 0 : (_series_mode = series.mode) === null || _series_mode === void 0 ? void 0 : _series_mode.includes('line')) ? (_series_line = series.line) === null || _series_line === void 0 ? void 0 : _series_line.color : (_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.color : (_series_line1 = series.line) === null || _series_line1 === void 0 ? void 0 : _series_line1.color;
|
|
@@ -718,6 +719,7 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
|
|
|
718
719
|
const isXDate = isDateArray(xValues);
|
|
719
720
|
const isXNumber = isNumberArray(xValues);
|
|
720
721
|
const isXYearCategory = isYearArray(series.x); // Consider year as categorical not numeric continuous axis
|
|
722
|
+
shouldWrapLabels = shouldWrapLabels || isXString && !isXDate;
|
|
721
723
|
const legend = legends[index];
|
|
722
724
|
// resolve color for each legend's lines from the extracted colors
|
|
723
725
|
const seriesColor = resolveColor(extractedColors, index, legend, colorMap, isDarkTheme);
|
|
@@ -794,6 +796,7 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
|
|
|
794
796
|
hideTickOverlap: true,
|
|
795
797
|
hideLegend,
|
|
796
798
|
useUTC: false,
|
|
799
|
+
wrapXAxisLables: shouldWrapLabels,
|
|
797
800
|
optimizeLargeData: numDataPoints > 1000,
|
|
798
801
|
...getTitles(input.layout),
|
|
799
802
|
...getXAxisTickFormat(input.data[0], input.layout),
|