@fluentui/react-charting 5.25.4 → 5.25.6

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 (379) hide show
  1. package/CHANGELOG.json +107 -1
  2. package/CHANGELOG.md +30 -2
  3. package/bundle-size/PolarChart.fixture.js +7 -0
  4. package/dist/react-charting.d.ts +424 -1
  5. package/dist/react-charting.js +1 -1
  6. package/dist/react-charting.min.js +1 -1
  7. package/etc/react-charting.api.md +93 -1
  8. package/lib/PolarChart.d.ts +1 -0
  9. package/lib/PolarChart.js +2 -0
  10. package/lib/PolarChart.js.map +1 -0
  11. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +1 -1
  12. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
  13. package/lib/components/AreaChart/AreaChart.base.d.ts +0 -1
  14. package/lib/components/AreaChart/AreaChart.base.js +2 -31
  15. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  16. package/lib/components/ChartTable/ChartTable.base.js +12 -4
  17. package/lib/components/ChartTable/ChartTable.base.js.map +1 -1
  18. package/lib/components/ChartTable/ChartTable.styles.js +3 -0
  19. package/lib/components/ChartTable/ChartTable.styles.js.map +1 -1
  20. package/lib/components/ChartTable/ChartTable.types.d.ts +11 -0
  21. package/lib/components/ChartTable/ChartTable.types.js.map +1 -1
  22. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +11 -6
  23. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
  24. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.d.ts +1 -0
  25. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js +17 -1
  26. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js.map +1 -1
  27. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.d.ts +5 -0
  28. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
  29. package/lib/components/CommonComponents/CartesianChart.base.d.ts +1 -1
  30. package/lib/components/CommonComponents/CartesianChart.base.js +82 -42
  31. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  32. package/lib/components/CommonComponents/CartesianChart.styles.js +31 -27
  33. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  34. package/lib/components/CommonComponents/CartesianChart.types.d.ts +20 -1
  35. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  36. package/lib/components/DeclarativeChart/DeclarativeChart.js +24 -28
  37. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  38. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +3 -1
  39. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +390 -267
  40. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  41. package/lib/components/DonutChart/DonutChart.base.d.ts +1 -0
  42. package/lib/components/DonutChart/DonutChart.base.js +16 -4
  43. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  44. package/lib/components/DonutChart/DonutChart.styles.js +3 -1
  45. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
  46. package/lib/components/DonutChart/DonutChart.types.d.ts +13 -0
  47. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  48. package/lib/components/DonutChart/Pie/Pie.js +4 -2
  49. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  50. package/lib/components/FunnelChart/FunnelChart.base.js +14 -8
  51. package/lib/components/FunnelChart/FunnelChart.base.js.map +1 -1
  52. package/lib/components/FunnelChart/FunnelChart.styles.js +3 -0
  53. package/lib/components/FunnelChart/FunnelChart.styles.js.map +1 -1
  54. package/lib/components/FunnelChart/FunnelChart.types.d.ts +13 -0
  55. package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
  56. package/lib/components/GaugeChart/GaugeChart.base.js +2 -2
  57. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  58. package/lib/components/GaugeChart/GaugeChart.styles.js +16 -22
  59. package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  60. package/lib/components/GaugeChart/GaugeChart.types.d.ts +9 -0
  61. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  62. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -1
  63. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +6 -18
  64. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  65. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +2 -0
  66. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +55 -5
  67. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  68. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +12 -1
  69. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  70. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -0
  71. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  72. package/lib/components/LineChart/LineChart.base.d.ts +0 -1
  73. package/lib/components/LineChart/LineChart.base.js +2 -26
  74. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  75. package/lib/components/PolarChart/PolarChart.base.d.ts +3 -0
  76. package/lib/components/PolarChart/PolarChart.base.js +426 -0
  77. package/lib/components/PolarChart/PolarChart.base.js.map +1 -0
  78. package/lib/components/PolarChart/PolarChart.d.ts +7 -0
  79. package/lib/components/PolarChart/PolarChart.js +9 -0
  80. package/lib/components/PolarChart/PolarChart.js.map +1 -0
  81. package/lib/components/PolarChart/PolarChart.styles.d.ts +2 -0
  82. package/lib/components/PolarChart/PolarChart.styles.js +39 -0
  83. package/lib/components/PolarChart/PolarChart.styles.js.map +1 -0
  84. package/lib/components/PolarChart/PolarChart.types.d.ts +185 -0
  85. package/lib/components/PolarChart/PolarChart.types.js +2 -0
  86. package/lib/components/PolarChart/PolarChart.types.js.map +1 -0
  87. package/lib/components/PolarChart/PolarChart.utils.d.ts +43 -0
  88. package/lib/components/PolarChart/PolarChart.utils.js +180 -0
  89. package/lib/components/PolarChart/PolarChart.utils.js.map +1 -0
  90. package/lib/components/PolarChart/index.d.ts +2 -0
  91. package/lib/components/PolarChart/index.js +3 -0
  92. package/lib/components/PolarChart/index.js.map +1 -0
  93. package/lib/components/SankeyChart/SankeyChart.base.js +10 -3
  94. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  95. package/lib/components/SankeyChart/SankeyChart.styles.js +3 -0
  96. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  97. package/lib/components/SankeyChart/SankeyChart.types.d.ts +18 -0
  98. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  99. package/lib/components/ScatterChart/ScatterChart.base.js +14 -32
  100. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
  101. package/lib/components/ScatterChart/ScatterChart.types.d.ts +4 -0
  102. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
  103. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -1
  104. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +12 -80
  105. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  106. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -1
  107. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +19 -31
  108. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  109. package/lib/index.d.ts +2 -0
  110. package/lib/index.js +1 -0
  111. package/lib/index.js.map +1 -1
  112. package/lib/types/IDataPoint.d.ts +107 -0
  113. package/lib/types/IDataPoint.js.map +1 -1
  114. package/lib/utilities/ChartTitle.d.ts +55 -0
  115. package/lib/utilities/ChartTitle.js +45 -0
  116. package/lib/utilities/ChartTitle.js.map +1 -0
  117. package/lib/utilities/Common.styles.d.ts +51 -0
  118. package/lib/utilities/Common.styles.js +70 -1
  119. package/lib/utilities/Common.styles.js.map +1 -1
  120. package/lib/utilities/image-export-utils.js +4 -4
  121. package/lib/utilities/image-export-utils.js.map +1 -1
  122. package/lib/utilities/index.d.ts +1 -0
  123. package/lib/utilities/index.js +1 -0
  124. package/lib/utilities/index.js.map +1 -1
  125. package/lib/utilities/utilities.d.ts +32 -8
  126. package/lib/utilities/utilities.js +232 -111
  127. package/lib/utilities/utilities.js.map +1 -1
  128. package/lib-amd/PolarChart.d.ts +1 -0
  129. package/lib-amd/PolarChart.js +6 -0
  130. package/lib-amd/PolarChart.js.map +1 -0
  131. package/lib-amd/components/AnnotationOnlyChart/AnnotationOnlyChart.js +1 -1
  132. package/lib-amd/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
  133. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +0 -1
  134. package/lib-amd/components/AreaChart/AreaChart.base.js +1 -29
  135. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  136. package/lib-amd/components/ChartTable/ChartTable.base.js +12 -5
  137. package/lib-amd/components/ChartTable/ChartTable.base.js.map +1 -1
  138. package/lib-amd/components/ChartTable/ChartTable.styles.js +3 -1
  139. package/lib-amd/components/ChartTable/ChartTable.styles.js.map +1 -1
  140. package/lib-amd/components/ChartTable/ChartTable.types.d.ts +11 -0
  141. package/lib-amd/components/ChartTable/ChartTable.types.js.map +1 -1
  142. package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.js +11 -6
  143. package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
  144. package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.d.ts +1 -0
  145. package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js +17 -1
  146. package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js.map +1 -1
  147. package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.types.d.ts +5 -0
  148. package/lib-amd/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
  149. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +1 -1
  150. package/lib-amd/components/CommonComponents/CartesianChart.base.js +81 -41
  151. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  152. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +30 -26
  153. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  154. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +20 -1
  155. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  156. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +22 -28
  157. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  158. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +3 -1
  159. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +392 -269
  160. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  161. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +1 -0
  162. package/lib-amd/components/DonutChart/DonutChart.base.js +15 -3
  163. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  164. package/lib-amd/components/DonutChart/DonutChart.styles.js +2 -0
  165. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -1
  166. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +13 -0
  167. package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -1
  168. package/lib-amd/components/DonutChart/Pie/Pie.js +4 -2
  169. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
  170. package/lib-amd/components/FunnelChart/FunnelChart.base.js +14 -9
  171. package/lib-amd/components/FunnelChart/FunnelChart.base.js.map +1 -1
  172. package/lib-amd/components/FunnelChart/FunnelChart.styles.js +3 -1
  173. package/lib-amd/components/FunnelChart/FunnelChart.styles.js.map +1 -1
  174. package/lib-amd/components/FunnelChart/FunnelChart.types.d.ts +13 -0
  175. package/lib-amd/components/FunnelChart/FunnelChart.types.js.map +1 -1
  176. package/lib-amd/components/GaugeChart/GaugeChart.base.js +1 -1
  177. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
  178. package/lib-amd/components/GaugeChart/GaugeChart.styles.js +16 -23
  179. package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  180. package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +9 -0
  181. package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
  182. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -1
  183. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +4 -16
  184. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  185. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +2 -0
  186. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +54 -4
  187. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  188. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +12 -2
  189. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  190. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -0
  191. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  192. package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -1
  193. package/lib-amd/components/LineChart/LineChart.base.js +1 -25
  194. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  195. package/lib-amd/components/PolarChart/PolarChart.base.d.ts +3 -0
  196. package/lib-amd/components/PolarChart/PolarChart.base.js +421 -0
  197. package/lib-amd/components/PolarChart/PolarChart.base.js.map +1 -0
  198. package/lib-amd/components/PolarChart/PolarChart.d.ts +7 -0
  199. package/lib-amd/components/PolarChart/PolarChart.js +11 -0
  200. package/lib-amd/components/PolarChart/PolarChart.js.map +1 -0
  201. package/lib-amd/components/PolarChart/PolarChart.styles.d.ts +2 -0
  202. package/lib-amd/components/PolarChart/PolarChart.styles.js +43 -0
  203. package/lib-amd/components/PolarChart/PolarChart.styles.js.map +1 -0
  204. package/lib-amd/components/PolarChart/PolarChart.types.d.ts +185 -0
  205. package/lib-amd/components/PolarChart/PolarChart.types.js +5 -0
  206. package/lib-amd/components/PolarChart/PolarChart.types.js.map +1 -0
  207. package/lib-amd/components/PolarChart/PolarChart.utils.d.ts +43 -0
  208. package/lib-amd/components/PolarChart/PolarChart.utils.js +183 -0
  209. package/lib-amd/components/PolarChart/PolarChart.utils.js.map +1 -0
  210. package/lib-amd/components/PolarChart/index.d.ts +2 -0
  211. package/lib-amd/components/PolarChart/index.js +7 -0
  212. package/lib-amd/components/PolarChart/index.js.map +1 -0
  213. package/lib-amd/components/SankeyChart/SankeyChart.base.js +10 -4
  214. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  215. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +3 -1
  216. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  217. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +18 -0
  218. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -1
  219. package/lib-amd/components/ScatterChart/ScatterChart.base.js +13 -31
  220. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
  221. package/lib-amd/components/ScatterChart/ScatterChart.types.d.ts +4 -0
  222. package/lib-amd/components/ScatterChart/ScatterChart.types.js.map +1 -1
  223. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -1
  224. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +12 -79
  225. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  226. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -1
  227. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +19 -30
  228. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  229. package/lib-amd/index.d.ts +2 -0
  230. package/lib-amd/index.js +3 -2
  231. package/lib-amd/index.js.map +1 -1
  232. package/lib-amd/types/IDataPoint.d.ts +107 -0
  233. package/lib-amd/types/IDataPoint.js.map +1 -1
  234. package/lib-amd/utilities/ChartTitle.d.ts +55 -0
  235. package/lib-amd/utilities/ChartTitle.js +46 -0
  236. package/lib-amd/utilities/ChartTitle.js.map +1 -0
  237. package/lib-amd/utilities/Common.styles.d.ts +51 -0
  238. package/lib-amd/utilities/Common.styles.js +74 -2
  239. package/lib-amd/utilities/Common.styles.js.map +1 -1
  240. package/lib-amd/utilities/image-export-utils.js +3 -3
  241. package/lib-amd/utilities/image-export-utils.js.map +1 -1
  242. package/lib-amd/utilities/index.d.ts +1 -0
  243. package/lib-amd/utilities/index.js +2 -1
  244. package/lib-amd/utilities/index.js.map +1 -1
  245. package/lib-amd/utilities/utilities.d.ts +32 -8
  246. package/lib-amd/utilities/utilities.js +239 -114
  247. package/lib-amd/utilities/utilities.js.map +1 -1
  248. package/lib-commonjs/PolarChart.d.ts +1 -0
  249. package/lib-commonjs/PolarChart.js +5 -0
  250. package/lib-commonjs/PolarChart.js.map +1 -0
  251. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js +1 -1
  252. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
  253. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +0 -1
  254. package/lib-commonjs/components/AreaChart/AreaChart.base.js +0 -29
  255. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  256. package/lib-commonjs/components/ChartTable/ChartTable.base.js +12 -4
  257. package/lib-commonjs/components/ChartTable/ChartTable.base.js.map +1 -1
  258. package/lib-commonjs/components/ChartTable/ChartTable.styles.js +3 -0
  259. package/lib-commonjs/components/ChartTable/ChartTable.styles.js.map +1 -1
  260. package/lib-commonjs/components/ChartTable/ChartTable.types.d.ts +11 -0
  261. package/lib-commonjs/components/ChartTable/ChartTable.types.js.map +1 -1
  262. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js +11 -6
  263. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
  264. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.d.ts +1 -0
  265. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js +17 -1
  266. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.styles.js.map +1 -1
  267. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.d.ts +5 -0
  268. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
  269. package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +1 -1
  270. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +81 -41
  271. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  272. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +30 -26
  273. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  274. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +20 -1
  275. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  276. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +23 -27
  277. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  278. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +3 -1
  279. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +392 -269
  280. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  281. package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +1 -0
  282. package/lib-commonjs/components/DonutChart/DonutChart.base.js +15 -3
  283. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  284. package/lib-commonjs/components/DonutChart/DonutChart.styles.js +2 -0
  285. package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
  286. package/lib-commonjs/components/DonutChart/DonutChart.types.d.ts +13 -0
  287. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  288. package/lib-commonjs/components/DonutChart/Pie/Pie.js +4 -2
  289. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  290. package/lib-commonjs/components/FunnelChart/FunnelChart.base.js +14 -8
  291. package/lib-commonjs/components/FunnelChart/FunnelChart.base.js.map +1 -1
  292. package/lib-commonjs/components/FunnelChart/FunnelChart.styles.js +3 -0
  293. package/lib-commonjs/components/FunnelChart/FunnelChart.styles.js.map +1 -1
  294. package/lib-commonjs/components/FunnelChart/FunnelChart.types.d.ts +13 -0
  295. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +1 -1
  296. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +1 -1
  297. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  298. package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js +16 -22
  299. package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  300. package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +9 -0
  301. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  302. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -1
  303. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +4 -16
  304. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  305. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +2 -0
  306. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +54 -4
  307. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  308. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +12 -1
  309. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
  310. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -0
  311. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  312. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +0 -1
  313. package/lib-commonjs/components/LineChart/LineChart.base.js +1 -25
  314. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  315. package/lib-commonjs/components/PolarChart/PolarChart.base.d.ts +3 -0
  316. package/lib-commonjs/components/PolarChart/PolarChart.base.js +429 -0
  317. package/lib-commonjs/components/PolarChart/PolarChart.base.js.map +1 -0
  318. package/lib-commonjs/components/PolarChart/PolarChart.d.ts +7 -0
  319. package/lib-commonjs/components/PolarChart/PolarChart.js +12 -0
  320. package/lib-commonjs/components/PolarChart/PolarChart.js.map +1 -0
  321. package/lib-commonjs/components/PolarChart/PolarChart.styles.d.ts +2 -0
  322. package/lib-commonjs/components/PolarChart/PolarChart.styles.js +43 -0
  323. package/lib-commonjs/components/PolarChart/PolarChart.styles.js.map +1 -0
  324. package/lib-commonjs/components/PolarChart/PolarChart.types.d.ts +185 -0
  325. package/lib-commonjs/components/PolarChart/PolarChart.types.js +3 -0
  326. package/lib-commonjs/components/PolarChart/PolarChart.types.js.map +1 -0
  327. package/lib-commonjs/components/PolarChart/PolarChart.utils.d.ts +43 -0
  328. package/lib-commonjs/components/PolarChart/PolarChart.utils.js +188 -0
  329. package/lib-commonjs/components/PolarChart/PolarChart.utils.js.map +1 -0
  330. package/lib-commonjs/components/PolarChart/index.d.ts +2 -0
  331. package/lib-commonjs/components/PolarChart/index.js +6 -0
  332. package/lib-commonjs/components/PolarChart/index.js.map +1 -0
  333. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +10 -3
  334. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  335. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +3 -0
  336. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  337. package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +18 -0
  338. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  339. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +13 -31
  340. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
  341. package/lib-commonjs/components/ScatterChart/ScatterChart.types.d.ts +4 -0
  342. package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +1 -1
  343. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -1
  344. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +11 -79
  345. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  346. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -1
  347. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +18 -30
  348. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  349. package/lib-commonjs/index.d.ts +2 -0
  350. package/lib-commonjs/index.js +3 -1
  351. package/lib-commonjs/index.js.map +1 -1
  352. package/lib-commonjs/types/IDataPoint.d.ts +107 -0
  353. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  354. package/lib-commonjs/utilities/ChartTitle.d.ts +55 -0
  355. package/lib-commonjs/utilities/ChartTitle.js +49 -0
  356. package/lib-commonjs/utilities/ChartTitle.js.map +1 -0
  357. package/lib-commonjs/utilities/Common.styles.d.ts +51 -0
  358. package/lib-commonjs/utilities/Common.styles.js +74 -2
  359. package/lib-commonjs/utilities/Common.styles.js.map +1 -1
  360. package/lib-commonjs/utilities/image-export-utils.js +3 -3
  361. package/lib-commonjs/utilities/image-export-utils.js.map +1 -1
  362. package/lib-commonjs/utilities/index.d.ts +1 -0
  363. package/lib-commonjs/utilities/index.js +1 -0
  364. package/lib-commonjs/utilities/index.js.map +1 -1
  365. package/lib-commonjs/utilities/utilities.d.ts +32 -8
  366. package/lib-commonjs/utilities/utilities.js +239 -114
  367. package/lib-commonjs/utilities/utilities.js.map +1 -1
  368. package/package.json +4 -12
  369. package/project.json +0 -1
  370. package/src/components/ChartTable/ChartTable.types.ts +13 -0
  371. package/src/components/CommonComponents/Annotations/ChartAnnotationLayer.types.ts +5 -0
  372. package/src/components/CommonComponents/CartesianChart.types.ts +22 -1
  373. package/src/components/DonutChart/DonutChart.types.ts +16 -0
  374. package/src/components/FunnelChart/FunnelChart.types.ts +16 -0
  375. package/src/components/GaugeChart/GaugeChart.types.ts +11 -0
  376. package/src/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.ts +11 -0
  377. package/src/components/PolarChart/PolarChart.types.ts +232 -0
  378. package/src/components/SankeyChart/SankeyChart.types.ts +22 -0
  379. package/src/components/ScatterChart/ScatterChart.types.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-charting",
3
- "version": "5.25.4",
3
+ "version": "5.25.6",
4
4
  "description": "React web charting controls for Microsoft fluentui system.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -25,20 +25,12 @@
25
25
  "test:tz": "node ./scripts/run-tests-in-timezone.js"
26
26
  },
27
27
  "devDependencies": {
28
- "@fluentui/eslint-plugin": "*",
29
- "@fluentui/react": "*",
30
- "@types/react-addons-test-utils": "0.14.18",
31
- "@fluentui/jest-serializer-merge-styles": "*",
32
- "@fluentui/scripts-api-extractor": "*",
33
- "@fluentui/scripts-jest": "*",
34
- "@fluentui/scripts-tasks": "*",
35
- "@fluentui/scripts-webpack": "*",
36
28
  "jest-canvas-mock": "2.4.0"
37
29
  },
38
30
  "dependencies": {
39
31
  "@fluentui/chart-utilities": "^1.1.38",
40
- "@fluentui/react-focus": "^8.10.3",
41
- "@fluentui/theme-samples": "^8.7.222",
32
+ "@fluentui/react-focus": "^8.10.4",
33
+ "@fluentui/theme-samples": "^8.7.223",
42
34
  "@microsoft/load-themed-styles": "^1.10.26",
43
35
  "@types/d3-array": "^3.0.0",
44
36
  "@types/d3-axis": "^3.0.0",
@@ -66,7 +58,7 @@
66
58
  "tslib": "^2.1.0"
67
59
  },
68
60
  "peerDependencies": {
69
- "@fluentui/react": "^8.125.3",
61
+ "@fluentui/react": "^8.125.4",
70
62
  "@types/react": ">=16.8.0 <20.0.0",
71
63
  "@types/react-dom": ">=16.8.0 <20.0.0",
72
64
  "react": ">=16.8.0 <20.0.0",
package/project.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
4
4
  "projectType": "library",
5
5
  "tags": ["v8", "ships-bundle", "charting"],
6
- "implicitDependencies": [],
7
6
  "targets": {
8
7
  "test": {
9
8
  "dependsOn": ["^build"]
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import { ITheme, IStyle } from '@fluentui/react/lib/Styling';
3
3
  import { IRefObject, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
4
4
  import { IChart } from '../../types/index';
5
+ import { ITitleStyles } from '../../utilities/Common.styles';
5
6
 
6
7
  export interface IChartTableStyleProps {
7
8
  theme: ITheme;
@@ -13,6 +14,11 @@ export interface IChartTableStyleProps {
13
14
  * {@docCategory ChartTable}
14
15
  */
15
16
  export interface IChartTableProps {
17
+ /**
18
+ * Title styles configuration for the chart title
19
+ */
20
+ titleStyles?: ITitleStyles;
21
+
16
22
  /**
17
23
  * 1d or 2d Array of header values.
18
24
  */
@@ -35,6 +41,11 @@ export interface IChartTableProps {
35
41
  */
36
42
  height?: string | number;
37
43
 
44
+ /**
45
+ * Chart title to display above the table
46
+ */
47
+ chartTitle?: string;
48
+
38
49
  /**
39
50
  * Theme (provided through customization)
40
51
  */
@@ -67,4 +78,6 @@ export interface IChartTableStyles {
67
78
  headerCell?: IStyle;
68
79
  bodyCell?: IStyle;
69
80
  chart?: IStyle;
81
+ chartTitle?: IStyle;
82
+ svgTooltip?: IStyle;
70
83
  }
@@ -36,6 +36,11 @@ export interface IChartAnnotationLayerProps {
36
36
  context: IChartAnnotationContext;
37
37
  theme: ITheme;
38
38
  className?: string;
39
+ /**
40
+ * When true, removes default border, shadow, and background styling from annotations.
41
+ * @default false
42
+ */
43
+ hideDefaultStyles?: boolean;
39
44
  }
40
45
 
41
46
  export interface IResolvedAnnotationPosition {
@@ -5,6 +5,7 @@ import { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';
5
5
  import { IFocusZoneProps, FocusZoneDirection } from '@fluentui/react-focus';
6
6
  import { ICalloutProps } from '@fluentui/react/lib/Callout';
7
7
  import { ILegendsProps } from '../Legends/index';
8
+ import { ITitleStyles } from '../../utilities/Common.styles';
8
9
  import {
9
10
  AxisCategoryOrder,
10
11
  AxisProps,
@@ -221,6 +222,11 @@ export interface ICartesianChartStyles {
221
222
  * {@docCategory CartesianChart}
222
223
  */
223
224
  export interface ICartesianChartProps {
225
+ /**
226
+ * Title styles configuration for the chart title
227
+ */
228
+ titleStyles?: ITitleStyles;
229
+
224
230
  /**
225
231
  * Below height used for resizing of the chart
226
232
  * Wrap chart in your container and send the updated height and width to these props.
@@ -322,6 +328,11 @@ export interface ICartesianChartProps {
322
328
  */
323
329
  yMaxValue?: number;
324
330
 
331
+ /**
332
+ * minimum data value point in x-axis (for numeric x-axis)
333
+ */
334
+ xMinValue?: number;
335
+
325
336
  /**
326
337
  * maximum data value point in x-axis
327
338
  */
@@ -561,7 +572,17 @@ export interface ICartesianChartProps {
561
572
  * Configuration for the x-axis.
562
573
  * Use this to control `tickStep`, `tick0`, etc.
563
574
  */
564
- xAxis?: AxisProps;
575
+ xAxis?: AxisProps & {
576
+ /**
577
+ * Controls how x-axis tick labels are laid out.
578
+ *
579
+ * - `'auto'`: Tick labels are automatically wrapped, truncated, and staggered
580
+ * across alternating levels based on the available space to prevent overlap.
581
+ *
582
+ * @default 'default'
583
+ */
584
+ tickLayout?: 'default' | 'auto';
585
+ };
565
586
 
566
587
  /**
567
588
  * Configuration for the y-axis.
@@ -3,6 +3,7 @@ import { IRefObject, IRenderFunction, IStyleFunctionOrObject } from '@fluentui/r
3
3
  import { ICartesianChartProps, ICartesianChartStyleProps } from '../CommonComponents/index';
4
4
  import { ICalloutProps } from '@fluentui/react/lib/Callout';
5
5
  import { IChartProps, IChartDataPoint, IChart } from './index';
6
+ import type { ITitleStyles } from '../../utilities/Common.styles';
6
7
 
7
8
  export interface IDonutChart {}
8
9
 
@@ -11,6 +12,11 @@ export interface IDonutChart {}
11
12
  * {@docCategory DonutChart}
12
13
  */
13
14
  export interface IDonutChartProps extends ICartesianChartProps {
15
+ /**
16
+ * Title styles configuration for the chart title
17
+ */
18
+ titleStyles?: ITitleStyles;
19
+
14
20
  /**
15
21
  * Data to render in the chart.
16
22
  */
@@ -110,6 +116,11 @@ export interface IDonutChartStyles {
110
116
  */
111
117
  legendContainer: IStyle;
112
118
 
119
+ /**
120
+ * Style for the chart title.
121
+ */
122
+ chartTitle?: IStyle;
123
+
113
124
  /**
114
125
  * styles for axis annotation
115
126
  */
@@ -119,4 +130,9 @@ export interface IDonutChartStyles {
119
130
  * Styles for the chart wrapper div
120
131
  */
121
132
  chartWrapper?: IStyle;
133
+
134
+ /**
135
+ * Style for SVG tooltip text
136
+ */
137
+ svgTooltip?: IStyle;
122
138
  }
@@ -4,6 +4,7 @@ import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
4
4
  import { ICalloutContentStyleProps, ICalloutContentStyles } from '@fluentui/react/lib/Callout';
5
5
  import { ILegendsProps } from '../Legends/index';
6
6
  import { ICalloutProps } from '@fluentui/react/lib/Callout';
7
+ import { ITitleStyles } from '../../utilities/Common.styles';
7
8
 
8
9
  /**
9
10
  * Data point for funnel chart
@@ -34,6 +35,11 @@ export interface IFunnelChartDataPoint {
34
35
  * {@docCategory FunnelChart}
35
36
  */
36
37
  export interface IFunnelChartProps {
38
+ /**
39
+ * Title styles configuration for the chart title
40
+ */
41
+ titleStyles?: ITitleStyles;
42
+
37
43
  /**
38
44
  * Data points for the funnel chart
39
45
  */
@@ -139,11 +145,21 @@ export interface IFunnelChartStyles {
139
145
  */
140
146
  chart?: IStyle;
141
147
 
148
+ /**
149
+ * Style for the chart title.
150
+ */
151
+ chartTitle?: IStyle;
152
+
142
153
  /**
143
154
  * Styles for text elements
144
155
  */
145
156
  text?: IStyle;
146
157
 
158
+ /**
159
+ * Style for SVG tooltip text
160
+ */
161
+ svgTooltip?: IStyle;
162
+
147
163
  /**
148
164
  * Styles for sub-components
149
165
  */
@@ -3,6 +3,7 @@ import { IRefObject, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilitie
3
3
  import { ILegendsProps } from '../Legends/index';
4
4
  import { IAccessibilityProps, IChart } from '../../types/index';
5
5
  import { ICalloutProps } from '@fluentui/react/lib/Callout';
6
+ import { ITitleStyles } from '../../utilities/Common.styles';
6
7
 
7
8
  /**
8
9
  * Gauge Chart segment interface.
@@ -56,6 +57,11 @@ export enum GaugeChartVariant {
56
57
  * {@docCategory GaugeChart}
57
58
  */
58
59
  export interface IGaugeChartProps {
60
+ /**
61
+ * Title styles configuration for the chart title
62
+ */
63
+ titleStyles?: ITitleStyles;
64
+
59
65
  /**
60
66
  * Width of the chart
61
67
  */
@@ -267,6 +273,11 @@ export interface IGaugeChartStyles {
267
273
  */
268
274
  needle?: IStyle;
269
275
 
276
+ /**
277
+ * Styles for SVG tooltip background
278
+ */
279
+ svgTooltip?: IStyle;
280
+
270
281
  /**
271
282
  * Styles for the chart title
272
283
  */
@@ -71,6 +71,12 @@ export interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {
71
71
  * The prop used to enable rounded corners for the bars.
72
72
  */
73
73
  roundCorners?: boolean;
74
+
75
+ /**
76
+ * Prop to hide the bar labels
77
+ * @default false
78
+ */
79
+ hideLabels?: boolean;
74
80
  }
75
81
 
76
82
  /**
@@ -135,4 +141,9 @@ export interface IHorizontalBarChartWithAxisStyles extends ICartesianChartStyles
135
141
  * Style to change the opacity of bars in dataviz when we hover on a single bar or legends
136
142
  */
137
143
  opacityChangeOnHover: IStyle;
144
+
145
+ /**
146
+ * Style for the labels displayed on the bars.
147
+ */
148
+ barLabel?: IStyle;
138
149
  }
@@ -0,0 +1,232 @@
1
+ import * as React from 'react';
2
+ import {
3
+ IAreaPolarSeries,
4
+ AxisCategoryOrder,
5
+ AxisProps,
6
+ AxisScaleType,
7
+ IChart,
8
+ ILinePolarSeries,
9
+ IMargins,
10
+ IScatterPolarSeries,
11
+ } from '../../types/IDataPoint';
12
+ import { ILegendsProps } from '../Legends/Legends.types';
13
+ import { ICalloutProps, IStyle, IStyleFunctionOrObject, ITheme } from '@fluentui/react';
14
+
15
+ /**
16
+ * Configuration options for a polar axis.
17
+ * {@docCategory PolarChart}
18
+ */
19
+ export type PolarAxisProps = AxisProps & {
20
+ /**
21
+ * Values at which ticks should be placed on the axis.
22
+ */
23
+ tickValues?: number[] | Date[] | string[];
24
+
25
+ /**
26
+ * Format string for the axis ticks.
27
+ * For numbers, see: https://d3js.org/d3-format.
28
+ * And for dates see: https://d3js.org/d3-time-format.
29
+ */
30
+ tickFormat?: string;
31
+
32
+ /**
33
+ * Number of ticks to display on the axis.
34
+ */
35
+ tickCount?: number;
36
+
37
+ /**
38
+ * Defines the order of categories on the axis.
39
+ * @default 'default'
40
+ */
41
+ categoryOrder?: AxisCategoryOrder;
42
+
43
+ /**
44
+ * Scale type for the axis.
45
+ * @default 'default'
46
+ */
47
+ scaleType?: AxisScaleType;
48
+
49
+ /**
50
+ * Start value of the axis range.
51
+ */
52
+ rangeStart?: number | Date;
53
+
54
+ /**
55
+ * End value of the axis range.
56
+ */
57
+ rangeEnd?: number | Date;
58
+ };
59
+
60
+ /**
61
+ * Polar Chart properties
62
+ * {@docCategory PolarChart}
63
+ */
64
+ export interface IPolarChartProps {
65
+ /**
66
+ * Data series to be rendered in the polar chart.
67
+ */
68
+ data: (IAreaPolarSeries | ILinePolarSeries | IScatterPolarSeries)[];
69
+
70
+ /**
71
+ * Width of the polar chart.
72
+ * @default 200
73
+ */
74
+ width?: number;
75
+
76
+ /**
77
+ * Height of the polar chart.
78
+ * @default 200
79
+ */
80
+ height?: number;
81
+
82
+ /**
83
+ * Margins around the chart area.
84
+ */
85
+ margins?: IMargins;
86
+
87
+ /**
88
+ * If true, hides the legend.
89
+ * @default false
90
+ */
91
+ hideLegend?: boolean;
92
+
93
+ /**
94
+ * If true, hides the tooltip.
95
+ * @default false
96
+ */
97
+ hideTooltip?: boolean;
98
+
99
+ /*
100
+ * Properties for customizing the legend.
101
+ */
102
+ legendProps?: Partial<ILegendsProps>;
103
+
104
+ /**
105
+ * Title of the chart.
106
+ */
107
+ chartTitle?: string;
108
+
109
+ /**
110
+ * Fraction of the radius to cut out from the center of the chart.
111
+ * Accepts values in the range [0, 1].
112
+ */
113
+ hole?: number;
114
+
115
+ /**
116
+ * Shape of the polar chart.
117
+ * @default 'circle'
118
+ */
119
+ shape?: 'circle' | 'polygon';
120
+
121
+ /**
122
+ * Direction in which the chart is drawn.
123
+ * @default 'counterclockwise'
124
+ */
125
+ direction?: 'clockwise' | 'counterclockwise';
126
+
127
+ /**
128
+ * Configuration options for the radial axis.
129
+ */
130
+ radialAxis?: PolarAxisProps;
131
+
132
+ /**
133
+ * Configuration options for the angular axis.
134
+ */
135
+ angularAxis?: PolarAxisProps & {
136
+ /**
137
+ * Format unit for angular values.
138
+ * @default 'degrees'
139
+ */
140
+ unit?: 'radians' | 'degrees';
141
+ };
142
+
143
+ /**
144
+ * Optional callback to access the Chart interface. Use this instead of ref for accessing
145
+ * the public methods and properties of the component.
146
+ */
147
+ componentRef?: React.Ref<IChart>;
148
+
149
+ /**
150
+ * Locale identifier string used to format numbers and dates according to the specified culture.
151
+ * Example: 'en-US', 'fr-FR'.
152
+ */
153
+ culture?: string;
154
+
155
+ /**
156
+ * Options for localizing date values.
157
+ */
158
+ dateLocalizeOptions?: Intl.DateTimeFormatOptions;
159
+
160
+ /**
161
+ * If true, date values are treated as UTC dates.
162
+ * @default false
163
+ */
164
+ useUTC?: boolean;
165
+
166
+ /**
167
+ * Theme (provided through customization)
168
+ */
169
+ theme?: ITheme;
170
+
171
+ /**
172
+ * Call to provide customized styling that will layer on top of the variant rules
173
+ */
174
+ styles?: IStyleFunctionOrObject<IPolarChartStyleProps, IPolarChartStyles>;
175
+
176
+ /**
177
+ * Props for the callout in the chart
178
+ */
179
+ calloutProps?: Partial<ICalloutProps>;
180
+ }
181
+
182
+ /**
183
+ * Polar Chart style properties
184
+ * {@docCategory PolarChart}
185
+ */
186
+ export interface IPolarChartStyleProps {
187
+ /**
188
+ * Theme (provided through customization)
189
+ */
190
+ theme: ITheme;
191
+ }
192
+
193
+ /**
194
+ * Polar Chart styles
195
+ * {@docCategory PolarChart}
196
+ */
197
+ export interface IPolarChartStyles {
198
+ /**
199
+ * Style for the root element.
200
+ */
201
+ root?: IStyle;
202
+
203
+ /**
204
+ * Style for the chart wrapper element.
205
+ */
206
+ chartWrapper?: IStyle;
207
+
208
+ /**
209
+ * Style for the chart element.
210
+ */
211
+ chart?: IStyle;
212
+
213
+ /**
214
+ * Style for the inner grid lines.
215
+ */
216
+ gridLineInner?: IStyle;
217
+
218
+ /**
219
+ * Style for the outer grid lines.
220
+ */
221
+ gridLineOuter?: IStyle;
222
+
223
+ /**
224
+ * Style for the tick labels.
225
+ */
226
+ tickLabel?: IStyle;
227
+
228
+ /**
229
+ * Style for the legend container.
230
+ */
231
+ legendContainer?: IStyle;
232
+ }
@@ -2,6 +2,7 @@ import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
2
2
  import { IRefObject, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
3
3
  import { ICalloutProps } from '@fluentui/react/lib/Callout';
4
4
  import { IChart, IChartProps } from '../../types/IDataPoint';
5
+ import { ITitleStyles } from '../../utilities/Common.styles';
5
6
 
6
7
  export type { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDataPoint';
7
8
 
@@ -10,6 +11,11 @@ export type { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDat
10
11
  * {@docCategory SankeyChart}
11
12
  */
12
13
  export interface ISankeyChartProps {
14
+ /**
15
+ * Title styles configuration for the chart title
16
+ */
17
+ titleStyles?: ITitleStyles;
18
+
13
19
  /**
14
20
  * Data to render in the chart.
15
21
  */
@@ -96,6 +102,12 @@ export interface ISankeyChartProps {
96
102
  * props for the callout in the chart
97
103
  */
98
104
  calloutProps?: Partial<ICalloutProps>;
105
+
106
+ /**
107
+ * Whether to hide the legend
108
+ * @default false
109
+ */
110
+ hideLegend?: boolean;
99
111
  }
100
112
 
101
113
  /**
@@ -156,6 +168,16 @@ export interface ISankeyChartStyles {
156
168
  * Styles for the chart svg element
157
169
  */
158
170
  chart?: IStyle;
171
+
172
+ /**
173
+ * Style for SVG tooltip text
174
+ */
175
+ svgTooltip?: IStyle;
176
+
177
+ /**
178
+ * Style for the chart title.
179
+ */
180
+ chartTitle?: IStyle;
159
181
  }
160
182
 
161
183
  /**
@@ -37,6 +37,11 @@ export interface IScatterChartProps extends ICartesianChartProps {
37
37
  */
38
38
  onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;
39
39
 
40
+ /**
41
+ * Define a custom callout renderer for a stack; default is to render per data point
42
+ */
43
+ onRenderCalloutPerStack?: IRenderFunction<ICustomizedCalloutData>;
44
+
40
45
  /**
41
46
  * Callback for getting callout description message
42
47
  */