@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,285 +0,0 @@
1
- import { __assign, __extends } from "tslib";
2
- import { ChartTypes, Entity, HighContrastColors, Point, Shapes, } from "../types";
3
- import { buildPattern } from "./patterns";
4
- var ChartDataSet = /** @class */ (function (_super) {
5
- __extends(ChartDataSet, _super);
6
- function ChartDataSet(fields) {
7
- var _this = _super.call(this, fields) || this;
8
- _this.type = fields.type;
9
- return _this;
10
- }
11
- return ChartDataSet;
12
- }(Entity));
13
- export { ChartDataSet };
14
- var LineDataSetStyle = /** @class */ (function (_super) {
15
- __extends(LineDataSetStyle, _super);
16
- function LineDataSetStyle(fields) {
17
- var _this = _super.call(this, fields) || this;
18
- _this.type = ChartTypes.Line;
19
- _this.backgroundColor = fields.backgroundColor || "transparent";
20
- _this.borderCapStyle = fields.borderCapStyle || "round";
21
- _this.borderJoinStyle = fields.borderJoinStyle || "round";
22
- _this.borderWidth = fields.borderWidth || 2;
23
- _this.hoverBackgroundColor = fields.hoverBackgroundColor || "transparent";
24
- _this.hoverBorderWidth = fields.hoverBorderWidth || 2.5;
25
- _this.pointBorderWidth = fields.hoverBorderWidth || 0;
26
- _this.pointHoverBorderWidth = fields.pointHoverBorderWidth || 0;
27
- _this.pointHoverRadius = fields.pointHoverRadius || 2.5;
28
- _this.pointRadius = fields.pointRadius || 2;
29
- _this.pointStyle = fields.pointStyle || "circle";
30
- _this.borderColor = fields.borderColor || fields.color || "rgba(0,0,0,.1)";
31
- _this.hoverBorderColor =
32
- fields.hoverBorderColor || fields.color || "rgba(0,0,0,.1)";
33
- _this.pointBorderColor =
34
- fields.pointBorderColor || fields.color || "rgba(0,0,0,.1)";
35
- _this.pointBackgroundColor =
36
- fields.pointBackgroundColor || fields.color || "rgba(0,0,0,.1)";
37
- _this.pointHoverBackgroundColor =
38
- fields.pointHoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
39
- _this.pointHoverBorderColor =
40
- fields.pointHoverBorderColor || fields.color || "rgba(0,0,0,.1)";
41
- return _this;
42
- }
43
- return LineDataSetStyle;
44
- }(ChartDataSet));
45
- export { LineDataSetStyle };
46
- var TrendLineDataSetStyle = /** @class */ (function (_super) {
47
- __extends(TrendLineDataSetStyle, _super);
48
- function TrendLineDataSetStyle(fields) {
49
- var _this = _super.call(this, fields) || this;
50
- _this.type = ChartTypes.Line;
51
- _this.backgroundColor = fields.backgroundColor || "transparent";
52
- _this.borderCapStyle = fields.borderCapStyle || "round";
53
- _this.borderJoinStyle = fields.borderJoinStyle || "round";
54
- _this.borderWidth = fields.borderWidth || 2;
55
- _this.hoverBackgroundColor = fields.hoverBackgroundColor || "transparent";
56
- _this.hoverBorderWidth = fields.hoverBorderWidth || 2.5;
57
- _this.pointBorderWidth = fields.hoverBorderWidth || 0;
58
- _this.pointHoverBorderWidth = fields.pointHoverBorderWidth || 0;
59
- _this.pointHoverRadius = fields.pointHoverRadius || 0;
60
- _this.pointRadius = fields.pointRadius || 0;
61
- _this.pointStyle = fields.pointStyle || "circle";
62
- _this.borderColor = fields.borderColor || fields.color || "rgba(0,0,0,.1)";
63
- _this.hoverBorderColor =
64
- fields.hoverBorderColor || fields.color || "rgba(0,0,0,.1)";
65
- _this.pointBorderColor =
66
- fields.pointBorderColor || fields.color || "rgba(0,0,0,.1)";
67
- _this.pointBackgroundColor =
68
- fields.pointBackgroundColor || fields.color || "rgba(0,0,0,.1)";
69
- _this.pointHoverBackgroundColor =
70
- fields.pointHoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
71
- _this.pointHoverBorderColor =
72
- fields.pointHoverBorderColor || fields.color || "rgba(0,0,0,.1)";
73
- return _this;
74
- }
75
- return TrendLineDataSetStyle;
76
- }(ChartDataSet));
77
- export { TrendLineDataSetStyle };
78
- var LineDataSetHCStyle = /** @class */ (function (_super) {
79
- __extends(LineDataSetHCStyle, _super);
80
- function LineDataSetHCStyle(fields) {
81
- var _this = _super.call(this, fields) || this;
82
- _this.borderColor = HighContrastColors.Foreground;
83
- _this.hoverBorderColor = HighContrastColors.Active;
84
- _this.pointBorderColor = HighContrastColors.Foreground;
85
- _this.pointBackgroundColor = HighContrastColors.Foreground;
86
- _this.pointHoverBackgroundColor = HighContrastColors.Foreground;
87
- _this.pointHoverBorderColor = HighContrastColors.Foreground;
88
- _this.hoverBorderWidth = 4;
89
- _this.pointRadius = 4;
90
- _this.pointHoverRadius = 4;
91
- _this.borderDash = fields.borderDash || [];
92
- _this.pointStyle = fields.pointStyle || Point.Circle;
93
- return _this;
94
- }
95
- return LineDataSetHCStyle;
96
- }(LineDataSetStyle));
97
- export { LineDataSetHCStyle };
98
- var TrendLineDataSetHCStyle = /** @class */ (function (_super) {
99
- __extends(TrendLineDataSetHCStyle, _super);
100
- function TrendLineDataSetHCStyle(fields) {
101
- var _this = _super.call(this, fields) || this;
102
- _this.pointBorderWidth = fields.hoverBorderWidth || 0;
103
- _this.pointHoverBorderWidth = fields.pointHoverBorderWidth || 0;
104
- _this.pointHoverRadius = fields.pointHoverRadius || 0;
105
- _this.pointRadius = fields.pointRadius || 0;
106
- return _this;
107
- }
108
- return TrendLineDataSetHCStyle;
109
- }(LineDataSetHCStyle));
110
- export { TrendLineDataSetHCStyle };
111
- var LineStackedDataSetStyle = /** @class */ (function (_super) {
112
- __extends(LineStackedDataSetStyle, _super);
113
- function LineStackedDataSetStyle(fields) {
114
- var _this = _super.call(this, fields) || this;
115
- _this.backgroundColor =
116
- fields.backgroundColor || fields.color || "rgba(0,0,0,.1)";
117
- _this.hoverBackgroundColor =
118
- fields.hoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
119
- _this.borderWidth = fields.borderWidth || 1;
120
- _this.borderColor = fields.borderColor || "#ffffff";
121
- _this.pointRadius = fields.pointRadius || 0;
122
- _this.pointHoverBackgroundColor =
123
- fields.pointHoverBackgroundColor || "#ffffff";
124
- _this.pointHoverRadius = fields.pointHoverRadius || 3;
125
- _this.pointHoverBorderWidth = fields.pointHoverBorderWidth || 2;
126
- return _this;
127
- }
128
- return LineStackedDataSetStyle;
129
- }(LineDataSetStyle));
130
- export { LineStackedDataSetStyle };
131
- var LineStackedDataSetHCStyle = /** @class */ (function (_super) {
132
- __extends(LineStackedDataSetHCStyle, _super);
133
- function LineStackedDataSetHCStyle(fields) {
134
- var _this = _super.call(this, fields) || this;
135
- _this.pattern = fields.pattern || {
136
- shape: Shapes.Square,
137
- size: 10,
138
- };
139
- _this.backgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Foreground }, _this.pattern));
140
- _this.hoverBackgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Active }, _this.pattern));
141
- _this.borderColor = HighContrastColors.Foreground;
142
- _this.hoverBorderColor = HighContrastColors.Active;
143
- _this.borderWidth = fields.borderWidth || 3;
144
- _this.hoverBorderWidth = fields.hoverBorderWidth || 4;
145
- _this.hoverBorderWidth = fields.hoverBorderWidth || 5;
146
- _this.pointHoverRadius = fields.pointHoverRadius || 5;
147
- return _this;
148
- }
149
- return LineStackedDataSetHCStyle;
150
- }(LineStackedDataSetStyle));
151
- export { LineStackedDataSetHCStyle };
152
- var BarDataSetStyle = /** @class */ (function (_super) {
153
- __extends(BarDataSetStyle, _super);
154
- function BarDataSetStyle(fields) {
155
- var _this = _super.call(this, fields) || this;
156
- _this.borderWidth = fields.borderWidth || 0;
157
- _this.backgroundColor =
158
- fields.backgroundColor || fields.color || "rgba(0,0,0,.1)";
159
- _this.hoverBorderWidth = fields.hoverBorderWidth || 0;
160
- _this.hoverBackgroundColor =
161
- fields.hoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
162
- _this.borderSkipped = fields.borderSkipped || false;
163
- _this.type = ChartTypes.Bar;
164
- return _this;
165
- }
166
- return BarDataSetStyle;
167
- }(ChartDataSet));
168
- export { BarDataSetStyle };
169
- var PieDataSetStyle = /** @class */ (function (_super) {
170
- __extends(PieDataSetStyle, _super);
171
- function PieDataSetStyle(fields) {
172
- var _this = _super.call(this, fields) || this;
173
- _this.type = ChartTypes.Pie;
174
- _this.borderWidth = fields.borderWidth || 2;
175
- _this.borderColor = fields.borderColor || "#fff";
176
- _this.hoverBorderColor = fields.hoverBorderColor || "#fff";
177
- _this.backgroundColor =
178
- fields.backgroundColor || fields.color || "rgba(0,0,0,.1)";
179
- _this.hoverBackgroundColor =
180
- fields.hoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
181
- _this.borderSkipped = fields.borderSkipped || false;
182
- return _this;
183
- }
184
- return PieDataSetStyle;
185
- }(ChartDataSet));
186
- export { PieDataSetStyle };
187
- var DoughnutDataSetStyle = /** @class */ (function (_super) {
188
- __extends(DoughnutDataSetStyle, _super);
189
- function DoughnutDataSetStyle(fields) {
190
- var _this = _super.call(this, fields) || this;
191
- _this.type = ChartTypes.Doughnut;
192
- return _this;
193
- }
194
- return DoughnutDataSetStyle;
195
- }(PieDataSetStyle));
196
- export { DoughnutDataSetStyle };
197
- var HorizontalBarDataSetStyle = /** @class */ (function (_super) {
198
- __extends(HorizontalBarDataSetStyle, _super);
199
- function HorizontalBarDataSetStyle(fields) {
200
- var _this = _super.call(this, fields) || this;
201
- _this.type = ChartTypes.HorizontalBar;
202
- _this.borderWidth = fields.borderWidth || 0;
203
- _this.barPercentage = fields.barPercentage || 0.5;
204
- _this.backgroundColor =
205
- fields.backgroundColor || fields.color || "rgba(0,0,0,.1)";
206
- _this.hoverBorderWidth = fields.hoverBorderWidth || 0;
207
- _this.hoverBackgroundColor =
208
- fields.hoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
209
- _this.borderSkipped = fields.borderSkipped || false;
210
- return _this;
211
- }
212
- return HorizontalBarDataSetStyle;
213
- }(ChartDataSet));
214
- export { HorizontalBarDataSetStyle };
215
- var HorizontalBarDataSetHCStyle = /** @class */ (function (_super) {
216
- __extends(HorizontalBarDataSetHCStyle, _super);
217
- function HorizontalBarDataSetHCStyle(fields) {
218
- var _this = _super.call(this, fields) || this;
219
- _this.pattern = fields.pattern || {
220
- shape: Shapes.Square,
221
- size: 10,
222
- };
223
- _this.backgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Foreground }, _this.pattern));
224
- _this.hoverBackgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Active }, _this.pattern));
225
- _this.borderWidth = fields.borderWidth || 1;
226
- _this.borderColor = HighContrastColors.Foreground;
227
- _this.hoverBorderWidth = fields.hoverBorderWidth || 3;
228
- _this.hoverBorderColor = HighContrastColors.Active;
229
- return _this;
230
- }
231
- return HorizontalBarDataSetHCStyle;
232
- }(HorizontalBarDataSetStyle));
233
- export { HorizontalBarDataSetHCStyle };
234
- var PieDataSetHCStyle = /** @class */ (function (_super) {
235
- __extends(PieDataSetHCStyle, _super);
236
- function PieDataSetHCStyle(fields) {
237
- var _this = _super.call(this, fields) || this;
238
- _this.pattern = fields.pattern || [
239
- {
240
- shape: Shapes.Square,
241
- size: 10,
242
- },
243
- ];
244
- _this.borderWidth = fields.borderWidth || 3;
245
- _this.borderColor = HighContrastColors.Foreground;
246
- _this.hoverBorderColor = HighContrastColors.Active;
247
- _this.backgroundColor = Array.from(fields.pattern, function (pat) {
248
- return buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Foreground }, pat));
249
- });
250
- _this.hoverBackgroundColor = Array.from(fields.pattern, function (pat) {
251
- return buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Active }, pat));
252
- });
253
- return _this;
254
- }
255
- return PieDataSetHCStyle;
256
- }(PieDataSetStyle));
257
- export { PieDataSetHCStyle };
258
- var DoughnutDataSetHCStyle = /** @class */ (function (_super) {
259
- __extends(DoughnutDataSetHCStyle, _super);
260
- function DoughnutDataSetHCStyle(fields) {
261
- return _super.call(this, fields) || this;
262
- }
263
- return DoughnutDataSetHCStyle;
264
- }(PieDataSetHCStyle));
265
- export { DoughnutDataSetHCStyle };
266
- var BarDataSetHCStyle = /** @class */ (function (_super) {
267
- __extends(BarDataSetHCStyle, _super);
268
- function BarDataSetHCStyle(fields) {
269
- var _this = _super.call(this, fields) || this;
270
- _this.pattern = fields.pattern || {
271
- shape: Shapes.Square,
272
- size: 10,
273
- };
274
- _this.backgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Foreground }, _this.pattern));
275
- _this.hoverBackgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Active }, _this.pattern));
276
- _this.borderWidth = fields.borderWidth || 1;
277
- _this.borderColor = HighContrastColors.Foreground;
278
- _this.hoverBorderWidth = fields.hoverBorderWidth || 3;
279
- _this.hoverBorderColor = HighContrastColors.Active;
280
- return _this;
281
- }
282
- return BarDataSetHCStyle;
283
- }(BarDataSetStyle));
284
- export { BarDataSetHCStyle };
285
- //# sourceMappingURL=datasets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datasets.js","sourceRoot":"","sources":["../../src/lib/datasets.ts"],"names":[],"mappings":";AAQA,OAAO,EACL,UAAU,EACV,MAAM,EACN,kBAAkB,EAElB,KAAK,EACL,MAAM,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C;IAAkC,gCAAM;IAGtC,sBAAY,MAA6B;QAAzC,YACE,kBAAM,MAAM,CAAC,SAGd;QADC,K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,EAAE,kBAAkB,CAAC,MAAM,IACpC,GAAG,EACC;QAJT,CAIS,CACZ,CAAC;;IACJ,CAAC;IACH,wBAAC;AAAD,CAAC,AAjCD,CAAuC,eAAe,GAiCrD;;AAED;IAA4C,0CAAiB;IAC3D,gCAAY,MAAyB;eACnC,kBAAM,MAAM,CAAC;IACf,CAAC;IACH,6BAAC;AAAD,CAAC,AAJD,CAA4C,iBAAiB,GAI5D;;AAED;IAAuC,qCAAe;IAIpD,2BAAY,MAAyB;QAArC,YACE,kBAAM,MAAM,CAAC,SAoBd;QAnBC,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI;YAC/B,KAAK,EAAE,MAAM,CAAC,MAAM;YACpB,IAAI,EAAE,EAAE;SACT,CAAC;QACF,KAAI,CAAC,eAAe,GAAG,YAAY,YACjC,eAAe,EAAE,kBAAkB,CAAC,UAAU,EAC9C,YAAY,EAAE,kBAAkB,CAAC,UAAU,IACxC,KAAI,CAAC,OAAO,EACR,CAAC;QACV,KAAI,CAAC,oBAAoB,GAAG,YAAY,YACtC,eAAe,EAAE,kBAAkB,CAAC,UAAU,EAC9C,YAAY,EAAE,kBAAkB,CAAC,MAAM,IACpC,KAAI,CAAC,OAAO,EACR,CAAC;QAEV,KAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC;QAC3C,KAAI,CAAC,WAAW,GAAG,kBAAkB,CAAC,UAAU,CAAC;QACjD,KAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,IAAI,CAAC,CAAC;QACrD,KAAI,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,MAAM,CAAC;;IACpD,CAAC;IACH,wBAAC;AAAD,CAAC,AA1BD,CAAuC,eAAe,GA0BrD"}
@@ -1,43 +0,0 @@
1
- import { Entity, Shapes } from "../types";
2
- export declare const Patterns: {
3
- Square: {
4
- shape: Shapes;
5
- size: number;
6
- };
7
- Diagonal: {
8
- shape: Shapes;
9
- size: number;
10
- };
11
- Diagonal2: {
12
- shape: Shapes;
13
- size: number;
14
- };
15
- Grid: {
16
- shape: Shapes;
17
- size: number;
18
- };
19
- Grid2: {
20
- shape: Shapes;
21
- size: number;
22
- };
23
- Line: {
24
- shape: Shapes;
25
- size: number;
26
- };
27
- };
28
- export declare class Shape extends Entity {
29
- canvas?: HTMLCanvasElement;
30
- context?: CanvasRenderingContext2D | null;
31
- size: number;
32
- backgroundColor: string;
33
- patternColor: string;
34
- constructor(fields: Partial<Shape>);
35
- setStrokeProps(): void;
36
- setFillProps(): void;
37
- }
38
- export declare function buildPattern({ shape, backgroundColor, patternColor, size, }: {
39
- shape: Shapes;
40
- size: number;
41
- backgroundColor: string;
42
- patternColor: string;
43
- }): CanvasPattern | null;