@fluentui/react-charts 1.2.0 → 9.0.1

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 (364) hide show
  1. package/CHANGELOG.md +193 -15
  2. package/LICENSE +11 -17
  3. package/README.md +174 -23
  4. package/dist/index.d.ts +2143 -0
  5. package/lib/CartesianChart.js +1 -0
  6. package/lib/CartesianChart.js.map +1 -0
  7. package/lib/DeclarativeChart.js +1 -0
  8. package/lib/DeclarativeChart.js.map +1 -0
  9. package/lib/DonutChart.js +1 -0
  10. package/lib/DonutChart.js.map +1 -0
  11. package/lib/HorizontalBarChart.js +1 -0
  12. package/lib/HorizontalBarChart.js.map +1 -0
  13. package/lib/Legends.js +1 -0
  14. package/lib/Legends.js.map +1 -0
  15. package/lib/LineChart.js +1 -0
  16. package/lib/LineChart.js.map +1 -0
  17. package/lib/Popover.js +1 -0
  18. package/lib/Popover.js.map +1 -0
  19. package/lib/ResponsiveContainer.js +1 -0
  20. package/lib/ResponsiveContainer.js.map +1 -0
  21. package/lib/Sparkline.js +1 -0
  22. package/lib/Sparkline.js.map +1 -0
  23. package/lib/VerticalBarChart.js +1 -0
  24. package/lib/VerticalBarChart.js.map +1 -0
  25. package/lib/components/CommonComponents/CartesianChart.js +462 -0
  26. package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
  27. package/lib/components/CommonComponents/CartesianChart.types.js +1 -0
  28. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
  29. package/lib/components/CommonComponents/ChartPopover.js +187 -0
  30. package/lib/components/CommonComponents/ChartPopover.js.map +1 -0
  31. package/lib/components/CommonComponents/ChartPopover.types.js +1 -0
  32. package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -0
  33. package/lib/components/CommonComponents/index.js +4 -0
  34. package/lib/components/CommonComponents/index.js.map +1 -0
  35. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +229 -0
  36. package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
  37. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +178 -0
  38. package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
  39. package/lib/components/DeclarativeChart/DeclarativeChart.js +150 -0
  40. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
  41. package/lib/components/DeclarativeChart/PlotlySchema.js +7 -0
  42. package/lib/components/DeclarativeChart/PlotlySchema.js.map +1 -0
  43. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +400 -0
  44. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
  45. package/lib/components/DeclarativeChart/imageExporter.js +221 -0
  46. package/lib/components/DeclarativeChart/imageExporter.js.map +1 -0
  47. package/lib/components/DeclarativeChart/index.js +1 -0
  48. package/lib/components/DeclarativeChart/index.js.map +1 -0
  49. package/lib/components/DonutChart/Arc/Arc.js +110 -0
  50. package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
  51. package/lib/components/DonutChart/Arc/Arc.types.js +1 -0
  52. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
  53. package/lib/components/DonutChart/Arc/index.js +2 -0
  54. package/lib/components/DonutChart/Arc/index.js.map +1 -0
  55. package/lib/components/DonutChart/Arc/useArcStyles.styles.js +54 -0
  56. package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
  57. package/lib/components/DonutChart/DonutChart.js +291 -0
  58. package/lib/components/DonutChart/DonutChart.js.map +1 -0
  59. package/lib/components/DonutChart/DonutChart.types.js +1 -0
  60. package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
  61. package/lib/components/DonutChart/Pie/Pie.js +72 -0
  62. package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
  63. package/lib/components/DonutChart/Pie/Pie.types.js +1 -0
  64. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
  65. package/lib/components/DonutChart/Pie/index.js +2 -0
  66. package/lib/components/DonutChart/Pie/index.js.map +1 -0
  67. package/lib/components/DonutChart/Pie/usePieStyles.styles.js +44 -0
  68. package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
  69. package/lib/components/DonutChart/index.js +3 -0
  70. package/lib/components/DonutChart/index.js.map +1 -0
  71. package/lib/components/DonutChart/useDonutChartStyles.styles.js +58 -0
  72. package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
  73. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +402 -0
  74. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  75. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
  76. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  77. package/lib/components/HorizontalBarChart/index.js +3 -0
  78. package/lib/components/HorizontalBarChart/index.js.map +1 -0
  79. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +163 -0
  80. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
  81. package/lib/components/Legends/Legends.js +302 -0
  82. package/lib/components/Legends/Legends.js.map +1 -0
  83. package/lib/components/Legends/Legends.types.js +1 -0
  84. package/lib/components/Legends/Legends.types.js.map +1 -0
  85. package/lib/components/Legends/OverflowMenu.js +25 -0
  86. package/lib/components/Legends/OverflowMenu.js.map +1 -0
  87. package/lib/components/Legends/index.js +3 -0
  88. package/lib/components/Legends/index.js.map +1 -0
  89. package/lib/components/Legends/shape.js +35 -0
  90. package/lib/components/Legends/shape.js.map +1 -0
  91. package/lib/components/Legends/useLegendsStyles.styles.js +147 -0
  92. package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -0
  93. package/lib/components/LineChart/LineChart.js +1026 -0
  94. package/lib/components/LineChart/LineChart.js.map +1 -0
  95. package/lib/components/LineChart/LineChart.types.js +3 -0
  96. package/lib/components/LineChart/LineChart.types.js.map +1 -0
  97. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +119 -0
  98. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  99. package/lib/components/LineChart/eventAnnotation/LabelLink.js +57 -0
  100. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  101. package/lib/components/LineChart/eventAnnotation/Textbox.js +40 -0
  102. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  103. package/lib/components/LineChart/index.js +4 -0
  104. package/lib/components/LineChart/index.js.map +1 -0
  105. package/lib/components/LineChart/useLineChartStyles.styles.js +65 -0
  106. package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -0
  107. package/lib/components/ResponsiveContainer/ResponsiveContainer.js +65 -0
  108. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
  109. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +1 -0
  110. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
  111. package/lib/components/ResponsiveContainer/index.js +1 -0
  112. package/lib/components/ResponsiveContainer/index.js.map +1 -0
  113. package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +23 -0
  114. package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
  115. package/lib/components/Sparkline/Sparkline.js +119 -0
  116. package/lib/components/Sparkline/Sparkline.js.map +1 -0
  117. package/lib/components/Sparkline/Sparkline.types.js +4 -0
  118. package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
  119. package/lib/components/Sparkline/index.js +3 -0
  120. package/lib/components/Sparkline/index.js.map +1 -0
  121. package/lib/components/Sparkline/useSparklineStyles.styles.js +49 -0
  122. package/lib/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
  123. package/lib/components/VerticalBarChart/VerticalBarChart.js +849 -0
  124. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  125. package/lib/components/VerticalBarChart/VerticalBarChart.types.js +4 -0
  126. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  127. package/lib/components/VerticalBarChart/index.js +3 -0
  128. package/lib/components/VerticalBarChart/index.js.map +1 -0
  129. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +74 -0
  130. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
  131. package/lib/index.js +12 -8
  132. package/lib/index.js.map +1 -1
  133. package/lib/types/DataPoint.js +3 -0
  134. package/lib/types/DataPoint.js.map +1 -0
  135. package/lib/types/EventAnnotation.js +1 -0
  136. package/lib/types/EventAnnotation.js.map +1 -0
  137. package/lib/types/LegendDataItem.js +1 -0
  138. package/lib/types/LegendDataItem.js.map +1 -0
  139. package/lib/types/index.js +2 -2
  140. package/lib/types/index.js.map +1 -1
  141. package/lib/utilities/FocusableTooltipText.js +65 -0
  142. package/lib/utilities/FocusableTooltipText.js.map +1 -0
  143. package/lib/utilities/KeyCodes.js +8 -0
  144. package/lib/utilities/KeyCodes.js.map +1 -0
  145. package/lib/utilities/SVGTooltipText.js +138 -0
  146. package/lib/utilities/SVGTooltipText.js.map +1 -0
  147. package/lib/utilities/async-utils.js +380 -0
  148. package/lib/utilities/async-utils.js.map +1 -0
  149. package/lib/utilities/colors.js +249 -0
  150. package/lib/utilities/colors.js.map +1 -0
  151. package/lib/utilities/getWindow.js +25 -0
  152. package/lib/utilities/getWindow.js.map +1 -0
  153. package/lib/utilities/index.js +3 -0
  154. package/lib/utilities/index.js.map +1 -0
  155. package/lib/utilities/locale-util.js +15 -0
  156. package/lib/utilities/locale-util.js.map +1 -0
  157. package/lib/utilities/overflow-utils.js +27 -0
  158. package/lib/utilities/overflow-utils.js.map +1 -0
  159. package/lib/utilities/test-data.js +276 -0
  160. package/lib/utilities/test-data.js.map +1 -0
  161. package/lib/utilities/utilities.js +1215 -0
  162. package/lib/utilities/utilities.js.map +1 -0
  163. package/lib/utilities/vbc-utils.js +27 -0
  164. package/lib/utilities/vbc-utils.js.map +1 -0
  165. package/lib-commonjs/CartesianChart.js +6 -0
  166. package/lib-commonjs/CartesianChart.js.map +1 -0
  167. package/lib-commonjs/DeclarativeChart.js +6 -0
  168. package/lib-commonjs/DeclarativeChart.js.map +1 -0
  169. package/lib-commonjs/DonutChart.js +6 -0
  170. package/lib-commonjs/DonutChart.js.map +1 -0
  171. package/lib-commonjs/HorizontalBarChart.js +6 -0
  172. package/lib-commonjs/HorizontalBarChart.js.map +1 -0
  173. package/lib-commonjs/Legends.js +6 -0
  174. package/lib-commonjs/Legends.js.map +1 -0
  175. package/lib-commonjs/LineChart.js +6 -0
  176. package/lib-commonjs/LineChart.js.map +1 -0
  177. package/lib-commonjs/Popover.js +6 -0
  178. package/lib-commonjs/Popover.js.map +1 -0
  179. package/lib-commonjs/ResponsiveContainer.js +6 -0
  180. package/lib-commonjs/ResponsiveContainer.js.map +1 -0
  181. package/lib-commonjs/Sparkline.js +6 -0
  182. package/lib-commonjs/Sparkline.js.map +1 -0
  183. package/lib-commonjs/VerticalBarChart.js +6 -0
  184. package/lib-commonjs/VerticalBarChart.js.map +1 -0
  185. package/lib-commonjs/components/CommonComponents/CartesianChart.js +469 -0
  186. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -0
  187. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +6 -0
  188. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -0
  189. package/lib-commonjs/components/CommonComponents/ChartPopover.js +197 -0
  190. package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -0
  191. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js +4 -0
  192. package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -0
  193. package/lib-commonjs/components/CommonComponents/index.js +9 -0
  194. package/lib-commonjs/components/CommonComponents/index.js.map +1 -0
  195. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +356 -0
  196. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
  197. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +261 -0
  198. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
  199. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +158 -0
  200. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
  201. package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js +10 -0
  202. package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js.map +1 -0
  203. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +445 -0
  204. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
  205. package/lib-commonjs/components/DeclarativeChart/imageExporter.js +231 -0
  206. package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -0
  207. package/lib-commonjs/components/DeclarativeChart/index.js +6 -0
  208. package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -0
  209. package/lib-commonjs/components/DonutChart/Arc/Arc.js +117 -0
  210. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -0
  211. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +4 -0
  212. package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -0
  213. package/lib-commonjs/components/DonutChart/Arc/index.js +7 -0
  214. package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -0
  215. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +83 -0
  216. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
  217. package/lib-commonjs/components/DonutChart/DonutChart.js +298 -0
  218. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -0
  219. package/lib-commonjs/components/DonutChart/DonutChart.types.js +6 -0
  220. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -0
  221. package/lib-commonjs/components/DonutChart/Pie/Pie.js +79 -0
  222. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -0
  223. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +4 -0
  224. package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -0
  225. package/lib-commonjs/components/DonutChart/Pie/index.js +7 -0
  226. package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -0
  227. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +61 -0
  228. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
  229. package/lib-commonjs/components/DonutChart/index.js +8 -0
  230. package/lib-commonjs/components/DonutChart/index.js.map +1 -0
  231. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +82 -0
  232. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
  233. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +408 -0
  234. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  235. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +17 -0
  236. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  237. package/lib-commonjs/components/HorizontalBarChart/index.js +8 -0
  238. package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -0
  239. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +251 -0
  240. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
  241. package/lib-commonjs/components/Legends/Legends.js +313 -0
  242. package/lib-commonjs/components/Legends/Legends.js.map +1 -0
  243. package/lib-commonjs/components/Legends/Legends.types.js +6 -0
  244. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -0
  245. package/lib-commonjs/components/Legends/OverflowMenu.js +36 -0
  246. package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -0
  247. package/lib-commonjs/components/Legends/index.js +8 -0
  248. package/lib-commonjs/components/Legends/index.js.map +1 -0
  249. package/lib-commonjs/components/Legends/shape.js +46 -0
  250. package/lib-commonjs/components/Legends/shape.js.map +1 -0
  251. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +304 -0
  252. package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -0
  253. package/lib-commonjs/components/LineChart/LineChart.js +1032 -0
  254. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -0
  255. package/lib-commonjs/components/LineChart/LineChart.types.js +6 -0
  256. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -0
  257. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +129 -0
  258. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  259. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +68 -0
  260. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  261. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +51 -0
  262. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  263. package/lib-commonjs/components/LineChart/index.js +9 -0
  264. package/lib-commonjs/components/LineChart/index.js.map +1 -0
  265. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +96 -0
  266. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -0
  267. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js +76 -0
  268. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
  269. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +6 -0
  270. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
  271. package/lib-commonjs/components/ResponsiveContainer/index.js +6 -0
  272. package/lib-commonjs/components/ResponsiveContainer/index.js.map +1 -0
  273. package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +47 -0
  274. package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
  275. package/lib-commonjs/components/Sparkline/Sparkline.js +125 -0
  276. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -0
  277. package/lib-commonjs/components/Sparkline/Sparkline.types.js +7 -0
  278. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -0
  279. package/lib-commonjs/components/Sparkline/index.js +8 -0
  280. package/lib-commonjs/components/Sparkline/index.js.map +1 -0
  281. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +77 -0
  282. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
  283. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +851 -0
  284. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  285. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +7 -0
  286. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  287. package/lib-commonjs/components/VerticalBarChart/index.js +8 -0
  288. package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -0
  289. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +117 -0
  290. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
  291. package/lib-commonjs/index.js +17 -0
  292. package/lib-commonjs/index.js.map +1 -0
  293. package/lib-commonjs/types/DataPoint.js +6 -0
  294. package/lib-commonjs/types/DataPoint.js.map +1 -0
  295. package/lib-commonjs/types/EventAnnotation.js +6 -0
  296. package/lib-commonjs/types/EventAnnotation.js.map +1 -0
  297. package/lib-commonjs/types/LegendDataItem.js +4 -0
  298. package/lib-commonjs/types/LegendDataItem.js.map +1 -0
  299. package/lib-commonjs/types/index.js +7 -0
  300. package/lib-commonjs/types/index.js.map +1 -0
  301. package/lib-commonjs/utilities/FocusableTooltipText.js +75 -0
  302. package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -0
  303. package/lib-commonjs/utilities/KeyCodes.js +18 -0
  304. package/lib-commonjs/utilities/KeyCodes.js.map +1 -0
  305. package/lib-commonjs/utilities/SVGTooltipText.js +148 -0
  306. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -0
  307. package/lib-commonjs/utilities/async-utils.js +382 -0
  308. package/lib-commonjs/utilities/async-utils.js.map +1 -0
  309. package/lib-commonjs/utilities/colors.js +270 -0
  310. package/lib-commonjs/utilities/colors.js.map +1 -0
  311. package/lib-commonjs/utilities/getWindow.js +28 -0
  312. package/lib-commonjs/utilities/getWindow.js.map +1 -0
  313. package/lib-commonjs/utilities/index.js +8 -0
  314. package/lib-commonjs/utilities/index.js.map +1 -0
  315. package/lib-commonjs/utilities/locale-util.js +25 -0
  316. package/lib-commonjs/utilities/locale-util.js.map +1 -0
  317. package/lib-commonjs/utilities/overflow-utils.js +36 -0
  318. package/lib-commonjs/utilities/overflow-utils.js.map +1 -0
  319. package/lib-commonjs/utilities/test-data.js +324 -0
  320. package/lib-commonjs/utilities/test-data.js.map +1 -0
  321. package/lib-commonjs/utilities/utilities.js +1184 -0
  322. package/lib-commonjs/utilities/utilities.js.map +1 -0
  323. package/lib-commonjs/utilities/vbc-utils.js +45 -0
  324. package/lib-commonjs/utilities/vbc-utils.js.map +1 -0
  325. package/package.json +80 -72
  326. package/CHANGELOG.json +0 -65
  327. package/lib/chart/chart-legend.d.ts +0 -6
  328. package/lib/chart/chart-legend.js +0 -445
  329. package/lib/chart/chart-legend.js.map +0 -1
  330. package/lib/chart/chart-render.d.ts +0 -3
  331. package/lib/chart/chart-render.js +0 -50
  332. package/lib/chart/chart-render.js.map +0 -1
  333. package/lib/chart/chart.d.ts +0 -3
  334. package/lib/chart/chart.js +0 -10
  335. package/lib/chart/chart.js.map +0 -1
  336. package/lib/chart/index.d.ts +0 -1
  337. package/lib/chart/index.js +0 -2
  338. package/lib/chart/index.js.map +0 -1
  339. package/lib/index.d.ts +0 -7
  340. package/lib/lib/builder.d.ts +0 -89
  341. package/lib/lib/builder.js +0 -379
  342. package/lib/lib/builder.js.map +0 -1
  343. package/lib/lib/datasets.d.ts +0 -123
  344. package/lib/lib/datasets.js +0 -285
  345. package/lib/lib/datasets.js.map +0 -1
  346. package/lib/lib/patterns.d.ts +0 -43
  347. package/lib/lib/patterns.js +0 -433
  348. package/lib/lib/patterns.js.map +0 -1
  349. package/lib/lib/plugins.d.ts +0 -11
  350. package/lib/lib/plugins.js +0 -403
  351. package/lib/lib/plugins.js.map +0 -1
  352. package/lib/lib/settings.d.ts +0 -12
  353. package/lib/lib/settings.js +0 -368
  354. package/lib/lib/settings.js.map +0 -1
  355. package/lib/lib/storybook.d.ts +0 -11
  356. package/lib/lib/storybook.js +0 -13
  357. package/lib/lib/storybook.js.map +0 -1
  358. package/lib/lib/utils.d.ts +0 -34
  359. package/lib/lib/utils.js +0 -253
  360. package/lib/lib/utils.js.map +0 -1
  361. package/lib/types/index.d.ts +0 -1
  362. package/lib/types/types.d.ts +0 -101
  363. package/lib/types/types.js +0 -41
  364. package/lib/types/types.js.map +0 -1
@@ -1,445 +0,0 @@
1
- import React, { useState } from "react";
2
- import { ChartTypes, HighContrastColors, } from "../types";
3
- import { HALF_PI, PI, QUARTER_PI, TWO_THIRDS_PI } from "../lib/utils";
4
- export var ChartLegend = function (_a) {
5
- var config = _a.config, onClick = _a.onClick;
6
- return (React.createElement("div", { style: {
7
- display: "flex",
8
- fontFamily: "Segoe UI, system-ui, sans-serif",
9
- fontSize: 11,
10
- margin: "20px -2px 0",
11
- overflow: "hidden",
12
- } }, config.data.datasets.map(function (item, index) { return (React.createElement(LegendItem, { id: index, key: index, label: String(item), dataset: config.data.datasets[index], onClick: onClick, highContrast: config.options.highContrastMode })); })));
13
- };
14
- var LegendItem = function (_a) {
15
- var id = _a.id, label = _a.label, dataset = _a.dataset, highContrast = _a.highContrast, onClick = _a.onClick;
16
- var _b = useState(false), selected = _b[0], setSelected = _b[1];
17
- var legendItemRef = React.useRef(null);
18
- React.useEffect(function () {
19
- if (!legendItemRef.current)
20
- return;
21
- }, []);
22
- var style = {
23
- display: "flex",
24
- margin: "0 10px",
25
- cursor: "pointer",
26
- transition: "opacity ease-out .3s",
27
- };
28
- if (selected) {
29
- style.opacity = 0.5;
30
- }
31
- if (highContrast) {
32
- style.color = selected
33
- ? HighContrastColors.Disabled
34
- : HighContrastColors.Foreground;
35
- }
36
- return (React.createElement("div", { ref: legendItemRef, style: style, onClick: function () {
37
- onClick(id), setSelected(!selected);
38
- } },
39
- React.createElement(LegendItemColor, { dataset: dataset, highContrast: highContrast, selected: selected }),
40
- dataset.label));
41
- };
42
- function elementInViewport(element) {
43
- var top = element.offsetTop;
44
- var left = element.offsetLeft;
45
- var width = element.offsetWidth;
46
- var height = element.offsetHeight;
47
- while (element.offsetParent) {
48
- element = element.offsetParent;
49
- top += element.offsetTop;
50
- left += element.offsetLeft;
51
- }
52
- return (top >= window.pageYOffset &&
53
- left >= window.pageXOffset &&
54
- top + height <= window.pageYOffset + window.innerHeight &&
55
- left + width <= window.pageXOffset + window.innerWidth);
56
- }
57
- var LegendItemColor = function (_a) {
58
- var dataset = _a.dataset, selected = _a.selected, highContrast = _a.highContrast;
59
- var labelColorValueRef = React.useRef(null);
60
- React.useEffect(function () {
61
- if (!labelColorValueRef.current)
62
- return;
63
- var canvasRef = labelColorValueRef.current;
64
- createLegendItemCanvas({ canvas: canvasRef, dataset: dataset, highContrast: highContrast });
65
- }, []);
66
- return (React.createElement("canvas", { ref: labelColorValueRef, tabIndex: 0, style: highContrast
67
- ? {
68
- width: "1.5rem",
69
- minWidth: "1.25rem",
70
- height: "1rem",
71
- minHeight: "1rem",
72
- marginRight: ".4rem",
73
- borderRadius: "2px",
74
- userSelect: "none",
75
- }
76
- : {
77
- width: ".7rem",
78
- minWidth: ".7rem",
79
- height: ".7rem",
80
- minHeight: ".7rem",
81
- marginBottom: "-1px",
82
- marginRight: ".4rem",
83
- borderRadius: "2px",
84
- userSelect: "none",
85
- } }));
86
- };
87
- function createLegendItemCanvas(_a) {
88
- var canvas = _a.canvas, dataset = _a.dataset, highContrast = _a.highContrast;
89
- if (!canvas)
90
- return;
91
- var ctx = canvas.getContext("2d");
92
- if (!ctx)
93
- return;
94
- ctx.save();
95
- ctx.scale(10, 8);
96
- if (!dataset.borderDash) {
97
- ctx.fillStyle = (dataset.backgroundColor === "transparent" ||
98
- dataset.backgroundColor === "rgba(0,0,0,0)"
99
- ? dataset.borderColor
100
- : dataset.backgroundColor);
101
- ctx.fillRect(0, 0, canvas.width, canvas.height);
102
- }
103
- if (highContrast) {
104
- ctx.strokeStyle = HighContrastColors.Foreground;
105
- ctx.lineWidth = dataset.borderWidth;
106
- ctx.strokeRect(0, 0, 30, 19);
107
- }
108
- if (dataset.type === ChartTypes.Line && dataset.borderDash) {
109
- if (highContrast) {
110
- var x = 22;
111
- var y = 10;
112
- ctx.strokeStyle = HighContrastColors.Background;
113
- ctx.lineWidth = dataset.borderWidth;
114
- ctx.strokeRect(0, 0, 30, 18);
115
- // Line
116
- ctx.beginPath();
117
- ctx.moveTo(-10, y);
118
- ctx.lineTo(18, y);
119
- ctx.setLineDash(dataset.borderDash);
120
- ctx.lineWidth = dataset.borderWidth || 4;
121
- ctx.strokeStyle = HighContrastColors.Foreground;
122
- ctx.stroke();
123
- // Point
124
- var pointStyle = dataset.pointStyle;
125
- if (pointStyle) {
126
- var radius = 6;
127
- var rotation = 0;
128
- var xOffset = 0;
129
- var yOffset = 0;
130
- var cornerRadius = 1;
131
- var size = 5;
132
- var rad = 0;
133
- ctx.beginPath();
134
- ctx.setLineDash([]);
135
- switch (pointStyle) {
136
- // Default includes circle
137
- default:
138
- ctx.arc(x, y, radius * 0.85, 0, Math.PI * 2, true);
139
- ctx.closePath();
140
- break;
141
- case "triangle":
142
- ctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
143
- rad += TWO_THIRDS_PI;
144
- ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
145
- rad += TWO_THIRDS_PI;
146
- ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
147
- ctx.closePath();
148
- break;
149
- case "rectRounded":
150
- cornerRadius = radius * 0.516;
151
- size = radius - cornerRadius;
152
- xOffset = Math.cos(rad + QUARTER_PI) * size;
153
- yOffset = Math.sin(rad + QUARTER_PI) * size;
154
- ctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI);
155
- ctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad);
156
- ctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI);
157
- ctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI);
158
- ctx.closePath();
159
- break;
160
- case "rect":
161
- if (!rotation) {
162
- size = Math.SQRT1_2 * radius;
163
- ctx.rect(x - size, y - size, 2 * size, 2 * size);
164
- break;
165
- }
166
- rad += QUARTER_PI;
167
- /* falls through */
168
- case "rectRot":
169
- xOffset = Math.cos(rad) * radius;
170
- yOffset = Math.sin(rad) * radius;
171
- ctx.moveTo(x - xOffset, y - yOffset);
172
- ctx.lineTo(x + yOffset, y - xOffset);
173
- ctx.lineTo(x + xOffset, y + yOffset);
174
- ctx.lineTo(x - yOffset, y + xOffset);
175
- ctx.closePath();
176
- break;
177
- case "crossRot":
178
- rad += QUARTER_PI;
179
- /* falls through */
180
- case "cross":
181
- xOffset = Math.cos(rad) * radius;
182
- yOffset = Math.sin(rad) * radius;
183
- ctx.moveTo(x - xOffset, y - yOffset);
184
- ctx.lineTo(x + xOffset, y + yOffset);
185
- ctx.moveTo(x + yOffset, y - xOffset);
186
- ctx.lineTo(x - yOffset, y + xOffset);
187
- break;
188
- case "star":
189
- xOffset = Math.cos(rad) * radius;
190
- yOffset = Math.sin(rad) * radius;
191
- ctx.moveTo(x - xOffset, y - yOffset);
192
- ctx.lineTo(x + xOffset, y + yOffset);
193
- ctx.moveTo(x + yOffset, y - xOffset);
194
- ctx.lineTo(x - yOffset, y + xOffset);
195
- rad += QUARTER_PI;
196
- xOffset = Math.cos(rad) * radius;
197
- yOffset = Math.sin(rad) * radius;
198
- ctx.moveTo(x - xOffset, y - yOffset);
199
- ctx.lineTo(x + xOffset, y + yOffset);
200
- ctx.moveTo(x + yOffset, y - xOffset);
201
- ctx.lineTo(x - yOffset, y + xOffset);
202
- break;
203
- case "line":
204
- xOffset = Math.cos(rad) * radius;
205
- yOffset = Math.sin(rad) * radius;
206
- ctx.moveTo(x - xOffset, y - yOffset);
207
- ctx.lineTo(x + xOffset, y + yOffset);
208
- break;
209
- case "dash":
210
- ctx.moveTo(x, y);
211
- ctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius);
212
- break;
213
- }
214
- ctx.lineWidth = 1;
215
- ctx.fillStyle = HighContrastColors.Foreground;
216
- ctx.strokeStyle = HighContrastColors.Foreground;
217
- ctx.closePath();
218
- ctx.fill();
219
- ctx.stroke();
220
- ctx.restore();
221
- }
222
- }
223
- else {
224
- ctx.fillStyle = dataset.borderColor;
225
- ctx.fillRect(0, 0, canvas.width, canvas.height);
226
- }
227
- }
228
- // switch (dataset.type) {
229
- // case ChartTypes.Line:
230
- // if (highContrast) {
231
- // const x = 22;
232
- // const y = 10;
233
- // // Line
234
- // ctx.beginPath();
235
- // ctx.moveTo(-10, y);
236
- // ctx.lineTo(18, y);
237
- // ctx.setLineDash(dataset.borderDash!);
238
- // ctx.lineWidth = (dataset.borderWidth as number) || 4;
239
- // ctx.strokeStyle = HighContrastColors.Foreground;
240
- // ctx.stroke();
241
- // // Point
242
- // const pointStyle = dataset.pointStyle;
243
- // if (pointStyle) {
244
- // const radius = 6;
245
- // const rotation = 0;
246
- // let xOffset = 0;
247
- // let yOffset = 0;
248
- // let cornerRadius = 1;
249
- // let size = 5;
250
- // let rad = 0;
251
- // ctx.beginPath();
252
- // ctx.setLineDash([]);
253
- // switch (pointStyle) {
254
- // // Default includes circle
255
- // default:
256
- // ctx.arc(x, y, radius * 0.85, 0, Math.PI * 2, true);
257
- // ctx.closePath();
258
- // break;
259
- // case "triangle":
260
- // ctx.moveTo(
261
- // x + Math.sin(rad) * radius,
262
- // y - Math.cos(rad) * radius
263
- // );
264
- // rad += TWO_THIRDS_PI;
265
- // ctx.lineTo(
266
- // x + Math.sin(rad) * radius,
267
- // y - Math.cos(rad) * radius
268
- // );
269
- // rad += TWO_THIRDS_PI;
270
- // ctx.lineTo(
271
- // x + Math.sin(rad) * radius,
272
- // y - Math.cos(rad) * radius
273
- // );
274
- // ctx.closePath();
275
- // break;
276
- // case "rectRounded":
277
- // cornerRadius = radius * 0.516;
278
- // size = radius - cornerRadius;
279
- // xOffset = Math.cos(rad + QUARTER_PI) * size;
280
- // yOffset = Math.sin(rad + QUARTER_PI) * size;
281
- // ctx.arc(
282
- // x - xOffset,
283
- // y - yOffset,
284
- // cornerRadius,
285
- // rad - PI,
286
- // rad - HALF_PI
287
- // );
288
- // ctx.arc(
289
- // x + yOffset,
290
- // y - xOffset,
291
- // cornerRadius,
292
- // rad - HALF_PI,
293
- // rad
294
- // );
295
- // ctx.arc(
296
- // x + xOffset,
297
- // y + yOffset,
298
- // cornerRadius,
299
- // rad,
300
- // rad + HALF_PI
301
- // );
302
- // ctx.arc(
303
- // x - yOffset,
304
- // y + xOffset,
305
- // cornerRadius,
306
- // rad + HALF_PI,
307
- // rad + PI
308
- // );
309
- // ctx.closePath();
310
- // break;
311
- // case "rect":
312
- // if (!rotation) {
313
- // size = Math.SQRT1_2 * radius;
314
- // ctx.rect(x - size, y - size, 2 * size, 2 * size);
315
- // break;
316
- // }
317
- // rad += QUARTER_PI;
318
- // /* falls through */
319
- // case "rectRot":
320
- // xOffset = Math.cos(rad) * radius;
321
- // yOffset = Math.sin(rad) * radius;
322
- // ctx.moveTo(x - xOffset, y - yOffset);
323
- // ctx.lineTo(x + yOffset, y - xOffset);
324
- // ctx.lineTo(x + xOffset, y + yOffset);
325
- // ctx.lineTo(x - yOffset, y + xOffset);
326
- // ctx.closePath();
327
- // break;
328
- // case "crossRot":
329
- // rad += QUARTER_PI;
330
- // /* falls through */
331
- // case "cross":
332
- // xOffset = Math.cos(rad) * radius;
333
- // yOffset = Math.sin(rad) * radius;
334
- // ctx.moveTo(x - xOffset, y - yOffset);
335
- // ctx.lineTo(x + xOffset, y + yOffset);
336
- // ctx.moveTo(x + yOffset, y - xOffset);
337
- // ctx.lineTo(x - yOffset, y + xOffset);
338
- // break;
339
- // case "star":
340
- // xOffset = Math.cos(rad) * radius;
341
- // yOffset = Math.sin(rad) * radius;
342
- // ctx.moveTo(x - xOffset, y - yOffset);
343
- // ctx.lineTo(x + xOffset, y + yOffset);
344
- // ctx.moveTo(x + yOffset, y - xOffset);
345
- // ctx.lineTo(x - yOffset, y + xOffset);
346
- // rad += QUARTER_PI;
347
- // xOffset = Math.cos(rad) * radius;
348
- // yOffset = Math.sin(rad) * radius;
349
- // ctx.moveTo(x - xOffset, y - yOffset);
350
- // ctx.lineTo(x + xOffset, y + yOffset);
351
- // ctx.moveTo(x + yOffset, y - xOffset);
352
- // ctx.lineTo(x - yOffset, y + xOffset);
353
- // break;
354
- // case "line":
355
- // xOffset = Math.cos(rad) * radius;
356
- // yOffset = Math.sin(rad) * radius;
357
- // ctx.moveTo(x - xOffset, y - yOffset);
358
- // ctx.lineTo(x + xOffset, y + yOffset);
359
- // break;
360
- // case "dash":
361
- // ctx.moveTo(x, y);
362
- // ctx.lineTo(
363
- // x + Math.cos(rad) * radius,
364
- // y + Math.sin(rad) * radius
365
- // );
366
- // break;
367
- // }
368
- // ctx.lineWidth = 1;
369
- // ctx.fillStyle = HighContrastColors.Foreground;
370
- // ctx.strokeStyle = HighContrastColors.Foreground;
371
- // ctx.closePath();
372
- // ctx.fill();
373
- // ctx.stroke();
374
- // ctx.restore();
375
- // }
376
- // } else {
377
- // ctx.fillStyle = dataset.borderColor as string;
378
- // ctx.fillRect(0, 0, canvas.width, canvas.height);
379
- // }
380
- // break;
381
- // default:
382
- // ctx.fillStyle = dataset.backgroundColor as string;
383
- // ctx.fillRect(0, 0, canvas.width, canvas.height);
384
- // if (highContrast) {
385
- // ctx.strokeStyle = HighContrastColors.Foreground;
386
- // ctx.lineWidth = dataset.borderWidth as number;
387
- // ctx.strokeRect(0, 0, 30, 18);
388
- // }
389
- // break;
390
- // }
391
- // ctx.fillRect(0, 0, canvas.width, canvas.height);
392
- // if (theme === TeamsTheme.HighContrast) {
393
- // if (patterns) {
394
- // ctx.setTransform(1.4, 0, 0, 1, 0, 0);
395
- // ctx.scale(12, 10);
396
- // (ctx.fillStyle as any) = buildPattern({
397
- // ...patterns(colorScheme)[index],
398
- // backgroundColor: colorScheme.default.background,
399
- // patternColor: colorScheme.brand.background,
400
- // });
401
- // ctx.fillRect(-15, -15, canvasRef.width, canvasRef.height);
402
- // ctx.restore();
403
- // } else {
404
- // ctx.scale(15, 15);
405
- // ctx.fillStyle = colorScheme.brand.shadow;
406
- // ctx.fillRect(-15, -15, canvasRef.width, canvasRef.height);
407
- // ctx.fillStyle = colorScheme.default.foreground3;
408
- // switch (lineChartPatterns[index].pointStyle) {
409
- // case PointStyles.Triangle:
410
- // ctx.moveTo(9.5, 2.5);
411
- // ctx.lineTo(5.5, 7.5);
412
- // ctx.lineTo(13.5, 7.5);
413
- // break;
414
- // case PointStyles.Rectangle:
415
- // ctx.rect(6.5, 2.5, 8, 5);
416
- // break;
417
- // case PointStyles.RectangleRotated:
418
- // ctx.moveTo(10, 2);
419
- // ctx.lineTo(14.5, 5);
420
- // ctx.lineTo(10, 8);
421
- // ctx.lineTo(5.5, 5);
422
- // break;
423
- // case PointStyles.Circle:
424
- // default:
425
- // ctx.ellipse(10, 5, 3.5, 2.5, 0, 0, 2 * Math.PI);
426
- // break;
427
- // }
428
- // ctx.fill();
429
- // // Line Style
430
- // ctx.strokeStyle = colorScheme.default.foreground3;
431
- // ctx.beginPath();
432
- // ctx.setLineDash(
433
- // lineChartPatterns[index].lineBorderDash.length ? [2, 2] : []
434
- // );
435
- // ctx.moveTo(-1.5, 5);
436
- // ctx.lineTo(20, 5);
437
- // ctx.stroke();
438
- // ctx.restore();
439
- // }
440
- // } else {
441
- // ctx.fillStyle = dataPointColor;
442
- // ctx.fillRect(0, 0, canvasRef.width, canvasRef.height);
443
- // }
444
- }
445
- //# sourceMappingURL=chart-legend.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart-legend.js","sourceRoot":"","sources":["../../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C;IACzC,yDAAyD;IACzD,oDAAoD;IACpD,UAAU;IACV,iEAAiE;IACjE,qBAAqB;IACrB,aAAa;IACb,yBAAyB;IACzB,gDAAgD;IAChD,iEAAiE;IACjE,uDAAuD;IACvD,qDAAqD;IACrD,mCAAmC;IACnC,gCAAgC;IAChC,gCAAgC;IAChC,iCAAiC;IACjC,iBAAiB;IACjB,oCAAoC;IACpC,oCAAoC;IACpC,iBAAiB;IACjB,2CAA2C;IAC3C,6BAA6B;IAC7B,+BAA+B;IAC/B,6BAA6B;IAC7B,8BAA8B;IAC9B,iBAAiB;IACjB,iCAAiC;IACjC,iBAAiB;IACjB,2DAA2D;IAC3D,iBAAiB;IACjB,QAAQ;IACR,kBAAkB;IAElB,oBAAoB;IACpB,yDAAyD;IACzD,uBAAuB;IACvB,uBAAuB;IACvB,qEAAqE;IACrE,SAAS;IACT,2BAA2B;IAC3B,yBAAyB;IACzB,oBAAoB;IACpB,qBAAqB;IACrB,MAAM;IACN,WAAW;IACX,oCAAoC;IACpC,2DAA2D;IAC3D,IAAI;AACN,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IChart } from "../types";
3
- export declare const ChartRender: (config: IChart) => JSX.Element;
@@ -1,50 +0,0 @@
1
- import { __assign } from "tslib";
2
- import React, { useEffect } from "react";
3
- import Chart from "chart.js";
4
- import { ChartLegend } from "./chart-legend";
5
- export var ChartRender = function (config) {
6
- var data = config.data, options = config.options, canvasProps = config.canvasProps;
7
- var canvasRef = React.useRef(null);
8
- var chartRef = React.useRef();
9
- var chartId = React.useMemo(function () { return Math.random().toString(36).substr(2, 9); }, []);
10
- useEffect(function () {
11
- if (!canvasRef.current)
12
- return;
13
- var ctx = canvasRef.current.getContext("2d");
14
- if (!ctx)
15
- return;
16
- // Chart Init
17
- chartRef.current = new Chart(ctx, __assign({}, config));
18
- }, []);
19
- function onLegendItemClick(index) {
20
- if (!chartRef.current)
21
- return;
22
- var ci = chartRef.current.chart;
23
- var meta = ci.getDatasetMeta(index);
24
- // See controller.isDatasetVisible comment
25
- meta.hidden = meta.hidden === null ? !ci.data.datasets[index].hidden : null;
26
- // We hid a dataset ... rerender the chart
27
- ci.update();
28
- }
29
- return (React.createElement("div", { style: {
30
- display: "flex",
31
- flexDirection: "column",
32
- height: "100%",
33
- flexGrow: 1,
34
- } },
35
- React.createElement("div", { style: { flexGrow: 1 } },
36
- React.createElement("canvas", __assign({ id: chartId, ref: canvasRef, tabIndex: 0, style: {
37
- userSelect: "none",
38
- }, "aria-label": config.areaLabel }, canvasProps), data.datasets.map(function (set, setKey) {
39
- return set.data.forEach(function (item, itemKey) { return (
40
- // Generated tooltips for screen readers
41
- React.createElement("div", { key: itemKey, id: chartId + "-tooltip-" + setKey + "-" + itemKey },
42
- React.createElement("p", null, item),
43
- React.createElement("span", null,
44
- set.label,
45
- ": ",
46
- set.data[itemKey]))); });
47
- }))),
48
- data && options.legend.custom && (React.createElement(ChartLegend, { config: config, onClick: onLegendItemClick }))));
49
- };
50
- //# sourceMappingURL=chart-render.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart-render.js","sourceRoot":"","sources":["../../src/chart/chart-render.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,MAAc;IAChC,IAAA,IAAI,GAA2B,MAAM,KAAjC,EAAE,OAAO,GAAkB,MAAM,QAAxB,EAAE,WAAW,GAAK,MAAM,YAAX,CAAY;IAE9C,IAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAA2B,IAAI,CAAC,CAAC;IAC/D,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,EAAqB,CAAC;IACnD,IAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAC3B,cAAM,OAAA,IA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AAM,CAAC,SAAS,IACxB,WAAW,GAEd,IAAK,CAAC,QAAS,CAAC,GAAG,CAAC,UAAC,GAAG,EAAE,MAAM;gBAC/B,OAAC,GAAG,CAAC,IAAkB,CAAC,OAAO,CAAC,UAAC,IAAY,EAAE,OAAe,IAAK,OAAA;gBACjE,wCAAwC;gBACxC,6BAAK,GAAG,EAAE,OAAO,EAAE,EAAE,EAAK,OAAO,iBAAY,MAAM,SAAI,OAAS;oBAC9D,+BAAI,IAAI,CAAK;oBACb;wBACG,GAAG,CAAC,KAAK;;wBAAI,GAAI,CAAC,IAAK,CAAC,OAAO,CAAC,CAC5B,CACH,CACP,EARkE,CAQlE,CAAC;YARF,CAQE,CACH,CACM,CACL;QACL,IAAI,IAAK,OAAe,CAAC,MAAM,CAAC,MAAM,IAAI,CACzC,oBAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAI,CAC5D,CACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IChart } from "../types";
3
- export declare function ChartContainer(config: IChart): JSX.Element;
@@ -1,10 +0,0 @@
1
- import { __assign } from "tslib";
2
- import React from "react";
3
- import Chart from "chart.js";
4
- import { ChartRender } from "./chart-render";
5
- Chart.defaults.global.legend.display = false;
6
- Chart.defaults.global.defaultFontFamily = "Segoe UI, system-ui, sans-serif";
7
- export function ChartContainer(config) {
8
- return React.createElement(ChartRender, __assign({}, config));
9
- }
10
- //# sourceMappingURL=chart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart.js","sourceRoot":"","sources":["../../src/chart/chart.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE5C,KAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC;AACrD,KAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,iBAAiB,GAAG,iCAAiC,CAAC;AAErF,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,OAAO,oBAAC,WAAW,eAAK,MAAM,EAAI,CAAC;AACrC,CAAC"}
@@ -1 +0,0 @@
1
- export { ChartContainer as Chart } from "./chart";
@@ -1,2 +0,0 @@
1
- export { ChartContainer as Chart } from "./chart";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
package/lib/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export { Chart } from "./chart";
2
- export * from "./types";
3
- export * from "./lib/datasets";
4
- export * from "./lib/patterns";
5
- export * from "./lib/plugins";
6
- export * from "./lib/settings";
7
- export * from "./lib/utils";
@@ -1,89 +0,0 @@
1
- import { PluginServiceRegistrationOptions } from "chart.js";
2
- import { ChartTypes, Entity, IChartConfig, IChartData, IChartOptions, ILineChartDataHighContrast, ILinePreSetupConfigHighContrast, IPreSetupConfig, IPreSetupConfigHighContrast } from "../types";
3
- export declare class ChartBuilder extends Entity {
4
- type?: ChartTypes;
5
- data: IChartData;
6
- areaLabel: string;
7
- options: IChartOptions;
8
- plugins: PluginServiceRegistrationOptions[];
9
- constructor(fields: IChartConfig);
10
- }
11
- export declare class LineChart extends ChartBuilder {
12
- type: ChartTypes;
13
- constructor(fields: IPreSetupConfig);
14
- }
15
- export declare class TrendLineChart extends ChartBuilder {
16
- type: ChartTypes;
17
- constructor(fields: IPreSetupConfig);
18
- }
19
- export declare class TrendLineChartHighContrast extends TrendLineChart {
20
- constructor(fields: ILinePreSetupConfigHighContrast);
21
- }
22
- export declare class BarChart extends ChartBuilder {
23
- type: ChartTypes;
24
- constructor(fields: IPreSetupConfig);
25
- }
26
- export declare class PieChart extends ChartBuilder {
27
- type: ChartTypes;
28
- constructor(fields: IPreSetupConfig);
29
- }
30
- export declare class DoughnutChart extends PieChart {
31
- type: ChartTypes;
32
- constructor(fields: IPreSetupConfig);
33
- }
34
- export declare class GroupedBarChart extends BarChart {
35
- constructor(fields: IPreSetupConfig);
36
- }
37
- export declare class StackedBarChart extends ChartBuilder {
38
- type: ChartTypes;
39
- constructor(fields: IPreSetupConfig);
40
- }
41
- export declare class HorizontalBarChart extends ChartBuilder {
42
- type: ChartTypes;
43
- constructor(fields: IPreSetupConfig);
44
- }
45
- export declare class AreaChart extends LineChart {
46
- constructor(fields: IPreSetupConfig);
47
- }
48
- export declare class LineStackedChart extends ChartBuilder {
49
- type: ChartTypes;
50
- constructor(fields: IPreSetupConfig);
51
- }
52
- /**
53
- * HighContrast Chart Options
54
- */
55
- export declare class HorizontalBarChartHighContrast extends ChartBuilder {
56
- type: ChartTypes;
57
- constructor(fields: IPreSetupConfigHighContrast);
58
- }
59
- export declare class StackedBarChartHighContrast extends ChartBuilder {
60
- type: ChartTypes;
61
- constructor(fields: IPreSetupConfigHighContrast);
62
- }
63
- export declare class LineStackedChartHighContrast extends ChartBuilder {
64
- type: ChartTypes;
65
- constructor(fields: IPreSetupConfigHighContrast);
66
- }
67
- export declare class PieChartHighContrast extends PieChart {
68
- type: ChartTypes;
69
- constructor(fields: IPreSetupConfigHighContrast);
70
- }
71
- export declare class DoughnutChartHighContrast extends DoughnutChart {
72
- type: ChartTypes;
73
- constructor(fields: IPreSetupConfigHighContrast);
74
- }
75
- export declare class LineChartHighContrast extends ChartBuilder {
76
- type: ChartTypes;
77
- data: ILineChartDataHighContrast;
78
- constructor(fields: ILinePreSetupConfigHighContrast);
79
- }
80
- export declare class AreaChartHighContrast extends LineChartHighContrast {
81
- constructor(fields: ILinePreSetupConfigHighContrast);
82
- }
83
- export declare class BarChartHighContrast extends ChartBuilder {
84
- type: ChartTypes;
85
- constructor(fields: IPreSetupConfigHighContrast);
86
- }
87
- export declare class GroupedBarChartHighContrast extends BarChartHighContrast {
88
- constructor(fields: IPreSetupConfigHighContrast);
89
- }