@fluentui/react-charts 1.1.0 → 9.0.0

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 +181 -11
  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 -71
  326. package/CHANGELOG.json +0 -50
  327. package/lib/chart/chart-legend.d.ts +0 -6
  328. package/lib/chart/chart-legend.js +0 -446
  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 -11
  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 -82
  341. package/lib/lib/builder.js +0 -341
  342. package/lib/lib/builder.js.map +0 -1
  343. package/lib/lib/datasets.d.ts +0 -99
  344. package/lib/lib/datasets.js +0 -240
  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 -11
  353. package/lib/lib/settings.js +0 -342
  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 -94
  363. package/lib/types/types.js +0 -41
  364. package/lib/types/types.js.map +0 -1
@@ -1,446 +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
- console.log(elementInViewport(legendItemRef.current));
22
- }, []);
23
- var style = {
24
- display: "flex",
25
- margin: "0 10px",
26
- cursor: "pointer",
27
- transition: "opacity ease-out .3s",
28
- };
29
- if (selected) {
30
- style.opacity = 0.5;
31
- }
32
- if (highContrast) {
33
- style.color = selected
34
- ? HighContrastColors.Disabled
35
- : HighContrastColors.Foreground;
36
- }
37
- return (React.createElement("div", { ref: legendItemRef, style: style, onClick: function () {
38
- onClick(id), setSelected(!selected);
39
- } },
40
- React.createElement(LegendItemColor, { dataset: dataset, highContrast: highContrast, selected: selected }),
41
- dataset.label));
42
- };
43
- function elementInViewport(element) {
44
- var top = element.offsetTop;
45
- var left = element.offsetLeft;
46
- var width = element.offsetWidth;
47
- var height = element.offsetHeight;
48
- while (element.offsetParent) {
49
- element = element.offsetParent;
50
- top += element.offsetTop;
51
- left += element.offsetLeft;
52
- }
53
- return (top >= window.pageYOffset &&
54
- left >= window.pageXOffset &&
55
- top + height <= window.pageYOffset + window.innerHeight &&
56
- left + width <= window.pageXOffset + window.innerWidth);
57
- }
58
- var LegendItemColor = function (_a) {
59
- var dataset = _a.dataset, selected = _a.selected, highContrast = _a.highContrast;
60
- var labelColorValueRef = React.useRef(null);
61
- React.useEffect(function () {
62
- if (!labelColorValueRef.current)
63
- return;
64
- var canvasRef = labelColorValueRef.current;
65
- createLegendItemCanvas({ canvas: canvasRef, dataset: dataset, highContrast: highContrast });
66
- }, []);
67
- return (React.createElement("canvas", { ref: labelColorValueRef, tabIndex: 0, style: highContrast
68
- ? {
69
- width: "1.5rem",
70
- minWidth: "1.25rem",
71
- height: "1rem",
72
- minHeight: "1rem",
73
- marginRight: ".4rem",
74
- borderRadius: "2px",
75
- userSelect: "none",
76
- }
77
- : {
78
- width: ".7rem",
79
- minWidth: ".7rem",
80
- height: ".7rem",
81
- minHeight: ".7rem",
82
- marginBottom: "-1px",
83
- marginRight: ".4rem",
84
- borderRadius: "2px",
85
- userSelect: "none",
86
- } }));
87
- };
88
- function createLegendItemCanvas(_a) {
89
- var canvas = _a.canvas, dataset = _a.dataset, highContrast = _a.highContrast;
90
- if (!canvas)
91
- return;
92
- var ctx = canvas.getContext("2d");
93
- if (!ctx)
94
- return;
95
- ctx.save();
96
- ctx.scale(10, 8);
97
- if (!dataset.borderDash) {
98
- ctx.fillStyle = (dataset.backgroundColor === "transparent" ||
99
- dataset.backgroundColor === "rgba(0,0,0,0)"
100
- ? dataset.borderColor
101
- : dataset.backgroundColor);
102
- ctx.fillRect(0, 0, canvas.width, canvas.height);
103
- }
104
- if (highContrast) {
105
- ctx.strokeStyle = HighContrastColors.Foreground;
106
- ctx.lineWidth = dataset.borderWidth;
107
- ctx.strokeRect(0, 0, 30, 19);
108
- }
109
- if (dataset.type === ChartTypes.Line && dataset.borderDash) {
110
- if (highContrast) {
111
- var x = 22;
112
- var y = 10;
113
- ctx.strokeStyle = HighContrastColors.Background;
114
- ctx.lineWidth = dataset.borderWidth;
115
- ctx.strokeRect(0, 0, 30, 18);
116
- // Line
117
- ctx.beginPath();
118
- ctx.moveTo(-10, y);
119
- ctx.lineTo(18, y);
120
- ctx.setLineDash(dataset.borderDash);
121
- ctx.lineWidth = dataset.borderWidth || 4;
122
- ctx.strokeStyle = HighContrastColors.Foreground;
123
- ctx.stroke();
124
- // Point
125
- var pointStyle = dataset.pointStyle;
126
- if (pointStyle) {
127
- var radius = 6;
128
- var rotation = 0;
129
- var xOffset = 0;
130
- var yOffset = 0;
131
- var cornerRadius = 1;
132
- var size = 5;
133
- var rad = 0;
134
- ctx.beginPath();
135
- ctx.setLineDash([]);
136
- switch (pointStyle) {
137
- // Default includes circle
138
- default:
139
- ctx.arc(x, y, radius * 0.85, 0, Math.PI * 2, true);
140
- ctx.closePath();
141
- break;
142
- case "triangle":
143
- ctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
144
- rad += TWO_THIRDS_PI;
145
- ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
146
- rad += TWO_THIRDS_PI;
147
- ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);
148
- ctx.closePath();
149
- break;
150
- case "rectRounded":
151
- cornerRadius = radius * 0.516;
152
- size = radius - cornerRadius;
153
- xOffset = Math.cos(rad + QUARTER_PI) * size;
154
- yOffset = Math.sin(rad + QUARTER_PI) * size;
155
- ctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI);
156
- ctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad);
157
- ctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI);
158
- ctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI);
159
- ctx.closePath();
160
- break;
161
- case "rect":
162
- if (!rotation) {
163
- size = Math.SQRT1_2 * radius;
164
- ctx.rect(x - size, y - size, 2 * size, 2 * size);
165
- break;
166
- }
167
- rad += QUARTER_PI;
168
- /* falls through */
169
- case "rectRot":
170
- xOffset = Math.cos(rad) * radius;
171
- yOffset = Math.sin(rad) * radius;
172
- ctx.moveTo(x - xOffset, y - yOffset);
173
- ctx.lineTo(x + yOffset, y - xOffset);
174
- ctx.lineTo(x + xOffset, y + yOffset);
175
- ctx.lineTo(x - yOffset, y + xOffset);
176
- ctx.closePath();
177
- break;
178
- case "crossRot":
179
- rad += QUARTER_PI;
180
- /* falls through */
181
- case "cross":
182
- xOffset = Math.cos(rad) * radius;
183
- yOffset = Math.sin(rad) * radius;
184
- ctx.moveTo(x - xOffset, y - yOffset);
185
- ctx.lineTo(x + xOffset, y + yOffset);
186
- ctx.moveTo(x + yOffset, y - xOffset);
187
- ctx.lineTo(x - yOffset, y + xOffset);
188
- break;
189
- case "star":
190
- xOffset = Math.cos(rad) * radius;
191
- yOffset = Math.sin(rad) * radius;
192
- ctx.moveTo(x - xOffset, y - yOffset);
193
- ctx.lineTo(x + xOffset, y + yOffset);
194
- ctx.moveTo(x + yOffset, y - xOffset);
195
- ctx.lineTo(x - yOffset, y + xOffset);
196
- rad += QUARTER_PI;
197
- xOffset = Math.cos(rad) * radius;
198
- yOffset = Math.sin(rad) * radius;
199
- ctx.moveTo(x - xOffset, y - yOffset);
200
- ctx.lineTo(x + xOffset, y + yOffset);
201
- ctx.moveTo(x + yOffset, y - xOffset);
202
- ctx.lineTo(x - yOffset, y + xOffset);
203
- break;
204
- case "line":
205
- xOffset = Math.cos(rad) * radius;
206
- yOffset = Math.sin(rad) * radius;
207
- ctx.moveTo(x - xOffset, y - yOffset);
208
- ctx.lineTo(x + xOffset, y + yOffset);
209
- break;
210
- case "dash":
211
- ctx.moveTo(x, y);
212
- ctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius);
213
- break;
214
- }
215
- ctx.lineWidth = 1;
216
- ctx.fillStyle = HighContrastColors.Foreground;
217
- ctx.strokeStyle = HighContrastColors.Foreground;
218
- ctx.closePath();
219
- ctx.fill();
220
- ctx.stroke();
221
- ctx.restore();
222
- }
223
- }
224
- else {
225
- ctx.fillStyle = dataset.borderColor;
226
- ctx.fillRect(0, 0, canvas.width, canvas.height);
227
- }
228
- }
229
- // switch (dataset.type) {
230
- // case ChartTypes.Line:
231
- // if (highContrast) {
232
- // const x = 22;
233
- // const y = 10;
234
- // // Line
235
- // ctx.beginPath();
236
- // ctx.moveTo(-10, y);
237
- // ctx.lineTo(18, y);
238
- // ctx.setLineDash(dataset.borderDash!);
239
- // ctx.lineWidth = (dataset.borderWidth as number) || 4;
240
- // ctx.strokeStyle = HighContrastColors.Foreground;
241
- // ctx.stroke();
242
- // // Point
243
- // const pointStyle = dataset.pointStyle;
244
- // if (pointStyle) {
245
- // const radius = 6;
246
- // const rotation = 0;
247
- // let xOffset = 0;
248
- // let yOffset = 0;
249
- // let cornerRadius = 1;
250
- // let size = 5;
251
- // let rad = 0;
252
- // ctx.beginPath();
253
- // ctx.setLineDash([]);
254
- // switch (pointStyle) {
255
- // // Default includes circle
256
- // default:
257
- // ctx.arc(x, y, radius * 0.85, 0, Math.PI * 2, true);
258
- // ctx.closePath();
259
- // break;
260
- // case "triangle":
261
- // ctx.moveTo(
262
- // x + Math.sin(rad) * radius,
263
- // y - Math.cos(rad) * radius
264
- // );
265
- // rad += TWO_THIRDS_PI;
266
- // ctx.lineTo(
267
- // x + Math.sin(rad) * radius,
268
- // y - Math.cos(rad) * radius
269
- // );
270
- // rad += TWO_THIRDS_PI;
271
- // ctx.lineTo(
272
- // x + Math.sin(rad) * radius,
273
- // y - Math.cos(rad) * radius
274
- // );
275
- // ctx.closePath();
276
- // break;
277
- // case "rectRounded":
278
- // cornerRadius = radius * 0.516;
279
- // size = radius - cornerRadius;
280
- // xOffset = Math.cos(rad + QUARTER_PI) * size;
281
- // yOffset = Math.sin(rad + QUARTER_PI) * size;
282
- // ctx.arc(
283
- // x - xOffset,
284
- // y - yOffset,
285
- // cornerRadius,
286
- // rad - PI,
287
- // rad - HALF_PI
288
- // );
289
- // ctx.arc(
290
- // x + yOffset,
291
- // y - xOffset,
292
- // cornerRadius,
293
- // rad - HALF_PI,
294
- // rad
295
- // );
296
- // ctx.arc(
297
- // x + xOffset,
298
- // y + yOffset,
299
- // cornerRadius,
300
- // rad,
301
- // rad + HALF_PI
302
- // );
303
- // ctx.arc(
304
- // x - yOffset,
305
- // y + xOffset,
306
- // cornerRadius,
307
- // rad + HALF_PI,
308
- // rad + PI
309
- // );
310
- // ctx.closePath();
311
- // break;
312
- // case "rect":
313
- // if (!rotation) {
314
- // size = Math.SQRT1_2 * radius;
315
- // ctx.rect(x - size, y - size, 2 * size, 2 * size);
316
- // break;
317
- // }
318
- // rad += QUARTER_PI;
319
- // /* falls through */
320
- // case "rectRot":
321
- // xOffset = Math.cos(rad) * radius;
322
- // yOffset = Math.sin(rad) * radius;
323
- // ctx.moveTo(x - xOffset, y - yOffset);
324
- // ctx.lineTo(x + yOffset, y - xOffset);
325
- // ctx.lineTo(x + xOffset, y + yOffset);
326
- // ctx.lineTo(x - yOffset, y + xOffset);
327
- // ctx.closePath();
328
- // break;
329
- // case "crossRot":
330
- // rad += QUARTER_PI;
331
- // /* falls through */
332
- // case "cross":
333
- // xOffset = Math.cos(rad) * radius;
334
- // yOffset = Math.sin(rad) * radius;
335
- // ctx.moveTo(x - xOffset, y - yOffset);
336
- // ctx.lineTo(x + xOffset, y + yOffset);
337
- // ctx.moveTo(x + yOffset, y - xOffset);
338
- // ctx.lineTo(x - yOffset, y + xOffset);
339
- // break;
340
- // case "star":
341
- // xOffset = Math.cos(rad) * radius;
342
- // yOffset = Math.sin(rad) * radius;
343
- // ctx.moveTo(x - xOffset, y - yOffset);
344
- // ctx.lineTo(x + xOffset, y + yOffset);
345
- // ctx.moveTo(x + yOffset, y - xOffset);
346
- // ctx.lineTo(x - yOffset, y + xOffset);
347
- // rad += QUARTER_PI;
348
- // xOffset = Math.cos(rad) * radius;
349
- // yOffset = Math.sin(rad) * radius;
350
- // ctx.moveTo(x - xOffset, y - yOffset);
351
- // ctx.lineTo(x + xOffset, y + yOffset);
352
- // ctx.moveTo(x + yOffset, y - xOffset);
353
- // ctx.lineTo(x - yOffset, y + xOffset);
354
- // break;
355
- // case "line":
356
- // xOffset = Math.cos(rad) * radius;
357
- // yOffset = Math.sin(rad) * radius;
358
- // ctx.moveTo(x - xOffset, y - yOffset);
359
- // ctx.lineTo(x + xOffset, y + yOffset);
360
- // break;
361
- // case "dash":
362
- // ctx.moveTo(x, y);
363
- // ctx.lineTo(
364
- // x + Math.cos(rad) * radius,
365
- // y + Math.sin(rad) * radius
366
- // );
367
- // break;
368
- // }
369
- // ctx.lineWidth = 1;
370
- // ctx.fillStyle = HighContrastColors.Foreground;
371
- // ctx.strokeStyle = HighContrastColors.Foreground;
372
- // ctx.closePath();
373
- // ctx.fill();
374
- // ctx.stroke();
375
- // ctx.restore();
376
- // }
377
- // } else {
378
- // ctx.fillStyle = dataset.borderColor as string;
379
- // ctx.fillRect(0, 0, canvas.width, canvas.height);
380
- // }
381
- // break;
382
- // default:
383
- // ctx.fillStyle = dataset.backgroundColor as string;
384
- // ctx.fillRect(0, 0, canvas.width, canvas.height);
385
- // if (highContrast) {
386
- // ctx.strokeStyle = HighContrastColors.Foreground;
387
- // ctx.lineWidth = dataset.borderWidth as number;
388
- // ctx.strokeRect(0, 0, 30, 18);
389
- // }
390
- // break;
391
- // }
392
- // ctx.fillRect(0, 0, canvas.width, canvas.height);
393
- // if (theme === TeamsTheme.HighContrast) {
394
- // if (patterns) {
395
- // ctx.setTransform(1.4, 0, 0, 1, 0, 0);
396
- // ctx.scale(12, 10);
397
- // (ctx.fillStyle as any) = buildPattern({
398
- // ...patterns(colorScheme)[index],
399
- // backgroundColor: colorScheme.default.background,
400
- // patternColor: colorScheme.brand.background,
401
- // });
402
- // ctx.fillRect(-15, -15, canvasRef.width, canvasRef.height);
403
- // ctx.restore();
404
- // } else {
405
- // ctx.scale(15, 15);
406
- // ctx.fillStyle = colorScheme.brand.shadow;
407
- // ctx.fillRect(-15, -15, canvasRef.width, canvasRef.height);
408
- // ctx.fillStyle = colorScheme.default.foreground3;
409
- // switch (lineChartPatterns[index].pointStyle) {
410
- // case PointStyles.Triangle:
411
- // ctx.moveTo(9.5, 2.5);
412
- // ctx.lineTo(5.5, 7.5);
413
- // ctx.lineTo(13.5, 7.5);
414
- // break;
415
- // case PointStyles.Rectangle:
416
- // ctx.rect(6.5, 2.5, 8, 5);
417
- // break;
418
- // case PointStyles.RectangleRotated:
419
- // ctx.moveTo(10, 2);
420
- // ctx.lineTo(14.5, 5);
421
- // ctx.lineTo(10, 8);
422
- // ctx.lineTo(5.5, 5);
423
- // break;
424
- // case PointStyles.Circle:
425
- // default:
426
- // ctx.ellipse(10, 5, 3.5, 2.5, 0, 0, 2 * Math.PI);
427
- // break;
428
- // }
429
- // ctx.fill();
430
- // // Line Style
431
- // ctx.strokeStyle = colorScheme.default.foreground3;
432
- // ctx.beginPath();
433
- // ctx.setLineDash(
434
- // lineChartPatterns[index].lineBorderDash.length ? [2, 2] : []
435
- // );
436
- // ctx.moveTo(-1.5, 5);
437
- // ctx.lineTo(20, 5);
438
- // ctx.stroke();
439
- // ctx.restore();
440
- // }
441
- // } else {
442
- // ctx.fillStyle = dataPointColor;
443
- // ctx.fillRect(0, 0, canvasRef.width, canvasRef.height);
444
- // }
445
- }
446
- //# sourceMappingURL=chart-legend.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":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IAAI;IACJ,mDAAmD;IAEnD,2CAA2C;IAC3C,oBAAoB;IACpB,4CAA4C;IAC5C,yBAAyB;IACzB,8CAA8C;IAC9C,yCAAyC;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;
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", { id: chartId, ref: canvasRef, tabIndex: 0, style: {
37
- userSelect: "none",
38
- }, "aria-label": config.areaLabel }, 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 && 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,GAAK,MAAM,KAAX,CAAY;IAExB,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,IAAI,C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CAAC,SAAS,IAE3B,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,IAAI,oBAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAI,CAChE,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,11 +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
- console.clear();
9
- return React.createElement(ChartRender, __assign({}, config));
10
- }
11
- //# 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,CAAC,KAAK,EAAE,CAAC;IAChB,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,82 +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 BarChart extends ChartBuilder {
16
- type: ChartTypes;
17
- constructor(fields: IPreSetupConfig);
18
- }
19
- export declare class PieChart extends ChartBuilder {
20
- type: ChartTypes;
21
- constructor(fields: IPreSetupConfig);
22
- }
23
- export declare class DoughnutChart extends PieChart {
24
- type: ChartTypes;
25
- constructor(fields: IPreSetupConfig);
26
- }
27
- export declare class GroupedBarChart extends BarChart {
28
- constructor(fields: IPreSetupConfig);
29
- }
30
- export declare class StackedBarChart extends ChartBuilder {
31
- type: ChartTypes;
32
- constructor(fields: IPreSetupConfig);
33
- }
34
- export declare class HorizontalBarChart extends ChartBuilder {
35
- type: ChartTypes;
36
- constructor(fields: IPreSetupConfig);
37
- }
38
- export declare class AreaChart extends LineChart {
39
- constructor(fields: IPreSetupConfig);
40
- }
41
- export declare class LineStackedChart extends ChartBuilder {
42
- type: ChartTypes;
43
- constructor(fields: IPreSetupConfig);
44
- }
45
- /**
46
- * HighContrast Chart Options
47
- */
48
- export declare class HorizontalBarChartHighContrast extends ChartBuilder {
49
- type: ChartTypes;
50
- constructor(fields: IPreSetupConfigHighContrast);
51
- }
52
- export declare class StackedBarChartHighContrast extends ChartBuilder {
53
- type: ChartTypes;
54
- constructor(fields: IPreSetupConfigHighContrast);
55
- }
56
- export declare class LineStackedChartHighContrast extends ChartBuilder {
57
- type: ChartTypes;
58
- constructor(fields: IPreSetupConfigHighContrast);
59
- }
60
- export declare class PieChartHighContrast extends PieChart {
61
- type: ChartTypes;
62
- constructor(fields: IPreSetupConfigHighContrast);
63
- }
64
- export declare class DoughnutChartHighContrast extends DoughnutChart {
65
- type: ChartTypes;
66
- constructor(fields: IPreSetupConfigHighContrast);
67
- }
68
- export declare class LineChartHighContrast extends ChartBuilder {
69
- type: ChartTypes;
70
- data: ILineChartDataHighContrast;
71
- constructor(fields: ILinePreSetupConfigHighContrast);
72
- }
73
- export declare class AreaChartHighContrast extends LineChartHighContrast {
74
- constructor(fields: ILinePreSetupConfigHighContrast);
75
- }
76
- export declare class BarChartHighContrast extends ChartBuilder {
77
- type: ChartTypes;
78
- constructor(fields: IPreSetupConfigHighContrast);
79
- }
80
- export declare class GroupedBarChartHighContrast extends BarChartHighContrast {
81
- constructor(fields: IPreSetupConfigHighContrast);
82
- }