@fluentui/react-charting 5.23.17 → 5.23.19

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 (76) hide show
  1. package/CHANGELOG.json +37 -1
  2. package/CHANGELOG.md +21 -2
  3. package/dist/react-charting.d.ts +38 -0
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +18 -0
  7. package/lib/DeclarativeChart.d.ts +1 -0
  8. package/lib/DeclarativeChart.js +2 -0
  9. package/lib/DeclarativeChart.js.map +1 -0
  10. package/lib/components/AreaChart/AreaChart.base.js +6 -5
  11. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  12. package/lib/components/CommonComponents/CartesianChart.base.js +2 -2
  13. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  14. package/lib/components/DeclarativeChart/DeclarativeChart.d.ts +36 -0
  15. package/lib/components/DeclarativeChart/DeclarativeChart.js +67 -0
  16. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
  17. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +27 -0
  18. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +387 -0
  19. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
  20. package/lib/components/Legends/shape.js +3 -3
  21. package/lib/components/Legends/shape.js.map +1 -1
  22. package/lib/components/LineChart/eventAnnotation/Textbox.js +2 -1
  23. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  24. package/lib/index.d.ts +2 -0
  25. package/lib/index.js +1 -0
  26. package/lib/index.js.map +1 -1
  27. package/lib/utilities/utilities.d.ts +1 -0
  28. package/lib/utilities/utilities.js +7 -1
  29. package/lib/utilities/utilities.js.map +1 -1
  30. package/lib-amd/DeclarativeChart.d.ts +1 -0
  31. package/lib-amd/DeclarativeChart.js +6 -0
  32. package/lib-amd/DeclarativeChart.js.map +1 -0
  33. package/lib-amd/components/AreaChart/AreaChart.base.js +5 -4
  34. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  35. package/lib-amd/components/CommonComponents/CartesianChart.base.js +1 -1
  36. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  37. package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +36 -0
  38. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +58 -0
  39. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
  40. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +27 -0
  41. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +402 -0
  42. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
  43. package/lib-amd/components/Legends/shape.js +2 -2
  44. package/lib-amd/components/Legends/shape.js.map +1 -1
  45. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +2 -2
  46. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  47. package/lib-amd/index.d.ts +2 -0
  48. package/lib-amd/index.js +3 -2
  49. package/lib-amd/index.js.map +1 -1
  50. package/lib-amd/utilities/utilities.d.ts +1 -0
  51. package/lib-amd/utilities/utilities.js +8 -1
  52. package/lib-amd/utilities/utilities.js.map +1 -1
  53. package/lib-commonjs/DeclarativeChart.d.ts +1 -0
  54. package/lib-commonjs/DeclarativeChart.js +5 -0
  55. package/lib-commonjs/DeclarativeChart.js.map +1 -0
  56. package/lib-commonjs/components/AreaChart/AreaChart.base.js +5 -4
  57. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  58. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +1 -1
  59. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  60. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +36 -0
  61. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +70 -0
  62. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
  63. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +27 -0
  64. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +402 -0
  65. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
  66. package/lib-commonjs/components/Legends/shape.js +2 -2
  67. package/lib-commonjs/components/Legends/shape.js.map +1 -1
  68. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +2 -1
  69. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  70. package/lib-commonjs/index.d.ts +2 -0
  71. package/lib-commonjs/index.js +3 -1
  72. package/lib-commonjs/index.js.map +1 -1
  73. package/lib-commonjs/utilities/utilities.d.ts +1 -0
  74. package/lib-commonjs/utilities/utilities.js +8 -1
  75. package/lib-commonjs/utilities/utilities.js.map +1 -1
  76. package/package.json +1 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,43 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 22 Nov 2024 07:20:13 GMT",
5
+ "date": "Tue, 03 Dec 2024 07:20:08 GMT",
6
+ "tag": "@fluentui/react-charting_v5.23.19",
7
+ "version": "5.23.19",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "atisjai@microsoft.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "99e5e6a9d394d6be64a58ac4ffb38b11023bcb72",
14
+ "comment": "Create declarative chart component"
15
+ },
16
+ {
17
+ "author": "110246001+krkshitij@users.noreply.github.com",
18
+ "package": "@fluentui/react-charting",
19
+ "commit": "f97d1c3965fcd9dc372123b7a9c47f2c8220fd1d",
20
+ "comment": "Add grouped vertical bar chart plotly adapter"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Mon, 02 Dec 2024 07:20:01 GMT",
27
+ "tag": "@fluentui/react-charting_v5.23.18",
28
+ "version": "5.23.18",
29
+ "comments": {
30
+ "patch": [
31
+ {
32
+ "author": "110246001+krkshitij@users.noreply.github.com",
33
+ "package": "@fluentui/react-charting",
34
+ "commit": "850601c455b4ed1261d9fcaf16a79118fc6589b4",
35
+ "comment": "Mitigate XSS vulnerabilities"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Fri, 22 Nov 2024 07:21:18 GMT",
6
42
  "tag": "@fluentui/react-charting_v5.23.17",
7
43
  "version": "5.23.17",
8
44
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Fri, 22 Nov 2024 07:20:13 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 03 Dec 2024 07:20:08 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.23.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.19)
8
+
9
+ Tue, 03 Dec 2024 07:20:08 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.18..@fluentui/react-charting_v5.23.19)
11
+
12
+ ### Patches
13
+
14
+ - Create declarative chart component ([PR #33348](https://github.com/microsoft/fluentui/pull/33348) by atisjai@microsoft.com)
15
+ - Add grouped vertical bar chart plotly adapter ([PR #33383](https://github.com/microsoft/fluentui/pull/33383) by 110246001+krkshitij@users.noreply.github.com)
16
+
17
+ ## [5.23.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.18)
18
+
19
+ Mon, 02 Dec 2024 07:20:01 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.17..@fluentui/react-charting_v5.23.18)
21
+
22
+ ### Patches
23
+
24
+ - Mitigate XSS vulnerabilities ([PR #33376](https://github.com/microsoft/fluentui/pull/33376) by 110246001+krkshitij@users.noreply.github.com)
25
+
7
26
  ## [5.23.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.17)
8
27
 
9
- Fri, 22 Nov 2024 07:20:13 GMT
28
+ Fri, 22 Nov 2024 07:21:18 GMT
10
29
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.16..@fluentui/react-charting_v5.23.17)
11
30
 
12
31
  ### Patches
@@ -136,6 +136,27 @@ export declare const DataVizPalette: {
136
136
  highSuccess: string;
137
137
  };
138
138
 
139
+ /**
140
+ * DeclarativeChart component.
141
+ * {@docCategory DeclarativeChart}
142
+ */
143
+ export declare const DeclarativeChart: React_2.FunctionComponent<DeclarativeChartProps>;
144
+
145
+ /**
146
+ * DeclarativeChart props.
147
+ * {@docCategory DeclarativeChart}
148
+ */
149
+ export declare interface DeclarativeChartProps extends React_2.RefAttributes<HTMLDivElement> {
150
+ /**
151
+ * The schema representing the chart data, layout and configuration
152
+ */
153
+ chartSchema: Schema;
154
+ /**
155
+ * Callback when an event occurs
156
+ */
157
+ onSchemaChange?: (eventData: Schema) => void;
158
+ }
159
+
139
160
  /**
140
161
  * Donutchart component.
141
162
  * {@docCategory DonutChart}
@@ -4224,6 +4245,23 @@ declare enum Points {
4224
4245
  */
4225
4246
  export declare const SankeyChart: React_2.FunctionComponent<ISankeyChartProps>;
4226
4247
 
4248
+ export declare interface Schema {
4249
+ /**
4250
+ * Plotly schema represented as JSON object
4251
+ */
4252
+ plotlySchema: any;
4253
+ /**
4254
+ * The legends selected by the user to persist in the chart
4255
+ */
4256
+ selectedLegends?: string[];
4257
+ /**
4258
+ * Dictionary for localizing the accessibility labels
4259
+ */
4260
+ accesibilityLabels?: {
4261
+ [key: string]: string;
4262
+ };
4263
+ }
4264
+
4227
4265
  export declare const Shape: React_2.FC<IShapeProps>;
4228
4266
 
4229
4267
  export declare type SLink = SankeyLink<ISNodeExtra, ISLinkExtra>;