@fluentui/react-charting 5.24.21 → 5.24.23

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 (109) hide show
  1. package/CHANGELOG.json +55 -1
  2. package/CHANGELOG.md +24 -2
  3. package/bundle-size/ScatterChart.fixture.js +7 -0
  4. package/dist/react-charting.d.ts +29 -4
  5. package/dist/react-charting.js +1 -1
  6. package/dist/react-charting.min.js +1 -1
  7. package/etc/react-charting.api.md +10 -4
  8. package/lib/components/AreaChart/AreaChart.base.js +3 -3
  9. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  10. package/lib/components/CommonComponents/CartesianChart.base.js +4 -4
  11. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  12. package/lib/components/CommonComponents/CartesianChart.types.d.ts +18 -3
  13. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  14. package/lib/components/DeclarativeChart/DeclarativeChart.js +2 -1
  15. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  16. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
  17. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +187 -11
  18. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  19. package/lib/components/HeatMapChart/HeatMapChart.base.js +1 -1
  20. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  21. package/lib/components/HeatMapChart/HeatMapChart.styles.js +1 -8
  22. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  23. package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
  24. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  25. package/lib/components/LineChart/LineChart.base.d.ts +0 -9
  26. package/lib/components/LineChart/LineChart.base.js +82 -138
  27. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  28. package/lib/components/ScatterChart/ScatterChart.base.js +37 -62
  29. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
  30. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +2 -2
  31. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  32. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
  33. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  34. package/lib/index.d.ts +1 -1
  35. package/lib/index.js.map +1 -1
  36. package/lib/types/IDataPoint.d.ts +9 -0
  37. package/lib/types/IDataPoint.js.map +1 -1
  38. package/lib/utilities/utilities.d.ts +29 -28
  39. package/lib/utilities/utilities.js +127 -110
  40. package/lib/utilities/utilities.js.map +1 -1
  41. package/lib-amd/components/AreaChart/AreaChart.base.js +2 -2
  42. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  43. package/lib-amd/components/CommonComponents/CartesianChart.base.js +4 -4
  44. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  45. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +18 -3
  46. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  47. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +2 -1
  48. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  49. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
  50. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +188 -11
  51. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  52. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +1 -1
  53. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  54. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +1 -8
  55. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  56. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
  57. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  58. package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -9
  59. package/lib-amd/components/LineChart/LineChart.base.js +80 -136
  60. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  61. package/lib-amd/components/ScatterChart/ScatterChart.base.js +35 -60
  62. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
  63. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +1 -1
  64. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  65. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  66. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  67. package/lib-amd/index.d.ts +1 -1
  68. package/lib-amd/index.js.map +1 -1
  69. package/lib-amd/types/IDataPoint.d.ts +9 -0
  70. package/lib-amd/types/IDataPoint.js.map +1 -1
  71. package/lib-amd/utilities/utilities.d.ts +29 -28
  72. package/lib-amd/utilities/utilities.js +133 -113
  73. package/lib-amd/utilities/utilities.js.map +1 -1
  74. package/lib-commonjs/components/AreaChart/AreaChart.base.js +2 -2
  75. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  76. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +4 -4
  77. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  78. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +18 -3
  79. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  80. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +2 -1
  81. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  82. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
  83. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +188 -11
  84. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  85. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +1 -1
  86. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  87. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js +1 -8
  88. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  89. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
  90. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  91. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +0 -9
  92. package/lib-commonjs/components/LineChart/LineChart.base.js +80 -136
  93. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  94. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +35 -60
  95. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
  96. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +1 -1
  97. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  98. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  99. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  100. package/lib-commonjs/index.d.ts +1 -1
  101. package/lib-commonjs/index.js.map +1 -1
  102. package/lib-commonjs/types/IDataPoint.d.ts +9 -0
  103. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  104. package/lib-commonjs/utilities/utilities.d.ts +29 -28
  105. package/lib-commonjs/utilities/utilities.js +134 -114
  106. package/lib-commonjs/utilities/utilities.js.map +1 -1
  107. package/package.json +4 -4
  108. package/src/components/CommonComponents/CartesianChart.types.ts +22 -2
  109. package/src/components/HeatMapChart/HeatMapChart.types.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-charting",
3
- "version": "5.24.21",
3
+ "version": "5.24.23",
4
4
  "description": "React web charting controls for Microsoft fluentui system.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -39,9 +39,9 @@
39
39
  "jest-canvas-mock": "2.4.0"
40
40
  },
41
41
  "dependencies": {
42
- "@fluentui/chart-utilities": "^1.1.26",
42
+ "@fluentui/chart-utilities": "^1.1.27",
43
43
  "@fluentui/react-focus": "^8.9.25",
44
- "@fluentui/theme-samples": "^8.7.212",
44
+ "@fluentui/theme-samples": "^8.7.213",
45
45
  "@microsoft/load-themed-styles": "^1.10.26",
46
46
  "@types/d3-array": "^3.0.0",
47
47
  "@types/d3-axis": "^3.0.0",
@@ -69,7 +69,7 @@
69
69
  "tslib": "^2.1.0"
70
70
  },
71
71
  "peerDependencies": {
72
- "@fluentui/react": "^8.123.3",
72
+ "@fluentui/react": "^8.123.4",
73
73
  "@types/react": ">=16.8.0 <19.0.0",
74
74
  "@types/react-dom": ">=16.8.0 <19.0.0",
75
75
  "react": ">=16.8.0 <19.0.0",
@@ -7,6 +7,7 @@ import { ICalloutProps } from '@fluentui/react/lib/Callout';
7
7
  import { ILegendsProps } from '../Legends/index';
8
8
  import {
9
9
  AxisCategoryOrder,
10
+ AxisScaleType,
10
11
  IAccessibilityProps,
11
12
  IChart,
12
13
  IDataPoint,
@@ -16,7 +17,7 @@ import {
16
17
  IHorizontalBarChartWithAxisDataPoint,
17
18
  ILineChartPoints,
18
19
  IMargins,
19
- IScatterChartDataPoint,
20
+ IScatterChartPoints,
20
21
  IVerticalBarChartDataPoint,
21
22
  IVerticalStackedBarDataPoint,
22
23
  } from '../../types/index';
@@ -513,6 +514,24 @@ export interface ICartesianChartProps {
513
514
  * @default 'default'
514
515
  */
515
516
  yAxisCategoryOrder?: AxisCategoryOrder;
517
+
518
+ /**
519
+ * Defines the scale type for the x-axis.
520
+ * @default 'default'
521
+ */
522
+ xScaleType?: AxisScaleType;
523
+
524
+ /**
525
+ * Defines the scale type for the primary y-axis.
526
+ * @default 'default'
527
+ */
528
+ yScaleType?: AxisScaleType;
529
+
530
+ /**
531
+ * Defines the scale type for the secondary y-axis.
532
+ * @default 'default'
533
+ */
534
+ secondaryYScaleType?: AxisScaleType;
516
535
  }
517
536
 
518
537
  export interface IYValueHover {
@@ -721,7 +740,7 @@ export interface IModifiedCartesianChartProps extends ICartesianChartProps {
721
740
  | IHorizontalBarChartWithAxisDataPoint[]
722
741
  | IVerticalBarChartDataPoint[]
723
742
  | IDataPoint[]
724
- | IScatterChartDataPoint[]
743
+ | IScatterChartPoints[]
725
744
  | IGanttChartDataPoint[],
726
745
  yAxisType: YAxisType | undefined,
727
746
  useSecondaryYScale?: boolean,
@@ -738,6 +757,7 @@ export interface IModifiedCartesianChartProps extends ICartesianChartProps {
738
757
  useSecondaryYScale?: boolean,
739
758
  supportNegativeData?: boolean,
740
759
  roundedTicks?: boolean,
760
+ scaleType?: AxisScaleType,
741
761
  ) => ScaleLinear<number, number, never>;
742
762
 
743
763
  /**
@@ -140,7 +140,7 @@ export interface IHeatMapChartStyles {
140
140
  root?: IStyle;
141
141
  text?: IStyle;
142
142
  subComponentStyles: {
143
- cartesianStyles: IStyleFunctionOrObject<ICartesianChartStyleProps, ICartesianChartStyles>;
144
- calloutStyles: IStyleFunctionOrObject<ICalloutContentStyleProps, ICalloutContentStyles>;
143
+ cartesianStyles?: IStyleFunctionOrObject<ICartesianChartStyleProps, ICartesianChartStyles>;
144
+ calloutStyles?: IStyleFunctionOrObject<ICalloutContentStyleProps, ICalloutContentStyles>;
145
145
  };
146
146
  }