@carbon/charts 1.8.0 → 1.9.0-rc.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 (863) hide show
  1. package/CHANGELOG.md +84 -155
  2. package/README.md +11 -13
  3. package/dist/_baseEach-603421de.mjs +21 -0
  4. package/dist/_baseEach-603421de.mjs.map +1 -0
  5. package/dist/_baseEach-cdac417f.js +2 -0
  6. package/dist/_baseEach-cdac417f.js.map +1 -0
  7. package/dist/a11y-7bad4f48.mjs +5 -0
  8. package/dist/a11y-7bad4f48.mjs.map +1 -0
  9. package/dist/a11y-c7c9d087.js +2 -0
  10. package/dist/a11y-c7c9d087.js.map +1 -0
  11. package/dist/angle-utils-6f166b40.js +2 -0
  12. package/dist/angle-utils-6f166b40.js.map +1 -0
  13. package/dist/angle-utils-8b6ce998.mjs +387 -0
  14. package/dist/angle-utils-8b6ce998.mjs.map +1 -0
  15. package/dist/axis-chart.d.ts +13 -0
  16. package/dist/chart.d.ts +18 -0
  17. package/dist/charts/alluvial.d.ts +10 -0
  18. package/dist/charts/area-stacked.d.ts +8 -0
  19. package/dist/charts/area.d.ts +8 -0
  20. package/dist/charts/bar-grouped.d.ts +8 -0
  21. package/dist/charts/bar-simple.d.ts +8 -0
  22. package/dist/charts/bar-stacked.d.ts +8 -0
  23. package/dist/charts/boxplot.d.ts +10 -0
  24. package/dist/charts/bubble.d.ts +8 -0
  25. package/dist/charts/bullet.d.ts +10 -0
  26. package/dist/charts/choropleth.d.ts +14 -0
  27. package/dist/charts/circle-pack.d.ts +10 -0
  28. package/dist/charts/combo.d.ts +9 -0
  29. package/dist/charts/donut.d.ts +8 -0
  30. package/dist/charts/gauge.d.ts +10 -0
  31. package/dist/charts/heatmap.d.ts +14 -0
  32. package/dist/charts/histogram.d.ts +10 -0
  33. package/dist/charts/index.d.ts +27 -0
  34. package/dist/charts/line.d.ts +8 -0
  35. package/dist/charts/lollipop.d.ts +8 -0
  36. package/dist/charts/meter.d.ts +10 -0
  37. package/dist/charts/pie.d.ts +10 -0
  38. package/dist/charts/radar.d.ts +10 -0
  39. package/dist/charts/scatter.d.ts +8 -0
  40. package/dist/charts/tree.d.ts +10 -0
  41. package/dist/charts/treemap.d.ts +10 -0
  42. package/dist/charts/wordcloud.d.ts +10 -0
  43. package/dist/choropleth-4ac6ac20.js +82 -0
  44. package/dist/choropleth-4ac6ac20.js.map +1 -0
  45. package/dist/choropleth-f473ea0d.mjs +7997 -0
  46. package/dist/choropleth-f473ea0d.mjs.map +1 -0
  47. package/dist/color-scale-utils-5eb3eeaa.mjs +3809 -0
  48. package/dist/color-scale-utils-5eb3eeaa.mjs.map +1 -0
  49. package/dist/color-scale-utils-7d463811.js +3 -0
  50. package/dist/color-scale-utils-7d463811.js.map +1 -0
  51. package/dist/components/axes/axis.d.ts +24 -0
  52. package/{build/src → dist}/components/axes/chart-clip.d.ts +3 -3
  53. package/{components → dist/components}/axes/grid-brush.d.ts +10 -10
  54. package/{components → dist/components}/axes/grid.d.ts +22 -22
  55. package/{build/src → dist}/components/axes/hover-axis.d.ts +1 -1
  56. package/dist/components/axes/index.d.ts +12 -0
  57. package/{components → dist/components}/axes/ruler-binned.d.ts +7 -7
  58. package/{components → dist/components}/axes/ruler.d.ts +27 -27
  59. package/{build/src → dist}/components/axes/toolbar.d.ts +7 -7
  60. package/{components → dist/components}/axes/two-dimensional-axes.d.ts +16 -16
  61. package/{components → dist/components}/axes/zero-line.d.ts +7 -7
  62. package/{components → dist/components}/axes/zoom-bar.d.ts +28 -28
  63. package/{build/src → dist}/components/component.d.ts +10 -8
  64. package/dist/components/diagrams/buildPaths.d.ts +40 -0
  65. package/dist/components/diagrams/index.d.ts +2 -0
  66. package/{components → dist/components}/essentials/canvas-chart-clip.d.ts +6 -6
  67. package/{build/src → dist}/components/essentials/color-scale-legend.d.ts +3 -3
  68. package/{build/src → dist}/components/essentials/geo-projection.d.ts +2 -2
  69. package/{build/src → dist}/components/essentials/highlights.d.ts +3 -3
  70. package/dist/components/essentials/index.d.ts +11 -0
  71. package/{build/src → dist}/components/essentials/legend.d.ts +3 -3
  72. package/{components → dist/components}/essentials/modal.d.ts +14 -14
  73. package/{build/src → dist}/components/essentials/threshold.d.ts +5 -5
  74. package/{components → dist/components}/essentials/title-meter.d.ts +30 -30
  75. package/{components → dist/components}/essentials/title.d.ts +20 -20
  76. package/{build/src → dist}/components/essentials/tooltip.d.ts +4 -4
  77. package/{components → dist/components}/graphs/alluvial.d.ts +14 -14
  78. package/{components → dist/components}/graphs/area-stacked.d.ts +11 -11
  79. package/dist/components/graphs/area.d.ts +12 -0
  80. package/{build/src → dist}/components/graphs/bar-grouped.d.ts +4 -4
  81. package/{build/src → dist}/components/graphs/bar-simple.d.ts +3 -3
  82. package/{build/src → dist}/components/graphs/bar-stacked.d.ts +4 -4
  83. package/{build/src → dist}/components/graphs/bar.d.ts +2 -2
  84. package/{components → dist/components}/graphs/boxplot.d.ts +9 -9
  85. package/{build/src → dist}/components/graphs/bubble.d.ts +2 -2
  86. package/dist/components/graphs/bullet.d.ts +12 -0
  87. package/{components → dist/components}/graphs/choropleth.d.ts +6 -6
  88. package/{build/src → dist}/components/graphs/circle-pack.d.ts +3 -3
  89. package/{build/src → dist}/components/graphs/donut.d.ts +1 -1
  90. package/{build/src → dist}/components/graphs/gauge.d.ts +2 -2
  91. package/{build/src → dist}/components/graphs/heatmap.d.ts +4 -4
  92. package/dist/components/graphs/histogram.d.ts +12 -0
  93. package/dist/components/graphs/index.d.ts +28 -0
  94. package/dist/components/graphs/line.d.ts +11 -0
  95. package/dist/components/graphs/lollipop.d.ts +14 -0
  96. package/{components → dist/components}/graphs/meter.d.ts +10 -10
  97. package/{build/src → dist}/components/graphs/pie.d.ts +4 -4
  98. package/{build/src → dist}/components/graphs/radar.d.ts +6 -6
  99. package/{build/src → dist}/components/graphs/scatter-stacked.d.ts +2 -2
  100. package/dist/components/graphs/scatter.d.ts +21 -0
  101. package/dist/components/graphs/skeleton-lines.d.ts +12 -0
  102. package/{build/src → dist}/components/graphs/skeleton.d.ts +6 -5
  103. package/{components → dist/components}/graphs/tree.d.ts +9 -9
  104. package/dist/components/graphs/treemap.d.ts +11 -0
  105. package/{build/src → dist}/components/graphs/wordcloud.d.ts +4 -4
  106. package/dist/components/index.d.ts +6 -0
  107. package/dist/components/index.js +2 -0
  108. package/dist/components/index.js.map +1 -0
  109. package/dist/components/index.mjs +76 -0
  110. package/dist/components/index.mjs.map +1 -0
  111. package/dist/components/layout/index.d.ts +2 -0
  112. package/{components → dist/components}/layout/layout.d.ts +18 -17
  113. package/dist/components/layout/spacer.d.ts +5 -0
  114. package/{build/src → dist}/configuration-non-customizable.d.ts +4 -4
  115. package/{configuration.d.ts → dist/configuration.d.ts} +48 -46
  116. package/dist/demo/charts/index.d.ts +62 -0
  117. package/{demo/data → dist/demo/charts}/time-series-axis.d.ts +60 -135
  118. package/{build/demo/data → dist/demo/charts}/zoom-bar.d.ts +12 -27
  119. package/dist/demo/index.d.ts +4 -0
  120. package/dist/demo/index.js +470 -0
  121. package/dist/demo/index.js.map +1 -0
  122. package/dist/demo/index.mjs +51786 -0
  123. package/dist/demo/index.mjs.map +1 -0
  124. package/{demo → dist/demo}/styles.css +286 -1142
  125. package/dist/demo/styles.css.map +1 -0
  126. package/dist/demo/utils/index.d.ts +2 -0
  127. package/dist/demo/utils/sandbox.d.ts +39 -0
  128. package/dist/demo/utils/story-widgets.d.ts +7 -0
  129. package/dist/enums-a96ef472.mjs +89 -0
  130. package/dist/enums-a96ef472.mjs.map +1 -0
  131. package/dist/enums-aa2efd99.js +2 -0
  132. package/dist/enums-aa2efd99.js.map +1 -0
  133. package/dist/index-822564ed.js +2 -0
  134. package/dist/index-822564ed.js.map +1 -0
  135. package/dist/index-a266373c.mjs +749 -0
  136. package/dist/index-a266373c.mjs.map +1 -0
  137. package/dist/index-becfb567.mjs +72 -0
  138. package/dist/index-becfb567.mjs.map +1 -0
  139. package/dist/index-d865d500.js +2 -0
  140. package/dist/index-d865d500.js.map +1 -0
  141. package/dist/index-ec554115.mjs +62 -0
  142. package/dist/index-ec554115.mjs.map +1 -0
  143. package/dist/index-f23685eb.js +2 -0
  144. package/dist/index-f23685eb.js.map +1 -0
  145. package/dist/index.d.ts +11 -0
  146. package/dist/index.js +2 -0
  147. package/dist/index.js.map +1 -0
  148. package/dist/index.mjs +1121 -0
  149. package/dist/index.mjs.map +1 -0
  150. package/{build/src → dist}/interfaces/axis-scales.d.ts +11 -11
  151. package/{interfaces → dist/interfaces}/charts.d.ts +517 -512
  152. package/{build/src → dist}/interfaces/components.d.ts +11 -11
  153. package/dist/interfaces/index.d.ts +11 -0
  154. package/dist/interfaces/index.js +2 -0
  155. package/dist/interfaces/index.js.map +1 -0
  156. package/dist/interfaces/index.mjs +58 -0
  157. package/dist/interfaces/index.mjs.map +1 -0
  158. package/{interfaces → dist/interfaces}/layout.d.ts +21 -15
  159. package/{build/src → dist}/interfaces/model.d.ts +2 -2
  160. package/dist/interfaces/services.d.ts +20 -0
  161. package/{build/src → dist}/interfaces/truncation.d.ts +2 -2
  162. package/{build/src → dist}/model/binned-charts.d.ts +1 -1
  163. package/{build/src → dist}/model/cartesian-charts.d.ts +2 -2
  164. package/{model → dist/model}/heatmap.d.ts +57 -52
  165. package/dist/model/index.d.ts +16 -0
  166. package/dist/model/index.js +3 -0
  167. package/dist/model/index.js.map +1 -0
  168. package/dist/model/index.mjs +1107 -0
  169. package/dist/model/index.mjs.map +1 -0
  170. package/{model → dist/model}/meter.d.ts +20 -19
  171. package/{model → dist/model}/model.d.ts +110 -107
  172. package/{services → dist/services}/angle-utils.d.ts +15 -16
  173. package/{services → dist/services}/color-scale-utils.d.ts +2 -2
  174. package/dist/services/curves.d.ts +24 -0
  175. package/dist/services/essentials/dom-utils.d.ts +45 -0
  176. package/dist/services/essentials/events.d.ts +8 -0
  177. package/dist/services/essentials/files.d.ts +7 -0
  178. package/{build/src → dist}/services/essentials/gradient-utils.d.ts +2 -2
  179. package/dist/services/essentials/index.d.ts +5 -0
  180. package/dist/services/essentials/transitions.d.ts +13 -0
  181. package/dist/services/index.d.ts +9 -0
  182. package/dist/services/index.js +2 -0
  183. package/dist/services/index.js.map +1 -0
  184. package/dist/services/index.mjs +32 -0
  185. package/dist/services/index.mjs.map +1 -0
  186. package/dist/services/scales-cartesian.d.ts +89 -0
  187. package/dist/services/service.d.ts +11 -0
  188. package/{services → dist/services}/time-series.d.ts +13 -13
  189. package/{build/src → dist}/services/zoom.d.ts +2 -2
  190. package/{styles → dist/styles}/_chart-holder.scss +5 -5
  191. package/{styles → dist/styles}/color-palatte.scss +66 -66
  192. package/{styles → dist/styles}/colors.scss +15 -39
  193. package/{styles → dist/styles}/components/_color-legend.scss +2 -2
  194. package/{styles → dist/styles}/components/_edge.scss +4 -4
  195. package/{styles → dist/styles}/components/_grid.scss +2 -2
  196. package/dist/styles/components/_marker.scss +7 -0
  197. package/{styles → dist/styles}/components/_meter-title.scss +2 -2
  198. package/{styles → dist/styles}/components/_tooltip.scss +3 -3
  199. package/{styles → dist/styles}/components/diagrams/_card-node.scss +3 -3
  200. package/{styles → dist/styles}/components/diagrams/_edge.scss +5 -5
  201. package/{styles → dist/styles}/components/diagrams/_shape-node.scss +3 -3
  202. package/dist/styles/components/diagrams/index.scss +4 -0
  203. package/{styles → dist/styles}/graphs/_alluvial.scss +2 -2
  204. package/{styles → dist/styles}/graphs/_bullet.scss +3 -3
  205. package/{styles → dist/styles}/graphs/_circle-pack.scss +1 -1
  206. package/{styles → dist/styles}/graphs/_gauge.scss +1 -1
  207. package/{styles → dist/styles}/graphs/_heatmap.scss +2 -2
  208. package/{styles → dist/styles}/graphs/_meter.scss +1 -1
  209. package/{styles → dist/styles}/graphs/_radar.scss +1 -1
  210. package/{styles → dist/styles}/graphs/_scatter-stacked.scss +1 -1
  211. package/{styles → dist/styles}/graphs/_tree.scss +2 -3
  212. package/{styles → dist/styles}/styles.scss +8 -3
  213. package/{styles → dist/styles}/tokens.scss +97 -106
  214. package/dist/styles.css +28264 -0
  215. package/dist/styles.css.map +1 -0
  216. package/dist/styles.min.css +1 -0
  217. package/dist/styles.min.css.map +1 -0
  218. package/{tools.d.ts → dist/tools.d.ts} +144 -144
  219. package/package.json +136 -101
  220. package/LICENSE.md +0 -201
  221. package/axis-chart.d.ts +0 -10
  222. package/axis-chart.js +0 -169
  223. package/axis-chart.js.map +0 -1
  224. package/build/demo/create-codesandbox.d.ts +0 -113
  225. package/build/demo/data/high-scale.d.ts +0 -1
  226. package/build/demo/data/index.d.ts +0 -33
  227. package/build/demo/data/time-series-axis.d.ts +0 -368
  228. package/build/demo/utils.d.ts +0 -40
  229. package/build/src/axis-chart.d.ts +0 -10
  230. package/build/src/chart.d.ts +0 -14
  231. package/build/src/charts/alluvial.d.ts +0 -8
  232. package/build/src/charts/area-stacked.d.ts +0 -6
  233. package/build/src/charts/area.d.ts +0 -6
  234. package/build/src/charts/bar-grouped.d.ts +0 -6
  235. package/build/src/charts/bar-simple.d.ts +0 -6
  236. package/build/src/charts/bar-stacked.d.ts +0 -6
  237. package/build/src/charts/boxplot.d.ts +0 -8
  238. package/build/src/charts/bubble.d.ts +0 -6
  239. package/build/src/charts/bullet.d.ts +0 -8
  240. package/build/src/charts/choropleth.d.ts +0 -10
  241. package/build/src/charts/circle-pack.d.ts +0 -8
  242. package/build/src/charts/combo.d.ts +0 -7
  243. package/build/src/charts/donut.d.ts +0 -6
  244. package/build/src/charts/gauge.d.ts +0 -8
  245. package/build/src/charts/heatmap.d.ts +0 -10
  246. package/build/src/charts/histogram.d.ts +0 -8
  247. package/build/src/charts/index.d.ts +0 -25
  248. package/build/src/charts/line.d.ts +0 -6
  249. package/build/src/charts/lollipop.d.ts +0 -6
  250. package/build/src/charts/meter.d.ts +0 -8
  251. package/build/src/charts/pie.d.ts +0 -8
  252. package/build/src/charts/radar.d.ts +0 -8
  253. package/build/src/charts/scatter.d.ts +0 -6
  254. package/build/src/charts/tree.d.ts +0 -8
  255. package/build/src/charts/treemap.d.ts +0 -8
  256. package/build/src/charts/wordcloud.d.ts +0 -8
  257. package/build/src/components/axes/axis.d.ts +0 -24
  258. package/build/src/components/axes/grid-brush.d.ts +0 -10
  259. package/build/src/components/axes/grid.d.ts +0 -22
  260. package/build/src/components/axes/ruler-binned.d.ts +0 -7
  261. package/build/src/components/axes/ruler.d.ts +0 -27
  262. package/build/src/components/axes/two-dimensional-axes.d.ts +0 -16
  263. package/build/src/components/axes/zero-line.d.ts +0 -7
  264. package/build/src/components/axes/zoom-bar.d.ts +0 -28
  265. package/build/src/components/diagrams/buildPaths.d.ts +0 -63
  266. package/build/src/components/essentials/canvas-chart-clip.d.ts +0 -6
  267. package/build/src/components/essentials/modal.d.ts +0 -14
  268. package/build/src/components/essentials/title-meter.d.ts +0 -30
  269. package/build/src/components/essentials/title.d.ts +0 -20
  270. package/build/src/components/graphs/alluvial.d.ts +0 -14
  271. package/build/src/components/graphs/area-stacked.d.ts +0 -11
  272. package/build/src/components/graphs/area.d.ts +0 -12
  273. package/build/src/components/graphs/boxplot.d.ts +0 -9
  274. package/build/src/components/graphs/bullet.d.ts +0 -12
  275. package/build/src/components/graphs/choropleth.d.ts +0 -6
  276. package/build/src/components/graphs/histogram.d.ts +0 -12
  277. package/build/src/components/graphs/line.d.ts +0 -11
  278. package/build/src/components/graphs/lollipop.d.ts +0 -14
  279. package/build/src/components/graphs/meter.d.ts +0 -10
  280. package/build/src/components/graphs/scatter.d.ts +0 -21
  281. package/build/src/components/graphs/skeleton-lines.d.ts +0 -11
  282. package/build/src/components/graphs/tree.d.ts +0 -9
  283. package/build/src/components/graphs/treemap.d.ts +0 -11
  284. package/build/src/components/index.d.ts +0 -53
  285. package/build/src/components/layout/layout.d.ts +0 -17
  286. package/build/src/components/layout/spacer.d.ts +0 -5
  287. package/build/src/configuration.d.ts +0 -46
  288. package/build/src/interfaces/charts.d.ts +0 -512
  289. package/build/src/interfaces/index.d.ts +0 -7
  290. package/build/src/interfaces/layout.d.ts +0 -15
  291. package/build/src/model/heatmap.d.ts +0 -52
  292. package/build/src/model/meter.d.ts +0 -19
  293. package/build/src/model/model.d.ts +0 -107
  294. package/build/src/services/angle-utils.d.ts +0 -205
  295. package/build/src/services/color-scale-utils.d.ts +0 -10
  296. package/build/src/services/curves.d.ts +0 -25
  297. package/build/src/services/essentials/dom-utils.d.ts +0 -39
  298. package/build/src/services/essentials/events.d.ts +0 -8
  299. package/build/src/services/essentials/files.d.ts +0 -6
  300. package/build/src/services/essentials/transitions.d.ts +0 -13
  301. package/build/src/services/index.d.ts +0 -10
  302. package/build/src/services/scales-cartesian.d.ts +0 -86
  303. package/build/src/services/service.d.ts +0 -10
  304. package/build/src/services/time-series.d.ts +0 -787
  305. package/build/src/tools.d.ts +0 -2427
  306. package/build/stories/all.stories.d.ts +0 -1
  307. package/build/stories/tutorials/api.d.ts +0 -4
  308. package/build/stories/tutorials/color-palette.d.ts +0 -4
  309. package/build/stories/tutorials/combo-charts.d.ts +0 -4
  310. package/build/stories/tutorials/dual-axes.d.ts +0 -4
  311. package/build/stories/tutorials/event-listeners.d.ts +0 -4
  312. package/build/stories/tutorials/getting-started/angular.d.ts +0 -5
  313. package/build/stories/tutorials/getting-started/react.d.ts +0 -5
  314. package/build/stories/tutorials/getting-started/vanilla.d.ts +0 -5
  315. package/build/stories/tutorials/getting-started/vue.d.ts +0 -5
  316. package/build/stories/tutorials/index.d.ts +0 -11
  317. package/build/stories/tutorials/tabular-data-format.d.ts +0 -4
  318. package/build/stories/tutorials/themes.d.ts +0 -4
  319. package/build/stories/tutorials.stories.d.ts +0 -1
  320. package/bundle.js +0 -17
  321. package/chart.d.ts +0 -14
  322. package/chart.js +0 -198
  323. package/chart.js.map +0 -1
  324. package/charts/alluvial.d.ts +0 -8
  325. package/charts/alluvial.js +0 -46
  326. package/charts/alluvial.js.map +0 -1
  327. package/charts/area-stacked.d.ts +0 -6
  328. package/charts/area-stacked.js +0 -55
  329. package/charts/area-stacked.js.map +0 -1
  330. package/charts/area.d.ts +0 -6
  331. package/charts/area.js +0 -54
  332. package/charts/area.js.map +0 -1
  333. package/charts/bar-grouped.d.ts +0 -6
  334. package/charts/bar-grouped.js +0 -49
  335. package/charts/bar-grouped.js.map +0 -1
  336. package/charts/bar-simple.d.ts +0 -6
  337. package/charts/bar-simple.js +0 -49
  338. package/charts/bar-simple.js.map +0 -1
  339. package/charts/bar-stacked.d.ts +0 -6
  340. package/charts/bar-stacked.js +0 -50
  341. package/charts/bar-stacked.js.map +0 -1
  342. package/charts/boxplot.d.ts +0 -8
  343. package/charts/boxplot.js +0 -55
  344. package/charts/boxplot.js.map +0 -1
  345. package/charts/bubble.d.ts +0 -6
  346. package/charts/bubble.js +0 -49
  347. package/charts/bubble.js.map +0 -1
  348. package/charts/bullet.d.ts +0 -8
  349. package/charts/bullet.js +0 -50
  350. package/charts/bullet.js.map +0 -1
  351. package/charts/choropleth.d.ts +0 -10
  352. package/charts/choropleth.js +0 -141
  353. package/charts/choropleth.js.map +0 -1
  354. package/charts/circle-pack.d.ts +0 -8
  355. package/charts/circle-pack.js +0 -45
  356. package/charts/circle-pack.js.map +0 -1
  357. package/charts/combo.d.ts +0 -7
  358. package/charts/combo.js +0 -132
  359. package/charts/combo.js.map +0 -1
  360. package/charts/donut.d.ts +0 -6
  361. package/charts/donut.js +0 -46
  362. package/charts/donut.js.map +0 -1
  363. package/charts/gauge.d.ts +0 -8
  364. package/charts/gauge.js +0 -42
  365. package/charts/gauge.js.map +0 -1
  366. package/charts/heatmap.d.ts +0 -10
  367. package/charts/heatmap.js +0 -142
  368. package/charts/heatmap.js.map +0 -1
  369. package/charts/histogram.d.ts +0 -8
  370. package/charts/histogram.js +0 -48
  371. package/charts/histogram.js.map +0 -1
  372. package/charts/index.d.ts +0 -25
  373. package/charts/index.js +0 -26
  374. package/charts/index.js.map +0 -1
  375. package/charts/line.d.ts +0 -6
  376. package/charts/line.js +0 -48
  377. package/charts/line.js.map +0 -1
  378. package/charts/lollipop.d.ts +0 -6
  379. package/charts/lollipop.js +0 -50
  380. package/charts/lollipop.js.map +0 -1
  381. package/charts/meter.d.ts +0 -8
  382. package/charts/meter.js +0 -94
  383. package/charts/meter.js.map +0 -1
  384. package/charts/pie.d.ts +0 -8
  385. package/charts/pie.js +0 -55
  386. package/charts/pie.js.map +0 -1
  387. package/charts/radar.d.ts +0 -8
  388. package/charts/radar.js +0 -44
  389. package/charts/radar.js.map +0 -1
  390. package/charts/scatter.d.ts +0 -6
  391. package/charts/scatter.js +0 -49
  392. package/charts/scatter.js.map +0 -1
  393. package/charts/tree.d.ts +0 -8
  394. package/charts/tree.js +0 -47
  395. package/charts/tree.js.map +0 -1
  396. package/charts/treemap.d.ts +0 -8
  397. package/charts/treemap.js +0 -43
  398. package/charts/treemap.js.map +0 -1
  399. package/charts/wordcloud.d.ts +0 -8
  400. package/charts/wordcloud.js +0 -49
  401. package/charts/wordcloud.js.map +0 -1
  402. package/components/axes/axis.d.ts +0 -24
  403. package/components/axes/axis.js +0 -587
  404. package/components/axes/axis.js.map +0 -1
  405. package/components/axes/chart-clip.d.ts +0 -13
  406. package/components/axes/chart-clip.js +0 -63
  407. package/components/axes/chart-clip.js.map +0 -1
  408. package/components/axes/grid-brush.js +0 -170
  409. package/components/axes/grid-brush.js.map +0 -1
  410. package/components/axes/grid.js +0 -235
  411. package/components/axes/grid.js.map +0 -1
  412. package/components/axes/hover-axis.d.ts +0 -10
  413. package/components/axes/hover-axis.js +0 -243
  414. package/components/axes/hover-axis.js.map +0 -1
  415. package/components/axes/ruler-binned.js +0 -136
  416. package/components/axes/ruler-binned.js.map +0 -1
  417. package/components/axes/ruler-stacked.d.ts +0 -4
  418. package/components/axes/ruler-stacked.js +0 -26
  419. package/components/axes/ruler-stacked.js.map +0 -1
  420. package/components/axes/ruler.js +0 -209
  421. package/components/axes/ruler.js.map +0 -1
  422. package/components/axes/toolbar.d.ts +0 -40
  423. package/components/axes/toolbar.js +0 -558
  424. package/components/axes/toolbar.js.map +0 -1
  425. package/components/axes/two-dimensional-axes.js +0 -134
  426. package/components/axes/two-dimensional-axes.js.map +0 -1
  427. package/components/axes/zero-line.js +0 -76
  428. package/components/axes/zero-line.js.map +0 -1
  429. package/components/axes/zoom-bar.js +0 -490
  430. package/components/axes/zoom-bar.js.map +0 -1
  431. package/components/component.d.ts +0 -28
  432. package/components/component.js +0 -102
  433. package/components/component.js.map +0 -1
  434. package/components/diagrams/buildPaths.d.ts +0 -39
  435. package/components/diagrams/buildPaths.js +0 -71
  436. package/components/diagrams/buildPaths.js.map +0 -1
  437. package/components/diagrams/markerDefinitions.d.ts +0 -37
  438. package/components/diagrams/markerDefinitions.js +0 -38
  439. package/components/diagrams/markerDefinitions.js.map +0 -1
  440. package/components/essentials/canvas-chart-clip.js +0 -46
  441. package/components/essentials/canvas-chart-clip.js.map +0 -1
  442. package/components/essentials/color-scale-legend.d.ts +0 -20
  443. package/components/essentials/color-scale-legend.js +0 -237
  444. package/components/essentials/color-scale-legend.js.map +0 -1
  445. package/components/essentials/geo-projection.d.ts +0 -16
  446. package/components/essentials/geo-projection.js +0 -160
  447. package/components/essentials/geo-projection.js.map +0 -1
  448. package/components/essentials/highlights.d.ts +0 -13
  449. package/components/essentials/highlights.js +0 -196
  450. package/components/essentials/highlights.js.map +0 -1
  451. package/components/essentials/legend.d.ts +0 -11
  452. package/components/essentials/legend.js +0 -428
  453. package/components/essentials/legend.js.map +0 -1
  454. package/components/essentials/modal.js +0 -89
  455. package/components/essentials/modal.js.map +0 -1
  456. package/components/essentials/threshold.d.ts +0 -20
  457. package/components/essentials/threshold.js +0 -306
  458. package/components/essentials/threshold.js.map +0 -1
  459. package/components/essentials/title-meter.js +0 -279
  460. package/components/essentials/title-meter.js.map +0 -1
  461. package/components/essentials/title.js +0 -138
  462. package/components/essentials/title.js.map +0 -1
  463. package/components/essentials/tooltip-axis.d.ts +0 -4
  464. package/components/essentials/tooltip-axis.js +0 -142
  465. package/components/essentials/tooltip-axis.js.map +0 -1
  466. package/components/essentials/tooltip.d.ts +0 -22
  467. package/components/essentials/tooltip.js +0 -263
  468. package/components/essentials/tooltip.js.map +0 -1
  469. package/components/graphs/alluvial.js +0 -535
  470. package/components/graphs/alluvial.js.map +0 -1
  471. package/components/graphs/area-stacked.js +0 -131
  472. package/components/graphs/area-stacked.js.map +0 -1
  473. package/components/graphs/area.d.ts +0 -12
  474. package/components/graphs/area.js +0 -260
  475. package/components/graphs/area.js.map +0 -1
  476. package/components/graphs/bar-grouped.d.ts +0 -22
  477. package/components/graphs/bar-grouped.js +0 -312
  478. package/components/graphs/bar-grouped.js.map +0 -1
  479. package/components/graphs/bar-simple.d.ts +0 -12
  480. package/components/graphs/bar-simple.js +0 -218
  481. package/components/graphs/bar-simple.js.map +0 -1
  482. package/components/graphs/bar-stacked.d.ts +0 -13
  483. package/components/graphs/bar-stacked.js +0 -281
  484. package/components/graphs/bar-stacked.js.map +0 -1
  485. package/components/graphs/bar.d.ts +0 -5
  486. package/components/graphs/bar.js +0 -58
  487. package/components/graphs/bar.js.map +0 -1
  488. package/components/graphs/boxplot.js +0 -485
  489. package/components/graphs/boxplot.js.map +0 -1
  490. package/components/graphs/bubble.d.ts +0 -13
  491. package/components/graphs/bubble.js +0 -113
  492. package/components/graphs/bubble.js.map +0 -1
  493. package/components/graphs/bullet.d.ts +0 -12
  494. package/components/graphs/bullet.js +0 -395
  495. package/components/graphs/bullet.js.map +0 -1
  496. package/components/graphs/choropleth.js +0 -106
  497. package/components/graphs/choropleth.js.map +0 -1
  498. package/components/graphs/circle-pack.d.ts +0 -19
  499. package/components/graphs/circle-pack.js +0 -388
  500. package/components/graphs/circle-pack.js.map +0 -1
  501. package/components/graphs/donut.d.ts +0 -9
  502. package/components/graphs/donut.js +0 -116
  503. package/components/graphs/donut.js.map +0 -1
  504. package/components/graphs/gauge.d.ts +0 -27
  505. package/components/graphs/gauge.js +0 -347
  506. package/components/graphs/gauge.js.map +0 -1
  507. package/components/graphs/heatmap.d.ts +0 -25
  508. package/components/graphs/heatmap.js +0 -388
  509. package/components/graphs/heatmap.js.map +0 -1
  510. package/components/graphs/histogram.d.ts +0 -12
  511. package/components/graphs/histogram.js +0 -220
  512. package/components/graphs/histogram.js.map +0 -1
  513. package/components/graphs/line.d.ts +0 -11
  514. package/components/graphs/line.js +0 -179
  515. package/components/graphs/line.js.map +0 -1
  516. package/components/graphs/lollipop.d.ts +0 -14
  517. package/components/graphs/lollipop.js +0 -164
  518. package/components/graphs/lollipop.js.map +0 -1
  519. package/components/graphs/meter.js +0 -284
  520. package/components/graphs/meter.js.map +0 -1
  521. package/components/graphs/pie.d.ts +0 -16
  522. package/components/graphs/pie.js +0 -438
  523. package/components/graphs/pie.js.map +0 -1
  524. package/components/graphs/radar.d.ts +0 -25
  525. package/components/graphs/radar.js +0 -737
  526. package/components/graphs/radar.js.map +0 -1
  527. package/components/graphs/scatter-stacked.d.ts +0 -8
  528. package/components/graphs/scatter-stacked.js +0 -140
  529. package/components/graphs/scatter-stacked.js.map +0 -1
  530. package/components/graphs/scatter.d.ts +0 -21
  531. package/components/graphs/scatter.js +0 -360
  532. package/components/graphs/scatter.js.map +0 -1
  533. package/components/graphs/skeleton-lines.d.ts +0 -11
  534. package/components/graphs/skeleton-lines.js +0 -84
  535. package/components/graphs/skeleton-lines.js.map +0 -1
  536. package/components/graphs/skeleton.d.ts +0 -22
  537. package/components/graphs/skeleton.js +0 -272
  538. package/components/graphs/skeleton.js.map +0 -1
  539. package/components/graphs/tree.js +0 -262
  540. package/components/graphs/tree.js.map +0 -1
  541. package/components/graphs/treemap.d.ts +0 -11
  542. package/components/graphs/treemap.js +0 -344
  543. package/components/graphs/treemap.js.map +0 -1
  544. package/components/graphs/wordcloud.d.ts +0 -12
  545. package/components/graphs/wordcloud.js +0 -268
  546. package/components/graphs/wordcloud.js.map +0 -1
  547. package/components/index.d.ts +0 -53
  548. package/components/index.js +0 -59
  549. package/components/index.js.map +0 -1
  550. package/components/layout/layout.js +0 -191
  551. package/components/layout/layout.js.map +0 -1
  552. package/components/layout/spacer.d.ts +0 -5
  553. package/components/layout/spacer.js +0 -33
  554. package/components/layout/spacer.js.map +0 -1
  555. package/configuration-non-customizable.d.ts +0 -263
  556. package/configuration-non-customizable.js +0 -276
  557. package/configuration-non-customizable.js.map +0 -1
  558. package/configuration.js +0 -552
  559. package/configuration.js.map +0 -1
  560. package/demo/create-codesandbox.d.ts +0 -65
  561. package/demo/create-codesandbox.js +0 -173
  562. package/demo/create-codesandbox.js.map +0 -1
  563. package/demo/data/CHART_TYPES.d.ts +0 -128
  564. package/demo/data/CHART_TYPES.js +0 -128
  565. package/demo/data/CHART_TYPES.js.map +0 -1
  566. package/demo/data/alluvial.d.ts +0 -109
  567. package/demo/data/alluvial.js +0 -328
  568. package/demo/data/alluvial.js.map +0 -1
  569. package/demo/data/area.d.ts +0 -224
  570. package/demo/data/area.js +0 -330
  571. package/demo/data/area.js.map +0 -1
  572. package/demo/data/bar.d.ts +0 -681
  573. package/demo/data/bar.js +0 -915
  574. package/demo/data/bar.js.map +0 -1
  575. package/demo/data/boxplot.d.ts +0 -34
  576. package/demo/data/boxplot.js +0 -48
  577. package/demo/data/boxplot.js.map +0 -1
  578. package/demo/data/bubble.d.ts +0 -141
  579. package/demo/data/bubble.js +0 -182
  580. package/demo/data/bubble.js.map +0 -1
  581. package/demo/data/bullet.d.ts +0 -24
  582. package/demo/data/bullet.js +0 -55
  583. package/demo/data/bullet.js.map +0 -1
  584. package/demo/data/bundle.js +0 -1
  585. package/demo/data/choropleth.d.ts +0 -738
  586. package/demo/data/choropleth.js +0 -1684
  587. package/demo/data/choropleth.js.map +0 -1
  588. package/demo/data/circle-pack.d.ts +0 -91
  589. package/demo/data/circle-pack.js +0 -224
  590. package/demo/data/circle-pack.js.map +0 -1
  591. package/demo/data/combo.d.ts +0 -482
  592. package/demo/data/combo.js +0 -571
  593. package/demo/data/combo.js.map +0 -1
  594. package/demo/data/donut.d.ts +0 -64
  595. package/demo/data/donut.js +0 -60
  596. package/demo/data/donut.js.map +0 -1
  597. package/demo/data/gauge.d.ts +0 -40
  598. package/demo/data/gauge.js +0 -41
  599. package/demo/data/gauge.js.map +0 -1
  600. package/demo/data/heatmap.d.ts +0 -125
  601. package/demo/data/heatmap.js +0 -1149
  602. package/demo/data/heatmap.js.map +0 -1
  603. package/demo/data/high-scale.d.ts +0 -1
  604. package/demo/data/high-scale.js +0 -5
  605. package/demo/data/high-scale.js.map +0 -1
  606. package/demo/data/hightlight.d.ts +0 -40
  607. package/demo/data/hightlight.js +0 -44
  608. package/demo/data/hightlight.js.map +0 -1
  609. package/demo/data/histogram.d.ts +0 -63
  610. package/demo/data/histogram.js +0 -312
  611. package/demo/data/histogram.js.map +0 -1
  612. package/demo/data/index.d.ts +0 -33
  613. package/demo/data/index.js +0 -1305
  614. package/demo/data/index.js.map +0 -1
  615. package/demo/data/line.d.ts +0 -361
  616. package/demo/data/line.js +0 -480
  617. package/demo/data/line.js.map +0 -1
  618. package/demo/data/lollipop.d.ts +0 -39
  619. package/demo/data/lollipop.js +0 -37
  620. package/demo/data/lollipop.js.map +0 -1
  621. package/demo/data/meter.d.ts +0 -95
  622. package/demo/data/meter.js +0 -114
  623. package/demo/data/meter.js.map +0 -1
  624. package/demo/data/pie.d.ts +0 -46
  625. package/demo/data/pie.js +0 -55
  626. package/demo/data/pie.js.map +0 -1
  627. package/demo/data/radar.d.ts +0 -63
  628. package/demo/data/radar.js +0 -118
  629. package/demo/data/radar.js.map +0 -1
  630. package/demo/data/scatter.d.ts +0 -118
  631. package/demo/data/scatter.js +0 -143
  632. package/demo/data/scatter.js.map +0 -1
  633. package/demo/data/step.d.ts +0 -96
  634. package/demo/data/step.js +0 -27
  635. package/demo/data/step.js.map +0 -1
  636. package/demo/data/time-series-axis.js +0 -436
  637. package/demo/data/time-series-axis.js.map +0 -1
  638. package/demo/data/toolbar.d.ts +0 -12
  639. package/demo/data/toolbar.js +0 -67
  640. package/demo/data/toolbar.js.map +0 -1
  641. package/demo/data/topojson-110.d.ts +0 -360
  642. package/demo/data/topojson-110.js +0 -40724
  643. package/demo/data/topojson-110.js.map +0 -1
  644. package/demo/data/tree.d.ts +0 -30
  645. package/demo/data/tree.js +0 -209
  646. package/demo/data/tree.js.map +0 -1
  647. package/demo/data/treemap.d.ts +0 -15
  648. package/demo/data/treemap.js +0 -93
  649. package/demo/data/treemap.js.map +0 -1
  650. package/demo/data/wordcloud.d.ts +0 -14
  651. package/demo/data/wordcloud.js +0 -105
  652. package/demo/data/wordcloud.js.map +0 -1
  653. package/demo/data/zoom-bar.d.ts +0 -94
  654. package/demo/data/zoom-bar.js +0 -187
  655. package/demo/data/zoom-bar.js.map +0 -1
  656. package/demo/styles.css.map +0 -1
  657. package/demo/styles.min.css +0 -1
  658. package/demo/styles.min.css.map +0 -1
  659. package/demo/tsconfig.tsbuildinfo +0 -1451
  660. package/demo/utils.d.ts +0 -24
  661. package/demo/utils.js +0 -222
  662. package/demo/utils.js.map +0 -1
  663. package/index.d.ts +0 -4
  664. package/index.js +0 -6
  665. package/index.js.map +0 -1
  666. package/interfaces/a11y.d.ts +0 -12
  667. package/interfaces/a11y.js +0 -14
  668. package/interfaces/a11y.js.map +0 -1
  669. package/interfaces/axis-scales.d.ts +0 -201
  670. package/interfaces/axis-scales.js +0 -1
  671. package/interfaces/axis-scales.js.map +0 -1
  672. package/interfaces/charts.js +0 -1
  673. package/interfaces/charts.js.map +0 -1
  674. package/interfaces/components.d.ts +0 -231
  675. package/interfaces/components.js +0 -1
  676. package/interfaces/components.js.map +0 -1
  677. package/interfaces/enums.d.ts +0 -261
  678. package/interfaces/enums.js +0 -296
  679. package/interfaces/enums.js.map +0 -1
  680. package/interfaces/events.d.ts +0 -239
  681. package/interfaces/events.js +0 -269
  682. package/interfaces/events.js.map +0 -1
  683. package/interfaces/index.d.ts +0 -7
  684. package/interfaces/index.js +0 -3
  685. package/interfaces/index.js.map +0 -1
  686. package/interfaces/layout.js +0 -1
  687. package/interfaces/layout.js.map +0 -1
  688. package/interfaces/model.d.ts +0 -35
  689. package/interfaces/model.js +0 -1
  690. package/interfaces/model.js.map +0 -1
  691. package/interfaces/truncation.d.ts +0 -17
  692. package/interfaces/truncation.js +0 -1
  693. package/interfaces/truncation.js.map +0 -1
  694. package/model/alluvial.d.ts +0 -8
  695. package/model/alluvial.js +0 -47
  696. package/model/alluvial.js.map +0 -1
  697. package/model/binned-charts.d.ts +0 -7
  698. package/model/binned-charts.js +0 -52
  699. package/model/binned-charts.js.map +0 -1
  700. package/model/boxplot.d.ts +0 -14
  701. package/model/boxplot.js +0 -174
  702. package/model/boxplot.js.map +0 -1
  703. package/model/bullet.d.ts +0 -14
  704. package/model/bullet.js +0 -74
  705. package/model/bullet.js.map +0 -1
  706. package/model/cartesian-charts.d.ts +0 -24
  707. package/model/cartesian-charts.js +0 -202
  708. package/model/cartesian-charts.js.map +0 -1
  709. package/model/choropleth.d.ts +0 -29
  710. package/model/choropleth.js +0 -105
  711. package/model/choropleth.js.map +0 -1
  712. package/model/circle-pack.d.ts +0 -36
  713. package/model/circle-pack.js +0 -189
  714. package/model/circle-pack.js.map +0 -1
  715. package/model/gauge.d.ts +0 -9
  716. package/model/gauge.js +0 -51
  717. package/model/gauge.js.map +0 -1
  718. package/model/heatmap.js +0 -220
  719. package/model/heatmap.js.map +0 -1
  720. package/model/meter.js +0 -118
  721. package/model/meter.js.map +0 -1
  722. package/model/model.js +0 -712
  723. package/model/model.js.map +0 -1
  724. package/model/pie.d.ts +0 -9
  725. package/model/pie.js +0 -66
  726. package/model/pie.js.map +0 -1
  727. package/model/radar.d.ts +0 -7
  728. package/model/radar.js +0 -52
  729. package/model/radar.js.map +0 -1
  730. package/model/tree.d.ts +0 -14
  731. package/model/tree.js +0 -56
  732. package/model/tree.js.map +0 -1
  733. package/model/treemap.d.ts +0 -8
  734. package/model/treemap.js +0 -44
  735. package/model/treemap.js.map +0 -1
  736. package/model/wordcloud.d.ts +0 -7
  737. package/model/wordcloud.js +0 -47
  738. package/model/wordcloud.js.map +0 -1
  739. package/polyfills.d.ts +0 -0
  740. package/polyfills.js +0 -29
  741. package/polyfills.js.map +0 -1
  742. package/services/angle-utils.js +0 -82
  743. package/services/angle-utils.js.map +0 -1
  744. package/services/canvas-zoom.d.ts +0 -11
  745. package/services/canvas-zoom.js +0 -72
  746. package/services/canvas-zoom.js.map +0 -1
  747. package/services/color-scale-utils.js +0 -64
  748. package/services/color-scale-utils.js.map +0 -1
  749. package/services/curves.d.ts +0 -25
  750. package/services/curves.js +0 -77
  751. package/services/curves.js.map +0 -1
  752. package/services/essentials/dom-utils.d.ts +0 -39
  753. package/services/essentials/dom-utils.js +0 -423
  754. package/services/essentials/dom-utils.js.map +0 -1
  755. package/services/essentials/events.d.ts +0 -8
  756. package/services/essentials/events.js +0 -53
  757. package/services/essentials/events.js.map +0 -1
  758. package/services/essentials/files.d.ts +0 -6
  759. package/services/essentials/files.js +0 -60
  760. package/services/essentials/files.js.map +0 -1
  761. package/services/essentials/gradient-utils.d.ts +0 -6
  762. package/services/essentials/gradient-utils.js +0 -85
  763. package/services/essentials/gradient-utils.js.map +0 -1
  764. package/services/essentials/transitions.d.ts +0 -13
  765. package/services/essentials/transitions.js +0 -51
  766. package/services/essentials/transitions.js.map +0 -1
  767. package/services/index.d.ts +0 -10
  768. package/services/index.js +0 -13
  769. package/services/index.js.map +0 -1
  770. package/services/scales-cartesian.d.ts +0 -86
  771. package/services/scales-cartesian.js +0 -656
  772. package/services/scales-cartesian.js.map +0 -1
  773. package/services/service.d.ts +0 -10
  774. package/services/service.js +0 -24
  775. package/services/service.js.map +0 -1
  776. package/services/time-series.js +0 -147
  777. package/services/time-series.js.map +0 -1
  778. package/services/zoom.d.ts +0 -21
  779. package/services/zoom.js +0 -217
  780. package/services/zoom.js.map +0 -1
  781. package/styles/components/_marker.scss +0 -7
  782. package/styles/components/diagrams/index.scss +0 -4
  783. package/styles.css +0 -6325
  784. package/styles.css.map +0 -1
  785. package/styles.min.css +0 -1
  786. package/styles.min.css.map +0 -1
  787. package/tools.js +0 -348
  788. package/tools.js.map +0 -1
  789. package/tsconfig.tsbuildinfo +0 -3816
  790. /package/{build/src → dist}/components/axes/ruler-stacked.d.ts +0 -0
  791. /package/{build/src → dist}/components/diagrams/markerDefinitions.d.ts +0 -0
  792. /package/{build/src → dist}/components/essentials/tooltip-axis.d.ts +0 -0
  793. /package/{build/demo/data → dist/demo/charts}/alluvial.d.ts +0 -0
  794. /package/{build/demo/data → dist/demo/charts}/area.d.ts +0 -0
  795. /package/{build/demo/data → dist/demo/charts}/bar.d.ts +0 -0
  796. /package/{build/demo/data → dist/demo/charts}/boxplot.d.ts +0 -0
  797. /package/{build/demo/data → dist/demo/charts}/bubble.d.ts +0 -0
  798. /package/{build/demo/data → dist/demo/charts}/bullet.d.ts +0 -0
  799. /package/{build/demo/data/CHART_TYPES.d.ts → dist/demo/charts/chart-types.d.ts} +0 -0
  800. /package/{build/demo/data → dist/demo/charts}/choropleth.d.ts +0 -0
  801. /package/{build/demo/data → dist/demo/charts}/circle-pack.d.ts +0 -0
  802. /package/{build/demo/data → dist/demo/charts}/combo.d.ts +0 -0
  803. /package/{build/demo/data → dist/demo/charts}/donut.d.ts +0 -0
  804. /package/{build/demo/data → dist/demo/charts}/gauge.d.ts +0 -0
  805. /package/{build/demo/data → dist/demo/charts}/heatmap.d.ts +0 -0
  806. /package/{build/demo/data → dist/demo/charts}/hightlight.d.ts +0 -0
  807. /package/{build/demo/data → dist/demo/charts}/histogram.d.ts +0 -0
  808. /package/{build/demo/data → dist/demo/charts}/line.d.ts +0 -0
  809. /package/{build/demo/data → dist/demo/charts}/lollipop.d.ts +0 -0
  810. /package/{build/demo/data → dist/demo/charts}/meter.d.ts +0 -0
  811. /package/{build/demo/data → dist/demo/charts}/pie.d.ts +0 -0
  812. /package/{build/demo/data → dist/demo/charts}/radar.d.ts +0 -0
  813. /package/{build/demo/data → dist/demo/charts}/scatter.d.ts +0 -0
  814. /package/{build/demo/data → dist/demo/charts}/step.d.ts +0 -0
  815. /package/{build/demo/data → dist/demo/charts}/toolbar.d.ts +0 -0
  816. /package/{build/demo/data → dist/demo/charts}/topojson-110.d.ts +0 -0
  817. /package/{build/demo/data → dist/demo/charts}/tree.d.ts +0 -0
  818. /package/{build/demo/data → dist/demo/charts}/treemap.d.ts +0 -0
  819. /package/{build/demo/data → dist/demo/charts}/wordcloud.d.ts +0 -0
  820. /package/{build/src → dist}/interfaces/a11y.d.ts +0 -0
  821. /package/{build/src → dist}/interfaces/enums.d.ts +0 -0
  822. /package/{build/src → dist}/interfaces/events.d.ts +0 -0
  823. /package/{build/src → dist}/model/alluvial.d.ts +0 -0
  824. /package/{build/src → dist}/model/boxplot.d.ts +0 -0
  825. /package/{build/src → dist}/model/bullet.d.ts +0 -0
  826. /package/{build/src → dist}/model/choropleth.d.ts +0 -0
  827. /package/{build/src → dist}/model/circle-pack.d.ts +0 -0
  828. /package/{build/src → dist}/model/gauge.d.ts +0 -0
  829. /package/{build/src → dist}/model/pie.d.ts +0 -0
  830. /package/{build/src → dist}/model/radar.d.ts +0 -0
  831. /package/{build/src → dist}/model/tree.d.ts +0 -0
  832. /package/{build/src → dist}/model/treemap.d.ts +0 -0
  833. /package/{build/src → dist}/model/wordcloud.d.ts +0 -0
  834. /package/{build/src → dist}/services/canvas-zoom.d.ts +0 -0
  835. /package/{styles → dist/styles}/_type.scss +0 -0
  836. /package/{styles → dist/styles}/components/_axis.scss +0 -0
  837. /package/{styles → dist/styles}/components/_callouts.scss +0 -0
  838. /package/{styles → dist/styles}/components/_grid-brush.scss +0 -0
  839. /package/{styles → dist/styles}/components/_highlights.scss +0 -0
  840. /package/{styles → dist/styles}/components/_layout.scss +0 -0
  841. /package/{styles → dist/styles}/components/_legend.scss +0 -0
  842. /package/{styles → dist/styles}/components/_modal.scss +0 -0
  843. /package/{styles → dist/styles}/components/_ruler.scss +0 -0
  844. /package/{styles → dist/styles}/components/_skeleton-lines.scss +0 -0
  845. /package/{styles → dist/styles}/components/_skeleton.scss +0 -0
  846. /package/{styles → dist/styles}/components/_threshold.scss +0 -0
  847. /package/{styles → dist/styles}/components/_title.scss +0 -0
  848. /package/{styles → dist/styles}/components/_toolbar.scss +0 -0
  849. /package/{styles → dist/styles}/components/_zero-line.scss +0 -0
  850. /package/{styles → dist/styles}/components/_zoom-bar.scss +0 -0
  851. /package/{styles → dist/styles}/components/diagrams/_marker.scss +0 -0
  852. /package/{styles → dist/styles}/components/index.scss +0 -0
  853. /package/{styles → dist/styles}/graphs/_area.scss +0 -0
  854. /package/{styles → dist/styles}/graphs/_bubble.scss +0 -0
  855. /package/{styles → dist/styles}/graphs/_choropleth.scss +0 -0
  856. /package/{styles → dist/styles}/graphs/_donut.scss +0 -0
  857. /package/{styles → dist/styles}/graphs/_line.scss +0 -0
  858. /package/{styles → dist/styles}/graphs/_lollipop.scss +0 -0
  859. /package/{styles → dist/styles}/graphs/_pie.scss +0 -0
  860. /package/{styles → dist/styles}/graphs/_scatter.scss +0 -0
  861. /package/{styles → dist/styles}/graphs/_treemap.scss +0 -0
  862. /package/{styles → dist/styles}/graphs/_wordcloud.scss +0 -0
  863. /package/{styles → dist/styles}/graphs/index.scss +0 -0
package/package.json CHANGED
@@ -1,28 +1,146 @@
1
1
  {
2
2
  "name": "@carbon/charts",
3
- "version": "1.8.0",
3
+ "version": "1.9.0-rc.1",
4
4
  "description": "Carbon charting components",
5
- "main": "./bundle.js",
6
- "module": "./index.js",
5
+ "module": "./dist/index.mjs",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ "./styles.min.css": "./dist/styles.min.css",
11
+ "./styles.css": "./dist/styles.css",
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "browser": {
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.js"
17
+ },
18
+ "node": {
19
+ "import": "./dist/index.mjs",
20
+ "require": "./dist/index.js"
21
+ }
22
+ },
23
+ "./components": {
24
+ "types": "./dist/components/index.d.ts",
25
+ "import": "./dist/components/index.mjs",
26
+ "require": "./dist/components/index.js"
27
+ },
28
+ "./demo/styles.css": "./dist/demo/styles.css",
29
+ "./demo": {
30
+ "types": "./dist/demo/index.d.ts",
31
+ "import": "./dist/demo/index.mjs",
32
+ "require": "./dist/demo/index.js"
33
+ },
34
+ "./interfaces": {
35
+ "types": "./dist/interfaces/index.d.ts",
36
+ "import": "./dist/interfaces/index.mjs",
37
+ "require": "./dist/interfaces/index.js"
38
+ },
39
+ "./model": {
40
+ "types": "./dist/model/index.d.ts",
41
+ "import": "./dist/model/index.mjs",
42
+ "require": "./dist/model/index.js"
43
+ },
44
+ "./services": {
45
+ "types": "./dist/services/index.d.ts",
46
+ "import": "./dist/services/index.mjs",
47
+ "require": "./dist/services/index.js"
48
+ }
49
+ },
50
+ "files": [
51
+ "dist",
52
+ "CHANGELOG.md"
53
+ ],
7
54
  "scripts": {
8
- "demo:build": "build-storybook -o demo/bundle -s ./.storybook/assets --quiet && yarn run docs:build",
9
- "demo:server": "yarn run storybook",
10
- "docs:build": "typedoc --tsconfig ./src/tsconfig.json --ignoreCompilerErrors --out ./demo/bundle/documentation ./src/index.ts",
11
- "build": "bash build.sh",
12
- "lint": "tslint -p tsconfig.json -c tslint.json",
13
- "test": "karma start --single-run",
14
- "test:watch": "karma start --no-single-run",
15
- "clean": "rm -rf dist demo/bundle",
16
- "format": "prettier . --write \"**/*.{scss,css,js,ts,md}\"",
17
- "start": "yarn run storybook",
18
- "storybook": "start-storybook -p 9006 -c .storybook -s ./.storybook/assets",
19
- "postinstall": "carbon-telemetry collect --install"
55
+ "postinstall": "carbon-telemetry collect --install",
56
+ "file:scss:charts": "cp -a src/styles/. dist/styles",
57
+ "file:css:charts": "sass src/styles/styles.scss dist/styles.css --load-path=./node_modules --load-path=../../node_modules",
58
+ "file:css:min:charts": "sass src/styles/styles.scss dist/styles.min.css --style=compressed --load-path=./node_modules --load-path=../../node_modules",
59
+ "file:css:demo": "sass src/demo/styles.scss dist/demo/styles.css --load-path=./node_modules --load-path=../../node_modules",
60
+ "postbundle": "concurrently \"yarn:file:*\"",
61
+ "build:package": "vite build && yarn postbundle",
62
+ "demo:docs": "typedoc ./src/index.ts --out ./demo/bundle/documentation",
63
+ "demo:storybook": "storybook build -o demo/bundle --quiet",
64
+ "build:demo": "concurrently \"yarn:demo:*\"",
65
+ "build": "yarn build:package && yarn build:demo",
66
+ "storybook": "storybook dev -p 9006",
67
+ "start": "yarn storybook",
68
+ "test": "vitest",
69
+ "test:coverage": "vitest run --coverage",
70
+ "lint": "eslint . --ext .js,.cjs,.mjs,.ts --fix --ignore-path ../../.eslintignore",
71
+ "format": "prettier . --write \"**/*.{scss,css,js,ts,mjs,cjs,md}\" --ignore-path ../../.eslintignore",
72
+ "clean": "rm -rf dist demo/bundle"
20
73
  },
21
74
  "repository": {
22
75
  "type": "git",
23
76
  "url": "git@github.com:carbon-design-system/carbon-charts.git",
24
77
  "homepage": "https://carbon-design-system.github.io/carbon-charts/"
25
78
  },
79
+ "dependencies": {
80
+ "@carbon/colors": "^11.15.0",
81
+ "@carbon/import-once": "^10.7.0",
82
+ "@carbon/layout": "^11.14.0",
83
+ "@carbon/styles": "^1.30.0",
84
+ "@carbon/telemetry": "~0.1.0",
85
+ "@carbon/themes": "^11.19.0",
86
+ "@carbon/utils-position": "^1.1.4",
87
+ "carbon-components": "^10.58.7",
88
+ "d3": "7.8.5",
89
+ "d3-cloud": "^1.2.5",
90
+ "d3-sankey": "^0.12.3",
91
+ "date-fns": "^2.30.0",
92
+ "dom-to-image-more": "^3.1.6",
93
+ "lodash-es": "^4.17.21",
94
+ "resize-observer-polyfill": "^1.5.1",
95
+ "topojson-client": "3.1.0",
96
+ "tslib": "^2.5.3"
97
+ },
98
+ "peerDependencies": {
99
+ "d3": "^7.0.0",
100
+ "d3-cloud": "^1.2.5",
101
+ "d3-sankey": "^0.12.3"
102
+ },
103
+ "devDependencies": {
104
+ "@babel/core": "^7.22.1",
105
+ "@rushstack/eslint-patch": "^1.3.0",
106
+ "@stackblitz/sdk": "^1.9.0",
107
+ "@storybook/addon-essentials": "^7.0.18",
108
+ "@storybook/addon-interactions": "^7.0.18",
109
+ "@storybook/addon-links": "^7.0.18",
110
+ "@storybook/blocks": "^7.0.18",
111
+ "@storybook/html": "^7.0.18",
112
+ "@storybook/html-vite": "^7.0.18",
113
+ "@storybook/manager-api": "^7.0.18",
114
+ "@storybook/testing-library": "^0.1.0",
115
+ "@storybook/theming": "^7.0.18",
116
+ "@types/d3": "^7.4.0",
117
+ "@types/d3-cloud": "^1.2.5",
118
+ "@types/d3-sankey": "^0.12.1",
119
+ "@types/lodash-es": "^4.17.7",
120
+ "@types/topojson": "^3.2.3",
121
+ "@typescript-eslint/eslint-plugin": "^5.59.9",
122
+ "@typescript-eslint/parser": "^5.59.9",
123
+ "codesandbox": "^2.2.3",
124
+ "concurrently": "^8.1.0",
125
+ "eslint": "^8.42.0",
126
+ "eslint-config-prettier": "^8.8.0",
127
+ "eslint-plugin-storybook": "^0.6.12",
128
+ "jsdom": "^22.1.0",
129
+ "prettier": "^2.8.8",
130
+ "react": "^18.2.0",
131
+ "react-dom": "^18.2.0",
132
+ "sass": "^1.62.1",
133
+ "storybook": "^7.0.18",
134
+ "typedoc": "^0.24.8",
135
+ "typescript": "^5.1.3",
136
+ "vite": "^4.3.9",
137
+ "vite-plugin-dts": "~2.3.0",
138
+ "vitest": "^0.31.4"
139
+ },
140
+ "prettier": "../../prettier.config.cjs",
141
+ "publishConfig": {
142
+ "access": "public"
143
+ },
26
144
  "keywords": [
27
145
  "carbon",
28
146
  "charts",
@@ -47,90 +165,6 @@
47
165
  ],
48
166
  "author": "IBM",
49
167
  "license": "Apache-2.0",
50
- "dependencies": {
51
- "@carbon/styles": "^1.4.0",
52
- "@carbon/telemetry": "^0.1.0",
53
- "@carbon/utils-position": "^1.1.4",
54
- "carbon-components": "^10.58.3",
55
- "d3-cloud": "1.2.5",
56
- "d3-sankey": "0.12.3",
57
- "date-fns": "2.8.1",
58
- "dom-to-image-more": "^3.1.6",
59
- "lodash-es": "4.17.21",
60
- "resize-observer-polyfill": "1.5.0",
61
- "topojson-client": "3.1.0"
62
- },
63
- "peerDependencies": {
64
- "d3": "7.x"
65
- },
66
- "devDependencies": {
67
- "@carbon/colors": "^11.13.0",
68
- "@carbon/elements": "^11.20.0",
69
- "@carbon/grid": "^11.12.0",
70
- "@carbon/import-once": "^10.7.0",
71
- "@carbon/layout": "^11.12.0",
72
- "@carbon/motion": "^11.10.0",
73
- "@carbon/themes": "^11.17.0",
74
- "@carbon/type": "^11.16.0",
75
- "@rollup/plugin-json": "4.0.2",
76
- "@rollup/plugin-replace": "3.0.0",
77
- "@storybook/addon-knobs": "5.3.12",
78
- "@storybook/addon-options": "5.3.12",
79
- "@storybook/html": "5.3.12",
80
- "@storybook/preset-typescript": "1.1.0",
81
- "@types/d3": "7.0.0",
82
- "@types/jasmine": "2.8.7",
83
- "@types/karma": "3.0.2",
84
- "@types/node": "^12.0.0",
85
- "babel-core": "6.26.0",
86
- "babel-loader": "7.1.2",
87
- "babel-polyfill": "6.26.0",
88
- "codesandbox": "2.1.11",
89
- "concurrently": "5.1.0",
90
- "copy-webpack-plugin": "4.5.2",
91
- "css-loader": "0.28.7",
92
- "d3": "7.0.0",
93
- "extract-text-webpack-plugin": "3.0.2",
94
- "file-loader": "1.1.5",
95
- "fork-ts-checker-webpack-plugin": "^4.0.5",
96
- "highlight.js": "10.5.0",
97
- "html-loader": "0.5.1",
98
- "html-webpack-exclude-assets-plugin": "0.0.7",
99
- "html-webpack-plugin": "3.2.0",
100
- "jasmine-core": "3.4.0",
101
- "karma": "4.0.1",
102
- "karma-chrome-launcher": "2.2.0",
103
- "karma-firefox-launcher": "1.1.0",
104
- "karma-jasmine": "2.0.1",
105
- "karma-safari-launcher": "1.0.0",
106
- "karma-webpack": "4.0.2",
107
- "lerna": "3.13.4",
108
- "marked": "0.8.2",
109
- "mini-css-extract-plugin": "0.9.0",
110
- "raw-loader": "0.5.1",
111
- "react-docgen-typescript-loader": "^3.6.0",
112
- "rollup": "1.27.10",
113
- "rollup-plugin-commonjs": "10.1.0",
114
- "rollup-plugin-node-resolve": "5.2.0",
115
- "rollup-plugin-terser": "5.1.2",
116
- "rollup-plugin-typescript2": "0.26.0",
117
- "sass": "1.49.9",
118
- "sass-loader": "10.1.1",
119
- "style-loader": "0.19.0",
120
- "ts-loader": "^6.2.1",
121
- "tslint": "5.20.1",
122
- "tslint-loader": "3.5.3",
123
- "typedoc": "0.11.1",
124
- "typescript": "3.7.5",
125
- "url-loader": "0.6.2",
126
- "webpack": "4.41.0",
127
- "webpack-cli": "3.3.11",
128
- "webpack-dev-server": "3.7.0"
129
- },
130
- "publishConfig": {
131
- "directory": "dist",
132
- "access": "public"
133
- },
134
168
  "maintainers": [
135
169
  {
136
170
  "name": "Eliad Moosavi",
@@ -144,5 +178,6 @@
144
178
  "email": "iliadm@ca.ibm.com",
145
179
  "url": "https://github.com/theiliad"
146
180
  }
147
- ]
148
- }
181
+ ],
182
+ "gitHead": "f7b723609827ce3cb7634ab7b3e3fdaeab6d304b"
183
+ }
package/LICENSE.md DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "{}"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2018 IBM
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
package/axis-chart.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { Chart } from './chart';
2
- import { ChartModelCartesian } from './model/cartesian-charts';
3
- import { ChartConfig, AxisChartOptions } from './interfaces';
4
- import { Modal, LayoutComponent, AxisChartsTooltip } from './components';
5
- export declare class AxisChart extends Chart {
6
- services: any;
7
- model: ChartModelCartesian;
8
- constructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>);
9
- protected getAxisChartComponents(graphFrameComponents: any[], configs?: any): (LayoutComponent | AxisChartsTooltip | Modal)[];
10
- }
package/axis-chart.js DELETED
@@ -1,169 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __spreadArrays = (this && this.__spreadArrays) || function () {
15
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
16
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
17
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
18
- r[k] = a[j];
19
- return r;
20
- };
21
- import { Chart } from './chart';
22
- import { ChartModelCartesian } from './model/cartesian-charts';
23
- import { LayoutDirection, LayoutGrowth, LegendOrientations, LegendPositions, AxisPositions, ScaleTypes, RenderTypes, LayoutAlignItems, } from './interfaces';
24
- import { ChartBrush, ChartClip, Modal, LayoutComponent, Legend, Threshold, Highlight, Title, AxisChartsTooltip, Spacer, Toolbar, ZoomBar, } from './components';
25
- import * as Tools from './tools';
26
- import { CartesianScales, Curves, Zoom } from './services';
27
- var AxisChart = /** @class */ (function (_super) {
28
- __extends(AxisChart, _super);
29
- function AxisChart(holder, chartConfigs) {
30
- var _this = _super.call(this, holder, chartConfigs) || this;
31
- _this.services = Object.assign(_this.services, {
32
- cartesianScales: CartesianScales,
33
- curves: Curves,
34
- zoom: Zoom,
35
- });
36
- _this.model = new ChartModelCartesian(_this.services);
37
- return _this;
38
- }
39
- AxisChart.prototype.getAxisChartComponents = function (graphFrameComponents, configs) {
40
- var options = this.model.getOptions();
41
- var isZoomBarEnabled = Tools.getProperty(options, 'zoomBar', AxisPositions.TOP, 'enabled');
42
- var toolbarEnabled = Tools.getProperty(options, 'toolbar', 'enabled');
43
- this.services.cartesianScales.determineAxisDuality();
44
- this.services.cartesianScales.findDomainAndRangeAxes(); // need to do this before getMainXAxisPosition()
45
- this.services.cartesianScales.determineOrientation();
46
- var mainXAxisPosition = this.services.cartesianScales.getMainXAxisPosition();
47
- var mainXScaleType = Tools.getProperty(options, 'axes', mainXAxisPosition, 'scaleType');
48
- // @todo - Zoom Bar only supports main axis at BOTTOM axis and time scale for now
49
- var zoomBarEnabled = isZoomBarEnabled &&
50
- mainXAxisPosition === AxisPositions.BOTTOM &&
51
- mainXScaleType === ScaleTypes.TIME;
52
- // @todo - should check if zoom bar in all axes are locked
53
- var isZoomBarLocked = this.services.zoom.isZoomBarLocked(AxisPositions.TOP);
54
- var titleAvailable = !!this.model.getOptions().title;
55
- var titleComponent = {
56
- id: 'title',
57
- components: [new Title(this.model, this.services)],
58
- growth: LayoutGrowth.STRETCH,
59
- };
60
- var toolbarComponent = {
61
- id: 'toolbar',
62
- components: [new Toolbar(this.model, this.services)],
63
- growth: LayoutGrowth.PREFERRED,
64
- };
65
- var headerComponent = {
66
- id: 'header',
67
- components: [
68
- new LayoutComponent(this.model, this.services, __spreadArrays([
69
- // always add title to keep layout correct
70
- titleComponent
71
- ], (toolbarEnabled ? [toolbarComponent] : [])), {
72
- direction: LayoutDirection.ROW,
73
- alignItems: LayoutAlignItems.CENTER,
74
- }),
75
- ],
76
- growth: LayoutGrowth.PREFERRED,
77
- };
78
- var legendComponent = {
79
- id: 'legend',
80
- components: [new Legend(this.model, this.services)],
81
- growth: LayoutGrowth.PREFERRED,
82
- };
83
- // if all zoom bars are locked, no need to add chart brush
84
- if (zoomBarEnabled && !isZoomBarLocked) {
85
- graphFrameComponents.push(new ChartClip(this.model, this.services), new ChartBrush(this.model, this.services));
86
- }
87
- graphFrameComponents.push(new Threshold(this.model, this.services));
88
- graphFrameComponents.push(new Highlight(this.model, this.services));
89
- var graphFrameComponent = {
90
- id: 'graph-frame',
91
- components: graphFrameComponents,
92
- growth: LayoutGrowth.STRETCH,
93
- renderType: RenderTypes.SVG,
94
- };
95
- var isLegendEnabled = Tools.getProperty(configs, 'legend', 'enabled') !== false &&
96
- this.model.getOptions().legend.enabled !== false;
97
- // Decide the position of the legend in reference to the chart
98
- var fullFrameComponentDirection = LayoutDirection.COLUMN;
99
- if (isLegendEnabled) {
100
- var legendPosition = Tools.getProperty(this.model.getOptions(), 'legend', 'position');
101
- if (legendPosition === LegendPositions.LEFT) {
102
- fullFrameComponentDirection = LayoutDirection.ROW;
103
- if (!this.model.getOptions().legend.orientation) {
104
- this.model.getOptions().legend.orientation =
105
- LegendOrientations.VERTICAL;
106
- }
107
- }
108
- else if (legendPosition === LegendPositions.RIGHT) {
109
- fullFrameComponentDirection = LayoutDirection.ROW_REVERSE;
110
- if (!this.model.getOptions().legend.orientation) {
111
- this.model.getOptions().legend.orientation =
112
- LegendOrientations.VERTICAL;
113
- }
114
- }
115
- else if (legendPosition === LegendPositions.BOTTOM) {
116
- fullFrameComponentDirection = LayoutDirection.COLUMN_REVERSE;
117
- }
118
- }
119
- var legendSpacerComponent = {
120
- id: 'spacer',
121
- components: [new Spacer(this.model, this.services)],
122
- growth: LayoutGrowth.PREFERRED,
123
- };
124
- var fullFrameComponent = {
125
- id: 'full-frame',
126
- components: [
127
- new LayoutComponent(this.model, this.services, __spreadArrays((isLegendEnabled ? [legendComponent] : []), (isLegendEnabled ? [legendSpacerComponent] : []), [
128
- graphFrameComponent,
129
- ]), {
130
- direction: fullFrameComponentDirection,
131
- }),
132
- ],
133
- growth: LayoutGrowth.STRETCH,
134
- };
135
- var zoomBarComponent = {
136
- id: 'zoom-bar',
137
- components: [new ZoomBar(this.model, this.services)],
138
- growth: LayoutGrowth.PREFERRED,
139
- renderType: RenderTypes.SVG,
140
- };
141
- var topLevelLayoutComponents = [];
142
- // header component is required for either title or toolbar
143
- if (titleAvailable || toolbarEnabled) {
144
- topLevelLayoutComponents.push(headerComponent);
145
- var titleSpacerComponent = {
146
- id: 'spacer',
147
- components: [
148
- new Spacer(this.model, this.services, toolbarEnabled ? { size: 15 } : undefined),
149
- ],
150
- growth: LayoutGrowth.PREFERRED,
151
- };
152
- topLevelLayoutComponents.push(titleSpacerComponent);
153
- }
154
- if (zoomBarEnabled) {
155
- topLevelLayoutComponents.push(zoomBarComponent);
156
- }
157
- topLevelLayoutComponents.push(fullFrameComponent);
158
- return [
159
- new AxisChartsTooltip(this.model, this.services),
160
- new Modal(this.model, this.services),
161
- new LayoutComponent(this.model, this.services, topLevelLayoutComponents, {
162
- direction: LayoutDirection.COLUMN,
163
- }),
164
- ];
165
- };
166
- return AxisChart;
167
- }(Chart));
168
- export { AxisChart };
169
- //# sourceMappingURL=../src/axis-chart.js.map