@fluentui/react-charts 0.0.0-nightly-20251028-0422.1 → 0.0.0-nightly-20251029-0406.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 CHANGED
@@ -1,28 +1,28 @@
1
1
  # Change Log - @fluentui/react-charts
2
2
 
3
- This log was last generated on Tue, 28 Oct 2025 04:36:58 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 29 Oct 2025 04:20:46 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20251028-0422.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v0.0.0-nightly-20251028-0422.1)
7
+ ## [0.0.0-nightly-20251029-0406.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v0.0.0-nightly-20251029-0406.1)
8
8
 
9
- Tue, 28 Oct 2025 04:36:58 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.3.3..@fluentui/react-charts_v0.0.0-nightly-20251028-0422.1)
9
+ Wed, 29 Oct 2025 04:20:46 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charts_v9.3.3..@fluentui/react-charts_v0.0.0-nightly-20251029-0406.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-button to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
16
- - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
17
- - Bump @fluentui/react-overflow to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
18
- - Bump @fluentui/react-popover to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
19
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
20
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
21
- - Bump @fluentui/react-theme to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
22
- - Bump @fluentui/react-tooltip to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
23
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
24
- - Bump @fluentui/react-conformance to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
25
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20251028-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/e8a03ccb33e33ecc33cdd0db471ce9ca0141b287) by beachball)
15
+ - Bump @fluentui/react-button to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
16
+ - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
17
+ - Bump @fluentui/react-overflow to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
18
+ - Bump @fluentui/react-popover to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
19
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
20
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
21
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
22
+ - Bump @fluentui/react-tooltip to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
23
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
24
+ - Bump @fluentui/react-conformance to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
25
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20251029-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/2ff23b66360318fb9382112f8ef435d77c4d4967) by beachball)
26
26
 
27
27
  ## [9.3.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-charts_v9.3.3)
28
28
 
@@ -409,7 +409,7 @@ export const transformPlotlyJsonToDonutProps = (input, isMultiPlot, colorMap, co
409
409
  };
410
410
  };
411
411
  export const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme, fallbackVSBC)=>{
412
- var _input_data_, _input_layout, _input_layout1, _input_layout2, _vsbcData_;
412
+ var _input_layout, _input_layout1, _input_layout2, _vsbcData_;
413
413
  const mapXToDataPoints = {};
414
414
  let yMaxValue = 0;
415
415
  let yMinValue = 0;
@@ -486,15 +486,30 @@ export const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, col
486
486
  });
487
487
  });
488
488
  });
489
- var _input_data__x;
490
- const xCategories = (_input_data__x = (_input_data_ = input.data[0]) === null || _input_data_ === void 0 ? void 0 : _input_data_.x) !== null && _input_data__x !== void 0 ? _input_data__x : [];
489
+ var _input_data;
490
+ const xCategories = Array.from(new Set(((_input_data = input.data) !== null && _input_data !== void 0 ? _input_data : []).flatMap((trace)=>{
491
+ const xData = trace.x;
492
+ if (!xData) {
493
+ return [];
494
+ }
495
+ if (Array.isArray(xData)) {
496
+ return xData.flat().map((x)=>{
497
+ return x;
498
+ });
499
+ }
500
+ return [];
501
+ }).filter((x)=>x !== undefined && x !== null)));
491
502
  var _input_layout_shapes;
492
503
  ((_input_layout_shapes = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.shapes) !== null && _input_layout_shapes !== void 0 ? _input_layout_shapes : []).filter((shape)=>shape.type === 'line').forEach((shape, shapeIdx)=>{
493
504
  var _shape_line;
494
505
  const lineColor = (_shape_line = shape.line) === null || _shape_line === void 0 ? void 0 : _shape_line.color;
495
506
  const resolveX = (val)=>{
496
- if (typeof val === 'number' && Array.isArray(xCategories) && xCategories[val] !== undefined) {
497
- return xCategories[val];
507
+ if (typeof val === 'number' && Array.isArray(xCategories)) {
508
+ if (xCategories[val] !== undefined) {
509
+ return xCategories[val];
510
+ } else {
511
+ return xCategories[shapeIdx];
512
+ }
498
513
  }
499
514
  return val;
500
515
  };