highcharts 8.2.0 → 8.2.2

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 (731) hide show
  1. package/bower.json +1 -1
  2. package/es-modules/Accessibility/Accessibility.js +3 -2
  3. package/es-modules/Accessibility/AccessibilityComponent.js +7 -8
  4. package/es-modules/Accessibility/Components/ContainerComponent.js +6 -7
  5. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +0 -1
  6. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +4 -4
  7. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +4 -4
  8. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +3 -2
  9. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +4 -4
  10. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +8 -6
  11. package/es-modules/Accessibility/Components/ZoomComponent.js +7 -6
  12. package/es-modules/Accessibility/KeyboardNavigation.js +7 -3
  13. package/es-modules/Accessibility/Options/Options.js +1 -2
  14. package/es-modules/Accessibility/Utils/ChartUtilities.js +4 -4
  15. package/es-modules/Accessibility/Utils/DOMElementProvider.js +3 -3
  16. package/es-modules/Accessibility/Utils/HTMLUtilities.js +2 -3
  17. package/es-modules/Core/Animation/AnimationUtilities.js +193 -0
  18. package/es-modules/Core/Animation/Fx.js +378 -0
  19. package/es-modules/Core/Axis/Axis.js +12 -6
  20. package/es-modules/Core/Axis/BrokenAxis.js +4 -6
  21. package/es-modules/Core/Axis/ColorAxis.js +11 -10
  22. package/es-modules/Core/Axis/GridAxis.js +113 -57
  23. package/es-modules/Core/Axis/OrdinalAxis.js +4 -5
  24. package/es-modules/Core/Axis/PlotLineOrBand.js +11 -4
  25. package/es-modules/Core/Axis/StackingAxis.js +3 -1
  26. package/es-modules/Core/Axis/TreeGridAxis.js +52 -7
  27. package/es-modules/Core/Chart/Chart.js +13 -8
  28. package/es-modules/Core/Chart/Chart3D.js +2 -1
  29. package/es-modules/Core/Chart/GanttChart.js +5 -9
  30. package/es-modules/Core/Chart/StockChart.js +6 -7
  31. package/es-modules/Core/Color/Color.js +419 -0
  32. package/es-modules/Core/Color/ColorType.js +9 -0
  33. package/es-modules/Core/Dynamics.js +54 -23
  34. package/es-modules/Core/Globals.js +1 -1
  35. package/es-modules/Core/Interaction.js +9 -6
  36. package/es-modules/Core/Legend.js +3 -1
  37. package/es-modules/Core/Navigator.js +8 -4
  38. package/es-modules/Core/Options.js +13 -11
  39. package/es-modules/Core/Pointer.js +2 -2
  40. package/es-modules/Core/Renderer/DOMElementType.js +9 -0
  41. package/es-modules/Core/Renderer/HTML/HTMLElement.js +220 -0
  42. package/es-modules/Core/Renderer/HTML/{HTML.js → HTMLRenderer.js} +8 -202
  43. package/es-modules/Core/Renderer/SVG/SVGElement.js +14 -8
  44. package/es-modules/Core/Renderer/SVG/SVGLabel.js +0 -1
  45. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +2 -3
  46. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +5 -3
  47. package/es-modules/Core/Series/BaseSeries.js +157 -0
  48. package/es-modules/Core/Series/CartesianSeries.js +5553 -0
  49. package/es-modules/Core/Series/DataLabels.js +11 -9
  50. package/es-modules/Core/Series/Point.js +5 -3
  51. package/es-modules/Core/Series/Series.js +138 -5528
  52. package/es-modules/Core/Series/Series3D.js +1 -1
  53. package/es-modules/Core/Tooltip.js +2 -1
  54. package/es-modules/Core/Utilities.js +0 -582
  55. package/es-modules/Extensions/Annotations/Annotations.js +4 -2
  56. package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +3 -3
  57. package/es-modules/Extensions/Annotations/MockPoint.js +3 -3
  58. package/es-modules/Extensions/Annotations/NavigationBindings.js +5 -4
  59. package/es-modules/Extensions/Annotations/Popup.js +1 -2
  60. package/es-modules/Extensions/Annotations/Types/Measure.js +0 -1
  61. package/es-modules/Extensions/Boost/Boost.js +3 -3
  62. package/es-modules/Extensions/Boost/BoostAttach.js +5 -4
  63. package/es-modules/Extensions/Boost/BoostInit.js +1 -1
  64. package/es-modules/Extensions/Boost/BoostOverrides.js +1 -1
  65. package/es-modules/Extensions/Boost/BoostUtils.js +1 -1
  66. package/es-modules/Extensions/Boost/NamedColors.js +1 -1
  67. package/es-modules/Extensions/Boost/WGLRenderer.js +4 -4
  68. package/es-modules/Extensions/Boost/WGLShader.js +1 -2
  69. package/es-modules/Extensions/BoostCanvas.js +9 -6
  70. package/es-modules/Extensions/CurrentDateIndication.js +3 -7
  71. package/es-modules/Extensions/Data.js +7 -9
  72. package/es-modules/Extensions/DataGrouping.js +3 -2
  73. package/es-modules/Extensions/Debugger.js +3 -2
  74. package/es-modules/Extensions/DownloadURL.js +5 -3
  75. package/es-modules/Extensions/DragPanes.js +1 -1
  76. package/es-modules/Extensions/DraggablePoints.js +6 -5
  77. package/es-modules/Extensions/Drilldown.js +24 -10
  78. package/es-modules/Extensions/ExportData.js +1 -2
  79. package/es-modules/Extensions/Exporting.js +9 -2
  80. package/es-modules/Extensions/MarkerClusters.js +8 -5
  81. package/es-modules/Extensions/NoDataToDisplay.js +13 -13
  82. package/es-modules/Extensions/OfflineExporting.js +14 -14
  83. package/es-modules/Extensions/{Oldie.js → Oldie/Oldie.js} +15 -12
  84. package/es-modules/{Core/Axis → Extensions/Oldie}/VMLAxis3D.js +1 -1
  85. package/es-modules/Extensions/Oldie/VMLRenderer3D.js +46 -0
  86. package/es-modules/Extensions/OverlappingDataLabels.js +4 -0
  87. package/es-modules/Extensions/Pane.js +1 -1
  88. package/es-modules/Extensions/ParallelCoordinates.js +1 -1
  89. package/es-modules/Extensions/PatternFill.js +10 -7
  90. package/es-modules/Extensions/Polar.js +4 -2
  91. package/es-modules/Extensions/ScrollablePlotArea.js +3 -1
  92. package/es-modules/Extensions/SeriesLabel.js +4 -3
  93. package/es-modules/{modules/sonification/chartSonify.js → Extensions/Sonification/ChartSonify.js} +1 -1
  94. package/es-modules/{modules/sonification → Extensions/Sonification}/Earcon.js +0 -0
  95. package/es-modules/{modules/sonification → Extensions/Sonification}/Instrument.js +7 -2
  96. package/es-modules/{modules/sonification/instrumentDefinitions.js → Extensions/Sonification/InstrumentDefinitions.js} +1 -1
  97. package/es-modules/{modules/sonification/musicalFrequencies.js → Extensions/Sonification/MusicalFrequencies.js} +0 -0
  98. package/es-modules/{modules/sonification/options.js → Extensions/Sonification/Options.js} +0 -0
  99. package/es-modules/{modules/sonification/pointSonify.js → Extensions/Sonification/PointSonify.js} +1 -1
  100. package/es-modules/{modules/sonification/sonification.js → Extensions/Sonification/Sonification.js} +10 -9
  101. package/es-modules/{modules/sonification → Extensions/Sonification}/Timeline.js +1 -1
  102. package/es-modules/{modules/sonification/utilities.js → Extensions/Sonification/Utilities.js} +1 -1
  103. package/es-modules/Extensions/Stacking.js +1 -1
  104. package/es-modules/Extensions/StaticScale.js +3 -3
  105. package/es-modules/Extensions/Themes/Avocado.js +3 -4
  106. package/es-modules/Extensions/Themes/DarkUnica.js +5 -7
  107. package/es-modules/Extensions/Themes/Gray.js +3 -4
  108. package/es-modules/Extensions/Themes/HighContrastDark.js +3 -4
  109. package/es-modules/Extensions/Themes/Sunset.js +3 -4
  110. package/es-modules/Gantt/Pathfinder.js +6 -0
  111. package/es-modules/Maps/Map.js +9 -5
  112. package/es-modules/Maps/MapNavigation.js +0 -1
  113. package/es-modules/{mixins → Mixins}/CenteredSeries.js +0 -0
  114. package/es-modules/{mixins → Mixins}/ColorMapSeries.js +7 -3
  115. package/es-modules/{mixins → Mixins}/ColorSeries.js +7 -3
  116. package/es-modules/{mixins → Mixins}/DerivedSeries.js +1 -1
  117. package/es-modules/{mixins → Mixins}/DrawPoint.js +0 -0
  118. package/es-modules/{mixins → Mixins}/Geometry.js +0 -0
  119. package/es-modules/{mixins → Mixins}/GeometryCircles.js +0 -0
  120. package/es-modules/{mixins → Mixins}/IndicatorRequired.js +0 -0
  121. package/es-modules/{mixins → Mixins}/LegendSymbol.js +0 -0
  122. package/es-modules/{mixins → Mixins}/MultipleLines.js +0 -0
  123. package/es-modules/{mixins → Mixins}/Navigation.js +0 -0
  124. package/es-modules/{mixins → Mixins}/NelderMead.js +0 -0
  125. package/es-modules/{mixins → Mixins}/Nodes.js +1 -1
  126. package/es-modules/{mixins → Mixins}/OnSeries.js +1 -1
  127. package/es-modules/{mixins → Mixins}/Polygon.js +0 -0
  128. package/es-modules/{mixins → Mixins}/ReduceArray.js +0 -0
  129. package/es-modules/{mixins → Mixins}/TreeSeries.js +1 -1
  130. package/es-modules/Series/AreaRangeSeries.js +57 -21
  131. package/es-modules/Series/AreaSeries.js +38 -6
  132. package/es-modules/Series/AreaSplineRangeSeries.js +44 -7
  133. package/es-modules/Series/AreaSplineSeries.js +43 -6
  134. package/es-modules/Series/BarSeries.js +2 -5
  135. package/es-modules/Series/BellcurveSeries.js +45 -5
  136. package/es-modules/Series/BoxPlotSeries.js +7 -6
  137. package/es-modules/Series/Bubble/BubbleLegend.js +3 -3
  138. package/es-modules/Series/Bubble/BubbleSeries.js +13 -11
  139. package/es-modules/Series/BulletSeries.js +5 -5
  140. package/es-modules/Series/CandlestickSeries.js +7 -6
  141. package/es-modules/Series/Column3DSeries.js +77 -23
  142. package/es-modules/Series/ColumnPyramidSeries.js +5 -6
  143. package/es-modules/Series/ColumnRangeSeries.js +17 -16
  144. package/es-modules/Series/ColumnSeries.js +18 -14
  145. package/es-modules/Series/CylinderSeries.js +8 -11
  146. package/es-modules/Series/DependencyWheelSeries.js +11 -9
  147. package/es-modules/Series/DotplotSeries.js +3 -11
  148. package/es-modules/Series/DumbbellSeries.js +11 -7
  149. package/es-modules/Series/ErrorBarSeries.js +3 -5
  150. package/es-modules/Series/FlagsSeries.js +13 -9
  151. package/es-modules/Series/Funnel3DSeries.js +8 -12
  152. package/es-modules/Series/FunnelSeries.js +6 -6
  153. package/es-modules/Series/GanttSeries.js +11 -12
  154. package/es-modules/Series/GaugeSeries.js +6 -5
  155. package/es-modules/Series/HeatmapSeries.js +9 -7
  156. package/es-modules/Series/HistogramSeries.js +6 -5
  157. package/es-modules/Series/ItemSeries.js +5 -5
  158. package/es-modules/Series/LineSeries.js +13 -0
  159. package/es-modules/Series/LollipopSeries.js +11 -7
  160. package/es-modules/Series/MapBubbleSeries.js +4 -5
  161. package/es-modules/Series/MapLineSeries.js +4 -6
  162. package/es-modules/Series/MapPointSeries.js +6 -5
  163. package/es-modules/Series/MapSeries.js +15 -12
  164. package/es-modules/Series/Networkgraph/DraggableNodes.js +8 -6
  165. package/es-modules/Series/Networkgraph/Layouts.js +3 -1
  166. package/es-modules/Series/Networkgraph/Networkgraph.js +8 -7
  167. package/es-modules/Series/OHLCSeries.js +4 -6
  168. package/es-modules/Series/OrganizationSeries.js +7 -4
  169. package/es-modules/Series/PackedBubbleSeries.js +10 -10
  170. package/es-modules/Series/ParetoSeries.js +6 -5
  171. package/es-modules/Series/Pie3DSeries.js +3 -2
  172. package/es-modules/Series/PieSeries.js +36 -10
  173. package/es-modules/Series/PolygonSeries.js +6 -6
  174. package/es-modules/Series/Pyramid3DSeries.js +3 -5
  175. package/es-modules/Series/SankeySeries.js +13 -12
  176. package/es-modules/Series/Scatter3DSeries.js +4 -6
  177. package/es-modules/Series/ScatterSeries.js +10 -5
  178. package/es-modules/Series/SolidGaugeSeries.js +7 -7
  179. package/es-modules/Series/SplineSeries.js +5 -3
  180. package/es-modules/Series/StreamgraphSeries.js +41 -5
  181. package/es-modules/Series/SunburstSeries.js +15 -11
  182. package/es-modules/Series/TilemapSeries.js +8 -6
  183. package/es-modules/Series/TimelineSeries.js +6 -5
  184. package/es-modules/Series/TreemapSeries.js +36 -50
  185. package/es-modules/Series/VariablePieSeries.js +9 -7
  186. package/es-modules/Series/VariwideSeries.js +7 -6
  187. package/es-modules/Series/VectorSeries.js +5 -3
  188. package/es-modules/Series/VennSeries.js +20 -17
  189. package/es-modules/Series/WaterfallSeries.js +6 -4
  190. package/es-modules/Series/WindbarbSeries.js +9 -6
  191. package/es-modules/Series/WordcloudSeries.js +11 -9
  192. package/es-modules/Series/XRangeSeries.js +8 -7
  193. package/es-modules/Stock/Indicators/ABIndicator.js +7 -7
  194. package/es-modules/Stock/Indicators/ADIndicator.js +4 -3
  195. package/es-modules/Stock/Indicators/AOIndicator.js +5 -4
  196. package/es-modules/Stock/Indicators/APOIndicator.js +7 -7
  197. package/es-modules/Stock/Indicators/ATRIndicator.js +5 -5
  198. package/es-modules/Stock/Indicators/AroonIndicator.js +6 -5
  199. package/es-modules/Stock/Indicators/AroonOscillatorIndicator.js +5 -5
  200. package/es-modules/Stock/Indicators/BBIndicator.js +7 -7
  201. package/es-modules/Stock/Indicators/CCIIndicator.js +4 -3
  202. package/es-modules/Stock/Indicators/CMFIndicator.js +3 -4
  203. package/es-modules/Stock/Indicators/ChaikinIndicator.js +9 -8
  204. package/es-modules/Stock/Indicators/DEMAIndicator.js +7 -7
  205. package/es-modules/Stock/Indicators/DPOIndicator.js +4 -3
  206. package/es-modules/Stock/Indicators/EMAIndicator.js +3 -3
  207. package/es-modules/Stock/Indicators/IKHIndicator.js +22 -19
  208. package/es-modules/Stock/Indicators/KeltnerChannelsIndicator.js +10 -7
  209. package/es-modules/Stock/Indicators/MACDIndicator.js +7 -4
  210. package/es-modules/Stock/Indicators/MFIIndicator.js +4 -3
  211. package/es-modules/Stock/Indicators/MomentumIndicator.js +4 -3
  212. package/es-modules/Stock/Indicators/NATRIndicator.js +4 -6
  213. package/es-modules/Stock/Indicators/PCIndicator.js +8 -7
  214. package/es-modules/Stock/Indicators/PPOIndicator.js +7 -7
  215. package/es-modules/Stock/Indicators/PSARIndicator.js +3 -4
  216. package/es-modules/Stock/Indicators/PivotPointsIndicator.js +5 -5
  217. package/es-modules/Stock/Indicators/PriceEnvelopesIndicator.js +5 -5
  218. package/es-modules/Stock/Indicators/ROCIndicator.js +4 -3
  219. package/es-modules/Stock/Indicators/RSIIndicator.js +4 -3
  220. package/es-modules/Stock/Indicators/RegressionIndicators.js +7 -6
  221. package/es-modules/Stock/Indicators/{Indicators.js → SMAIndicator.js} +9 -6
  222. package/es-modules/Stock/Indicators/SlowStochasticIndicator.js +6 -8
  223. package/es-modules/Stock/Indicators/StochasticIndicator.js +8 -8
  224. package/es-modules/Stock/Indicators/SupertrendIndicator.js +7 -6
  225. package/es-modules/Stock/Indicators/TEMAIndicator.js +7 -7
  226. package/es-modules/Stock/Indicators/TRIXIndicator.js +7 -7
  227. package/es-modules/Stock/Indicators/TrendLineIndicator.js +4 -3
  228. package/es-modules/Stock/Indicators/VBPIndicator.js +7 -4
  229. package/es-modules/Stock/Indicators/VWAPIndicator.js +4 -3
  230. package/es-modules/Stock/Indicators/WMAIndicator.js +4 -3
  231. package/es-modules/Stock/Indicators/WilliamsRIndicator.js +6 -5
  232. package/es-modules/Stock/Indicators/ZigzagIndicator.js +5 -7
  233. package/es-modules/Stock/StockToolsBindings.js +16 -2
  234. package/es-modules/Stock/StockToolsGui.js +9 -9
  235. package/es-modules/masters/highcharts-3d.src.js +1 -2
  236. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  237. package/es-modules/masters/highcharts-more.src.js +1 -1
  238. package/es-modules/masters/highcharts.src.js +3 -2
  239. package/es-modules/masters/highmaps.src.js +1 -1
  240. package/es-modules/masters/highstock.src.js +1 -1
  241. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  242. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  243. package/es-modules/masters/indicators/ao.src.js +1 -1
  244. package/es-modules/masters/indicators/apo.src.js +1 -1
  245. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  246. package/es-modules/masters/indicators/aroon.src.js +1 -1
  247. package/es-modules/masters/indicators/atr.src.js +1 -1
  248. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  249. package/es-modules/masters/indicators/cci.src.js +1 -1
  250. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  251. package/es-modules/masters/indicators/cmf.src.js +1 -1
  252. package/es-modules/masters/indicators/dema.src.js +1 -1
  253. package/es-modules/masters/indicators/dpo.src.js +1 -1
  254. package/es-modules/masters/indicators/ema.src.js +1 -1
  255. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  256. package/es-modules/masters/indicators/indicators-all.src.js +2 -2
  257. package/es-modules/masters/indicators/indicators.src.js +2 -2
  258. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  259. package/es-modules/masters/indicators/macd.src.js +1 -1
  260. package/es-modules/masters/indicators/mfi.src.js +1 -1
  261. package/es-modules/masters/indicators/momentum.src.js +1 -1
  262. package/es-modules/masters/indicators/natr.src.js +1 -1
  263. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  264. package/es-modules/masters/indicators/ppo.src.js +1 -1
  265. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  266. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  267. package/es-modules/masters/indicators/psar.src.js +1 -1
  268. package/es-modules/masters/indicators/regressions.src.js +1 -1
  269. package/es-modules/masters/indicators/roc.src.js +1 -1
  270. package/es-modules/masters/indicators/rsi.src.js +1 -1
  271. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  272. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  273. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  274. package/es-modules/masters/indicators/tema.src.js +1 -1
  275. package/es-modules/masters/indicators/trendline.src.js +1 -1
  276. package/es-modules/masters/indicators/trix.src.js +1 -1
  277. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  278. package/es-modules/masters/indicators/vwap.src.js +1 -1
  279. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  280. package/es-modules/masters/indicators/wma.src.js +1 -1
  281. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  282. package/es-modules/masters/modules/accessibility.src.js +1 -1
  283. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  284. package/es-modules/masters/modules/annotations.src.js +1 -1
  285. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  286. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  287. package/es-modules/masters/modules/boost.src.js +1 -1
  288. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  289. package/es-modules/masters/modules/bullet.src.js +1 -1
  290. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  291. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  292. package/es-modules/masters/modules/cylinder.src.js +1 -1
  293. package/es-modules/masters/modules/data.src.js +1 -1
  294. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  295. package/es-modules/masters/modules/debugger.src.js +1 -1
  296. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  297. package/es-modules/masters/modules/dotplot.src.js +1 -1
  298. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  299. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  300. package/es-modules/masters/modules/drilldown.src.js +1 -1
  301. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  302. package/es-modules/masters/modules/export-data.src.js +1 -1
  303. package/es-modules/masters/modules/exporting.src.js +1 -1
  304. package/es-modules/masters/modules/full-screen.src.js +1 -1
  305. package/es-modules/masters/modules/funnel.src.js +1 -1
  306. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  307. package/es-modules/masters/modules/gantt.src.js +1 -1
  308. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  309. package/es-modules/masters/modules/heatmap.src.js +1 -1
  310. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  311. package/es-modules/masters/modules/item-series.src.js +1 -1
  312. package/es-modules/masters/modules/lollipop.src.js +1 -1
  313. package/es-modules/masters/modules/map.src.js +1 -1
  314. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  315. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  316. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  317. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  318. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  319. package/es-modules/masters/modules/oldie.src.js +2 -2
  320. package/es-modules/masters/modules/organization.src.js +1 -1
  321. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  322. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  323. package/es-modules/masters/modules/pareto.src.js +1 -1
  324. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  325. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  326. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  327. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  328. package/es-modules/masters/modules/sankey.src.js +1 -1
  329. package/es-modules/masters/modules/series-label.src.js +1 -1
  330. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  331. package/es-modules/masters/modules/sonification.src.js +2 -2
  332. package/es-modules/masters/modules/static-scale.src.js +1 -1
  333. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  334. package/es-modules/masters/modules/stock.src.js +1 -1
  335. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  336. package/es-modules/masters/modules/sunburst.src.js +1 -1
  337. package/es-modules/masters/modules/tilemap.src.js +1 -1
  338. package/es-modules/masters/modules/timeline.src.js +1 -1
  339. package/es-modules/masters/modules/treegrid.src.js +1 -1
  340. package/es-modules/masters/modules/treemap.src.js +1 -1
  341. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  342. package/es-modules/masters/modules/variwide.src.js +1 -1
  343. package/es-modules/masters/modules/vector.src.js +1 -1
  344. package/es-modules/masters/modules/venn.src.js +1 -1
  345. package/es-modules/masters/modules/windbarb.src.js +1 -1
  346. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  347. package/es-modules/masters/modules/xrange.src.js +1 -1
  348. package/es-modules/masters/themes/avocado.src.js +1 -1
  349. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  350. package/es-modules/masters/themes/dark-green.src.js +1 -1
  351. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  352. package/es-modules/masters/themes/gray.src.js +1 -1
  353. package/es-modules/masters/themes/grid-light.src.js +1 -1
  354. package/es-modules/masters/themes/grid.src.js +1 -1
  355. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  356. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  357. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  358. package/es-modules/masters/themes/skies.src.js +1 -1
  359. package/es-modules/masters/themes/sunset.src.js +1 -1
  360. package/highcharts-3d.js +86 -89
  361. package/highcharts-3d.js.map +1 -1
  362. package/highcharts-3d.src.js +88 -149
  363. package/highcharts-gantt.js +729 -717
  364. package/highcharts-gantt.js.map +1 -1
  365. package/highcharts-gantt.src.js +5570 -5094
  366. package/highcharts-more.js +164 -163
  367. package/highcharts-more.js.map +1 -1
  368. package/highcharts-more.src.js +182 -118
  369. package/highcharts.d.ts +89 -159
  370. package/highcharts.js +537 -530
  371. package/highcharts.js.map +1 -1
  372. package/highcharts.src.d.ts +89 -159
  373. package/highcharts.src.js +5341 -4976
  374. package/highmaps.js +635 -627
  375. package/highmaps.js.map +1 -1
  376. package/highmaps.src.js +5907 -5530
  377. package/highstock.js +696 -689
  378. package/highstock.js.map +1 -1
  379. package/highstock.src.js +5384 -5026
  380. package/indicators/acceleration-bands.js +8 -8
  381. package/indicators/acceleration-bands.js.map +1 -1
  382. package/indicators/acceleration-bands.src.js +7 -7
  383. package/indicators/accumulation-distribution.js +4 -4
  384. package/indicators/accumulation-distribution.js.map +1 -1
  385. package/indicators/accumulation-distribution.src.js +5 -5
  386. package/indicators/ao.js +5 -5
  387. package/indicators/ao.js.map +1 -1
  388. package/indicators/ao.src.js +6 -6
  389. package/indicators/apo.js +5 -5
  390. package/indicators/apo.js.map +1 -1
  391. package/indicators/apo.src.js +7 -7
  392. package/indicators/aroon-oscillator.js +8 -8
  393. package/indicators/aroon-oscillator.js.map +1 -1
  394. package/indicators/aroon-oscillator.src.js +6 -6
  395. package/indicators/aroon.js +7 -7
  396. package/indicators/aroon.js.map +1 -1
  397. package/indicators/aroon.src.js +6 -6
  398. package/indicators/atr.js +4 -4
  399. package/indicators/atr.js.map +1 -1
  400. package/indicators/atr.src.js +6 -14
  401. package/indicators/bollinger-bands.js +8 -8
  402. package/indicators/bollinger-bands.js.map +1 -1
  403. package/indicators/bollinger-bands.src.js +7 -7
  404. package/indicators/cci.js +4 -4
  405. package/indicators/cci.js.map +1 -1
  406. package/indicators/cci.src.js +5 -5
  407. package/indicators/chaikin.js +6 -6
  408. package/indicators/chaikin.js.map +1 -1
  409. package/indicators/chaikin.src.js +75 -74
  410. package/indicators/cmf.js +2 -2
  411. package/indicators/cmf.js.map +1 -1
  412. package/indicators/cmf.src.js +4 -4
  413. package/indicators/dema.js +5 -5
  414. package/indicators/dema.js.map +1 -1
  415. package/indicators/dema.src.js +7 -7
  416. package/indicators/dpo.js +4 -4
  417. package/indicators/dpo.js.map +1 -1
  418. package/indicators/dpo.src.js +5 -5
  419. package/indicators/ema.js +4 -4
  420. package/indicators/ema.js.map +1 -1
  421. package/indicators/ema.src.js +4 -5
  422. package/indicators/ichimoku-kinko-hyo.js +13 -13
  423. package/indicators/ichimoku-kinko-hyo.js.map +1 -1
  424. package/indicators/ichimoku-kinko-hyo.src.js +21 -20
  425. package/indicators/indicators-all.js +118 -118
  426. package/indicators/indicators-all.js.map +1 -1
  427. package/indicators/indicators-all.src.js +227 -230
  428. package/indicators/indicators.js +9 -9
  429. package/indicators/indicators.js.map +1 -1
  430. package/indicators/indicators.src.js +7 -7
  431. package/indicators/keltner-channels.js +8 -8
  432. package/indicators/keltner-channels.js.map +1 -1
  433. package/indicators/keltner-channels.src.js +12 -9
  434. package/indicators/macd.js +10 -10
  435. package/indicators/macd.js.map +1 -1
  436. package/indicators/macd.src.js +8 -7
  437. package/indicators/mfi.js +4 -4
  438. package/indicators/mfi.js.map +1 -1
  439. package/indicators/mfi.src.js +5 -5
  440. package/indicators/momentum.js +4 -4
  441. package/indicators/momentum.js.map +1 -1
  442. package/indicators/momentum.src.js +5 -5
  443. package/indicators/natr.js +3 -3
  444. package/indicators/natr.js.map +1 -1
  445. package/indicators/natr.src.js +5 -5
  446. package/indicators/pivot-points.js +8 -8
  447. package/indicators/pivot-points.js.map +1 -1
  448. package/indicators/pivot-points.src.js +6 -6
  449. package/indicators/ppo.js +5 -5
  450. package/indicators/ppo.js.map +1 -1
  451. package/indicators/ppo.src.js +7 -7
  452. package/indicators/price-channel.js +8 -8
  453. package/indicators/price-channel.js.map +1 -1
  454. package/indicators/price-channel.src.js +65 -65
  455. package/indicators/price-envelopes.js +7 -7
  456. package/indicators/price-envelopes.js.map +1 -1
  457. package/indicators/price-envelopes.src.js +6 -6
  458. package/indicators/psar.js +2 -2
  459. package/indicators/psar.js.map +1 -1
  460. package/indicators/psar.src.js +4 -4
  461. package/indicators/regressions.js +6 -6
  462. package/indicators/regressions.js.map +1 -1
  463. package/indicators/regressions.src.js +8 -8
  464. package/indicators/roc.js +3 -3
  465. package/indicators/roc.js.map +1 -1
  466. package/indicators/roc.src.js +5 -5
  467. package/indicators/rsi.js +4 -4
  468. package/indicators/rsi.js.map +1 -1
  469. package/indicators/rsi.src.js +5 -5
  470. package/indicators/slow-stochastic.js +5 -5
  471. package/indicators/slow-stochastic.js.map +1 -1
  472. package/indicators/slow-stochastic.src.js +6 -6
  473. package/indicators/stochastic.js +9 -9
  474. package/indicators/stochastic.js.map +1 -1
  475. package/indicators/stochastic.src.js +66 -66
  476. package/indicators/supertrend.js +9 -9
  477. package/indicators/supertrend.js.map +1 -1
  478. package/indicators/supertrend.src.js +9 -7
  479. package/indicators/tema.js +6 -6
  480. package/indicators/tema.js.map +1 -1
  481. package/indicators/tema.src.js +7 -7
  482. package/indicators/trendline.js +3 -3
  483. package/indicators/trendline.js.map +1 -1
  484. package/indicators/trendline.src.js +5 -5
  485. package/indicators/trix.js +4 -4
  486. package/indicators/trix.js.map +1 -1
  487. package/indicators/trix.src.js +7 -7
  488. package/indicators/volume-by-price.js +13 -13
  489. package/indicators/volume-by-price.js.map +1 -1
  490. package/indicators/volume-by-price.src.js +7 -8
  491. package/indicators/vwap.js +4 -4
  492. package/indicators/vwap.js.map +1 -1
  493. package/indicators/vwap.src.js +5 -5
  494. package/indicators/williams-r.js +4 -4
  495. package/indicators/williams-r.js.map +1 -1
  496. package/indicators/williams-r.src.js +6 -6
  497. package/indicators/wma.js +4 -4
  498. package/indicators/wma.js.map +1 -1
  499. package/indicators/wma.src.js +5 -5
  500. package/indicators/zigzag.js +4 -4
  501. package/indicators/zigzag.js.map +1 -1
  502. package/indicators/zigzag.src.js +6 -7
  503. package/modules/accessibility.js +148 -147
  504. package/modules/accessibility.js.map +1 -1
  505. package/modules/accessibility.src.js +104 -96
  506. package/modules/annotations-advanced.js +158 -158
  507. package/modules/annotations-advanced.js.map +1 -1
  508. package/modules/annotations-advanced.src.js +15 -14
  509. package/modules/annotations.js +105 -105
  510. package/modules/annotations.js.map +1 -1
  511. package/modules/annotations.src.js +15 -14
  512. package/modules/arrow-symbols.js +1 -1
  513. package/modules/arrow-symbols.src.js +1 -1
  514. package/modules/boost-canvas.js +15 -15
  515. package/modules/boost-canvas.js.map +1 -1
  516. package/modules/boost-canvas.src.js +16 -16
  517. package/modules/boost.d.ts +4 -0
  518. package/modules/boost.js +77 -64
  519. package/modules/boost.js.map +1 -1
  520. package/modules/boost.src.d.ts +4 -0
  521. package/modules/boost.src.js +561 -14
  522. package/modules/broken-axis.js +12 -12
  523. package/modules/broken-axis.js.map +1 -1
  524. package/modules/broken-axis.src.js +4 -5
  525. package/modules/bullet.js +6 -6
  526. package/modules/bullet.js.map +1 -1
  527. package/modules/bullet.src.js +5 -6
  528. package/modules/coloraxis.js +22 -21
  529. package/modules/coloraxis.js.map +1 -1
  530. package/modules/coloraxis.src.js +46 -41
  531. package/modules/current-date-indicator.js +4 -4
  532. package/modules/current-date-indicator.js.map +1 -1
  533. package/modules/current-date-indicator.src.js +4 -6
  534. package/modules/cylinder.js +8 -8
  535. package/modules/cylinder.js.map +1 -1
  536. package/modules/cylinder.src.js +18 -21
  537. package/modules/data.js +32 -32
  538. package/modules/data.js.map +1 -1
  539. package/modules/data.src.js +7 -11
  540. package/modules/datagrouping.js +17 -17
  541. package/modules/datagrouping.js.map +1 -1
  542. package/modules/datagrouping.src.js +3 -4
  543. package/modules/debugger.js +4 -4
  544. package/modules/debugger.js.map +1 -1
  545. package/modules/debugger.src.js +4 -4
  546. package/modules/dependency-wheel.js +8 -8
  547. package/modules/dependency-wheel.js.map +1 -1
  548. package/modules/dependency-wheel.src.js +9 -9
  549. package/modules/dotplot.js +5 -5
  550. package/modules/dotplot.js.map +1 -1
  551. package/modules/dotplot.src.js +4 -12
  552. package/modules/drag-panes.js +7 -7
  553. package/modules/drag-panes.js.map +1 -1
  554. package/modules/drag-panes.src.js +2 -2
  555. package/modules/draggable-points.js +33 -33
  556. package/modules/draggable-points.js.map +1 -1
  557. package/modules/draggable-points.src.js +6 -6
  558. package/modules/drilldown.js +23 -22
  559. package/modules/drilldown.js.map +1 -1
  560. package/modules/drilldown.src.js +21 -11
  561. package/modules/dumbbell.js +24 -20
  562. package/modules/dumbbell.js.map +1 -1
  563. package/modules/dumbbell.src.js +396 -136
  564. package/modules/export-data.js +21 -21
  565. package/modules/export-data.js.map +1 -1
  566. package/modules/export-data.src.js +8 -7
  567. package/modules/exporting.js +32 -32
  568. package/modules/exporting.js.map +1 -1
  569. package/modules/exporting.src.js +10 -3
  570. package/modules/full-screen.js +1 -1
  571. package/modules/full-screen.src.js +1 -1
  572. package/modules/funnel.js +9 -9
  573. package/modules/funnel.js.map +1 -1
  574. package/modules/funnel.src.js +6 -8
  575. package/modules/funnel3d.js +17 -17
  576. package/modules/funnel3d.js.map +1 -1
  577. package/modules/funnel3d.src.js +9 -12
  578. package/modules/gantt.js +194 -189
  579. package/modules/gantt.js.map +1 -1
  580. package/modules/gantt.src.js +232 -121
  581. package/modules/grid-axis.js +22 -19
  582. package/modules/grid-axis.js.map +1 -1
  583. package/modules/grid-axis.src.js +130 -64
  584. package/modules/heatmap.js +33 -33
  585. package/modules/heatmap.js.map +1 -1
  586. package/modules/heatmap.src.js +93 -84
  587. package/modules/histogram-bellcurve.js +10 -10
  588. package/modules/histogram-bellcurve.js.map +1 -1
  589. package/modules/histogram-bellcurve.src.js +49 -11
  590. package/modules/item-series.js +9 -9
  591. package/modules/item-series.js.map +1 -1
  592. package/modules/item-series.src.js +5 -6
  593. package/modules/lollipop.d.ts +20 -1
  594. package/modules/lollipop.js +26 -4
  595. package/modules/lollipop.js.map +1 -1
  596. package/modules/lollipop.src.d.ts +20 -1
  597. package/modules/lollipop.src.js +1431 -9
  598. package/modules/map.d.ts +1 -1
  599. package/modules/map.js +99 -99
  600. package/modules/map.js.map +1 -1
  601. package/modules/map.src.d.ts +1 -1
  602. package/modules/map.src.js +1421 -1409
  603. package/modules/marker-clusters.js +35 -35
  604. package/modules/marker-clusters.js.map +1 -1
  605. package/modules/marker-clusters.src.js +5 -5
  606. package/modules/networkgraph.js +47 -46
  607. package/modules/networkgraph.js.map +1 -1
  608. package/modules/networkgraph.src.js +18 -17
  609. package/modules/no-data-to-display.js +4 -4
  610. package/modules/no-data-to-display.js.map +1 -1
  611. package/modules/no-data-to-display.src.js +15 -12
  612. package/modules/offline-exporting.js +15 -15
  613. package/modules/offline-exporting.js.map +1 -1
  614. package/modules/offline-exporting.src.js +20 -18
  615. package/modules/oldie-polyfills.js +1 -1
  616. package/modules/oldie-polyfills.src.js +1 -1
  617. package/modules/oldie.js +52 -26
  618. package/modules/oldie.js.map +1 -1
  619. package/modules/oldie.src.js +1401 -22
  620. package/modules/organization.js +11 -11
  621. package/modules/organization.js.map +1 -1
  622. package/modules/organization.src.js +6 -5
  623. package/modules/overlapping-datalabels.js +1 -1
  624. package/modules/overlapping-datalabels.src.js +1 -1
  625. package/modules/parallel-coordinates.js +1 -1
  626. package/modules/parallel-coordinates.src.js +1 -1
  627. package/modules/pareto.js +5 -5
  628. package/modules/pareto.js.map +1 -1
  629. package/modules/pareto.src.js +5 -6
  630. package/modules/pathfinder.js +20 -20
  631. package/modules/pathfinder.js.map +1 -1
  632. package/modules/pathfinder.src.js +7 -1
  633. package/modules/pattern-fill.js +13 -13
  634. package/modules/pattern-fill.js.map +1 -1
  635. package/modules/pattern-fill.src.js +10 -10
  636. package/modules/price-indicator.js +1 -1
  637. package/modules/price-indicator.src.js +1 -1
  638. package/modules/pyramid3d.js +3 -3
  639. package/modules/pyramid3d.js.map +1 -1
  640. package/modules/pyramid3d.src.js +3 -4
  641. package/modules/sankey.js +25 -25
  642. package/modules/sankey.js.map +1 -1
  643. package/modules/sankey.src.js +15 -15
  644. package/modules/series-label.js +17 -17
  645. package/modules/series-label.js.map +1 -1
  646. package/modules/series-label.src.js +3 -3
  647. package/modules/solid-gauge.js +8 -8
  648. package/modules/solid-gauge.js.map +1 -1
  649. package/modules/solid-gauge.src.js +4 -5
  650. package/modules/sonification.js +46 -46
  651. package/modules/sonification.js.map +1 -1
  652. package/modules/sonification.src.js +21 -16
  653. package/modules/static-scale.js +4 -4
  654. package/modules/static-scale.js.map +1 -1
  655. package/modules/static-scale.src.js +3 -4
  656. package/modules/stock-tools.js +142 -141
  657. package/modules/stock-tools.js.map +1 -1
  658. package/modules/stock-tools.src.js +40 -21
  659. package/modules/stock.js +161 -161
  660. package/modules/stock.js.map +1 -1
  661. package/modules/stock.src.js +41 -48
  662. package/modules/streamgraph.js +2 -2
  663. package/modules/streamgraph.js.map +1 -1
  664. package/modules/streamgraph.src.js +41 -4
  665. package/modules/sunburst.js +51 -50
  666. package/modules/sunburst.js.map +1 -1
  667. package/modules/sunburst.src.js +134 -65
  668. package/modules/tilemap.js +14 -14
  669. package/modules/tilemap.js.map +1 -1
  670. package/modules/tilemap.src.js +9 -9
  671. package/modules/timeline.js +14 -14
  672. package/modules/timeline.js.map +1 -1
  673. package/modules/timeline.src.js +7 -8
  674. package/modules/treegrid.js +57 -52
  675. package/modules/treegrid.js.map +1 -1
  676. package/modules/treegrid.src.js +191 -77
  677. package/modules/treemap.js +35 -34
  678. package/modules/treemap.js.map +1 -1
  679. package/modules/treemap.src.js +205 -138
  680. package/modules/variable-pie.js +8 -8
  681. package/modules/variable-pie.js.map +1 -1
  682. package/modules/variable-pie.src.js +10 -9
  683. package/modules/variwide.js +8 -8
  684. package/modules/variwide.js.map +1 -1
  685. package/modules/variwide.src.js +6 -7
  686. package/modules/vector.js +6 -6
  687. package/modules/vector.js.map +1 -1
  688. package/modules/vector.src.js +6 -7
  689. package/modules/venn.js +26 -26
  690. package/modules/venn.js.map +1 -1
  691. package/modules/venn.src.js +23 -23
  692. package/modules/windbarb.js +11 -11
  693. package/modules/windbarb.js.map +1 -1
  694. package/modules/windbarb.src.js +8 -9
  695. package/modules/wordcloud.js +19 -19
  696. package/modules/wordcloud.js.map +1 -1
  697. package/modules/wordcloud.src.js +14 -14
  698. package/modules/xrange.js +12 -12
  699. package/modules/xrange.js.map +1 -1
  700. package/modules/xrange.src.js +8 -9
  701. package/package.json +1 -1
  702. package/themes/avocado.js +1 -1
  703. package/themes/avocado.js.map +1 -1
  704. package/themes/avocado.src.js +4 -4
  705. package/themes/dark-blue.js +1 -1
  706. package/themes/dark-blue.src.js +1 -1
  707. package/themes/dark-green.js +1 -1
  708. package/themes/dark-green.src.js +1 -1
  709. package/themes/dark-unica.js +1 -1
  710. package/themes/dark-unica.js.map +1 -1
  711. package/themes/dark-unica.src.js +6 -7
  712. package/themes/gray.js +1 -1
  713. package/themes/gray.js.map +1 -1
  714. package/themes/gray.src.js +4 -4
  715. package/themes/grid-light.js +1 -1
  716. package/themes/grid-light.src.js +1 -1
  717. package/themes/grid.js +1 -1
  718. package/themes/grid.src.js +1 -1
  719. package/themes/high-contrast-dark.js +1 -1
  720. package/themes/high-contrast-dark.js.map +1 -1
  721. package/themes/high-contrast-dark.src.js +4 -4
  722. package/themes/high-contrast-light.js +1 -1
  723. package/themes/high-contrast-light.src.js +1 -1
  724. package/themes/sand-signika.js +1 -1
  725. package/themes/sand-signika.src.js +1 -1
  726. package/themes/skies.js +1 -1
  727. package/themes/skies.src.js +1 -1
  728. package/themes/sunset.js +1 -1
  729. package/themes/sunset.js.map +1 -1
  730. package/themes/sunset.src.js +4 -4
  731. package/es-modules/Core/Renderer/VML/VMLRenderer3D.js +0 -37
@@ -44,40 +44,24 @@ var applyGridOptions = function applyGridOptions(axis) {
44
44
  options.labels.rotation = 0;
45
45
  };
46
46
  /**
47
- * For a datetime axis, the scale will automatically adjust to the
48
- * appropriate unit. This member gives the default string
49
- * representations used for each unit. For intermediate values,
50
- * different units may be used, for example the `day` unit can be used
51
- * on midnight and `hour` unit be used for intermediate values on the
52
- * same axis.
47
+ * @productdesc {gantt}
53
48
  * For grid axes (like in Gantt charts),
54
49
  * it is possible to declare as a list to provide different
55
50
  * formats depending on available space.
56
- * For an overview of the replacement codes, see
57
- * [dateFormat](/class-reference/Highcharts#dateFormat).
58
51
  *
59
52
  * Defaults to:
60
53
  * ```js
61
54
  * {
62
- hour: {
63
- list: ['%H:%M', '%H']
64
- },
65
- day: {
66
- list: ['%A, %e. %B', '%a, %e. %b', '%E']
67
- },
68
- week: {
69
- list: ['Week %W', 'W%W']
70
- },
71
- month: {
72
- list: ['%B', '%b', '%o']
73
- }
74
- },
55
+ * hour: { list: ['%H:%M', '%H'] },
56
+ * day: { list: ['%A, %e. %B', '%a, %e. %b', '%E'] },
57
+ * week: { list: ['Week %W', 'W%W'] },
58
+ * month: { list: ['%B', '%b', '%o'] }
59
+ * }
75
60
  * ```
76
61
  *
77
- * @sample {gantt} gantt/demo/left-axis-table
78
- * Gantt Chart with custom axis date format.
62
+ * @sample {gantt} gantt/grid-axis/date-time-label-formats
63
+ * Gantt chart with custom axis date format.
79
64
  *
80
- * @product gantt
81
65
  * @apioption xAxis.dateTimeLabelFormats
82
66
  */
83
67
  /**
@@ -153,19 +137,26 @@ Axis.prototype.getMaxLabelDimensions = function (ticks, tickPositions) {
153
137
  height: 0
154
138
  };
155
139
  tickPositions.forEach(function (pos) {
156
- var tick = ticks[pos], tickHeight = 0, tickWidth = 0, label;
140
+ var tick = ticks[pos], labelHeight = 0, labelWidth = 0, label;
157
141
  if (isObject(tick)) {
158
142
  label = isObject(tick.label) ? tick.label : {};
159
- // Find width and height of tick
160
- tickHeight = label.getBBox ? label.getBBox().height : 0;
143
+ // Find width and height of label
144
+ labelHeight = label.getBBox ? label.getBBox().height : 0;
145
+ if (label.textStr && !isNumber(label.textPxLength)) {
146
+ label.textPxLength = label.getBBox().width;
147
+ }
148
+ labelWidth = isNumber(label.textPxLength) ?
149
+ // Math.round ensures crisp lines
150
+ Math.round(label.textPxLength) :
151
+ 0;
161
152
  if (label.textStr) {
162
153
  // Set the tickWidth same as the label width after ellipsis
163
154
  // applied #10281
164
- tickWidth = Math.round(label.getBBox().width);
155
+ labelWidth = Math.round(label.getBBox().width);
165
156
  }
166
157
  // Update the result if width and/or height are larger
167
- dimensions.height = Math.max(tickHeight, dimensions.height);
168
- dimensions.width = Math.max(tickWidth, dimensions.width);
158
+ dimensions.height = Math.max(labelHeight, dimensions.height);
159
+ dimensions.width = Math.max(labelWidth, dimensions.width);
169
160
  }
170
161
  });
171
162
  return dimensions;
@@ -186,7 +177,7 @@ H.dateFormats.W = function (timestamp) {
186
177
  };
187
178
  // First letter of the day of the week, e.g. 'M' for 'Monday'.
188
179
  H.dateFormats.E = function (timestamp) {
189
- return dateFormat('%a', timestamp, true).charAt(0);
180
+ return this.dateFormat('%a', timestamp, true).charAt(0);
190
181
  };
191
182
  /* eslint-disable no-invalid-this */
192
183
  addEvent(Chart, 'afterSetChartSize', function () {
@@ -326,6 +317,29 @@ var GridAxisAdditions = /** @class */ (function () {
326
317
  return (lastIndex === thisIndex &&
327
318
  (isNumber(columnIndex) ? columns.length === columnIndex : true));
328
319
  };
320
+ /**
321
+ * Add extra border based on the provided path.
322
+ * *
323
+ * @private
324
+ *
325
+ * @param {SVGPath} path
326
+ * The path of the border.
327
+ *
328
+ * @return {Highcharts.SVGElement}
329
+ */
330
+ GridAxisAdditions.prototype.renderBorder = function (path) {
331
+ var axis = this.axis, renderer = axis.chart.renderer, options = axis.options, extraBorderLine = renderer.path(path)
332
+ .addClass('highcharts-axis-line')
333
+ .add(axis.axisBorder);
334
+ if (!renderer.styledMode) {
335
+ extraBorderLine.attr({
336
+ stroke: options.lineColor,
337
+ 'stroke-width': options.lineWidth,
338
+ zIndex: 7
339
+ });
340
+ }
341
+ return extraBorderLine;
342
+ };
329
343
  return GridAxisAdditions;
330
344
  }());
331
345
  /**
@@ -431,11 +445,18 @@ var GridAxis = /** @class */ (function () {
431
445
  var point = series && find(series.options.data, function (p) {
432
446
  return p[axis.isXAxis ? 'x' : 'y'] === value;
433
447
  });
448
+ var pointCopy;
449
+ if (point && series.is('gantt')) {
450
+ // For the Gantt set point aliases to the pointCopy
451
+ // to do not change the original point
452
+ pointCopy = merge(point);
453
+ H.seriesTypes.gantt.prototype.setGanttPointAliases(pointCopy);
454
+ }
434
455
  // Make additional properties available for the
435
456
  // formatter
436
457
  this.isFirst = isFirst;
437
458
  this.isLast = isLast;
438
- this.point = point;
459
+ this.point = pointCopy;
439
460
  // Call original labelFormatter
440
461
  return proceed.call(this);
441
462
  });
@@ -480,12 +501,8 @@ var GridAxis = /** @class */ (function () {
480
501
  * @private
481
502
  */
482
503
  GridAxis.onAfterRender = function () {
483
- var axis = this;
484
- var grid = axis.grid;
485
- var options = axis.options;
486
- var renderer = axis.chart.renderer;
487
- var gridOptions = options.grid || {};
488
- var yStartIndex, yEndIndex, xStartIndex, xEndIndex;
504
+ var _a;
505
+ var axis = this, grid = axis.grid, options = axis.options, gridOptions = options.grid || {};
489
506
  if (gridOptions.enabled === true) {
490
507
  // @todo acutual label padding (top, bottom, left, right)
491
508
  axis.maxLabelDimensions = axis.getMaxLabelDimensions(axis.ticks, axis.tickPositions);
@@ -504,13 +521,10 @@ var GridAxis = /** @class */ (function () {
504
521
  if (axis.grid && axis.grid.isOuterAxis() && axis.axisLine) {
505
522
  var lineWidth = options.lineWidth;
506
523
  if (lineWidth) {
507
- var linePath = axis.getLinePath(lineWidth);
508
- var startPoint = linePath[0];
509
- var endPoint = linePath[1];
524
+ var linePath = axis.getLinePath(lineWidth), startPoint = linePath[0], endPoint = linePath[1],
510
525
  // Negate distance if top or left axis
511
526
  // Subtract 1px to draw the line at the end of the tick
512
- var tickLength = (axis.tickSize('tick') || [1])[0];
513
- var distance = (tickLength - 1) * ((axis.side === GridAxis.Side.top ||
527
+ tickLength = (axis.tickSize('tick') || [1])[0], distance = (tickLength - 1) * ((axis.side === GridAxis.Side.top ||
514
528
  axis.side === GridAxis.Side.left) ? -1 : 1);
515
529
  // If axis is horizontal, reposition line path vertically
516
530
  if (startPoint[0] === 'M' && endPoint[0] === 'L') {
@@ -519,26 +533,35 @@ var GridAxis = /** @class */ (function () {
519
533
  endPoint[2] += distance;
520
534
  }
521
535
  else {
522
- // If axis is vertical, reposition line path
523
- // horizontally
524
536
  startPoint[1] += distance;
525
537
  endPoint[1] += distance;
526
538
  }
527
539
  }
528
- if (!axis.grid.axisLineExtra) {
529
- axis.grid.axisLineExtra = renderer
530
- .path(linePath)
531
- .attr({
532
- zIndex: 7
533
- })
534
- .addClass('highcharts-axis-line')
535
- .add(axis.axisGroup);
536
- if (!renderer.styledMode) {
537
- axis.grid.axisLineExtra.attr({
538
- stroke: options.lineColor,
539
- 'stroke-width': lineWidth
540
+ // If it doesn't exist, add an upper and lower border
541
+ // for the vertical grid axis.
542
+ if (!axis.horiz && axis.chart.marginRight) {
543
+ var upperBorderStartPoint = startPoint, upperBorderEndPoint = ['L', axis.left, startPoint[2]], upperBorderPath = [upperBorderStartPoint, upperBorderEndPoint], lowerBorderEndPoint = ['L', axis.chart.chartWidth - axis.chart.marginRight, axis.toPixels(axis.max + axis.tickmarkOffset)], lowerBorderStartPoint = ['M', endPoint[1], axis.toPixels(axis.max + axis.tickmarkOffset)], lowerBorderPath = [lowerBorderStartPoint, lowerBorderEndPoint];
544
+ if (!axis.grid.upperBorder && axis.min % 1 !== 0) {
545
+ axis.grid.upperBorder = axis.grid.renderBorder(upperBorderPath);
546
+ }
547
+ if (axis.grid.upperBorder) {
548
+ axis.grid.upperBorder.animate({
549
+ d: upperBorderPath
540
550
  });
541
551
  }
552
+ if (!axis.grid.lowerBorder && axis.max % 1 !== 0) {
553
+ axis.grid.lowerBorder = axis.grid.renderBorder(lowerBorderPath);
554
+ }
555
+ if (axis.grid.lowerBorder) {
556
+ axis.grid.lowerBorder.animate({
557
+ d: lowerBorderPath
558
+ });
559
+ }
560
+ }
561
+ // Render an extra line parallel to the existing axes,
562
+ // to close the grid.
563
+ if (!axis.grid.axisLineExtra) {
564
+ axis.grid.axisLineExtra = axis.grid.renderBorder(linePath);
542
565
  }
543
566
  else {
544
567
  axis.grid.axisLineExtra.animate({
@@ -553,12 +576,38 @@ var GridAxis = /** @class */ (function () {
553
576
  (grid && grid.columns || []).forEach(function (column) {
554
577
  column.render();
555
578
  });
579
+ // Manipulate the tick mark visibility
580
+ // based on the axis.max- allows smooth scrolling.
581
+ if (!axis.horiz && axis.chart.hasRendered && (axis.scrollbar || ((_a = axis.linkedParent) === null || _a === void 0 ? void 0 : _a.scrollbar))) {
582
+ var max = axis.max, min = axis.min, tickmarkOffset = axis.tickmarkOffset, lastTick = axis.tickPositions[axis.tickPositions.length - 1], firstTick = axis.tickPositions[0];
583
+ // Hide/show firts tick label.
584
+ if (min - firstTick > tickmarkOffset) {
585
+ axis.ticks[firstTick].label.hide();
586
+ }
587
+ else {
588
+ axis.ticks[firstTick].label.show();
589
+ }
590
+ // Hide/show last tick mark/label.
591
+ if (lastTick - max > tickmarkOffset) {
592
+ axis.ticks[lastTick].label.hide();
593
+ }
594
+ else {
595
+ axis.ticks[lastTick].label.show();
596
+ }
597
+ if (lastTick - max < tickmarkOffset && lastTick - max > 0 && axis.ticks[lastTick].isLast) {
598
+ axis.ticks[lastTick].mark.hide();
599
+ }
600
+ else {
601
+ axis.ticks[lastTick - 1].mark.show();
602
+ }
603
+ }
556
604
  }
557
605
  };
558
606
  /**
559
607
  * @private
560
608
  */
561
609
  GridAxis.onAfterSetAxisTranslation = function () {
610
+ var _a;
562
611
  var axis = this;
563
612
  var tickInfo = axis.tickPositions && axis.tickPositions.info;
564
613
  var options = axis.options;
@@ -587,6 +636,13 @@ var GridAxis = /** @class */ (function () {
587
636
  }
588
637
  }
589
638
  }
639
+ else {
640
+ // Don't trim ticks which not in min/max range but
641
+ // they are still in the min/max plus tickInterval.
642
+ if (this.options.type !== 'treegrid' && ((_a = axis.grid) === null || _a === void 0 ? void 0 : _a.columns)) {
643
+ this.minPointOffset = this.tickInterval;
644
+ }
645
+ }
590
646
  };
591
647
  /**
592
648
  * Creates a left and right wall on horizontal axes:
@@ -10,13 +10,12 @@
10
10
  'use strict';
11
11
  import Axis from './Axis.js';
12
12
  import H from '../Globals.js';
13
+ import CartesianSeries from '../Series/CartesianSeries.js';
13
14
  import U from '../Utilities.js';
14
15
  var addEvent = U.addEvent, css = U.css, defined = U.defined, pick = U.pick, timeUnits = U.timeUnits;
15
- import '../Chart/Chart.js';
16
+ import Chart from '../Chart/Chart.js';
16
17
  // Has a dependency on Navigator due to the use of Axis.toFixedRange
17
18
  import '../Navigator.js';
18
- import '../Series/Series.js';
19
- var Chart = H.Chart, Series = H.Series;
20
19
  /**
21
20
  * Extends the axis with ordinal support.
22
21
  * @private
@@ -219,7 +218,7 @@ var OrdinalAxis;
219
218
  xData: series.xData.slice(),
220
219
  chart: chart,
221
220
  destroyGroupedData: H.noop,
222
- getProcessedData: H.Series.prototype.getProcessedData
221
+ getProcessedData: CartesianSeries.prototype.getProcessedData
223
222
  };
224
223
  fakeSeries.xData = fakeSeries.xData.concat(ordinal.getOverscrollPositions());
225
224
  fakeSeries.options = {
@@ -773,5 +772,5 @@ var OrdinalAxis;
773
772
  }
774
773
  OrdinalAxis.compose = compose;
775
774
  })(OrdinalAxis || (OrdinalAxis = {}));
776
- OrdinalAxis.compose(Axis, Chart, Series); // @todo move to StockChart, remove from master
775
+ OrdinalAxis.compose(Axis, Chart, CartesianSeries); // @todo move to StockChart, remove from master
777
776
  export default OrdinalAxis;
@@ -846,18 +846,22 @@ extend(Axis.prototype, /** @lends Highcharts.Axis.prototype */ {
846
846
  * @param {number} to
847
847
  * The axis value to end on.
848
848
  *
849
+ * @param {Highcharts.AxisPlotBandsOptions|Highcharts.AxisPlotLinesOptions} options
850
+ * The plotBand or plotLine configuration object.
851
+ *
849
852
  * @return {Highcharts.SVGPathArray}
850
853
  * The SVG path definition in array form.
851
854
  */
852
- getPlotBandPath: function (from, to) {
855
+ getPlotBandPath: function (from, to, options) {
856
+ if (options === void 0) { options = this.options; }
853
857
  var toPath = this.getPlotLinePath({
854
858
  value: to,
855
859
  force: true,
856
- acrossPanes: this.options.acrossPanes
860
+ acrossPanes: options.acrossPanes
857
861
  }), path = this.getPlotLinePath({
858
862
  value: from,
859
863
  force: true,
860
- acrossPanes: this.options.acrossPanes
864
+ acrossPanes: options.acrossPanes
861
865
  }), result = [], i,
862
866
  // #4964 check if chart is inverted or plotband is on yAxis
863
867
  horiz = this.horiz, plus = 1, isFlat, outside = (from < this.min && to < this.min) ||
@@ -947,7 +951,10 @@ extend(Axis.prototype, /** @lends Highcharts.Axis.prototype */ {
947
951
  * @return {Highcharts.PlotLineOrBand|undefined}
948
952
  */
949
953
  addPlotBandOrLine: function (options, coll) {
950
- var obj = new PlotLineOrBand(this, options).render(), userOptions = this.userOptions;
954
+ var obj = new H.PlotLineOrBand(this, options), userOptions = this.userOptions;
955
+ if (this.visible) {
956
+ obj = obj.render();
957
+ }
951
958
  if (obj) { // #2189
952
959
  // Add it to the user options for exporting and Axis.update
953
960
  if (coll) {
@@ -7,8 +7,10 @@
7
7
  * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
8
8
  *
9
9
  * */
10
+ import A from '../Animation/AnimationUtilities.js';
11
+ var getDeferredAnimation = A.getDeferredAnimation;
10
12
  import U from '../Utilities.js';
11
- var addEvent = U.addEvent, destroyObjectProperties = U.destroyObjectProperties, fireEvent = U.fireEvent, getDeferredAnimation = U.getDeferredAnimation, objectEach = U.objectEach, pick = U.pick;
13
+ var addEvent = U.addEvent, destroyObjectProperties = U.destroyObjectProperties, fireEvent = U.fireEvent, objectEach = U.objectEach, pick = U.pick;
12
14
  /* eslint-disable valid-jsdoc */
13
15
  /**
14
16
  * Adds stacking support to axes.
@@ -8,7 +8,7 @@
8
8
  * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
9
9
  *
10
10
  * */
11
- 'use strict';
11
+ import H from '../Globals.js';
12
12
  import Axis from './Axis.js';
13
13
  import Tick from './Tick.js';
14
14
  import Tree from '../../Gantt/Tree.js';
@@ -16,7 +16,7 @@ import TreeGridTick from './TreeGridTick.js';
16
16
  import mixinTreeSeries from '../../Mixins/TreeSeries.js';
17
17
  var getLevelOptions = mixinTreeSeries.getLevelOptions;
18
18
  import U from '../Utilities.js';
19
- var addEvent = U.addEvent, find = U.find, fireEvent = U.fireEvent, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, merge = U.merge, pick = U.pick, wrap = U.wrap;
19
+ var addEvent = U.addEvent, find = U.find, fireEvent = U.fireEvent, isArray = U.isArray, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, merge = U.merge, pick = U.pick, wrap = U.wrap;
20
20
  import './GridAxis.js';
21
21
  import './BrokenAxis.js';
22
22
  /**
@@ -140,6 +140,7 @@ var TreeGridAxis;
140
140
  mapOfPosToGridNode[pos] = gridNode = {
141
141
  depth: parentGridNode ? parentGridNode.depth + 1 : 0,
142
142
  name: name,
143
+ id: data.id,
143
144
  nodes: [node],
144
145
  children: [],
145
146
  pos: pos
@@ -236,6 +237,11 @@ var TreeGridAxis;
236
237
  if (s.visible) {
237
238
  // Push all data to array
238
239
  (s.options.data || []).forEach(function (data) {
240
+ // For using keys - rebuild the data structure
241
+ if (s.options.keys && s.options.keys.length) {
242
+ data = s.pointClass.prototype.optionsToObject.call({ series: s }, data);
243
+ H.seriesTypes.gantt.prototype.setGanttPointAliases(data);
244
+ }
239
245
  if (isObject(data, true)) {
240
246
  // Set series index on data. Removed again
241
247
  // after use.
@@ -271,12 +277,21 @@ var TreeGridAxis;
271
277
  axis.treeGrid.tree = treeGrid.tree;
272
278
  // Update yData now that we have calculated the y values
273
279
  axis.series.forEach(function (series) {
274
- var data = (series.options.data || []).map(function (d) {
280
+ var axisData = (series.options.data || []).map(function (d) {
281
+ if (isArray(d) && series.options.keys && series.options.keys.length) {
282
+ // Get the axisData from the data array used to
283
+ // build the treeGrid where has been modified
284
+ data.forEach(function (point) {
285
+ if (d.indexOf(point.x) >= 0 && d.indexOf(point.x2) >= 0) {
286
+ d = point;
287
+ }
288
+ });
289
+ }
275
290
  return isObject(d, true) ? merge(d) : d;
276
291
  });
277
292
  // Avoid destroying points when series is not visible
278
293
  if (series.visible) {
279
- series.setData(data, false);
294
+ series.setData(axisData, false);
280
295
  }
281
296
  });
282
297
  // Calculate the label options for each level in the tree.
@@ -551,6 +566,30 @@ var TreeGridAxis;
551
566
  * Functions
552
567
  *
553
568
  * */
569
+ /**
570
+ * Set the collapse status.
571
+ *
572
+ * @private
573
+ *
574
+ * @param {Highcharts.Axis} axis
575
+ * The axis to check against.
576
+ *
577
+ * @param {Highcharts.GridNode} node
578
+ * The node to collapse.
579
+ */
580
+ Additions.prototype.setCollapsedStatus = function (node) {
581
+ var axis = this.axis, chart = axis.chart;
582
+ axis.series.forEach(function (series) {
583
+ var data = series.options.data;
584
+ if (node.id && data) {
585
+ var point = chart.get(node.id), dataPoint = data[series.data.indexOf(point)];
586
+ if (point && dataPoint) {
587
+ point.collapsed = node.collapsed;
588
+ dataPoint.collapsed = node.collapsed;
589
+ }
590
+ }
591
+ });
592
+ };
554
593
  /**
555
594
  * Calculates the new axis breaks to collapse a node.
556
595
  *
@@ -571,6 +610,9 @@ var TreeGridAxis;
571
610
  Additions.prototype.collapse = function (node) {
572
611
  var axis = this.axis, breaks = (axis.options.breaks || []), obj = getBreakFromNode(node, axis.max);
573
612
  breaks.push(obj);
613
+ // Change the collapsed flag #13838
614
+ node.collapsed = true;
615
+ axis.treeGrid.setCollapsedStatus(node);
574
616
  return breaks;
575
617
  };
576
618
  /**
@@ -592,6 +634,9 @@ var TreeGridAxis;
592
634
  */
593
635
  Additions.prototype.expand = function (node) {
594
636
  var axis = this.axis, breaks = (axis.options.breaks || []), obj = getBreakFromNode(node, axis.max);
637
+ // Change the collapsed flag #13838
638
+ node.collapsed = false;
639
+ axis.treeGrid.setCollapsedStatus(node);
595
640
  // Remove the break from the axis breaks array.
596
641
  return breaks.reduce(function (arr, b) {
597
642
  if (b.to !== obj.to || b.from !== obj.from) {
@@ -610,11 +655,11 @@ var TreeGridAxis;
610
655
  * List of positions.
611
656
  */
612
657
  Additions.prototype.getTickPositions = function () {
613
- var axis = this.axis;
658
+ var axis = this.axis, roundedMin = Math.floor(axis.min / axis.tickInterval) * axis.tickInterval, roundedMax = Math.ceil(axis.max / axis.tickInterval) * axis.tickInterval;
614
659
  return Object.keys(axis.treeGrid.mapOfPosToGridNode || {}).reduce(function (arr, key) {
615
660
  var pos = +key;
616
- if (axis.min <= pos &&
617
- axis.max >= pos &&
661
+ if (pos >= roundedMin &&
662
+ pos <= roundedMax &&
618
663
  !(axis.brokenAxis && axis.brokenAxis.isInAnyBreak(pos))) {
619
664
  arr.push(pos);
620
665
  }
@@ -8,9 +8,12 @@
8
8
  *
9
9
  * */
10
10
  'use strict';
11
+ import A from '../Animation/AnimationUtilities.js';
12
+ var animate = A.animate, animObject = A.animObject, setAnimation = A.setAnimation;
11
13
  import Axis from '../Axis/Axis.js';
14
+ import BaseSeries from '../Series/Series.js';
12
15
  import H from '../Globals.js';
13
- var charts = H.charts, doc = H.doc, seriesTypes = H.seriesTypes, win = H.win;
16
+ var charts = H.charts, doc = H.doc, win = H.win;
14
17
  import Legend from '../Legend.js';
15
18
  import MSPointer from '../MSPointer.js';
16
19
  import O from '../Options.js';
@@ -18,7 +21,7 @@ var defaultOptions = O.defaultOptions;
18
21
  import Pointer from '../Pointer.js';
19
22
  import Time from '../Time.js';
20
23
  import U from '../Utilities.js';
21
- var addEvent = U.addEvent, animate = U.animate, animObject = U.animObject, attr = U.attr, createElement = U.createElement, css = U.css, defined = U.defined, discardElement = U.discardElement, erase = U.erase, error = U.error, extend = U.extend, find = U.find, fireEvent = U.fireEvent, getStyle = U.getStyle, isArray = U.isArray, isFunction = U.isFunction, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, merge = U.merge, numberFormat = U.numberFormat, objectEach = U.objectEach, pick = U.pick, pInt = U.pInt, relativeLength = U.relativeLength, removeEvent = U.removeEvent, setAnimation = U.setAnimation, splat = U.splat, syncTimeout = U.syncTimeout, uniqueKey = U.uniqueKey;
24
+ var addEvent = U.addEvent, attr = U.attr, createElement = U.createElement, css = U.css, defined = U.defined, discardElement = U.discardElement, erase = U.erase, error = U.error, extend = U.extend, find = U.find, fireEvent = U.fireEvent, getStyle = U.getStyle, isArray = U.isArray, isFunction = U.isFunction, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, merge = U.merge, numberFormat = U.numberFormat, objectEach = U.objectEach, pick = U.pick, pInt = U.pInt, relativeLength = U.relativeLength, removeEvent = U.removeEvent, splat = U.splat, syncTimeout = U.syncTimeout, uniqueKey = U.uniqueKey;
22
25
  /**
23
26
  * Callback for chart constructors.
24
27
  *
@@ -374,13 +377,15 @@ var Chart = /** @class */ (function () {
374
377
  Chart.prototype.initSeries = function (options) {
375
378
  var chart = this, optionsChart = chart.options.chart, type = (options.type ||
376
379
  optionsChart.type ||
377
- optionsChart.defaultSeriesType), series, Constr = seriesTypes[type];
380
+ optionsChart.defaultSeriesType), series, Constr = BaseSeries.seriesTypes[type];
378
381
  // No such series type
379
382
  if (!Constr) {
380
383
  error(17, true, chart, { missingModuleFor: type });
381
384
  }
382
- series = new Constr();
383
- series.init(this, options);
385
+ series = new Constr(chart, options);
386
+ if (typeof series.init === 'function') {
387
+ series.init(this, options);
388
+ }
384
389
  return series;
385
390
  };
386
391
  /**
@@ -530,7 +535,7 @@ var Chart = /** @class */ (function () {
530
535
  series.forEach(function (serie) {
531
536
  if (serie.isDirty) {
532
537
  if (serie.options.legendType === 'point') {
533
- if (serie.updateTotals) {
538
+ if (typeof serie.updateTotals === 'function') {
534
539
  serie.updateTotals();
535
540
  }
536
541
  redrawLegend = true;
@@ -1578,7 +1583,7 @@ var Chart = /** @class */ (function () {
1578
1583
  */
1579
1584
  ['inverted', 'angular', 'polar'].forEach(function (key) {
1580
1585
  // The default series type's class
1581
- klass = seriesTypes[(optionsChart.type ||
1586
+ klass = BaseSeries.seriesTypes[(optionsChart.type ||
1582
1587
  optionsChart.defaultSeriesType)];
1583
1588
  // Get the value from available chart-wide properties
1584
1589
  value =
@@ -1590,7 +1595,7 @@ var Chart = /** @class */ (function () {
1590
1595
  // 4. Check if any the chart's series require it
1591
1596
  i = seriesOptions && seriesOptions.length;
1592
1597
  while (!value && i--) {
1593
- klass = seriesTypes[seriesOptions[i].type];
1598
+ klass = BaseSeries.seriesTypes[seriesOptions[i].type];
1594
1599
  if (klass && klass.prototype[key]) {
1595
1600
  value = true;
1596
1601
  }
@@ -13,13 +13,14 @@
13
13
  import Axis from '../Axis/Axis.js';
14
14
  import Axis3D from '../Axis/Axis3D.js';
15
15
  import Chart from './Chart.js';
16
+ import Fx from '../Animation/Fx.js';
16
17
  import H from '../Globals.js';
17
18
  import Math3D from '../../Extensions/Math3D.js';
18
19
  var perspective = Math3D.perspective, shapeArea3D = Math3D.shapeArea3D;
19
20
  import O from '../Options.js';
20
21
  var genericDefaultOptions = O.defaultOptions;
21
22
  import U from '../Utilities.js';
22
- var addEvent = U.addEvent, Fx = U.Fx, isArray = U.isArray, merge = U.merge, pick = U.pick, wrap = U.wrap;
23
+ var addEvent = U.addEvent, isArray = U.isArray, merge = U.merge, pick = U.pick, wrap = U.wrap;
23
24
  import ZAxis from '../Axis/ZAxis.js';
24
25
  var Chart3D;
25
26
  (function (Chart3D) {
@@ -9,7 +9,6 @@
9
9
  * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
10
10
  *
11
11
  * */
12
- 'use strict';
13
12
  import Chart from './Chart.js';
14
13
  import H from '../Globals.js';
15
14
  import U from '../Utilities.js';
@@ -97,7 +96,11 @@ H.ganttChart = function (renderTo, options, callback) {
97
96
  enabled: false
98
97
  },
99
98
  navigator: {
100
- series: { type: 'gantt' }
99
+ series: { type: 'gantt' },
100
+ // Bars were clipped, #14060.
101
+ yAxis: {
102
+ type: 'category'
103
+ }
101
104
  }
102
105
  }, options, // user's options
103
106
  // forced options
@@ -105,13 +108,6 @@ H.ganttChart = function (renderTo, options, callback) {
105
108
  isGantt: true
106
109
  });
107
110
  options.series = userOptions.series = seriesOptions;
108
- (options.series || []).forEach(function (series) {
109
- if (series.data) {
110
- series.data.forEach(function (point) {
111
- H.seriesTypes.gantt.prototype.setGanttPointAliases(point);
112
- });
113
- }
114
- });
115
111
  return hasRenderToArg ?
116
112
  new Chart(renderTo, options, callback) :
117
113
  new Chart(options, options); // @todo does not look correct
@@ -7,16 +7,15 @@
7
7
  * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
8
8
  *
9
9
  * */
10
- 'use strict';
11
10
  import Axis from '../Axis/Axis.js';
12
11
  import Chart from '../Chart/Chart.js';
13
12
  import H from '../Globals.js';
13
+ import LineSeries from '../../Series/LineSeries.js';
14
14
  import Point from '../Series/Point.js';
15
15
  import SVGRenderer from '../Renderer/SVG/SVGRenderer.js';
16
16
  import U from '../Utilities.js';
17
17
  var addEvent = U.addEvent, arrayMax = U.arrayMax, arrayMin = U.arrayMin, clamp = U.clamp, defined = U.defined, extend = U.extend, find = U.find, format = U.format, getOptions = U.getOptions, isNumber = U.isNumber, isString = U.isString, merge = U.merge, pick = U.pick, splat = U.splat;
18
18
  import '../Pointer.js';
19
- import '../Series/Series.js';
20
19
  // Has a dependency on Navigator due to the use of
21
20
  // defaultOptions.navigator
22
21
  import '../Navigator.js';
@@ -26,7 +25,7 @@ import '../Scrollbar.js';
26
25
  // Has a dependency on RangeSelector due to the use of
27
26
  // defaultOptions.rangeSelector
28
27
  import '../../Extensions/RangeSelector.js';
29
- var Series = H.Series, seriesProto = Series.prototype, seriesInit = seriesProto.init, seriesProcessData = seriesProto.processData, pointTooltipFormatter = Point.prototype.tooltipFormatter;
28
+ var seriesProto = LineSeries.prototype, seriesInit = seriesProto.init, seriesProcessData = seriesProto.processData, pointTooltipFormatter = Point.prototype.tooltipFormatter;
30
29
  /**
31
30
  * Compare the values of the series against the first non-null, non-
32
31
  * zero value in the visible range. The y axis will show percentage
@@ -216,7 +215,7 @@ H.StockChart = H.stockChart = function (a, b, c) {
216
215
  };
217
216
  // Handle som Stock-specific series defaults, override the plotOptions before
218
217
  // series options are handled.
219
- addEvent(Series, 'setOptions', function (e) {
218
+ addEvent(LineSeries, 'setOptions', function (e) {
220
219
  var overrides;
221
220
  if (this.chart.options.isStock) {
222
221
  if (this.is('column') || this.is('columnrange')) {
@@ -644,7 +643,7 @@ seriesProto.processData = function (force) {
644
643
  return;
645
644
  };
646
645
  // Modify series extremes
647
- addEvent(Series, 'afterGetExtremes', function (e) {
646
+ addEvent(LineSeries, 'afterGetExtremes', function (e) {
648
647
  var dataExtremes = e.dataExtremes;
649
648
  if (this.modifyValue && dataExtremes) {
650
649
  var extremes = [
@@ -705,7 +704,7 @@ Point.prototype.tooltipFormatter = function (pointFormat) {
705
704
  // Extend the Series prototype to create a separate series clip box. This is
706
705
  // related to using multiple panes, and a future pane logic should incorporate
707
706
  // this feature (#2754).
708
- addEvent(Series, 'render', function () {
707
+ addEvent(LineSeries, 'render', function () {
709
708
  var chart = this.chart, clipHeight;
710
709
  // Only do this on not 3d (#2939, #5904) nor polar (#6057) charts, and only
711
710
  // if the series type handles clipping in the animate method (#2975).
@@ -725,7 +724,7 @@ addEvent(Series, 'render', function () {
725
724
  }
726
725
  }
727
726
  // First render, initial clip box
728
- if (!this.clipBox && this.animate) {
727
+ if (!this.clipBox && !chart.hasRendered) {
729
728
  this.clipBox = merge(chart.clipBox);
730
729
  this.clipBox.width = this.xAxis.len;
731
730
  this.clipBox.height = clipHeight;