@carbon/charts 0.41.103 → 0.44.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 (215) hide show
  1. package/CHANGELOG.md +63 -134
  2. package/axis-chart.d.ts +2 -2
  3. package/axis-chart.js +1 -1
  4. package/axis-chart.js.map +1 -1
  5. package/build/demo/data/CHART_TYPES.d.ts +5 -0
  6. package/build/demo/data/bar.d.ts +20 -0
  7. package/build/demo/data/circle-pack.d.ts +2 -2
  8. package/build/demo/data/histogram.d.ts +63 -0
  9. package/build/demo/data/index.d.ts +1 -0
  10. package/build/src/axis-chart.d.ts +2 -2
  11. package/build/src/chart.d.ts +1 -1
  12. package/build/src/charts/boxplot.d.ts +1 -1
  13. package/build/src/charts/circle-pack.d.ts +1 -1
  14. package/build/src/charts/gauge.d.ts +1 -1
  15. package/build/src/charts/histogram.d.ts +8 -0
  16. package/build/src/charts/index.d.ts +1 -0
  17. package/build/src/charts/meter.d.ts +1 -1
  18. package/build/src/charts/pie.d.ts +1 -1
  19. package/build/src/components/axes/axis.d.ts +1 -1
  20. package/build/src/components/axes/chart-clip.d.ts +1 -1
  21. package/build/src/components/axes/ruler-binned.d.ts +7 -0
  22. package/build/src/components/axes/ruler.d.ts +2 -3
  23. package/build/src/components/axes/zoom-bar.d.ts +1 -1
  24. package/build/src/components/component.d.ts +1 -1
  25. package/build/src/components/essentials/modal.d.ts +1 -7
  26. package/build/src/components/essentials/threshold.d.ts +1 -1
  27. package/build/src/components/essentials/tooltip-histogram.d.ts +26 -0
  28. package/build/src/components/essentials/tooltip.d.ts +1 -1
  29. package/build/src/components/graphs/histogram.d.ts +12 -0
  30. package/build/src/components/index.d.ts +3 -0
  31. package/build/src/components/layout/layout.d.ts +1 -1
  32. package/build/src/configuration-non-customizable.d.ts +3 -0
  33. package/build/src/configuration.d.ts +2 -1
  34. package/build/src/interfaces/axis-scales.d.ts +53 -17
  35. package/build/src/interfaces/charts.d.ts +25 -2
  36. package/build/src/model/binned-charts.d.ts +7 -0
  37. package/build/src/{model-boxplot.d.ts → model/boxplot.d.ts} +1 -1
  38. package/build/src/{model-cartesian-charts.d.ts → model/cartesian-charts.d.ts} +2 -0
  39. package/build/src/{model-circle-pack.d.ts → model/circle-pack.d.ts} +1 -1
  40. package/build/src/{model-gauge.d.ts → model/gauge.d.ts} +0 -0
  41. package/build/src/{model-meter.d.ts → model/meter.d.ts} +0 -0
  42. package/build/src/{model.d.ts → model/model.d.ts} +17 -3
  43. package/build/src/{model-pie.d.ts → model/pie.d.ts} +0 -0
  44. package/build/src/services/service.d.ts +1 -1
  45. package/build/src/services/zoom.d.ts +1 -1
  46. package/build/src/tools.d.ts +1 -0
  47. package/bundle.js +1 -1
  48. package/chart.d.ts +1 -1
  49. package/chart.js +1 -1
  50. package/chart.js.map +1 -1
  51. package/charts/bar-stacked.js +2 -1
  52. package/charts/bar-stacked.js.map +1 -1
  53. package/charts/boxplot.d.ts +1 -1
  54. package/charts/boxplot.js +1 -1
  55. package/charts/boxplot.js.map +1 -1
  56. package/charts/circle-pack.d.ts +1 -1
  57. package/charts/circle-pack.js +1 -1
  58. package/charts/circle-pack.js.map +1 -1
  59. package/charts/gauge.d.ts +1 -1
  60. package/charts/gauge.js +1 -1
  61. package/charts/gauge.js.map +1 -1
  62. package/charts/histogram.d.ts +8 -0
  63. package/charts/histogram.js +48 -0
  64. package/charts/histogram.js.map +1 -0
  65. package/charts/index.d.ts +1 -0
  66. package/charts/index.js +1 -0
  67. package/charts/index.js.map +1 -1
  68. package/charts/line.js +2 -1
  69. package/charts/line.js.map +1 -1
  70. package/charts/meter.d.ts +1 -1
  71. package/charts/meter.js +1 -1
  72. package/charts/meter.js.map +1 -1
  73. package/charts/pie.d.ts +1 -1
  74. package/charts/pie.js +1 -1
  75. package/charts/pie.js.map +1 -1
  76. package/charts/wordcloud.js.map +1 -1
  77. package/components/axes/axis.d.ts +1 -1
  78. package/components/axes/axis.js.map +1 -1
  79. package/components/axes/chart-clip.d.ts +1 -1
  80. package/components/axes/chart-clip.js.map +1 -1
  81. package/components/axes/ruler-binned.d.ts +7 -0
  82. package/components/axes/ruler-binned.js +136 -0
  83. package/components/axes/ruler-binned.js.map +1 -0
  84. package/components/axes/ruler.d.ts +2 -3
  85. package/components/axes/ruler.js +4 -4
  86. package/components/axes/ruler.js.map +1 -1
  87. package/components/axes/zoom-bar.d.ts +1 -1
  88. package/components/axes/zoom-bar.js.map +1 -1
  89. package/components/component.d.ts +1 -1
  90. package/components/component.js.map +1 -1
  91. package/components/essentials/modal.d.ts +1 -7
  92. package/components/essentials/modal.js +8 -69
  93. package/components/essentials/modal.js.map +1 -1
  94. package/components/essentials/threshold.d.ts +1 -1
  95. package/components/essentials/threshold.js.map +1 -1
  96. package/components/essentials/tooltip-axis.js +2 -2
  97. package/components/essentials/tooltip-axis.js.map +1 -1
  98. package/components/essentials/tooltip-histogram.d.ts +26 -0
  99. package/components/essentials/tooltip-histogram.js +154 -0
  100. package/components/essentials/tooltip-histogram.js.map +1 -0
  101. package/components/essentials/tooltip.d.ts +1 -1
  102. package/components/essentials/tooltip.js.map +1 -1
  103. package/components/graphs/bar-grouped.js +4 -4
  104. package/components/graphs/bar-grouped.js.map +1 -1
  105. package/components/graphs/bar-stacked.js +19 -5
  106. package/components/graphs/bar-stacked.js.map +1 -1
  107. package/components/graphs/circle-pack.js +6 -3
  108. package/components/graphs/circle-pack.js.map +1 -1
  109. package/components/graphs/histogram.d.ts +12 -0
  110. package/components/graphs/histogram.js +207 -0
  111. package/components/graphs/histogram.js.map +1 -0
  112. package/components/graphs/skeleton.js +3 -1
  113. package/components/graphs/skeleton.js.map +1 -1
  114. package/components/index.d.ts +3 -0
  115. package/components/index.js +3 -0
  116. package/components/index.js.map +1 -1
  117. package/components/layout/layout.d.ts +1 -1
  118. package/components/layout/layout.js.map +1 -1
  119. package/configuration-non-customizable.d.ts +3 -0
  120. package/configuration-non-customizable.js +3 -0
  121. package/configuration-non-customizable.js.map +1 -1
  122. package/configuration.d.ts +2 -1
  123. package/configuration.js +17 -4
  124. package/configuration.js.map +1 -1
  125. package/demo/data/CHART_TYPES.d.ts +5 -0
  126. package/demo/data/CHART_TYPES.js +5 -0
  127. package/demo/data/CHART_TYPES.js.map +1 -1
  128. package/demo/data/bar.d.ts +20 -0
  129. package/demo/data/bar.js +25 -0
  130. package/demo/data/bar.js.map +1 -1
  131. package/demo/data/bundle.js +1 -1
  132. package/demo/data/circle-pack.d.ts +2 -2
  133. package/demo/data/circle-pack.js +2 -2
  134. package/demo/data/circle-pack.js.map +1 -1
  135. package/demo/data/histogram.d.ts +63 -0
  136. package/demo/data/histogram.js +312 -0
  137. package/demo/data/histogram.js.map +1 -0
  138. package/demo/data/index.d.ts +1 -0
  139. package/demo/data/index.js +27 -0
  140. package/demo/data/index.js.map +1 -1
  141. package/demo/data/line.js +6 -6
  142. package/demo/data/line.js.map +1 -1
  143. package/demo/styles.css +540 -8
  144. package/demo/styles.css.map +1 -1
  145. package/demo/styles.min.css +1 -1
  146. package/demo/styles.min.css.map +1 -1
  147. package/demo/tsconfig.tsbuildinfo +23 -9
  148. package/interfaces/axis-scales.d.ts +53 -17
  149. package/interfaces/axis-scales.js.map +1 -1
  150. package/interfaces/charts.d.ts +25 -2
  151. package/interfaces/charts.js.map +1 -1
  152. package/model/binned-charts.d.ts +7 -0
  153. package/model/binned-charts.js +52 -0
  154. package/model/binned-charts.js.map +1 -0
  155. package/{model-boxplot.d.ts → model/boxplot.d.ts} +1 -1
  156. package/{model-boxplot.js → model/boxplot.js} +4 -4
  157. package/model/boxplot.js.map +1 -0
  158. package/{model-cartesian-charts.d.ts → model/cartesian-charts.d.ts} +2 -0
  159. package/{model-cartesian-charts.js → model/cartesian-charts.js} +80 -20
  160. package/model/cartesian-charts.js.map +1 -0
  161. package/{model-circle-pack.d.ts → model/circle-pack.d.ts} +1 -1
  162. package/{model-circle-pack.js → model/circle-pack.js} +3 -3
  163. package/model/circle-pack.js.map +1 -0
  164. package/{model-gauge.d.ts → model/gauge.d.ts} +0 -0
  165. package/{model-gauge.js → model/gauge.js} +1 -1
  166. package/model/gauge.js.map +1 -0
  167. package/{model-meter.d.ts → model/meter.d.ts} +0 -0
  168. package/{model-meter.js → model/meter.js} +3 -3
  169. package/model/meter.js.map +1 -0
  170. package/{model.d.ts → model/model.d.ts} +17 -3
  171. package/{model.js → model/model.js} +126 -14
  172. package/model/model.js.map +1 -0
  173. package/{model-pie.d.ts → model/pie.d.ts} +0 -0
  174. package/{model-pie.js → model/pie.js} +1 -1
  175. package/model/pie.js.map +1 -0
  176. package/package.json +1 -1
  177. package/services/essentials/dom-utils.js +18 -0
  178. package/services/essentials/dom-utils.js.map +1 -1
  179. package/services/scales-cartesian.js +31 -7
  180. package/services/scales-cartesian.js.map +1 -1
  181. package/services/service.d.ts +1 -1
  182. package/services/service.js.map +1 -1
  183. package/services/zoom.d.ts +1 -1
  184. package/services/zoom.js.map +1 -1
  185. package/styles/_chart-holder.scss +5 -2
  186. package/styles/colors.scss +2 -0
  187. package/styles/components/_ruler.scss +2 -1
  188. package/styles/styles.scss +4 -0
  189. package/styles-g10.css +135 -2
  190. package/styles-g10.css.map +1 -1
  191. package/styles-g10.min.css +1 -1
  192. package/styles-g10.min.css.map +1 -1
  193. package/styles-g100.css +135 -2
  194. package/styles-g100.css.map +1 -1
  195. package/styles-g100.min.css +1 -1
  196. package/styles-g100.min.css.map +1 -1
  197. package/styles-g90.css +135 -2
  198. package/styles-g90.css.map +1 -1
  199. package/styles-g90.min.css +1 -1
  200. package/styles-g90.min.css.map +1 -1
  201. package/styles.css +135 -2
  202. package/styles.css.map +1 -1
  203. package/styles.min.css +1 -1
  204. package/styles.min.css.map +1 -1
  205. package/tools.d.ts +1 -0
  206. package/tools.js +2 -1
  207. package/tools.js.map +1 -1
  208. package/tsconfig.tsbuildinfo +260 -149
  209. package/model-boxplot.js.map +0 -1
  210. package/model-cartesian-charts.js.map +0 -1
  211. package/model-circle-pack.js.map +0 -1
  212. package/model-gauge.js.map +0 -1
  213. package/model-meter.js.map +0 -1
  214. package/model-pie.js.map +0 -1
  215. package/model.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,31 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.41.103](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.102...v0.41.103) (2021-08-11)
7
-
8
- **Note:** Version bump only for package @carbon/charts
6
+ # [0.44.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.43.0...v0.44.0) (2021-08-18)
9
7
 
10
8
 
9
+ ### Features
11
10
 
11
+ * **core:** support negative values in stacked bar ([#1121](https://github.com/carbon-design-system/carbon-charts/issues/1121)) ([b71cc79](https://github.com/carbon-design-system/carbon-charts/commit/b71cc79876fe56b49cbb08441f41e17ee37fbcff))
12
12
 
13
13
 
14
- ## [0.41.102](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.101...v0.41.102) (2021-08-10)
15
14
 
16
- **Note:** Version bump only for package @carbon/charts
17
15
 
18
16
 
17
+ # [0.43.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.42.1...v0.43.0) (2021-08-17)
19
18
 
20
19
 
20
+ ### Features
21
21
 
22
- ## [0.41.101](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.100...v0.41.101) (2021-08-06)
22
+ * **core:** remove backgrounds on chart holder & wrapper ([#1120](https://github.com/carbon-design-system/carbon-charts/issues/1120)) ([8044c99](https://github.com/carbon-design-system/carbon-charts/commit/8044c99cd4c307147a164d3e60bbb23d2a0a2dc4))
23
23
 
24
- **Note:** Version bump only for package @carbon/charts
25
24
 
26
25
 
27
26
 
28
27
 
29
-
30
- ## [0.41.100](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.99...v0.41.100) (2021-08-04)
28
+ ## [0.42.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.42.0...v0.42.1) (2021-08-13)
31
29
 
32
30
  **Note:** Version bump only for package @carbon/charts
33
31
 
@@ -35,166 +33,138 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
35
33
 
36
34
 
37
35
 
38
- ## [0.41.99](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.98...v0.41.99) (2021-08-04)
39
-
40
- **Note:** Version bump only for package @carbon/charts
41
-
36
+ # [0.42.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.103...v0.42.0) (2021-08-13)
42
37
 
43
38
 
39
+ ### Features
44
40
 
41
+ * **charts:** add histogram ([#1038](https://github.com/carbon-design-system/carbon-charts/issues/1038)) ([07e07b3](https://github.com/carbon-design-system/carbon-charts/commit/07e07b3a2e8bc0eb01a7f4fdfc004e8095fb7b26))
45
42
 
46
- ## [0.41.98](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.97...v0.41.98) (2021-08-04)
47
43
 
48
- **Note:** Version bump only for package @carbon/charts
49
44
 
50
45
 
51
46
 
47
+ # Change Log
52
48
 
49
+ All notable changes to this project will be documented in this file. See
50
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
53
51
 
54
- ## [0.41.97](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.96...v0.41.97) (2021-08-04)
52
+ ## [0.41.103](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.102...v0.41.103) (2021-08-11)
55
53
 
56
54
  **Note:** Version bump only for package @carbon/charts
57
55
 
56
+ ## [0.41.102](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.101...v0.41.102) (2021-08-10)
58
57
 
58
+ **Note:** Version bump only for package @carbon/charts
59
59
 
60
+ ## [0.41.101](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.100...v0.41.101) (2021-08-06)
60
61
 
62
+ **Note:** Version bump only for package @carbon/charts
61
63
 
62
- ## [0.41.96](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.95...v0.41.96) (2021-08-04)
63
-
64
+ ## [0.41.100](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.99...v0.41.100) (2021-08-04)
64
65
 
65
- ### Bug Fixes
66
+ **Note:** Version bump only for package @carbon/charts
66
67
 
67
- * **core:** optimize fullscreen logic ([#1097](https://github.com/carbon-design-system/carbon-charts/issues/1097)) ([d4ee1c9](https://github.com/carbon-design-system/carbon-charts/commit/d4ee1c9da6f37516b2796b69af1b7a429deb41b7))
68
+ ## [0.41.99](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.98...v0.41.99) (2021-08-04)
68
69
 
70
+ **Note:** Version bump only for package @carbon/charts
69
71
 
72
+ ## [0.41.98](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.97...v0.41.98) (2021-08-04)
70
73
 
74
+ **Note:** Version bump only for package @carbon/charts
71
75
 
76
+ ## [0.41.97](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.96...v0.41.97) (2021-08-04)
72
77
 
73
- ## [0.41.95](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.94...v0.41.95) (2021-08-02)
78
+ **Note:** Version bump only for package @carbon/charts
74
79
 
80
+ ## [0.41.96](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.95...v0.41.96) (2021-08-04)
75
81
 
76
82
  ### Bug Fixes
77
83
 
78
- * **core:** set $css--default-type to false in the styles ([#1096](https://github.com/carbon-design-system/carbon-charts/issues/1096)) ([d35ee26](https://github.com/carbon-design-system/carbon-charts/commit/d35ee269735c150efa1d375c5ff65c4375f7bc3e))
79
-
84
+ - **core:** optimize fullscreen logic
85
+ ([#1097](https://github.com/carbon-design-system/carbon-charts/issues/1097))
86
+ ([d4ee1c9](https://github.com/carbon-design-system/carbon-charts/commit/d4ee1c9da6f37516b2796b69af1b7a429deb41b7))
80
87
 
88
+ ## [0.41.95](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.94...v0.41.95) (2021-08-02)
81
89
 
90
+ ### Bug Fixes
82
91
 
92
+ - **core:** set $css--default-type to false in the styles
93
+ ([#1096](https://github.com/carbon-design-system/carbon-charts/issues/1096))
94
+ ([d35ee26](https://github.com/carbon-design-system/carbon-charts/commit/d35ee269735c150efa1d375c5ff65c4375f7bc3e))
83
95
 
84
96
  ## [0.41.94](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.93...v0.41.94) (2021-07-30)
85
97
 
86
-
87
98
  ### Bug Fixes
88
99
 
89
- * **core:** avoid adding carbon css-reset to styles ([#1095](https://github.com/carbon-design-system/carbon-charts/issues/1095)) ([8c48aef](https://github.com/carbon-design-system/carbon-charts/commit/8c48aefc6f78a9dce831897e7fb75cf79dfb3b19))
90
-
91
-
92
-
93
-
100
+ - **core:** avoid adding carbon css-reset to styles
101
+ ([#1095](https://github.com/carbon-design-system/carbon-charts/issues/1095))
102
+ ([8c48aef](https://github.com/carbon-design-system/carbon-charts/commit/8c48aefc6f78a9dce831897e7fb75cf79dfb3b19))
94
103
 
95
104
  ## [0.41.93](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.92...v0.41.93) (2021-07-27)
96
105
 
97
-
98
106
  ### Performance Improvements
99
107
 
100
- * **download-csv:** revoke object URL after downloading ([#1089](https://github.com/carbon-design-system/carbon-charts/issues/1089)) ([6f001c7](https://github.com/carbon-design-system/carbon-charts/commit/6f001c749feb3747686aa5f5cd612a7cbbe7cefc))
101
-
102
-
103
-
104
-
108
+ - **download-csv:** revoke object URL after downloading
109
+ ([#1089](https://github.com/carbon-design-system/carbon-charts/issues/1089))
110
+ ([6f001c7](https://github.com/carbon-design-system/carbon-charts/commit/6f001c749feb3747686aa5f5cd612a7cbbe7cefc))
105
111
 
106
112
  ## [0.41.92](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.91...v0.41.92) (2021-07-26)
107
113
 
108
114
  **Note:** Version bump only for package @carbon/charts
109
115
 
110
-
111
-
112
-
113
-
114
116
  ## [0.41.91](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.90...v0.41.91) (2021-07-22)
115
117
 
116
-
117
118
  ### Bug Fixes
118
119
 
119
- * **core:** eliminate style conflicts with carbon-components ([#1086](https://github.com/carbon-design-system/carbon-charts/issues/1086)) ([4b11432](https://github.com/carbon-design-system/carbon-charts/commit/4b1143264f683f774d80dc98d4db2b72a7eac449))
120
-
121
-
122
-
123
-
120
+ - **core:** eliminate style conflicts with carbon-components
121
+ ([#1086](https://github.com/carbon-design-system/carbon-charts/issues/1086))
122
+ ([4b11432](https://github.com/carbon-design-system/carbon-charts/commit/4b1143264f683f774d80dc98d4db2b72a7eac449))
124
123
 
125
124
  ## [0.41.90](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.89...v0.41.90) (2021-07-21)
126
125
 
127
-
128
126
  ### Bug Fixes
129
127
 
130
- * **core:** gauge delta arrow not showing on first render ([#1083](https://github.com/carbon-design-system/carbon-charts/issues/1083)) ([2169d80](https://github.com/carbon-design-system/carbon-charts/commit/2169d80f74557e8172d2846c9897ddf70982a1b1))
131
-
132
-
133
-
134
-
128
+ - **core:** gauge delta arrow not showing on first render
129
+ ([#1083](https://github.com/carbon-design-system/carbon-charts/issues/1083))
130
+ ([2169d80](https://github.com/carbon-design-system/carbon-charts/commit/2169d80f74557e8172d2846c9897ddf70982a1b1))
135
131
 
136
132
  ## [0.41.89](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.88...v0.41.89) (2021-07-21)
137
133
 
138
134
  **Note:** Version bump only for package @carbon/charts
139
135
 
140
-
141
-
142
-
143
-
144
136
  ## [0.41.88](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.87...v0.41.88) (2021-07-21)
145
137
 
146
-
147
138
  ### Bug Fixes
148
139
 
149
- * **core:** remove references to `process` in UMD bundles ([#1078](https://github.com/carbon-design-system/carbon-charts/issues/1078)) ([dac2067](https://github.com/carbon-design-system/carbon-charts/commit/dac20679a895c56f03c2a156900d133233e17ded))
150
-
151
-
152
-
153
-
140
+ - **core:** remove references to `process` in UMD bundles
141
+ ([#1078](https://github.com/carbon-design-system/carbon-charts/issues/1078))
142
+ ([dac2067](https://github.com/carbon-design-system/carbon-charts/commit/dac20679a895c56f03c2a156900d133233e17ded))
154
143
 
155
144
  ## [0.41.87](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.86...v0.41.87) (2021-07-20)
156
145
 
157
146
  **Note:** Version bump only for package @carbon/charts
158
147
 
159
-
160
-
161
-
162
-
163
148
  ## [0.41.86](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.85...v0.41.86) (2021-07-20)
164
149
 
165
150
  **Note:** Version bump only for package @carbon/charts
166
151
 
167
-
168
-
169
-
170
-
171
152
  ## [0.41.85](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.84...v0.41.85) (2021-07-20)
172
153
 
173
-
174
154
  ### Bug Fixes
175
155
 
176
- * **core:** make sure document exists in case using SSR ([#1073](https://github.com/carbon-design-system/carbon-charts/issues/1073)) ([20a78b8](https://github.com/carbon-design-system/carbon-charts/commit/20a78b8bae199b31d5cf459a84002831e79573fd))
177
-
178
-
179
-
180
-
156
+ - **core:** make sure document exists in case using SSR
157
+ ([#1073](https://github.com/carbon-design-system/carbon-charts/issues/1073))
158
+ ([20a78b8](https://github.com/carbon-design-system/carbon-charts/commit/20a78b8bae199b31d5cf459a84002831e79573fd))
181
159
 
182
160
  ## [0.41.84](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.83...v0.41.84) (2021-07-16)
183
161
 
184
162
  **Note:** Version bump only for package @carbon/charts
185
163
 
186
-
187
-
188
-
189
-
190
164
  ## [0.41.83](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.82...v0.41.83) (2021-07-15)
191
165
 
192
166
  **Note:** Version bump only for package @carbon/charts
193
167
 
194
-
195
-
196
-
197
-
198
168
  # Change Log
199
169
 
200
170
  All notable changes to this project will be documented in this file. See
@@ -204,63 +174,42 @@ All notable changes to this project will be documented in this file. See
204
174
 
205
175
  **Note:** Version bump only for package @carbon/charts
206
176
 
207
-
208
-
209
-
210
-
211
177
  ## [0.41.81](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.80...v0.41.81) (2021-07-13)
212
178
 
213
-
214
179
  ### Bug Fixes
215
180
 
216
- * **core:** display the first and last data elements when addSpaceOnEdges is set to 0 ([#1064](https://github.com/carbon-design-system/carbon-charts/issues/1064)) ([f321807](https://github.com/carbon-design-system/carbon-charts/commit/f32180774720c7d916f6bd441b7d72500b77e7f9)), closes [#763](https://github.com/carbon-design-system/carbon-charts/issues/763)
217
-
218
-
219
-
220
-
181
+ - **core:** display the first and last data elements when addSpaceOnEdges is
182
+ set to 0
183
+ ([#1064](https://github.com/carbon-design-system/carbon-charts/issues/1064))
184
+ ([f321807](https://github.com/carbon-design-system/carbon-charts/commit/f32180774720c7d916f6bd441b7d72500b77e7f9)),
185
+ closes
186
+ [#763](https://github.com/carbon-design-system/carbon-charts/issues/763)
221
187
 
222
188
  ## [0.41.80](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.79...v0.41.80) (2021-07-07)
223
189
 
224
190
  **Note:** Version bump only for package @carbon/charts
225
191
 
226
-
227
-
228
-
229
-
230
192
  ## [0.41.79](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.78...v0.41.79) (2021-06-29)
231
193
 
232
194
  **Note:** Version bump only for package @carbon/charts
233
195
 
234
-
235
-
236
-
237
-
238
196
  ## [0.41.78](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.77...v0.41.78) (2021-06-29)
239
197
 
240
198
  ### Bug Fixes
241
199
 
242
- * **core:** keep fill colors if custom getIsFilled is passed on mouse over for line graph ([#1055](https://github.com/carbon-design-system/carbon-charts/issues/1055)) ([b5dac70](https://github.com/carbon-design-system/carbon-charts/commit/b5dac70c919475672ee31c59cf542605db68e5b4))
243
-
244
-
245
-
246
-
200
+ - **core:** keep fill colors if custom getIsFilled is passed on mouse over for
201
+ line graph
202
+ ([#1055](https://github.com/carbon-design-system/carbon-charts/issues/1055))
203
+ ([b5dac70](https://github.com/carbon-design-system/carbon-charts/commit/b5dac70c919475672ee31c59cf542605db68e5b4))
247
204
 
248
205
  ## [0.41.77](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.76...v0.41.77) (2021-06-25)
249
206
 
250
207
  **Note:** Version bump only for package @carbon/charts
251
208
 
252
-
253
-
254
-
255
-
256
209
  ## [0.41.76](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.75...v0.41.76) (2021-06-24)
257
210
 
258
211
  **Note:** Version bump only for package @carbon/charts
259
212
 
260
-
261
-
262
-
263
-
264
213
  # Change Log
265
214
 
266
215
  All notable changes to this project will be documented in this file. See
@@ -270,42 +219,22 @@ All notable changes to this project will be documented in this file. See
270
219
 
271
220
  **Note:** Version bump only for package @carbon/charts
272
221
 
273
-
274
-
275
-
276
-
277
222
  ## [0.41.74](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.73...v0.41.74) (2021-06-24)
278
223
 
279
224
  **Note:** Version bump only for package @carbon/charts
280
225
 
281
-
282
-
283
-
284
-
285
226
  ## [0.41.73](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.72...v0.41.73) (2021-06-24)
286
227
 
287
228
  **Note:** Version bump only for package @carbon/charts
288
229
 
289
-
290
-
291
-
292
-
293
230
  ## [0.41.72](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.71...v0.41.72) (2021-06-23)
294
231
 
295
232
  **Note:** Version bump only for package @carbon/charts
296
233
 
297
-
298
-
299
-
300
-
301
234
  ## [0.41.71](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.70...v0.41.71) (2021-06-21)
302
235
 
303
236
  **Note:** Version bump only for package @carbon/charts
304
237
 
305
-
306
-
307
-
308
-
309
238
  ## [0.41.70](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.69...v0.41.70) (2021-06-21)
310
239
 
311
240
  **Note:** Version bump only for package @carbon/charts
package/axis-chart.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Chart } from './chart';
2
- import { ChartModelCartesian } from './model-cartesian-charts';
2
+ import { ChartModelCartesian } from './model/cartesian-charts';
3
3
  import { ChartConfig, AxisChartOptions } from './interfaces';
4
4
  import { Modal, LayoutComponent, AxisChartsTooltip } from './components';
5
5
  export declare class AxisChart extends Chart {
6
6
  services: any;
7
7
  model: ChartModelCartesian;
8
8
  constructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>);
9
- protected getAxisChartComponents(graphFrameComponents: any[], configs?: object): (LayoutComponent | AxisChartsTooltip | Modal)[];
9
+ protected getAxisChartComponents(graphFrameComponents: any[], configs?: any): (LayoutComponent | AxisChartsTooltip | Modal)[];
10
10
  }
package/axis-chart.js CHANGED
@@ -19,7 +19,7 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {
19
19
  return r;
20
20
  };
21
21
  import { Chart } from './chart';
22
- import { ChartModelCartesian } from './model-cartesian-charts';
22
+ import { ChartModelCartesian } from './model/cartesian-charts';
23
23
  import { LayoutDirection, LayoutGrowth, LegendOrientations, LegendPositions, AxisPositions, ScaleTypes, RenderTypes, LayoutAlignItems, } from './interfaces';
24
24
  import { ChartBrush, ChartClip, Modal, LayoutComponent, Legend, Threshold, Title, AxisChartsTooltip, Spacer, Toolbar, ZoomBar, } from './components';
25
25
  import { Tools } from './tools';
package/axis-chart.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"axis-chart.js","sourceRoot":"","sources":["axis-chart.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACN,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,eAAe,EAGf,aAAa,EACb,UAAU,EACV,WAAW,EACX,gBAAgB,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,UAAU,EACV,SAAS,EACT,KAAK,EACL,eAAe,EACf,MAAM,EACN,SAAS,EACT,KAAK,EACL,iBAAiB,EACjB,MAAM,EACN,OAAO,EACP,OAAO,GACP,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,E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wB,GAAG,EAAE,CAAC;QACpC,2DAA2D;QAC3D,IAAI,cAAc,IAAI,cAAc,EAAE;YACrC,wBAAwB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YAE/C,IAAM,oBAAoB,GAAG;gBAC5B,EAAE,EAAE,QAAQ;gBACZ,UAAU,EAAE;oBACX,IAAI,MAAM,CACT,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACzC;iBACD;gBACD,MAAM,EAAE,YAAY,CAAC,SAAS;aAC9B,CAAC;YAEF,wBAAwB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;SACpD;QACD,IAAI,cAAc,EAAE;YACnB,wBAAwB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;SAChD;QACD,wBAAwB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAElD,OAAO;YACN,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YAChD,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACpC,IAAI,eAAe,CAClB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,wBAAwB,EACxB;gBACC,SAAS,EAAE,eAAe,CAAC,MAAM;aACjC,CACD;SACD,CAAC;IACH,CAAC;IACF,gBAAC;AAAD,CAAC,AA3MD,CAA+B,KAAK,GA2MnC","sourcesContent":["import { Chart } from './chart';\nimport { ChartModelCartesian } from './model-cartesian-charts';\nimport {\n\tLayoutDirection,\n\tLayoutGrowth,\n\tLegendOrientations,\n\tLegendPositions,\n\tChartConfig,\n\tAxisChartOptions,\n\tAxisPositions,\n\tScaleTypes,\n\tRenderTypes,\n\tLayoutAlignItems,\n} from './interfaces';\nimport {\n\tChartBrush,\n\tChartClip,\n\tModal,\n\tLayoutComponent,\n\tLegend,\n\tThreshold,\n\tTitle,\n\tAxisChartsTooltip,\n\tSpacer,\n\tToolbar,\n\tZoomBar,\n} from './components';\nimport { Tools } from './tools';\n\nimport { CartesianScales, Curves, Zoom } from './services';\n\nexport class AxisChart extends Chart {\n\tservices: any = Object.assign(this.services, {\n\t\tcartesianScales: CartesianScales,\n\t\tcurves: Curves,\n\t\tzoom: Zoom,\n\t});\n\tmodel: ChartModelCartesian = new ChartModelCartesian(this.services);\n\n\tconstructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\t}\n\n\tprotected getAxisChartComponents(\n\t\tgraphFrameComponents: any[],\n\t\tconfigs?: object\n\t) {\n\t\tconst options = this.model.getOptions();\n\t\tconst isZoomBarEnabled = Tools.getProperty(\n\t\t\toptions,\n\t\t\t'zoomBar',\n\t\t\tAxisPositions.TOP,\n\t\t\t'enabled'\n\t\t);\n\t\tconst toolbarEnabled = Tools.getProperty(options, 'toolbar', 'enabled');\n\n\t\tthis.services.cartesianScales.determineAxisDuality();\n\t\tthis.services.cartesianScales.findDomainAndRangeAxes(); // need to do this before getMainXAxisPosition()\n\t\tthis.services.cartesianScales.determineOrientation();\n\n\t\tconst mainXAxisPosition = this.services.cartesianScales.getMainXAxisPosition();\n\t\tconst mainXScaleType = Tools.getProperty(\n\t\t\toptions,\n\t\t\t'axes',\n\t\t\tmainXAxisPosition,\n\t\t\t'scaleType'\n\t\t);\n\t\t// @todo - Zoom Bar only supports main axis at BOTTOM axis and time scale for now\n\t\tconst zoomBarEnabled =\n\t\t\tisZoomBarEnabled &&\n\t\t\tmainXAxisPosition === AxisPositions.BOTTOM &&\n\t\t\tmainXScaleType === ScaleTypes.TIME;\n\n\t\t// @todo - should check if zoom bar in all axes are locked\n\t\tconst isZoomBarLocked = this.services.zoom.isZoomBarLocked(\n\t\t\tAxisPositions.TOP\n\t\t);\n\n\t\tconst titleAvailable = !!this.model.getOptions().title;\n\t\tconst titleComponent = {\n\t\t\tid: 'title',\n\t\t\tcomponents: [new Title(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t};\n\n\t\tconst toolbarComponent = {\n\t\t\tid: 'toolbar',\n\t\t\tcomponents: [new Toolbar(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\tconst headerComponent = {\n\t\t\tid: 'header',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t// always add title to keep layout correct\n\t\t\t\t\t\ttitleComponent,\n\t\t\t\t\t\t...(toolbarEnabled ? [toolbarComponent] : []),\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: LayoutDirection.ROW,\n\t\t\t\t\t\talignItems: LayoutAlignItems.CENTER,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\tconst legendComponent = {\n\t\t\tid: 'legend',\n\t\t\tcomponents: [new Legend(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\t// if all zoom bars are locked, no need to add chart brush\n\t\tif (zoomBarEnabled && !isZoomBarLocked) {\n\t\t\tgraphFrameComponents.push(\n\t\t\t\tnew ChartClip(this.model, this.services),\n\t\t\t\tnew ChartBrush(this.model, this.services)\n\t\t\t);\n\t\t}\n\n\t\tgraphFrameComponents.push(new Threshold(this.model, this.services));\n\n\t\tconst graphFrameComponent = {\n\t\t\tid: 'graph-frame',\n\t\t\tcomponents: graphFrameComponents,\n\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t\trenderType: RenderTypes.SVG,\n\t\t};\n\n\t\tconst isLegendEnabled =\n\t\t\tTools.getProperty(configs, 'legend', 'enabled') !== false &&\n\t\t\tthis.model.getOptions().legend.enabled !== false;\n\n\t\t// Decide the position of the legend in reference to the chart\n\t\tlet fullFrameComponentDirection = LayoutDirection.COLUMN;\n\t\tif (isLegendEnabled) {\n\t\t\tconst legendPosition = Tools.getProperty(\n\t\t\t\tthis.model.getOptions(),\n\t\t\t\t'legend',\n\t\t\t\t'position'\n\t\t\t);\n\t\t\tif (legendPosition === LegendPositions.LEFT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.RIGHT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW_REVERSE;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.BOTTOM) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.COLUMN_REVERSE;\n\t\t\t}\n\t\t}\n\n\t\tconst legendSpacerComponent = {\n\t\t\tid: 'spacer',\n\t\t\tcomponents: [new Spacer(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\tconst fullFrameComponent = {\n\t\t\tid: 'full-frame',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t...(isLegendEnabled ? [legendComponent] : []),\n\t\t\t\t\t\t...(isLegendEnabled ? [legendSpacerComponent] : []),\n\t\t\t\t\t\tgraphFrameComponent,\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: fullFrameComponentDirection,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t};\n\n\t\tconst zoomBarComponent = {\n\t\t\tid: 'zoom-bar',\n\t\t\tcomponents: [new ZoomBar(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t\trenderType: RenderTypes.SVG,\n\t\t};\n\n\t\tconst topLevelLayoutComponents = [];\n\t\t// header component is required for either title or toolbar\n\t\tif (titleAvailable || toolbarEnabled) {\n\t\t\ttopLevelLayoutComponents.push(headerComponent);\n\n\t\t\tconst titleSpacerComponent = {\n\t\t\t\tid: 'spacer',\n\t\t\t\tcomponents: [\n\t\t\t\t\tnew Spacer(\n\t\t\t\t\t\tthis.model,\n\t\t\t\t\t\tthis.services,\n\t\t\t\t\t\ttoolbarEnabled ? { size: 15 } : undefined\n\t\t\t\t\t),\n\t\t\t\t],\n\t\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t\t};\n\n\t\t\ttopLevelLayoutComponents.push(titleSpacerComponent);\n\t\t}\n\t\tif (zoomBarEnabled) {\n\t\t\ttopLevelLayoutComponents.push(zoomBarComponent);\n\t\t}\n\t\ttopLevelLayoutComponents.push(fullFrameComponent);\n\n\t\treturn [\n\t\t\tnew AxisChartsTooltip(this.model, this.services),\n\t\t\tnew Modal(this.model, this.services),\n\t\t\tnew LayoutComponent(\n\t\t\t\tthis.model,\n\t\t\t\tthis.services,\n\t\t\t\ttopLevelLayoutComponents,\n\t\t\t\t{\n\t\t\t\t\tdirection: LayoutDirection.COLUMN,\n\t\t\t\t}\n\t\t\t),\n\t\t];\n\t}\n}\n"]}
1
+ {"version":3,"file":"axis-chart.js","sourceRoot":"","sources":["axis-chart.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACN,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,eAAe,EAGf,aAAa,EACb,UAAU,EACV,WAAW,EACX,gBAAg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art';\nimport { ChartModelCartesian } from './model/cartesian-charts';\nimport {\n\tLayoutDirection,\n\tLayoutGrowth,\n\tLegendOrientations,\n\tLegendPositions,\n\tChartConfig,\n\tAxisChartOptions,\n\tAxisPositions,\n\tScaleTypes,\n\tRenderTypes,\n\tLayoutAlignItems,\n} from './interfaces';\nimport {\n\tChartBrush,\n\tChartClip,\n\tModal,\n\tLayoutComponent,\n\tLegend,\n\tThreshold,\n\tTitle,\n\tAxisChartsTooltip,\n\tSpacer,\n\tToolbar,\n\tZoomBar,\n} from './components';\nimport { Tools } from './tools';\n\nimport { CartesianScales, Curves, Zoom } from './services';\n\nexport class AxisChart extends Chart {\n\tservices: any = Object.assign(this.services, {\n\t\tcartesianScales: CartesianScales,\n\t\tcurves: Curves,\n\t\tzoom: Zoom,\n\t});\n\tmodel: ChartModelCartesian = new ChartModelCartesian(this.services);\n\n\tconstructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\t}\n\n\tprotected getAxisChartComponents(\n\t\tgraphFrameComponents: any[],\n\t\tconfigs?: any\n\t) {\n\t\tconst options = this.model.getOptions();\n\t\tconst isZoomBarEnabled = Tools.getProperty(\n\t\t\toptions,\n\t\t\t'zoomBar',\n\t\t\tAxisPositions.TOP,\n\t\t\t'enabled'\n\t\t);\n\t\tconst toolbarEnabled = Tools.getProperty(options, 'toolbar', 'enabled');\n\n\t\tthis.services.cartesianScales.determineAxisDuality();\n\t\tthis.services.cartesianScales.findDomainAndRangeAxes(); // need to do this before getMainXAxisPosition()\n\t\tthis.services.cartesianScales.determineOrientation();\n\n\t\tconst mainXAxisPosition = this.services.cartesianScales.getMainXAxisPosition();\n\t\tconst mainXScaleType = Tools.getProperty(\n\t\t\toptions,\n\t\t\t'axes',\n\t\t\tmainXAxisPosition,\n\t\t\t'scaleType'\n\t\t);\n\t\t// @todo - Zoom Bar only supports main axis at BOTTOM axis and time scale for now\n\t\tconst zoomBarEnabled =\n\t\t\tisZoomBarEnabled &&\n\t\t\tmainXAxisPosition === AxisPositions.BOTTOM &&\n\t\t\tmainXScaleType === ScaleTypes.TIME;\n\n\t\t// @todo - should check if zoom bar in all axes are locked\n\t\tconst isZoomBarLocked = this.services.zoom.isZoomBarLocked(\n\t\t\tAxisPositions.TOP\n\t\t);\n\n\t\tconst titleAvailable = !!this.model.getOptions().title;\n\t\tconst titleComponent = {\n\t\t\tid: 'title',\n\t\t\tcomponents: [new Title(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t};\n\n\t\tconst toolbarComponent = {\n\t\t\tid: 'toolbar',\n\t\t\tcomponents: [new Toolbar(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\tconst headerComponent = {\n\t\t\tid: 'header',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t// always add title to keep layout correct\n\t\t\t\t\t\ttitleComponent,\n\t\t\t\t\t\t...(toolbarEnabled ? [toolbarComponent] : []),\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: LayoutDirection.ROW,\n\t\t\t\t\t\talignItems: LayoutAlignItems.CENTER,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\tconst legendComponent = {\n\t\t\tid: 'legend',\n\t\t\tcomponents: [new Legend(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\t// if all zoom bars are locked, no need to add chart brush\n\t\tif (zoomBarEnabled && !isZoomBarLocked) {\n\t\t\tgraphFrameComponents.push(\n\t\t\t\tnew ChartClip(this.model, this.services),\n\t\t\t\tnew ChartBrush(this.model, this.services)\n\t\t\t);\n\t\t}\n\n\t\tgraphFrameComponents.push(new Threshold(this.model, this.services));\n\n\t\tconst graphFrameComponent = {\n\t\t\tid: 'graph-frame',\n\t\t\tcomponents: graphFrameComponents,\n\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t\trenderType: RenderTypes.SVG,\n\t\t};\n\n\t\tconst isLegendEnabled =\n\t\t\tTools.getProperty(configs, 'legend', 'enabled') !== false &&\n\t\t\tthis.model.getOptions().legend.enabled !== false;\n\n\t\t// Decide the position of the legend in reference to the chart\n\t\tlet fullFrameComponentDirection = LayoutDirection.COLUMN;\n\t\tif (isLegendEnabled) {\n\t\t\tconst legendPosition = Tools.getProperty(\n\t\t\t\tthis.model.getOptions(),\n\t\t\t\t'legend',\n\t\t\t\t'position'\n\t\t\t);\n\t\t\tif (legendPosition === LegendPositions.LEFT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.RIGHT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW_REVERSE;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.BOTTOM) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.COLUMN_REVERSE;\n\t\t\t}\n\t\t}\n\n\t\tconst legendSpacerComponent = {\n\t\t\tid: 'spacer',\n\t\t\tcomponents: [new Spacer(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t};\n\n\t\tconst fullFrameComponent = {\n\t\t\tid: 'full-frame',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t...(isLegendEnabled ? [legendComponent] : []),\n\t\t\t\t\t\t...(isLegendEnabled ? [legendSpacerComponent] : []),\n\t\t\t\t\t\tgraphFrameComponent,\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: fullFrameComponentDirection,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: LayoutGrowth.STRETCH,\n\t\t};\n\n\t\tconst zoomBarComponent = {\n\t\t\tid: 'zoom-bar',\n\t\t\tcomponents: [new ZoomBar(this.model, this.services)],\n\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t\trenderType: RenderTypes.SVG,\n\t\t};\n\n\t\tconst topLevelLayoutComponents = [];\n\t\t// header component is required for either title or toolbar\n\t\tif (titleAvailable || toolbarEnabled) {\n\t\t\ttopLevelLayoutComponents.push(headerComponent);\n\n\t\t\tconst titleSpacerComponent = {\n\t\t\t\tid: 'spacer',\n\t\t\t\tcomponents: [\n\t\t\t\t\tnew Spacer(\n\t\t\t\t\t\tthis.model,\n\t\t\t\t\t\tthis.services,\n\t\t\t\t\t\ttoolbarEnabled ? { size: 15 } : undefined\n\t\t\t\t\t),\n\t\t\t\t],\n\t\t\t\tgrowth: LayoutGrowth.PREFERRED,\n\t\t\t};\n\n\t\t\ttopLevelLayoutComponents.push(titleSpacerComponent);\n\t\t}\n\t\tif (zoomBarEnabled) {\n\t\t\ttopLevelLayoutComponents.push(zoomBarComponent);\n\t\t}\n\t\ttopLevelLayoutComponents.push(fullFrameComponent);\n\n\t\treturn [\n\t\t\tnew AxisChartsTooltip(this.model, this.services),\n\t\t\tnew Modal(this.model, this.services),\n\t\t\tnew LayoutComponent(\n\t\t\t\tthis.model,\n\t\t\t\tthis.services,\n\t\t\t\ttopLevelLayoutComponents,\n\t\t\t\t{\n\t\t\t\t\tdirection: LayoutDirection.COLUMN,\n\t\t\t\t}\n\t\t\t),\n\t\t];\n\t}\n}\n"]}
@@ -44,6 +44,11 @@ declare const _default: {
44
44
  angular: string;
45
45
  vue: string;
46
46
  };
47
+ HistogramChart: {
48
+ vanilla: string;
49
+ angular: string;
50
+ vue: string;
51
+ };
47
52
  LineChart: {
48
53
  vanilla: string;
49
54
  angular: string;
@@ -352,6 +352,26 @@ export declare const stackedBarOptions: {
352
352
  };
353
353
  };
354
354
  };
355
+ export declare const stackedBarNegativeData: {
356
+ group: string;
357
+ key: string;
358
+ value: number;
359
+ }[];
360
+ export declare const stackedBarNegativeOptions: {
361
+ title: string;
362
+ axes: {
363
+ left: {
364
+ mapsTo: string;
365
+ stacked: boolean;
366
+ };
367
+ bottom: {
368
+ mapsTo: string;
369
+ scaleType: string;
370
+ };
371
+ };
372
+ } & {
373
+ title: string;
374
+ };
355
375
  export declare const stackedHorizontalBarData: {
356
376
  group: string;
357
377
  key: string;
@@ -20,10 +20,10 @@ export declare const circlePackTwoLevelCustomColorsOptions: {
20
20
  };
21
21
  color: {
22
22
  scale: {
23
- 'Asia': string;
23
+ Asia: string;
24
24
  'South America': string;
25
25
  'North America': string;
26
- 'Europe': string;
26
+ Europe: string;
27
27
  };
28
28
  };
29
29
  };
@@ -0,0 +1,63 @@
1
+ export declare const histogramContinueData: {
2
+ group: string;
3
+ age: number;
4
+ }[];
5
+ export declare const histogramContinueOptions: {
6
+ title: string;
7
+ axes: {
8
+ bottom: {
9
+ title: string;
10
+ mapsTo: string;
11
+ bins: number;
12
+ limitDomainToBins: boolean;
13
+ };
14
+ left: {
15
+ title: string;
16
+ scaleType: string;
17
+ stacked: boolean;
18
+ binned: boolean;
19
+ };
20
+ };
21
+ };
22
+ export declare const histogramContinueWithBinsNumberData: {
23
+ group: string;
24
+ value: number;
25
+ }[];
26
+ export declare const histogramContinueWithBinsNumberOptions: {
27
+ title: string;
28
+ axes: {
29
+ bottom: {
30
+ title: string;
31
+ mapsTo: string;
32
+ bins: number;
33
+ limitDomainToBins: boolean;
34
+ };
35
+ left: {
36
+ title: string;
37
+ scaleType: string;
38
+ binned: boolean;
39
+ };
40
+ };
41
+ };
42
+ export declare const histogramContinueWithBinsOptions: {
43
+ title: string;
44
+ axes: {
45
+ bottom: {
46
+ title: string;
47
+ mapsTo: string;
48
+ bins: number[];
49
+ limitDomainToBins: boolean;
50
+ };
51
+ left: {
52
+ title: string;
53
+ scaleType: string;
54
+ stacked: boolean;
55
+ binned: boolean;
56
+ };
57
+ };
58
+ };
59
+ export declare const histogramTimeSeriesData: {
60
+ group: string;
61
+ transactions: number;
62
+ value: number;
63
+ }[];
@@ -6,6 +6,7 @@ export * from './bullet';
6
6
  export * from './combo';
7
7
  export * from './donut';
8
8
  export * from './gauge';
9
+ export * from './histogram';
9
10
  export * from './line';
10
11
  export * from './lollipop';
11
12
  export * from './meter';
@@ -1,10 +1,10 @@
1
1
  import { Chart } from './chart';
2
- import { ChartModelCartesian } from './model-cartesian-charts';
2
+ import { ChartModelCartesian } from './model/cartesian-charts';
3
3
  import { ChartConfig, AxisChartOptions } from './interfaces';
4
4
  import { Modal, LayoutComponent, AxisChartsTooltip } from './components';
5
5
  export declare class AxisChart extends Chart {
6
6
  services: any;
7
7
  model: ChartModelCartesian;
8
8
  constructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>);
9
- protected getAxisChartComponents(graphFrameComponents: any[], configs?: object): (AxisChartsTooltip | Modal | LayoutComponent)[];
9
+ protected getAxisChartComponents(graphFrameComponents: any[], configs?: any): (AxisChartsTooltip | Modal | LayoutComponent)[];
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import { ChartConfig, BaseChartOptions, RenderTypes } from './interfaces';
2
- import { ChartModel } from './model';
2
+ import { ChartModel } from './model/model';
3
3
  import { Component, Modal, LayoutComponent, Tooltip } from './components';
4
4
  export declare class Chart {
5
5
  components: Component[];
@@ -1,4 +1,4 @@
1
- import { BoxplotChartModel } from '../model-boxplot';
1
+ import { BoxplotChartModel } from '../model/boxplot';
2
2
  import { AxisChart } from '../axis-chart';
3
3
  import { BoxplotChartOptions, ChartConfig } from '../interfaces/index';
4
4
  export declare class BoxplotChart extends AxisChart {
@@ -1,5 +1,5 @@
1
1
  import { Chart } from '../chart';
2
- import { CirclePackChartModel } from './../model-circle-pack';
2
+ import { CirclePackChartModel } from '../model/circle-pack';
3
3
  import { ChartConfig, CirclePackChartOptions } from '../interfaces/index';
4
4
  export declare class CirclePackChart extends Chart {
5
5
  model: CirclePackChartModel;
@@ -1,6 +1,6 @@
1
1
  import { Chart } from '../chart';
2
2
  import { ChartConfig, GaugeChartOptions } from '../interfaces/index';
3
- import { GaugeChartModel } from './../model-gauge';
3
+ import { GaugeChartModel } from '../model/gauge';
4
4
  export declare class GaugeChart extends Chart {
5
5
  model: GaugeChartModel;
6
6
  constructor(holder: Element, chartConfigs: ChartConfig<GaugeChartOptions>);
@@ -0,0 +1,8 @@
1
+ import { ChartModelBinned } from '../model/binned-charts';
2
+ import { AxisChart } from '../axis-chart';
3
+ import { ChartConfig, HistogramChartOptions } from '../interfaces/index';
4
+ export declare class HistogramChart extends AxisChart {
5
+ model: ChartModelBinned;
6
+ constructor(holder: Element, chartConfigs: ChartConfig<HistogramChartOptions>);
7
+ getComponents(): any[];
8
+ }
@@ -6,6 +6,7 @@ export * from './bar-stacked';
6
6
  export * from './boxplot';
7
7
  export * from './bubble';
8
8
  export * from './bullet';
9
+ export * from './histogram';
9
10
  export * from './line';
10
11
  export * from './lollipop';
11
12
  export * from './scatter';
@@ -1,4 +1,4 @@
1
- import { MeterChartModel } from '../model-meter';
1
+ import { MeterChartModel } from '../model/meter';
2
2
  import { Chart } from '../chart';
3
3
  import { ChartConfig, MeterChartOptions } from '../interfaces/index';
4
4
  export declare class MeterChart extends Chart {