highcharts 12.0.2 → 12.1.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 (335) hide show
  1. package/bower.json +1 -1
  2. package/es-modules/Accessibility/Options/A11yDefaults.js +2 -0
  3. package/es-modules/Core/Color/Color.js +5 -12
  4. package/es-modules/Core/Defaults.js +0 -8
  5. package/es-modules/Core/Globals.js +1 -1
  6. package/es-modules/Core/Pointer.js +3 -1
  7. package/es-modules/Core/Renderer/HTML/HTMLElement.js +1 -3
  8. package/es-modules/Core/Renderer/SVG/SVGElement.js +4 -2
  9. package/es-modules/Core/Renderer/SVG/SVGLabel.js +11 -12
  10. package/es-modules/Core/Series/DataLabel.js +1 -0
  11. package/es-modules/Core/Series/Series.js +13 -15
  12. package/es-modules/Core/Templating.js +20 -16
  13. package/es-modules/Core/Time.js +21 -10
  14. package/es-modules/Core/Utilities.js +1 -1
  15. package/es-modules/Data/Converters/CSVConverter.js +1 -0
  16. package/es-modules/Data/Converters/DataConverter.js +31 -0
  17. package/es-modules/Data/Converters/GoogleSheetsConverter.js +1 -0
  18. package/es-modules/Data/Converters/HTMLTableConverter.js +1 -0
  19. package/es-modules/Data/Converters/JSONConverter.js +1 -0
  20. package/es-modules/Extensions/Boost/BoostSeries.js +13 -7
  21. package/es-modules/Extensions/DragPanes/AxisResizer.js +1 -1
  22. package/es-modules/Extensions/Exporting/Exporting.js +16 -8
  23. package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +7 -2
  24. package/es-modules/Series/Bubble/BubbleSeries.js +24 -0
  25. package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +3 -1
  26. package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +3 -1
  27. package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +3 -1
  28. package/es-modules/Series/Treemap/TreemapPoint.js +7 -2
  29. package/es-modules/Series/Treemap/TreemapSeries.js +154 -53
  30. package/es-modules/Series/Treemap/TreemapSeriesDefaults.js +126 -4
  31. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +1 -0
  32. package/es-modules/Stock/RangeSelector/RangeSelector.js +75 -71
  33. package/es-modules/Stock/RangeSelector/RangeSelectorDefaults.js +10 -4
  34. package/es-modules/masters/indicators/indicators-all.src.js +4 -0
  35. package/es-modules/tsconfig.tsbuildinfo +1 -1
  36. package/highcharts-3d.js +2 -2
  37. package/highcharts-3d.src.js +1 -1
  38. package/highcharts-gantt.js +5 -5
  39. package/highcharts-gantt.src.js +174 -164
  40. package/highcharts-more.js +2 -2
  41. package/highcharts-more.src.js +25 -1
  42. package/highcharts.d.ts +301 -764
  43. package/highcharts.js +3 -3
  44. package/highcharts.src.d.ts +301 -764
  45. package/highcharts.src.js +84 -84
  46. package/highmaps.js +5 -5
  47. package/highmaps.src.js +111 -87
  48. package/highstock.js +5 -5
  49. package/highstock.src.js +174 -164
  50. package/indicators/acceleration-bands.js +2 -2
  51. package/indicators/acceleration-bands.src.js +1 -1
  52. package/indicators/accumulation-distribution.js +2 -2
  53. package/indicators/accumulation-distribution.src.js +1 -1
  54. package/indicators/ao.js +2 -2
  55. package/indicators/ao.src.js +1 -1
  56. package/indicators/apo.js +2 -2
  57. package/indicators/apo.src.js +1 -1
  58. package/indicators/aroon-oscillator.js +2 -2
  59. package/indicators/aroon-oscillator.src.js +1 -1
  60. package/indicators/aroon.js +2 -2
  61. package/indicators/aroon.src.js +1 -1
  62. package/indicators/atr.js +2 -2
  63. package/indicators/atr.src.js +1 -1
  64. package/indicators/bollinger-bands.js +2 -2
  65. package/indicators/bollinger-bands.src.js +1 -1
  66. package/indicators/cci.js +2 -2
  67. package/indicators/cci.src.js +1 -1
  68. package/indicators/chaikin.js +2 -2
  69. package/indicators/chaikin.src.js +1 -1
  70. package/indicators/cmf.js +2 -2
  71. package/indicators/cmf.src.js +1 -1
  72. package/indicators/cmo.js +2 -2
  73. package/indicators/cmo.src.js +1 -1
  74. package/indicators/dema.js +2 -2
  75. package/indicators/dema.src.js +1 -1
  76. package/indicators/disparity-index.js +2 -2
  77. package/indicators/disparity-index.src.js +1 -1
  78. package/indicators/dmi.js +2 -2
  79. package/indicators/dmi.src.js +1 -1
  80. package/indicators/dpo.js +2 -2
  81. package/indicators/dpo.src.js +1 -1
  82. package/indicators/ema.js +1 -1
  83. package/indicators/ichimoku-kinko-hyo.js +2 -2
  84. package/indicators/ichimoku-kinko-hyo.src.js +1 -1
  85. package/indicators/indicators-all.js +2 -2
  86. package/indicators/indicators-all.src.js +6 -1
  87. package/indicators/indicators.js +2 -2
  88. package/indicators/indicators.src.js +1 -1
  89. package/indicators/keltner-channels.js +2 -2
  90. package/indicators/keltner-channels.src.js +1 -1
  91. package/indicators/klinger.js +2 -2
  92. package/indicators/klinger.src.js +1 -1
  93. package/indicators/macd.js +2 -2
  94. package/indicators/macd.src.js +1 -1
  95. package/indicators/mfi.js +2 -2
  96. package/indicators/mfi.src.js +1 -1
  97. package/indicators/momentum.js +2 -2
  98. package/indicators/momentum.src.js +1 -1
  99. package/indicators/natr.js +2 -2
  100. package/indicators/natr.src.js +1 -1
  101. package/indicators/obv.js +2 -2
  102. package/indicators/obv.src.js +1 -1
  103. package/indicators/pivot-points.js +2 -2
  104. package/indicators/pivot-points.src.js +1 -1
  105. package/indicators/ppo.js +2 -2
  106. package/indicators/ppo.src.js +1 -1
  107. package/indicators/price-channel.js +2 -2
  108. package/indicators/price-channel.src.js +1 -1
  109. package/indicators/price-envelopes.js +2 -2
  110. package/indicators/price-envelopes.src.js +1 -1
  111. package/indicators/psar.js +2 -2
  112. package/indicators/psar.src.js +1 -1
  113. package/indicators/regressions.js +2 -2
  114. package/indicators/regressions.src.js +1 -1
  115. package/indicators/roc.js +2 -2
  116. package/indicators/roc.src.js +1 -1
  117. package/indicators/rsi.js +2 -2
  118. package/indicators/rsi.src.js +1 -1
  119. package/indicators/slow-stochastic.js +2 -2
  120. package/indicators/slow-stochastic.src.js +1 -1
  121. package/indicators/stochastic.js +2 -2
  122. package/indicators/stochastic.src.js +1 -1
  123. package/indicators/supertrend.js +2 -2
  124. package/indicators/supertrend.src.js +1 -1
  125. package/indicators/tema.js +2 -2
  126. package/indicators/tema.src.js +1 -1
  127. package/indicators/trendline.js +2 -2
  128. package/indicators/trendline.src.js +1 -1
  129. package/indicators/trix.js +2 -2
  130. package/indicators/trix.src.js +1 -1
  131. package/indicators/volume-by-price.js +2 -2
  132. package/indicators/volume-by-price.src.js +2 -1
  133. package/indicators/vwap.js +2 -2
  134. package/indicators/vwap.src.js +1 -1
  135. package/indicators/williams-r.js +2 -2
  136. package/indicators/williams-r.src.js +1 -1
  137. package/indicators/wma.js +2 -2
  138. package/indicators/wma.src.js +1 -1
  139. package/indicators/zigzag.js +2 -2
  140. package/indicators/zigzag.src.js +1 -1
  141. package/modules/accessibility.js +2 -2
  142. package/modules/accessibility.src.js +3 -1
  143. package/modules/annotations-advanced.js +3 -3
  144. package/modules/annotations-advanced.src.js +4 -4
  145. package/modules/annotations.js +2 -2
  146. package/modules/annotations.src.js +3 -3
  147. package/modules/arc-diagram.js +2 -2
  148. package/modules/arc-diagram.src.js +1 -1
  149. package/modules/arrow-symbols.js +2 -2
  150. package/modules/arrow-symbols.src.js +1 -1
  151. package/modules/boost-canvas.js +2 -2
  152. package/modules/boost-canvas.src.js +14 -11
  153. package/modules/boost.js +2 -2
  154. package/modules/boost.src.js +14 -11
  155. package/modules/broken-axis.js +2 -2
  156. package/modules/broken-axis.src.js +1 -1
  157. package/modules/bullet.js +2 -2
  158. package/modules/bullet.src.js +1 -1
  159. package/modules/coloraxis.js +2 -2
  160. package/modules/coloraxis.src.js +1 -1
  161. package/modules/current-date-indicator.js +2 -2
  162. package/modules/current-date-indicator.src.js +1 -1
  163. package/modules/cylinder.js +2 -2
  164. package/modules/cylinder.src.js +1 -1
  165. package/modules/data-tools.js +2 -2
  166. package/modules/data-tools.src.js +36 -1
  167. package/modules/data.js +2 -2
  168. package/modules/data.src.js +1 -1
  169. package/modules/datagrouping.js +2 -2
  170. package/modules/datagrouping.src.js +1 -1
  171. package/modules/debugger.js +2 -2
  172. package/modules/debugger.src.js +1 -1
  173. package/modules/dependency-wheel.js +2 -2
  174. package/modules/dependency-wheel.src.js +1 -1
  175. package/modules/dotplot.js +2 -2
  176. package/modules/dotplot.src.js +1 -1
  177. package/modules/drag-panes.js +2 -2
  178. package/modules/drag-panes.src.js +2 -2
  179. package/modules/draggable-points.js +2 -2
  180. package/modules/draggable-points.src.js +1 -1
  181. package/modules/drilldown.js +2 -2
  182. package/modules/drilldown.src.js +1 -1
  183. package/modules/dumbbell.js +2 -2
  184. package/modules/dumbbell.src.js +1 -1
  185. package/modules/export-data.js +2 -2
  186. package/modules/export-data.src.js +1 -1
  187. package/modules/exporting.js +2 -2
  188. package/modules/exporting.src.js +17 -9
  189. package/modules/flowmap.js +2 -2
  190. package/modules/flowmap.src.js +1 -1
  191. package/modules/full-screen.js +2 -2
  192. package/modules/full-screen.src.js +1 -1
  193. package/modules/funnel.js +2 -2
  194. package/modules/funnel.src.js +1 -1
  195. package/modules/funnel3d.js +2 -2
  196. package/modules/funnel3d.src.js +1 -1
  197. package/modules/gantt.js +5 -5
  198. package/modules/gantt.src.js +89 -79
  199. package/modules/geoheatmap.js +2 -2
  200. package/modules/geoheatmap.src.js +1 -1
  201. package/modules/grid-axis.js +2 -2
  202. package/modules/grid-axis.src.js +1 -1
  203. package/modules/heatmap.js +3 -3
  204. package/modules/heatmap.src.js +2 -2
  205. package/modules/heikinashi.js +2 -2
  206. package/modules/heikinashi.src.js +1 -1
  207. package/modules/histogram-bellcurve.js +2 -2
  208. package/modules/histogram-bellcurve.src.js +1 -1
  209. package/modules/hollowcandlestick.js +2 -2
  210. package/modules/hollowcandlestick.src.js +1 -1
  211. package/modules/item-series.js +2 -2
  212. package/modules/item-series.src.js +1 -1
  213. package/modules/lollipop.js +2 -2
  214. package/modules/lollipop.src.js +1 -1
  215. package/modules/map.js +4 -4
  216. package/modules/map.src.js +26 -2
  217. package/modules/marker-clusters.js +2 -2
  218. package/modules/marker-clusters.src.js +1 -1
  219. package/modules/mouse-wheel-zoom.js +2 -2
  220. package/modules/mouse-wheel-zoom.src.js +1 -1
  221. package/modules/navigator.js +2 -2
  222. package/modules/navigator.src.js +1 -1
  223. package/modules/networkgraph.js +2 -2
  224. package/modules/networkgraph.src.js +1 -1
  225. package/modules/no-data-to-display.js +2 -2
  226. package/modules/no-data-to-display.src.js +1 -1
  227. package/modules/offline-exporting.js +2 -2
  228. package/modules/offline-exporting.src.js +18 -10
  229. package/modules/organization.js +2 -2
  230. package/modules/organization.src.js +4 -2
  231. package/modules/overlapping-datalabels.js +2 -2
  232. package/modules/overlapping-datalabels.src.js +1 -1
  233. package/modules/parallel-coordinates.js +2 -2
  234. package/modules/parallel-coordinates.src.js +1 -1
  235. package/modules/pareto.js +2 -2
  236. package/modules/pareto.src.js +1 -1
  237. package/modules/pathfinder.js +2 -2
  238. package/modules/pathfinder.src.js +1 -1
  239. package/modules/pattern-fill.js +2 -2
  240. package/modules/pattern-fill.src.js +1 -1
  241. package/modules/pictorial.js +2 -2
  242. package/modules/pictorial.src.js +1 -1
  243. package/modules/pointandfigure.js +2 -2
  244. package/modules/pointandfigure.src.js +1 -1
  245. package/modules/price-indicator.js +2 -2
  246. package/modules/price-indicator.src.js +1 -1
  247. package/modules/pyramid3d.js +2 -2
  248. package/modules/pyramid3d.src.js +1 -1
  249. package/modules/renko.js +2 -2
  250. package/modules/renko.src.js +1 -1
  251. package/modules/sankey.js +2 -2
  252. package/modules/sankey.src.js +1 -1
  253. package/modules/series-label.js +2 -2
  254. package/modules/series-label.src.js +8 -3
  255. package/modules/series-on-point.js +2 -2
  256. package/modules/series-on-point.src.js +1 -1
  257. package/modules/solid-gauge.js +2 -2
  258. package/modules/solid-gauge.src.js +1 -1
  259. package/modules/sonification.js +2 -2
  260. package/modules/sonification.src.js +1 -1
  261. package/modules/static-scale.js +2 -2
  262. package/modules/static-scale.src.js +1 -1
  263. package/modules/stock-tools.js +2 -2
  264. package/modules/stock-tools.src.js +3 -3
  265. package/modules/stock.js +6 -6
  266. package/modules/stock.src.js +89 -79
  267. package/modules/streamgraph.js +2 -2
  268. package/modules/streamgraph.src.js +1 -1
  269. package/modules/sunburst.js +2 -2
  270. package/modules/sunburst.src.js +290 -62
  271. package/modules/textpath.js +2 -2
  272. package/modules/textpath.src.js +1 -1
  273. package/modules/tiledwebmap.js +3 -3
  274. package/modules/tiledwebmap.src.js +1 -1
  275. package/modules/tilemap.js +2 -2
  276. package/modules/tilemap.src.js +1 -1
  277. package/modules/timeline.js +2 -2
  278. package/modules/timeline.src.js +4 -2
  279. package/modules/treegraph.js +2 -2
  280. package/modules/treegraph.src.js +4 -2
  281. package/modules/treegrid.js +2 -2
  282. package/modules/treegrid.src.js +1 -1
  283. package/modules/treemap.js +2 -2
  284. package/modules/treemap.src.js +288 -60
  285. package/modules/variable-pie.js +2 -2
  286. package/modules/variable-pie.src.js +1 -1
  287. package/modules/variwide.js +2 -2
  288. package/modules/variwide.src.js +1 -1
  289. package/modules/vector.js +2 -2
  290. package/modules/vector.src.js +1 -1
  291. package/modules/venn.js +2 -2
  292. package/modules/venn.src.js +1 -1
  293. package/modules/windbarb.js +2 -2
  294. package/modules/windbarb.src.js +1 -1
  295. package/modules/wordcloud.js +2 -2
  296. package/modules/wordcloud.src.js +1 -1
  297. package/modules/xrange.js +2 -2
  298. package/modules/xrange.src.js +1 -1
  299. package/options/treegraph.d.ts +559 -70
  300. package/options/treegraph.src.d.ts +559 -70
  301. package/options/treemap.d.ts +314 -160
  302. package/options/treemap.src.d.ts +314 -160
  303. package/options/vbp.d.ts +1 -1
  304. package/options/vbp.src.d.ts +1 -1
  305. package/package.json +1 -1
  306. package/standalone-navigator.js +3 -3
  307. package/standalone-navigator.src.js +85 -85
  308. package/themes/avocado.js +2 -2
  309. package/themes/avocado.src.js +1 -1
  310. package/themes/brand-dark.js +2 -2
  311. package/themes/brand-dark.src.js +1 -1
  312. package/themes/brand-light.js +2 -2
  313. package/themes/brand-light.src.js +1 -1
  314. package/themes/dark-blue.js +2 -2
  315. package/themes/dark-blue.src.js +1 -1
  316. package/themes/dark-green.js +2 -2
  317. package/themes/dark-green.src.js +1 -1
  318. package/themes/dark-unica.js +2 -2
  319. package/themes/dark-unica.src.js +1 -1
  320. package/themes/gray.js +2 -2
  321. package/themes/gray.src.js +1 -1
  322. package/themes/grid-light.js +2 -2
  323. package/themes/grid-light.src.js +1 -1
  324. package/themes/grid.js +2 -2
  325. package/themes/grid.src.js +1 -1
  326. package/themes/high-contrast-dark.js +2 -2
  327. package/themes/high-contrast-dark.src.js +1 -1
  328. package/themes/high-contrast-light.js +2 -2
  329. package/themes/high-contrast-light.src.js +1 -1
  330. package/themes/sand-signika.js +2 -2
  331. package/themes/sand-signika.src.js +1 -1
  332. package/themes/skies.js +2 -2
  333. package/themes/skies.src.js +1 -1
  334. package/themes/sunset.js +2 -2
  335. package/themes/sunset.src.js +1 -1
@@ -6,224 +6,369 @@
6
6
  import * as Highcharts from "../highcharts.src";
7
7
  declare module "../highcharts.src" {
8
8
  /**
9
- * (Highcharts) Point accessibility options for a series.
9
+ * (Highcharts) A collection of attributes for the buttons. The object takes
10
+ * SVG attributes like `fill`, `stroke`, `stroke-width`, as well as `style`,
11
+ * a collection of CSS properties for the text.
12
+ *
13
+ * The object can also be extended with states, so you can set
14
+ * presentational options for `hover`, `select` or `disabled` button states.
10
15
  */
11
- interface PlotTreemapAccessibilityPointOptions {
16
+ interface PlotTreemapBreadcrumbsButtonThemeOptions {
17
+ style?: Highcharts.PlotTreemapBreadcrumbsButtonThemeStyleOptions;
18
+ }
19
+ interface PlotTreemapBreadcrumbsEventsOptions {
12
20
  /**
13
- * (Highcharts) Date format to use for points on datetime axes when
14
- * describing them to screen reader users.
21
+ * (Highcharts) Fires when clicking on the breadcrumbs button. Two
22
+ * arguments are passed to the function. First breadcrumb button as an
23
+ * SVG element. Second is the breadcrumbs class, containing reference to
24
+ * the chart, series etc. (see online documentation for example)
15
25
  *
16
- * Defaults to the same format as in tooltip.
17
- *
18
- * For an overview of the replacement codes, see dateFormat.
26
+ * Return false to stop default buttons click action.
27
+ */
28
+ click?: Highcharts.BreadcrumbsClickCallbackFunction;
29
+ }
30
+ /**
31
+ * (Highcharts, Highmaps) Positioning for the button row. The breadcrumbs
32
+ * buttons will be aligned properly for the default chart layout (title,
33
+ * subtitle, legend, range selector) for the custom chart layout set the
34
+ * position properties.
35
+ */
36
+ interface PlotTreemapBreadcrumbsPositionOptions {
37
+ /**
38
+ * (Highcharts, Highmaps) Horizontal alignment of the breadcrumbs
39
+ * buttons.
19
40
  */
20
- dateFormat?: string;
41
+ align?: Highcharts.AlignValue;
21
42
  /**
22
- * (Highcharts) Formatter function to determine the date/time format
23
- * used with points on datetime axes when describing them to screen
24
- * reader users. Receives one argument, `point`, referring to the point
25
- * to describe. Should return a date format string compatible with
26
- * dateFormat.
43
+ * (Highcharts, Highmaps) Vertical alignment of the breadcrumbs buttons.
27
44
  */
28
- dateFormatter?: Highcharts.ScreenReaderFormatterCallbackFunction<Highcharts.Point>;
45
+ verticalAlign?: Highcharts.VerticalAlignValue;
29
46
  /**
30
- * (Highcharts) Whether or not to describe points with the value `null`
31
- * to assistive technology, such as screen readers.
47
+ * (Highcharts, Highmaps) The X offset of the breadcrumbs button group.
32
48
  */
33
- describeNull?: boolean;
49
+ x?: number;
34
50
  /**
35
- * (Highcharts) A format string to use instead of the default for point
36
- * descriptions.
51
+ * (Highcharts, Highmaps) The Y offset of the breadcrumbs button group.
52
+ * When `undefined`, and `floating` is `false`, the `y` position is
53
+ * adapted so that the breadcrumbs are rendered outside the target area.
54
+ */
55
+ y?: (number|undefined);
56
+ }
57
+ /**
58
+ * (Highcharts) CSS styles for the breadcrumbs separator.
59
+ *
60
+ * In styled mode, the breadcrumbs separators are styled by the
61
+ * `.highcharts-separator` rule with its different states.
62
+ */
63
+ interface PlotTreemapBreadcrumbsSeparatorStyleOptions {
64
+ color?: string;
65
+ fontSize?: number;
66
+ }
67
+ interface PlotTreemapClusterMarkerOptions {
68
+ lineWidth?: number;
69
+ radius?: number;
70
+ }
71
+ /**
72
+ * (Highcharts, Highstock, Highmaps, Gantt) Enable or disable the initial
73
+ * animation when a series is displayed for the `dataLabels`. The animation
74
+ * can also be set as a configuration object. Please note that this option
75
+ * only applies to the initial animation.
76
+ *
77
+ * For other animations, see chart.animation and the animation parameter
78
+ * under the API methods. The following properties are supported:
79
+ *
80
+ * - `defer`: The animation delay time in milliseconds.
81
+ */
82
+ interface PlotTreemapDataLabelsAnimationOptions {
83
+ /**
84
+ * (Highcharts, Highstock, Highmaps, Gantt) The animation delay time in
85
+ * milliseconds. Set to `0` to render the data labels immediately. As
86
+ * `undefined` inherits defer time from the series.animation.defer.
87
+ */
88
+ defer?: number;
89
+ }
90
+ /**
91
+ * (Highcharts, Highstock, Highmaps, Gantt) Styles for the label. The
92
+ * default `color` setting is `"contrast"`, which is a pseudo color that
93
+ * Highcharts picks up and applies the maximum contrast to the underlying
94
+ * point item, for example the bar in a bar chart.
95
+ *
96
+ * The `textOutline` is a pseudo property that applies an outline of the
97
+ * given width with the given color, which by default is the maximum
98
+ * contrast to the text. So a bright text color will result in a black text
99
+ * outline for maximum readability on a mixed background. In some cases,
100
+ * especially with grayscale text, the text outline doesn't work well, in
101
+ * which cases it can be disabled by setting it to `"none"`. When `useHTML`
102
+ * is true, the `textOutline` will not be picked up. In this, case, the same
103
+ * effect can be acheived through the `text-shadow` CSS property.
104
+ *
105
+ * For some series types, where each point has an extent, like for example
106
+ * tree maps, the data label may overflow the point. There are two
107
+ * strategies for handling overflow. By default, the text will wrap to
108
+ * multiple lines. The other strategy is to set `style.textOverflow` to
109
+ * `ellipsis`, which will keep the text on one line plus it will break
110
+ * inside long words.
111
+ */
112
+ interface PlotTreemapDataLabelsStyleOptions {
113
+ textOverflow?: string;
114
+ }
115
+ /**
116
+ * (Highcharts) A configuration object to define how the color of a child
117
+ * varies from the parent's color. The variation is distributed among the
118
+ * children of node. For example when setting brightness, the brightness
119
+ * change will range from the parent's original brightness on the first
120
+ * child, to the amount set in the `to` setting on the last node. This
121
+ * allows a gradient-like color scheme that sets children out from each
122
+ * other while highlighting the grouping on treemaps and sectors on sunburst
123
+ * charts.
124
+ */
125
+ interface PlotTreemapLevelsColorVariationOptions {
126
+ /**
127
+ * (Highcharts) The key of a color variation. Currently supports
128
+ * `brightness` only.
129
+ */
130
+ key?: "brightness";
131
+ /**
132
+ * (Highcharts) The ending value of a color variation. The last sibling
133
+ * will receive this value.
134
+ */
135
+ to?: number;
136
+ }
137
+ /**
138
+ * (Highcharts) Can set the options of dataLabels on each point which lies
139
+ * on the level. plotOptions.treemap.dataLabels for possible values.
140
+ */
141
+ interface PlotTreemapLevelsDataLabelsOptions {
142
+ /**
143
+ * (Highcharts) The alignment of the data label compared to the point.
144
+ * If `right`, the right side of the label should be touching the point.
145
+ * For points with an extent, like columns, the alignments also dictates
146
+ * how to align it inside the box, as given with the inside option. Can
147
+ * be one of `left`, `center` or `right`.
148
+ */
149
+ align?: (Highcharts.AlignValue|null);
150
+ /**
151
+ * (Highcharts) Alignment method for data labels. If set to `plotEdges`,
152
+ * the labels are aligned within the plot area in the direction of the
153
+ * y-axis. So in a regular column chart, the labels are aligned
154
+ * vertically according to the `verticalAlign` setting. In a bar chart,
155
+ * which is inverted, the labels are aligned horizontally according to
156
+ * the `align` setting. Applies to cartesian series only.
157
+ */
158
+ alignTo?: string;
159
+ /**
160
+ * (Highcharts) Whether to allow data labels to overlap. To make the
161
+ * labels less sensitive for overlapping, the dataLabels.padding can be
162
+ * set to 0.
163
+ */
164
+ allowOverlap?: boolean;
165
+ /**
166
+ * (Highcharts) Enable or disable the initial animation when a series is
167
+ * displayed for the `dataLabels`. The animation can also be set as a
168
+ * configuration object. Please note that this option only applies to
169
+ * the initial animation.
37
170
  *
38
- * The context of the format string is the point instance.
171
+ * For other animations, see chart.animation and the animation parameter
172
+ * under the API methods. The following properties are supported:
39
173
  *
40
- * As opposed to accessibility.point.valueDescriptionFormat, this option
41
- * replaces the whole description.
174
+ * - `defer`: The animation delay time in milliseconds.
42
175
  */
43
- descriptionFormat?: string;
176
+ animation?: (boolean|Highcharts.PlotTreemapLevelsDataLabelsAnimationOptions|Partial<Highcharts.AnimationOptionsObject>);
44
177
  /**
45
- * (Highcharts) Formatter function to use instead of the default for
46
- * point descriptions. Same as
47
- * `accessibility.point.descriptionFormatter`, but applies to a series
48
- * instead of the whole chart.
49
- *
50
- * Note: Prefer using accessibility.point.valueDescriptionFormat instead
51
- * if possible, as default functionality such as describing annotations
52
- * will be preserved.
178
+ * (Highcharts) The background color or gradient for the data label.
179
+ * Setting it to `auto` will use the point's color.
53
180
  */
54
- descriptionFormatter?: Highcharts.ScreenReaderFormatterCallbackFunction<Highcharts.Point>;
181
+ backgroundColor?: (Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject);
55
182
  /**
56
- * (Highcharts) Decimals to use for the values in the point
57
- * descriptions. Uses tooltip.valueDecimals if not defined.
183
+ * (Highcharts) The border color for the data label. Setting it to
184
+ * `auto` will use the point's color. Defaults to `undefined`.
58
185
  */
59
- valueDecimals?: number;
186
+ borderColor?: (Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject);
60
187
  /**
61
- * (Highcharts) Format to use for describing the values of data points
62
- * to assistive technology - including screen readers. The point context
63
- * is available as `{point}`.
188
+ * (Highcharts) The border radius in pixels for the data label.
189
+ */
190
+ borderRadius?: number;
191
+ /**
192
+ * (Highcharts) The border width in pixels for the data label.
193
+ */
194
+ borderWidth?: number;
195
+ /**
196
+ * (Highcharts) A class name for the data label. Particularly in styled
197
+ * mode, this can be used to give each series' or point's data label
198
+ * unique styling. In addition to this option, a default color class
199
+ * name is added so that we can give the labels a contrast text shadow.
200
+ */
201
+ className?: string;
202
+ /**
203
+ * (Highcharts) This options is deprecated. Use style.color instead.
64
204
  *
65
- * Other available context variables include `{index}`, `{value}`, and
66
- * `{xDescription}`.
205
+ * The text color for the data labels. Defaults to `undefined`. For
206
+ * certain series types, like column or map, the data labels can be
207
+ * drawn inside the points. In this case the data label will be drawn
208
+ * with maximum contrast by default. Additionally, it will be given a
209
+ * `text-outline` style with the opposite color, to further increase the
210
+ * contrast. This can be overridden by setting the `text-outline` style
211
+ * to `none` in the `dataLabels.style` option.
67
212
  *
68
- * Additionally, the series name, annotation info, and description added
69
- * in `point.accessibility.description` is added by default if relevant.
70
- * To override this, use the accessibility.point.descriptionFormatter
71
- * option.
213
+ * @deprecated 10.3.0
72
214
  */
73
- valueDescriptionFormat?: string;
215
+ color?: Highcharts.ColorType;
74
216
  /**
75
- * (Highcharts) Prefix to add to the values in the point descriptions.
76
- * Uses tooltip.valuePrefix if not defined.
217
+ * (Highcharts) Whether to hide data labels that are outside the plot
218
+ * area. By default, the data label is moved inside the plot area
219
+ * according to the overflow option.
77
220
  */
78
- valuePrefix?: string;
221
+ crop?: boolean;
79
222
  /**
80
- * (Highcharts) Suffix to add to the values in the point descriptions.
81
- * Uses tooltip.valueSuffix if not defined.
223
+ * (Highcharts, Highstock, Gantt) Whether to defer displaying the data
224
+ * labels until the initial series animation has finished. Setting to
225
+ * `false` renders the data label immediately. If set to `true` inherits
226
+ * the defer time set in plotOptions.series.animation.
82
227
  */
83
- valueSuffix?: string;
84
- }
85
- interface PlotTreemapBreadcrumbsButtonThemeStyleOptions {
86
- color?: string;
87
- }
88
- /**
89
- * (Highcharts) Options for the breadcrumbs, the navigation at the top
90
- * leading the way up through the traversed levels.
91
- */
92
- interface PlotTreemapBreadcrumbsOptions {
228
+ defer?: boolean;
93
229
  /**
94
- * (Highcharts) The default padding for each button and separator in
95
- * each direction.
230
+ * (Highcharts) Enable or disable the data labels.
96
231
  */
97
- buttonSpacing?: number;
232
+ enabled?: boolean;
98
233
  /**
99
- * (Highcharts) A collection of attributes for the buttons. The object
100
- * takes SVG attributes like `fill`, `stroke`, `stroke-width`, as well
101
- * as `style`, a collection of CSS properties for the text.
102
- *
103
- * The object can also be extended with states, so you can set
104
- * presentational options for `hover`, `select` or `disabled` button
105
- * states.
234
+ * (Highcharts) A declarative filter to control of which data labels to
235
+ * display. The declarative filter is designed for use when callback
236
+ * functions are not available, like when the chart options require a
237
+ * pure JSON structure or for use with graphical editors. For
238
+ * programmatic control, use the `formatter` instead, and return
239
+ * `undefined` to disable a single data label.
106
240
  */
107
- buttonTheme?: (Highcharts.PlotTreemapBreadcrumbsButtonThemeOptions|Highcharts.SVGAttributes);
108
- events?: Highcharts.PlotTreemapBreadcrumbsEventsOptions;
241
+ filter?: Highcharts.DataLabelsFilterOptionsObject;
109
242
  /**
110
- * (Highcharts) When the breadcrumbs are floating, the plot area will
111
- * not move to make space for it. By default, the chart will not make
112
- * space for the buttons. This property won't work when positioned in
113
- * the middle.
243
+ * (Highcharts) A format string for the data label. Available variables
244
+ * are the same as for `formatter`.
114
245
  */
115
- floating?: boolean;
246
+ format?: string;
116
247
  /**
117
- * (Highcharts) A format string for the breadcrumbs button. Variables
118
- * are enclosed by curly brackets. Available values are passed in the
119
- * declared point options.
248
+ * (Highcharts) Callback JavaScript function to format the data label.
249
+ * Note that if a `format` is defined, the format takes precedence and
250
+ * the formatter is ignored.
120
251
  */
121
- format?: (string|undefined);
252
+ formatter?: Highcharts.DataLabelsFormatterCallbackFunction;
122
253
  /**
123
- * (Highcharts) Callback function to format the breadcrumb text from
124
- * scratch.
254
+ * (Highcharts) For points with an extent, like columns or map areas,
255
+ * whether to align the data label inside the box or to the actual value
256
+ * point. Defaults to `false` in most cases, `true` in stacked columns.
125
257
  */
126
- formatter?: Highcharts.BreadcrumbsFormatterCallbackFunction;
258
+ inside?: boolean;
127
259
  /**
128
- * (Highcharts, Highmaps) Positioning for the button row. The
129
- * breadcrumbs buttons will be aligned properly for the default chart
130
- * layout (title, subtitle, legend, range selector) for the custom chart
131
- * layout set the position properties.
260
+ * (Highcharts) Format for points with the value of null. Works
261
+ * analogously to format. `nullFormat` can be applied only to series
262
+ * which support displaying null points i.e `heatmap` or `tilemap`. Does
263
+ * not work with series that don't display null points, like `line`,
264
+ * `column`, `bar` or `pie`.
132
265
  */
133
- position?: (Highcharts.BreadcrumbsAlignOptions|Highcharts.PlotTreemapBreadcrumbsPositionOptions);
266
+ nullFormat?: (boolean|string);
134
267
  /**
135
- * (Highcharts, Highmaps) What box to align the button to. Can be either
136
- * `plotBox` or `spacingBox`.
268
+ * (Highcharts) Callback JavaScript function that defines formatting for
269
+ * points with the value of null. Works analogously to formatter.
270
+ * `nullFormatter` can be applied only to series which support
271
+ * displaying null points i.e `heatmap` or `tilemap`. Does not work with
272
+ * series that don't display null points, like `line`, `column`, `bar`
273
+ * or `pie`.
137
274
  */
138
- relativeTo?: Highcharts.ButtonRelativeToValue;
275
+ nullFormatter?: Highcharts.DataLabelsFormatterCallbackFunction;
139
276
  /**
140
- * (Highcharts) Whether to reverse the order of buttons. This is common
141
- * in Arabic and Hebrew.
277
+ * (Highcharts) How to handle data labels that flow outside the plot
278
+ * area. The default is `"justify"`, which aligns them inside the plot
279
+ * area. For columns and bars, this means it will be moved inside the
280
+ * bar. To display data labels outside the plot area, set `crop` to
281
+ * `false` and `overflow` to `"allow"`.
142
282
  */
143
- rtl?: boolean;
283
+ overflow?: Highcharts.DataLabelsOverflowValue;
144
284
  /**
145
- * (Highcharts) Options object for Breadcrumbs separator.
285
+ * (Highcharts) When either the `borderWidth` or the `backgroundColor`
286
+ * is set, this is the padding within the box.
146
287
  */
147
- separator?: Highcharts.PlotTreemapBreadcrumbsSeparatorOptions;
288
+ padding?: number;
148
289
  /**
149
- * (Highcharts) Show full path or only a single button.
290
+ * (Highcharts) Aligns data labels relative to points. If `center`
291
+ * alignment is not possible, it defaults to `right`.
150
292
  */
151
- showFullPath?: boolean;
293
+ position?: Highcharts.AlignValue;
152
294
  /**
153
- * (Highcharts) CSS styles for all breadcrumbs.
295
+ * (Highcharts) Text rotation in degrees. Note that due to a more
296
+ * complex structure, backgrounds, borders and padding will be lost on a
297
+ * rotated data label.
298
+ */
299
+ rotation?: number;
300
+ /**
301
+ * (Highcharts) The shadow of the box. Works best with `borderWidth` or
302
+ * `backgroundColor`. Since 2.3 the shadow can be an object
303
+ * configuration containing `color`, `offsetX`, `offsetY`, `opacity` and
304
+ * `width`.
305
+ */
306
+ shadow?: (boolean|Highcharts.ShadowOptionsObject);
307
+ /**
308
+ * (Highcharts) The name of a symbol to use for the border around the
309
+ * label. Symbols are predefined functions on the Renderer object.
310
+ */
311
+ shape?: string;
312
+ /**
313
+ * (Highcharts) Styles for the label. The default `color` setting is
314
+ * `"contrast"`, which is a pseudo color that Highcharts picks up and
315
+ * applies the maximum contrast to the underlying point item, for
316
+ * example the bar in a bar chart.
317
+ *
318
+ * The `textOutline` is a pseudo property that applies an outline of the
319
+ * given width with the given color, which by default is the maximum
320
+ * contrast to the text. So a bright text color will result in a black
321
+ * text outline for maximum readability on a mixed background. In some
322
+ * cases, especially with grayscale text, the text outline doesn't work
323
+ * well, in which cases it can be disabled by setting it to `"none"`.
324
+ * When `useHTML` is true, the `textOutline` will not be picked up. In
325
+ * this, case, the same effect can be acheived through the `text-shadow`
326
+ * CSS property.
327
+ *
328
+ * For some series types, where each point has an extent, like for
329
+ * example tree maps, the data label may overflow the point. There are
330
+ * two strategies for handling overflow. By default, the text will wrap
331
+ * to multiple lines. The other strategy is to set `style.textOverflow`
332
+ * to `ellipsis`, which will keep the text on one line plus it will
333
+ * break inside long words.
334
+ */
335
+ style?: (Highcharts.CSSObject|Highcharts.PlotTreemapLevelsDataLabelsStyleOptions);
336
+ /**
337
+ * (Highcharts) Options for a label text which should follow marker's
338
+ * shape. Border and background are disabled for a label that follows a
339
+ * path.
154
340
  *
155
- * In styled mode, the breadcrumbs buttons are styled by the
156
- * `.highcharts-breadcrumbs-buttons .highcharts-button` rule with its
157
- * different states.
341
+ * **Note:** Only SVG-based renderer supports this option. Setting
342
+ * `useHTML` to true will disable this option.
158
343
  */
159
- style?: Highcharts.SVGAttributes;
344
+ textPath?: Highcharts.DataLabelsTextPathOptionsObject;
160
345
  /**
161
- * (Highcharts) Whether to use HTML to render the breadcrumbs items
162
- * texts.
346
+ * (Highcharts) Whether to use HTML to render the labels.
163
347
  */
164
348
  useHTML?: boolean;
165
349
  /**
166
- * (Highcharts) The z index of the breadcrumbs group.
350
+ * (Highcharts) The vertical alignment of a data label. Can be one of
351
+ * `top`, `middle` or `bottom`. The default value depends on the data,
352
+ * for instance in a column chart, the label is above positive values
353
+ * and below negative values.
167
354
  */
168
- zIndex?: number;
169
- }
170
- /**
171
- * (Highcharts) Options object for Breadcrumbs separator.
172
- */
173
- interface PlotTreemapBreadcrumbsSeparatorOptions {
355
+ verticalAlign?: string;
174
356
  /**
175
- * (Highcharts) CSS styles for the breadcrumbs separator.
176
- *
177
- * In styled mode, the breadcrumbs separators are styled by the
178
- * `.highcharts-separator` rule with its different states.
357
+ * (Highcharts) The x position offset of the label relative to the point
358
+ * in pixels.
179
359
  */
180
- style?: (Highcharts.CSSObject|Highcharts.PlotTreemapBreadcrumbsSeparatorStyleOptions);
181
- text?: string;
182
- }
183
- /**
184
- * (Highcharts, Highstock, Highmaps, Gantt) Enable or disable the initial
185
- * animation when a series is displayed for the `dataLabels`. The animation
186
- * can also be set as a configuration object. Please note that this option
187
- * only applies to the initial animation.
188
- *
189
- * For other animations, see chart.animation and the animation parameter
190
- * under the API methods. The following properties are supported:
191
- *
192
- * - `defer`: The animation delay time in milliseconds.
193
- */
194
- interface PlotTreemapDataLabelsAnimationOptions {
360
+ x?: number;
195
361
  /**
196
- * (Highcharts, Highstock, Highmaps, Gantt) The animation delay time in
197
- * milliseconds. Set to `0` to render the data labels immediately. As
198
- * `undefined` inherits defer time from the series.animation.defer.
362
+ * (Highcharts) The y position offset of the label relative to the point
363
+ * in pixels.
199
364
  */
200
- defer?: number;
201
- }
202
- /**
203
- * (Highcharts, Highstock, Gantt) Styles for the series label. The color
204
- * defaults to the series color, or a contrast color if `onArea`.
205
- */
206
- interface PlotTreemapLabelStyleOptions {
207
- fontSize?: (number|string);
208
- }
209
- /**
210
- * (Highcharts) Enable or disable the initial animation when a series is
211
- * displayed for the `dataLabels`. The animation can also be set as a
212
- * configuration object. Please note that this option only applies to the
213
- * initial animation.
214
- *
215
- * For other animations, see chart.animation and the animation parameter
216
- * under the API methods. The following properties are supported:
217
- *
218
- * - `defer`: The animation delay time in milliseconds.
219
- */
220
- interface PlotTreemapLevelsDataLabelsAnimationOptions {
365
+ y?: number;
221
366
  /**
222
- * (Highcharts) The animation delay time in milliseconds. Set to `0` to
223
- * render the data labels immediately. As `undefined` inherits defer
224
- * time from the series.animation.defer.
367
+ * (Highcharts) The z index of the data labels. Use a `zIndex` of 6 to
368
+ * display it above the series, or use a `zIndex` of 2 to display it
369
+ * behind the series.
225
370
  */
226
- defer?: number;
371
+ zIndex?: number;
227
372
  }
228
373
  /**
229
374
  * (Highcharts) Set options on specific levels. Takes precedence over series
@@ -433,6 +578,15 @@ declare module "../highcharts.src" {
433
578
  * set
434
579
  */
435
580
  clip?: boolean;
581
+ /**
582
+ * (Highcharts) An option to optimize treemap series rendering by
583
+ * grouping smaller leaf nodes below a certain square area threshold in
584
+ * pixels. If the square area of a point becomes smaller than the
585
+ * specified threshold, determined by the `pixelWidth` and/or
586
+ * `pixelHeight` options, then this point is moved into one group point
587
+ * per series.
588
+ */
589
+ cluster?: Highcharts.PlotTreemapClusterOptions;
436
590
  /**
437
591
  * (Highcharts) The main color of the series. In line type series it
438
592
  * applies to the line and the point markers unless otherwise specified.
package/options/vbp.d.ts CHANGED
@@ -102,7 +102,7 @@ declare module "../highcharts" {
102
102
  * as given with the inside option. Can be one of `left`, `center` or
103
103
  * `right`.
104
104
  */
105
- align?: (Highcharts.AlignValue|null);
105
+ align?: string;
106
106
  /**
107
107
  * (Highcharts, Highstock, Highmaps, Gantt) Alignment method for data
108
108
  * labels. If set to `plotEdges`, the labels are aligned within the plot
@@ -102,7 +102,7 @@ declare module "../highcharts.src" {
102
102
  * as given with the inside option. Can be one of `left`, `center` or
103
103
  * `right`.
104
104
  */
105
- align?: (Highcharts.AlignValue|null);
105
+ align?: string;
106
106
  /**
107
107
  * (Highcharts, Highstock, Highmaps, Gantt) Alignment method for data
108
108
  * labels. If set to `plotEdges`, the labels are aligned within the plot
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "highcharts",
3
3
  "description": "JavaScript charting framework",
4
4
  "homepage": "http://www.highcharts.com",
5
- "version": "12.0.2",
5
+ "version": "12.1.1",
6
6
  "author": "Highsoft AS <support@highcharts.com> (http://www.highcharts.com/about)",
7
7
  "main": "highcharts.js",
8
8
  "repository": {