@fluentui/react-charting 5.18.8 → 5.18.9

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 (257) hide show
  1. package/CHANGELOG.json +16 -1
  2. package/CHANGELOG.md +11 -2
  3. package/README.md +48 -80
  4. package/dist/react-charting.d.ts +277 -36
  5. package/dist/react-charting.js +1 -1
  6. package/dist/react-charting.min.js +1 -1
  7. package/docs/TechnicalDetails.md +88 -0
  8. package/etc/react-charting.api.md +41 -41
  9. package/lib/components/AreaChart/AreaChart.types.d.ts +9 -1
  10. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  11. package/lib/components/CommonComponents/CartesianChart.d.ts +4 -0
  12. package/lib/components/CommonComponents/CartesianChart.js +4 -0
  13. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  14. package/lib/components/CommonComponents/CartesianChart.types.d.ts +12 -0
  15. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  16. package/lib/components/DonutChart/DonutChart.types.d.ts +9 -1
  17. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  18. package/lib/components/GaugeChart/GaugeChart.types.d.ts +13 -2
  19. package/lib/components/GaugeChart/GaugeChart.types.js +3 -0
  20. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  21. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +9 -1
  22. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  23. package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +9 -1
  24. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  25. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +13 -1
  26. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -0
  27. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  28. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -1
  29. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  30. package/lib/components/Legends/Legends.d.ts +1 -1
  31. package/lib/components/Legends/Legends.js +1 -1
  32. package/lib/components/Legends/Legends.js.map +1 -1
  33. package/lib/components/Legends/Legends.types.d.ts +14 -8
  34. package/lib/components/Legends/Legends.types.js.map +1 -1
  35. package/lib/components/LineChart/LineChart.d.ts +1 -1
  36. package/lib/components/LineChart/LineChart.js +1 -1
  37. package/lib/components/LineChart/LineChart.js.map +1 -1
  38. package/lib/components/LineChart/LineChart.types.d.ts +18 -1
  39. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  40. package/lib/components/PieChart/PieChart.d.ts +1 -1
  41. package/lib/components/PieChart/PieChart.js +1 -1
  42. package/lib/components/PieChart/PieChart.js.map +1 -1
  43. package/lib/components/PieChart/PieChart.types.d.ts +9 -1
  44. package/lib/components/PieChart/PieChart.types.js.map +1 -1
  45. package/lib/components/SankeyChart/SankeyChart.d.ts +1 -1
  46. package/lib/components/SankeyChart/SankeyChart.js +1 -1
  47. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  48. package/lib/components/SankeyChart/SankeyChart.types.d.ts +9 -1
  49. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  50. package/lib/components/Sparkline/Sparkline.d.ts +1 -1
  51. package/lib/components/Sparkline/Sparkline.js +1 -1
  52. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  53. package/lib/components/Sparkline/Sparkline.types.d.ts +6 -2
  54. package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
  55. package/lib/components/StackedBarChart/MultiStackedBarChart.d.ts +1 -1
  56. package/lib/components/StackedBarChart/MultiStackedBarChart.js +1 -1
  57. package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  58. package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +12 -1
  59. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +3 -0
  60. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
  61. package/lib/components/StackedBarChart/StackedBarChart.d.ts +1 -1
  62. package/lib/components/StackedBarChart/StackedBarChart.js +1 -1
  63. package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -1
  64. package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +9 -1
  65. package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
  66. package/lib/components/TreeChart/TreeChart.d.ts +1 -1
  67. package/lib/components/TreeChart/TreeChart.js +1 -1
  68. package/lib/components/TreeChart/TreeChart.js.map +1 -1
  69. package/lib/components/TreeChart/TreeChart.types.d.ts +18 -1
  70. package/lib/components/TreeChart/TreeChart.types.js +6 -0
  71. package/lib/components/TreeChart/TreeChart.types.js.map +1 -1
  72. package/lib/components/VerticalBarChart/VerticalBarChart.d.ts +1 -1
  73. package/lib/components/VerticalBarChart/VerticalBarChart.js +1 -1
  74. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  75. package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +9 -1
  76. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  77. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +1 -1
  78. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
  79. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  80. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +9 -1
  81. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  82. package/lib/types/IDataPoint.d.ts +67 -0
  83. package/lib/types/IDataPoint.js.map +1 -1
  84. package/lib/version.js +1 -1
  85. package/lib/version.js.map +1 -1
  86. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +9 -1
  87. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -1
  88. package/lib-amd/components/CommonComponents/CartesianChart.d.ts +4 -0
  89. package/lib-amd/components/CommonComponents/CartesianChart.js +4 -0
  90. package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -1
  91. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +12 -0
  92. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  93. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +9 -1
  94. package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -1
  95. package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +13 -2
  96. package/lib-amd/components/GaugeChart/GaugeChart.types.js +3 -0
  97. package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
  98. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +9 -1
  99. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  100. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +9 -1
  101. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  102. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +13 -1
  103. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -0
  104. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  105. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -1
  106. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  107. package/lib-amd/components/Legends/Legends.d.ts +1 -1
  108. package/lib-amd/components/Legends/Legends.js +1 -1
  109. package/lib-amd/components/Legends/Legends.js.map +1 -1
  110. package/lib-amd/components/Legends/Legends.types.d.ts +14 -8
  111. package/lib-amd/components/Legends/Legends.types.js.map +1 -1
  112. package/lib-amd/components/LineChart/LineChart.d.ts +1 -1
  113. package/lib-amd/components/LineChart/LineChart.js +1 -1
  114. package/lib-amd/components/LineChart/LineChart.js.map +1 -1
  115. package/lib-amd/components/LineChart/LineChart.types.d.ts +18 -1
  116. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -1
  117. package/lib-amd/components/PieChart/PieChart.d.ts +1 -1
  118. package/lib-amd/components/PieChart/PieChart.js +1 -1
  119. package/lib-amd/components/PieChart/PieChart.js.map +1 -1
  120. package/lib-amd/components/PieChart/PieChart.types.d.ts +9 -1
  121. package/lib-amd/components/PieChart/PieChart.types.js.map +1 -1
  122. package/lib-amd/components/SankeyChart/SankeyChart.d.ts +1 -1
  123. package/lib-amd/components/SankeyChart/SankeyChart.js +1 -1
  124. package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -1
  125. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +9 -1
  126. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -1
  127. package/lib-amd/components/Sparkline/Sparkline.d.ts +1 -1
  128. package/lib-amd/components/Sparkline/Sparkline.js +1 -1
  129. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -1
  130. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +6 -2
  131. package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -1
  132. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +1 -1
  133. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +1 -1
  134. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  135. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +12 -1
  136. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +3 -0
  137. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
  138. package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +1 -1
  139. package/lib-amd/components/StackedBarChart/StackedBarChart.js +1 -1
  140. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -1
  141. package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +9 -1
  142. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
  143. package/lib-amd/components/TreeChart/TreeChart.d.ts +1 -1
  144. package/lib-amd/components/TreeChart/TreeChart.js +1 -1
  145. package/lib-amd/components/TreeChart/TreeChart.js.map +1 -1
  146. package/lib-amd/components/TreeChart/TreeChart.types.d.ts +18 -1
  147. package/lib-amd/components/TreeChart/TreeChart.types.js +6 -0
  148. package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -1
  149. package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +1 -1
  150. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +1 -1
  151. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  152. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +9 -1
  153. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  154. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +1 -1
  155. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
  156. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  157. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +9 -1
  158. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  159. package/lib-amd/types/IDataPoint.d.ts +67 -0
  160. package/lib-amd/types/IDataPoint.js.map +1 -1
  161. package/lib-amd/version.js +1 -1
  162. package/lib-amd/version.js.map +1 -1
  163. package/lib-commonjs/components/AreaChart/AreaChart.types.d.ts +9 -1
  164. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  165. package/lib-commonjs/components/CommonComponents/CartesianChart.d.ts +4 -0
  166. package/lib-commonjs/components/CommonComponents/CartesianChart.js +4 -0
  167. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  168. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +12 -0
  169. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  170. package/lib-commonjs/components/DonutChart/DonutChart.types.d.ts +9 -1
  171. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  172. package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +13 -2
  173. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +3 -0
  174. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  175. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +9 -1
  176. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  177. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.d.ts +9 -1
  178. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  179. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +13 -1
  180. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -0
  181. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  182. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +9 -1
  183. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  184. package/lib-commonjs/components/Legends/Legends.d.ts +1 -1
  185. package/lib-commonjs/components/Legends/Legends.js +1 -1
  186. package/lib-commonjs/components/Legends/Legends.js.map +1 -1
  187. package/lib-commonjs/components/Legends/Legends.types.d.ts +14 -8
  188. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  189. package/lib-commonjs/components/LineChart/LineChart.d.ts +1 -1
  190. package/lib-commonjs/components/LineChart/LineChart.js +1 -1
  191. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  192. package/lib-commonjs/components/LineChart/LineChart.types.d.ts +18 -1
  193. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  194. package/lib-commonjs/components/PieChart/PieChart.d.ts +1 -1
  195. package/lib-commonjs/components/PieChart/PieChart.js +1 -1
  196. package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
  197. package/lib-commonjs/components/PieChart/PieChart.types.d.ts +9 -1
  198. package/lib-commonjs/components/PieChart/PieChart.types.js.map +1 -1
  199. package/lib-commonjs/components/SankeyChart/SankeyChart.d.ts +1 -1
  200. package/lib-commonjs/components/SankeyChart/SankeyChart.js +1 -1
  201. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  202. package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +9 -1
  203. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  204. package/lib-commonjs/components/Sparkline/Sparkline.d.ts +1 -1
  205. package/lib-commonjs/components/Sparkline/Sparkline.js +1 -1
  206. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
  207. package/lib-commonjs/components/Sparkline/Sparkline.types.d.ts +6 -2
  208. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
  209. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.d.ts +1 -1
  210. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js +1 -1
  211. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
  212. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.d.ts +12 -1
  213. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js +3 -0
  214. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
  215. package/lib-commonjs/components/StackedBarChart/StackedBarChart.d.ts +1 -1
  216. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js +1 -1
  217. package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
  218. package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.d.ts +9 -1
  219. package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
  220. package/lib-commonjs/components/TreeChart/TreeChart.d.ts +1 -1
  221. package/lib-commonjs/components/TreeChart/TreeChart.js +1 -1
  222. package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
  223. package/lib-commonjs/components/TreeChart/TreeChart.types.d.ts +18 -1
  224. package/lib-commonjs/components/TreeChart/TreeChart.types.js +6 -0
  225. package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -1
  226. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.d.ts +1 -1
  227. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +1 -1
  228. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  229. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.d.ts +9 -1
  230. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  231. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +1 -1
  232. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
  233. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  234. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +9 -1
  235. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  236. package/lib-commonjs/types/IDataPoint.d.ts +67 -0
  237. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  238. package/lib-commonjs/version.js +1 -1
  239. package/lib-commonjs/version.js.map +1 -1
  240. package/package.json +1 -1
  241. package/src/components/AreaChart/AreaChart.types.ts +9 -1
  242. package/src/components/CommonComponents/CartesianChart.types.ts +12 -0
  243. package/src/components/DonutChart/DonutChart.types.ts +9 -1
  244. package/src/components/GaugeChart/GaugeChart.types.ts +13 -2
  245. package/src/components/HeatMapChart/HeatMapChart.types.ts +11 -1
  246. package/src/components/HorizontalBarChart/HorizontalBarChart.types.ts +13 -1
  247. package/src/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.ts +9 -1
  248. package/src/components/Legends/Legends.types.ts +14 -8
  249. package/src/components/LineChart/LineChart.types.ts +19 -1
  250. package/src/components/PieChart/PieChart.types.ts +10 -1
  251. package/src/components/SankeyChart/SankeyChart.types.ts +9 -1
  252. package/src/components/Sparkline/Sparkline.types.ts +6 -2
  253. package/src/components/StackedBarChart/MultiStackedBarChart.types.ts +12 -1
  254. package/src/components/StackedBarChart/StackedBarChart.types.ts +9 -1
  255. package/src/components/TreeChart/TreeChart.types.ts +20 -1
  256. package/src/components/VerticalBarChart/VerticalBarChart.types.ts +9 -1
  257. package/src/components/VerticalStackedBarChart/VerticalStackedBarChart.types.ts +9 -1
@@ -1 +1 @@
1
- {"version":3,"file":"GaugeChart.types.js","sourceRoot":"../src/","sources":["components/GaugeChart/GaugeChart.types.ts"],"names":[],"mappings":";;;;IAgCA,IAAY,gBAGX;IAHD,WAAY,gBAAgB;QAC1B,6CAAyB,CAAA;QACzB,yCAAqB,CAAA;IACvB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B","sourcesContent":["import { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { ILegendsProps } from '../Legends/index';\nimport { IAccessibilityProps } from '../../types/index';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\n\n/**\n * IGaugeChartSegment interface for Gaugechart.\n * {@docCategory GaugeChart}\n */\nexport interface IGaugeChartSegment {\n /**\n * Legend text for a segment\n */\n legend: string;\n\n /**\n * Size of the segment\n */\n size: number;\n\n /**\n * Color of the segment\n */\n color?: string;\n\n /**\n * Accessibility data for the segment\n */\n accessibilityData?: IAccessibilityProps;\n}\n\nexport enum GaugeValueFormat {\n Percentage = 'percentage',\n Fraction = 'fraction',\n}\n\n/**\n * IGaugeChartProps for Gaugechart component.\n * {@docCategory GaugeChart}\n */\nexport interface IGaugeChartProps {\n /**\n * Width of the chart\n */\n width?: number;\n\n /**\n * Height of the chart\n */\n height?: number;\n\n /**\n * Title of the chart\n */\n chartTitle?: string;\n\n /**\n * Current value of the gauge\n */\n chartValue: number;\n\n /**\n * Sections of the gauge\n */\n segments: IGaugeChartSegment[];\n\n /**\n * Minimum value of the gauge\n * @defaultvalue 0\n */\n minValue?: number;\n\n /**\n * Maximum value of the gauge\n */\n maxValue?: number;\n\n /**\n * Additional text to display below the chart value\n */\n sublabel?: string;\n\n /**\n * Hide the min and max values of the gauge\n * @defaultvalue false\n */\n hideMinMax?: boolean;\n\n /**\n * Format of the chart value\n * @defaultvalue GaugeValueFormat.Percentage\n */\n chartValueFormat?: GaugeValueFormat | ((sweepFraction: number[]) => string);\n\n /**\n * Decides whether to show/hide legends\n * @defaultvalue false\n */\n hideLegend?: boolean;\n\n /*\n * Props for the legends in the chart\n */\n legendProps?: Partial<ILegendsProps>;\n\n /**\n * Do not show tooltips in chart\n * @defaultvalue false\n */\n hideTooltip?: boolean;\n\n /**\n * Additional CSS class(es) to apply to the chart\n */\n className?: string;\n\n /**\n * Theme (provided through customization)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules\n */\n styles?: IStyleFunctionOrObject<IGaugeChartStyleProps, IGaugeChartStyles>;\n\n /**\n * Defines the culture to localize the numbers and dates\n */\n culture?: string;\n\n /**\n * Props for the callout in the chart\n */\n calloutProps?: Partial<ICalloutProps>;\n}\n\nexport interface IGaugeChartStyleProps {\n /**\n * Theme (provided through customization)\n */\n theme: ITheme;\n\n /**\n * Font size of the chart value\n */\n chartValueSize?: number;\n\n /**\n * Width of the chart\n */\n chartWidth?: number;\n\n /**\n * Height of the chart\n */\n chartHeight?: number;\n\n /**\n * Additional CSS class(es) to apply to the chart\n */\n className?: string;\n\n /**\n * Color of the line\n */\n lineColor?: string;\n\n /**\n * Boolean flag which determines if shape is drawn in callout\n */\n toDrawShape?: boolean;\n}\n\nexport interface IGaugeChartStyles {\n /**\n * Styles for the root element\n */\n root?: IStyle;\n\n /**\n * Styles for the chart\n */\n chart?: IStyle;\n\n /**\n * Styles for the min and max values\n */\n limits?: IStyle;\n\n /**\n * Styles for the chart value\n */\n chartValue?: IStyle;\n\n /**\n * Styles for the sublabel\n */\n sublabel?: IStyle;\n\n /**\n * Styles for the needle\n */\n needle?: IStyle;\n\n /**\n * Styles for the chart title\n */\n chartTitle?: IStyle;\n\n /**\n * Styles for the segments\n */\n segment?: IStyle;\n\n /**\n * Styles for the legends container\n */\n legendsContainer?: IStyle;\n\n /**\n * Styles for callout root-content\n */\n calloutContentRoot?: IStyle;\n\n /**\n * Styles for callout x-content\n */\n calloutContentX?: IStyle;\n\n /**\n * Styles for callout y-content\n */\n calloutContentY?: IStyle;\n\n /**\n * Styles for description message\n */\n descriptionMessage?: IStyle;\n\n /**\n * Styles for callout Date time container\n */\n calloutDateTimeContainer?: IStyle;\n\n /**\n * Styles for callout info container\n */\n calloutInfoContainer?: IStyle;\n\n /**\n * Styles for callout block container\n */\n calloutBlockContainer?: IStyle;\n\n /**\n * Styles for callout legend text\n */\n calloutlegendText?: IStyle;\n\n /**\n * Styles for the shape object in the callout\n */\n shapeStyles?: IStyle;\n}\n"]}
1
+ {"version":3,"file":"GaugeChart.types.js","sourceRoot":"../src/","sources":["components/GaugeChart/GaugeChart.types.ts"],"names":[],"mappings":";;;;IAgCA;;OAEG;IACH,IAAY,gBAGX;IAHD,WAAY,gBAAgB;QAC1B,6CAAyB,CAAA;QACzB,yCAAqB,CAAA;IACvB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B","sourcesContent":["import { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { ILegendsProps } from '../Legends/index';\nimport { IAccessibilityProps } from '../../types/index';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\n\n/**\n * Gauge Chart segment interface.\n * {@docCategory GaugeChart}\n */\nexport interface IGaugeChartSegment {\n /**\n * Legend text for a segment\n */\n legend: string;\n\n /**\n * Size of the segment\n */\n size: number;\n\n /**\n * Color of the segment\n */\n color?: string;\n\n /**\n * Accessibility data for the segment\n */\n accessibilityData?: IAccessibilityProps;\n}\n\n/**\n * {@docCategory GaugeChart}\n */\nexport enum GaugeValueFormat {\n Percentage = 'percentage',\n Fraction = 'fraction',\n}\n\n/**\n * Gauge Chart properties\n * {@docCategory GaugeChart}\n */\nexport interface IGaugeChartProps {\n /**\n * Width of the chart\n */\n width?: number;\n\n /**\n * Height of the chart\n */\n height?: number;\n\n /**\n * Title of the chart\n */\n chartTitle?: string;\n\n /**\n * Current value of the gauge\n */\n chartValue: number;\n\n /**\n * Sections of the gauge\n */\n segments: IGaugeChartSegment[];\n\n /**\n * Minimum value of the gauge\n * @defaultvalue 0\n */\n minValue?: number;\n\n /**\n * Maximum value of the gauge\n */\n maxValue?: number;\n\n /**\n * Additional text to display below the chart value\n */\n sublabel?: string;\n\n /**\n * Hide the min and max values of the gauge\n * @defaultvalue false\n */\n hideMinMax?: boolean;\n\n /**\n * Format of the chart value\n * @defaultvalue GaugeValueFormat.Percentage\n */\n chartValueFormat?: GaugeValueFormat | ((sweepFraction: number[]) => string);\n\n /**\n * Decides whether to show/hide legends\n * @defaultvalue false\n */\n hideLegend?: boolean;\n\n /*\n * Props for the legends in the chart\n */\n legendProps?: Partial<ILegendsProps>;\n\n /**\n * Do not show tooltips in chart\n * @defaultvalue false\n */\n hideTooltip?: boolean;\n\n /**\n * Additional CSS class(es) to apply to the chart\n */\n className?: string;\n\n /**\n * Theme (provided through customization)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules\n */\n styles?: IStyleFunctionOrObject<IGaugeChartStyleProps, IGaugeChartStyles>;\n\n /**\n * Defines the culture to localize the numbers and dates\n */\n culture?: string;\n\n /**\n * Props for the callout in the chart\n */\n calloutProps?: Partial<ICalloutProps>;\n}\n\n/**\n * Gauge Chart style properties\n * {@docCategory GaugeChart}\n */\nexport interface IGaugeChartStyleProps {\n /**\n * Theme (provided through customization)\n */\n theme: ITheme;\n\n /**\n * Font size of the chart value\n */\n chartValueSize?: number;\n\n /**\n * Width of the chart\n */\n chartWidth?: number;\n\n /**\n * Height of the chart\n */\n chartHeight?: number;\n\n /**\n * Additional CSS class(es) to apply to the chart\n */\n className?: string;\n\n /**\n * Color of the line\n */\n lineColor?: string;\n\n /**\n * Boolean flag which determines if shape is drawn in callout\n */\n toDrawShape?: boolean;\n}\n\n/**\n * Gauge Chart styles\n * {@docCategory GaugeChart}\n */\nexport interface IGaugeChartStyles {\n /**\n * Styles for the root element\n */\n root?: IStyle;\n\n /**\n * Styles for the chart\n */\n chart?: IStyle;\n\n /**\n * Styles for the min and max values\n */\n limits?: IStyle;\n\n /**\n * Styles for the chart value\n */\n chartValue?: IStyle;\n\n /**\n * Styles for the sublabel\n */\n sublabel?: IStyle;\n\n /**\n * Styles for the needle\n */\n needle?: IStyle;\n\n /**\n * Styles for the chart title\n */\n chartTitle?: IStyle;\n\n /**\n * Styles for the segments\n */\n segment?: IStyle;\n\n /**\n * Styles for the legends container\n */\n legendsContainer?: IStyle;\n\n /**\n * Styles for callout root-content\n */\n calloutContentRoot?: IStyle;\n\n /**\n * Styles for callout x-content\n */\n calloutContentX?: IStyle;\n\n /**\n * Styles for callout y-content\n */\n calloutContentY?: IStyle;\n\n /**\n * Styles for description message\n */\n descriptionMessage?: IStyle;\n\n /**\n * Styles for callout Date time container\n */\n calloutDateTimeContainer?: IStyle;\n\n /**\n * Styles for callout info container\n */\n calloutInfoContainer?: IStyle;\n\n /**\n * Styles for callout block container\n */\n calloutBlockContainer?: IStyle;\n\n /**\n * Styles for callout legend text\n */\n calloutlegendText?: IStyle;\n\n /**\n * Styles for the shape object in the callout\n */\n shapeStyles?: IStyle;\n}\n"]}
@@ -2,7 +2,7 @@ import { IStyle } from '@fluentui/react/lib/Styling';
2
2
  import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
3
3
  import { ICartesianChartStyles, ICartesianChartStyleProps, ICartesianChartProps, IGroupedVerticalBarChartData, IGVBarChartSeriesPoint } from '../../index';
4
4
  /**
5
- * IGroupedVerticalBarChartProps for GroupedVerticalBarchart component.
5
+ * Grouped Vertical Bar Chart properties
6
6
  * {@docCategory GroupedVerticalBarChart}
7
7
  */
8
8
  export interface IGroupedVerticalBarChartProps extends ICartesianChartProps {
@@ -73,8 +73,16 @@ export interface IGroupedVerticalBarChartProps extends ICartesianChartProps {
73
73
  */
74
74
  hideLabels?: boolean;
75
75
  }
76
+ /**
77
+ * Grouped Vertical Bar Chart style properties
78
+ * {@docCategory GroupedVerticalBarChart}
79
+ */
76
80
  export interface IGroupedVerticalBarChartStyleProps extends ICartesianChartStyleProps {
77
81
  }
82
+ /**
83
+ * Grouped Vertical Bar Chart styles
84
+ * {@docCategory GroupedVerticalBarChart}
85
+ */
78
86
  export interface IGroupedVerticalBarChartStyles extends ICartesianChartStyles {
79
87
  /**
80
88
  * Style to change the opacity of bars in dataviz when we hover on a single bar or legends
@@ -1 +1 @@
1
- {"version":3,"file":"GroupedVerticalBarChart.types.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.tsx"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartStyles,\n ICartesianChartStyleProps,\n ICartesianChartProps,\n IGroupedVerticalBarChartData,\n IGVBarChartSeriesPoint,\n} from '../../index';\n\n/**\n * IGroupedVerticalBarChartProps for GroupedVerticalBarchart component.\n * {@docCategory GroupedVerticalBarChart}\n */\nexport interface IGroupedVerticalBarChartProps extends ICartesianChartProps {\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n /**\n * Data to render in the chart.\n */\n data: IGroupedVerticalBarChartData[];\n\n /**\n * Barwidth automacally adjusted based upon given parent width, data and scale.\n * If barwidth given through prop, then is shold be less than given formula.\n * If not, graph will adjust and your value may not be reflected.\n * Formula: width of parent div / (Number Of Groups * (Number Of single bars in group + 2))\n * Note: By changing barwidth manually it may cause some spatial and graph override issues,\n * better to avoid using this prop.\n */\n barwidth?: number;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles>;\n\n /**\n * color of the datapoint legend\n * @deprecated Dont use this property. colour will pick from given data\n */\n legendColor?: string;\n\n /**\n * This prop used to draw X axis grid line on tha chart. Default value will be false\n * @deprecated Dont use this property. Handling with default value.\n */\n showXAxisGridLines?: boolean;\n\n /**\n * This prop used to draw Y axis grid lines on the chart. Default value will be true\n * @deprecated Dont use this property. Lines are drawn by default\n */\n showYAxisGridLines?: boolean;\n\n /**\n * This prop takes the boolean value and used for to display x-axis path or transparent.\n * This is a optional prop and default value is false. It dont show X-Axis path as tranparent.\n * @deprecated Dont use this property. Axis line are removed by default\n */\n showXAxisPath?: boolean;\n\n /**\n * This prop takes the boolean value and used for to display y-axis path or transparent.\n * This is a optional prop and default value is false. It dont show Y-Axis path as tranparent.\n * @deprecated Dont use this property. No need to display Y axis path. Handling default\n */\n showYAxisPath?: boolean;\n\n /**\n * Define a custom callout renderer for a stack\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IGVBarChartSeriesPoint>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * To display multi stack callout or single callout\n * @default false\n */\n isCalloutForStack?: boolean;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n}\n\nexport interface IGroupedVerticalBarChartStyleProps extends ICartesianChartStyleProps {}\n\nexport interface IGroupedVerticalBarChartStyles extends ICartesianChartStyles {\n /**\n * Style to change the opacity of bars in dataviz when we hover on a single bar or legends\n */\n opacityChangeOnHover: IStyle;\n\n /**\n * Style for the bar labels\n */\n barLabel: IStyle;\n}\n"]}
1
+ {"version":3,"file":"GroupedVerticalBarChart.types.js","sourceRoot":"../src/","sources":["components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.tsx"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartStyles,\n ICartesianChartStyleProps,\n ICartesianChartProps,\n IGroupedVerticalBarChartData,\n IGVBarChartSeriesPoint,\n} from '../../index';\n\n/**\n * Grouped Vertical Bar Chart properties\n * {@docCategory GroupedVerticalBarChart}\n */\nexport interface IGroupedVerticalBarChartProps extends ICartesianChartProps {\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n /**\n * Data to render in the chart.\n */\n data: IGroupedVerticalBarChartData[];\n\n /**\n * Barwidth automacally adjusted based upon given parent width, data and scale.\n * If barwidth given through prop, then is shold be less than given formula.\n * If not, graph will adjust and your value may not be reflected.\n * Formula: width of parent div / (Number Of Groups * (Number Of single bars in group + 2))\n * Note: By changing barwidth manually it may cause some spatial and graph override issues,\n * better to avoid using this prop.\n */\n barwidth?: number;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IGroupedVerticalBarChartStyleProps, IGroupedVerticalBarChartStyles>;\n\n /**\n * color of the datapoint legend\n * @deprecated Dont use this property. colour will pick from given data\n */\n legendColor?: string;\n\n /**\n * This prop used to draw X axis grid line on tha chart. Default value will be false\n * @deprecated Dont use this property. Handling with default value.\n */\n showXAxisGridLines?: boolean;\n\n /**\n * This prop used to draw Y axis grid lines on the chart. Default value will be true\n * @deprecated Dont use this property. Lines are drawn by default\n */\n showYAxisGridLines?: boolean;\n\n /**\n * This prop takes the boolean value and used for to display x-axis path or transparent.\n * This is a optional prop and default value is false. It dont show X-Axis path as tranparent.\n * @deprecated Dont use this property. Axis line are removed by default\n */\n showXAxisPath?: boolean;\n\n /**\n * This prop takes the boolean value and used for to display y-axis path or transparent.\n * This is a optional prop and default value is false. It dont show Y-Axis path as tranparent.\n * @deprecated Dont use this property. No need to display Y axis path. Handling default\n */\n showYAxisPath?: boolean;\n\n /**\n * Define a custom callout renderer for a stack\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IGVBarChartSeriesPoint>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * To display multi stack callout or single callout\n * @default false\n */\n isCalloutForStack?: boolean;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n}\n\n/**\n * Grouped Vertical Bar Chart style properties\n * {@docCategory GroupedVerticalBarChart}\n */\nexport interface IGroupedVerticalBarChartStyleProps extends ICartesianChartStyleProps {}\n\n/**\n * Grouped Vertical Bar Chart styles\n * {@docCategory GroupedVerticalBarChart}\n */\nexport interface IGroupedVerticalBarChartStyles extends ICartesianChartStyles {\n /**\n * Style to change the opacity of bars in dataviz when we hover on a single bar or legends\n */\n opacityChangeOnHover: IStyle;\n\n /**\n * Style for the bar labels\n */\n barLabel: IStyle;\n}\n"]}
@@ -5,7 +5,7 @@ import { ICartesianChartStyleProps, ICartesianChartProps, ICartesianChartStyles
5
5
  import { ILegendsProps } from '../Legends/Legends.types';
6
6
  import { IHeatMapChartData } from '../../types/IDataPoint';
7
7
  /**
8
- * IHeatMapChartProps for HeatMapchart component.
8
+ * Heat Map Chart properties
9
9
  * {@docCategory HeatMapChart}
10
10
  */
11
11
  export interface IHeatMapChartProps extends Pick<ICartesianChartProps, Exclude<keyof ICartesianChartProps, 'styles'>> {
@@ -102,8 +102,16 @@ export interface IHeatMapChartProps extends Pick<ICartesianChartProps, Exclude<k
102
102
  */
103
103
  culture?: string;
104
104
  }
105
+ /**
106
+ * Heat Map Chart style properties
107
+ * {@docCategory HeatMapChart}
108
+ */
105
109
  export interface IHeatMapChartStyleProps extends ICartesianChartStyleProps {
106
110
  }
111
+ /**
112
+ * Heat Map Chart styles
113
+ * {@docCategory HeatMapChart}
114
+ */
107
115
  export interface IHeatMapChartStyles {
108
116
  root?: IStyle;
109
117
  text?: IStyle;
@@ -1 +1 @@
1
- {"version":3,"file":"HeatMapChart.types.js","sourceRoot":"../src/","sources":["components/HeatMapChart/HeatMapChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { ICalloutContentStyleProps, ICalloutContentStyles } from '@fluentui/react/lib/Callout';\nimport { IStyle } from '@fluentui/react/lib/Styling';\nimport {\n ICartesianChartStyleProps,\n ICartesianChartProps,\n ICartesianChartStyles,\n} from '../CommonComponents/CartesianChart.types';\nimport { ILegendsProps } from '../Legends/Legends.types';\nimport { IHeatMapChartData } from '../../types/IDataPoint';\n\n/**\n * IHeatMapChartProps for HeatMapchart component.\n * {@docCategory HeatMapChart}\n */\nexport interface IHeatMapChartProps extends Pick<ICartesianChartProps, Exclude<keyof ICartesianChartProps, 'styles'>> {\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n /**\n * data to provide for Heat Map\n */\n data: IHeatMapChartData[];\n /**\n * The domain value for the color scale,\n *\n */\n domainValuesForColorScale: number[];\n /**\n * The range values for the color scale,\n * fill the array with colors in hex format\n * note:- it should contain values exactly as many as values in the array\n * `domainValuesForColorScale`\n */\n rangeValuesForColorScale: string[];\n /**\n * date formatter of x axis,\n * if the x-axis data point are of date type then user can use this\n * prop to format the date\n * refer to https://github.com/d3/d3-time-format for string values\n * @default '%b/%d'\n */\n xAxisDateFormatString?: string;\n /**\n * date formatter of y axis,\n * if the y-axis data point are or date type then user can use this\n * prop to format the date\n * refer to https://github.com/d3/d3-time-format for string values\n * @default '%b/%d'\n */\n yAxisDateFormatString?: string;\n /**\n * number formatter of x axis\n * if the x-axis data pints are of number type then user can\n * use this prop to format the number\n * refer to https://github.com/d3/d3-format for string values\n * @default '.2~s'\n */\n xAxisNumberFormatString?: string;\n /**\n * number formatter of y axis\n * if the y-axis data pints are of number type then user can\n * use this prop to format the number\n * refer to https://github.com/d3/d3-format for string values\n * @default '.2~s'\n */\n yAxisNumberFormatString?: string;\n /**\n * string formatter for x-axis.\n * This prop only applies if the x-axis is of string type\n *\n * For the accessiblity reason we sort the x-axis data point given by the consumer in ascending\n * order and then render in the x-axis. this behaviour would force the order of the data points.\n * to overcome , user can give x-axis point names as p1 p2...etc and map those p1 and p2 to custom name.\n * behind the scene the charting will actually sort the p1 and p2 and then we can attach the custom\n * name to that point by using this prop, hence giving the us the flexiblity of the order in which\n * label should render\n *\n * see the example file for the usage of the prop\n */\n xAxisStringFormatter?: (point: string) => string;\n\n /**\n * string formatter for y-axis.\n * This prop only applies if the y-axis is of string type\n *\n * For the accessiblity reason we sort the x-axis data point given by the consumer in ascending\n * order and then render in the y-axis. this behaviour would force the order of the data points.\n * to overcome , user can give y-axis point names as p1 p2...etc and map those p1 and p2 to custom name.\n * behind the scene the charting will actually sort the p1 and p2 and then we can attach the custom\n * name to that point by using this prop, hence giving the us the flexiblity of the order in which\n * label should render\n *\n * see the exaple file for the usage of the prop\n */\n yAxisStringFormatter?: (point: string) => string;\n /**\n * custom legend properties\n */\n legendProps?: Partial<ILegendsProps>;\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IHeatMapChartStyleProps, IHeatMapChartStyles>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\nexport interface IHeatMapChartStyleProps extends ICartesianChartStyleProps {}\nexport interface IHeatMapChartStyles {\n root?: IStyle;\n text?: IStyle;\n subComponentStyles: {\n cartesianStyles: IStyleFunctionOrObject<ICartesianChartStyleProps, ICartesianChartStyles>;\n calloutStyles: IStyleFunctionOrObject<ICalloutContentStyleProps, ICalloutContentStyles>;\n };\n}\n"]}
1
+ {"version":3,"file":"HeatMapChart.types.js","sourceRoot":"../src/","sources":["components/HeatMapChart/HeatMapChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { ICalloutContentStyleProps, ICalloutContentStyles } from '@fluentui/react/lib/Callout';\nimport { IStyle } from '@fluentui/react/lib/Styling';\nimport {\n ICartesianChartStyleProps,\n ICartesianChartProps,\n ICartesianChartStyles,\n} from '../CommonComponents/CartesianChart.types';\nimport { ILegendsProps } from '../Legends/Legends.types';\nimport { IHeatMapChartData } from '../../types/IDataPoint';\n\n/**\n * Heat Map Chart properties\n * {@docCategory HeatMapChart}\n */\nexport interface IHeatMapChartProps extends Pick<ICartesianChartProps, Exclude<keyof ICartesianChartProps, 'styles'>> {\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n /**\n * data to provide for Heat Map\n */\n data: IHeatMapChartData[];\n /**\n * The domain value for the color scale,\n *\n */\n domainValuesForColorScale: number[];\n /**\n * The range values for the color scale,\n * fill the array with colors in hex format\n * note:- it should contain values exactly as many as values in the array\n * `domainValuesForColorScale`\n */\n rangeValuesForColorScale: string[];\n /**\n * date formatter of x axis,\n * if the x-axis data point are of date type then user can use this\n * prop to format the date\n * refer to https://github.com/d3/d3-time-format for string values\n * @default '%b/%d'\n */\n xAxisDateFormatString?: string;\n /**\n * date formatter of y axis,\n * if the y-axis data point are or date type then user can use this\n * prop to format the date\n * refer to https://github.com/d3/d3-time-format for string values\n * @default '%b/%d'\n */\n yAxisDateFormatString?: string;\n /**\n * number formatter of x axis\n * if the x-axis data pints are of number type then user can\n * use this prop to format the number\n * refer to https://github.com/d3/d3-format for string values\n * @default '.2~s'\n */\n xAxisNumberFormatString?: string;\n /**\n * number formatter of y axis\n * if the y-axis data pints are of number type then user can\n * use this prop to format the number\n * refer to https://github.com/d3/d3-format for string values\n * @default '.2~s'\n */\n yAxisNumberFormatString?: string;\n /**\n * string formatter for x-axis.\n * This prop only applies if the x-axis is of string type\n *\n * For the accessiblity reason we sort the x-axis data point given by the consumer in ascending\n * order and then render in the x-axis. this behaviour would force the order of the data points.\n * to overcome , user can give x-axis point names as p1 p2...etc and map those p1 and p2 to custom name.\n * behind the scene the charting will actually sort the p1 and p2 and then we can attach the custom\n * name to that point by using this prop, hence giving the us the flexiblity of the order in which\n * label should render\n *\n * see the example file for the usage of the prop\n */\n xAxisStringFormatter?: (point: string) => string;\n\n /**\n * string formatter for y-axis.\n * This prop only applies if the y-axis is of string type\n *\n * For the accessiblity reason we sort the x-axis data point given by the consumer in ascending\n * order and then render in the y-axis. this behaviour would force the order of the data points.\n * to overcome , user can give y-axis point names as p1 p2...etc and map those p1 and p2 to custom name.\n * behind the scene the charting will actually sort the p1 and p2 and then we can attach the custom\n * name to that point by using this prop, hence giving the us the flexiblity of the order in which\n * label should render\n *\n * see the exaple file for the usage of the prop\n */\n yAxisStringFormatter?: (point: string) => string;\n /**\n * custom legend properties\n */\n legendProps?: Partial<ILegendsProps>;\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IHeatMapChartStyleProps, IHeatMapChartStyles>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\n/**\n * Heat Map Chart style properties\n * {@docCategory HeatMapChart}\n */\nexport interface IHeatMapChartStyleProps extends ICartesianChartStyleProps {}\n\n/**\n * Heat Map Chart styles\n * {@docCategory HeatMapChart}\n */\nexport interface IHeatMapChartStyles {\n root?: IStyle;\n text?: IStyle;\n subComponentStyles: {\n cartesianStyles: IStyleFunctionOrObject<ICartesianChartStyleProps, ICartesianChartStyles>;\n calloutStyles: IStyleFunctionOrObject<ICalloutContentStyleProps, ICalloutContentStyles>;\n };\n}\n"]}
@@ -3,7 +3,7 @@ import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
3
3
  import { ICalloutProps } from '@fluentui/react/lib/Callout';
4
4
  import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
5
5
  /**
6
- * IHorizontalBarChartProps for HorizontalBarchart component.
6
+ * Horizontal Bar Chart properties
7
7
  * {@docCategory HorizontalBarChart}
8
8
  */
9
9
  export interface IHorizontalBarChartProps {
@@ -78,6 +78,10 @@ export interface IHorizontalBarChartProps {
78
78
  */
79
79
  hideLabels?: boolean;
80
80
  }
81
+ /**
82
+ * Horizontal Bar Chart style properties
83
+ * {@docCategory HorizontalBarChart}
84
+ */
81
85
  export interface IHorizontalBarChartStyleProps {
82
86
  /**
83
87
  * Theme (provided through customization.)
@@ -113,6 +117,10 @@ export interface IHorizontalBarChartStyleProps {
113
117
  */
114
118
  hideLabels?: boolean;
115
119
  }
120
+ /**
121
+ * Horizontal Bar Chart styles
122
+ * {@docCategory HorizontalBarChart}
123
+ */
116
124
  export interface IHorizontalBarChartStyles {
117
125
  /**
118
126
  * Styling for the root container
@@ -168,8 +176,12 @@ export interface IHorizontalBarChartStyles {
168
176
  * default: show the datapoint.x value
169
177
  * fraction: show the fraction of datapoint.x/datapoint.y
170
178
  * percentage: show the percentage of (datapoint.x/datapoint.y)%
179
+ * {@docCategory HorizontalBarChart}
171
180
  */
172
181
  export declare type ChartDataMode = 'default' | 'fraction' | 'percentage';
182
+ /**
183
+ * {@docCategory HorizontalBarChart}
184
+ */
173
185
  export declare enum HorizontalBarChartVariant {
174
186
  PartToWhole = "part-to-whole",
175
187
  AbsoluteScale = "absolute-scale"
@@ -2,6 +2,9 @@ define(["require", "exports"], function (require, exports) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.HorizontalBarChartVariant = void 0;
5
+ /**
6
+ * {@docCategory HorizontalBarChart}
7
+ */
5
8
  var HorizontalBarChartVariant;
6
9
  (function (HorizontalBarChartVariant) {
7
10
  HorizontalBarChartVariant["PartToWhole"] = "part-to-whole";
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalBarChart.types.js","sourceRoot":"../src/","sources":["components/HorizontalBarChart/HorizontalBarChart.types.ts"],"names":[],"mappings":";;;;IAiNA,IAAY,yBAGX;IAHD,WAAY,yBAAyB;QACnC,0DAA6B,CAAA;QAC7B,6DAAgC,CAAA;IAClC,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC","sourcesContent":["import { IChartProps, IChartDataPoint } from './index';\nimport { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\n\n/**\n * IHorizontalBarChartProps for HorizontalBarchart component.\n * {@docCategory HorizontalBarChart}\n */\nexport interface IHorizontalBarChartProps {\n /**\n * An array of chart data points for the Horizontal bar chart\n */\n data?: IChartProps[];\n\n /**\n * Width of bar chart\n */\n width?: number;\n\n /**\n * Height of bar chart\n * @default 15\n */\n barHeight?: number;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * This property tells whether to show ratio on top of stacked bar chart or not.\n */\n hideRatio?: boolean[];\n\n /**\n * Do not show tooltips in chart\n *\n * @default false\n */\n hideTooltip?: boolean;\n\n /**\n * This property tells how to show data text on top right of bar chart.\n * If barChartCustomData props added, then this props will be overrided.\n * @default 'default'\n */\n chartDataMode?: ChartDataMode;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IHorizontalBarChartStyleProps, IHorizontalBarChartStyles>;\n\n /**\n * Define a custom callout renderer for a horizontal bar\n */\n onRenderCalloutPerHorizontalBar?: IRenderFunction<IChartDataPoint>;\n\n /**\n * props for the callout in the chart\n */\n calloutProps?: Partial<ICalloutProps>;\n\n /**\n * Custom text to the chart (right side of the chart)\n * IChartProps will be available as props to the method prop.\n * If this method not given, default values (IHorizontalDataPoint \\{x,y\\})\n * will be used to display the data/text based on given chartModeData prop.\n */\n barChartCustomData?: IRenderFunction<IChartProps>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * Prop to define the variant of HorizontalBarChart to render\n * @default HorizontalBarChartVariant.PartToWhole\n */\n variant?: HorizontalBarChartVariant;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n}\n\nexport interface IHorizontalBarChartStyleProps {\n /**\n * Theme (provided through customization.)\n */\n theme: ITheme;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Width of the chart.\n */\n width: number | undefined;\n\n /**\n * line color for callout\n */\n color?: string;\n\n /**\n * Height of bar chart\n * @default 15\n */\n barHeight?: number;\n\n /**\n * prop to check if benchmark data is provided\n */\n showTriangle?: boolean;\n\n /**\n * Prop to define the variant of HorizontalBarChart to render\n */\n variant?: HorizontalBarChartVariant;\n\n /**\n * Prop to hide the bar labels\n */\n hideLabels?: boolean;\n}\n\nexport interface IHorizontalBarChartStyles {\n /**\n * Styling for the root container\n */\n root: IStyle;\n\n /**\n * Styling for each item in the container\n */\n items: IStyle;\n\n /**\n * Style for the chart.\n */\n chart: IStyle;\n\n /**\n * Style for the chart Title.\n */\n chartTitle: IStyle;\n\n /**\n * Style for the bars.\n */\n barWrapper: IStyle;\n\n /**\n * Style for left side text of the chart title\n */\n chartTitleLeft: IStyle;\n\n /**\n * Style for right side text of the chart title\n */\n chartTitleRight: IStyle;\n\n /**\n * Style for the chart data text denominator.\n */\n chartDataTextDenominator: IStyle;\n\n /**\n * Style for the benchmark container\n */\n benchmarkContainer: IStyle;\n\n /**\n * Style for the benchmark triangle\n */\n triangle: IStyle;\n\n /**\n * Style for the bar labels\n */\n barLabel: IStyle;\n\n /**\n * Style for the div containing the chart\n */\n chartWrapper: IStyle;\n}\n\n/**\n * Chart data mode for chart data text\n * default: show the datapoint.x value\n * fraction: show the fraction of datapoint.x/datapoint.y\n * percentage: show the percentage of (datapoint.x/datapoint.y)%\n */\nexport type ChartDataMode = 'default' | 'fraction' | 'percentage';\n\nexport enum HorizontalBarChartVariant {\n PartToWhole = 'part-to-whole',\n AbsoluteScale = 'absolute-scale',\n}\n"]}
1
+ {"version":3,"file":"HorizontalBarChart.types.js","sourceRoot":"../src/","sources":["components/HorizontalBarChart/HorizontalBarChart.types.ts"],"names":[],"mappings":";;;;IA0NA;;OAEG;IACH,IAAY,yBAGX;IAHD,WAAY,yBAAyB;QACnC,0DAA6B,CAAA;QAC7B,6DAAgC,CAAA;IAClC,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC","sourcesContent":["import { IChartProps, IChartDataPoint } from './index';\nimport { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\n\n/**\n * Horizontal Bar Chart properties\n * {@docCategory HorizontalBarChart}\n */\nexport interface IHorizontalBarChartProps {\n /**\n * An array of chart data points for the Horizontal bar chart\n */\n data?: IChartProps[];\n\n /**\n * Width of bar chart\n */\n width?: number;\n\n /**\n * Height of bar chart\n * @default 15\n */\n barHeight?: number;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * This property tells whether to show ratio on top of stacked bar chart or not.\n */\n hideRatio?: boolean[];\n\n /**\n * Do not show tooltips in chart\n *\n * @default false\n */\n hideTooltip?: boolean;\n\n /**\n * This property tells how to show data text on top right of bar chart.\n * If barChartCustomData props added, then this props will be overrided.\n * @default 'default'\n */\n chartDataMode?: ChartDataMode;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IHorizontalBarChartStyleProps, IHorizontalBarChartStyles>;\n\n /**\n * Define a custom callout renderer for a horizontal bar\n */\n onRenderCalloutPerHorizontalBar?: IRenderFunction<IChartDataPoint>;\n\n /**\n * props for the callout in the chart\n */\n calloutProps?: Partial<ICalloutProps>;\n\n /**\n * Custom text to the chart (right side of the chart)\n * IChartProps will be available as props to the method prop.\n * If this method not given, default values (IHorizontalDataPoint \\{x,y\\})\n * will be used to display the data/text based on given chartModeData prop.\n */\n barChartCustomData?: IRenderFunction<IChartProps>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * Prop to define the variant of HorizontalBarChart to render\n * @default HorizontalBarChartVariant.PartToWhole\n */\n variant?: HorizontalBarChartVariant;\n\n /**\n * Prop to hide the bar labels\n * @default false\n */\n hideLabels?: boolean;\n}\n\n/**\n * Horizontal Bar Chart style properties\n * {@docCategory HorizontalBarChart}\n */\nexport interface IHorizontalBarChartStyleProps {\n /**\n * Theme (provided through customization.)\n */\n theme: ITheme;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Width of the chart.\n */\n width: number | undefined;\n\n /**\n * line color for callout\n */\n color?: string;\n\n /**\n * Height of bar chart\n * @default 15\n */\n barHeight?: number;\n\n /**\n * prop to check if benchmark data is provided\n */\n showTriangle?: boolean;\n\n /**\n * Prop to define the variant of HorizontalBarChart to render\n */\n variant?: HorizontalBarChartVariant;\n\n /**\n * Prop to hide the bar labels\n */\n hideLabels?: boolean;\n}\n\n/**\n * Horizontal Bar Chart styles\n * {@docCategory HorizontalBarChart}\n */\nexport interface IHorizontalBarChartStyles {\n /**\n * Styling for the root container\n */\n root: IStyle;\n\n /**\n * Styling for each item in the container\n */\n items: IStyle;\n\n /**\n * Style for the chart.\n */\n chart: IStyle;\n\n /**\n * Style for the chart Title.\n */\n chartTitle: IStyle;\n\n /**\n * Style for the bars.\n */\n barWrapper: IStyle;\n\n /**\n * Style for left side text of the chart title\n */\n chartTitleLeft: IStyle;\n\n /**\n * Style for right side text of the chart title\n */\n chartTitleRight: IStyle;\n\n /**\n * Style for the chart data text denominator.\n */\n chartDataTextDenominator: IStyle;\n\n /**\n * Style for the benchmark container\n */\n benchmarkContainer: IStyle;\n\n /**\n * Style for the benchmark triangle\n */\n triangle: IStyle;\n\n /**\n * Style for the bar labels\n */\n barLabel: IStyle;\n\n /**\n * Style for the div containing the chart\n */\n chartWrapper: IStyle;\n}\n\n/**\n * Chart data mode for chart data text\n * default: show the datapoint.x value\n * fraction: show the fraction of datapoint.x/datapoint.y\n * percentage: show the percentage of (datapoint.x/datapoint.y)%\n * {@docCategory HorizontalBarChart}\n */\nexport type ChartDataMode = 'default' | 'fraction' | 'percentage';\n\n/**\n * {@docCategory HorizontalBarChart}\n */\nexport enum HorizontalBarChartVariant {\n PartToWhole = 'part-to-whole',\n AbsoluteScale = 'absolute-scale',\n}\n"]}
@@ -2,7 +2,7 @@ import { IStyle } from '@fluentui/react/lib/Styling';
2
2
  import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
3
3
  import { ICartesianChartProps, ICartesianChartStyleProps, ICartesianChartStyles, IHorizontalBarChartWithAxisDataPoint } from '../../index';
4
4
  /**
5
- * IHorizontalBarChartWithAxisProps for HorizontalBarchartWithAxis component.
5
+ * Horizontal Bar Chart with Axis properties
6
6
  * {@docCategory HorizontalBarChartWithAxis}
7
7
  */
8
8
  export interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {
@@ -55,12 +55,20 @@ export interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {
55
55
  *Used for showing complete y axis lables */
56
56
  showYAxisLables?: boolean;
57
57
  }
58
+ /**
59
+ * Horizontal Bar Chart with Axis style properties
60
+ * {@docCategory HorizontalBarChartWithAxis}
61
+ */
58
62
  export interface IHorizontalBarChartWithAxisStyleProps extends ICartesianChartStyleProps {
59
63
  /**
60
64
  * color of the datapoint legend
61
65
  */
62
66
  legendColor?: string;
63
67
  }
68
+ /**
69
+ * Horizontal Bar Chart with Axis styles
70
+ * {@docCategory HorizontalBarChartWithAxis}
71
+ */
64
72
  export interface IHorizontalBarChartWithAxisStyles extends ICartesianChartStyles {
65
73
  /**
66
74
  * Style for the chart label.
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalBarChartWithAxis.types.js","sourceRoot":"../src/","sources":["components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n IHorizontalBarChartWithAxisDataPoint,\n} from '../../index';\n\n/**\n * IHorizontalBarChartWithAxisProps for HorizontalBarchartWithAxis component.\n * {@docCategory HorizontalBarChartWithAxis}\n */\nexport interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IHorizontalBarChartWithAxisDataPoint[];\n\n /**\n * Define a custom callout renderer for a data point.\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IHorizontalBarChartWithAxisDataPoint>;\n\n /**\n * Width of each bar in the chart.\n */\n barHeight?: number;\n\n /**\n * Colors from which to select the color of each bar.\n */\n colors?: string[];\n\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n\n /**\n * This prop makes sure that all the bars are of same color.\n * it will take the first color from the array of colors in\n * prop `colors` or if `colors` prop is not given then default color is palette.blueLight\n * @default false\n */\n useSingleColor?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IHorizontalBarChartWithAxisStyleProps, IHorizontalBarChartWithAxisStyles>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * it's padding between bar's or lines in the graph\n */\n yAxisPadding?: number;\n\n /**\n *@default false\n *Used for to elipse y axis labes and show tooltip on x axis labels\n */\n showYAxisLablesTooltip?: boolean;\n\n /**\n *@default false\n *Used for showing complete y axis lables */\n showYAxisLables?: boolean;\n}\n\nexport interface IHorizontalBarChartWithAxisStyleProps extends ICartesianChartStyleProps {\n /**\n * color of the datapoint legend\n */\n legendColor?: string;\n}\n\nexport interface IHorizontalBarChartWithAxisStyles extends ICartesianChartStyles {\n /**\n * Style for the chart label.\n *\n */\n chartLabel?: IStyle;\n\n /**\n * Style for the line representing the domain of the x-axis.\n *\n */\n xAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the x-axis.\n *\n */\n xAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the x-axis.\n *\n */\n xAxisText?: IStyle;\n\n /**\n * Style for the line representing the domain of the y-axis.\n *\n */\n yAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the y-axis.\n *\n */\n yAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the y-axis.\n *\n */\n yAxisText?: IStyle;\n\n /**\n * Style to change the opacity of bars in dataviz when we hover on a single bar or legends\n */\n opacityChangeOnHover: IStyle;\n}\n"]}
1
+ {"version":3,"file":"HorizontalBarChartWithAxis.types.js","sourceRoot":"../src/","sources":["components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n IHorizontalBarChartWithAxisDataPoint,\n} from '../../index';\n\n/**\n * Horizontal Bar Chart with Axis properties\n * {@docCategory HorizontalBarChartWithAxis}\n */\nexport interface IHorizontalBarChartWithAxisProps extends ICartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IHorizontalBarChartWithAxisDataPoint[];\n\n /**\n * Define a custom callout renderer for a data point.\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IHorizontalBarChartWithAxisDataPoint>;\n\n /**\n * Width of each bar in the chart.\n */\n barHeight?: number;\n\n /**\n * Colors from which to select the color of each bar.\n */\n colors?: string[];\n\n /**\n * chart title for the chart\n */\n chartTitle?: string;\n\n /**\n * This prop makes sure that all the bars are of same color.\n * it will take the first color from the array of colors in\n * prop `colors` or if `colors` prop is not given then default color is palette.blueLight\n * @default false\n */\n useSingleColor?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IHorizontalBarChartWithAxisStyleProps, IHorizontalBarChartWithAxisStyles>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * it's padding between bar's or lines in the graph\n */\n yAxisPadding?: number;\n\n /**\n *@default false\n *Used for to elipse y axis labes and show tooltip on x axis labels\n */\n showYAxisLablesTooltip?: boolean;\n\n /**\n *@default false\n *Used for showing complete y axis lables */\n showYAxisLables?: boolean;\n}\n\n/**\n * Horizontal Bar Chart with Axis style properties\n * {@docCategory HorizontalBarChartWithAxis}\n */\nexport interface IHorizontalBarChartWithAxisStyleProps extends ICartesianChartStyleProps {\n /**\n * color of the datapoint legend\n */\n legendColor?: string;\n}\n\n/**\n * Horizontal Bar Chart with Axis styles\n * {@docCategory HorizontalBarChartWithAxis}\n */\nexport interface IHorizontalBarChartWithAxisStyles extends ICartesianChartStyles {\n /**\n * Style for the chart label.\n *\n */\n chartLabel?: IStyle;\n\n /**\n * Style for the line representing the domain of the x-axis.\n *\n */\n xAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the x-axis.\n *\n */\n xAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the x-axis.\n *\n */\n xAxisText?: IStyle;\n\n /**\n * Style for the line representing the domain of the y-axis.\n *\n */\n yAxisDomain?: IStyle;\n\n /**\n * Style for the lines representing the ticks along the y-axis.\n *\n */\n yAxisTicks?: IStyle;\n\n /**\n * Style for the text labeling each tick along the y-axis.\n *\n */\n yAxisText?: IStyle;\n\n /**\n * Style to change the opacity of bars in dataviz when we hover on a single bar or legends\n */\n opacityChangeOnHover: IStyle;\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ILegendsProps } from './Legends.types';
3
3
  /**
4
- * Legends component.
4
+ * Legends component
5
5
  * {@docCategory Legends}
6
6
  */
7
7
  export declare const Legends: React.FunctionComponent<ILegendsProps>;
@@ -3,7 +3,7 @@ define(["require", "exports", "@fluentui/react/lib/Utilities", "./Legends.base",
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Legends = void 0;
5
5
  /**
6
- * Legends component.
6
+ * Legends component
7
7
  * {@docCategory Legends}
8
8
  */
9
9
  exports.Legends = (0, Utilities_1.styled)(Legends_base_1.LegendsBase, Legends_styles_1.getStyles);
@@ -1 +1 @@
1
- {"version":3,"file":"Legends.js","sourceRoot":"../src/","sources":["components/Legends/Legends.tsx"],"names":[],"mappings":";;;;IAMA;;;OAGG;IACU,QAAA,OAAO,GAA2C,IAAA,kBAAM,EACnE,0BAAW,EACX,0BAAS,CACV,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ILegendsProps, ILegendStyleProps, ILegendsStyles } from './Legends.types';\nimport { LegendsBase } from './Legends.base';\nimport { getStyles } from './Legends.styles';\n\n/**\n * Legends component.\n * {@docCategory Legends}\n */\nexport const Legends: React.FunctionComponent<ILegendsProps> = styled<ILegendsProps, ILegendStyleProps, ILegendsStyles>(\n LegendsBase,\n getStyles,\n);\n"]}
1
+ {"version":3,"file":"Legends.js","sourceRoot":"../src/","sources":["components/Legends/Legends.tsx"],"names":[],"mappings":";;;;IAMA;;;OAGG;IACU,QAAA,OAAO,GAA2C,IAAA,kBAAM,EACnE,0BAAW,EACX,0BAAS,CACV,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ILegendsProps, ILegendStyleProps, ILegendsStyles } from './Legends.types';\nimport { LegendsBase } from './Legends.base';\nimport { getStyles } from './Legends.styles';\n\n/**\n * Legends component\n * {@docCategory Legends}\n */\nexport const Legends: React.FunctionComponent<ILegendsProps> = styled<ILegendsProps, ILegendStyleProps, ILegendsStyles>(\n LegendsBase,\n getStyles,\n);\n"]}
@@ -5,18 +5,12 @@ import { IHoverCardStyleProps, IHoverCardStyles } from '@fluentui/react/lib/Hove
5
5
  import { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';
6
6
  import { IFocusZoneProps } from '@fluentui/react-focus';
7
7
  import { CustomPoints, Points } from '../../utilities/utilities';
8
- /**
9
- * @public
10
- * ILegendOverflowData interface.
11
- * {@docCategory Legends}
12
- */
13
8
  export interface ILegendOverflowData {
14
9
  primary: ILegend[];
15
10
  overflow?: ILegend[];
16
11
  }
17
12
  /**
18
13
  * @public
19
- * ILegendSubComponentStyles interface.
20
14
  * {@docCategory Legends}
21
15
  */
22
16
  export interface ILegendSubComponentStyles {
@@ -24,7 +18,7 @@ export interface ILegendSubComponentStyles {
24
18
  }
25
19
  /**
26
20
  * @public
27
- * ILegendsStyles interface.
21
+ * Legends styles
28
22
  * {@docCategory Legends}
29
23
  */
30
24
  export interface ILegendsStyles {
@@ -71,7 +65,7 @@ export interface ILegendsStyles {
71
65
  }
72
66
  /**
73
67
  * @public
74
- * ILegendsStyles interface.
68
+ * ILegend interface
75
69
  * {@docCategory Legends}
76
70
  */
77
71
  export interface ILegend {
@@ -113,6 +107,11 @@ export interface ILegend {
113
107
  isLineLegendInBarChart?: boolean;
114
108
  nativeButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
115
109
  }
110
+ /**
111
+ * @public
112
+ * Legend style properties
113
+ * {@docCategory Legends}
114
+ */
116
115
  export interface ILegendStyleProps {
117
116
  theme?: ITheme;
118
117
  className?: string;
@@ -123,6 +122,11 @@ export interface ILegendStyleProps {
123
122
  stripePattern?: boolean;
124
123
  isLineLegendInBarChart?: boolean;
125
124
  }
125
+ /**
126
+ * @public
127
+ * Legend properties
128
+ * {@docCategory Legends}
129
+ */
126
130
  export interface ILegendsProps {
127
131
  /**
128
132
  * Prop that takes list of legends
@@ -182,8 +186,10 @@ export interface ILegendsProps {
182
186
  onLegendHoverCardLeave?: VoidFunction;
183
187
  }
184
188
  /**
189
+ * @public
185
190
  * The shape for the legend
186
191
  * default: show the rect legend
187
192
  * triangle: show the triangle legend
193
+ * {@docCategory Legends}
188
194
  */
189
195
  export declare type LegendShape = 'default' | 'triangle' | keyof typeof Points | keyof typeof CustomPoints;
@@ -1 +1 @@
1
- {"version":3,"file":"Legends.types.js","sourceRoot":"../src/","sources":["components/Legends/Legends.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IHoverCardStyleProps, IHoverCardStyles } from '@fluentui/react/lib/HoverCard';\nimport { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';\nimport { IFocusZoneProps } from '@fluentui/react-focus';\nimport { CustomPoints, Points } from '../../utilities/utilities';\n\n/**\n * @public\n * ILegendOverflowData interface.\n * {@docCategory Legends}\n */\nexport interface ILegendOverflowData {\n primary: ILegend[];\n\n overflow?: ILegend[];\n}\n\n/**\n * @public\n * ILegendSubComponentStyles interface.\n * {@docCategory Legends}\n */\nexport interface ILegendSubComponentStyles {\n hoverCardStyles: IStyleFunctionOrObject<IHoverCardStyleProps, IHoverCardStyles>;\n}\n\n/**\n * @public\n * ILegendsStyles interface.\n * {@docCategory Legends}\n */\nexport interface ILegendsStyles {\n /**\n * Style set for the root of the legend component\n */\n root: IStyle;\n\n /**\n * Style set for Legend. This is a wrapping class for text of legend and the rectange box that represents a legend\n */\n legend: IStyle;\n\n /**\n * Style set for the rectangle that represents a legend\n */\n rect: IStyle;\n\n /**\n * styles set for the shape that represents a legend\n */\n shape: IStyle;\n\n /**\n * Style set for the triangle that represents a legend\n */\n triangle: IStyle;\n\n /**\n * Style for the legend text\n */\n text: IStyle;\n\n /**\n * Style for the legend text\n */\n hoverChange: IStyle;\n\n /**\n * Style for the text that indicates the no.of legends that are in hovercard due to lack of space\n */\n overflowIndicationTextStyle: IStyle;\n\n /**\n * Style for the overflow container\n */\n hoverCardRoot: IStyle;\n\n /**\n * sub component styles\n */\n subComponentStyles: ILegendSubComponentStyles;\n}\n\n/**\n * @public\n * ILegendsStyles interface.\n * {@docCategory Legends}\n */\nexport interface ILegend {\n /**\n * Defines the title of the legend\n */\n title: string;\n\n /**\n * Defines the function that is executed on clicking this legend\n */\n action?: VoidFunction;\n\n /**\n * Defines the function that is executed upon hovering over the legend\n */\n hoverAction?: VoidFunction;\n\n /**\n * Defines the function that is executed upon moving the mouse away from the legend\n */\n onMouseOutAction?: (isLegendFocused?: boolean) => void;\n\n /**\n * The color for the legend\n */\n color: string;\n\n /**\n * The opacity of the legend color\n */\n opacity?: number;\n\n /**\n * The shape for the legend\n */\n shape?: LegendShape;\n\n /**\n * Indicated whether or not to apply stripe pattern\n */\n stripePattern?: boolean;\n\n /**\n * Indicates if the legend belongs to a line in the Bar Chart\n */\n isLineLegendInBarChart?: boolean;\n\n /*\n * native button props for the legend button\n */\n nativeButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;\n}\n\nexport interface ILegendStyleProps {\n theme?: ITheme;\n className?: string;\n colorOnSelectedState?: string;\n borderColor?: string;\n opacity?: number;\n overflow?: boolean;\n stripePattern?: boolean;\n isLineLegendInBarChart?: boolean;\n}\n\nexport interface ILegendsProps {\n /**\n * Prop that takes list of legends\n */\n legends: ILegend[];\n\n /**\n * Additional CSS class(es) to apply to the legneds component.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ILegendStyleProps, ILegendsStyles>;\n\n /**\n * This prop makes the legends component align itself to the center in the container it is sitting in\n */\n centerLegends?: boolean;\n\n /**\n * Enable the legends to wrap lines if there is not enough space to show all legends on a single line\n */\n enabledWrapLines?: boolean;\n\n /**\n * props for the overflow set component\n */\n overflowProps?: Partial<IOverflowSetProps>;\n\n /**\n * focus zone props in hover card\n */\n focusZonePropsInHoverCard?: IFocusZoneProps;\n\n /**\n * text for overflow legends string\n */\n overflowText?: string;\n\n /**\n * Prop that takes the active legend\n */\n selectedLegend?: string;\n\n /**\n * prop that decides if legends are focusable\n * @default true\n */\n allowFocusOnLegends?: boolean;\n\n /**\n * prop that decide if we can select multiple legends or single legend at a time\n * @default false\n */\n canSelectMultipleLegends?: boolean;\n\n /**\n * Defines the function that is executed upon hiding of hover card\n * make sure to send prop when the prop is canSelectMultipleLegends is set to ture\n * and empty the selecetd state legends\n */\n onLegendHoverCardLeave?: VoidFunction;\n}\n\n/**\n * The shape for the legend\n * default: show the rect legend\n * triangle: show the triangle legend\n */\nexport type LegendShape = 'default' | 'triangle' | keyof typeof Points | keyof typeof CustomPoints;\n"]}
1
+ {"version":3,"file":"Legends.types.js","sourceRoot":"../src/","sources":["components/Legends/Legends.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IHoverCardStyleProps, IHoverCardStyles } from '@fluentui/react/lib/HoverCard';\nimport { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';\nimport { IFocusZoneProps } from '@fluentui/react-focus';\nimport { CustomPoints, Points } from '../../utilities/utilities';\n\nexport interface ILegendOverflowData {\n primary: ILegend[];\n\n overflow?: ILegend[];\n}\n\n/**\n * @public\n * {@docCategory Legends}\n */\nexport interface ILegendSubComponentStyles {\n hoverCardStyles: IStyleFunctionOrObject<IHoverCardStyleProps, IHoverCardStyles>;\n}\n\n/**\n * @public\n * Legends styles\n * {@docCategory Legends}\n */\nexport interface ILegendsStyles {\n /**\n * Style set for the root of the legend component\n */\n root: IStyle;\n\n /**\n * Style set for Legend. This is a wrapping class for text of legend and the rectange box that represents a legend\n */\n legend: IStyle;\n\n /**\n * Style set for the rectangle that represents a legend\n */\n rect: IStyle;\n\n /**\n * styles set for the shape that represents a legend\n */\n shape: IStyle;\n\n /**\n * Style set for the triangle that represents a legend\n */\n triangle: IStyle;\n\n /**\n * Style for the legend text\n */\n text: IStyle;\n\n /**\n * Style for the legend text\n */\n hoverChange: IStyle;\n\n /**\n * Style for the text that indicates the no.of legends that are in hovercard due to lack of space\n */\n overflowIndicationTextStyle: IStyle;\n\n /**\n * Style for the overflow container\n */\n hoverCardRoot: IStyle;\n\n /**\n * sub component styles\n */\n subComponentStyles: ILegendSubComponentStyles;\n}\n\n/**\n * @public\n * ILegend interface\n * {@docCategory Legends}\n */\nexport interface ILegend {\n /**\n * Defines the title of the legend\n */\n title: string;\n\n /**\n * Defines the function that is executed on clicking this legend\n */\n action?: VoidFunction;\n\n /**\n * Defines the function that is executed upon hovering over the legend\n */\n hoverAction?: VoidFunction;\n\n /**\n * Defines the function that is executed upon moving the mouse away from the legend\n */\n onMouseOutAction?: (isLegendFocused?: boolean) => void;\n\n /**\n * The color for the legend\n */\n color: string;\n\n /**\n * The opacity of the legend color\n */\n opacity?: number;\n\n /**\n * The shape for the legend\n */\n shape?: LegendShape;\n\n /**\n * Indicated whether or not to apply stripe pattern\n */\n stripePattern?: boolean;\n\n /**\n * Indicates if the legend belongs to a line in the Bar Chart\n */\n isLineLegendInBarChart?: boolean;\n\n /*\n * native button props for the legend button\n */\n nativeButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;\n}\n\n/**\n * @public\n * Legend style properties\n * {@docCategory Legends}\n */\nexport interface ILegendStyleProps {\n theme?: ITheme;\n className?: string;\n colorOnSelectedState?: string;\n borderColor?: string;\n opacity?: number;\n overflow?: boolean;\n stripePattern?: boolean;\n isLineLegendInBarChart?: boolean;\n}\n\n/**\n * @public\n * Legend properties\n * {@docCategory Legends}\n */\nexport interface ILegendsProps {\n /**\n * Prop that takes list of legends\n */\n legends: ILegend[];\n\n /**\n * Additional CSS class(es) to apply to the legneds component.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ILegendStyleProps, ILegendsStyles>;\n\n /**\n * This prop makes the legends component align itself to the center in the container it is sitting in\n */\n centerLegends?: boolean;\n\n /**\n * Enable the legends to wrap lines if there is not enough space to show all legends on a single line\n */\n enabledWrapLines?: boolean;\n\n /**\n * props for the overflow set component\n */\n overflowProps?: Partial<IOverflowSetProps>;\n\n /**\n * focus zone props in hover card\n */\n focusZonePropsInHoverCard?: IFocusZoneProps;\n\n /**\n * text for overflow legends string\n */\n overflowText?: string;\n\n /**\n * Prop that takes the active legend\n */\n selectedLegend?: string;\n\n /**\n * prop that decides if legends are focusable\n * @default true\n */\n allowFocusOnLegends?: boolean;\n\n /**\n * prop that decide if we can select multiple legends or single legend at a time\n * @default false\n */\n canSelectMultipleLegends?: boolean;\n\n /**\n * Defines the function that is executed upon hiding of hover card\n * make sure to send prop when the prop is canSelectMultipleLegends is set to ture\n * and empty the selecetd state legends\n */\n onLegendHoverCardLeave?: VoidFunction;\n}\n\n/**\n * @public\n * The shape for the legend\n * default: show the rect legend\n * triangle: show the triangle legend\n * {@docCategory Legends}\n */\nexport type LegendShape = 'default' | 'triangle' | keyof typeof Points | keyof typeof CustomPoints;\n"]}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ILineChartProps } from './LineChart.types';
3
3
  /**
4
- * Linechart component.
4
+ * Linechart component
5
5
  * {@docCategory LineChart}
6
6
  */
7
7
  export declare const LineChart: React.FunctionComponent<ILineChartProps>;
@@ -4,7 +4,7 @@ define(["require", "exports", "@fluentui/react/lib/Utilities", "./LineChart.base
4
4
  exports.LineChart = void 0;
5
5
  // Create a LineChart variant which uses these default styles and this styled subcomponent.
6
6
  /**
7
- * Linechart component.
7
+ * Linechart component
8
8
  * {@docCategory LineChart}
9
9
  */
10
10
  exports.LineChart = (0, Utilities_1.styled)(LineChart_base_1.LineChartBase, LineChart_styles_1.getStyles);
@@ -1 +1 @@
1
- {"version":3,"file":"LineChart.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.tsx"],"names":[],"mappings":";;;;IAMA,2FAA2F;IAC3F;;;OAGG;IACU,QAAA,SAAS,GAA6C,IAAA,kBAAM,EAIvE,8BAAa,EAAE,4BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ILineChartProps, ILineChartStyleProps, ILineChartStyles } from './LineChart.types';\nimport { LineChartBase } from './LineChart.base';\nimport { getStyles } from './LineChart.styles';\n\n// Create a LineChart variant which uses these default styles and this styled subcomponent.\n/**\n * Linechart component.\n * {@docCategory LineChart}\n */\nexport const LineChart: React.FunctionComponent<ILineChartProps> = styled<\n ILineChartProps,\n ILineChartStyleProps,\n ILineChartStyles\n>(LineChartBase, getStyles);\n"]}
1
+ {"version":3,"file":"LineChart.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.tsx"],"names":[],"mappings":";;;;IAMA,2FAA2F;IAC3F;;;OAGG;IACU,QAAA,SAAS,GAA6C,IAAA,kBAAM,EAIvE,8BAAa,EAAE,4BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ILineChartProps, ILineChartStyleProps, ILineChartStyles } from './LineChart.types';\nimport { LineChartBase } from './LineChart.base';\nimport { getStyles } from './LineChart.styles';\n\n// Create a LineChart variant which uses these default styles and this styled subcomponent.\n/**\n * Linechart component\n * {@docCategory LineChart}\n */\nexport const LineChart: React.FunctionComponent<ILineChartProps> = styled<\n ILineChartProps,\n ILineChartStyleProps,\n ILineChartStyles\n>(LineChartBase, getStyles);\n"]}
@@ -4,7 +4,7 @@ import { IEventAnnotation } from '../../types/IEventAnnotation';
4
4
  import { ICartesianChartProps, ICartesianChartStyleProps, ICartesianChartStyles, IChildProps } from '../CommonComponents/index';
5
5
  export type { IChildProps, ILineChartPoints, IMargins, IBasestate, IRefArrayData };
6
6
  /**
7
- * ILineChartProps properties for line chart.
7
+ * Line Chart properties
8
8
  * {@docCategory LineChart}
9
9
  */
10
10
  export interface ILineChartProps extends ICartesianChartProps {
@@ -56,6 +56,9 @@ export interface ILineChartProps extends ICartesianChartProps {
56
56
  */
57
57
  enablePerfOptimization?: boolean;
58
58
  }
59
+ /**
60
+ * {@docCategory LineChart}
61
+ */
59
62
  export interface IEventsAnnotationProps {
60
63
  events: IEventAnnotation[];
61
64
  strokeColor?: string;
@@ -64,10 +67,21 @@ export interface IEventsAnnotationProps {
64
67
  labelWidth?: number;
65
68
  mergedLabel: (count: number) => string;
66
69
  }
70
+ /**
71
+ * Line Chart styles
72
+ * {@docCategory LineChart}
73
+ */
67
74
  export interface ILineChartStyles extends ICartesianChartStyles {
68
75
  }
76
+ /**
77
+ * Line Chart style properties
78
+ * {@docCategory LineChart}
79
+ */
69
80
  export interface ILineChartStyleProps extends ICartesianChartStyleProps {
70
81
  }
82
+ /**
83
+ * {@docCategory LineChart}
84
+ */
71
85
  export interface IColorFillBarsProps {
72
86
  legend: string;
73
87
  color: string;
@@ -75,6 +89,9 @@ export interface IColorFillBarsProps {
75
89
  applyPattern?: boolean;
76
90
  onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;
77
91
  }
92
+ /**
93
+ * {@docCategory LineChart}
94
+ */
78
95
  export interface IColorFillBarData {
79
96
  startX: number | Date;
80
97
  endX: number | Date;
@@ -1 +1 @@
1
- {"version":3,"file":"LineChart.types.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n IChartProps,\n ILineChartPoints,\n IMargins,\n IBasestate,\n IRefArrayData,\n ICustomizedCalloutData,\n} from '../../types/index';\nimport { IEventAnnotation } from '../../types/IEventAnnotation';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n IChildProps,\n} from '../CommonComponents/index';\n\nexport type { IChildProps, ILineChartPoints, IMargins, IBasestate, IRefArrayData };\n\n/**\n * ILineChartProps properties for line chart.\n * {@docCategory LineChart}\n */\nexport interface ILineChartProps extends ICartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data: IChartProps;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ILineChartStyleProps, ILineChartStyles>;\n\n /**\n * Show event annotation\n */\n eventAnnotationProps?: IEventsAnnotationProps;\n\n /**\n * Define a custom callout renderer for a data point\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;\n\n /**\n * Define a custom callout renderer for a stack; default is to render per data point\n */\n onRenderCalloutPerStack?: IRenderFunction<ICustomizedCalloutData>;\n\n /**\n * Callback for getting callout description message\n */\n getCalloutDescriptionMessage?: (calloutDataProps: ICustomizedCalloutData) => string | undefined;\n\n /*\n * Color fill bars for the chart,\n */\n colorFillBars?: IColorFillBarsProps[];\n\n /**\n * if this is set to true, then for each line there will be a unique shape assigned to the point,\n * there are total 8 shapes which are as follow circle, square, triangele, diamond, pyramid,\n * hexagon, pentagon and octagon, which will get assigned as respectively, if there are more\n * than 8 lines in the line chart then it will again start from cicle to octagon.\n * setting this flag to true will also change the behavior of the points, like for a\n * line, last point shape and first point shape will be visible all the times, and all\n * other points will get enlarge only when hovered over them\n * if set to false default shape will be circle, with the existing behavior\n * @default false\n */\n allowMultipleShapesForPoints?: boolean;\n\n /*\n * Optimize line chart rendering for large data set. If this prop is enabled, line chart\n * can easily render over 10K datapoints with multiple lines smoothly.\n * This rendering mechanism does not support gaps in lines.\n */\n optimizeLargeData?: boolean;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * @default false\n * The prop used to enable the perf optimization\n */\n enablePerfOptimization?: boolean;\n}\nexport interface IEventsAnnotationProps {\n events: IEventAnnotation[];\n strokeColor?: string;\n labelColor?: string;\n labelHeight?: number;\n labelWidth?: number;\n mergedLabel: (count: number) => string;\n}\n\nexport interface ILineChartStyles extends ICartesianChartStyles {}\n\nexport interface ILineChartStyleProps extends ICartesianChartStyleProps {}\n\nexport interface IColorFillBarsProps {\n legend: string;\n color: string;\n data: IColorFillBarData[];\n applyPattern?: boolean;\n onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;\n}\n\nexport interface IColorFillBarData {\n startX: number | Date;\n endX: number | Date;\n}\n"]}
1
+ {"version":3,"file":"LineChart.types.js","sourceRoot":"../src/","sources":["components/LineChart/LineChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport {\n IChartProps,\n ILineChartPoints,\n IMargins,\n IBasestate,\n IRefArrayData,\n ICustomizedCalloutData,\n} from '../../types/index';\nimport { IEventAnnotation } from '../../types/IEventAnnotation';\nimport {\n ICartesianChartProps,\n ICartesianChartStyleProps,\n ICartesianChartStyles,\n IChildProps,\n} from '../CommonComponents/index';\n\nexport type { IChildProps, ILineChartPoints, IMargins, IBasestate, IRefArrayData };\n\n/**\n * Line Chart properties\n * {@docCategory LineChart}\n */\nexport interface ILineChartProps extends ICartesianChartProps {\n /**\n * Data to render in the chart.\n */\n data: IChartProps;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ILineChartStyleProps, ILineChartStyles>;\n\n /**\n * Show event annotation\n */\n eventAnnotationProps?: IEventsAnnotationProps;\n\n /**\n * Define a custom callout renderer for a data point\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;\n\n /**\n * Define a custom callout renderer for a stack; default is to render per data point\n */\n onRenderCalloutPerStack?: IRenderFunction<ICustomizedCalloutData>;\n\n /**\n * Callback for getting callout description message\n */\n getCalloutDescriptionMessage?: (calloutDataProps: ICustomizedCalloutData) => string | undefined;\n\n /*\n * Color fill bars for the chart,\n */\n colorFillBars?: IColorFillBarsProps[];\n\n /**\n * if this is set to true, then for each line there will be a unique shape assigned to the point,\n * there are total 8 shapes which are as follow circle, square, triangele, diamond, pyramid,\n * hexagon, pentagon and octagon, which will get assigned as respectively, if there are more\n * than 8 lines in the line chart then it will again start from cicle to octagon.\n * setting this flag to true will also change the behavior of the points, like for a\n * line, last point shape and first point shape will be visible all the times, and all\n * other points will get enlarge only when hovered over them\n * if set to false default shape will be circle, with the existing behavior\n * @default false\n */\n allowMultipleShapesForPoints?: boolean;\n\n /*\n * Optimize line chart rendering for large data set. If this prop is enabled, line chart\n * can easily render over 10K datapoints with multiple lines smoothly.\n * This rendering mechanism does not support gaps in lines.\n */\n optimizeLargeData?: boolean;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * @default false\n * The prop used to enable the perf optimization\n */\n enablePerfOptimization?: boolean;\n}\n\n/**\n * {@docCategory LineChart}\n */\nexport interface IEventsAnnotationProps {\n events: IEventAnnotation[];\n strokeColor?: string;\n labelColor?: string;\n labelHeight?: number;\n labelWidth?: number;\n mergedLabel: (count: number) => string;\n}\n\n/**\n * Line Chart styles\n * {@docCategory LineChart}\n */\nexport interface ILineChartStyles extends ICartesianChartStyles {}\n\n/**\n * Line Chart style properties\n * {@docCategory LineChart}\n */\nexport interface ILineChartStyleProps extends ICartesianChartStyleProps {}\n\n/**\n * {@docCategory LineChart}\n */\nexport interface IColorFillBarsProps {\n legend: string;\n color: string;\n data: IColorFillBarData[];\n applyPattern?: boolean;\n onLegendClick?: (selectedLegend: string | string[] | null) => void | undefined;\n}\n\n/**\n * {@docCategory LineChart}\n */\nexport interface IColorFillBarData {\n startX: number | Date;\n endX: number | Date;\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { IPieChartProps } from './PieChart.types';
3
3
  /**
4
- * Piechart component.
4
+ * Piechart component
5
5
  * {@docCategory PieChart}
6
6
  */
7
7
  export declare const PieChart: React.FunctionComponent<IPieChartProps>;
@@ -4,7 +4,7 @@ define(["require", "exports", "@fluentui/react/lib/Utilities", "./PieChart.base"
4
4
  exports.PieChart = void 0;
5
5
  // Create a PieChart variant which uses these default styles and this styled subcomponent.
6
6
  /**
7
- * Piechart component.
7
+ * Piechart component
8
8
  * {@docCategory PieChart}
9
9
  */
10
10
  exports.PieChart = (0, Utilities_1.styled)(PieChart_base_1.PieChartBase, PieChart_styles_1.getStyles);
@@ -1 +1 @@
1
- {"version":3,"file":"PieChart.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.tsx"],"names":[],"mappings":";;;;IAMA,0FAA0F;IAC1F;;;OAGG;IACU,QAAA,QAAQ,GAA4C,IAAA,kBAAM,EAIrE,4BAAY,EAAE,2BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { IPieChartProps, IPieChartStyleProps, IPieChartStyles } from './PieChart.types';\nimport { PieChartBase } from './PieChart.base';\nimport { getStyles } from './PieChart.styles';\n\n// Create a PieChart variant which uses these default styles and this styled subcomponent.\n/**\n * Piechart component.\n * {@docCategory PieChart}\n */\nexport const PieChart: React.FunctionComponent<IPieChartProps> = styled<\n IPieChartProps,\n IPieChartStyleProps,\n IPieChartStyles\n>(PieChartBase, getStyles);\n"]}
1
+ {"version":3,"file":"PieChart.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.tsx"],"names":[],"mappings":";;;;IAMA,0FAA0F;IAC1F;;;OAGG;IACU,QAAA,QAAQ,GAA4C,IAAA,kBAAM,EAIrE,4BAAY,EAAE,2BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { IPieChartProps, IPieChartStyleProps, IPieChartStyles } from './PieChart.types';\nimport { PieChartBase } from './PieChart.base';\nimport { getStyles } from './PieChart.styles';\n\n// Create a PieChart variant which uses these default styles and this styled subcomponent.\n/**\n * Piechart component\n * {@docCategory PieChart}\n */\nexport const PieChart: React.FunctionComponent<IPieChartProps> = styled<\n IPieChartProps,\n IPieChartStyleProps,\n IPieChartStyles\n>(PieChartBase, getStyles);\n"]}
@@ -5,7 +5,7 @@ export type { IDataPoint } from '../../types/IDataPoint';
5
5
  export interface IPieChart {
6
6
  }
7
7
  /**
8
- * IPieChartProps for Piechart component.
8
+ * Pie Chart properties
9
9
  * {@docCategory PieChart}
10
10
  */
11
11
  export interface IPieChartProps {
@@ -50,7 +50,15 @@ export interface IPieChartProps {
50
50
  */
51
51
  culture?: string;
52
52
  }
53
+ /**
54
+ * Pie Chart style properties
55
+ * {@docCategory PieChart}
56
+ */
53
57
  export declare type IPieChartStyleProps = Required<Pick<IPieChartProps, 'theme' | 'width' | 'height'>> & Pick<IPieChartProps, 'className'>;
58
+ /**
59
+ * Pie Chart styles
60
+ * {@docCategory PieChart}
61
+ */
54
62
  export interface IPieChartStyles {
55
63
  /**
56
64
  * Style for the root element.
@@ -1 +1 @@
1
- {"version":3,"file":"PieChart.types.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IDataPoint } from '../../types/IDataPoint';\nexport type { IDataPoint } from '../../types/IDataPoint';\nexport interface IPieChart {}\n\n/**\n * IPieChartProps for Piechart component.\n * {@docCategory PieChart}\n */\nexport interface IPieChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IDataPoint[];\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * Height of the chart.\n */\n height?: number;\n\n /**\n * colors to render in the chart.\n */\n colors?: string[];\n\n /**\n * Title to apply to the whole chart.\n */\n chartTitle?: string;\n\n /**\n * Additional CSS class(es) to apply to the PieChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IPieChartStyleProps, IPieChartStyles>;\n\n /**\n * Width of line stroke\n */\n strokeWidth?: number;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\nexport type IPieChartStyleProps = Required<Pick<IPieChartProps, 'theme' | 'width' | 'height'>> &\n Pick<IPieChartProps, 'className'>;\nexport interface IPieChartStyles {\n /**\n * Style for the root element.\n */\n root?: IStyle;\n\n /**\n * Style for the chart.\n */\n chart?: IStyle;\n\n /**\n * Style for the chart Title.\n */\n chartTitle?: IStyle;\n}\n"]}
1
+ {"version":3,"file":"PieChart.types.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IDataPoint } from '../../types/IDataPoint';\nexport type { IDataPoint } from '../../types/IDataPoint';\nexport interface IPieChart {}\n\n/**\n * Pie Chart properties\n * {@docCategory PieChart}\n */\nexport interface IPieChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IDataPoint[];\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * Height of the chart.\n */\n height?: number;\n\n /**\n * colors to render in the chart.\n */\n colors?: string[];\n\n /**\n * Title to apply to the whole chart.\n */\n chartTitle?: string;\n\n /**\n * Additional CSS class(es) to apply to the PieChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<IPieChartStyleProps, IPieChartStyles>;\n\n /**\n * Width of line stroke\n */\n strokeWidth?: number;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\n/**\n * Pie Chart style properties\n * {@docCategory PieChart}\n */\nexport type IPieChartStyleProps = Required<Pick<IPieChartProps, 'theme' | 'width' | 'height'>> &\n Pick<IPieChartProps, 'className'>;\n\n/**\n * Pie Chart styles\n * {@docCategory PieChart}\n */\nexport interface IPieChartStyles {\n /**\n * Style for the root element.\n */\n root?: IStyle;\n\n /**\n * Style for the chart.\n */\n chart?: IStyle;\n\n /**\n * Style for the chart Title.\n */\n chartTitle?: IStyle;\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ISankeyChartProps } from './SankeyChart.types';
3
3
  /**
4
- * Sankeychart component.
4
+ * Sankeychart component
5
5
  * {@docCategory SankeyChart}
6
6
  */
7
7
  export declare const SankeyChart: React.FunctionComponent<ISankeyChartProps>;
@@ -4,7 +4,7 @@ define(["require", "exports", "@fluentui/react/lib/Utilities", "./SankeyChart.ba
4
4
  exports.SankeyChart = void 0;
5
5
  // Create a SankeyChart variant which uses these default styles and this styled subcomponent.
6
6
  /**
7
- * Sankeychart component.
7
+ * Sankeychart component
8
8
  * {@docCategory SankeyChart}
9
9
  */
10
10
  exports.SankeyChart = (0, Utilities_1.styled)(SankeyChart_base_1.SankeyChartBase, SankeyChart_styles_1.getStyles);
@@ -1 +1 @@
1
- {"version":3,"file":"SankeyChart.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.tsx"],"names":[],"mappings":";;;;IAMA,6FAA6F;IAC7F;;;OAGG;IACU,QAAA,WAAW,GAA+C,IAAA,kBAAM,EAI3E,kCAAe,EAAE,8BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ISankeyChartProps, ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\nimport { SankeyChartBase } from './SankeyChart.base';\nimport { getStyles } from './SankeyChart.styles';\n\n// Create a SankeyChart variant which uses these default styles and this styled subcomponent.\n/**\n * Sankeychart component.\n * {@docCategory SankeyChart}\n */\nexport const SankeyChart: React.FunctionComponent<ISankeyChartProps> = styled<\n ISankeyChartProps,\n ISankeyChartStyleProps,\n ISankeyChartStyles\n>(SankeyChartBase, getStyles);\n"]}
1
+ {"version":3,"file":"SankeyChart.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.tsx"],"names":[],"mappings":";;;;IAMA,6FAA6F;IAC7F;;;OAGG;IACU,QAAA,WAAW,GAA+C,IAAA,kBAAM,EAI3E,kCAAe,EAAE,8BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ISankeyChartProps, ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\nimport { SankeyChartBase } from './SankeyChart.base';\nimport { getStyles } from './SankeyChart.styles';\n\n// Create a SankeyChart variant which uses these default styles and this styled subcomponent.\n/**\n * Sankeychart component\n * {@docCategory SankeyChart}\n */\nexport const SankeyChart: React.FunctionComponent<ISankeyChartProps> = styled<\n ISankeyChartProps,\n ISankeyChartStyleProps,\n ISankeyChartStyles\n>(SankeyChartBase, getStyles);\n"]}