@fluentui/react-charting 5.23.53 → 5.23.54

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.
Files changed (41) hide show
  1. package/CHANGELOG.json +16 -1
  2. package/CHANGELOG.md +11 -2
  3. package/dist/react-charting.d.ts +8 -3
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +4 -3
  7. package/lib/components/CommonComponents/CartesianChart.base.js +7 -2
  8. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  9. package/lib/components/CommonComponents/CartesianChart.types.d.ts +8 -3
  10. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  11. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +7 -0
  12. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  13. package/lib/components/HeatMapChart/HeatMapChart.base.js +5 -1
  14. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  15. package/lib/utilities/utilities.d.ts +4 -2
  16. package/lib/utilities/utilities.js +86 -36
  17. package/lib/utilities/utilities.js.map +1 -1
  18. package/lib-amd/components/CommonComponents/CartesianChart.base.js +7 -2
  19. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  20. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +8 -3
  21. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  22. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +7 -0
  23. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  24. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +5 -1
  25. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  26. package/lib-amd/utilities/utilities.d.ts +4 -2
  27. package/lib-amd/utilities/utilities.js +86 -36
  28. package/lib-amd/utilities/utilities.js.map +1 -1
  29. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +7 -2
  30. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  31. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +8 -3
  32. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  33. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +7 -0
  34. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  35. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +5 -1
  36. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  37. package/lib-commonjs/utilities/utilities.d.ts +4 -2
  38. package/lib-commonjs/utilities/utilities.js +86 -36
  39. package/lib-commonjs/utilities/utilities.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/components/CommonComponents/CartesianChart.types.ts +9 -3
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 12 Feb 2025 07:20:28 GMT",
5
+ "date": "Thu, 13 Feb 2025 07:21:58 GMT",
6
+ "tag": "@fluentui/react-charting_v5.23.54",
7
+ "version": "5.23.54",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "110246001+krkshitij@users.noreply.github.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "f9427b8df618f765dbf233c601060a7e123444d0",
14
+ "comment": "feat: hide overlapping x-axis tick labels"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 12 Feb 2025 07:20:51 GMT",
6
21
  "tag": "@fluentui/react-charting_v5.23.53",
7
22
  "version": "5.23.53",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Wed, 12 Feb 2025 07:20:28 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 13 Feb 2025 07:21:58 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.23.54](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.54)
8
+
9
+ Thu, 13 Feb 2025 07:21:58 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.53..@fluentui/react-charting_v5.23.54)
11
+
12
+ ### Patches
13
+
14
+ - feat: hide overlapping x-axis tick labels ([PR #33678](https://github.com/microsoft/fluentui/pull/33678) by 110246001+krkshitij@users.noreply.github.com)
15
+
7
16
  ## [5.23.53](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.53)
8
17
 
9
- Wed, 12 Feb 2025 07:20:28 GMT
18
+ Wed, 12 Feb 2025 07:20:51 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.52..@fluentui/react-charting_v5.23.53)
11
20
 
12
21
  ### Patches
@@ -393,7 +393,7 @@ export declare interface ICartesianChartProps {
393
393
  * This is a optional parameter if not specified D3 will decide which values appear on the x-axis for you
394
394
  * Please look at https://github.com/d3/d3-scale for more information on how D3 decides what data to appear on the axis of chart
395
395
  */
396
- tickValues?: number[] | Date[];
396
+ tickValues?: number[] | Date[] | string[];
397
397
  /**
398
398
  * the format for the data on x-axis. For date object this can be specified to your requirement. Eg: '%m/%d', '%d'
399
399
  * Please look at https://github.com/d3/d3-time-format for all the formats supported for date axis
@@ -572,6 +572,11 @@ export declare interface ICartesianChartProps {
572
572
  * the public methods and properties of the component.
573
573
  */
574
574
  componentRef?: IRefObject<IChart>;
575
+ /**
576
+ * Determines whether overlapping x-axis tick labels should be hidden.
577
+ * @default false
578
+ */
579
+ hideTickOverlap?: boolean;
575
580
  }
576
581
 
577
582
  /**
@@ -2715,7 +2720,7 @@ export declare interface IModifiedCartesianChartProps extends ICartesianChartPro
2715
2720
  * Tick params are applicable for date axis only.
2716
2721
  */
2717
2722
  tickParams?: {
2718
- tickValues?: number[] | Date[];
2723
+ tickValues?: number[] | Date[] | string[];
2719
2724
  tickFormat?: string;
2720
2725
  };
2721
2726
  /**
@@ -2803,7 +2808,7 @@ export declare interface IModifiedCartesianChartProps extends ICartesianChartPro
2803
2808
  /**
2804
2809
  * Get the domain and range values
2805
2810
  */
2806
- getDomainNRangeValues: (points: ILineChartPoints[] | IVerticalBarChartDataPoint[] | IVerticalStackedBarDataPoint[] | IHorizontalBarChartWithAxisDataPoint[] | IGroupedVerticalBarChartData[] | IHeatMapChartDataPoint[], margins: IMargins, width: number, chartType: ChartTypes, isRTL: boolean, xAxisType: XAxisTypes, barWidth: number, tickValues: Date[] | number[] | undefined, shiftX: number) => IDomainNRange;
2811
+ getDomainNRangeValues: (points: ILineChartPoints[] | IVerticalBarChartDataPoint[] | IVerticalStackedBarDataPoint[] | IHorizontalBarChartWithAxisDataPoint[] | IGroupedVerticalBarChartData[] | IHeatMapChartDataPoint[], margins: IMargins, width: number, chartType: ChartTypes, isRTL: boolean, xAxisType: XAxisTypes, barWidth: number, tickValues: Date[] | number[] | string[] | undefined, shiftX: number) => IDomainNRange;
2807
2812
  /**
2808
2813
  * Create the string y-axis
2809
2814
  */