@carbon/charts 0.41.100 → 0.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/CHANGELOG.md +57 -126
  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/circle-pack.d.ts +2 -2
  7. package/build/demo/data/histogram.d.ts +63 -0
  8. package/build/demo/data/index.d.ts +1 -0
  9. package/build/src/axis-chart.d.ts +2 -2
  10. package/build/src/chart.d.ts +1 -1
  11. package/build/src/charts/boxplot.d.ts +1 -1
  12. package/build/src/charts/circle-pack.d.ts +1 -1
  13. package/build/src/charts/gauge.d.ts +1 -1
  14. package/build/src/charts/histogram.d.ts +8 -0
  15. package/build/src/charts/index.d.ts +1 -0
  16. package/build/src/charts/meter.d.ts +1 -1
  17. package/build/src/charts/pie.d.ts +1 -1
  18. package/build/src/components/axes/axis.d.ts +1 -1
  19. package/build/src/components/axes/chart-clip.d.ts +1 -1
  20. package/build/src/components/axes/ruler-binned.d.ts +7 -0
  21. package/build/src/components/axes/ruler.d.ts +2 -3
  22. package/build/src/components/axes/zoom-bar.d.ts +1 -1
  23. package/build/src/components/component.d.ts +1 -1
  24. package/build/src/components/essentials/modal.d.ts +1 -7
  25. package/build/src/components/essentials/threshold.d.ts +1 -1
  26. package/build/src/components/essentials/tooltip-histogram.d.ts +26 -0
  27. package/build/src/components/essentials/tooltip.d.ts +1 -1
  28. package/build/src/components/graphs/histogram.d.ts +12 -0
  29. package/build/src/components/index.d.ts +3 -0
  30. package/build/src/components/layout/layout.d.ts +1 -1
  31. package/build/src/configuration-non-customizable.d.ts +3 -0
  32. package/build/src/configuration.d.ts +2 -1
  33. package/build/src/interfaces/axis-scales.d.ts +53 -17
  34. package/build/src/interfaces/charts.d.ts +25 -2
  35. package/build/src/model/binned-charts.d.ts +7 -0
  36. package/build/src/{model-boxplot.d.ts → model/boxplot.d.ts} +1 -1
  37. package/build/src/{model-cartesian-charts.d.ts → model/cartesian-charts.d.ts} +2 -0
  38. package/build/src/{model-circle-pack.d.ts → model/circle-pack.d.ts} +1 -1
  39. package/build/src/{model-gauge.d.ts → model/gauge.d.ts} +0 -0
  40. package/build/src/{model-meter.d.ts → model/meter.d.ts} +0 -0
  41. package/build/src/{model.d.ts → model/model.d.ts} +15 -2
  42. package/build/src/{model-pie.d.ts → model/pie.d.ts} +0 -0
  43. package/build/src/services/service.d.ts +1 -1
  44. package/build/src/services/zoom.d.ts +1 -1
  45. package/build/src/tools.d.ts +1 -0
  46. package/bundle.js +1 -1
  47. package/chart.d.ts +1 -1
  48. package/chart.js +1 -1
  49. package/chart.js.map +1 -1
  50. package/charts/boxplot.d.ts +1 -1
  51. package/charts/boxplot.js +1 -1
  52. package/charts/boxplot.js.map +1 -1
  53. package/charts/circle-pack.d.ts +1 -1
  54. package/charts/circle-pack.js +1 -1
  55. package/charts/circle-pack.js.map +1 -1
  56. package/charts/gauge.d.ts +1 -1
  57. package/charts/gauge.js +1 -1
  58. package/charts/gauge.js.map +1 -1
  59. package/charts/histogram.d.ts +8 -0
  60. package/charts/histogram.js +48 -0
  61. package/charts/histogram.js.map +1 -0
  62. package/charts/index.d.ts +1 -0
  63. package/charts/index.js +1 -0
  64. package/charts/index.js.map +1 -1
  65. package/charts/meter.d.ts +1 -1
  66. package/charts/meter.js +1 -1
  67. package/charts/meter.js.map +1 -1
  68. package/charts/pie.d.ts +1 -1
  69. package/charts/pie.js +1 -1
  70. package/charts/pie.js.map +1 -1
  71. package/charts/wordcloud.js.map +1 -1
  72. package/components/axes/axis.d.ts +1 -1
  73. package/components/axes/axis.js.map +1 -1
  74. package/components/axes/chart-clip.d.ts +1 -1
  75. package/components/axes/chart-clip.js.map +1 -1
  76. package/components/axes/ruler-binned.d.ts +7 -0
  77. package/components/axes/ruler-binned.js +136 -0
  78. package/components/axes/ruler-binned.js.map +1 -0
  79. package/components/axes/ruler.d.ts +2 -3
  80. package/components/axes/ruler.js +4 -4
  81. package/components/axes/ruler.js.map +1 -1
  82. package/components/axes/zoom-bar.d.ts +1 -1
  83. package/components/axes/zoom-bar.js.map +1 -1
  84. package/components/component.d.ts +1 -1
  85. package/components/component.js.map +1 -1
  86. package/components/essentials/modal.d.ts +1 -7
  87. package/components/essentials/modal.js +8 -69
  88. package/components/essentials/modal.js.map +1 -1
  89. package/components/essentials/threshold.d.ts +1 -1
  90. package/components/essentials/threshold.js.map +1 -1
  91. package/components/essentials/tooltip-axis.js +2 -2
  92. package/components/essentials/tooltip-axis.js.map +1 -1
  93. package/components/essentials/tooltip-histogram.d.ts +26 -0
  94. package/components/essentials/tooltip-histogram.js +154 -0
  95. package/components/essentials/tooltip-histogram.js.map +1 -0
  96. package/components/essentials/tooltip.d.ts +1 -1
  97. package/components/essentials/tooltip.js.map +1 -1
  98. package/components/graphs/bar-grouped.js +4 -4
  99. package/components/graphs/bar-grouped.js.map +1 -1
  100. package/components/graphs/bar-stacked.js.map +1 -1
  101. package/components/graphs/circle-pack.js +6 -3
  102. package/components/graphs/circle-pack.js.map +1 -1
  103. package/components/graphs/histogram.d.ts +12 -0
  104. package/components/graphs/histogram.js +207 -0
  105. package/components/graphs/histogram.js.map +1 -0
  106. package/components/graphs/skeleton.js +3 -1
  107. package/components/graphs/skeleton.js.map +1 -1
  108. package/components/index.d.ts +3 -0
  109. package/components/index.js +3 -0
  110. package/components/index.js.map +1 -1
  111. package/components/layout/layout.d.ts +1 -1
  112. package/components/layout/layout.js.map +1 -1
  113. package/configuration-non-customizable.d.ts +3 -0
  114. package/configuration-non-customizable.js +3 -0
  115. package/configuration-non-customizable.js.map +1 -1
  116. package/configuration.d.ts +2 -1
  117. package/configuration.js +17 -4
  118. package/configuration.js.map +1 -1
  119. package/demo/data/CHART_TYPES.d.ts +5 -0
  120. package/demo/data/CHART_TYPES.js +5 -0
  121. package/demo/data/CHART_TYPES.js.map +1 -1
  122. package/demo/data/bundle.js +1 -1
  123. package/demo/data/circle-pack.d.ts +2 -2
  124. package/demo/data/circle-pack.js +2 -2
  125. package/demo/data/circle-pack.js.map +1 -1
  126. package/demo/data/histogram.d.ts +63 -0
  127. package/demo/data/histogram.js +312 -0
  128. package/demo/data/histogram.js.map +1 -0
  129. package/demo/data/index.d.ts +1 -0
  130. package/demo/data/index.js +22 -0
  131. package/demo/data/index.js.map +1 -1
  132. package/demo/styles.css +528 -4
  133. package/demo/styles.css.map +1 -1
  134. package/demo/styles.min.css +1 -1
  135. package/demo/styles.min.css.map +1 -1
  136. package/demo/tsconfig.tsbuildinfo +20 -6
  137. package/interfaces/axis-scales.d.ts +53 -17
  138. package/interfaces/axis-scales.js.map +1 -1
  139. package/interfaces/charts.d.ts +25 -2
  140. package/interfaces/charts.js.map +1 -1
  141. package/model/binned-charts.d.ts +7 -0
  142. package/model/binned-charts.js +52 -0
  143. package/model/binned-charts.js.map +1 -0
  144. package/{model-boxplot.d.ts → model/boxplot.d.ts} +1 -1
  145. package/{model-boxplot.js → model/boxplot.js} +4 -4
  146. package/model/boxplot.js.map +1 -0
  147. package/{model-cartesian-charts.d.ts → model/cartesian-charts.d.ts} +2 -0
  148. package/{model-cartesian-charts.js → model/cartesian-charts.js} +80 -20
  149. package/model/cartesian-charts.js.map +1 -0
  150. package/{model-circle-pack.d.ts → model/circle-pack.d.ts} +1 -1
  151. package/{model-circle-pack.js → model/circle-pack.js} +3 -3
  152. package/model/circle-pack.js.map +1 -0
  153. package/{model-gauge.d.ts → model/gauge.d.ts} +0 -0
  154. package/{model-gauge.js → model/gauge.js} +1 -1
  155. package/model/gauge.js.map +1 -0
  156. package/{model-meter.d.ts → model/meter.d.ts} +0 -0
  157. package/{model-meter.js → model/meter.js} +3 -3
  158. package/model/meter.js.map +1 -0
  159. package/{model.d.ts → model/model.d.ts} +15 -2
  160. package/{model.js → model/model.js} +120 -11
  161. package/model/model.js.map +1 -0
  162. package/{model-pie.d.ts → model/pie.d.ts} +0 -0
  163. package/{model-pie.js → model/pie.js} +1 -1
  164. package/model/pie.js.map +1 -0
  165. package/package.json +1 -1
  166. package/services/scales-cartesian.js +18 -4
  167. package/services/scales-cartesian.js.map +1 -1
  168. package/services/service.d.ts +1 -1
  169. package/services/service.js.map +1 -1
  170. package/services/zoom.d.ts +1 -1
  171. package/services/zoom.js.map +1 -1
  172. package/styles/colors.scss +2 -0
  173. package/styles/components/_ruler.scss +2 -1
  174. package/styles/styles.scss +4 -0
  175. package/styles-g10.css +132 -1
  176. package/styles-g10.css.map +1 -1
  177. package/styles-g10.min.css +1 -1
  178. package/styles-g10.min.css.map +1 -1
  179. package/styles-g100.css +132 -1
  180. package/styles-g100.css.map +1 -1
  181. package/styles-g100.min.css +1 -1
  182. package/styles-g100.min.css.map +1 -1
  183. package/styles-g90.css +132 -1
  184. package/styles-g90.css.map +1 -1
  185. package/styles-g90.min.css +1 -1
  186. package/styles-g90.min.css.map +1 -1
  187. package/styles.css +132 -1
  188. package/styles.css.map +1 -1
  189. package/styles.min.css +1 -1
  190. package/styles.min.css.map +1 -1
  191. package/tools.d.ts +1 -0
  192. package/tools.js +2 -1
  193. package/tools.js.map +1 -1
  194. package/tsconfig.tsbuildinfo +257 -146
  195. package/model-boxplot.js.map +0 -1
  196. package/model-cartesian-charts.js.map +0 -1
  197. package/model-circle-pack.js.map +0 -1
  198. package/model-gauge.js.map +0 -1
  199. package/model-meter.js.map +0 -1
  200. package/model-pie.js.map +0 -1
  201. package/model.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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.100](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.99...v0.41.100) (2021-08-04)
6
+ ## [0.42.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.42.0...v0.42.1) (2021-08-13)
7
7
 
8
8
  **Note:** Version bump only for package @carbon/charts
9
9
 
@@ -11,166 +11,138 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ## [0.41.99](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.98...v0.41.99) (2021-08-04)
15
-
16
- **Note:** Version bump only for package @carbon/charts
17
-
14
+ # [0.42.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.103...v0.42.0) (2021-08-13)
18
15
 
19
16
 
17
+ ### Features
20
18
 
19
+ * **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))
21
20
 
22
- ## [0.41.98](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.97...v0.41.98) (2021-08-04)
23
21
 
24
- **Note:** Version bump only for package @carbon/charts
25
22
 
26
23
 
27
24
 
25
+ # Change Log
28
26
 
27
+ All notable changes to this project will be documented in this file. See
28
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
29
29
 
30
- ## [0.41.97](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.96...v0.41.97) (2021-08-04)
30
+ ## [0.41.103](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.102...v0.41.103) (2021-08-11)
31
31
 
32
32
  **Note:** Version bump only for package @carbon/charts
33
33
 
34
+ ## [0.41.102](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.101...v0.41.102) (2021-08-10)
34
35
 
36
+ **Note:** Version bump only for package @carbon/charts
35
37
 
38
+ ## [0.41.101](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.100...v0.41.101) (2021-08-06)
36
39
 
40
+ **Note:** Version bump only for package @carbon/charts
37
41
 
38
- ## [0.41.96](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.95...v0.41.96) (2021-08-04)
39
-
42
+ ## [0.41.100](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.99...v0.41.100) (2021-08-04)
40
43
 
41
- ### Bug Fixes
44
+ **Note:** Version bump only for package @carbon/charts
42
45
 
43
- * **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))
46
+ ## [0.41.99](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.98...v0.41.99) (2021-08-04)
44
47
 
48
+ **Note:** Version bump only for package @carbon/charts
45
49
 
50
+ ## [0.41.98](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.97...v0.41.98) (2021-08-04)
46
51
 
52
+ **Note:** Version bump only for package @carbon/charts
47
53
 
54
+ ## [0.41.97](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.96...v0.41.97) (2021-08-04)
48
55
 
49
- ## [0.41.95](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.94...v0.41.95) (2021-08-02)
56
+ **Note:** Version bump only for package @carbon/charts
50
57
 
58
+ ## [0.41.96](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.95...v0.41.96) (2021-08-04)
51
59
 
52
60
  ### Bug Fixes
53
61
 
54
- * **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))
55
-
62
+ - **core:** optimize fullscreen logic
63
+ ([#1097](https://github.com/carbon-design-system/carbon-charts/issues/1097))
64
+ ([d4ee1c9](https://github.com/carbon-design-system/carbon-charts/commit/d4ee1c9da6f37516b2796b69af1b7a429deb41b7))
56
65
 
66
+ ## [0.41.95](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.94...v0.41.95) (2021-08-02)
57
67
 
68
+ ### Bug Fixes
58
69
 
70
+ - **core:** set $css--default-type to false in the styles
71
+ ([#1096](https://github.com/carbon-design-system/carbon-charts/issues/1096))
72
+ ([d35ee26](https://github.com/carbon-design-system/carbon-charts/commit/d35ee269735c150efa1d375c5ff65c4375f7bc3e))
59
73
 
60
74
  ## [0.41.94](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.93...v0.41.94) (2021-07-30)
61
75
 
62
-
63
76
  ### Bug Fixes
64
77
 
65
- * **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))
66
-
67
-
68
-
69
-
78
+ - **core:** avoid adding carbon css-reset to styles
79
+ ([#1095](https://github.com/carbon-design-system/carbon-charts/issues/1095))
80
+ ([8c48aef](https://github.com/carbon-design-system/carbon-charts/commit/8c48aefc6f78a9dce831897e7fb75cf79dfb3b19))
70
81
 
71
82
  ## [0.41.93](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.92...v0.41.93) (2021-07-27)
72
83
 
73
-
74
84
  ### Performance Improvements
75
85
 
76
- * **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))
77
-
78
-
79
-
80
-
86
+ - **download-csv:** revoke object URL after downloading
87
+ ([#1089](https://github.com/carbon-design-system/carbon-charts/issues/1089))
88
+ ([6f001c7](https://github.com/carbon-design-system/carbon-charts/commit/6f001c749feb3747686aa5f5cd612a7cbbe7cefc))
81
89
 
82
90
  ## [0.41.92](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.91...v0.41.92) (2021-07-26)
83
91
 
84
92
  **Note:** Version bump only for package @carbon/charts
85
93
 
86
-
87
-
88
-
89
-
90
94
  ## [0.41.91](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.90...v0.41.91) (2021-07-22)
91
95
 
92
-
93
96
  ### Bug Fixes
94
97
 
95
- * **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))
96
-
97
-
98
-
99
-
98
+ - **core:** eliminate style conflicts with carbon-components
99
+ ([#1086](https://github.com/carbon-design-system/carbon-charts/issues/1086))
100
+ ([4b11432](https://github.com/carbon-design-system/carbon-charts/commit/4b1143264f683f774d80dc98d4db2b72a7eac449))
100
101
 
101
102
  ## [0.41.90](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.89...v0.41.90) (2021-07-21)
102
103
 
103
-
104
104
  ### Bug Fixes
105
105
 
106
- * **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))
107
-
108
-
109
-
110
-
106
+ - **core:** gauge delta arrow not showing on first render
107
+ ([#1083](https://github.com/carbon-design-system/carbon-charts/issues/1083))
108
+ ([2169d80](https://github.com/carbon-design-system/carbon-charts/commit/2169d80f74557e8172d2846c9897ddf70982a1b1))
111
109
 
112
110
  ## [0.41.89](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.88...v0.41.89) (2021-07-21)
113
111
 
114
112
  **Note:** Version bump only for package @carbon/charts
115
113
 
116
-
117
-
118
-
119
-
120
114
  ## [0.41.88](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.87...v0.41.88) (2021-07-21)
121
115
 
122
-
123
116
  ### Bug Fixes
124
117
 
125
- * **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))
126
-
127
-
128
-
129
-
118
+ - **core:** remove references to `process` in UMD bundles
119
+ ([#1078](https://github.com/carbon-design-system/carbon-charts/issues/1078))
120
+ ([dac2067](https://github.com/carbon-design-system/carbon-charts/commit/dac20679a895c56f03c2a156900d133233e17ded))
130
121
 
131
122
  ## [0.41.87](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.86...v0.41.87) (2021-07-20)
132
123
 
133
124
  **Note:** Version bump only for package @carbon/charts
134
125
 
135
-
136
-
137
-
138
-
139
126
  ## [0.41.86](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.85...v0.41.86) (2021-07-20)
140
127
 
141
128
  **Note:** Version bump only for package @carbon/charts
142
129
 
143
-
144
-
145
-
146
-
147
130
  ## [0.41.85](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.84...v0.41.85) (2021-07-20)
148
131
 
149
-
150
132
  ### Bug Fixes
151
133
 
152
- * **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))
153
-
154
-
155
-
156
-
134
+ - **core:** make sure document exists in case using SSR
135
+ ([#1073](https://github.com/carbon-design-system/carbon-charts/issues/1073))
136
+ ([20a78b8](https://github.com/carbon-design-system/carbon-charts/commit/20a78b8bae199b31d5cf459a84002831e79573fd))
157
137
 
158
138
  ## [0.41.84](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.83...v0.41.84) (2021-07-16)
159
139
 
160
140
  **Note:** Version bump only for package @carbon/charts
161
141
 
162
-
163
-
164
-
165
-
166
142
  ## [0.41.83](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.82...v0.41.83) (2021-07-15)
167
143
 
168
144
  **Note:** Version bump only for package @carbon/charts
169
145
 
170
-
171
-
172
-
173
-
174
146
  # Change Log
175
147
 
176
148
  All notable changes to this project will be documented in this file. See
@@ -180,63 +152,42 @@ All notable changes to this project will be documented in this file. See
180
152
 
181
153
  **Note:** Version bump only for package @carbon/charts
182
154
 
183
-
184
-
185
-
186
-
187
155
  ## [0.41.81](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.80...v0.41.81) (2021-07-13)
188
156
 
189
-
190
157
  ### Bug Fixes
191
158
 
192
- * **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)
193
-
194
-
195
-
196
-
159
+ - **core:** display the first and last data elements when addSpaceOnEdges is
160
+ set to 0
161
+ ([#1064](https://github.com/carbon-design-system/carbon-charts/issues/1064))
162
+ ([f321807](https://github.com/carbon-design-system/carbon-charts/commit/f32180774720c7d916f6bd441b7d72500b77e7f9)),
163
+ closes
164
+ [#763](https://github.com/carbon-design-system/carbon-charts/issues/763)
197
165
 
198
166
  ## [0.41.80](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.79...v0.41.80) (2021-07-07)
199
167
 
200
168
  **Note:** Version bump only for package @carbon/charts
201
169
 
202
-
203
-
204
-
205
-
206
170
  ## [0.41.79](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.78...v0.41.79) (2021-06-29)
207
171
 
208
172
  **Note:** Version bump only for package @carbon/charts
209
173
 
210
-
211
-
212
-
213
-
214
174
  ## [0.41.78](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.77...v0.41.78) (2021-06-29)
215
175
 
216
176
  ### Bug Fixes
217
177
 
218
- * **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))
219
-
220
-
221
-
222
-
178
+ - **core:** keep fill colors if custom getIsFilled is passed on mouse over for
179
+ line graph
180
+ ([#1055](https://github.com/carbon-design-system/carbon-charts/issues/1055))
181
+ ([b5dac70](https://github.com/carbon-design-system/carbon-charts/commit/b5dac70c919475672ee31c59cf542605db68e5b4))
223
182
 
224
183
  ## [0.41.77](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.76...v0.41.77) (2021-06-25)
225
184
 
226
185
  **Note:** Version bump only for package @carbon/charts
227
186
 
228
-
229
-
230
-
231
-
232
187
  ## [0.41.76](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.75...v0.41.76) (2021-06-24)
233
188
 
234
189
  **Note:** Version bump only for package @carbon/charts
235
190
 
236
-
237
-
238
-
239
-
240
191
  # Change Log
241
192
 
242
193
  All notable changes to this project will be documented in this file. See
@@ -246,42 +197,22 @@ All notable changes to this project will be documented in this file. See
246
197
 
247
198
  **Note:** Version bump only for package @carbon/charts
248
199
 
249
-
250
-
251
-
252
-
253
200
  ## [0.41.74](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.73...v0.41.74) (2021-06-24)
254
201
 
255
202
  **Note:** Version bump only for package @carbon/charts
256
203
 
257
-
258
-
259
-
260
-
261
204
  ## [0.41.73](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.72...v0.41.73) (2021-06-24)
262
205
 
263
206
  **Note:** Version bump only for package @carbon/charts
264
207
 
265
-
266
-
267
-
268
-
269
208
  ## [0.41.72](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.71...v0.41.72) (2021-06-23)
270
209
 
271
210
  **Note:** Version bump only for package @carbon/charts
272
211
 
273
-
274
-
275
-
276
-
277
212
  ## [0.41.71](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.70...v0.41.71) (2021-06-21)
278
213
 
279
214
  **Note:** Version bump only for package @carbon/charts
280
215
 
281
-
282
-
283
-
284
-
285
216
  ## [0.41.70](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.69...v0.41.70) (2021-06-21)
286
217
 
287
218
  **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,EAAE,eAAe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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,gBAAgB,GAChB,M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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;
@@ -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 {
@@ -1,4 +1,4 @@
1
- import { PieChartModel } from '../model-pie';
1
+ import { PieChartModel } from '../model/pie';
2
2
  import { Chart } from '../chart';
3
3
  import { ChartConfig, PieChartOptions } from '../interfaces/index';
4
4
  export declare class PieChart extends Chart {
@@ -1,6 +1,6 @@
1
1
  import { Component } from '../component';
2
2
  import { ScaleTypes } from '../../interfaces';
3
- import { ChartModel } from '../../model';
3
+ import { ChartModel } from '../../model/model';
4
4
  import { RenderTypes } from '../../interfaces/enums';
5
5
  export declare class Axis extends Component {
6
6
  type: string;
@@ -1,5 +1,5 @@
1
1
  import { Component } from '../component';
2
- import { ChartModel } from '../../model';
2
+ import { ChartModel } from '../../model/model';
3
3
  import { RenderTypes } from '../../interfaces';
4
4
  export declare class ChartClip extends Component {
5
5
  type: string;
@@ -0,0 +1,7 @@
1
+ import { Ruler } from './ruler';
2
+ import { RenderTypes } from '../../interfaces';
3
+ export declare class BinnedRuler extends Ruler {
4
+ type: string;
5
+ renderType: RenderTypes;
6
+ showRuler(event: any, [x, y]: [number, number]): void;
7
+ }