@fluentui/react-charting 5.24.1 → 5.24.3

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 (154) hide show
  1. package/CHANGELOG.json +61 -1
  2. package/CHANGELOG.md +25 -2
  3. package/dist/react-charting.d.ts +171 -33
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +60 -10
  7. package/lib/ScatterChart.d.ts +1 -0
  8. package/lib/ScatterChart.js +2 -0
  9. package/lib/ScatterChart.js.map +1 -0
  10. package/lib/components/CommonComponents/CartesianChart.base.js +45 -9
  11. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  12. package/lib/components/CommonComponents/CartesianChart.styles.js +48 -26
  13. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  14. package/lib/components/CommonComponents/CartesianChart.types.d.ts +21 -1
  15. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  16. package/lib/components/DeclarativeChart/DeclarativeChart.js +157 -78
  17. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  18. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +29 -13
  19. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +351 -95
  20. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  21. package/lib/components/LineChart/LineChart.base.js +23 -17
  22. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  23. package/lib/components/LineChart/LineChart.styles.js +9 -0
  24. package/lib/components/LineChart/LineChart.styles.js.map +1 -1
  25. package/lib/components/LineChart/LineChart.types.d.ts +2 -0
  26. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  27. package/lib/components/ScatterChart/ScatterChart.base.d.ts +7 -0
  28. package/lib/components/ScatterChart/ScatterChart.base.js +453 -0
  29. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -0
  30. package/lib/components/ScatterChart/ScatterChart.d.ts +7 -0
  31. package/lib/components/ScatterChart/ScatterChart.js +10 -0
  32. package/lib/components/ScatterChart/ScatterChart.js.map +1 -0
  33. package/lib/components/ScatterChart/ScatterChart.styles.d.ts +2 -0
  34. package/lib/components/ScatterChart/ScatterChart.styles.js +7 -0
  35. package/lib/components/ScatterChart/ScatterChart.styles.js.map +1 -0
  36. package/lib/components/ScatterChart/ScatterChart.types.d.ts +42 -0
  37. package/lib/components/ScatterChart/ScatterChart.types.js +2 -0
  38. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -0
  39. package/lib/components/ScatterChart/index.d.ts +2 -0
  40. package/lib/components/ScatterChart/index.js +3 -0
  41. package/lib/components/ScatterChart/index.js.map +1 -0
  42. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +8 -2
  43. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  44. package/lib/index.d.ts +3 -1
  45. package/lib/index.js +1 -0
  46. package/lib/index.js.map +1 -1
  47. package/lib/types/IDataPoint.d.ts +77 -11
  48. package/lib/types/IDataPoint.js.map +1 -1
  49. package/lib/utilities/SVGTooltipText.d.ts +4 -0
  50. package/lib/utilities/SVGTooltipText.js +1 -2
  51. package/lib/utilities/SVGTooltipText.js.map +1 -1
  52. package/lib/utilities/utilities.d.ts +27 -3
  53. package/lib/utilities/utilities.js +102 -1
  54. package/lib/utilities/utilities.js.map +1 -1
  55. package/lib-amd/ScatterChart.d.ts +1 -0
  56. package/lib-amd/ScatterChart.js +6 -0
  57. package/lib-amd/ScatterChart.js.map +1 -0
  58. package/lib-amd/components/CommonComponents/CartesianChart.base.js +45 -9
  59. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  60. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +48 -26
  61. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  62. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +21 -1
  63. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  64. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +155 -78
  65. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  66. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +29 -13
  67. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +362 -102
  68. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  69. package/lib-amd/components/LineChart/LineChart.base.js +23 -17
  70. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  71. package/lib-amd/components/LineChart/LineChart.styles.js +9 -1
  72. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -1
  73. package/lib-amd/components/LineChart/LineChart.types.d.ts +2 -0
  74. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -1
  75. package/lib-amd/components/ScatterChart/ScatterChart.base.d.ts +7 -0
  76. package/lib-amd/components/ScatterChart/ScatterChart.base.js +447 -0
  77. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -0
  78. package/lib-amd/components/ScatterChart/ScatterChart.d.ts +7 -0
  79. package/lib-amd/components/ScatterChart/ScatterChart.js +12 -0
  80. package/lib-amd/components/ScatterChart/ScatterChart.js.map +1 -0
  81. package/lib-amd/components/ScatterChart/ScatterChart.styles.d.ts +2 -0
  82. package/lib-amd/components/ScatterChart/ScatterChart.styles.js +12 -0
  83. package/lib-amd/components/ScatterChart/ScatterChart.styles.js.map +1 -0
  84. package/lib-amd/components/ScatterChart/ScatterChart.types.d.ts +42 -0
  85. package/lib-amd/components/ScatterChart/ScatterChart.types.js +5 -0
  86. package/lib-amd/components/ScatterChart/ScatterChart.types.js.map +1 -0
  87. package/lib-amd/components/ScatterChart/index.d.ts +2 -0
  88. package/lib-amd/components/ScatterChart/index.js +7 -0
  89. package/lib-amd/components/ScatterChart/index.js.map +1 -0
  90. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +8 -2
  91. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  92. package/lib-amd/index.d.ts +3 -1
  93. package/lib-amd/index.js +3 -2
  94. package/lib-amd/index.js.map +1 -1
  95. package/lib-amd/types/IDataPoint.d.ts +77 -11
  96. package/lib-amd/types/IDataPoint.js.map +1 -1
  97. package/lib-amd/utilities/SVGTooltipText.d.ts +4 -0
  98. package/lib-amd/utilities/SVGTooltipText.js +1 -2
  99. package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
  100. package/lib-amd/utilities/utilities.d.ts +27 -3
  101. package/lib-amd/utilities/utilities.js +106 -2
  102. package/lib-amd/utilities/utilities.js.map +1 -1
  103. package/lib-commonjs/ScatterChart.d.ts +1 -0
  104. package/lib-commonjs/ScatterChart.js +5 -0
  105. package/lib-commonjs/ScatterChart.js.map +1 -0
  106. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +45 -9
  107. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  108. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +48 -26
  109. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  110. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +21 -1
  111. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  112. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +157 -78
  113. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  114. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +29 -13
  115. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +361 -102
  116. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  117. package/lib-commonjs/components/LineChart/LineChart.base.js +23 -17
  118. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  119. package/lib-commonjs/components/LineChart/LineChart.styles.js +9 -0
  120. package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
  121. package/lib-commonjs/components/LineChart/LineChart.types.d.ts +2 -0
  122. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  123. package/lib-commonjs/components/ScatterChart/ScatterChart.base.d.ts +7 -0
  124. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +456 -0
  125. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -0
  126. package/lib-commonjs/components/ScatterChart/ScatterChart.d.ts +7 -0
  127. package/lib-commonjs/components/ScatterChart/ScatterChart.js +13 -0
  128. package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -0
  129. package/lib-commonjs/components/ScatterChart/ScatterChart.styles.d.ts +2 -0
  130. package/lib-commonjs/components/ScatterChart/ScatterChart.styles.js +11 -0
  131. package/lib-commonjs/components/ScatterChart/ScatterChart.styles.js.map +1 -0
  132. package/lib-commonjs/components/ScatterChart/ScatterChart.types.d.ts +42 -0
  133. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js +3 -0
  134. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -0
  135. package/lib-commonjs/components/ScatterChart/index.d.ts +2 -0
  136. package/lib-commonjs/components/ScatterChart/index.js +6 -0
  137. package/lib-commonjs/components/ScatterChart/index.js.map +1 -0
  138. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +8 -2
  139. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  140. package/lib-commonjs/index.d.ts +3 -1
  141. package/lib-commonjs/index.js +3 -1
  142. package/lib-commonjs/index.js.map +1 -1
  143. package/lib-commonjs/types/IDataPoint.d.ts +77 -11
  144. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  145. package/lib-commonjs/utilities/SVGTooltipText.d.ts +4 -0
  146. package/lib-commonjs/utilities/SVGTooltipText.js +1 -2
  147. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  148. package/lib-commonjs/utilities/utilities.d.ts +27 -3
  149. package/lib-commonjs/utilities/utilities.js +106 -2
  150. package/lib-commonjs/utilities/utilities.js.map +1 -1
  151. package/package.json +2 -2
  152. package/src/components/CommonComponents/CartesianChart.types.ts +25 -1
  153. package/src/components/LineChart/LineChart.types.ts +4 -1
  154. package/src/components/ScatterChart/ScatterChart.types.ts +61 -0
package/CHANGELOG.json CHANGED
@@ -2,7 +2,67 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 05 Jun 2025 07:20:15 GMT",
5
+ "date": "Thu, 12 Jun 2025 07:19:48 GMT",
6
+ "tag": "@fluentui/react-charting_v5.24.3",
7
+ "version": "5.24.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "anushgupta@microsoft.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "96ebe14eefb14c65b03856f17ffc03e8120cdea7",
14
+ "comment": "axis title background fix"
15
+ },
16
+ {
17
+ "author": "120183316+srmukher@users.noreply.github.com",
18
+ "package": "@fluentui/react-charting",
19
+ "commit": "3e902f17659ae2f04fbf92f72dba48b5e9c1cad5",
20
+ "comment": "feat(react-charting): Adding Scatter chart component"
21
+ },
22
+ {
23
+ "author": "98592573+AtishayMsft@users.noreply.github.com",
24
+ "package": "@fluentui/react-charting",
25
+ "commit": "4524a28299ce317d53ca354f7c0e202e5a491d04",
26
+ "comment": "feat(react-charting): Enable support for multiplots in declarative chart"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-charting",
31
+ "comment": "Bump @fluentui/chart-utilities to v1.1.16",
32
+ "commit": "96ebe14eefb14c65b03856f17ffc03e8120cdea7"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Fri, 06 Jun 2025 07:20:30 GMT",
39
+ "tag": "@fluentui/react-charting_v5.24.2",
40
+ "version": "5.24.2",
41
+ "comments": {
42
+ "patch": [
43
+ {
44
+ "author": "anushgupta@microsoft.com",
45
+ "package": "@fluentui/react-charting",
46
+ "commit": "53d7bf53544a0ebba8eca3207ced15013d06b088",
47
+ "comment": "add labels for text+markers"
48
+ },
49
+ {
50
+ "author": "120183316+srmukher@users.noreply.github.com",
51
+ "package": "@fluentui/react-charting",
52
+ "commit": "a3c3f0a6c5a72080ab3b7f31a6d1373f9967a9d0",
53
+ "comment": "fix(react-charting): Colorscale support for bar charts"
54
+ },
55
+ {
56
+ "author": "120183316+srmukher@users.noreply.github.com",
57
+ "package": "@fluentui/react-charting",
58
+ "commit": "bb2c83c0740c445d308ae2bb14100bf37a1ad8a8",
59
+ "comment": "fix(react-charting):Date Axis Support for Vertical Stacked Bar Chart"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Thu, 05 Jun 2025 07:20:36 GMT",
6
66
  "tag": "@fluentui/react-charting_v5.24.1",
7
67
  "version": "5.24.1",
8
68
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,35 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Thu, 05 Jun 2025 07:20:15 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 12 Jun 2025 07:19:48 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.24.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.3)
8
+
9
+ Thu, 12 Jun 2025 07:19:48 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.2..@fluentui/react-charting_v5.24.3)
11
+
12
+ ### Patches
13
+
14
+ - axis title background fix ([PR #34621](https://github.com/microsoft/fluentui/pull/34621) by anushgupta@microsoft.com)
15
+ - feat(react-charting): Adding Scatter chart component ([PR #34374](https://github.com/microsoft/fluentui/pull/34374) by 120183316+srmukher@users.noreply.github.com)
16
+ - feat(react-charting): Enable support for multiplots in declarative chart ([PR #34626](https://github.com/microsoft/fluentui/pull/34626) by 98592573+AtishayMsft@users.noreply.github.com)
17
+ - Bump @fluentui/chart-utilities to v1.1.16 ([PR #34621](https://github.com/microsoft/fluentui/pull/34621) by beachball)
18
+
19
+ ## [5.24.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.2)
20
+
21
+ Fri, 06 Jun 2025 07:20:30 GMT
22
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.1..@fluentui/react-charting_v5.24.2)
23
+
24
+ ### Patches
25
+
26
+ - add labels for text+markers ([PR #34587](https://github.com/microsoft/fluentui/pull/34587) by anushgupta@microsoft.com)
27
+ - fix(react-charting): Colorscale support for bar charts ([PR #34578](https://github.com/microsoft/fluentui/pull/34578) by 120183316+srmukher@users.noreply.github.com)
28
+ - fix(react-charting):Date Axis Support for Vertical Stacked Bar Chart ([PR #34532](https://github.com/microsoft/fluentui/pull/34532) by 120183316+srmukher@users.noreply.github.com)
29
+
7
30
  ## [5.24.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.1)
8
31
 
9
- Thu, 05 Jun 2025 07:20:15 GMT
32
+ Thu, 05 Jun 2025 07:20:36 GMT
10
33
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.0..@fluentui/react-charting_v5.24.1)
11
34
 
12
35
  ### Patches
@@ -58,7 +58,8 @@ declare enum ChartTypes {
58
58
  VerticalStackedBarChart = 3,
59
59
  GroupedVerticalBarChart = 4,
60
60
  HeatMapChart = 5,
61
- HorizontalBarChartWithAxis = 6
61
+ HorizontalBarChartWithAxis = 6,
62
+ ScatterChart = 7
62
63
  }
63
64
 
64
65
  declare type ColorwayType = 'default' | 'builtin' | 'others' | undefined;
@@ -335,6 +336,46 @@ declare interface IAxisData {
335
336
  yAxisDomainValues: number[];
336
337
  }
337
338
 
339
+ /**
340
+ * {@docCategory IChartData}
341
+ */
342
+ export declare interface IBaseDataPoint {
343
+ /**
344
+ * Defines the function that is executed on clicking line
345
+ */
346
+ onDataPointClick?: () => void;
347
+ /**
348
+ * Callout data for x axis
349
+ */
350
+ xAxisCalloutData?: string;
351
+ /**
352
+ * Callout data for y axis
353
+ */
354
+ yAxisCalloutData?: string | {
355
+ [id: string]: number;
356
+ };
357
+ /**
358
+ * Whether to hide callout data for the point.
359
+ */
360
+ hideCallout?: boolean;
361
+ /**
362
+ * Accessibility data for callout
363
+ */
364
+ callOutAccessibilityData?: IAccessibilityProps;
365
+ /**
366
+ * X axis Accessibility data for callout
367
+ */
368
+ xAxisCalloutAccessibilityData?: IAccessibilityProps;
369
+ /**
370
+ * Marker size of the points
371
+ */
372
+ markerSize?: number;
373
+ /**
374
+ * text labels of marker points
375
+ */
376
+ text?: string;
377
+ }
378
+
338
379
  export declare interface IBasestate {
339
380
  _width?: number;
340
381
  _height?: number;
@@ -594,6 +635,18 @@ export declare interface ICartesianChartProps {
594
635
  * @default false
595
636
  */
596
637
  hideTickOverlap?: boolean;
638
+ /**
639
+ * Prop to set the x axis annotation. Used to display additional information on the x-axis.
640
+ * This is shown on the top of the chart.
641
+ * @default undefined
642
+ */
643
+ xAxisAnnotation?: string;
644
+ /**
645
+ * Prop to set the y axis annotation. Used to display additional information on the y-axis.
646
+ * This is shown on the right side of the chart. Not shown if secondary y-axis is enabled.
647
+ * @default undefined
648
+ */
649
+ yAxisAnnotation?: string;
597
650
  }
598
651
 
599
652
  /**
@@ -709,9 +762,13 @@ export declare interface ICartesianChartStyles {
709
762
  */
710
763
  tooltip?: IStyle;
711
764
  /**
712
- * styles for tooltip
765
+ * styles for axis title
713
766
  */
714
767
  axisTitle?: IStyle;
768
+ /**
769
+ * styles for axis annotation
770
+ */
771
+ axisAnnotation?: IStyle;
715
772
  /**
716
773
  * Style for the chart Title.
717
774
  */
@@ -728,6 +785,10 @@ export declare interface ICartesianChartStyles {
728
785
  * Styles for the chart wrapper div
729
786
  */
730
787
  chartWrapper?: IStyle;
788
+ /**
789
+ * Styles for the svg tooltip
790
+ */
791
+ svgTooltip?: IStyle;
731
792
  }
732
793
 
733
794
  /**
@@ -918,6 +979,10 @@ export declare interface IChartProps {
918
979
  * data for the points in the line chart
919
980
  */
920
981
  lineChartData?: ILineChartPoints[];
982
+ /**
983
+ * data for the points in the scatter chart
984
+ */
985
+ scatterChartData?: IScatterChartPoints[];
921
986
  /**
922
987
  * data for the points in the line chart
923
988
  */
@@ -2481,7 +2546,7 @@ export declare interface ILegendSubComponentStyles {
2481
2546
  /**
2482
2547
  * {@docCategory IChartData}
2483
2548
  */
2484
- export declare interface ILineChartDataPoint {
2549
+ export declare interface ILineChartDataPoint extends IBaseDataPoint {
2485
2550
  /**
2486
2551
  * Independent value of the data point, rendered along the x-axis.
2487
2552
  * If x is a number, then each y-coordinate is plotted at its x-coordinate.
@@ -2492,36 +2557,6 @@ export declare interface ILineChartDataPoint {
2492
2557
  * Dependent value of the data point, rendered along the y-axis.
2493
2558
  */
2494
2559
  y: number;
2495
- /**
2496
- * Defines the function that is executed on clicking line
2497
- */
2498
- onDataPointClick?: () => void;
2499
- /**
2500
- * Callout data for x axis
2501
- */
2502
- xAxisCalloutData?: string;
2503
- /**
2504
- * Callout data for y axis
2505
- */
2506
- yAxisCalloutData?: string | {
2507
- [id: string]: number;
2508
- };
2509
- /**
2510
- * Whether to hide callout data for the point.
2511
- */
2512
- hideCallout?: boolean;
2513
- /**
2514
- * Accessibility data for callout
2515
- */
2516
- callOutAccessibilityData?: IAccessibilityProps;
2517
- /**
2518
- * X axis Accessibility data for callout
2519
- */
2520
- xAxisCalloutAccessibilityData?: IAccessibilityProps;
2521
- /**
2522
- * Marker size of the points
2523
- */
2524
- markerSize?: number;
2525
2560
  }
2526
2561
 
2527
2562
  /**
@@ -2706,6 +2741,7 @@ export declare interface ILineChartStyleProps extends ICartesianChartStyleProps
2706
2741
  * {@docCategory LineChart}
2707
2742
  */
2708
2743
  export declare interface ILineChartStyles extends ICartesianChartStyles {
2744
+ markerLabel?: IStyle;
2709
2745
  }
2710
2746
 
2711
2747
  /**
@@ -3474,6 +3510,102 @@ export declare interface ISankeyChartStyles {
3474
3510
  chartWrapper?: IStyle;
3475
3511
  }
3476
3512
 
3513
+ /**
3514
+ * {@docCategory IChartData}
3515
+ * ScatterChartDataPoint interface.
3516
+ */
3517
+ export declare interface IScatterChartDataPoint extends IBaseDataPoint {
3518
+ /**
3519
+ * Independent value of the data point, rendered along the x-axis.
3520
+ */
3521
+ x: number | Date | string;
3522
+ /**
3523
+ * Dependent value of the data point, rendered along the y-axis.
3524
+ */
3525
+ y: number;
3526
+ }
3527
+
3528
+ /**
3529
+ * {@docCategory IChartData}
3530
+ */
3531
+ export declare interface IScatterChartPoints {
3532
+ /**
3533
+ * Legend text for the datapoint in the chart
3534
+ */
3535
+ legend: string;
3536
+ /**
3537
+ * The shape for the legend
3538
+ * default: show the rect legend
3539
+ */
3540
+ legendShape?: LegendShape;
3541
+ /**
3542
+ * dataPoints for the line chart
3543
+ */
3544
+ data: IScatterChartDataPoint[];
3545
+ /**
3546
+ * color for the legend in the chart
3547
+ */
3548
+ color?: string;
3549
+ /**
3550
+ * opacity for chart fill color
3551
+ */
3552
+ opacity?: number;
3553
+ /**
3554
+ * hide dots for points that are not active
3555
+ */
3556
+ hideNonActiveDots?: boolean;
3557
+ /**
3558
+ * Defines the function that is executed on clicking this legend
3559
+ */
3560
+ onLegendClick?: (selectedLegend: string | null | string[]) => void;
3561
+ /**
3562
+ * Whether to use the secondary y scale or not
3563
+ * False by default.
3564
+ */
3565
+ useSecondaryYScale?: boolean;
3566
+ }
3567
+
3568
+ /**
3569
+ * Line Chart properties
3570
+ * {@docCategory LineChart}
3571
+ */
3572
+ export declare interface IScatterChartProps extends ICartesianChartProps {
3573
+ /**
3574
+ * Data to render in the chart.
3575
+ */
3576
+ data: IChartProps;
3577
+ /**
3578
+ * Call to provide customized styling that will layer on top of the variant rules.
3579
+ */
3580
+ styles?: IScatterChartStyles;
3581
+ /**
3582
+ * Define a custom callout renderer for a data point
3583
+ */
3584
+ onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;
3585
+ /**
3586
+ * Callback for getting callout description message
3587
+ */
3588
+ getCalloutDescriptionMessage?: (calloutDataProps: ICustomizedCalloutData) => string | undefined;
3589
+ /**
3590
+ * The prop used to define the culture to localized the numbers
3591
+ */
3592
+ culture?: string;
3593
+ }
3594
+
3595
+ /**
3596
+ * Scatter Chart style properties
3597
+ * {@docCategory ScatterChart}
3598
+ */
3599
+ export declare interface IScatterChartStyleProps extends ICartesianChartStyleProps {
3600
+ }
3601
+
3602
+ /**
3603
+ * Scatter Chart styles
3604
+ * {@docCategory ScatterChart}
3605
+ */
3606
+ export declare interface IScatterChartStyles extends ICartesianChartStyles {
3607
+ }
3608
+
3477
3609
  export declare interface IShapeProps {
3478
3610
  svgProps: React_2.SVGAttributes<SVGElement>;
3479
3611
  pathProps: React_2.SVGAttributes<SVGPathElement>;
@@ -4599,6 +4731,12 @@ export declare const ResponsiveContainer: React_2.FC<IResponsiveContainerProps>;
4599
4731
  */
4600
4732
  export declare const SankeyChart: React_2.FunctionComponent<ISankeyChartProps>;
4601
4733
 
4734
+ /**
4735
+ * Scatterchart component
4736
+ * {@docCategory ScatterChart}
4737
+ */
4738
+ export declare const ScatterChart: React_2.FunctionComponent<IScatterChartProps>;
4739
+
4602
4740
  /**
4603
4741
  * DeclarativeChart schema.
4604
4742
  * {@docCategory DeclarativeChart}