@carbon/charts 1.7.6 → 1.9.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (840) hide show
  1. package/CHANGELOG.md +97 -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/{components → dist/components}/essentials/color-scale-legend.d.ts +20 -17
  68. package/dist/components/essentials/geo-projection.d.ts +16 -0
  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/{build/src → dist}/components/essentials/title-meter.d.ts +4 -4
  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/dist/components/graphs/choropleth.d.ts +6 -0
  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/{build/src → dist}/components/layout/layout.d.ts +5 -4
  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 -44
  116. package/{build/demo/data/CHART_TYPES.d.ts → dist/demo/charts/chart-types.d.ts} +5 -0
  117. package/dist/demo/charts/choropleth.d.ts +738 -0
  118. package/dist/demo/charts/index.d.ts +62 -0
  119. package/{build/demo/data → dist/demo/charts}/time-series-axis.d.ts +60 -135
  120. package/dist/demo/charts/topojson-110.d.ts +360 -0
  121. package/{build/demo/data → dist/demo/charts}/zoom-bar.d.ts +12 -27
  122. package/dist/demo/index.d.ts +4 -0
  123. package/dist/demo/index.js +470 -0
  124. package/dist/demo/index.js.map +1 -0
  125. package/dist/demo/index.mjs +51786 -0
  126. package/dist/demo/index.mjs.map +1 -0
  127. package/{demo → dist/demo}/styles.css +419 -1050
  128. package/dist/demo/styles.css.map +1 -0
  129. package/dist/demo/utils/index.d.ts +2 -0
  130. package/dist/demo/utils/sandbox.d.ts +39 -0
  131. package/dist/demo/utils/story-widgets.d.ts +7 -0
  132. package/dist/enums-a96ef472.mjs +89 -0
  133. package/dist/enums-a96ef472.mjs.map +1 -0
  134. package/dist/enums-aa2efd99.js +2 -0
  135. package/dist/enums-aa2efd99.js.map +1 -0
  136. package/dist/index-822564ed.js +2 -0
  137. package/dist/index-822564ed.js.map +1 -0
  138. package/dist/index-a266373c.mjs +749 -0
  139. package/dist/index-a266373c.mjs.map +1 -0
  140. package/dist/index-becfb567.mjs +72 -0
  141. package/dist/index-becfb567.mjs.map +1 -0
  142. package/dist/index-d865d500.js +2 -0
  143. package/dist/index-d865d500.js.map +1 -0
  144. package/dist/index-ec554115.mjs +62 -0
  145. package/dist/index-ec554115.mjs.map +1 -0
  146. package/dist/index-f23685eb.js +2 -0
  147. package/dist/index-f23685eb.js.map +1 -0
  148. package/dist/index.d.ts +11 -0
  149. package/dist/index.js +2 -0
  150. package/dist/index.js.map +1 -0
  151. package/dist/index.mjs +1121 -0
  152. package/dist/index.mjs.map +1 -0
  153. package/{build/src → dist}/interfaces/axis-scales.d.ts +11 -11
  154. package/{interfaces → dist/interfaces}/charts.d.ts +517 -485
  155. package/{build/src → dist}/interfaces/components.d.ts +11 -11
  156. package/{build/src → dist}/interfaces/enums.d.ts +12 -0
  157. package/{build/src → dist}/interfaces/events.d.ts +9 -0
  158. package/dist/interfaces/index.d.ts +11 -0
  159. package/dist/interfaces/index.js +2 -0
  160. package/dist/interfaces/index.js.map +1 -0
  161. package/dist/interfaces/index.mjs +58 -0
  162. package/dist/interfaces/index.mjs.map +1 -0
  163. package/{interfaces → dist/interfaces}/layout.d.ts +21 -15
  164. package/{build/src → dist}/interfaces/model.d.ts +2 -2
  165. package/dist/interfaces/services.d.ts +20 -0
  166. package/{build/src → dist}/interfaces/truncation.d.ts +2 -2
  167. package/{build/src → dist}/model/binned-charts.d.ts +1 -1
  168. package/{build/src → dist}/model/cartesian-charts.d.ts +2 -2
  169. package/dist/model/choropleth.d.ts +29 -0
  170. package/{build/src → dist}/model/heatmap.d.ts +5 -5
  171. package/dist/model/index.d.ts +16 -0
  172. package/dist/model/index.js +3 -0
  173. package/dist/model/index.js.map +1 -0
  174. package/dist/model/index.mjs +1107 -0
  175. package/dist/model/index.mjs.map +1 -0
  176. package/{model → dist/model}/meter.d.ts +20 -19
  177. package/{model → dist/model}/model.d.ts +110 -107
  178. package/{services → dist/services}/angle-utils.d.ts +15 -16
  179. package/dist/services/color-scale-utils.d.ts +2 -0
  180. package/dist/services/curves.d.ts +24 -0
  181. package/dist/services/essentials/dom-utils.d.ts +45 -0
  182. package/dist/services/essentials/events.d.ts +8 -0
  183. package/dist/services/essentials/files.d.ts +7 -0
  184. package/{build/src → dist}/services/essentials/gradient-utils.d.ts +2 -2
  185. package/dist/services/essentials/index.d.ts +5 -0
  186. package/dist/services/essentials/transitions.d.ts +13 -0
  187. package/dist/services/index.d.ts +9 -0
  188. package/dist/services/index.js +2 -0
  189. package/dist/services/index.js.map +1 -0
  190. package/dist/services/index.mjs +32 -0
  191. package/dist/services/index.mjs.map +1 -0
  192. package/dist/services/scales-cartesian.d.ts +89 -0
  193. package/dist/services/service.d.ts +11 -0
  194. package/{services → dist/services}/time-series.d.ts +13 -13
  195. package/{build/src → dist}/services/zoom.d.ts +2 -2
  196. package/{styles → dist/styles}/_chart-holder.scss +5 -5
  197. package/{styles → dist/styles}/color-palatte.scss +160 -64
  198. package/{styles → dist/styles}/colors.scss +7 -16
  199. package/{styles → dist/styles}/components/_color-legend.scss +2 -2
  200. package/{styles → dist/styles}/components/_edge.scss +4 -4
  201. package/{styles → dist/styles}/components/_grid.scss +2 -2
  202. package/dist/styles/components/_marker.scss +7 -0
  203. package/{styles → dist/styles}/components/_meter-title.scss +2 -2
  204. package/{styles → dist/styles}/components/_tooltip.scss +3 -3
  205. package/{styles → dist/styles}/components/diagrams/_card-node.scss +3 -3
  206. package/{styles → dist/styles}/components/diagrams/_edge.scss +5 -5
  207. package/{styles → dist/styles}/components/diagrams/_shape-node.scss +3 -3
  208. package/dist/styles/components/diagrams/index.scss +4 -0
  209. package/{styles → dist/styles}/graphs/_alluvial.scss +2 -2
  210. package/{styles → dist/styles}/graphs/_bullet.scss +3 -3
  211. package/dist/styles/graphs/_choropleth.scss +18 -0
  212. package/{styles → dist/styles}/graphs/_circle-pack.scss +1 -1
  213. package/{styles → dist/styles}/graphs/_gauge.scss +1 -1
  214. package/{styles → dist/styles}/graphs/_heatmap.scss +2 -2
  215. package/{styles → dist/styles}/graphs/_meter.scss +1 -1
  216. package/{styles → dist/styles}/graphs/_radar.scss +1 -1
  217. package/{styles → dist/styles}/graphs/_scatter-stacked.scss +1 -1
  218. package/{styles → dist/styles}/graphs/_tree.scss +2 -3
  219. package/{styles → dist/styles}/graphs/index.scss +1 -0
  220. package/{styles → dist/styles}/styles.scss +8 -3
  221. package/{styles → dist/styles}/tokens.scss +97 -106
  222. package/dist/styles.css +28264 -0
  223. package/dist/styles.css.map +1 -0
  224. package/dist/styles.min.css +1 -0
  225. package/dist/styles.min.css.map +1 -0
  226. package/{tools.d.ts → dist/tools.d.ts} +144 -144
  227. package/package.json +136 -100
  228. package/axis-chart.d.ts +0 -10
  229. package/axis-chart.js +0 -169
  230. package/axis-chart.js.map +0 -1
  231. package/build/demo/create-codesandbox.d.ts +0 -113
  232. package/build/demo/data/high-scale.d.ts +0 -1
  233. package/build/demo/data/index.d.ts +0 -32
  234. package/build/demo/utils.d.ts +0 -40
  235. package/build/src/axis-chart.d.ts +0 -10
  236. package/build/src/chart.d.ts +0 -14
  237. package/build/src/charts/alluvial.d.ts +0 -8
  238. package/build/src/charts/area-stacked.d.ts +0 -6
  239. package/build/src/charts/area.d.ts +0 -6
  240. package/build/src/charts/bar-grouped.d.ts +0 -6
  241. package/build/src/charts/bar-simple.d.ts +0 -6
  242. package/build/src/charts/bar-stacked.d.ts +0 -6
  243. package/build/src/charts/boxplot.d.ts +0 -8
  244. package/build/src/charts/bubble.d.ts +0 -6
  245. package/build/src/charts/bullet.d.ts +0 -8
  246. package/build/src/charts/circle-pack.d.ts +0 -8
  247. package/build/src/charts/combo.d.ts +0 -7
  248. package/build/src/charts/donut.d.ts +0 -6
  249. package/build/src/charts/gauge.d.ts +0 -8
  250. package/build/src/charts/heatmap.d.ts +0 -10
  251. package/build/src/charts/histogram.d.ts +0 -8
  252. package/build/src/charts/index.d.ts +0 -24
  253. package/build/src/charts/line.d.ts +0 -6
  254. package/build/src/charts/lollipop.d.ts +0 -6
  255. package/build/src/charts/meter.d.ts +0 -8
  256. package/build/src/charts/pie.d.ts +0 -8
  257. package/build/src/charts/radar.d.ts +0 -8
  258. package/build/src/charts/scatter.d.ts +0 -6
  259. package/build/src/charts/tree.d.ts +0 -8
  260. package/build/src/charts/treemap.d.ts +0 -8
  261. package/build/src/charts/wordcloud.d.ts +0 -8
  262. package/build/src/components/axes/axis.d.ts +0 -24
  263. package/build/src/components/axes/grid-brush.d.ts +0 -10
  264. package/build/src/components/axes/grid.d.ts +0 -22
  265. package/build/src/components/axes/ruler-binned.d.ts +0 -7
  266. package/build/src/components/axes/ruler.d.ts +0 -27
  267. package/build/src/components/axes/two-dimensional-axes.d.ts +0 -16
  268. package/build/src/components/axes/zero-line.d.ts +0 -7
  269. package/build/src/components/axes/zoom-bar.d.ts +0 -28
  270. package/build/src/components/diagrams/buildPaths.d.ts +0 -63
  271. package/build/src/components/essentials/canvas-chart-clip.d.ts +0 -6
  272. package/build/src/components/essentials/color-scale-legend.d.ts +0 -17
  273. package/build/src/components/essentials/modal.d.ts +0 -14
  274. package/build/src/components/essentials/title.d.ts +0 -20
  275. package/build/src/components/graphs/alluvial.d.ts +0 -14
  276. package/build/src/components/graphs/area-stacked.d.ts +0 -11
  277. package/build/src/components/graphs/area.d.ts +0 -12
  278. package/build/src/components/graphs/boxplot.d.ts +0 -9
  279. package/build/src/components/graphs/bullet.d.ts +0 -12
  280. package/build/src/components/graphs/histogram.d.ts +0 -12
  281. package/build/src/components/graphs/line.d.ts +0 -11
  282. package/build/src/components/graphs/lollipop.d.ts +0 -14
  283. package/build/src/components/graphs/meter.d.ts +0 -10
  284. package/build/src/components/graphs/scatter.d.ts +0 -21
  285. package/build/src/components/graphs/skeleton-lines.d.ts +0 -11
  286. package/build/src/components/graphs/tree.d.ts +0 -9
  287. package/build/src/components/graphs/treemap.d.ts +0 -11
  288. package/build/src/components/index.d.ts +0 -51
  289. package/build/src/components/layout/spacer.d.ts +0 -5
  290. package/build/src/configuration.d.ts +0 -44
  291. package/build/src/interfaces/charts.d.ts +0 -485
  292. package/build/src/interfaces/index.d.ts +0 -7
  293. package/build/src/interfaces/layout.d.ts +0 -15
  294. package/build/src/model/meter.d.ts +0 -19
  295. package/build/src/model/model.d.ts +0 -107
  296. package/build/src/services/angle-utils.d.ts +0 -205
  297. package/build/src/services/curves.d.ts +0 -25
  298. package/build/src/services/essentials/dom-utils.d.ts +0 -39
  299. package/build/src/services/essentials/events.d.ts +0 -8
  300. package/build/src/services/essentials/files.d.ts +0 -6
  301. package/build/src/services/essentials/transitions.d.ts +0 -13
  302. package/build/src/services/index.d.ts +0 -9
  303. package/build/src/services/scales-cartesian.d.ts +0 -86
  304. package/build/src/services/service.d.ts +0 -10
  305. package/build/src/services/time-series.d.ts +0 -787
  306. package/build/src/tools.d.ts +0 -2427
  307. package/build/stories/all.stories.d.ts +0 -1
  308. package/build/stories/tutorials/api.d.ts +0 -4
  309. package/build/stories/tutorials/color-palette.d.ts +0 -4
  310. package/build/stories/tutorials/combo-charts.d.ts +0 -4
  311. package/build/stories/tutorials/dual-axes.d.ts +0 -4
  312. package/build/stories/tutorials/event-listeners.d.ts +0 -4
  313. package/build/stories/tutorials/getting-started/angular.d.ts +0 -5
  314. package/build/stories/tutorials/getting-started/react.d.ts +0 -5
  315. package/build/stories/tutorials/getting-started/vanilla.d.ts +0 -5
  316. package/build/stories/tutorials/getting-started/vue.d.ts +0 -5
  317. package/build/stories/tutorials/index.d.ts +0 -11
  318. package/build/stories/tutorials/tabular-data-format.d.ts +0 -4
  319. package/build/stories/tutorials/themes.d.ts +0 -4
  320. package/build/stories/tutorials.stories.d.ts +0 -1
  321. package/bundle.js +0 -17
  322. package/chart.d.ts +0 -14
  323. package/chart.js +0 -198
  324. package/chart.js.map +0 -1
  325. package/charts/alluvial.d.ts +0 -8
  326. package/charts/alluvial.js +0 -46
  327. package/charts/alluvial.js.map +0 -1
  328. package/charts/area-stacked.d.ts +0 -6
  329. package/charts/area-stacked.js +0 -55
  330. package/charts/area-stacked.js.map +0 -1
  331. package/charts/area.d.ts +0 -6
  332. package/charts/area.js +0 -54
  333. package/charts/area.js.map +0 -1
  334. package/charts/bar-grouped.d.ts +0 -6
  335. package/charts/bar-grouped.js +0 -49
  336. package/charts/bar-grouped.js.map +0 -1
  337. package/charts/bar-simple.d.ts +0 -6
  338. package/charts/bar-simple.js +0 -49
  339. package/charts/bar-simple.js.map +0 -1
  340. package/charts/bar-stacked.d.ts +0 -6
  341. package/charts/bar-stacked.js +0 -50
  342. package/charts/bar-stacked.js.map +0 -1
  343. package/charts/boxplot.d.ts +0 -8
  344. package/charts/boxplot.js +0 -55
  345. package/charts/boxplot.js.map +0 -1
  346. package/charts/bubble.d.ts +0 -6
  347. package/charts/bubble.js +0 -49
  348. package/charts/bubble.js.map +0 -1
  349. package/charts/bullet.d.ts +0 -8
  350. package/charts/bullet.js +0 -50
  351. package/charts/bullet.js.map +0 -1
  352. package/charts/circle-pack.d.ts +0 -8
  353. package/charts/circle-pack.js +0 -45
  354. package/charts/circle-pack.js.map +0 -1
  355. package/charts/combo.d.ts +0 -7
  356. package/charts/combo.js +0 -132
  357. package/charts/combo.js.map +0 -1
  358. package/charts/donut.d.ts +0 -6
  359. package/charts/donut.js +0 -46
  360. package/charts/donut.js.map +0 -1
  361. package/charts/gauge.d.ts +0 -8
  362. package/charts/gauge.js +0 -42
  363. package/charts/gauge.js.map +0 -1
  364. package/charts/heatmap.d.ts +0 -10
  365. package/charts/heatmap.js +0 -138
  366. package/charts/heatmap.js.map +0 -1
  367. package/charts/histogram.d.ts +0 -8
  368. package/charts/histogram.js +0 -48
  369. package/charts/histogram.js.map +0 -1
  370. package/charts/index.d.ts +0 -24
  371. package/charts/index.js +0 -25
  372. package/charts/index.js.map +0 -1
  373. package/charts/line.d.ts +0 -6
  374. package/charts/line.js +0 -48
  375. package/charts/line.js.map +0 -1
  376. package/charts/lollipop.d.ts +0 -6
  377. package/charts/lollipop.js +0 -50
  378. package/charts/lollipop.js.map +0 -1
  379. package/charts/meter.d.ts +0 -8
  380. package/charts/meter.js +0 -94
  381. package/charts/meter.js.map +0 -1
  382. package/charts/pie.d.ts +0 -8
  383. package/charts/pie.js +0 -55
  384. package/charts/pie.js.map +0 -1
  385. package/charts/radar.d.ts +0 -8
  386. package/charts/radar.js +0 -44
  387. package/charts/radar.js.map +0 -1
  388. package/charts/scatter.d.ts +0 -6
  389. package/charts/scatter.js +0 -49
  390. package/charts/scatter.js.map +0 -1
  391. package/charts/tree.d.ts +0 -8
  392. package/charts/tree.js +0 -47
  393. package/charts/tree.js.map +0 -1
  394. package/charts/treemap.d.ts +0 -8
  395. package/charts/treemap.js +0 -43
  396. package/charts/treemap.js.map +0 -1
  397. package/charts/wordcloud.d.ts +0 -8
  398. package/charts/wordcloud.js +0 -49
  399. package/charts/wordcloud.js.map +0 -1
  400. package/components/axes/axis.d.ts +0 -24
  401. package/components/axes/axis.js +0 -587
  402. package/components/axes/axis.js.map +0 -1
  403. package/components/axes/chart-clip.d.ts +0 -13
  404. package/components/axes/chart-clip.js +0 -63
  405. package/components/axes/chart-clip.js.map +0 -1
  406. package/components/axes/grid-brush.js +0 -170
  407. package/components/axes/grid-brush.js.map +0 -1
  408. package/components/axes/grid.js +0 -235
  409. package/components/axes/grid.js.map +0 -1
  410. package/components/axes/hover-axis.d.ts +0 -10
  411. package/components/axes/hover-axis.js +0 -243
  412. package/components/axes/hover-axis.js.map +0 -1
  413. package/components/axes/ruler-binned.js +0 -136
  414. package/components/axes/ruler-binned.js.map +0 -1
  415. package/components/axes/ruler-stacked.d.ts +0 -4
  416. package/components/axes/ruler-stacked.js +0 -26
  417. package/components/axes/ruler-stacked.js.map +0 -1
  418. package/components/axes/ruler.js +0 -209
  419. package/components/axes/ruler.js.map +0 -1
  420. package/components/axes/toolbar.d.ts +0 -40
  421. package/components/axes/toolbar.js +0 -558
  422. package/components/axes/toolbar.js.map +0 -1
  423. package/components/axes/two-dimensional-axes.js +0 -134
  424. package/components/axes/two-dimensional-axes.js.map +0 -1
  425. package/components/axes/zero-line.js +0 -76
  426. package/components/axes/zero-line.js.map +0 -1
  427. package/components/axes/zoom-bar.js +0 -490
  428. package/components/axes/zoom-bar.js.map +0 -1
  429. package/components/component.d.ts +0 -28
  430. package/components/component.js +0 -102
  431. package/components/component.js.map +0 -1
  432. package/components/diagrams/buildPaths.d.ts +0 -39
  433. package/components/diagrams/buildPaths.js +0 -71
  434. package/components/diagrams/buildPaths.js.map +0 -1
  435. package/components/diagrams/markerDefinitions.d.ts +0 -37
  436. package/components/diagrams/markerDefinitions.js +0 -38
  437. package/components/diagrams/markerDefinitions.js.map +0 -1
  438. package/components/essentials/canvas-chart-clip.js +0 -46
  439. package/components/essentials/canvas-chart-clip.js.map +0 -1
  440. package/components/essentials/color-scale-legend.js +0 -230
  441. package/components/essentials/color-scale-legend.js.map +0 -1
  442. package/components/essentials/highlights.d.ts +0 -13
  443. package/components/essentials/highlights.js +0 -196
  444. package/components/essentials/highlights.js.map +0 -1
  445. package/components/essentials/legend.d.ts +0 -11
  446. package/components/essentials/legend.js +0 -428
  447. package/components/essentials/legend.js.map +0 -1
  448. package/components/essentials/modal.js +0 -89
  449. package/components/essentials/modal.js.map +0 -1
  450. package/components/essentials/threshold.d.ts +0 -20
  451. package/components/essentials/threshold.js +0 -306
  452. package/components/essentials/threshold.js.map +0 -1
  453. package/components/essentials/title-meter.d.ts +0 -30
  454. package/components/essentials/title-meter.js +0 -279
  455. package/components/essentials/title-meter.js.map +0 -1
  456. package/components/essentials/title.js +0 -138
  457. package/components/essentials/title.js.map +0 -1
  458. package/components/essentials/tooltip-axis.d.ts +0 -4
  459. package/components/essentials/tooltip-axis.js +0 -142
  460. package/components/essentials/tooltip-axis.js.map +0 -1
  461. package/components/essentials/tooltip.d.ts +0 -22
  462. package/components/essentials/tooltip.js +0 -263
  463. package/components/essentials/tooltip.js.map +0 -1
  464. package/components/graphs/alluvial.js +0 -535
  465. package/components/graphs/alluvial.js.map +0 -1
  466. package/components/graphs/area-stacked.js +0 -131
  467. package/components/graphs/area-stacked.js.map +0 -1
  468. package/components/graphs/area.d.ts +0 -12
  469. package/components/graphs/area.js +0 -260
  470. package/components/graphs/area.js.map +0 -1
  471. package/components/graphs/bar-grouped.d.ts +0 -22
  472. package/components/graphs/bar-grouped.js +0 -312
  473. package/components/graphs/bar-grouped.js.map +0 -1
  474. package/components/graphs/bar-simple.d.ts +0 -12
  475. package/components/graphs/bar-simple.js +0 -218
  476. package/components/graphs/bar-simple.js.map +0 -1
  477. package/components/graphs/bar-stacked.d.ts +0 -13
  478. package/components/graphs/bar-stacked.js +0 -281
  479. package/components/graphs/bar-stacked.js.map +0 -1
  480. package/components/graphs/bar.d.ts +0 -5
  481. package/components/graphs/bar.js +0 -58
  482. package/components/graphs/bar.js.map +0 -1
  483. package/components/graphs/boxplot.js +0 -485
  484. package/components/graphs/boxplot.js.map +0 -1
  485. package/components/graphs/bubble.d.ts +0 -13
  486. package/components/graphs/bubble.js +0 -113
  487. package/components/graphs/bubble.js.map +0 -1
  488. package/components/graphs/bullet.d.ts +0 -12
  489. package/components/graphs/bullet.js +0 -395
  490. package/components/graphs/bullet.js.map +0 -1
  491. package/components/graphs/circle-pack.d.ts +0 -19
  492. package/components/graphs/circle-pack.js +0 -388
  493. package/components/graphs/circle-pack.js.map +0 -1
  494. package/components/graphs/donut.d.ts +0 -9
  495. package/components/graphs/donut.js +0 -116
  496. package/components/graphs/donut.js.map +0 -1
  497. package/components/graphs/gauge.d.ts +0 -27
  498. package/components/graphs/gauge.js +0 -347
  499. package/components/graphs/gauge.js.map +0 -1
  500. package/components/graphs/heatmap.d.ts +0 -25
  501. package/components/graphs/heatmap.js +0 -388
  502. package/components/graphs/heatmap.js.map +0 -1
  503. package/components/graphs/histogram.d.ts +0 -12
  504. package/components/graphs/histogram.js +0 -220
  505. package/components/graphs/histogram.js.map +0 -1
  506. package/components/graphs/line.d.ts +0 -11
  507. package/components/graphs/line.js +0 -179
  508. package/components/graphs/line.js.map +0 -1
  509. package/components/graphs/lollipop.d.ts +0 -14
  510. package/components/graphs/lollipop.js +0 -164
  511. package/components/graphs/lollipop.js.map +0 -1
  512. package/components/graphs/meter.js +0 -284
  513. package/components/graphs/meter.js.map +0 -1
  514. package/components/graphs/pie.d.ts +0 -16
  515. package/components/graphs/pie.js +0 -438
  516. package/components/graphs/pie.js.map +0 -1
  517. package/components/graphs/radar.d.ts +0 -25
  518. package/components/graphs/radar.js +0 -737
  519. package/components/graphs/radar.js.map +0 -1
  520. package/components/graphs/scatter-stacked.d.ts +0 -8
  521. package/components/graphs/scatter-stacked.js +0 -140
  522. package/components/graphs/scatter-stacked.js.map +0 -1
  523. package/components/graphs/scatter.d.ts +0 -21
  524. package/components/graphs/scatter.js +0 -360
  525. package/components/graphs/scatter.js.map +0 -1
  526. package/components/graphs/skeleton-lines.d.ts +0 -11
  527. package/components/graphs/skeleton-lines.js +0 -84
  528. package/components/graphs/skeleton-lines.js.map +0 -1
  529. package/components/graphs/skeleton.d.ts +0 -22
  530. package/components/graphs/skeleton.js +0 -272
  531. package/components/graphs/skeleton.js.map +0 -1
  532. package/components/graphs/tree.js +0 -262
  533. package/components/graphs/tree.js.map +0 -1
  534. package/components/graphs/treemap.d.ts +0 -11
  535. package/components/graphs/treemap.js +0 -344
  536. package/components/graphs/treemap.js.map +0 -1
  537. package/components/graphs/wordcloud.d.ts +0 -12
  538. package/components/graphs/wordcloud.js +0 -268
  539. package/components/graphs/wordcloud.js.map +0 -1
  540. package/components/index.d.ts +0 -51
  541. package/components/index.js +0 -57
  542. package/components/index.js.map +0 -1
  543. package/components/layout/layout.d.ts +0 -17
  544. package/components/layout/layout.js +0 -191
  545. package/components/layout/layout.js.map +0 -1
  546. package/components/layout/spacer.d.ts +0 -5
  547. package/components/layout/spacer.js +0 -33
  548. package/components/layout/spacer.js.map +0 -1
  549. package/configuration-non-customizable.d.ts +0 -263
  550. package/configuration-non-customizable.js +0 -276
  551. package/configuration-non-customizable.js.map +0 -1
  552. package/configuration.js +0 -535
  553. package/configuration.js.map +0 -1
  554. package/demo/create-codesandbox.d.ts +0 -65
  555. package/demo/create-codesandbox.js +0 -155
  556. package/demo/create-codesandbox.js.map +0 -1
  557. package/demo/data/CHART_TYPES.d.ts +0 -123
  558. package/demo/data/CHART_TYPES.js +0 -123
  559. package/demo/data/CHART_TYPES.js.map +0 -1
  560. package/demo/data/alluvial.d.ts +0 -109
  561. package/demo/data/alluvial.js +0 -328
  562. package/demo/data/alluvial.js.map +0 -1
  563. package/demo/data/area.d.ts +0 -224
  564. package/demo/data/area.js +0 -330
  565. package/demo/data/area.js.map +0 -1
  566. package/demo/data/bar.d.ts +0 -681
  567. package/demo/data/bar.js +0 -915
  568. package/demo/data/bar.js.map +0 -1
  569. package/demo/data/boxplot.d.ts +0 -34
  570. package/demo/data/boxplot.js +0 -48
  571. package/demo/data/boxplot.js.map +0 -1
  572. package/demo/data/bubble.d.ts +0 -141
  573. package/demo/data/bubble.js +0 -182
  574. package/demo/data/bubble.js.map +0 -1
  575. package/demo/data/bullet.d.ts +0 -24
  576. package/demo/data/bullet.js +0 -55
  577. package/demo/data/bullet.js.map +0 -1
  578. package/demo/data/bundle.js +0 -1
  579. package/demo/data/circle-pack.d.ts +0 -91
  580. package/demo/data/circle-pack.js +0 -224
  581. package/demo/data/circle-pack.js.map +0 -1
  582. package/demo/data/combo.d.ts +0 -482
  583. package/demo/data/combo.js +0 -571
  584. package/demo/data/combo.js.map +0 -1
  585. package/demo/data/donut.d.ts +0 -64
  586. package/demo/data/donut.js +0 -60
  587. package/demo/data/donut.js.map +0 -1
  588. package/demo/data/gauge.d.ts +0 -40
  589. package/demo/data/gauge.js +0 -41
  590. package/demo/data/gauge.js.map +0 -1
  591. package/demo/data/heatmap.d.ts +0 -125
  592. package/demo/data/heatmap.js +0 -1149
  593. package/demo/data/heatmap.js.map +0 -1
  594. package/demo/data/high-scale.d.ts +0 -1
  595. package/demo/data/high-scale.js +0 -5
  596. package/demo/data/high-scale.js.map +0 -1
  597. package/demo/data/hightlight.d.ts +0 -40
  598. package/demo/data/hightlight.js +0 -44
  599. package/demo/data/hightlight.js.map +0 -1
  600. package/demo/data/histogram.d.ts +0 -63
  601. package/demo/data/histogram.js +0 -312
  602. package/demo/data/histogram.js.map +0 -1
  603. package/demo/data/index.d.ts +0 -32
  604. package/demo/data/index.js +0 -1265
  605. package/demo/data/index.js.map +0 -1
  606. package/demo/data/line.d.ts +0 -361
  607. package/demo/data/line.js +0 -480
  608. package/demo/data/line.js.map +0 -1
  609. package/demo/data/lollipop.d.ts +0 -39
  610. package/demo/data/lollipop.js +0 -37
  611. package/demo/data/lollipop.js.map +0 -1
  612. package/demo/data/meter.d.ts +0 -95
  613. package/demo/data/meter.js +0 -114
  614. package/demo/data/meter.js.map +0 -1
  615. package/demo/data/pie.d.ts +0 -46
  616. package/demo/data/pie.js +0 -55
  617. package/demo/data/pie.js.map +0 -1
  618. package/demo/data/radar.d.ts +0 -63
  619. package/demo/data/radar.js +0 -118
  620. package/demo/data/radar.js.map +0 -1
  621. package/demo/data/scatter.d.ts +0 -118
  622. package/demo/data/scatter.js +0 -143
  623. package/demo/data/scatter.js.map +0 -1
  624. package/demo/data/step.d.ts +0 -96
  625. package/demo/data/step.js +0 -27
  626. package/demo/data/step.js.map +0 -1
  627. package/demo/data/time-series-axis.d.ts +0 -368
  628. package/demo/data/time-series-axis.js +0 -436
  629. package/demo/data/time-series-axis.js.map +0 -1
  630. package/demo/data/toolbar.d.ts +0 -12
  631. package/demo/data/toolbar.js +0 -67
  632. package/demo/data/toolbar.js.map +0 -1
  633. package/demo/data/tree.d.ts +0 -30
  634. package/demo/data/tree.js +0 -209
  635. package/demo/data/tree.js.map +0 -1
  636. package/demo/data/treemap.d.ts +0 -15
  637. package/demo/data/treemap.js +0 -93
  638. package/demo/data/treemap.js.map +0 -1
  639. package/demo/data/wordcloud.d.ts +0 -14
  640. package/demo/data/wordcloud.js +0 -105
  641. package/demo/data/wordcloud.js.map +0 -1
  642. package/demo/data/zoom-bar.d.ts +0 -94
  643. package/demo/data/zoom-bar.js +0 -187
  644. package/demo/data/zoom-bar.js.map +0 -1
  645. package/demo/styles.css.map +0 -1
  646. package/demo/styles.min.css +0 -1
  647. package/demo/styles.min.css.map +0 -1
  648. package/demo/tsconfig.tsbuildinfo +0 -1432
  649. package/demo/utils.d.ts +0 -24
  650. package/demo/utils.js +0 -194
  651. package/demo/utils.js.map +0 -1
  652. package/index.d.ts +0 -4
  653. package/index.js +0 -6
  654. package/index.js.map +0 -1
  655. package/interfaces/a11y.d.ts +0 -12
  656. package/interfaces/a11y.js +0 -14
  657. package/interfaces/a11y.js.map +0 -1
  658. package/interfaces/axis-scales.d.ts +0 -201
  659. package/interfaces/axis-scales.js +0 -1
  660. package/interfaces/axis-scales.js.map +0 -1
  661. package/interfaces/charts.js +0 -1
  662. package/interfaces/charts.js.map +0 -1
  663. package/interfaces/components.d.ts +0 -231
  664. package/interfaces/components.js +0 -1
  665. package/interfaces/components.js.map +0 -1
  666. package/interfaces/enums.d.ts +0 -249
  667. package/interfaces/enums.js +0 -280
  668. package/interfaces/enums.js.map +0 -1
  669. package/interfaces/events.d.ts +0 -230
  670. package/interfaces/events.js +0 -259
  671. package/interfaces/events.js.map +0 -1
  672. package/interfaces/index.d.ts +0 -7
  673. package/interfaces/index.js +0 -3
  674. package/interfaces/index.js.map +0 -1
  675. package/interfaces/layout.js +0 -1
  676. package/interfaces/layout.js.map +0 -1
  677. package/interfaces/model.d.ts +0 -35
  678. package/interfaces/model.js +0 -1
  679. package/interfaces/model.js.map +0 -1
  680. package/interfaces/truncation.d.ts +0 -17
  681. package/interfaces/truncation.js +0 -1
  682. package/interfaces/truncation.js.map +0 -1
  683. package/model/alluvial.d.ts +0 -8
  684. package/model/alluvial.js +0 -47
  685. package/model/alluvial.js.map +0 -1
  686. package/model/binned-charts.d.ts +0 -7
  687. package/model/binned-charts.js +0 -52
  688. package/model/binned-charts.js.map +0 -1
  689. package/model/boxplot.d.ts +0 -14
  690. package/model/boxplot.js +0 -174
  691. package/model/boxplot.js.map +0 -1
  692. package/model/bullet.d.ts +0 -14
  693. package/model/bullet.js +0 -74
  694. package/model/bullet.js.map +0 -1
  695. package/model/cartesian-charts.d.ts +0 -24
  696. package/model/cartesian-charts.js +0 -202
  697. package/model/cartesian-charts.js.map +0 -1
  698. package/model/circle-pack.d.ts +0 -36
  699. package/model/circle-pack.js +0 -189
  700. package/model/circle-pack.js.map +0 -1
  701. package/model/gauge.d.ts +0 -9
  702. package/model/gauge.js +0 -51
  703. package/model/gauge.js.map +0 -1
  704. package/model/heatmap.d.ts +0 -57
  705. package/model/heatmap.js +0 -281
  706. package/model/heatmap.js.map +0 -1
  707. package/model/meter.js +0 -118
  708. package/model/meter.js.map +0 -1
  709. package/model/model.js +0 -712
  710. package/model/model.js.map +0 -1
  711. package/model/pie.d.ts +0 -9
  712. package/model/pie.js +0 -66
  713. package/model/pie.js.map +0 -1
  714. package/model/radar.d.ts +0 -7
  715. package/model/radar.js +0 -52
  716. package/model/radar.js.map +0 -1
  717. package/model/tree.d.ts +0 -14
  718. package/model/tree.js +0 -56
  719. package/model/tree.js.map +0 -1
  720. package/model/treemap.d.ts +0 -8
  721. package/model/treemap.js +0 -44
  722. package/model/treemap.js.map +0 -1
  723. package/model/wordcloud.d.ts +0 -7
  724. package/model/wordcloud.js +0 -47
  725. package/model/wordcloud.js.map +0 -1
  726. package/polyfills.d.ts +0 -0
  727. package/polyfills.js +0 -29
  728. package/polyfills.js.map +0 -1
  729. package/services/angle-utils.js +0 -82
  730. package/services/angle-utils.js.map +0 -1
  731. package/services/canvas-zoom.d.ts +0 -11
  732. package/services/canvas-zoom.js +0 -72
  733. package/services/canvas-zoom.js.map +0 -1
  734. package/services/curves.d.ts +0 -25
  735. package/services/curves.js +0 -77
  736. package/services/curves.js.map +0 -1
  737. package/services/essentials/dom-utils.d.ts +0 -39
  738. package/services/essentials/dom-utils.js +0 -423
  739. package/services/essentials/dom-utils.js.map +0 -1
  740. package/services/essentials/events.d.ts +0 -8
  741. package/services/essentials/events.js +0 -53
  742. package/services/essentials/events.js.map +0 -1
  743. package/services/essentials/files.d.ts +0 -6
  744. package/services/essentials/files.js +0 -60
  745. package/services/essentials/files.js.map +0 -1
  746. package/services/essentials/gradient-utils.d.ts +0 -6
  747. package/services/essentials/gradient-utils.js +0 -85
  748. package/services/essentials/gradient-utils.js.map +0 -1
  749. package/services/essentials/transitions.d.ts +0 -13
  750. package/services/essentials/transitions.js +0 -51
  751. package/services/essentials/transitions.js.map +0 -1
  752. package/services/index.d.ts +0 -9
  753. package/services/index.js +0 -12
  754. package/services/index.js.map +0 -1
  755. package/services/scales-cartesian.d.ts +0 -86
  756. package/services/scales-cartesian.js +0 -656
  757. package/services/scales-cartesian.js.map +0 -1
  758. package/services/service.d.ts +0 -10
  759. package/services/service.js +0 -24
  760. package/services/service.js.map +0 -1
  761. package/services/time-series.js +0 -147
  762. package/services/time-series.js.map +0 -1
  763. package/services/zoom.d.ts +0 -21
  764. package/services/zoom.js +0 -217
  765. package/services/zoom.js.map +0 -1
  766. package/styles/components/_marker.scss +0 -7
  767. package/styles/components/diagrams/index.scss +0 -4
  768. package/styles.css +0 -6313
  769. package/styles.css.map +0 -1
  770. package/styles.min.css +0 -1
  771. package/styles.min.css.map +0 -1
  772. package/tools.js +0 -348
  773. package/tools.js.map +0 -1
  774. package/tsconfig.tsbuildinfo +0 -3444
  775. /package/{build/src → dist}/components/axes/ruler-stacked.d.ts +0 -0
  776. /package/{build/src → dist}/components/diagrams/markerDefinitions.d.ts +0 -0
  777. /package/{build/src → dist}/components/essentials/tooltip-axis.d.ts +0 -0
  778. /package/{build/demo/data → dist/demo/charts}/alluvial.d.ts +0 -0
  779. /package/{build/demo/data → dist/demo/charts}/area.d.ts +0 -0
  780. /package/{build/demo/data → dist/demo/charts}/bar.d.ts +0 -0
  781. /package/{build/demo/data → dist/demo/charts}/boxplot.d.ts +0 -0
  782. /package/{build/demo/data → dist/demo/charts}/bubble.d.ts +0 -0
  783. /package/{build/demo/data → dist/demo/charts}/bullet.d.ts +0 -0
  784. /package/{build/demo/data → dist/demo/charts}/circle-pack.d.ts +0 -0
  785. /package/{build/demo/data → dist/demo/charts}/combo.d.ts +0 -0
  786. /package/{build/demo/data → dist/demo/charts}/donut.d.ts +0 -0
  787. /package/{build/demo/data → dist/demo/charts}/gauge.d.ts +0 -0
  788. /package/{build/demo/data → dist/demo/charts}/heatmap.d.ts +0 -0
  789. /package/{build/demo/data → dist/demo/charts}/hightlight.d.ts +0 -0
  790. /package/{build/demo/data → dist/demo/charts}/histogram.d.ts +0 -0
  791. /package/{build/demo/data → dist/demo/charts}/line.d.ts +0 -0
  792. /package/{build/demo/data → dist/demo/charts}/lollipop.d.ts +0 -0
  793. /package/{build/demo/data → dist/demo/charts}/meter.d.ts +0 -0
  794. /package/{build/demo/data → dist/demo/charts}/pie.d.ts +0 -0
  795. /package/{build/demo/data → dist/demo/charts}/radar.d.ts +0 -0
  796. /package/{build/demo/data → dist/demo/charts}/scatter.d.ts +0 -0
  797. /package/{build/demo/data → dist/demo/charts}/step.d.ts +0 -0
  798. /package/{build/demo/data → dist/demo/charts}/toolbar.d.ts +0 -0
  799. /package/{build/demo/data → dist/demo/charts}/tree.d.ts +0 -0
  800. /package/{build/demo/data → dist/demo/charts}/treemap.d.ts +0 -0
  801. /package/{build/demo/data → dist/demo/charts}/wordcloud.d.ts +0 -0
  802. /package/{build/src → dist}/interfaces/a11y.d.ts +0 -0
  803. /package/{build/src → dist}/model/alluvial.d.ts +0 -0
  804. /package/{build/src → dist}/model/boxplot.d.ts +0 -0
  805. /package/{build/src → dist}/model/bullet.d.ts +0 -0
  806. /package/{build/src → dist}/model/circle-pack.d.ts +0 -0
  807. /package/{build/src → dist}/model/gauge.d.ts +0 -0
  808. /package/{build/src → dist}/model/pie.d.ts +0 -0
  809. /package/{build/src → dist}/model/radar.d.ts +0 -0
  810. /package/{build/src → dist}/model/tree.d.ts +0 -0
  811. /package/{build/src → dist}/model/treemap.d.ts +0 -0
  812. /package/{build/src → dist}/model/wordcloud.d.ts +0 -0
  813. /package/{build/src → dist}/services/canvas-zoom.d.ts +0 -0
  814. /package/{styles → dist/styles}/_type.scss +0 -0
  815. /package/{styles → dist/styles}/components/_axis.scss +0 -0
  816. /package/{styles → dist/styles}/components/_callouts.scss +0 -0
  817. /package/{styles → dist/styles}/components/_grid-brush.scss +0 -0
  818. /package/{styles → dist/styles}/components/_highlights.scss +0 -0
  819. /package/{styles → dist/styles}/components/_layout.scss +0 -0
  820. /package/{styles → dist/styles}/components/_legend.scss +0 -0
  821. /package/{styles → dist/styles}/components/_modal.scss +0 -0
  822. /package/{styles → dist/styles}/components/_ruler.scss +0 -0
  823. /package/{styles → dist/styles}/components/_skeleton-lines.scss +0 -0
  824. /package/{styles → dist/styles}/components/_skeleton.scss +0 -0
  825. /package/{styles → dist/styles}/components/_threshold.scss +0 -0
  826. /package/{styles → dist/styles}/components/_title.scss +0 -0
  827. /package/{styles → dist/styles}/components/_toolbar.scss +0 -0
  828. /package/{styles → dist/styles}/components/_zero-line.scss +0 -0
  829. /package/{styles → dist/styles}/components/_zoom-bar.scss +0 -0
  830. /package/{styles → dist/styles}/components/diagrams/_marker.scss +0 -0
  831. /package/{styles → dist/styles}/components/index.scss +0 -0
  832. /package/{styles → dist/styles}/graphs/_area.scss +0 -0
  833. /package/{styles → dist/styles}/graphs/_bubble.scss +0 -0
  834. /package/{styles → dist/styles}/graphs/_donut.scss +0 -0
  835. /package/{styles → dist/styles}/graphs/_line.scss +0 -0
  836. /package/{styles → dist/styles}/graphs/_lollipop.scss +0 -0
  837. /package/{styles → dist/styles}/graphs/_pie.scss +0 -0
  838. /package/{styles → dist/styles}/graphs/_scatter.scss +0 -0
  839. /package/{styles → dist/styles}/graphs/_treemap.scss +0 -0
  840. /package/{styles → dist/styles}/graphs/_wordcloud.scss +0 -0
@@ -1,485 +1,517 @@
1
- import { GaugeTypes, Statuses, ArrowDirections, Alignments, ChartTypes, TreeTypes, DividerStatus, ColorLegendType, ChartTheme } from './enums';
2
- import { LegendOptions, TooltipOptions, GridOptions, AxesOptions, ZoomBarsOptions } from './index';
3
- import { BarOptions, StackedBarOptions, ToolbarOptions } from './components';
4
- import { AxisOptions, BinnedAxisOptions, ComboChartAxisOptions, TimeScaleOptions } from './axis-scales';
5
- /**
6
- * Base chart options common to any chart
7
- */
8
- export interface BaseChartOptions {
9
- /**
10
- * Optionally specify a title for the chart
11
- */
12
- title?: string;
13
- /**
14
- * boolean to disable animations (enabled by default)
15
- */
16
- animations?: boolean;
17
- /**
18
- * boolean to prevent the container from resizing
19
- */
20
- resizable?: boolean;
21
- /**
22
- * Optionally specify a width for the chart
23
- */
24
- width?: string;
25
- /**
26
- * Optionally specify a height for the chart
27
- */
28
- height?: string;
29
- /**
30
- * Optionally specify a theme for the chart
31
- */
32
- theme?: ChartTheme;
33
- /**
34
- * tooltip configuration
35
- */
36
- tooltip?: TooltipOptions;
37
- /**
38
- * legend configuration
39
- */
40
- legend?: LegendOptions;
41
- /**
42
- * toolbar configurations
43
- */
44
- toolbar?: ToolbarOptions;
45
- /**
46
- * Optional function to determine whether is filled based on datasetLabel, label, and/or data
47
- */
48
- getIsFilled?: (datasetLabel: any, label?: any, data?: any, defaultFilled?: boolean) => boolean;
49
- /**
50
- * Optional function to generate the fill color based on datasetLabel, label, and/or data
51
- */
52
- getFillColor?: (group: string, label?: string, data?: any, defaultFillColor?: string) => string;
53
- /**
54
- * Optional function to generate the stroke color based on datasetLabel, label, and/or data
55
- * (note) - not all chart types support the stroke color (e.g. wordcloud)
56
- */
57
- getStrokeColor?: (group: string, label?: any, data?: any, defaultStrokeColor?: string) => string;
58
- /**
59
- * stylesheet options
60
- */
61
- style?: {
62
- /**
63
- * optional prefixing string for css classes (defaults to 'cc')
64
- */
65
- prefix?: string;
66
- };
67
- /**
68
- * options related to charting data
69
- */
70
- data?: {
71
- /**
72
- * identifier for data groups
73
- */
74
- groupMapsTo?: string;
75
- /**
76
- * used to simulate data loading in skeleton way
77
- */
78
- loading?: boolean;
79
- /**
80
- * options related to pre-selected data groups
81
- * Remains empty if every legend item is active or dataset doesn't have the data groups.
82
- */
83
- selectedGroups?: string[];
84
- };
85
- /**
86
- * options related to color scales
87
- */
88
- color?: {
89
- /**
90
- * e.g. { 'Dataset 1': 'blue' }
91
- */
92
- scale?: object;
93
- /**
94
- * use a carbon dataviz preset color palette
95
- * put the index (selection of which variant)
96
- */
97
- pairing?: {
98
- /**
99
- * the number of color variants in the palette (defaults to using the number of data groups in the given data)
100
- */
101
- numberOfVariants?: number;
102
- /**
103
- * the option number of the color paring
104
- */
105
- option?: number;
106
- };
107
- gradient?: {
108
- enabled?: boolean;
109
- /**
110
- * hex color array
111
- * e.g. ['#fff', '#000', ...]
112
- */
113
- colors?: Array<String>;
114
- };
115
- };
116
- fileDownload?: {
117
- /**
118
- * the number of color variants in the palette (defaults to using the number of data groups in the given data)
119
- */
120
- fileName?: (type: 'png' | 'jpg' | 'csv') => string;
121
- };
122
- }
123
- /**
124
- * Options common to any chart with an axis
125
- */
126
- export interface AxisChartOptions extends BaseChartOptions {
127
- axes?: AxesOptions<AxisOptions>;
128
- grid?: GridOptions;
129
- timeScale?: TimeScaleOptions;
130
- /**
131
- * zoombar configuration
132
- */
133
- zoomBar?: ZoomBarsOptions;
134
- }
135
- /**
136
- * Options common to binned charts with an axis
137
- */
138
- export interface BinnedAxisChartOptions extends AxisChartOptions {
139
- axes?: AxesOptions<BinnedAxisOptions>;
140
- grid?: GridOptions;
141
- timeScale?: TimeScaleOptions;
142
- /**
143
- * zoombar configuration
144
- */
145
- zoomBar?: ZoomBarsOptions;
146
- }
147
- /**
148
- * options specific to boxplot charts
149
- */
150
- export interface BoxplotChartOptions extends AxisChartOptions {
151
- }
152
- /**
153
- * options specific to bar charts
154
- */
155
- export interface BarChartOptions extends AxisChartOptions {
156
- bars?: BarOptions;
157
- }
158
- /**
159
- * options specific to stacked bar charts
160
- */
161
- export interface StackedBarChartOptions extends BarChartOptions {
162
- bars?: StackedBarOptions;
163
- }
164
- /**
165
- * options specific to scatter charts
166
- */
167
- export interface ScatterChartOptions extends AxisChartOptions {
168
- /**
169
- * options for the points
170
- */
171
- points?: {
172
- /**
173
- * sets the radius of the point
174
- */
175
- radius: number;
176
- fillOpacity?: number;
177
- filled?: boolean;
178
- enabled?: boolean;
179
- };
180
- }
181
- /**
182
- * options specific to lollipop charts
183
- */
184
- export interface LollipopChartOptions extends ScatterChartOptions {
185
- }
186
- /**
187
- * options specific to bubble charts
188
- */
189
- export interface BubbleChartOptions extends AxisChartOptions {
190
- /**
191
- * options for the individual bubbles
192
- */
193
- bubble?: {
194
- /**
195
- * the key to lookup in charting data for the bubble radius value
196
- */
197
- radiusMapsTo?: string;
198
- /**
199
- * options for what the bubble radius value maps to
200
- */
201
- radiusLabel?: string;
202
- /**
203
- * A function that would determine the range of the bubble radius to use
204
- * Returns an array with the 1st value being the min and the 2nd value being the max radius
205
- */
206
- radiusRange?: Function;
207
- /**
208
- * Opacity of the fills used within each circle
209
- */
210
- fillOpacity?: number;
211
- /**
212
- * enabled scatter dot or not
213
- */
214
- enabled?: boolean;
215
- };
216
- }
217
- /**
218
- * options specific to bullet charts
219
- */
220
- export interface BulletChartOptions extends AxisChartOptions {
221
- /**
222
- * options for the individual bullets
223
- */
224
- bullet?: {
225
- performanceAreaTitles?: string[];
226
- };
227
- }
228
- /**
229
- * options specific to histogram charts
230
- */
231
- export interface HistogramChartOptions extends AxisChartOptions {
232
- /**
233
- * options related to bins
234
- */
235
- bins?: {
236
- rangeLabel?: string;
237
- };
238
- }
239
- /**
240
- * options specific to line charts
241
- */
242
- export interface LineChartOptions extends ScatterChartOptions {
243
- /**
244
- * options for the curve of the line
245
- */
246
- curve?: string | {
247
- name: string;
248
- };
249
- }
250
- /**
251
- * options specific to area charts
252
- */
253
- export interface AreaChartOptions extends AxisChartOptions {
254
- /**
255
- * options for the curve of the line
256
- */
257
- curve?: string | {
258
- name: string;
259
- };
260
- /**
261
- * options to bound the area of the chart
262
- */
263
- bounds?: {
264
- upperBoundMapsTo?: string;
265
- lowerBoundMapsTo?: string;
266
- };
267
- }
268
- /**
269
- * options specific to area charts
270
- */
271
- export interface StackedAreaChartOptions extends ScatterChartOptions {
272
- /**
273
- * options for the curve of the line
274
- */
275
- curve?: string | {
276
- name: string;
277
- };
278
- }
279
- /**
280
- * options specific to world cloud charts
281
- */
282
- export interface WordCloudChartTooltipOptions extends TooltipOptions {
283
- /** the label that shows up by the highlighted word in the tooltip */
284
- wordLabel?: string;
285
- /** the label that shows up by the value of the highlighted word in the tooltip */
286
- valueLabel?: string;
287
- }
288
- export interface WorldCloudChartOptions extends BaseChartOptions {
289
- wordCloud?: {
290
- /** what key in your charting data will the font sizes map to? */
291
- fontSizeMapsTo?: string;
292
- /** a function (chartSize, data) => {} that'll decide the range of font sizes, e.g. [10, 80] */
293
- fontSizeRange?: Function;
294
- /** what key in your charting data will the words map to? */
295
- wordMapsTo?: string;
296
- };
297
- /**
298
- * tooltip configuration
299
- */
300
- tooltip?: WordCloudChartTooltipOptions;
301
- }
302
- /**
303
- * options specific to pie charts
304
- */
305
- export interface PieChartOptions extends BaseChartOptions {
306
- pie?: {
307
- labels?: {
308
- formatter?: Function;
309
- enabled?: Boolean;
310
- };
311
- alignment?: Alignments;
312
- /**
313
- * identifier for value key in your charting data
314
- * defaults to value
315
- */
316
- valueMapsTo?: string;
317
- sortFunction?: (a: any, b: any) => number;
318
- };
319
- }
320
- /**
321
- * options specific to gauge charts
322
- */
323
- export interface GaugeChartOptions extends BaseChartOptions {
324
- gauge?: {
325
- arcWidth?: number;
326
- deltaArrow?: {
327
- direction?: ArrowDirections;
328
- size?: Function;
329
- enabled: Boolean;
330
- };
331
- showPercentageSymbol?: Boolean;
332
- status?: Statuses;
333
- deltaFontSize?: Function;
334
- numberSpacing?: number;
335
- numberFormatter?: Function;
336
- valueFontSize?: Function;
337
- type?: GaugeTypes;
338
- alignment?: Alignments;
339
- };
340
- }
341
- /**
342
- * options specific to donut charts
343
- */
344
- export interface DonutChartOptions extends PieChartOptions {
345
- donut?: {
346
- center?: {
347
- label?: string;
348
- number?: number;
349
- numberFontSize?: Function;
350
- titleFontSize?: Function;
351
- titleYPosition?: Function;
352
- numberFormatter?: Function;
353
- };
354
- alignment?: Alignments;
355
- };
356
- }
357
- export interface MeterChartOptions extends BaseChartOptions {
358
- meter?: {
359
- showLabels?: boolean;
360
- proportional?: {
361
- total?: number;
362
- unit?: string;
363
- };
364
- peak?: number;
365
- status?: {
366
- ranges: Array<{
367
- range: [number, number];
368
- status: Statuses;
369
- }>;
370
- };
371
- height?: number;
372
- title?: {
373
- percentageIndicator?: {
374
- /**
375
- * rendering of the percentage value relative to the dataset within title
376
- */
377
- enabled?: boolean;
378
- };
379
- };
380
- };
381
- }
382
- export interface ProportionalMeterChartOptions extends BaseChartOptions {
383
- meter?: {
384
- proportional?: {
385
- total?: number;
386
- unit?: string;
387
- };
388
- };
389
- }
390
- /**
391
- * options specific to radar charts
392
- */
393
- export interface RadarChartOptions extends BaseChartOptions {
394
- radar?: {
395
- axes: {
396
- angle: string;
397
- value: string;
398
- };
399
- alignment?: Alignments;
400
- };
401
- }
402
- /**
403
- * options specific to combo charts
404
- */
405
- export interface ComboChartOptions extends AxisChartOptions {
406
- axes?: AxesOptions<ComboChartAxisOptions>;
407
- comboChartTypes: Array<{
408
- type: ChartTypes | any;
409
- options?: object;
410
- correspondingDatasets: Array<string>;
411
- }>;
412
- }
413
- export interface TreemapChartOptions extends BaseChartOptions {
414
- }
415
- export interface TreeChartOptions extends BaseChartOptions {
416
- tree?: {
417
- type?: TreeTypes;
418
- rootTitle?: string;
419
- };
420
- }
421
- export interface CirclePackChartOptions extends BaseChartOptions {
422
- circlePack?: {
423
- circles: {
424
- fillOpacity: number;
425
- };
426
- hierachyLevel: number;
427
- padding?: {
428
- outer?: number;
429
- inner?: number;
430
- };
431
- };
432
- }
433
- /**
434
- * options specific to Alluvial charts
435
- */
436
- export interface AlluvialChartOptions extends BaseChartOptions {
437
- alluvial: {
438
- units?: string;
439
- /**
440
- * List of nodes to draw
441
- */
442
- nodes: Array<{
443
- name: string;
444
- category?: string;
445
- }>;
446
- /**
447
- * Node alignment (Default is center)
448
- */
449
- nodeAlignment?: Alignments;
450
- /**
451
- * Set the node padding
452
- */
453
- nodePadding?: number;
454
- /**
455
- * Enable single color usage for lines
456
- */
457
- monochrome?: boolean;
458
- };
459
- }
460
- /**
461
- * options specific to Heatmap charts
462
- */
463
- export interface HeatmapChartOptions extends BaseChartOptions {
464
- heatmap: {
465
- /**
466
- * Divider width state - will default to auto
467
- * No cell divider for cell dimensions less than 16
468
- */
469
- divider?: {
470
- state?: DividerStatus;
471
- };
472
- /**
473
- * customize color legend
474
- * enabled by default on select charts
475
- */
476
- colorLegend?: {
477
- /**
478
- * Text to display beside or on top of the legend
479
- * Position is determined by text length
480
- */
481
- title?: string;
482
- type: ColorLegendType;
483
- };
484
- };
485
- }
1
+ import type { Alignments, ArrowDirections, ChartTheme, ChartTypes, ColorLegendType, DividerStatus, GaugeTypes, Projection, Statuses, TreeTypes } from './enums';
2
+ import type { BarOptions, GridOptions, LegendOptions, StackedBarOptions, ToolbarOptions, TooltipOptions, ZoomBarsOptions } from './components';
3
+ import type { AxesOptions, AxisOptions, BinnedAxisOptions, ComboChartAxisOptions, TimeScaleOptions } from './axis-scales';
4
+ /**
5
+ * Base chart options common to any chart
6
+ */
7
+ export interface BaseChartOptions {
8
+ /**
9
+ * Optionally specify a title for the chart
10
+ */
11
+ title?: string;
12
+ /**
13
+ * boolean to disable animations (enabled by default)
14
+ */
15
+ animations?: boolean;
16
+ /**
17
+ * boolean to prevent the container from resizing
18
+ */
19
+ resizable?: boolean;
20
+ /**
21
+ * Optionally specify a width for the chart
22
+ */
23
+ width?: string;
24
+ /**
25
+ * Optionally specify a height for the chart
26
+ */
27
+ height?: string;
28
+ /**
29
+ * Optionally specify a theme for the chart
30
+ */
31
+ theme?: ChartTheme;
32
+ /**
33
+ * tooltip configuration
34
+ */
35
+ tooltip?: TooltipOptions;
36
+ /**
37
+ * legend configuration
38
+ */
39
+ legend?: LegendOptions;
40
+ /**
41
+ * toolbar configurations
42
+ */
43
+ toolbar?: ToolbarOptions;
44
+ /**
45
+ * Optional function to determine whether is filled based on datasetLabel, label, and/or data
46
+ */
47
+ getIsFilled?: (datasetLabel: string, label?: string, data?: any, defaultFilled?: boolean) => boolean;
48
+ /**
49
+ * Optional function to generate the fill color based on datasetLabel, label, and/or data
50
+ */
51
+ getFillColor?: (group: string, label?: string, data?: any, defaultFillColor?: string) => string;
52
+ /**
53
+ * Optional function to generate the stroke color based on datasetLabel, label, and/or data
54
+ * (note) - not all chart types support the stroke color (e.g. wordcloud)
55
+ */
56
+ getStrokeColor?: (group: string, label?: string, data?: any, defaultStrokeColor?: string) => string;
57
+ /**
58
+ * stylesheet options
59
+ */
60
+ style?: {
61
+ /**
62
+ * optional prefixing string for css classes (defaults to 'cc')
63
+ */
64
+ prefix?: string;
65
+ };
66
+ /**
67
+ * options related to charting data
68
+ */
69
+ data?: {
70
+ /**
71
+ * identifier for data groups
72
+ */
73
+ groupMapsTo?: string;
74
+ /**
75
+ * used to simulate data loading in skeleton way
76
+ */
77
+ loading?: boolean;
78
+ /**
79
+ * options related to pre-selected data groups
80
+ * Remains empty if every legend item is active or dataset doesn't have the data groups.
81
+ */
82
+ selectedGroups?: string[];
83
+ };
84
+ /**
85
+ * options related to color scales
86
+ */
87
+ color?: {
88
+ /**
89
+ @example
90
+ { 'Dataset 1': 'blue' }
91
+ */
92
+ scale?: object;
93
+ /**
94
+ * use a carbon dataviz preset color palette
95
+ * put the index (selection of which variant)
96
+ */
97
+ pairing?: {
98
+ /**
99
+ * the number of color variants in the palette (defaults to using the number of data groups in the given data)
100
+ */
101
+ numberOfVariants?: number;
102
+ /**
103
+ * the option number of the color paring
104
+ */
105
+ option?: number;
106
+ };
107
+ gradient?: {
108
+ enabled?: boolean;
109
+ /**
110
+ * hex color array
111
+ * e.g. ['#fff', '#000', ...]
112
+ */
113
+ colors?: Array<string>;
114
+ };
115
+ };
116
+ /**
117
+ * whether this type of chart is experimental
118
+ */
119
+ experimental?: boolean;
120
+ }
121
+ /**
122
+ * Options common to any chart with an axis
123
+ */
124
+ export interface AxisChartOptions extends BaseChartOptions {
125
+ axes?: AxesOptions<AxisOptions>;
126
+ grid?: GridOptions;
127
+ timeScale?: TimeScaleOptions;
128
+ /**
129
+ * zoombar configuration
130
+ */
131
+ zoomBar?: ZoomBarsOptions;
132
+ }
133
+ /**
134
+ * Options common to binned charts with an axis
135
+ */
136
+ export interface BinnedAxisChartOptions extends AxisChartOptions {
137
+ axes?: AxesOptions<BinnedAxisOptions>;
138
+ grid?: GridOptions;
139
+ timeScale?: TimeScaleOptions;
140
+ /**
141
+ * zoombar configuration
142
+ */
143
+ zoomBar?: ZoomBarsOptions;
144
+ }
145
+ /**
146
+ * options specific to boxplot charts
147
+ */
148
+ export type BoxplotChartOptions = AxisChartOptions;
149
+ /**
150
+ * options specific to bar charts
151
+ */
152
+ export interface BarChartOptions extends AxisChartOptions {
153
+ bars?: BarOptions;
154
+ }
155
+ /**
156
+ * options specific to stacked bar charts
157
+ */
158
+ export interface StackedBarChartOptions extends BarChartOptions {
159
+ bars?: StackedBarOptions;
160
+ }
161
+ /**
162
+ * options specific to scatter charts
163
+ */
164
+ export interface ScatterChartOptions extends AxisChartOptions {
165
+ /**
166
+ * options for the points
167
+ */
168
+ points?: {
169
+ /**
170
+ * sets the radius of the point
171
+ */
172
+ radius: number;
173
+ fillOpacity?: number;
174
+ filled?: boolean;
175
+ enabled?: boolean;
176
+ };
177
+ }
178
+ /**
179
+ * options specific to lollipop charts
180
+ */
181
+ export type LollipopChartOptions = ScatterChartOptions;
182
+ /**
183
+ * options specific to bubble charts
184
+ */
185
+ export interface BubbleChartOptions extends AxisChartOptions {
186
+ /**
187
+ * options for the individual bubbles
188
+ */
189
+ bubble?: {
190
+ /**
191
+ * the key to lookup in charting data for the bubble radius value
192
+ */
193
+ radiusMapsTo?: string;
194
+ /**
195
+ * options for what the bubble radius value maps to
196
+ */
197
+ radiusLabel?: string;
198
+ /**
199
+ * A function that would determine the range of the bubble radius to use
200
+ * Returns an array with the 1st value being the min and the 2nd value being the max radius
201
+ */
202
+ radiusRange?: (min: number, max: number) => number[];
203
+ /**
204
+ * Opacity of the fills used within each circle
205
+ */
206
+ fillOpacity?: number;
207
+ /**
208
+ * enabled scatter dot or not
209
+ */
210
+ enabled?: boolean;
211
+ };
212
+ }
213
+ /**
214
+ * options specific to bullet charts
215
+ */
216
+ export interface BulletChartOptions extends AxisChartOptions {
217
+ /**
218
+ * options for the individual bullets
219
+ */
220
+ bullet?: {
221
+ performanceAreaTitles?: string[];
222
+ };
223
+ }
224
+ /**
225
+ * options specific to histogram charts
226
+ */
227
+ export interface HistogramChartOptions extends AxisChartOptions {
228
+ /**
229
+ * options related to bins
230
+ */
231
+ bins?: {
232
+ rangeLabel?: string;
233
+ };
234
+ }
235
+ /**
236
+ * options specific to line charts
237
+ */
238
+ export interface LineChartOptions extends ScatterChartOptions {
239
+ /**
240
+ * options for the curve of the line
241
+ */
242
+ curve?: string | {
243
+ name: string;
244
+ };
245
+ }
246
+ /**
247
+ * options specific to area charts
248
+ */
249
+ export interface AreaChartOptions extends AxisChartOptions {
250
+ /**
251
+ * options for the curve of the line
252
+ */
253
+ curve?: string | {
254
+ name: string;
255
+ };
256
+ /**
257
+ * options to bound the area of the chart
258
+ */
259
+ bounds?: {
260
+ upperBoundMapsTo?: string;
261
+ lowerBoundMapsTo?: string;
262
+ };
263
+ }
264
+ /**
265
+ * options specific to area charts
266
+ */
267
+ export interface StackedAreaChartOptions extends ScatterChartOptions {
268
+ /**
269
+ * options for the curve of the line
270
+ */
271
+ curve?: string | {
272
+ name: string;
273
+ };
274
+ }
275
+ /**
276
+ * options specific to world cloud charts
277
+ */
278
+ export interface WordCloudChartTooltipOptions extends TooltipOptions {
279
+ /** the label that shows up by the highlighted word in the tooltip */
280
+ wordLabel?: string;
281
+ /** the label that shows up by the value of the highlighted word in the tooltip */
282
+ valueLabel?: string;
283
+ }
284
+ export interface WorldCloudChartOptions extends BaseChartOptions {
285
+ wordCloud?: {
286
+ /** what key in your charting data will the font sizes map to? */
287
+ fontSizeMapsTo?: string;
288
+ /** a function that'll decide the range of font sizes, e.g. [10, 80]
289
+ * @example
290
+ * (chartSize, data) => {}
291
+ * */
292
+ fontSizeRange?: (chartSize: any, data: any) => object;
293
+ /** what key in your charting data will the words map to? */
294
+ wordMapsTo?: string;
295
+ };
296
+ /**
297
+ * tooltip configuration
298
+ */
299
+ tooltip?: WordCloudChartTooltipOptions;
300
+ }
301
+ /**
302
+ * options specific to pie charts
303
+ */
304
+ export interface PieChartOptions extends BaseChartOptions {
305
+ pie?: {
306
+ labels?: {
307
+ formatter?: (data: any) => string;
308
+ enabled?: boolean;
309
+ };
310
+ alignment?: Alignments;
311
+ /**
312
+ * identifier for value key in your charting data
313
+ * defaults to value
314
+ */
315
+ valueMapsTo?: string;
316
+ sortFunction?: (a: {
317
+ group: string;
318
+ value: number;
319
+ }, b: {
320
+ group: string;
321
+ value: number;
322
+ }) => number;
323
+ };
324
+ }
325
+ /**
326
+ * options specific to gauge charts
327
+ */
328
+ export interface GaugeChartOptions extends BaseChartOptions {
329
+ gauge?: {
330
+ arcWidth?: number;
331
+ deltaArrow?: {
332
+ direction?: ArrowDirections;
333
+ size?: (value: number) => number | string;
334
+ enabled: boolean;
335
+ };
336
+ showPercentageSymbol?: boolean;
337
+ status?: Statuses;
338
+ deltaFontSize?: (value: number) => number | string;
339
+ numberSpacing?: number;
340
+ numberFormatter?: (value: number) => string;
341
+ valueFontSize?: (value: number) => number | string;
342
+ type?: GaugeTypes;
343
+ alignment?: Alignments;
344
+ };
345
+ }
346
+ /**
347
+ * options specific to donut charts
348
+ */
349
+ export interface DonutChartOptions extends PieChartOptions {
350
+ donut?: {
351
+ center?: {
352
+ label?: string;
353
+ number?: number;
354
+ numberFontSize?: (value: number) => number | string;
355
+ titleFontSize?: (value: number) => number | string;
356
+ titleYPosition?: (value: number) => number;
357
+ numberFormatter?: (value: number) => string;
358
+ };
359
+ alignment?: Alignments;
360
+ };
361
+ }
362
+ export interface MeterChartOptions extends BaseChartOptions {
363
+ meter?: {
364
+ showLabels?: boolean;
365
+ proportional?: {
366
+ total?: number;
367
+ unit?: string;
368
+ };
369
+ peak?: number;
370
+ status?: {
371
+ ranges: Array<{
372
+ range: [number, number];
373
+ status: Statuses;
374
+ }>;
375
+ };
376
+ height?: number;
377
+ title?: {
378
+ percentageIndicator?: {
379
+ /**
380
+ * rendering of the percentage value relative to the dataset within title
381
+ */
382
+ enabled?: boolean;
383
+ };
384
+ };
385
+ };
386
+ }
387
+ export interface ProportionalMeterChartOptions extends BaseChartOptions {
388
+ meter?: {
389
+ proportional?: {
390
+ total?: number;
391
+ unit?: string;
392
+ };
393
+ };
394
+ }
395
+ /**
396
+ * options specific to radar charts
397
+ */
398
+ export interface RadarChartOptions extends BaseChartOptions {
399
+ radar?: {
400
+ axes: {
401
+ angle: string;
402
+ value: string;
403
+ };
404
+ alignment?: Alignments;
405
+ };
406
+ }
407
+ /**
408
+ * options specific to combo charts
409
+ */
410
+ export interface ComboChartOptions extends AxisChartOptions {
411
+ axes?: AxesOptions<ComboChartAxisOptions>;
412
+ comboChartTypes: Array<{
413
+ type: ChartTypes | any;
414
+ options?: object;
415
+ correspondingDatasets: Array<string>;
416
+ }>;
417
+ }
418
+ export type TreemapChartOptions = BaseChartOptions;
419
+ export interface TreeChartOptions extends BaseChartOptions {
420
+ tree?: {
421
+ type?: TreeTypes;
422
+ rootTitle?: string;
423
+ };
424
+ }
425
+ export interface CirclePackChartOptions extends BaseChartOptions {
426
+ circlePack?: {
427
+ circles: {
428
+ fillOpacity: number;
429
+ };
430
+ hierachyLevel: number;
431
+ padding?: {
432
+ outer?: number;
433
+ inner?: number;
434
+ };
435
+ };
436
+ }
437
+ /**
438
+ * options specific to Alluvial charts
439
+ */
440
+ export interface AlluvialChartOptions extends BaseChartOptions {
441
+ alluvial: {
442
+ units?: string;
443
+ /**
444
+ * List of nodes to draw
445
+ */
446
+ nodes: Array<{
447
+ name: string;
448
+ category?: string;
449
+ }>;
450
+ /**
451
+ * Node alignment (Default is center)
452
+ */
453
+ nodeAlignment?: Alignments;
454
+ /**
455
+ * Set the node padding
456
+ */
457
+ nodePadding?: number;
458
+ /**
459
+ * Enable single color usage for lines
460
+ */
461
+ monochrome?: boolean;
462
+ };
463
+ }
464
+ /**
465
+ * options specific to Heatmap charts
466
+ */
467
+ export interface HeatmapChartOptions extends BaseChartOptions {
468
+ heatmap: {
469
+ /**
470
+ * Divider width state - will default to auto
471
+ * No cell divider for cell dimensions less than 16
472
+ */
473
+ divider?: {
474
+ state?: DividerStatus;
475
+ };
476
+ /**
477
+ * customize color legend
478
+ * enabled by default on select charts
479
+ */
480
+ colorLegend?: {
481
+ /**
482
+ * Text to display beside or on top of the legend
483
+ * Position is determined by text length
484
+ */
485
+ title?: string;
486
+ type: ColorLegendType;
487
+ };
488
+ };
489
+ }
490
+ /**
491
+ * Options common to any thematic chart
492
+ */
493
+ export interface ThematicChartOptions extends BaseChartOptions {
494
+ thematic: {
495
+ projection: Projection;
496
+ };
497
+ }
498
+ /**
499
+ * Options common to any thematic chart
500
+ */
501
+ export interface ChoroplethChartOptions extends ThematicChartOptions {
502
+ choropleth: {
503
+ /**
504
+ * customize color legend
505
+ * enabled by default on select charts
506
+ */
507
+ colorLegend?: {
508
+ /**
509
+ * Text to display beside or on top of the legend
510
+ * Position is determined by text length
511
+ */
512
+ title?: string;
513
+ type: ColorLegendType;
514
+ };
515
+ };
516
+ }
517
+ export type ChartOptions = AlluvialChartOptions | AreaChartOptions | BarChartOptions | BoxplotChartOptions | BubbleChartOptions | BulletChartOptions | CirclePackChartOptions | ComboChartOptions | DonutChartOptions | GaugeChartOptions | HeatmapChartOptions | HistogramChartOptions | LineChartOptions | LollipopChartOptions | MeterChartOptions | PieChartOptions | RadarChartOptions | ScatterChartOptions | StackedAreaChartOptions | StackedBarChartOptions | TreeChartOptions | TreemapChartOptions | WorldCloudChartOptions;