@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-charting",
3
- "version": "5.23.53",
3
+ "version": "5.23.54",
4
4
  "description": "React web charting controls for Microsoft fluentui system.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -236,7 +236,7 @@ export interface ICartesianChartProps {
236
236
  * This is a optional parameter if not specified D3 will decide which values appear on the x-axis for you
237
237
  * 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
238
238
  */
239
- tickValues?: number[] | Date[];
239
+ tickValues?: number[] | Date[] | string[];
240
240
 
241
241
  /**
242
242
  * the format for the data on x-axis. For date object this can be specified to your requirement. Eg: '%m/%d', '%d'
@@ -458,6 +458,12 @@ export interface ICartesianChartProps {
458
458
  * the public methods and properties of the component.
459
459
  */
460
460
  componentRef?: IRefObject<IChart>;
461
+
462
+ /**
463
+ * Determines whether overlapping x-axis tick labels should be hidden.
464
+ * @default false
465
+ */
466
+ hideTickOverlap?: boolean;
461
467
  }
462
468
 
463
469
  export interface IYValueHover {
@@ -557,7 +563,7 @@ export interface IModifiedCartesianChartProps extends ICartesianChartProps {
557
563
  * Tick params are applicable for date axis only.
558
564
  */
559
565
  tickParams?: {
560
- tickValues?: number[] | Date[];
566
+ tickValues?: number[] | Date[] | string[];
561
567
  tickFormat?: string;
562
568
  };
563
569
 
@@ -691,7 +697,7 @@ export interface IModifiedCartesianChartProps extends ICartesianChartProps {
691
697
  isRTL: boolean,
692
698
  xAxisType: XAxisTypes,
693
699
  barWidth: number,
694
- tickValues: Date[] | number[] | undefined,
700
+ tickValues: Date[] | number[] | string[] | undefined,
695
701
  shiftX: number,
696
702
  ) => IDomainNRange;
697
703