highcharts 10.0.0 → 10.1.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 (500) hide show
  1. package/bower.json +1 -1
  2. package/es-modules/Accessibility/A11yI18n.js +4 -4
  3. package/es-modules/Accessibility/Components/ContainerComponent.js +8 -9
  4. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +14 -9
  5. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +31 -15
  6. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +23 -4
  7. package/es-modules/Accessibility/FocusBorder.js +6 -5
  8. package/es-modules/Accessibility/Options/LangOptions.js +36 -31
  9. package/es-modules/Accessibility/Options/Options.js +66 -3
  10. package/es-modules/Accessibility/Utils/ChartUtilities.js +9 -4
  11. package/es-modules/Core/Axis/Axis.js +30 -27
  12. package/es-modules/Core/Axis/GridAxis.js +5 -2
  13. package/es-modules/Core/Axis/LogarithmicAxis.js +1 -1
  14. package/es-modules/Core/Axis/OrdinalAxis.js +3 -2
  15. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +1 -1
  16. package/es-modules/Core/Axis/StackingAxis.js +0 -1
  17. package/es-modules/Core/Axis/Tick.js +2 -2
  18. package/es-modules/Core/Chart/Chart.js +21 -3
  19. package/es-modules/Core/Chart/ChartDefaults.js +11 -0
  20. package/es-modules/Core/Chart/StockChart.js +1 -1
  21. package/es-modules/Core/DefaultOptions.js +6 -4
  22. package/es-modules/Core/Globals.js +1 -1
  23. package/es-modules/Core/Legend/Legend.js +1 -1
  24. package/es-modules/Core/Navigator.js +1 -1
  25. package/es-modules/Core/Renderer/HTML/AST.js +9 -6
  26. package/es-modules/Core/Renderer/SVG/SVGElement.js +22 -22
  27. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +16 -13
  28. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +1 -1
  29. package/es-modules/Core/Scrollbar.js +9 -5
  30. package/es-modules/Core/Series/DataLabel.js +54 -33
  31. package/es-modules/Core/Series/Series.js +19 -7
  32. package/es-modules/Core/Utilities.js +1 -1
  33. package/es-modules/Extensions/Annotations/Annotations.js +2 -2
  34. package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
  35. package/es-modules/Extensions/Annotations/NavigationBindings.js +9 -1
  36. package/es-modules/Extensions/Annotations/Popup.js +1 -1
  37. package/es-modules/Extensions/Breadcrumbs.js +2 -3
  38. package/es-modules/Extensions/DataGrouping.js +3 -1
  39. package/es-modules/Extensions/Debugger/ErrorMessages.js +4 -0
  40. package/es-modules/Extensions/Drilldown.js +6 -4
  41. package/es-modules/Extensions/ExportData.js +1 -2
  42. package/es-modules/Extensions/Exporting/Exporting.js +22 -13
  43. package/es-modules/Extensions/FullScreen.js +121 -54
  44. package/es-modules/Extensions/GeoJSON.js +3 -2
  45. package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
  46. package/es-modules/Extensions/Oldie/Oldie.js +1 -1
  47. package/es-modules/Extensions/OverlappingDataLabels.js +5 -4
  48. package/es-modules/Extensions/Polar.js +4 -1
  49. package/es-modules/Extensions/Stacking.js +1 -1
  50. package/es-modules/Extensions/Themes/HighContrastDark.js +10 -10
  51. package/es-modules/Extensions/Themes/HighContrastLight.js +9 -9
  52. package/es-modules/Maps/MapNavigation.js +1 -5
  53. package/es-modules/Maps/MapView.js +6 -2
  54. package/es-modules/Maps/MapViewOptionsDefault.js +3 -1
  55. package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +9 -1
  56. package/es-modules/Series/CenteredUtilities.js +6 -1
  57. package/es-modules/Series/Flags/FlagsSeries.js +7 -12
  58. package/es-modules/Series/Gauge/GaugeSeries.js +1 -1
  59. package/es-modules/Series/Heatmap/HeatmapSeries.js +13 -20
  60. package/es-modules/Series/Map/MapSeries.js +11 -1
  61. package/es-modules/Series/MapBubble/MapBubbleSeries.js +49 -3
  62. package/es-modules/Series/MapPoint/MapPointSeries.js +4 -0
  63. package/es-modules/Series/Pie/PieDataLabel.js +3 -1
  64. package/es-modules/Series/Pie/PieSeries.js +12 -1
  65. package/es-modules/Series/Sankey/SankeySeries.js +3 -1
  66. package/es-modules/Series/Sunburst/SunburstSeries.js +1 -1
  67. package/es-modules/Series/Wordcloud/WordcloudSeries.js +4 -4
  68. package/es-modules/Stock/StockToolsBindings.js +31 -24
  69. package/es-modules/Stock/StockToolsGui.js +1 -1
  70. package/es-modules/masters/highcharts-3d.src.js +1 -1
  71. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  72. package/es-modules/masters/highcharts-more.src.js +1 -1
  73. package/es-modules/masters/highcharts.src.js +1 -1
  74. package/es-modules/masters/highmaps.src.js +1 -1
  75. package/es-modules/masters/highstock.src.js +1 -1
  76. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  77. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  78. package/es-modules/masters/indicators/ao.src.js +1 -1
  79. package/es-modules/masters/indicators/apo.src.js +1 -1
  80. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  81. package/es-modules/masters/indicators/aroon.src.js +1 -1
  82. package/es-modules/masters/indicators/atr.src.js +1 -1
  83. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  84. package/es-modules/masters/indicators/cci.src.js +1 -1
  85. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  86. package/es-modules/masters/indicators/cmf.src.js +1 -1
  87. package/es-modules/masters/indicators/cmo.src.js +1 -1
  88. package/es-modules/masters/indicators/dema.src.js +1 -1
  89. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  90. package/es-modules/masters/indicators/dmi.src.js +1 -1
  91. package/es-modules/masters/indicators/dpo.src.js +1 -1
  92. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  93. package/es-modules/masters/indicators/indicators-all.src.js +1 -1
  94. package/es-modules/masters/indicators/indicators.src.js +1 -1
  95. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  96. package/es-modules/masters/indicators/klinger.src.js +1 -1
  97. package/es-modules/masters/indicators/macd.src.js +1 -1
  98. package/es-modules/masters/indicators/mfi.src.js +1 -1
  99. package/es-modules/masters/indicators/momentum.src.js +1 -1
  100. package/es-modules/masters/indicators/natr.src.js +1 -1
  101. package/es-modules/masters/indicators/obv.src.js +1 -1
  102. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  103. package/es-modules/masters/indicators/ppo.src.js +1 -1
  104. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  105. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  106. package/es-modules/masters/indicators/psar.src.js +1 -1
  107. package/es-modules/masters/indicators/regressions.src.js +1 -1
  108. package/es-modules/masters/indicators/roc.src.js +1 -1
  109. package/es-modules/masters/indicators/rsi.src.js +1 -1
  110. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  111. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  112. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  113. package/es-modules/masters/indicators/tema.src.js +1 -1
  114. package/es-modules/masters/indicators/trendline.src.js +1 -1
  115. package/es-modules/masters/indicators/trix.src.js +1 -1
  116. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  117. package/es-modules/masters/indicators/vwap.src.js +1 -1
  118. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  119. package/es-modules/masters/indicators/wma.src.js +1 -1
  120. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  121. package/es-modules/masters/modules/accessibility.src.js +1 -1
  122. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  123. package/es-modules/masters/modules/annotations.src.js +1 -1
  124. package/es-modules/masters/modules/arc-diagram.src.js +1 -1
  125. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  126. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  127. package/es-modules/masters/modules/boost.src.js +1 -1
  128. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  129. package/es-modules/masters/modules/bullet.src.js +1 -1
  130. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  131. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  132. package/es-modules/masters/modules/cylinder.src.js +1 -1
  133. package/es-modules/masters/modules/data.src.js +1 -1
  134. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  135. package/es-modules/masters/modules/debugger.src.js +1 -1
  136. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  137. package/es-modules/masters/modules/dotplot.src.js +1 -1
  138. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  139. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  140. package/es-modules/masters/modules/drilldown.src.js +1 -1
  141. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  142. package/es-modules/masters/modules/export-data.src.js +1 -1
  143. package/es-modules/masters/modules/exporting.src.js +1 -1
  144. package/es-modules/masters/modules/full-screen.src.js +1 -1
  145. package/es-modules/masters/modules/funnel.src.js +1 -1
  146. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  147. package/es-modules/masters/modules/gantt.src.js +1 -1
  148. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  149. package/es-modules/masters/modules/heatmap.src.js +1 -1
  150. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  151. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  152. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  153. package/es-modules/masters/modules/item-series.src.js +1 -1
  154. package/es-modules/masters/modules/lollipop.src.js +1 -1
  155. package/es-modules/masters/modules/map.src.js +1 -1
  156. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  157. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  158. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  159. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  160. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  161. package/es-modules/masters/modules/oldie.src.js +1 -1
  162. package/es-modules/masters/modules/organization.src.js +1 -1
  163. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  164. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  165. package/es-modules/masters/modules/pareto.src.js +1 -1
  166. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  167. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  168. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  169. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  170. package/es-modules/masters/modules/sankey.src.js +1 -1
  171. package/es-modules/masters/modules/series-label.src.js +1 -1
  172. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  173. package/es-modules/masters/modules/sonification.src.js +1 -1
  174. package/es-modules/masters/modules/static-scale.src.js +1 -1
  175. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  176. package/es-modules/masters/modules/stock.src.js +1 -1
  177. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  178. package/es-modules/masters/modules/sunburst.src.js +1 -1
  179. package/es-modules/masters/modules/tilemap.src.js +1 -1
  180. package/es-modules/masters/modules/timeline.src.js +1 -1
  181. package/es-modules/masters/modules/treegrid.src.js +1 -1
  182. package/es-modules/masters/modules/treemap.src.js +1 -1
  183. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  184. package/es-modules/masters/modules/variwide.src.js +1 -1
  185. package/es-modules/masters/modules/vector.src.js +1 -1
  186. package/es-modules/masters/modules/venn.src.js +1 -1
  187. package/es-modules/masters/modules/windbarb.src.js +1 -1
  188. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  189. package/es-modules/masters/modules/xrange.src.js +1 -1
  190. package/es-modules/masters/themes/avocado.src.js +1 -1
  191. package/es-modules/masters/themes/brand-dark.src.js +1 -1
  192. package/es-modules/masters/themes/brand-light.src.js +1 -1
  193. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  194. package/es-modules/masters/themes/dark-green.src.js +1 -1
  195. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  196. package/es-modules/masters/themes/gray.src.js +1 -1
  197. package/es-modules/masters/themes/grid-light.src.js +1 -1
  198. package/es-modules/masters/themes/grid.src.js +1 -1
  199. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  200. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  201. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  202. package/es-modules/masters/themes/skies.src.js +1 -1
  203. package/es-modules/masters/themes/sunset.src.js +1 -1
  204. package/highcharts-3d.js +2 -2
  205. package/highcharts-3d.src.js +2 -2
  206. package/highcharts-gantt.js +805 -802
  207. package/highcharts-gantt.js.map +1 -1
  208. package/highcharts-gantt.src.js +261 -144
  209. package/highcharts-more.js +5 -5
  210. package/highcharts-more.js.map +1 -1
  211. package/highcharts-more.src.js +6 -3
  212. package/highcharts.d.ts +1077 -53
  213. package/highcharts.js +591 -588
  214. package/highcharts.js.map +1 -1
  215. package/highcharts.src.d.ts +1077 -53
  216. package/highcharts.src.js +246 -136
  217. package/highmaps.js +758 -756
  218. package/highmaps.js.map +1 -1
  219. package/highmaps.src.js +336 -171
  220. package/highstock.js +792 -789
  221. package/highstock.js.map +1 -1
  222. package/highstock.src.js +272 -157
  223. package/indicators/acceleration-bands.js +1 -1
  224. package/indicators/acceleration-bands.src.js +1 -1
  225. package/indicators/accumulation-distribution.js +1 -1
  226. package/indicators/accumulation-distribution.src.js +1 -1
  227. package/indicators/ao.js +1 -1
  228. package/indicators/ao.src.js +1 -1
  229. package/indicators/apo.js +1 -1
  230. package/indicators/apo.src.js +1 -1
  231. package/indicators/aroon-oscillator.js +1 -1
  232. package/indicators/aroon-oscillator.src.js +1 -1
  233. package/indicators/aroon.js +1 -1
  234. package/indicators/aroon.src.js +1 -1
  235. package/indicators/atr.js +1 -1
  236. package/indicators/atr.src.js +1 -1
  237. package/indicators/bollinger-bands.js +1 -1
  238. package/indicators/bollinger-bands.src.js +1 -1
  239. package/indicators/cci.js +1 -1
  240. package/indicators/cci.src.js +1 -1
  241. package/indicators/chaikin.js +1 -1
  242. package/indicators/chaikin.src.js +1 -1
  243. package/indicators/cmf.js +1 -1
  244. package/indicators/cmf.src.js +1 -1
  245. package/indicators/cmo.js +1 -1
  246. package/indicators/cmo.src.js +1 -1
  247. package/indicators/dema.js +1 -1
  248. package/indicators/dema.src.js +1 -1
  249. package/indicators/disparity-index.js +1 -1
  250. package/indicators/disparity-index.src.js +1 -1
  251. package/indicators/dmi.js +1 -1
  252. package/indicators/dmi.src.js +1 -1
  253. package/indicators/dpo.js +1 -1
  254. package/indicators/dpo.src.js +1 -1
  255. package/indicators/ichimoku-kinko-hyo.js +1 -1
  256. package/indicators/ichimoku-kinko-hyo.src.js +1 -1
  257. package/indicators/indicators-all.js +1 -1
  258. package/indicators/indicators-all.src.js +1 -1
  259. package/indicators/indicators.js +1 -1
  260. package/indicators/indicators.src.js +1 -1
  261. package/indicators/keltner-channels.js +1 -1
  262. package/indicators/keltner-channels.src.js +1 -1
  263. package/indicators/klinger.js +1 -1
  264. package/indicators/klinger.src.js +1 -1
  265. package/indicators/macd.js +1 -1
  266. package/indicators/macd.src.js +1 -1
  267. package/indicators/mfi.js +1 -1
  268. package/indicators/mfi.src.js +1 -1
  269. package/indicators/momentum.js +1 -1
  270. package/indicators/momentum.src.js +1 -1
  271. package/indicators/natr.js +1 -1
  272. package/indicators/natr.src.js +1 -1
  273. package/indicators/obv.js +1 -1
  274. package/indicators/obv.src.js +1 -1
  275. package/indicators/pivot-points.js +1 -1
  276. package/indicators/pivot-points.src.js +1 -1
  277. package/indicators/ppo.js +1 -1
  278. package/indicators/ppo.src.js +1 -1
  279. package/indicators/price-channel.js +1 -1
  280. package/indicators/price-channel.src.js +1 -1
  281. package/indicators/price-envelopes.js +1 -1
  282. package/indicators/price-envelopes.src.js +1 -1
  283. package/indicators/psar.js +1 -1
  284. package/indicators/psar.src.js +1 -1
  285. package/indicators/regressions.js +1 -1
  286. package/indicators/regressions.src.js +1 -1
  287. package/indicators/roc.js +1 -1
  288. package/indicators/roc.src.js +1 -1
  289. package/indicators/rsi.js +1 -1
  290. package/indicators/rsi.src.js +1 -1
  291. package/indicators/slow-stochastic.js +1 -1
  292. package/indicators/slow-stochastic.src.js +1 -1
  293. package/indicators/stochastic.js +1 -1
  294. package/indicators/stochastic.src.js +1 -1
  295. package/indicators/supertrend.js +1 -1
  296. package/indicators/supertrend.src.js +1 -1
  297. package/indicators/tema.js +1 -1
  298. package/indicators/tema.src.js +1 -1
  299. package/indicators/trendline.js +1 -1
  300. package/indicators/trendline.src.js +1 -1
  301. package/indicators/trix.js +1 -1
  302. package/indicators/trix.src.js +1 -1
  303. package/indicators/volume-by-price.js +1 -1
  304. package/indicators/volume-by-price.src.js +1 -1
  305. package/indicators/vwap.js +1 -1
  306. package/indicators/vwap.src.js +1 -1
  307. package/indicators/williams-r.js +1 -1
  308. package/indicators/williams-r.src.js +1 -1
  309. package/indicators/wma.js +1 -1
  310. package/indicators/wma.src.js +1 -1
  311. package/indicators/zigzag.js +1 -1
  312. package/indicators/zigzag.src.js +1 -1
  313. package/modules/accessibility.js +240 -238
  314. package/modules/accessibility.js.map +1 -1
  315. package/modules/accessibility.src.js +220 -87
  316. package/modules/annotations-advanced.js +6 -6
  317. package/modules/annotations-advanced.js.map +1 -1
  318. package/modules/annotations-advanced.src.js +14 -6
  319. package/modules/annotations.js +6 -6
  320. package/modules/annotations.js.map +1 -1
  321. package/modules/annotations.src.js +14 -6
  322. package/modules/arc-diagram.js +7 -7
  323. package/modules/arc-diagram.js.map +1 -1
  324. package/modules/arc-diagram.src.js +10 -2
  325. package/modules/arrow-symbols.js +1 -1
  326. package/modules/arrow-symbols.src.js +1 -1
  327. package/modules/boost-canvas.js +1 -1
  328. package/modules/boost-canvas.src.js +1 -1
  329. package/modules/boost.js +1 -1
  330. package/modules/boost.src.js +1 -1
  331. package/modules/broken-axis.js +1 -1
  332. package/modules/broken-axis.src.js +1 -1
  333. package/modules/bullet.js +1 -1
  334. package/modules/bullet.src.js +1 -1
  335. package/modules/coloraxis.js +1 -1
  336. package/modules/coloraxis.src.js +1 -1
  337. package/modules/current-date-indicator.js +1 -1
  338. package/modules/current-date-indicator.src.js +1 -1
  339. package/modules/cylinder.js +1 -1
  340. package/modules/cylinder.src.js +1 -1
  341. package/modules/data.js +1 -1
  342. package/modules/data.src.js +1 -1
  343. package/modules/datagrouping.js +7 -7
  344. package/modules/datagrouping.js.map +1 -1
  345. package/modules/datagrouping.src.js +4 -2
  346. package/modules/debugger.js +6 -5
  347. package/modules/debugger.js.map +1 -1
  348. package/modules/debugger.src.js +5 -1
  349. package/modules/dependency-wheel.js +1 -1
  350. package/modules/dependency-wheel.src.js +1 -1
  351. package/modules/dotplot.js +1 -1
  352. package/modules/dotplot.src.js +1 -1
  353. package/modules/drag-panes.js +1 -1
  354. package/modules/drag-panes.src.js +1 -1
  355. package/modules/draggable-points.js +1 -1
  356. package/modules/draggable-points.src.js +1 -1
  357. package/modules/drilldown.js +36 -37
  358. package/modules/drilldown.js.map +1 -1
  359. package/modules/drilldown.src.js +9 -9
  360. package/modules/dumbbell.js +1 -1
  361. package/modules/dumbbell.src.js +1 -1
  362. package/modules/export-data.js +13 -13
  363. package/modules/export-data.js.map +1 -1
  364. package/modules/export-data.src.js +2 -3
  365. package/modules/exporting.js +39 -39
  366. package/modules/exporting.js.map +1 -1
  367. package/modules/exporting.src.js +146 -75
  368. package/modules/full-screen.js +8 -8
  369. package/modules/full-screen.js.map +1 -1
  370. package/modules/full-screen.src.js +125 -57
  371. package/modules/funnel.js +1 -1
  372. package/modules/funnel.src.js +1 -1
  373. package/modules/funnel3d.js +1 -1
  374. package/modules/funnel3d.src.js +1 -1
  375. package/modules/gantt.js +218 -217
  376. package/modules/gantt.js.map +1 -1
  377. package/modules/gantt.src.js +16 -9
  378. package/modules/grid-axis.js +21 -21
  379. package/modules/grid-axis.js.map +1 -1
  380. package/modules/grid-axis.src.js +6 -3
  381. package/modules/heatmap.js +40 -40
  382. package/modules/heatmap.js.map +1 -1
  383. package/modules/heatmap.src.js +14 -21
  384. package/modules/heikinashi.js +1 -1
  385. package/modules/heikinashi.src.js +1 -1
  386. package/modules/histogram-bellcurve.js +1 -1
  387. package/modules/histogram-bellcurve.src.js +1 -1
  388. package/modules/hollowcandlestick.js +1 -1
  389. package/modules/hollowcandlestick.src.js +1 -1
  390. package/modules/item-series.js +1 -1
  391. package/modules/item-series.src.js +1 -1
  392. package/modules/lollipop.js +1 -1
  393. package/modules/lollipop.src.js +1 -1
  394. package/modules/map.js +169 -169
  395. package/modules/map.js.map +1 -1
  396. package/modules/map.src.js +91 -36
  397. package/modules/marker-clusters.js +1 -1
  398. package/modules/marker-clusters.src.js +1 -1
  399. package/modules/networkgraph.js +1 -1
  400. package/modules/networkgraph.src.js +1 -1
  401. package/modules/no-data-to-display.js +1 -1
  402. package/modules/no-data-to-display.src.js +1 -1
  403. package/modules/offline-exporting.js +2 -2
  404. package/modules/offline-exporting.src.js +2 -2
  405. package/modules/oldie-polyfills.js +1 -1
  406. package/modules/oldie-polyfills.src.js +1 -1
  407. package/modules/oldie.js +2 -2
  408. package/modules/oldie.src.js +2 -2
  409. package/modules/organization.js +1 -1
  410. package/modules/organization.src.js +1 -1
  411. package/modules/overlapping-datalabels.js +1 -1
  412. package/modules/overlapping-datalabels.src.js +1 -1
  413. package/modules/parallel-coordinates.js +1 -1
  414. package/modules/parallel-coordinates.src.js +1 -1
  415. package/modules/pareto.js +1 -1
  416. package/modules/pareto.src.js +1 -1
  417. package/modules/pathfinder.js +1 -1
  418. package/modules/pathfinder.src.js +1 -1
  419. package/modules/pattern-fill.js +1 -1
  420. package/modules/pattern-fill.src.js +1 -1
  421. package/modules/price-indicator.js +1 -1
  422. package/modules/price-indicator.src.js +1 -1
  423. package/modules/pyramid3d.js +1 -1
  424. package/modules/pyramid3d.src.js +1 -1
  425. package/modules/sankey.js +5 -5
  426. package/modules/sankey.js.map +1 -1
  427. package/modules/sankey.src.js +4 -2
  428. package/modules/series-label.js +1 -1
  429. package/modules/series-label.src.js +1 -1
  430. package/modules/solid-gauge.js +1 -1
  431. package/modules/solid-gauge.src.js +1 -1
  432. package/modules/sonification.js +1 -1
  433. package/modules/sonification.src.js +1 -1
  434. package/modules/static-scale.js +1 -1
  435. package/modules/static-scale.src.js +1 -1
  436. package/modules/stock-tools.js +137 -137
  437. package/modules/stock-tools.js.map +1 -1
  438. package/modules/stock-tools.src.js +46 -30
  439. package/modules/stock.js +204 -204
  440. package/modules/stock.js.map +1 -1
  441. package/modules/stock.src.js +27 -22
  442. package/modules/streamgraph.js +1 -1
  443. package/modules/streamgraph.src.js +1 -1
  444. package/modules/sunburst.js +69 -69
  445. package/modules/sunburst.js.map +1 -1
  446. package/modules/sunburst.src.js +4 -6
  447. package/modules/tilemap.js +1 -1
  448. package/modules/tilemap.src.js +1 -1
  449. package/modules/timeline.js +1 -1
  450. package/modules/timeline.src.js +1 -1
  451. package/modules/treegrid.js +56 -56
  452. package/modules/treegrid.js.map +1 -1
  453. package/modules/treegrid.src.js +6 -3
  454. package/modules/treemap.js +50 -50
  455. package/modules/treemap.js.map +1 -1
  456. package/modules/treemap.src.js +3 -5
  457. package/modules/variable-pie.js +1 -1
  458. package/modules/variable-pie.src.js +1 -1
  459. package/modules/variwide.js +1 -1
  460. package/modules/variwide.src.js +1 -1
  461. package/modules/vector.js +1 -1
  462. package/modules/vector.src.js +1 -1
  463. package/modules/venn.js +1 -1
  464. package/modules/venn.src.js +1 -1
  465. package/modules/windbarb.js +1 -1
  466. package/modules/windbarb.src.js +1 -1
  467. package/modules/wordcloud.js +4 -3
  468. package/modules/wordcloud.js.map +1 -1
  469. package/modules/wordcloud.src.js +5 -5
  470. package/modules/xrange.js +1 -1
  471. package/modules/xrange.src.js +1 -1
  472. package/package.json +1 -1
  473. package/themes/avocado.js +1 -1
  474. package/themes/avocado.src.js +1 -1
  475. package/themes/brand-dark.js +1 -1
  476. package/themes/brand-dark.src.js +1 -1
  477. package/themes/brand-light.js +1 -1
  478. package/themes/brand-light.src.js +1 -1
  479. package/themes/dark-blue.js +1 -1
  480. package/themes/dark-blue.src.js +1 -1
  481. package/themes/dark-green.js +1 -1
  482. package/themes/dark-green.src.js +1 -1
  483. package/themes/dark-unica.js +1 -1
  484. package/themes/dark-unica.src.js +1 -1
  485. package/themes/gray.js +1 -1
  486. package/themes/gray.src.js +1 -1
  487. package/themes/grid-light.js +1 -1
  488. package/themes/grid-light.src.js +1 -1
  489. package/themes/grid.js +1 -1
  490. package/themes/grid.src.js +1 -1
  491. package/themes/high-contrast-dark.js +2 -2
  492. package/themes/high-contrast-dark.src.js +11 -11
  493. package/themes/high-contrast-light.js +2 -2
  494. package/themes/high-contrast-light.src.js +10 -10
  495. package/themes/sand-signika.js +1 -1
  496. package/themes/sand-signika.src.js +1 -1
  497. package/themes/skies.js +1 -1
  498. package/themes/skies.src.js +1 -1
  499. package/themes/sunset.js +1 -1
  500. package/themes/sunset.src.js +1 -1
@@ -11,7 +11,7 @@ import H from '../Core/Globals.js';
11
11
  var doc = H.doc;
12
12
  import AST from '../Core/Renderer/HTML/AST.js';
13
13
  import U from '../Core/Utilities.js';
14
- var addEvent = U.addEvent;
14
+ var addEvent = U.addEvent, fireEvent = U.fireEvent;
15
15
  /**
16
16
  * The module allows user to enable display chart in full screen mode.
17
17
  * Used in StockTools too.
@@ -101,26 +101,30 @@ var Fullscreen = /** @class */ (function () {
101
101
  */
102
102
  Fullscreen.prototype.close = function () {
103
103
  var fullscreen = this, chart = fullscreen.chart, optionsChart = chart.options.chart;
104
- // Don't fire exitFullscreen() when user exited using 'Escape' button.
105
- if (fullscreen.isOpen &&
106
- fullscreen.browserProps &&
107
- chart.container.ownerDocument instanceof Document) {
108
- chart.container.ownerDocument[fullscreen.browserProps.exitFullscreen]();
109
- }
110
- // Unbind event as it's necessary only before exiting from fullscreen.
111
- if (fullscreen.unbindFullscreenEvent) {
112
- fullscreen.unbindFullscreenEvent = fullscreen
113
- .unbindFullscreenEvent();
114
- }
115
- chart.setSize(fullscreen.origWidth, fullscreen.origHeight, false);
116
- fullscreen.origWidth = void 0;
117
- fullscreen.origHeight = void 0;
118
- optionsChart.width = fullscreen.origWidthOption;
119
- optionsChart.height = fullscreen.origHeightOption;
120
- fullscreen.origWidthOption = void 0;
121
- fullscreen.origHeightOption = void 0;
122
- fullscreen.isOpen = false;
123
- fullscreen.setButtonText();
104
+ fireEvent(chart, 'fullscreenClose', null, function () {
105
+ // Don't fire exitFullscreen() when user exited
106
+ // using 'Escape' button.
107
+ if (fullscreen.isOpen &&
108
+ fullscreen.browserProps &&
109
+ chart.container.ownerDocument instanceof Document) {
110
+ chart.container.ownerDocument[fullscreen.browserProps.exitFullscreen]();
111
+ }
112
+ // Unbind event as it's necessary only before exiting
113
+ // from fullscreen.
114
+ if (fullscreen.unbindFullscreenEvent) {
115
+ fullscreen.unbindFullscreenEvent = fullscreen
116
+ .unbindFullscreenEvent();
117
+ }
118
+ chart.setSize(fullscreen.origWidth, fullscreen.origHeight, false);
119
+ fullscreen.origWidth = void 0;
120
+ fullscreen.origHeight = void 0;
121
+ optionsChart.width = fullscreen.origWidthOption;
122
+ optionsChart.height = fullscreen.origHeightOption;
123
+ fullscreen.origWidthOption = void 0;
124
+ fullscreen.origHeightOption = void 0;
125
+ fullscreen.isOpen = false;
126
+ fullscreen.setButtonText();
127
+ });
124
128
  };
125
129
  /**
126
130
  * Displays the chart in fullscreen mode.
@@ -136,41 +140,44 @@ var Fullscreen = /** @class */ (function () {
136
140
  */
137
141
  Fullscreen.prototype.open = function () {
138
142
  var fullscreen = this, chart = fullscreen.chart, optionsChart = chart.options.chart;
139
- if (optionsChart) {
140
- fullscreen.origWidthOption = optionsChart.width;
141
- fullscreen.origHeightOption = optionsChart.height;
142
- }
143
- fullscreen.origWidth = chart.chartWidth;
144
- fullscreen.origHeight = chart.chartHeight;
145
- // Handle exitFullscreen() method when user clicks 'Escape' button.
146
- if (fullscreen.browserProps) {
147
- var unbindChange_1 = addEvent(chart.container.ownerDocument, // chart's document
148
- fullscreen.browserProps.fullscreenChange, function () {
149
- // Handle lack of async of browser's fullScreenChange event.
150
- if (fullscreen.isOpen) {
151
- fullscreen.isOpen = false;
152
- fullscreen.close();
153
- }
154
- else {
155
- chart.setSize(null, null, false);
156
- fullscreen.isOpen = true;
157
- fullscreen.setButtonText();
158
- }
159
- });
160
- var unbindDestroy_1 = addEvent(chart, 'destroy', unbindChange_1);
161
- fullscreen.unbindFullscreenEvent = function () {
162
- unbindChange_1();
163
- unbindDestroy_1();
164
- };
165
- var promise = chart.renderTo[fullscreen.browserProps.requestFullscreen]();
166
- if (promise) {
167
- // No dot notation because of IE8 compatibility
168
- promise['catch'](function () {
169
- alert(// eslint-disable-line no-alert
170
- 'Full screen is not supported inside a frame.');
143
+ fireEvent(chart, 'fullscreenOpen', null, function () {
144
+ if (optionsChart) {
145
+ fullscreen.origWidthOption = optionsChart.width;
146
+ fullscreen.origHeightOption = optionsChart.height;
147
+ }
148
+ fullscreen.origWidth = chart.chartWidth;
149
+ fullscreen.origHeight = chart.chartHeight;
150
+ // Handle exitFullscreen() method when user clicks 'Escape' button.
151
+ if (fullscreen.browserProps) {
152
+ var unbindChange_1 = addEvent(chart.container.ownerDocument, // chart's document
153
+ fullscreen.browserProps.fullscreenChange, function () {
154
+ // Handle lack of async of browser's
155
+ // fullScreenChange event.
156
+ if (fullscreen.isOpen) {
157
+ fullscreen.isOpen = false;
158
+ fullscreen.close();
159
+ }
160
+ else {
161
+ chart.setSize(null, null, false);
162
+ fullscreen.isOpen = true;
163
+ fullscreen.setButtonText();
164
+ }
171
165
  });
166
+ var unbindDestroy_1 = addEvent(chart, 'destroy', unbindChange_1);
167
+ fullscreen.unbindFullscreenEvent = function () {
168
+ unbindChange_1();
169
+ unbindDestroy_1();
170
+ };
171
+ var promise = chart.renderTo[fullscreen.browserProps.requestFullscreen]();
172
+ if (promise) {
173
+ // No dot notation because of IE8 compatibility
174
+ promise['catch'](function () {
175
+ alert(// eslint-disable-line no-alert
176
+ 'Full screen is not supported inside a frame.');
177
+ });
178
+ }
172
179
  }
173
- }
180
+ });
174
181
  };
175
182
  /**
176
183
  * Replaces the exporting context button's text when toogling the
@@ -238,3 +245,63 @@ addEvent(Chart, 'beforeRender', function () {
238
245
  */
239
246
  this.fullscreen = new H.Fullscreen(this);
240
247
  });
248
+ /* *
249
+ *
250
+ * API Declarations
251
+ *
252
+ * */
253
+ /**
254
+ * Gets fired when closing the fullscreen
255
+ *
256
+ * @callback Highcharts.FullScreenfullscreenCloseCallbackFunction
257
+ *
258
+ * @param {Highcharts.Chart} chart
259
+ * The chart on which the event occured.
260
+ *
261
+ * @param {global.Event} event
262
+ * The event that occured.
263
+ */
264
+ /**
265
+ * Gets fired when opening the fullscreen
266
+ *
267
+ * @callback Highcharts.FullScreenfullscreenOpenCallbackFunction
268
+ *
269
+ * @param {Highcharts.Chart} chart
270
+ * The chart on which the event occured.
271
+ *
272
+ * @param {global.Event} event
273
+ * The event that occured.
274
+ */
275
+ /* *
276
+ *
277
+ * API Options
278
+ *
279
+ * */
280
+ /**
281
+ * Fires when a fullscreen is closed through the context menu item,
282
+ * or a fullscreen is closed on the `Escape` button click,
283
+ * or the `Chart.fullscreen.close` method.
284
+ *
285
+ * @sample highcharts/chart/events-fullscreen
286
+ * Title size change on fullscreen open
287
+ *
288
+ * @type {Highcharts.FullScreenfullscreenCloseCallbackFunction}
289
+ * @since 10.1.0
290
+ * @context Highcharts.Chart
291
+ * @requires modules/full-screen
292
+ * @apioption chart.events.fullscreenClose
293
+ */
294
+ /**
295
+ * Fires when a fullscreen is opened through the context menu item,
296
+ * or the `Chart.fullscreen.open` method.
297
+ *
298
+ * @sample highcharts/chart/events-fullscreen
299
+ * Title size change on fullscreen open
300
+ *
301
+ * @type {Highcharts.FullScreenfullscreenOpenCallbackFunction}
302
+ * @since 10.1.0
303
+ * @context Highcharts.Chart
304
+ * @requires modules/full-screen
305
+ * @apioption chart.events.fullscreenOpen
306
+ */
307
+ (''); // keeps doclets above in transpiled file
@@ -246,7 +246,7 @@ Chart.prototype.transformToLatLon = function (point, transform) {
246
246
  (transform.rotation && Math.cos(transform.rotation)), sinAngle = transform.sinAngle ||
247
247
  (transform.rotation && Math.sin(transform.rotation)),
248
248
  // Note: Inverted sinAngle to reverse rotation direction
249
- projected = win.proj4(transform.crs, 'WGS84', transform.rotation ? {
249
+ projected = proj4(transform.crs, 'WGS84', transform.rotation ? {
250
250
  x: normalized.x * cosAngle + normalized.y * -sinAngle,
251
251
  y: normalized.x * sinAngle + normalized.y * cosAngle
252
252
  } : normalized);
@@ -355,7 +355,8 @@ function topo2geo(topology, objectName) {
355
355
  copyrightUrl: topology.copyrightUrl,
356
356
  features: features,
357
357
  'hc-recommended-mapview': object['hc-recommended-mapview'],
358
- bbox: topology.bbox
358
+ bbox: topology.bbox,
359
+ title: topology.title
359
360
  };
360
361
  object['hc-decoded-geojson'] = geojson;
361
362
  return geojson;
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * */
16
16
  var OfflineExportingDefaults = {
17
- libURL: 'https://code.highcharts.com/10.0.0/lib/',
17
+ libURL: 'https://code.highcharts.com/10.1.0/lib/',
18
18
  // When offline-exporting is loaded, redefine the menu item definitions
19
19
  // related to download.
20
20
  menuItemDefinitions: {
@@ -36,7 +36,7 @@ var VMLRenderer, VMLElement;
36
36
  * @apioption global.VMLRadialGradientURL
37
37
  */
38
38
  getOptions().global.VMLRadialGradientURL =
39
- 'http://code.highcharts.com/10.0.0/gfx/vml-radial-gradient.png';
39
+ 'http://code.highcharts.com/10.1.0/gfx/vml-radial-gradient.png';
40
40
  // Utilites
41
41
  if (doc && !doc.defaultView) {
42
42
  H.getStyle = U.getStyle = function getStyle(el, prop) {
@@ -34,9 +34,7 @@ addEvent(Chart, 'render', function collectAndHide() {
34
34
  !yAxis.options.stackLabels.allowOverlap) {
35
35
  objectEach(yAxis.stacking.stacks, function (stack) {
36
36
  objectEach(stack, function (stackItem) {
37
- if (stackItem.label &&
38
- stackItem.label.visibility !== 'hidden' // #15607
39
- ) {
37
+ if (stackItem.label) {
40
38
  labels.push(stackItem.label);
41
39
  }
42
40
  });
@@ -162,7 +160,10 @@ Chart.prototype.hideOverlappingLabels = function (labels) {
162
160
  box2 &&
163
161
  label1 !== label2 && // #6465, polar chart with connectEnds
164
162
  label1.newOpacity !== 0 &&
165
- label2.newOpacity !== 0) {
163
+ label2.newOpacity !== 0 &&
164
+ // #15863 dataLabels are no longer hidden by translation
165
+ label1.visibility !== 'hidden' &&
166
+ label2.visibility !== 'hidden') {
166
167
  if (isIntersectRect(box1, box2)) {
167
168
  (label1.labelrank < label2.labelrank ? label1 : label2)
168
169
  .newOpacity = 0;
@@ -652,7 +652,10 @@ if (seriesTypes.column) {
652
652
  // visible y range
653
653
  if (this.isRadialBar && point.shapeArgs &&
654
654
  point.shapeArgs.start === point.shapeArgs.end) {
655
- dataLabel.hide(true);
655
+ dataLabel.hide();
656
+ }
657
+ else {
658
+ dataLabel.show();
656
659
  }
657
660
  }
658
661
  else {
@@ -179,7 +179,7 @@ var StackItem = /** @class */ (function () {
179
179
  }
180
180
  else {
181
181
  // Move label away to avoid the overlapping issues
182
- label.alignAttr.y = -9999;
182
+ label.hide();
183
183
  isJustify = false;
184
184
  }
185
185
  if (isJustify) {
@@ -31,16 +31,16 @@ var HighContrastDarkTheme;
31
31
  var textBright = '#F0F0F3';
32
32
  HighContrastDarkTheme.options = {
33
33
  colors: [
34
- '#6783E7',
35
- '#8AC668',
36
- '#9630EF',
37
- '#F0A079',
38
- '#51ACD1',
39
- '#CB3F44',
40
- '#CD9FE5',
41
- '#4DA9A5',
42
- '#BBDEE0',
43
- '#E3AF3D'
34
+ '#67B9EE',
35
+ '#CEEDA5',
36
+ '#9F6AE1',
37
+ '#FEA26E',
38
+ '#6BA48F',
39
+ '#EA3535',
40
+ '#8D96B7',
41
+ '#ECCA15',
42
+ '#20AA09',
43
+ '#E0C3E4'
44
44
  ],
45
45
  chart: {
46
46
  backgroundColor: '#1f1f20',
@@ -30,16 +30,16 @@ var HighContrastLightTheme;
30
30
  * */
31
31
  HighContrastLightTheme.options = {
32
32
  colors: [
33
- '#4372da',
33
+ '#265FB5',
34
34
  '#222',
35
- '#0b7383',
36
- '#6B26F0',
37
- '#D42D1A',
38
- '#3D239E',
39
- '#7e7932',
40
- '#b06320',
41
- '#244a76',
42
- '#76767A'
35
+ '#698F01',
36
+ '#F4693E',
37
+ '#4C0684',
38
+ '#0FA388',
39
+ '#B7104A',
40
+ '#AF9023',
41
+ '#1A704C',
42
+ '#B02FDD'
43
43
  ],
44
44
  navigator: {
45
45
  series: {
@@ -96,13 +96,9 @@ MapNavigation.prototype.update = function (options) {
96
96
  attr = buttonOptions.theme;
97
97
  attr.style = merge(buttonOptions.theme.style, buttonOptions.style // #3203
98
98
  );
99
- states = attr.states;
100
- hoverStates = states && states.hover;
101
- selectStates = states && states.select;
102
- delete attr.states;
103
99
  }
104
100
  var button = chart.renderer
105
- .button(buttonOptions.text || '', 0, 0, outerHandler, attr, hoverStates, selectStates, void 0, n === 'zoomIn' ? 'topbutton' : 'bottombutton')
101
+ .button(buttonOptions.text || '', 0, 0, outerHandler, attr, void 0, void 0, void 0, n === 'zoomIn' ? 'topbutton' : 'bottombutton')
106
102
  .addClass('highcharts-map-navigation highcharts-' + {
107
103
  zoomIn: 'zoom-in',
108
104
  zoomOut: 'zoom-out'
@@ -38,7 +38,7 @@ import MU from './MapUtilities.js';
38
38
  var boundsFromPath = MU.boundsFromPath, pointInPolygon = MU.pointInPolygon;
39
39
  import Projection from './Projection.js';
40
40
  import U from '../Core/Utilities.js';
41
- var addEvent = U.addEvent, clamp = U.clamp, defined = U.defined, fireEvent = U.fireEvent, isArray = U.isArray, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, merge = U.merge, pick = U.pick, relativeLength = U.relativeLength;
41
+ var addEvent = U.addEvent, clamp = U.clamp, fireEvent = U.fireEvent, isArray = U.isArray, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, merge = U.merge, pick = U.pick, relativeLength = U.relativeLength;
42
42
  /**
43
43
  * The world size in terms of 10k meters in the Web Mercator projection, to
44
44
  * match a 256 square tile to zoom level 0
@@ -174,7 +174,11 @@ var MapView = /** @class */ (function () {
174
174
  _this.minZoom === _this.zoom // When resizing the chart
175
175
  ) {
176
176
  _this.fitToBounds(void 0, void 0, false);
177
- if (isNumber(_this.userOptions.zoom)) {
177
+ if (
178
+ // Set zoom only when initializing the chart
179
+ // (do not overwrite when zooming in/out, #17082)
180
+ !_this.chart.hasRendered &&
181
+ isNumber(_this.userOptions.zoom)) {
178
182
  _this.zoom = _this.userOptions.zoom;
179
183
  }
180
184
  if (_this.userOptions.center) {
@@ -76,8 +76,10 @@ var defaultOptions = {
76
76
  * @type {string}
77
77
  * @sample maps/mapview/projection-explorer
78
78
  * Projection explorer
79
- * @sample maps/mapview/projection-custom
79
+ * @sample maps/mapview/projection-custom-proj4js
80
80
  * Custom UTM projection definition
81
+ * @sample maps/mapview/projection-custom-d3geo
82
+ * Custom Robinson projection definition
81
83
  * @sample maps/demo/topojson-projection
82
84
  * Orthographic projection
83
85
  */
@@ -250,6 +250,7 @@ var ArcDiagramSeries = /** @class */ (function (_super) {
250
250
  ];
251
251
  // Pass test in drawPoints
252
252
  point.y = point.plotY = 1;
253
+ point.x = point.plotX = 1;
253
254
  if (!point.color) {
254
255
  point.color = fromNode.color;
255
256
  }
@@ -460,11 +461,18 @@ var ArcDiagramSeries = /** @class */ (function (_super) {
460
461
  * **Note:** Only SVG-based renderer supports this option. Setting
461
462
  * `useHTML` to true will disable this option.
462
463
  *
463
- * @extends plotOptions.arcdiagram.dataLabels.linkTextPath
464
+ * @extends plotOptions.networkgraph.dataLabels.linkTextPath
464
465
  * @since 10.0.0
465
466
  */
466
467
  linkTextPath: {
468
+ /**
469
+ * @type {Highcharts.SVGAttributes}
470
+ * @default {"startOffset":"25%"}
471
+ */
467
472
  attributes: {
473
+ /**
474
+ * @ignore-option
475
+ */
468
476
  startOffset: '25%'
469
477
  }
470
478
  }
@@ -37,7 +37,7 @@ var CenteredUtilities;
37
37
  * @function Highcharts.CenteredSeriesMixin.getCenter
38
38
  */
39
39
  function getCenter() {
40
- var options = this.options, chart = this.chart, slicingRoom = 2 * (options.slicedOffset || 0), plotWidth = chart.plotWidth - 2 * slicingRoom, plotHeight = chart.plotHeight - 2 * slicingRoom, centerOption = options.center, smallestSize = Math.min(plotWidth, plotHeight);
40
+ var options = this.options, chart = this.chart, slicingRoom = 2 * (options.slicedOffset || 0), plotWidth = chart.plotWidth - 2 * slicingRoom, plotHeight = chart.plotHeight - 2 * slicingRoom, centerOption = options.center, smallestSize = Math.min(plotWidth, plotHeight), thickness = options.thickness;
41
41
  var handleSlicingRoom, size = options.size, innerSize = options.innerSize || 0, i, value;
42
42
  if (typeof size === 'string') {
43
43
  size = parseFloat(size);
@@ -70,6 +70,11 @@ var CenteredUtilities;
70
70
  if (positions[3] > positions[2]) {
71
71
  positions[3] = positions[2];
72
72
  }
73
+ // thickness overrides innerSize, need to be less than pie size (#6647)
74
+ if (isNumber(thickness) &&
75
+ thickness * 2 < positions[2] && thickness > 0) {
76
+ positions[3] = positions[2] - thickness * 2;
77
+ }
73
78
  return positions;
74
79
  }
75
80
  CenteredUtilities.getCenter = getCenter;
@@ -191,23 +191,18 @@ var FlagsSeries = /** @class */ (function (_super) {
191
191
  // depending on the label width or a hardcoded value, #16041.
192
192
  distribute(boxes, inverted ? yAxis.len : this.xAxis.len, maxDistance_1);
193
193
  points.forEach(function (point) {
194
- var box = point.graphic && boxesMap[point.plotX];
195
- if (box) {
196
- point.graphic[point.graphic.isNew ? 'attr' : 'animate']({
197
- x: box.pos + box.align * box.size,
198
- anchorX: point.anchorX
199
- });
194
+ var plotX = point.plotX, graphic = point.graphic, box = graphic && boxesMap[plotX];
195
+ if (box && graphic) {
200
196
  // Hide flag when its box position is not specified
201
197
  // (#8573, #9299)
202
198
  if (!defined(box.pos)) {
203
- point.graphic.attr({
204
- x: -9999,
205
- anchorX: -9999
206
- });
207
- point.graphic.isNew = true;
199
+ graphic.hide().isNew = true;
208
200
  }
209
201
  else {
210
- point.graphic.isNew = false;
202
+ graphic[graphic.isNew ? 'attr' : 'animate']({
203
+ x: box.pos + (box.align || 0) * box.size,
204
+ anchorX: point.anchorX
205
+ }).show().isNew = false;
211
206
  }
212
207
  }
213
208
  });
@@ -198,7 +198,7 @@ var GaugeSeries = /** @class */ (function (_super) {
198
198
  * @private
199
199
  */
200
200
  GaugeSeries.prototype.render = function () {
201
- this.group = this.plotGroup('group', 'series', this.visible ? 'visible' : 'hidden', this.options.zIndex, this.chart.seriesGroup);
201
+ this.group = this.plotGroup('group', 'series', this.visible ? 'inherit' : 'hidden', this.options.zIndex, this.chart.seriesGroup);
202
202
  Series.prototype.render.call(this);
203
203
  this.group.clip(this.chart.clipRect);
204
204
  };
@@ -85,25 +85,6 @@ var HeatmapSeries = /** @class */ (function (_super) {
85
85
  this.points.forEach(function (point) {
86
86
  if (point.graphic) {
87
87
  point.graphic[_this.chart.styledMode ? 'css' : 'animate'](_this.colorAttribs(point));
88
- // @todo
89
- // Applying the border radius here is not optimal. It should
90
- // be set in the shapeArgs or returned from `markerAttribs`.
91
- // However, Series.drawPoints does not pick up markerAttribs
92
- // to be passed over to `renderer.symbol`. Also, image
93
- // symbols are not positioned by their top left corner like
94
- // other symbols are. This should be refactored, then we
95
- // could save ourselves some tests for .hasImage etc. And
96
- // the evaluation of borderRadius would be moved to
97
- // `markerAttribs`.
98
- if (_this.options.borderRadius) {
99
- point.graphic.attr({
100
- r: _this.options.borderRadius
101
- });
102
- }
103
- // Saving option for reapplying later
104
- // when changing point's states (#16165)
105
- (point.shapeArgs || {}).r = _this.options.borderRadius;
106
- (point.shapeArgs || {}).d = point.graphic.pathArray;
107
88
  if (point.value === null) { // #15708
108
89
  point.graphic.addClass('highcharts-null-point');
109
90
  }
@@ -157,6 +138,18 @@ var HeatmapSeries = /** @class */ (function (_super) {
157
138
  this.yAxis.axisPointRange = options.rowsize || 1;
158
139
  // Bind new symbol names
159
140
  symbols.ellipse = symbols.circle;
141
+ // @todo
142
+ //
143
+ // Setting the border radius here is a workaround. It should be set in
144
+ // the shapeArgs or returned from `markerAttribs`. However,
145
+ // Series.drawPoints does not pick up markerAttribs to be passed over to
146
+ // `renderer.symbol`. Also, image symbols are not positioned by their
147
+ // top left corner like other symbols are. This should be refactored,
148
+ // then we could save ourselves some tests for .hasImage etc. And the
149
+ // evaluation of borderRadius would be moved to `markerAttribs`.
150
+ if (options.marker) {
151
+ options.marker.r = options.borderRadius;
152
+ }
160
153
  };
161
154
  /**
162
155
  * @private
@@ -270,7 +263,7 @@ var HeatmapSeries = /** @class */ (function (_super) {
270
263
  clientX: (cellAttr.x1 + cellAttr.x2) / 2,
271
264
  shapeType: 'path',
272
265
  shapeArgs: merge(true, shapeArgs, {
273
- d: symbols[shape](shapeArgs.x, shapeArgs.y, shapeArgs.width, shapeArgs.height)
266
+ d: symbols[shape](shapeArgs.x, shapeArgs.y, shapeArgs.width, shapeArgs.height, { r: options.borderRadius })
274
267
  })
275
268
  };
276
269
  if (hasImage) {
@@ -321,7 +321,7 @@ var MapSeries = /** @class */ (function (_super) {
321
321
  */
322
322
  MapSeries.prototype.getProjectedBounds = function () {
323
323
  if (!this.bounds && this.chart.mapView) {
324
- var MAX_VALUE = Number.MAX_VALUE, _a = this.chart.mapView, insets_1 = _a.insets, projection_1 = _a.projection, allBounds_1 = [];
324
+ var _a = this.chart.mapView, insets_1 = _a.insets, projection_1 = _a.projection, allBounds_1 = [];
325
325
  // Find the bounding box of each point
326
326
  (this.points || []).forEach(function (point) {
327
327
  if (point.path || point.geometry) {
@@ -408,6 +408,16 @@ var MapSeries = /** @class */ (function (_super) {
408
408
  'inherit');
409
409
  return attr;
410
410
  };
411
+ /**
412
+ * @private
413
+ */
414
+ MapSeries.prototype.updateData = function () {
415
+ // #16782
416
+ if (this.processedData) {
417
+ return false;
418
+ }
419
+ return _super.prototype.updateData.apply(this, arguments);
420
+ };
411
421
  /**
412
422
  * Extend setData to call processData and generatePoints immediately.
413
423
  * @private
@@ -25,8 +25,6 @@ import BubbleSeries from '../Bubble/BubbleSeries.js';
25
25
  import MapBubblePoint from './MapBubblePoint.js';
26
26
  import MapSeries from '../Map/MapSeries.js';
27
27
  import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
28
- import H from '../../Core/Globals.js';
29
- var noop = H.noop;
30
28
  var MapPointSeries = SeriesRegistry.seriesTypes.mappoint;
31
29
  import U from '../../Core/Utilities.js';
32
30
  var extend = U.extend, merge = U.merge;
@@ -110,15 +108,62 @@ var MapBubbleSeries = /** @class */ (function (_super) {
110
108
  * @apioption plotOptions.mapbubble.displayNegative
111
109
  */
112
110
  /**
113
- * @sample {highmaps} maps/demo/map-bubble/
111
+ * Color of the line connecting bubbles. The default value is the same
112
+ * as series' color.
113
+ *
114
+ * In styled mode, the color can be defined by the
115
+ * [colorIndex](#plotOptions.series.colorIndex) option. Also, the series
116
+ * color can be set with the `.highcharts-series`,
117
+ * `.highcharts-color-{n}`, `.highcharts-{type}-series` or
118
+ * `.highcharts-series-{n}` class, or individual classes given by the
119
+ * `className` option.
120
+ *
121
+ *
122
+ * @sample {highmaps} maps/demo/spider-map/
123
+ * Spider map
124
+ * @sample {highmaps} maps/plotoptions/spider-map-line-color/
125
+ * Different line color
126
+ *
127
+ * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
128
+ * @apioption plotOptions.mapbubble.lineColor
129
+ */
130
+ /**
131
+ * Pixel width of the line connecting bubbles.
132
+ *
133
+ * @sample {highmaps} maps/demo/spider-map/
134
+ * Spider map
135
+ *
136
+ * @product highmaps
137
+ * @apioption plotOptions.mapbubble.lineWidth
138
+ */
139
+ lineWidth: 0,
140
+ /**
141
+ * Maximum bubble size. Bubbles will automatically size between the
142
+ * `minSize` and `maxSize` to reflect the `z` value of each bubble.
143
+ * Can be either pixels (when no unit is given), or a percentage of
144
+ * the smallest one of the plot width and height.
145
+ *
146
+ * @sample {highmaps} highcharts/plotoptions/bubble-size/
114
147
  * Bubble size
148
+ * @sample {highmaps} maps/demo/spider-map/
149
+ * Spider map
115
150
  *
151
+ * @product highmaps
116
152
  * @apioption plotOptions.mapbubble.maxSize
153
+
117
154
  */
118
155
  /**
156
+ * Minimum bubble size. Bubbles will automatically size between the
157
+ * `minSize` and `maxSize` to reflect the `z` value of each bubble.
158
+ * Can be either pixels (when no unit is given), or a percentage of
159
+ * the smallest one of the plot width and height.
160
+ *
119
161
  * @sample {highmaps} maps/demo/map-bubble/
120
162
  * Bubble size
163
+ * @sample {highmaps} maps/demo/spider-map/
164
+ * Spider map
121
165
  *
166
+ * @product highmaps
122
167
  * @apioption plotOptions.mapbubble.minSize
123
168
  */
124
169
  /**
@@ -216,6 +261,7 @@ extend(MapBubbleSeries.prototype, {
216
261
  projectPoint: MapPointSeries.prototype.projectPoint,
217
262
  setData: MapSeries.prototype.setData,
218
263
  setOptions: MapSeries.prototype.setOptions,
264
+ updateData: MapSeries.prototype.updateData,
219
265
  useMapGeometry: true,
220
266
  xyFromShape: true
221
267
  });