highcharts 9.2.2 → 9.3.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 (747) hide show
  1. package/README.md +13 -6
  2. package/bower.json +1 -1
  3. package/css/annotations/popup.css +48 -8
  4. package/css/annotations/popup.scss +70 -22
  5. package/css/highcharts.css +45 -0
  6. package/css/highcharts.scss +40 -0
  7. package/css/themes/dark-unica.css +45 -0
  8. package/css/themes/grid-light.css +45 -0
  9. package/css/themes/sand-signika.css +45 -0
  10. package/es-modules/Accessibility/A11yI18n.js +273 -224
  11. package/es-modules/Accessibility/Accessibility.js +233 -128
  12. package/es-modules/Accessibility/AccessibilityComponent.js +79 -314
  13. package/es-modules/Accessibility/Components/AnnotationsA11y.js +10 -0
  14. package/es-modules/Accessibility/Components/ContainerComponent.js +52 -27
  15. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +46 -23
  16. package/es-modules/Accessibility/Components/LegendComponent.js +97 -65
  17. package/es-modules/Accessibility/Components/MenuComponent.js +59 -40
  18. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -8
  19. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +152 -115
  20. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +133 -68
  21. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +64 -27
  22. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +38 -21
  23. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +380 -325
  24. package/es-modules/Accessibility/Components/ZoomComponent.js +28 -20
  25. package/es-modules/Accessibility/FocusBorder.js +192 -147
  26. package/es-modules/Accessibility/HighContrastMode.js +78 -66
  27. package/es-modules/Accessibility/HighContrastTheme.js +10 -0
  28. package/es-modules/Accessibility/KeyboardNavigation.js +144 -70
  29. package/es-modules/Accessibility/KeyboardNavigationHandler.js +71 -44
  30. package/es-modules/Accessibility/Options/DeprecatedOptions.js +11 -1
  31. package/es-modules/Accessibility/Options/LangOptions.js +1 -2
  32. package/es-modules/Accessibility/Options/Options.js +32 -17
  33. package/es-modules/Accessibility/ProxyElement.js +212 -0
  34. package/es-modules/Accessibility/ProxyProvider.js +305 -0
  35. package/es-modules/Accessibility/Utils/Announcer.js +15 -8
  36. package/es-modules/Accessibility/Utils/ChartUtilities.js +41 -16
  37. package/es-modules/Accessibility/Utils/DOMElementProvider.js +27 -15
  38. package/es-modules/Accessibility/Utils/EventProvider.js +27 -17
  39. package/es-modules/Accessibility/Utils/HTMLUtilities.js +125 -30
  40. package/es-modules/Core/Axis/Axis.js +37 -30
  41. package/es-modules/Core/Axis/AxisDefaults.js +35 -24
  42. package/es-modules/Core/Axis/Color/ColorAxisComposition.js +54 -4
  43. package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +5 -5
  44. package/es-modules/Core/Axis/OrdinalAxis.js +8 -12
  45. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +4 -5
  46. package/es-modules/Core/Axis/ScrollbarAxis.js +10 -3
  47. package/es-modules/Core/Axis/TreeGridAxis.js +2 -2
  48. package/es-modules/Core/Axis/TreeGridTick.js +1 -2
  49. package/es-modules/Core/Chart/Chart.js +2 -3
  50. package/es-modules/Core/Chart/ChartDefaults.js +3 -4
  51. package/es-modules/Core/Chart/ChartNavigationComposition.js +92 -0
  52. package/es-modules/Core/Chart/MapChart.js +10 -22
  53. package/es-modules/Core/Chart/StockChart.js +3 -293
  54. package/es-modules/Core/Color/Palettes.js +22 -0
  55. package/es-modules/Core/DefaultOptions.js +19 -17
  56. package/es-modules/Core/Foundation.js +39 -31
  57. package/es-modules/Core/Globals.js +1 -1
  58. package/es-modules/Core/HttpUtilities.js +3 -3
  59. package/es-modules/Core/Legend/Legend.js +7 -3
  60. package/es-modules/Core/Navigator.js +7 -8
  61. package/es-modules/Core/Pointer.js +39 -36
  62. package/es-modules/Core/Renderer/HTML/AST.js +2 -0
  63. package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -18
  64. package/es-modules/Core/Renderer/SVG/SVGElement.js +3 -4
  65. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +21 -18
  66. package/es-modules/Core/Renderer/SVG/TextBuilder.js +3 -3
  67. package/es-modules/Core/ScrollbarDefaults.js +10 -9
  68. package/es-modules/Core/Series/DataLabel.js +2 -3
  69. package/es-modules/Core/Series/Point.js +5 -3
  70. package/es-modules/Core/Series/Series.js +153 -162
  71. package/es-modules/Core/Series/SeriesDefaults.js +3 -4
  72. package/es-modules/Core/Series/SeriesRegistry.js +1 -2
  73. package/es-modules/Core/Tooltip.js +44 -17
  74. package/es-modules/Core/Utilities.js +15 -7
  75. package/es-modules/Data/DataConverter.js +489 -0
  76. package/es-modules/Data/DataPromise.js +252 -0
  77. package/es-modules/Data/DataSeriesConverter.js +203 -0
  78. package/es-modules/Data/DataTable.js +1204 -0
  79. package/es-modules/Data/Modifiers/ChainModifier.js +299 -0
  80. package/es-modules/Data/Modifiers/DataModifier.js +303 -0
  81. package/es-modules/Data/Modifiers/GroupModifier.js +144 -0
  82. package/es-modules/Data/Modifiers/InvertModifier.js +254 -0
  83. package/es-modules/Data/Modifiers/RangeModifier.js +143 -0
  84. package/es-modules/Data/Modifiers/SeriesPointsModifier.js +110 -0
  85. package/es-modules/Data/Modifiers/SortModifier.js +249 -0
  86. package/es-modules/Data/Parsers/CSVParser.js +399 -0
  87. package/es-modules/Data/Parsers/DataParser.js +101 -0
  88. package/es-modules/Data/Parsers/GoogleSheetsParser.js +220 -0
  89. package/es-modules/Data/Parsers/HTMLTableParser.js +213 -0
  90. package/es-modules/Data/Stores/CSVStore.js +317 -0
  91. package/es-modules/Data/Stores/DataStore.js +276 -0
  92. package/es-modules/Data/Stores/GoogleSheetsStore.js +167 -0
  93. package/es-modules/Data/Stores/HTMLTableStore.js +351 -0
  94. package/es-modules/Extensions/Annotations/Annotations.js +61 -11
  95. package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
  96. package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +199 -0
  97. package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +7 -1
  98. package/es-modules/Extensions/Annotations/NavigationBindings.js +68 -19
  99. package/es-modules/Extensions/Annotations/Popup.js +479 -141
  100. package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +51 -2
  101. package/es-modules/Extensions/Annotations/Types/CrookedLine.js +1 -1
  102. package/es-modules/Extensions/Annotations/Types/Fibonacci.js +2 -3
  103. package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +219 -0
  104. package/es-modules/Extensions/Annotations/Types/InfinityLine.js +1 -1
  105. package/es-modules/Extensions/Annotations/Types/Measure.js +14 -8
  106. package/es-modules/Extensions/Annotations/Types/Pitchfork.js +5 -5
  107. package/es-modules/Extensions/Annotations/Types/TimeCycles.js +207 -0
  108. package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -5
  109. package/es-modules/Extensions/Annotations/Types/VerticalLine.js +1 -1
  110. package/es-modules/Extensions/Boost/BoostOverrides.js +3 -1
  111. package/es-modules/Extensions/Boost/WGLShader.js +4 -3
  112. package/es-modules/Extensions/BoostCanvas.js +1 -2
  113. package/es-modules/Extensions/CurrentDateIndication.js +2 -3
  114. package/es-modules/Extensions/DataGrouping.js +31 -18
  115. package/es-modules/Extensions/DownloadURL.js +2 -2
  116. package/es-modules/Extensions/DragPanes.js +1 -2
  117. package/es-modules/Extensions/Drilldown.js +2 -3
  118. package/es-modules/Extensions/Exporting/Exporting.js +8 -7
  119. package/es-modules/Extensions/Exporting/ExportingDefaults.js +8 -15
  120. package/es-modules/Extensions/GeoJSON.js +39 -63
  121. package/es-modules/Extensions/MarkerClusters.js +115 -97
  122. package/es-modules/Extensions/NoDataToDisplay.js +1 -2
  123. package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +9 -8
  124. package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
  125. package/es-modules/Extensions/Oldie/Oldie.js +2 -3
  126. package/es-modules/Extensions/Pane.js +5 -6
  127. package/es-modules/Extensions/RangeSelector.js +3 -4
  128. package/es-modules/Extensions/Sonification/ChartSonify.js +247 -637
  129. package/es-modules/Extensions/Sonification/Earcon.js +136 -102
  130. package/es-modules/Extensions/Sonification/Instrument.js +496 -426
  131. package/es-modules/Extensions/Sonification/MusicalFrequencies.js +10 -0
  132. package/es-modules/Extensions/Sonification/Options.js +10 -0
  133. package/es-modules/Extensions/Sonification/PointSonify.js +203 -152
  134. package/es-modules/Extensions/Sonification/SeriesSonify.js +459 -0
  135. package/es-modules/Extensions/Sonification/SignalHandler.js +124 -0
  136. package/es-modules/Extensions/Sonification/Sonification.js +26 -52
  137. package/es-modules/Extensions/Sonification/{Utilities.js → SonificationUtilities.js} +62 -84
  138. package/es-modules/Extensions/Sonification/Timeline.js +255 -567
  139. package/es-modules/Extensions/Sonification/TimelineEvent.js +158 -0
  140. package/es-modules/Extensions/Sonification/TimelinePath.js +311 -0
  141. package/es-modules/Maps/MapNavigation.js +27 -64
  142. package/es-modules/Maps/MapNavigationOptionsDefault.js +3 -0
  143. package/es-modules/Maps/MapPointer.js +7 -5
  144. package/es-modules/Maps/MapView.js +450 -0
  145. package/es-modules/Maps/MapViewOptionsDefault.js +95 -0
  146. package/es-modules/Maps/Projection.js +433 -0
  147. package/es-modules/Maps/ProjectionDefinition.js +9 -0
  148. package/es-modules/Maps/Projections/EqualEarth.js +42 -0
  149. package/es-modules/Maps/Projections/Miller.js +17 -0
  150. package/es-modules/Maps/Projections/Orthographic.js +26 -0
  151. package/es-modules/Maps/Projections/ProjectionRegistry.js +17 -0
  152. package/es-modules/Maps/Projections/WebMercator.js +25 -0
  153. package/es-modules/Series/AreaRange/AreaRangeSeries.js +4 -5
  154. package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -8
  155. package/es-modules/Series/BoxPlot/BoxPlotSeries.js +1 -2
  156. package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -2
  157. package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
  158. package/es-modules/Series/Bubble/BubblePoint.js +5 -0
  159. package/es-modules/Series/Bubble/BubbleSeries.js +90 -50
  160. package/es-modules/Series/Candlestick/CandlestickSeries.js +10 -18
  161. package/es-modules/{Mixins/CenteredSeries.js → Series/CenteredUtilities.js} +45 -23
  162. package/es-modules/Series/ColorMapComposition.js +109 -0
  163. package/es-modules/Series/Column/ColumnDataLabel.js +5 -5
  164. package/es-modules/Series/Column/ColumnSeries.js +3 -4
  165. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +6 -6
  166. package/es-modules/Series/DataModifyComposition.js +539 -0
  167. package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +2 -6
  168. package/es-modules/Series/DerivedComposition.js +137 -0
  169. package/es-modules/Series/DrawPointComposition.js +111 -0
  170. package/es-modules/Series/Dumbbell/DumbbellSeries.js +2 -3
  171. package/es-modules/Series/ErrorBar/ErrorBarSeries.js +1 -2
  172. package/es-modules/Series/Flags/FlagsSeries.js +18 -25
  173. package/es-modules/Series/Funnel/FunnelSeries.js +6 -5
  174. package/es-modules/Series/Gantt/GanttSeries.js +0 -2
  175. package/es-modules/Series/Gauge/GaugePoint.js +1 -1
  176. package/es-modules/Series/Gauge/GaugeSeries.js +7 -7
  177. package/es-modules/Series/HLC/HLCPoint.js +55 -0
  178. package/es-modules/Series/HLC/HLCSeries.js +383 -0
  179. package/es-modules/Series/Heatmap/HeatmapPoint.js +3 -4
  180. package/es-modules/Series/Heatmap/HeatmapSeries.js +19 -6
  181. package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +2 -3
  182. package/es-modules/Series/Histogram/HistogramSeries.js +3 -7
  183. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +9 -10
  184. package/es-modules/Series/Line/LineSeries.js +1 -2
  185. package/es-modules/Series/Map/MapPoint.js +23 -16
  186. package/es-modules/Series/Map/MapSeries.js +268 -309
  187. package/es-modules/Series/MapBubble/MapBubblePoint.js +0 -3
  188. package/es-modules/Series/MapBubble/MapBubbleSeries.js +10 -1
  189. package/es-modules/Series/MapPoint/MapPointPoint.js +5 -1
  190. package/es-modules/Series/MapPoint/MapPointSeries.js +87 -4
  191. package/es-modules/Series/Networkgraph/Networkgraph.js +5 -5
  192. package/es-modules/{Mixins/Nodes.js → Series/NodesComposition.js} +76 -29
  193. package/es-modules/Series/OHLC/OHLCPoint.js +2 -6
  194. package/es-modules/Series/OHLC/OHLCSeries.js +55 -183
  195. package/es-modules/{Mixins/OnSeries.js → Series/OnSeriesComposition.js} +53 -21
  196. package/es-modules/Series/Organization/OrganizationSeries.js +2 -3
  197. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +46 -6
  198. package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -7
  199. package/es-modules/Series/Pie/PieDataLabel.js +1 -2
  200. package/es-modules/Series/Pie/PieSeries.js +6 -7
  201. package/es-modules/Series/Sankey/SankeyPoint.js +0 -4
  202. package/es-modules/Series/Sankey/SankeySeries.js +89 -20
  203. package/es-modules/Series/Sunburst/SunburstPoint.js +2 -3
  204. package/es-modules/Series/Sunburst/SunburstSeries.js +4 -4
  205. package/es-modules/Series/Tilemap/TilemapPoint.js +2 -3
  206. package/es-modules/Series/Timeline/TimelineSeries.js +3 -4
  207. package/es-modules/{Mixins/TreeSeries.js → Series/TreeUtilities.js} +86 -76
  208. package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
  209. package/es-modules/Series/Treemap/TreemapSeries.js +8 -8
  210. package/es-modules/Series/Venn/VennPoint.js +16 -7
  211. package/es-modules/Series/Venn/VennSeries.js +5 -8
  212. package/es-modules/Series/Venn/VennUtils.js +550 -439
  213. package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -3
  214. package/es-modules/Series/Windbarb/WindbarbSeries.js +23 -24
  215. package/es-modules/Series/Wordcloud/WordcloudPoint.js +8 -6
  216. package/es-modules/Series/Wordcloud/WordcloudSeries.js +24 -20
  217. package/es-modules/Series/Wordcloud/WordcloudUtils.js +673 -484
  218. package/es-modules/Series/XRange/XRangePoint.js +1 -0
  219. package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -6
  220. package/es-modules/Stock/Indicators/AO/AOIndicator.js +2 -3
  221. package/es-modules/Stock/Indicators/APO/APOIndicator.js +14 -20
  222. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -6
  223. package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +11 -13
  224. package/es-modules/Stock/Indicators/ArrayUtilities.js +47 -0
  225. package/es-modules/Stock/Indicators/BB/BBIndicator.js +27 -11
  226. package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +6 -12
  227. package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -11
  228. package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +19 -11
  229. package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +17 -11
  230. package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +1 -3
  231. package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +11 -9
  232. package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -16
  233. package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +2 -2
  234. package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +2 -2
  235. package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +2 -2
  236. package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +2 -2
  237. package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
  238. package/es-modules/{Mixins/MultipleLines.js → Stock/Indicators/MultipleLinesComposition.js} +136 -87
  239. package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +1 -3
  240. package/es-modules/Stock/Indicators/PC/PCIndicator.js +14 -13
  241. package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -11
  242. package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -26
  243. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +9 -32
  244. package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +0 -8
  245. package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +15 -8
  246. package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +4 -6
  247. package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +26 -11
  248. package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +6 -12
  249. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +20 -3
  250. package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +2 -3
  251. package/es-modules/Stock/StockToolsBindings.js +144 -42
  252. package/es-modules/Stock/StockToolsGui.js +405 -11
  253. package/es-modules/masters/highcharts-3d.src.js +1 -1
  254. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  255. package/es-modules/masters/highcharts-more.src.js +1 -1
  256. package/es-modules/masters/highcharts.src.js +1 -1
  257. package/es-modules/masters/highmaps.src.js +1 -1
  258. package/es-modules/masters/highstock.src.js +1 -1
  259. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  260. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  261. package/es-modules/masters/indicators/ao.src.js +1 -1
  262. package/es-modules/masters/indicators/apo.src.js +1 -1
  263. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  264. package/es-modules/masters/indicators/aroon.src.js +1 -1
  265. package/es-modules/masters/indicators/atr.src.js +1 -1
  266. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  267. package/es-modules/masters/indicators/cci.src.js +1 -1
  268. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  269. package/es-modules/masters/indicators/cmf.src.js +1 -1
  270. package/es-modules/masters/indicators/cmo.src.js +1 -1
  271. package/es-modules/masters/indicators/dema.src.js +1 -1
  272. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  273. package/es-modules/masters/indicators/dmi.src.js +1 -1
  274. package/es-modules/masters/indicators/dpo.src.js +1 -1
  275. package/es-modules/masters/indicators/ema.src.js +4 -10
  276. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  277. package/es-modules/masters/indicators/indicators-all.src.js +2 -2
  278. package/es-modules/masters/indicators/indicators.src.js +2 -1
  279. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  280. package/es-modules/masters/indicators/klinger.src.js +1 -1
  281. package/es-modules/masters/indicators/macd.src.js +1 -1
  282. package/es-modules/masters/indicators/mfi.src.js +1 -1
  283. package/es-modules/masters/indicators/momentum.src.js +1 -1
  284. package/es-modules/masters/indicators/natr.src.js +1 -1
  285. package/es-modules/masters/indicators/obv.src.js +1 -1
  286. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  287. package/es-modules/masters/indicators/ppo.src.js +1 -1
  288. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  289. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  290. package/es-modules/masters/indicators/psar.src.js +1 -1
  291. package/es-modules/masters/indicators/regressions.src.js +1 -1
  292. package/es-modules/masters/indicators/roc.src.js +1 -1
  293. package/es-modules/masters/indicators/rsi.src.js +1 -1
  294. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  295. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  296. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  297. package/es-modules/masters/indicators/tema.src.js +1 -1
  298. package/es-modules/masters/indicators/trendline.src.js +1 -1
  299. package/es-modules/masters/indicators/trix.src.js +1 -1
  300. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  301. package/es-modules/masters/indicators/vwap.src.js +1 -1
  302. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  303. package/es-modules/masters/indicators/wma.src.js +1 -1
  304. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  305. package/es-modules/masters/modules/accessibility.src.js +16 -2
  306. package/es-modules/masters/modules/annotations-advanced.src.js +3 -1
  307. package/es-modules/masters/modules/annotations.src.js +1 -1
  308. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  309. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  310. package/es-modules/masters/modules/boost.src.js +1 -1
  311. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  312. package/es-modules/masters/modules/bullet.src.js +1 -1
  313. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  314. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  315. package/es-modules/masters/modules/cylinder.src.js +1 -1
  316. package/es-modules/masters/modules/data.src.js +6 -3
  317. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  318. package/es-modules/masters/modules/debugger.src.js +1 -1
  319. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  320. package/es-modules/masters/modules/dotplot.src.js +1 -1
  321. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  322. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  323. package/es-modules/masters/modules/drilldown.src.js +1 -1
  324. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  325. package/es-modules/masters/modules/export-data.src.js +1 -1
  326. package/es-modules/masters/modules/exporting.src.js +1 -1
  327. package/es-modules/masters/modules/full-screen.src.js +1 -1
  328. package/es-modules/masters/modules/funnel.src.js +1 -1
  329. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  330. package/es-modules/masters/modules/gantt.src.js +1 -1
  331. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  332. package/es-modules/masters/modules/heatmap.src.js +1 -2
  333. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  334. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  335. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  336. package/es-modules/masters/modules/item-series.src.js +1 -1
  337. package/es-modules/masters/modules/lollipop.src.js +1 -1
  338. package/es-modules/masters/modules/map.src.js +1 -3
  339. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  340. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  341. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  342. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  343. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  344. package/es-modules/masters/modules/oldie.src.js +1 -1
  345. package/es-modules/masters/modules/organization.src.js +1 -1
  346. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  347. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  348. package/es-modules/masters/modules/pareto.src.js +1 -1
  349. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  350. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  351. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  352. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  353. package/es-modules/masters/modules/sankey.src.js +1 -1
  354. package/es-modules/masters/modules/series-label.src.js +1 -1
  355. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  356. package/es-modules/masters/modules/sonification.src.js +33 -2
  357. package/es-modules/masters/modules/static-scale.src.js +1 -1
  358. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  359. package/es-modules/masters/modules/stock.src.js +4 -1
  360. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  361. package/es-modules/masters/modules/sunburst.src.js +1 -1
  362. package/es-modules/masters/modules/tilemap.src.js +1 -1
  363. package/es-modules/masters/modules/timeline.src.js +1 -1
  364. package/es-modules/masters/modules/treegrid.src.js +1 -1
  365. package/es-modules/masters/modules/treemap.src.js +1 -1
  366. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  367. package/es-modules/masters/modules/variwide.src.js +1 -1
  368. package/es-modules/masters/modules/vector.src.js +1 -1
  369. package/es-modules/masters/modules/venn.src.js +1 -1
  370. package/es-modules/masters/modules/windbarb.src.js +1 -1
  371. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  372. package/es-modules/masters/modules/xrange.src.js +1 -1
  373. package/es-modules/masters/themes/avocado.src.js +1 -1
  374. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  375. package/es-modules/masters/themes/dark-green.src.js +1 -1
  376. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  377. package/es-modules/masters/themes/gray.src.js +1 -1
  378. package/es-modules/masters/themes/grid-light.src.js +1 -1
  379. package/es-modules/masters/themes/grid.src.js +1 -1
  380. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  381. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  382. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  383. package/es-modules/masters/themes/skies.src.js +1 -1
  384. package/es-modules/masters/themes/sunset.src.js +1 -1
  385. package/highcharts-3d.js +1 -1
  386. package/highcharts-3d.src.js +1 -1
  387. package/highcharts-gantt.js +801 -804
  388. package/highcharts-gantt.js.map +1 -1
  389. package/highcharts-gantt.src.js +775 -739
  390. package/highcharts-more.js +194 -193
  391. package/highcharts-more.js.map +1 -1
  392. package/highcharts-more.src.js +207 -119
  393. package/highcharts.d.ts +9670 -4217
  394. package/highcharts.js +585 -588
  395. package/highcharts.js.map +1 -1
  396. package/highcharts.src.d.ts +9670 -4217
  397. package/highcharts.src.js +608 -587
  398. package/highmaps.js +726 -708
  399. package/highmaps.js.map +1 -1
  400. package/highmaps.src.js +2708 -1587
  401. package/highstock.js +788 -783
  402. package/highstock.js.map +1 -1
  403. package/highstock.src.js +1896 -1267
  404. package/indicators/acceleration-bands.js +10 -9
  405. package/indicators/acceleration-bands.js.map +1 -1
  406. package/indicators/acceleration-bands.src.js +156 -112
  407. package/indicators/accumulation-distribution.js +1 -1
  408. package/indicators/accumulation-distribution.src.js +1 -1
  409. package/indicators/ao.js +6 -6
  410. package/indicators/ao.js.map +1 -1
  411. package/indicators/ao.src.js +4 -4
  412. package/indicators/apo.js +5 -6
  413. package/indicators/apo.js.map +1 -1
  414. package/indicators/apo.src.js +16 -84
  415. package/indicators/aroon-oscillator.js +9 -9
  416. package/indicators/aroon-oscillator.js.map +1 -1
  417. package/indicators/aroon-oscillator.src.js +160 -177
  418. package/indicators/aroon.js +9 -9
  419. package/indicators/aroon.js.map +1 -1
  420. package/indicators/aroon.src.js +156 -112
  421. package/indicators/atr.js +1 -1
  422. package/indicators/atr.src.js +1 -1
  423. package/indicators/bollinger-bands.js +10 -9
  424. package/indicators/bollinger-bands.js.map +1 -1
  425. package/indicators/bollinger-bands.src.js +180 -117
  426. package/indicators/cci.js +1 -1
  427. package/indicators/cci.src.js +1 -1
  428. package/indicators/chaikin.js +8 -9
  429. package/indicators/chaikin.js.map +1 -1
  430. package/indicators/chaikin.src.js +8 -76
  431. package/indicators/cmf.js +1 -1
  432. package/indicators/cmf.src.js +1 -1
  433. package/indicators/cmo.js +1 -1
  434. package/indicators/cmo.src.js +1 -1
  435. package/indicators/dema.js +5 -6
  436. package/indicators/dema.js.map +1 -1
  437. package/indicators/dema.src.js +3 -75
  438. package/indicators/disparity-index.js +6 -7
  439. package/indicators/disparity-index.js.map +1 -1
  440. package/indicators/disparity-index.src.js +19 -74
  441. package/indicators/dmi.js +11 -11
  442. package/indicators/dmi.js.map +1 -1
  443. package/indicators/dmi.src.js +173 -116
  444. package/indicators/dpo.js +1 -1
  445. package/indicators/dpo.src.js +1 -1
  446. package/indicators/ema.js +1 -13
  447. package/indicators/ema.js.map +1 -1
  448. package/indicators/ema.src.js +7 -188
  449. package/indicators/ichimoku-kinko-hyo.js +1 -1
  450. package/indicators/ichimoku-kinko-hyo.src.js +1 -1
  451. package/indicators/indicators-all.js +197 -203
  452. package/indicators/indicators-all.js.map +1 -1
  453. package/indicators/indicators-all.src.js +649 -720
  454. package/indicators/indicators.js +12 -12
  455. package/indicators/indicators.js.map +1 -1
  456. package/indicators/indicators.src.js +188 -124
  457. package/indicators/keltner-channels.js +10 -10
  458. package/indicators/keltner-channels.js.map +1 -1
  459. package/indicators/keltner-channels.src.js +164 -118
  460. package/indicators/klinger.js +12 -13
  461. package/indicators/klinger.js.map +1 -1
  462. package/indicators/klinger.src.js +161 -184
  463. package/indicators/macd.js +2 -2
  464. package/indicators/macd.js.map +1 -1
  465. package/indicators/macd.src.js +2 -3
  466. package/indicators/mfi.js +1 -1
  467. package/indicators/mfi.src.js +1 -1
  468. package/indicators/momentum.js +1 -1
  469. package/indicators/momentum.src.js +1 -1
  470. package/indicators/natr.js +3 -3
  471. package/indicators/natr.js.map +1 -1
  472. package/indicators/natr.src.js +2 -4
  473. package/indicators/obv.js +1 -1
  474. package/indicators/obv.src.js +1 -1
  475. package/indicators/pivot-points.js +1 -1
  476. package/indicators/pivot-points.src.js +1 -1
  477. package/indicators/ppo.js +5 -6
  478. package/indicators/ppo.js.map +1 -1
  479. package/indicators/ppo.src.js +3 -75
  480. package/indicators/price-channel.js +9 -9
  481. package/indicators/price-channel.js.map +1 -1
  482. package/indicators/price-channel.src.js +207 -168
  483. package/indicators/price-envelopes.js +1 -1
  484. package/indicators/price-envelopes.src.js +1 -1
  485. package/indicators/psar.js +1 -1
  486. package/indicators/psar.src.js +1 -1
  487. package/indicators/regressions.js +1 -1
  488. package/indicators/regressions.src.js +9 -9
  489. package/indicators/roc.js +1 -1
  490. package/indicators/roc.src.js +1 -1
  491. package/indicators/rsi.js +1 -1
  492. package/indicators/rsi.src.js +1 -1
  493. package/indicators/slow-stochastic.js +5 -6
  494. package/indicators/slow-stochastic.js.map +1 -1
  495. package/indicators/slow-stochastic.src.js +2 -72
  496. package/indicators/stochastic.js +10 -10
  497. package/indicators/stochastic.js.map +1 -1
  498. package/indicators/stochastic.src.js +209 -164
  499. package/indicators/supertrend.js +10 -10
  500. package/indicators/supertrend.js.map +1 -1
  501. package/indicators/supertrend.src.js +6 -7
  502. package/indicators/tema.js +6 -7
  503. package/indicators/tema.js.map +1 -1
  504. package/indicators/tema.src.js +28 -75
  505. package/indicators/trendline.js +1 -1
  506. package/indicators/trendline.src.js +1 -1
  507. package/indicators/trix.js +4 -5
  508. package/indicators/trix.js.map +1 -1
  509. package/indicators/trix.src.js +8 -76
  510. package/indicators/volume-by-price.js +16 -16
  511. package/indicators/volume-by-price.js.map +1 -1
  512. package/indicators/volume-by-price.src.js +21 -3
  513. package/indicators/vwap.js +1 -1
  514. package/indicators/vwap.src.js +1 -1
  515. package/indicators/williams-r.js +5 -6
  516. package/indicators/williams-r.js.map +1 -1
  517. package/indicators/williams-r.src.js +41 -51
  518. package/indicators/wma.js +1 -1
  519. package/indicators/wma.src.js +1 -1
  520. package/indicators/zigzag.js +1 -1
  521. package/indicators/zigzag.src.js +1 -1
  522. package/modules/accessibility.d.ts +5 -0
  523. package/modules/accessibility.js +234 -216
  524. package/modules/accessibility.js.map +1 -1
  525. package/modules/accessibility.src.d.ts +5 -0
  526. package/modules/accessibility.src.js +9709 -8608
  527. package/modules/annotations-advanced.d.ts +30 -0
  528. package/modules/annotations-advanced.js +191 -165
  529. package/modules/annotations-advanced.js.map +1 -1
  530. package/modules/annotations-advanced.src.d.ts +30 -0
  531. package/modules/annotations-advanced.src.js +1578 -320
  532. package/modules/annotations.js +121 -107
  533. package/modules/annotations.js.map +1 -1
  534. package/modules/annotations.src.js +958 -229
  535. package/modules/arrow-symbols.js +1 -1
  536. package/modules/arrow-symbols.src.js +1 -1
  537. package/modules/boost-canvas.js +15 -15
  538. package/modules/boost-canvas.js.map +1 -1
  539. package/modules/boost-canvas.src.js +3 -3
  540. package/modules/boost.js +79 -79
  541. package/modules/boost.js.map +1 -1
  542. package/modules/boost.src.js +10 -9
  543. package/modules/broken-axis.js +1 -1
  544. package/modules/broken-axis.src.js +1 -1
  545. package/modules/bullet.js +1 -1
  546. package/modules/bullet.src.js +1 -1
  547. package/modules/coloraxis.js +24 -24
  548. package/modules/coloraxis.js.map +1 -1
  549. package/modules/coloraxis.src.js +69 -98
  550. package/modules/current-date-indicator.js +4 -4
  551. package/modules/current-date-indicator.js.map +1 -1
  552. package/modules/current-date-indicator.src.js +4 -4
  553. package/modules/cylinder.js +1 -1
  554. package/modules/cylinder.src.js +1 -1
  555. package/modules/data.js +19 -19
  556. package/modules/data.js.map +1 -1
  557. package/modules/data.src.js +9 -6
  558. package/modules/datagrouping.js +20 -20
  559. package/modules/datagrouping.js.map +1 -1
  560. package/modules/datagrouping.src.js +33 -19
  561. package/modules/debugger.js +1 -1
  562. package/modules/debugger.src.js +1 -1
  563. package/modules/dependency-wheel.js +11 -11
  564. package/modules/dependency-wheel.js.map +1 -1
  565. package/modules/dependency-wheel.src.js +4 -7
  566. package/modules/dotplot.js +1 -1
  567. package/modules/dotplot.src.js +1 -1
  568. package/modules/drag-panes.js +8 -8
  569. package/modules/drag-panes.js.map +1 -1
  570. package/modules/drag-panes.src.js +3 -3
  571. package/modules/draggable-points.js +1 -1
  572. package/modules/draggable-points.src.js +1 -1
  573. package/modules/drilldown.js +24 -24
  574. package/modules/drilldown.js.map +1 -1
  575. package/modules/drilldown.src.js +4 -4
  576. package/modules/dumbbell.js +17 -17
  577. package/modules/dumbbell.js.map +1 -1
  578. package/modules/dumbbell.src.js +4 -4
  579. package/modules/export-data.js +1 -1
  580. package/modules/export-data.js.map +1 -1
  581. package/modules/export-data.src.js +3 -3
  582. package/modules/exporting.js +39 -38
  583. package/modules/exporting.js.map +1 -1
  584. package/modules/exporting.src.js +98 -67
  585. package/modules/full-screen.js +1 -1
  586. package/modules/full-screen.src.js +1 -1
  587. package/modules/funnel.js +12 -12
  588. package/modules/funnel.js.map +1 -1
  589. package/modules/funnel.src.js +9 -6
  590. package/modules/funnel3d.js +1 -1
  591. package/modules/funnel3d.src.js +1 -1
  592. package/modules/gantt.js +217 -218
  593. package/modules/gantt.js.map +1 -1
  594. package/modules/gantt.src.js +167 -152
  595. package/modules/grid-axis.js +1 -1
  596. package/modules/grid-axis.src.js +1 -1
  597. package/modules/heatmap.js +39 -39
  598. package/modules/heatmap.js.map +1 -1
  599. package/modules/heatmap.src.js +177 -162
  600. package/modules/heikinashi.js +1 -1
  601. package/modules/heikinashi.src.js +4 -4
  602. package/modules/histogram-bellcurve.js +13 -13
  603. package/modules/histogram-bellcurve.js.map +1 -1
  604. package/modules/histogram-bellcurve.src.js +91 -86
  605. package/modules/hollowcandlestick.js +9 -9
  606. package/modules/hollowcandlestick.js.map +1 -1
  607. package/modules/hollowcandlestick.src.js +11 -11
  608. package/modules/item-series.js +1 -1
  609. package/modules/item-series.src.js +1 -1
  610. package/modules/lollipop.js +1 -1
  611. package/modules/lollipop.src.js +1 -1
  612. package/modules/map.d.ts +136 -14
  613. package/modules/map.js +142 -122
  614. package/modules/map.js.map +1 -1
  615. package/modules/map.src.d.ts +136 -14
  616. package/modules/map.src.js +2129 -1029
  617. package/modules/marker-clusters.js +36 -36
  618. package/modules/marker-clusters.js.map +1 -1
  619. package/modules/marker-clusters.src.js +173 -142
  620. package/modules/networkgraph.d.ts +12 -1
  621. package/modules/networkgraph.js +49 -49
  622. package/modules/networkgraph.js.map +1 -1
  623. package/modules/networkgraph.src.d.ts +12 -1
  624. package/modules/networkgraph.src.js +91 -43
  625. package/modules/no-data-to-display.js +5 -5
  626. package/modules/no-data-to-display.js.map +1 -1
  627. package/modules/no-data-to-display.src.js +3 -3
  628. package/modules/offline-exporting.js +17 -17
  629. package/modules/offline-exporting.js.map +1 -1
  630. package/modules/offline-exporting.src.js +13 -13
  631. package/modules/oldie-polyfills.js +1 -1
  632. package/modules/oldie-polyfills.src.js +1 -1
  633. package/modules/oldie.js +26 -26
  634. package/modules/oldie.js.map +1 -1
  635. package/modules/oldie.src.js +4 -4
  636. package/modules/organization.js +13 -13
  637. package/modules/organization.js.map +1 -1
  638. package/modules/organization.src.js +4 -4
  639. package/modules/overlapping-datalabels.js +1 -1
  640. package/modules/overlapping-datalabels.src.js +1 -1
  641. package/modules/parallel-coordinates.js +1 -1
  642. package/modules/parallel-coordinates.src.js +1 -1
  643. package/modules/pareto.js +7 -7
  644. package/modules/pareto.js.map +1 -1
  645. package/modules/pareto.src.js +89 -78
  646. package/modules/pathfinder.js +1 -1
  647. package/modules/pathfinder.src.js +1 -1
  648. package/modules/pattern-fill.js +1 -1
  649. package/modules/pattern-fill.src.js +1 -1
  650. package/modules/price-indicator.js +1 -1
  651. package/modules/price-indicator.src.js +1 -1
  652. package/modules/pyramid3d.js +1 -1
  653. package/modules/pyramid3d.src.js +1 -1
  654. package/modules/sankey.d.ts +12 -1
  655. package/modules/sankey.js +29 -29
  656. package/modules/sankey.js.map +1 -1
  657. package/modules/sankey.src.d.ts +12 -1
  658. package/modules/sankey.src.js +300 -176
  659. package/modules/series-label.js +1 -1
  660. package/modules/series-label.src.js +1 -1
  661. package/modules/solid-gauge.js +1 -1
  662. package/modules/solid-gauge.src.js +1 -1
  663. package/modules/sonification.js +59 -55
  664. package/modules/sonification.js.map +1 -1
  665. package/modules/sonification.src.js +3034 -2553
  666. package/modules/static-scale.js +1 -1
  667. package/modules/static-scale.src.js +1 -1
  668. package/modules/stock-tools.js +177 -164
  669. package/modules/stock-tools.js.map +1 -1
  670. package/modules/stock-tools.src.js +1001 -131
  671. package/modules/stock.d.ts +39 -6
  672. package/modules/stock.js +204 -196
  673. package/modules/stock.js.map +1 -1
  674. package/modules/stock.src.d.ts +39 -6
  675. package/modules/stock.src.js +1689 -1081
  676. package/modules/streamgraph.js +1 -1
  677. package/modules/streamgraph.src.js +1 -1
  678. package/modules/sunburst.js +61 -60
  679. package/modules/sunburst.js.map +1 -1
  680. package/modules/sunburst.src.js +329 -266
  681. package/modules/tilemap.js +17 -17
  682. package/modules/tilemap.js.map +1 -1
  683. package/modules/tilemap.src.js +3 -4
  684. package/modules/timeline.js +18 -18
  685. package/modules/timeline.js.map +1 -1
  686. package/modules/timeline.src.js +5 -5
  687. package/modules/treegrid.js +56 -57
  688. package/modules/treegrid.js.map +1 -1
  689. package/modules/treegrid.src.js +126 -120
  690. package/modules/treemap.js +41 -41
  691. package/modules/treemap.js.map +1 -1
  692. package/modules/treemap.src.js +319 -254
  693. package/modules/variable-pie.js +1 -1
  694. package/modules/variable-pie.src.js +1 -1
  695. package/modules/variwide.js +1 -1
  696. package/modules/variwide.src.js +1 -1
  697. package/modules/vector.js +1 -1
  698. package/modules/vector.src.js +1 -1
  699. package/modules/venn.js +31 -31
  700. package/modules/venn.js.map +1 -1
  701. package/modules/venn.src.js +731 -721
  702. package/modules/windbarb.js +15 -15
  703. package/modules/windbarb.js.map +1 -1
  704. package/modules/windbarb.src.js +90 -62
  705. package/modules/wordcloud.js +23 -24
  706. package/modules/wordcloud.js.map +1 -1
  707. package/modules/wordcloud.src.js +897 -949
  708. package/modules/xrange.js +2 -2
  709. package/modules/xrange.js.map +1 -1
  710. package/modules/xrange.src.js +2 -1
  711. package/package.json +1 -1
  712. package/themes/avocado.js +1 -1
  713. package/themes/avocado.src.js +1 -1
  714. package/themes/dark-blue.js +1 -1
  715. package/themes/dark-blue.src.js +1 -1
  716. package/themes/dark-green.js +1 -1
  717. package/themes/dark-green.src.js +1 -1
  718. package/themes/dark-unica.js +1 -1
  719. package/themes/dark-unica.src.js +1 -1
  720. package/themes/gray.js +1 -1
  721. package/themes/gray.src.js +1 -1
  722. package/themes/grid-light.js +1 -1
  723. package/themes/grid-light.src.js +1 -1
  724. package/themes/grid.js +1 -1
  725. package/themes/grid.src.js +1 -1
  726. package/themes/high-contrast-dark.js +1 -1
  727. package/themes/high-contrast-dark.src.js +1 -1
  728. package/themes/high-contrast-light.js +1 -1
  729. package/themes/high-contrast-light.src.js +1 -1
  730. package/themes/sand-signika.js +1 -1
  731. package/themes/sand-signika.src.js +1 -1
  732. package/themes/skies.js +1 -1
  733. package/themes/skies.src.js +1 -1
  734. package/themes/sunset.js +1 -1
  735. package/themes/sunset.src.js +1 -1
  736. package/es-modules/Core/Axis/MapAxis.js +0 -157
  737. package/es-modules/Core/Color/Palette.js +0 -82
  738. package/es-modules/Extensions/Sonification/InstrumentDefinitions.js +0 -32
  739. package/es-modules/Mixins/ColorMapSeries.js +0 -82
  740. package/es-modules/Mixins/ColorSeries.js +0 -77
  741. package/es-modules/Mixins/DerivedSeries.js +0 -118
  742. package/es-modules/Mixins/DrawPoint.js +0 -81
  743. package/es-modules/Mixins/IndicatorRequired.js +0 -56
  744. package/es-modules/Mixins/Navigation.js +0 -54
  745. package/es-modules/Mixins/NelderMead.js +0 -132
  746. package/es-modules/Mixins/Polygon.js +0 -259
  747. package/es-modules/Mixins/ReduceArray.js +0 -54
package/highcharts.src.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v9.2.2 (2021-08-24)
2
+ * @license Highcharts JS v9.3.0 (2021-10-21)
3
3
  *
4
4
  * (c) 2009-2021 Torstein Honsi
5
5
  *
@@ -71,7 +71,7 @@
71
71
  * Constants
72
72
  *
73
73
  * */
74
- Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '9.2.2', Globals.win = w, Globals.doc = Globals.win.document, Globals.svg = (Globals.doc &&
74
+ Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '9.3.0', Globals.win = w, Globals.doc = Globals.win.document, Globals.svg = (Globals.doc &&
75
75
  Globals.doc.createElementNS &&
76
76
  !!Globals.doc.createElementNS(Globals.SVG_NS, 'svg').createSVGRect), Globals.userAgent = (Globals.win.navigator && Globals.win.navigator.userAgent) || '', Globals.isChrome = Globals.userAgent.indexOf('Chrome') !== -1, Globals.isFirefox = Globals.userAgent.indexOf('Firefox') !== -1, Globals.isMS = /(edge|msie|trident)/i.test(Globals.userAgent) && !Globals.win.opera, Globals.isSafari = !Globals.isChrome && Globals.userAgent.indexOf('Safari') !== -1, Globals.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(Globals.userAgent), Globals.isWebKit = Globals.userAgent.indexOf('AppleWebKit') !== -1, Globals.deg2rad = Math.PI * 2 / 360, Globals.hasBidiBug = (Globals.isFirefox &&
77
77
  parseInt(Globals.userAgent.split('Firefox/')[1], 10) < 4 // issue #38
@@ -520,9 +520,13 @@
520
520
  return typeof obj !== 'undefined' && obj !== null;
521
521
  }
522
522
  /**
523
- * Set or get an attribute or an object of attributes. To use as a setter, pass
524
- * a key and a value, or let the second argument be a collection of keys and
525
- * values. To use as a getter, pass only a string as the second argument.
523
+ * Set or get an attribute or an object of attributes.
524
+ *
525
+ * To use as a setter, pass a key and a value, or let the second argument be a
526
+ * collection of keys and values. When using a collection, passing a value of
527
+ * `null` or `undefined` will remove the attribute.
528
+ *
529
+ * To use as a getter, pass only a string as the second argument.
526
530
  *
527
531
  * @function Highcharts.attr
528
532
  *
@@ -558,7 +562,12 @@
558
562
  }
559
563
  else {
560
564
  objectEach(prop, function (val, key) {
561
- elem.setAttribute(key, val);
565
+ if (defined(val)) {
566
+ elem.setAttribute(key, val);
567
+ }
568
+ else {
569
+ elem.removeAttribute(key);
570
+ }
562
571
  });
563
572
  }
564
573
  return ret;
@@ -929,8 +938,6 @@
929
938
  *
930
939
  * @param {Function} sortFunction
931
940
  * The function to sort it with, like with regular Array.prototype.sort.
932
- *
933
- * @return {void}
934
941
  */
935
942
  function stableSort(arr, sortFunction) {
936
943
  // @todo It seems like Chrome since v70 sorts in a stable way internally,
@@ -1057,7 +1064,8 @@
1057
1064
  * The corrected float number.
1058
1065
  */
1059
1066
  function correctFloat(num, prec) {
1060
- return parseFloat(num.toPrecision(prec || 14));
1067
+ // When the number is higher than 1e14 use the number (#16275)
1068
+ return num > 1e14 ? num : parseFloat(num.toPrecision(prec || 14));
1061
1069
  }
1062
1070
  /**
1063
1071
  * The time unit lookup
@@ -2155,106 +2163,7 @@
2155
2163
 
2156
2164
  return Utilities;
2157
2165
  });
2158
- _registerModule(_modules, 'Core/Color/Palette.js', [], function () {
2159
- var palette = {
2160
- /**
2161
- * Colors for data series and points.
2162
- */
2163
- colors: [
2164
- '#7cb5ec',
2165
- '#434348',
2166
- '#90ed7d',
2167
- '#f7a35c',
2168
- '#8085e9',
2169
- '#f15c80',
2170
- '#e4d354',
2171
- '#2b908f',
2172
- '#f45b5b',
2173
- '#91e8e1'
2174
- ],
2175
- /**
2176
- * Chart background,
2177
- point stroke for markers and columns etc
2178
- */
2179
- backgroundColor: '#ffffff',
2180
- /**
2181
- * Strong text.
2182
- */
2183
- neutralColor100: '#000000',
2184
- /**
2185
- * Main text and some strokes.
2186
- */
2187
- neutralColor80: '#333333',
2188
- /**
2189
- * Axis labels,
2190
- axis title,
2191
- connector fallback.
2192
- */
2193
- neutralColor60: '#666666',
2194
- /**
2195
- * Credits text,
2196
- export menu stroke.
2197
- */
2198
- neutralColor40: '#999999',
2199
- /**
2200
- * Disabled texts,
2201
- button strokes,
2202
- crosshair etc.
2203
- */
2204
- neutralColor20: '#cccccc',
2205
- /**
2206
- * Grid lines etc.
2207
- */
2208
- neutralColor10: '#e6e6e6',
2209
- /**
2210
- * Minor grid lines etc.
2211
- */
2212
- neutralColor5: '#f2f2f2',
2213
- /**
2214
- * Tooltip backgroud,
2215
- button fills,
2216
- map null points.
2217
- */
2218
- neutralColor3: '#f7f7f7',
2219
- /**
2220
- * Drilldown clickable labels,
2221
- color axis max color.
2222
- */
2223
- highlightColor100: '#003399',
2224
- /**
2225
- * Selection marker,
2226
- menu hover,
2227
- button hover,
2228
- chart border,
2229
- navigator series.
2230
- */
2231
- highlightColor80: '#335cad',
2232
- /**
2233
- * Navigator mask fill.
2234
- */
2235
- highlightColor60: '#6685c2',
2236
- /**
2237
- * Ticks and axis line.
2238
- */
2239
- highlightColor20: '#ccd6eb',
2240
- /**
2241
- * Pressed button,
2242
- color axis min color.
2243
- */
2244
- highlightColor10: '#e6ebf5',
2245
- /**
2246
- * Positive indicator color
2247
- */
2248
- positiveColor: '#06b535',
2249
- /**
2250
- * Negative indicator color
2251
- */
2252
- negativeColor: '#f21313'
2253
- };
2254
-
2255
- return palette;
2256
- });
2257
- _registerModule(_modules, 'Core/Chart/ChartDefaults.js', [_modules['Core/Color/Palette.js']], function (Palette) {
2166
+ _registerModule(_modules, 'Core/Chart/ChartDefaults.js', [], function () {
2258
2167
  /* *
2259
2168
  *
2260
2169
  * (c) 2010-2021 Torstein Honsi
@@ -3240,7 +3149,7 @@
3240
3149
  *
3241
3150
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
3242
3151
  */
3243
- borderColor: Palette.highlightColor80,
3152
+ borderColor: "#335cad" /* highlightColor80 */,
3244
3153
  /**
3245
3154
  * The pixel width of the outer chart border.
3246
3155
  *
@@ -3279,7 +3188,7 @@
3279
3188
  *
3280
3189
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
3281
3190
  */
3282
- backgroundColor: Palette.backgroundColor,
3191
+ backgroundColor: "#ffffff" /* backgroundColor */,
3283
3192
  /**
3284
3193
  * The background color or gradient for the plot area.
3285
3194
  *
@@ -3336,7 +3245,7 @@
3336
3245
  *
3337
3246
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
3338
3247
  */
3339
- plotBorderColor: Palette.neutralColor20
3248
+ plotBorderColor: "#cccccc" /* neutralColor20 */
3340
3249
  };
3341
3250
  /* *
3342
3251
  *
@@ -3773,6 +3682,31 @@
3773
3682
 
3774
3683
  return Color;
3775
3684
  });
3685
+ _registerModule(_modules, 'Core/Color/Palettes.js', [], function () {
3686
+ /**
3687
+ * Series palettes for Highcharts. Series colors are defined in highcharts.scss.
3688
+ * **Do not edit this file!** This file is generated using the 'gulp palette' task.
3689
+ */
3690
+ var SeriesPalettes = {
3691
+ /**
3692
+ * Colors for data series and points.
3693
+ */
3694
+ colors: [
3695
+ '#7cb5ec',
3696
+ '#434348',
3697
+ '#90ed7d',
3698
+ '#f7a35c',
3699
+ '#8085e9',
3700
+ '#f15c80',
3701
+ '#e4d354',
3702
+ '#2b908f',
3703
+ '#f45b5b',
3704
+ '#91e8e1'
3705
+ ]
3706
+ };
3707
+
3708
+ return SeriesPalettes;
3709
+ });
3776
3710
  _registerModule(_modules, 'Core/Time.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (H, U) {
3777
3711
  /* *
3778
3712
  *
@@ -4536,7 +4470,7 @@
4536
4470
 
4537
4471
  return Time;
4538
4472
  });
4539
- _registerModule(_modules, 'Core/DefaultOptions.js', [_modules['Core/Chart/ChartDefaults.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Color/Palette.js'], _modules['Core/Time.js'], _modules['Core/Utilities.js']], function (ChartDefaults, Color, H, palette, Time, U) {
4473
+ _registerModule(_modules, 'Core/DefaultOptions.js', [_modules['Core/Chart/ChartDefaults.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Color/Palettes.js'], _modules['Core/Time.js'], _modules['Core/Utilities.js']], function (ChartDefaults, Color, H, Palettes, Time, U) {
4540
4474
  /* *
4541
4475
  *
4542
4476
  * (c) 2010-2021 Torstein Honsi
@@ -4598,7 +4532,7 @@
4598
4532
  * @default ["#7cb5ec", "#434348", "#90ed7d", "#f7a35c", "#8085e9",
4599
4533
  * "#f15c80", "#e4d354", "#2b908f", "#f45b5b", "#91e8e1"]
4600
4534
  */
4601
- colors: palette.colors,
4535
+ colors: Palettes.colors,
4602
4536
  /**
4603
4537
  * Styled mode only. Configuration object for adding SVG definitions for
4604
4538
  * reusable elements. See [gradients, shadows and
@@ -5415,7 +5349,7 @@
5415
5349
  /**
5416
5350
  * @ignore-option
5417
5351
  */
5418
- color: palette.neutralColor80
5352
+ color: "#333333" /* neutralColor80 */
5419
5353
  }
5420
5354
  },
5421
5355
  /**
@@ -5695,7 +5629,7 @@
5695
5629
  *
5696
5630
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
5697
5631
  */
5698
- borderColor: palette.neutralColor40,
5632
+ borderColor: "#999999" /* neutralColor40 */,
5699
5633
  /**
5700
5634
  * The border corner radius of the legend.
5701
5635
  *
@@ -5789,7 +5723,7 @@
5789
5723
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
5790
5724
  * @since 2.2.4
5791
5725
  */
5792
- activeColor: palette.highlightColor100,
5726
+ activeColor: "#003399" /* highlightColor100 */,
5793
5727
  /**
5794
5728
  * The color of the inactive up or down arrow in the legend page
5795
5729
  * navigation. .
@@ -5805,7 +5739,7 @@
5805
5739
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
5806
5740
  * @since 2.2.4
5807
5741
  */
5808
- inactiveColor: palette.neutralColor20
5742
+ inactiveColor: "#cccccc" /* neutralColor20 */
5809
5743
  },
5810
5744
  /**
5811
5745
  * The inner padding of the legend box.
@@ -5881,7 +5815,7 @@
5881
5815
  /**
5882
5816
  * @ignore
5883
5817
  */
5884
- color: palette.neutralColor80,
5818
+ color: "#333333" /* neutralColor80 */,
5885
5819
  /**
5886
5820
  * @ignore
5887
5821
  */
@@ -5919,7 +5853,7 @@
5919
5853
  /**
5920
5854
  * @ignore
5921
5855
  */
5922
- color: palette.neutralColor100
5856
+ color: "#000000" /* neutralColor100 */
5923
5857
  },
5924
5858
  /**
5925
5859
  * CSS styles for each legend item when the corresponding series or
@@ -5940,7 +5874,7 @@
5940
5874
  /**
5941
5875
  * @ignore
5942
5876
  */
5943
- color: palette.neutralColor20
5877
+ color: "#cccccc" /* neutralColor20 */
5944
5878
  },
5945
5879
  /**
5946
5880
  * Whether to apply a drop shadow to the legend. A `backgroundColor`
@@ -6244,7 +6178,7 @@
6244
6178
  /**
6245
6179
  * @ignore
6246
6180
  */
6247
- backgroundColor: palette.backgroundColor,
6181
+ backgroundColor: "#ffffff" /* backgroundColor */,
6248
6182
  /**
6249
6183
  * @ignore
6250
6184
  */
@@ -6587,11 +6521,13 @@
6587
6521
  * @apioption tooltip.xDateFormat
6588
6522
  */
6589
6523
  /**
6590
- * How many decimals to show for the `point.change` value when the
6591
- * `series.compare` option is set. This is overridable in each series'
6592
- * tooltip options object. The default is to preserve all decimals.
6524
+ * How many decimals to show for the `point.change`
6525
+ * or the `point.cumulativeSum` value when the `series.compare`
6526
+ * or the `series.cumulative` option is set.
6527
+ * This is overridable in each series' tooltip options object.
6593
6528
  *
6594
6529
  * @type {number}
6530
+ * @default 2
6595
6531
  * @since 1.0.1
6596
6532
  * @product highstock
6597
6533
  * @apioption tooltip.changeDecimals
@@ -6629,7 +6565,7 @@
6629
6565
  * header will by default be guessed based on the closest data points.
6630
6566
  * This member gives the default string representations used for
6631
6567
  * each unit. For an overview of the replacement codes, see
6632
- * [dateFormat](/class-reference/Highcharts#.dateFormat).
6568
+ * [dateFormat](/class-reference/Highcharts.Time#dateFormat).
6633
6569
  *
6634
6570
  * @see [xAxis.dateTimeLabelFormats](#xAxis.dateTimeLabelFormats)
6635
6571
  *
@@ -6833,7 +6769,7 @@
6833
6769
  *
6834
6770
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
6835
6771
  */
6836
- backgroundColor: color(palette.neutralColor3)
6772
+ backgroundColor: color("#f7f7f7" /* neutralColor3 */)
6837
6773
  // @todo: Disallow undefined as input for colors
6838
6774
  .setOpacity(0.85).get(),
6839
6775
  /**
@@ -6896,7 +6832,7 @@
6896
6832
  */
6897
6833
  style: {
6898
6834
  /** @internal */
6899
- color: palette.neutralColor80,
6835
+ color: "#333333" /* neutralColor80 */,
6900
6836
  /** @internal */
6901
6837
  cursor: 'default',
6902
6838
  /** @internal */
@@ -7011,7 +6947,7 @@
7011
6947
  /** @internal */
7012
6948
  cursor: 'pointer',
7013
6949
  /** @internal */
7014
- color: palette.neutralColor40,
6950
+ color: "#999999" /* neutralColor40 */,
7015
6951
  /** @internal */
7016
6952
  fontSize: '9px'
7017
6953
  },
@@ -8236,6 +8172,7 @@
8236
8172
  'text-align',
8237
8173
  'textAnchor',
8238
8174
  'textLength',
8175
+ 'title',
8239
8176
  'type',
8240
8177
  'valign',
8241
8178
  'width',
@@ -8281,6 +8218,7 @@
8281
8218
  */
8282
8219
  AST.allowedTags = [
8283
8220
  'a',
8221
+ 'abbr',
8284
8222
  'b',
8285
8223
  'br',
8286
8224
  'button',
@@ -8800,7 +8738,7 @@
8800
8738
 
8801
8739
  return RendererUtilities;
8802
8740
  });
8803
- _registerModule(_modules, 'Core/Renderer/SVG/SVGElement.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Renderer/HTML/AST.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Color/Palette.js'], _modules['Core/Utilities.js']], function (A, AST, Color, H, Palette, U) {
8741
+ _registerModule(_modules, 'Core/Renderer/SVG/SVGElement.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Renderer/HTML/AST.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (A, AST, Color, H, U) {
8804
8742
  /* *
8805
8743
  *
8806
8744
  * (c) 2010-2021 Torstein Honsi
@@ -10337,7 +10275,7 @@
10337
10275
  var childNodes = [].slice.call(textNode.childNodes);
10338
10276
  for (var i = 0; i < childNodes.length; i++) {
10339
10277
  var childNode = childNodes[i];
10340
- if (childNode.nodeType === Node.TEXT_NODE ||
10278
+ if (childNode.nodeType === win.Node.TEXT_NODE ||
10341
10279
  childNode.nodeName === 'tspan') {
10342
10280
  textPathElement.appendChild(childNode);
10343
10281
  }
@@ -10432,7 +10370,7 @@
10432
10370
  element = this.element,
10433
10371
  oldShadowOptions = this.oldShadowOptions,
10434
10372
  defaultShadowOptions = {
10435
- color: Palette.neutralColor100,
10373
+ color: "#000000" /* neutralColor100 */,
10436
10374
  offsetX: this.parentInverted ? -1 : 1,
10437
10375
  offsetY: this.parentInverted ? -1 : 1,
10438
10376
  opacity: 0.15,
@@ -10480,7 +10418,7 @@
10480
10418
  strokeWidth = (options.width * 2) + 1 - (2 * i);
10481
10419
  attr(shadow, {
10482
10420
  stroke: (shadowOptions.color ||
10483
- Palette.neutralColor100),
10421
+ "#000000" /* neutralColor100 */),
10484
10422
  'stroke-opacity': shadowElementOpacity * i,
10485
10423
  'stroke-width': strokeWidth,
10486
10424
  transform: transform,
@@ -11818,7 +11756,8 @@
11818
11756
  *
11819
11757
  * */
11820
11758
  var doc = H.doc,
11821
- SVG_NS = H.SVG_NS;
11759
+ SVG_NS = H.SVG_NS,
11760
+ win = H.win;
11822
11761
  var attr = U.attr,
11823
11762
  isString = U.isString,
11824
11763
  objectEach = U.objectEach,
@@ -12040,7 +11979,7 @@
12040
11979
  var modifyChildren = (function (node) {
12041
11980
  var childNodes = [].slice.call(node.childNodes);
12042
11981
  childNodes.forEach(function (childNode) {
12043
- if (childNode.nodeType === Node.TEXT_NODE) {
11982
+ if (childNode.nodeType === win.Node.TEXT_NODE) {
12044
11983
  modifyTextNode(childNode, node);
12045
11984
  }
12046
11985
  else {
@@ -12066,7 +12005,7 @@
12066
12005
  TextBuilder.prototype.getLineHeight = function (node) {
12067
12006
  var fontSizeStyle;
12068
12007
  // If the node is a text node, use its parent
12069
- var element = node.nodeType === Node.TEXT_NODE ?
12008
+ var element = node.nodeType === win.Node.TEXT_NODE ?
12070
12009
  node.parentElement :
12071
12010
  node;
12072
12011
  if (!this.renderer.styledMode) {
@@ -12260,7 +12199,7 @@
12260
12199
 
12261
12200
  return TextBuilder;
12262
12201
  });
12263
- _registerModule(_modules, 'Core/Renderer/SVG/SVGRenderer.js', [_modules['Core/Renderer/HTML/AST.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Color/Palette.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Renderer/SVG/SVGElement.js'], _modules['Core/Renderer/SVG/SVGLabel.js'], _modules['Core/Renderer/SVG/Symbols.js'], _modules['Core/Renderer/SVG/TextBuilder.js'], _modules['Core/Utilities.js']], function (AST, Color, H, Palette, RendererRegistry, SVGElement, SVGLabel, Symbols, TextBuilder, U) {
12202
+ _registerModule(_modules, 'Core/Renderer/SVG/SVGRenderer.js', [_modules['Core/Renderer/HTML/AST.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Renderer/SVG/SVGElement.js'], _modules['Core/Renderer/SVG/SVGLabel.js'], _modules['Core/Renderer/SVG/Symbols.js'], _modules['Core/Renderer/SVG/TextBuilder.js'], _modules['Core/Utilities.js']], function (AST, Color, H, RendererRegistry, SVGElement, SVGLabel, Symbols, TextBuilder, U) {
12264
12203
  /* *
12265
12204
  *
12266
12205
  * (c) 2010-2021 Torstein Honsi
@@ -12471,7 +12410,7 @@
12471
12410
  this.url = this.getReferenceURL();
12472
12411
  // Add description
12473
12412
  var desc = this.createElement('desc').add();
12474
- desc.element.appendChild(doc.createTextNode('Created with Highcharts 9.2.2'));
12413
+ desc.element.appendChild(doc.createTextNode('Created with Highcharts 9.3.0'));
12475
12414
  renderer.defs = this.createElement('defs').add();
12476
12415
  renderer.allowHTML = allowHTML;
12477
12416
  renderer.forExport = forExport;
@@ -12823,11 +12762,11 @@
12823
12762
  if (!styledMode) {
12824
12763
  // Normal state - prepare the attributes
12825
12764
  normalState = merge({
12826
- fill: Palette.neutralColor3,
12827
- stroke: Palette.neutralColor20,
12765
+ fill: "#f7f7f7" /* neutralColor3 */,
12766
+ stroke: "#cccccc" /* neutralColor20 */,
12828
12767
  'stroke-width': 1,
12829
12768
  style: {
12830
- color: Palette.neutralColor80,
12769
+ color: "#333333" /* neutralColor80 */,
12831
12770
  cursor: 'pointer',
12832
12771
  fontWeight: 'normal'
12833
12772
  }
@@ -12838,15 +12777,15 @@
12838
12777
  delete normalState.style;
12839
12778
  // Hover state
12840
12779
  hoverState = merge(normalState, {
12841
- fill: Palette.neutralColor10
12780
+ fill: "#e6e6e6" /* neutralColor10 */
12842
12781
  }, AST.filterUserAttributes(hoverState || {}));
12843
12782
  hoverStyle = hoverState.style;
12844
12783
  delete hoverState.style;
12845
12784
  // Pressed state
12846
12785
  pressedState = merge(normalState, {
12847
- fill: Palette.highlightColor10,
12786
+ fill: "#e6ebf5" /* highlightColor10 */,
12848
12787
  style: {
12849
- color: Palette.neutralColor100,
12788
+ color: "#000000" /* neutralColor100 */,
12850
12789
  fontWeight: 'bold'
12851
12790
  }
12852
12791
  }, AST.filterUserAttributes(pressedState || {}));
@@ -12855,7 +12794,7 @@
12855
12794
  // Disabled state
12856
12795
  disabledState = merge(normalState, {
12857
12796
  style: {
12858
- color: Palette.neutralColor20
12797
+ color: "#cccccc" /* neutralColor20 */
12859
12798
  }
12860
12799
  }, AST.filterUserAttributes(disabledState || {}));
12861
12800
  disabledStyle = disabledState.style;
@@ -13275,14 +13214,18 @@
13275
13214
  el.setAttribute('hc-svg-href', src);
13276
13215
  }
13277
13216
  };
13278
- // optional properties
13279
- if (arguments.length > 1) {
13280
- extend(attribs, {
13281
- x: x,
13282
- y: y,
13283
- width: width,
13284
- height: height
13285
- });
13217
+ // Optional properties (#11756)
13218
+ if (isNumber(x)) {
13219
+ attribs.x = x;
13220
+ }
13221
+ if (isNumber(y)) {
13222
+ attribs.y = y;
13223
+ }
13224
+ if (isNumber(width)) {
13225
+ attribs.width = width;
13226
+ }
13227
+ if (isNumber(height)) {
13228
+ attribs.height = height;
13286
13229
  }
13287
13230
  var elemWrapper = this.createElement('image').attr(attribs),
13288
13231
  onDummyLoad = function (e) {
@@ -14087,7 +14030,7 @@
14087
14030
  * The shadow color.
14088
14031
  * @name Highcharts.ShadowOptionsObject#color
14089
14032
  * @type {Highcharts.ColorString|undefined}
14090
- * @default ${palette.neutralColor100}
14033
+ * @default #000000
14091
14034
  */ /**
14092
14035
  * The horizontal offset from the element.
14093
14036
  *
@@ -14365,6 +14308,9 @@
14365
14308
  whiteSpace = styles && styles.whiteSpace;
14366
14309
  /** @private */
14367
14310
  function getTextPxLength() {
14311
+ if (wrapper.textPxLength) {
14312
+ return wrapper.textPxLength;
14313
+ }
14368
14314
  // Reset multiline/ellipsis in order to read width (#4928,
14369
14315
  // #5417)
14370
14316
  css(elem, {
@@ -14400,29 +14346,32 @@
14400
14346
  wrapper.textWidth,
14401
14347
  wrapper.textAlign
14402
14348
  ].join(',');
14403
- var baseline = void 0;
14349
+ var baseline = void 0,
14350
+ hasBoxWidthChanged = false;
14404
14351
  // Update textWidth. Use the memoized textPxLength if possible, to
14405
14352
  // avoid the getTextPxLength function using elem.offsetWidth.
14406
14353
  // Calling offsetWidth affects rendering time as it forces layout
14407
14354
  // (#7656).
14408
- if (textWidth !== wrapper.oldTextWidth &&
14409
- ((textWidth > wrapper.oldTextWidth) ||
14410
- (wrapper.textPxLength || getTextPxLength()) > textWidth) && (
14411
- // Only set the width if the text is able to word-wrap, or
14412
- // text-overflow is ellipsis (#9537)
14413
- /[ \-]/.test(elem.textContent || elem.innerText) ||
14414
- elem.style.textOverflow === 'ellipsis')) { // #983, #1254
14415
- css(elem, {
14416
- width: textWidth + 'px',
14417
- display: 'block',
14418
- whiteSpace: whiteSpace || 'normal' // #3331
14419
- });
14420
- wrapper.oldTextWidth = textWidth;
14421
- wrapper.hasBoxWidthChanged = true; // #8159
14422
- }
14423
- else {
14424
- wrapper.hasBoxWidthChanged = false; // #8159
14355
+ if (textWidth !== wrapper.oldTextWidth) { // #983, #1254
14356
+ var textPxLength = getTextPxLength();
14357
+ if (((textWidth > wrapper.oldTextWidth) ||
14358
+ textPxLength > textWidth) && (
14359
+ // Only set the width if the text is able to word-wrap,
14360
+ // or text-overflow is ellipsis (#9537)
14361
+ /[ \-]/.test(elem.textContent || elem.innerText) ||
14362
+ elem.style.textOverflow === 'ellipsis')) {
14363
+ css(elem, {
14364
+ width: (textPxLength > textWidth) || rotation ?
14365
+ textWidth + 'px' :
14366
+ 'auto',
14367
+ display: 'block',
14368
+ whiteSpace: whiteSpace || 'normal' // #3331
14369
+ });
14370
+ wrapper.oldTextWidth = textWidth;
14371
+ hasBoxWidthChanged = true; // #8159
14372
+ }
14425
14373
  }
14374
+ wrapper.hasBoxWidthChanged = hasBoxWidthChanged; // #8159
14426
14375
  // Do the calculations and DOM access only if properties changed
14427
14376
  if (currentTextTransform !== wrapper.cTT) {
14428
14377
  baseline = renderer.fontMetrics(elem.style.fontSize, elem).b;
@@ -14768,7 +14717,7 @@
14768
14717
 
14769
14718
  return HTMLRenderer;
14770
14719
  });
14771
- _registerModule(_modules, 'Core/Axis/AxisDefaults.js', [_modules['Core/Color/Palette.js']], function (Palette) {
14720
+ _registerModule(_modules, 'Core/Axis/AxisDefaults.js', [], function () {
14772
14721
  /* *
14773
14722
  *
14774
14723
  * (c) 2010-2021 Torstein Honsi
@@ -15198,7 +15147,7 @@
15198
15147
  * same axis.
15199
15148
  *
15200
15149
  * For an overview of the replacement codes, see
15201
- * [dateFormat](/class-reference/Highcharts#.dateFormat).
15150
+ * [dateFormat](/class-reference/Highcharts.Time#dateFormat).
15202
15151
  *
15203
15152
  * Defaults to:
15204
15153
  * ```js
@@ -15292,9 +15241,9 @@
15292
15241
  * In Highcharts Stock, `endOnTick` is always `false` when the navigator
15293
15242
  * is enabled, to prevent jumpy scrolling.
15294
15243
  *
15295
- * @sample {highcharts} highcharts/chart/reflow-true/
15296
- * True by default
15297
15244
  * @sample {highcharts} highcharts/yaxis/endontick/
15245
+ * True by default
15246
+ * @sample {highcharts} highcharts/yaxis/endontick-false/
15298
15247
  * False
15299
15248
  * @sample {highstock} stock/demo/basic-line/
15300
15249
  * True by default
@@ -15736,7 +15685,7 @@
15736
15685
  */
15737
15686
  style: {
15738
15687
  /** @internal */
15739
- color: Palette.neutralColor60,
15688
+ color: "#666666" /* neutralColor60 */,
15740
15689
  /** @internal */
15741
15690
  cursor: 'default',
15742
15691
  /** @internal */
@@ -15801,8 +15750,6 @@
15801
15750
  * Y axis max on logarithmic axis
15802
15751
  * @sample {highstock} stock/xaxis/min-max/
15803
15752
  * Fixed min and max on X axis
15804
- * @sample {highmaps} maps/axis/min-max/
15805
- * Pre-zoomed to a specific area
15806
15753
  *
15807
15754
  * @type {number|null}
15808
15755
  * @apioption xAxis.max
@@ -15857,8 +15804,6 @@
15857
15804
  * -50 with startOnTick true by default
15858
15805
  * @sample {highstock} stock/xaxis/min-max/
15859
15806
  * Set min and max on X axis
15860
- * @sample {highmaps} maps/axis/min-max/
15861
- * Pre-zoomed to a specific area
15862
15807
  *
15863
15808
  * @type {number|null}
15864
15809
  * @apioption xAxis.min
@@ -16010,8 +15955,6 @@
16010
15955
  * Minimum range of 5
16011
15956
  * @sample {highstock} stock/xaxis/minrange/
16012
15957
  * Max zoom of 6 months overrides user selections
16013
- * @sample {highmaps} maps/axis/minrange/
16014
- * Minimum range of 1000
16015
15958
  *
16016
15959
  * @type {number}
16017
15960
  * @apioption xAxis.minRange
@@ -16577,7 +16520,7 @@
16577
16520
  */
16578
16521
  style: {
16579
16522
  /** @internal */
16580
- color: Palette.neutralColor60
16523
+ color: "#666666" /* neutralColor60 */
16581
16524
  }
16582
16525
  },
16583
16526
  /**
@@ -16694,7 +16637,7 @@
16694
16637
  * @type {Highcharts.ColorType}
16695
16638
  * @default #f2f2f2
16696
16639
  */
16697
- minorGridLineColor: Palette.neutralColor5,
16640
+ minorGridLineColor: "#f2f2f2" /* neutralColor5 */,
16698
16641
  /**
16699
16642
  * Width of the minor, secondary grid lines.
16700
16643
  *
@@ -16720,7 +16663,7 @@
16720
16663
  * @type {Highcharts.ColorType}
16721
16664
  * @default #999999
16722
16665
  */
16723
- minorTickColor: Palette.neutralColor40,
16666
+ minorTickColor: "#999999" /* neutralColor40 */,
16724
16667
  /**
16725
16668
  * The color of the line marking the axis itself.
16726
16669
  *
@@ -16741,7 +16684,7 @@
16741
16684
  * @type {Highcharts.ColorType}
16742
16685
  * @default #ccd6eb
16743
16686
  */
16744
- lineColor: Palette.highlightColor20,
16687
+ lineColor: "#ccd6eb" /* highlightColor20 */,
16745
16688
  /**
16746
16689
  * The width of the line marking the axis itself.
16747
16690
  *
@@ -16778,7 +16721,7 @@
16778
16721
  * @type {Highcharts.ColorType}
16779
16722
  * @default #e6e6e6
16780
16723
  */
16781
- gridLineColor: Palette.neutralColor10,
16724
+ gridLineColor: "#e6e6e6" /* neutralColor10 */,
16782
16725
  /**
16783
16726
  * The width of the grid lines extending the ticks across the plot area.
16784
16727
  * Defaults to 1 on the Y axis and 0 on the X axis, except for 3d
@@ -16836,7 +16779,7 @@
16836
16779
  * @type {Highcharts.ColorType}
16837
16780
  * @default #ccd6eb
16838
16781
  */
16839
- tickColor: Palette.highlightColor20
16782
+ tickColor: "#ccd6eb" /* highlightColor20 */
16840
16783
  // tickWidth: 1
16841
16784
  };
16842
16785
  /**
@@ -16996,9 +16939,9 @@
16996
16939
  * @see [type](#chart.panning.type)
16997
16940
  *
16998
16941
  *
16999
- * @sample {highcharts} highcharts/chart/reflow-true/
17000
- * True by default
17001
16942
  * @sample {highcharts} highcharts/yaxis/endontick/
16943
+ * True by default
16944
+ * @sample {highcharts} highcharts/yaxis/endontick-false/
17002
16945
  * False
17003
16946
  * @sample {highstock} stock/demo/basic-line/
17004
16947
  * True by default
@@ -17151,8 +17094,6 @@
17151
17094
  * Y axis max on logarithmic axis
17152
17095
  * @sample {highstock} stock/yaxis/min-max/
17153
17096
  * Fixed min and max on Y axis
17154
- * @sample {highmaps} maps/axis/min-max/
17155
- * Pre-zoomed to a specific area
17156
17097
  *
17157
17098
  * @apioption yAxis.max
17158
17099
  */
@@ -17163,8 +17104,6 @@
17163
17104
  * -50 with startOnTick true by default
17164
17105
  * @sample {highstock} stock/yaxis/min-max/
17165
17106
  * Fixed min and max on Y axis
17166
- * @sample {highmaps} maps/axis/min-max/
17167
- * Pre-zoomed to a specific area
17168
17107
  *
17169
17108
  * @apioption yAxis.min
17170
17109
  */
@@ -17207,6 +17146,28 @@
17207
17146
  * @product highstock
17208
17147
  * @apioption yAxis.scrollbar.margin
17209
17148
  */
17149
+ /* eslint-disable highcharts/doclet-apioption-last */
17150
+ /**
17151
+ * Defines the position of the scrollbar. By default, it is positioned
17152
+ * on the opposite of the main axis (right side of the chart).
17153
+ * However, in the case of RTL languages could be set to `false`
17154
+ * which positions the scrollbar on the left.
17155
+ *
17156
+ * Works only for vertical axes.
17157
+ * This means yAxis in a non-inverted chart and xAxis in the inverted.
17158
+ *
17159
+ * @sample stock/yaxis/scrollbar-opposite/
17160
+ * A scrollbar not on the opposite side
17161
+ *
17162
+ * @type {boolean}
17163
+ * @default true
17164
+ * @since 9.3.0
17165
+ *
17166
+ * @apioption yAxis.scrollbar.opposite
17167
+ * @apioption xAxis.scrollbar.opposite
17168
+ *
17169
+ */
17170
+ /* eslint-enable highcharts/doclet-apioption-last */
17210
17171
  /**
17211
17172
  * Whether to show the scrollbar when it is fully zoomed out at max
17212
17173
  * range. Setting it to `false` on the Y axis makes the scrollbar stay
@@ -17608,7 +17569,7 @@
17608
17569
  */
17609
17570
  style: {
17610
17571
  /** @internal */
17611
- color: Palette.neutralColor100,
17572
+ color: "#000000" /* neutralColor100 */,
17612
17573
  /** @internal */
17613
17574
  fontSize: '11px',
17614
17575
  /** @internal */
@@ -17709,47 +17670,54 @@
17709
17670
  removeEvent = U.removeEvent;
17710
17671
  /* *
17711
17672
  *
17712
- * Functions
17673
+ * Class Namespace
17713
17674
  *
17714
17675
  * */
17715
- /*
17716
- * Register event options. If an event handler is set on the options, it should
17717
- * be subject to Chart.update, Axis.update and Series.update. This is contrary
17718
- * to general handlers that are set directly using addEvent either on the class
17719
- * or on the instance. #6538, #6943, #10861.
17720
- */
17721
- var registerEventOptions = function (component,
17722
- options) {
17676
+ var Foundation;
17677
+ (function (Foundation) {
17678
+ /* *
17679
+ *
17680
+ * Functions
17681
+ *
17682
+ * */
17683
+ /* eslint-disable valid-jsdoc */
17684
+ /**
17685
+ * Register event options. If an event handler is set on the options, it
17686
+ * should be subject to Chart.update, Axis.update and Series.update. This is
17687
+ * contrary to general handlers that are set directly using addEvent either
17688
+ * on the class or on the instance. #6538, #6943, #10861.
17689
+ * @private
17690
+ */
17691
+ function registerEventOptions(component, options) {
17723
17692
  // A lookup over those events that are added by _options_ (not
17724
17693
  // programmatically). These are updated through .update()
17725
17694
  component.eventOptions = component.eventOptions || {};
17726
- // Register event listeners
17727
- objectEach(options.events, function (event, eventType) {
17728
- // If event does not exist, or is changed by the .update()
17729
- // function
17730
- if (component.eventOptions[eventType] !== event) {
17731
- // Remove existing if set by option
17732
- if (component.eventOptions[eventType]) {
17733
- removeEvent(component, eventType, component.eventOptions[eventType]);
17734
- delete component.eventOptions[eventType];
17735
- }
17736
- if (isFunction(event)) {
17737
- component.eventOptions[eventType] = event;
17738
- addEvent(component, eventType, event);
17695
+ // Register event listeners
17696
+ objectEach(options.events, function (event, eventType) {
17697
+ // If event does not exist, or is changed by the .update()
17698
+ // function
17699
+ if (component.eventOptions[eventType] !== event) {
17700
+ // Remove existing if set by option
17701
+ if (component.eventOptions[eventType]) {
17702
+ removeEvent(component, eventType, component.eventOptions[eventType]);
17703
+ delete component.eventOptions[eventType];
17704
+ }
17705
+ if (isFunction(event)) {
17706
+ component.eventOptions[eventType] = event;
17707
+ addEvent(component, eventType, event);
17708
+ }
17739
17709
  }
17740
- }
17741
- });
17742
- };
17710
+ });
17711
+ }
17712
+ Foundation.registerEventOptions = registerEventOptions;
17713
+ })(Foundation || (Foundation = {}));
17743
17714
  /* *
17744
17715
  *
17745
17716
  * Default Export
17746
17717
  *
17747
17718
  * */
17748
- var exports = {
17749
- registerEventOptions: registerEventOptions
17750
- };
17751
17719
 
17752
- return exports;
17720
+ return Foundation;
17753
17721
  });
17754
17722
  _registerModule(_modules, 'Core/Axis/Tick.js', [_modules['Core/FormatUtilities.js'], _modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (F, H, U) {
17755
17723
  /* *
@@ -18593,7 +18561,7 @@
18593
18561
 
18594
18562
  return Tick;
18595
18563
  });
18596
- _registerModule(_modules, 'Core/Axis/Axis.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Axis/AxisDefaults.js'], _modules['Core/Color/Color.js'], _modules['Core/Color/Palette.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Axis/Tick.js'], _modules['Core/Utilities.js']], function (A, AxisDefaults, Color, Palette, D, F, H, Tick, U) {
18564
+ _registerModule(_modules, 'Core/Axis/Axis.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Axis/AxisDefaults.js'], _modules['Core/Color/Color.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Axis/Tick.js'], _modules['Core/Utilities.js']], function (A, AxisDefaults, Color, D, F, H, Tick, U) {
18597
18565
  /* *
18598
18566
  *
18599
18567
  * (c) 2010-2021 Torstein Honsi
@@ -19482,7 +19450,10 @@
19482
19450
  if (axis.isXAxis &&
19483
19451
  typeof axis.minRange === 'undefined' &&
19484
19452
  !log) {
19485
- if (defined(options.min) || defined(options.max)) {
19453
+ if (defined(options.min) ||
19454
+ defined(options.max) ||
19455
+ defined(options.floor) ||
19456
+ defined(options.ceiling)) {
19486
19457
  axis.minRange = null; // don't do this again
19487
19458
  }
19488
19459
  else {
@@ -19786,8 +19757,10 @@
19786
19757
  var maxPadding = options.maxPadding,
19787
19758
  minPadding = options.minPadding,
19788
19759
  length,
19789
- linkedParentExtremes,
19790
- tickIntervalOption = options.tickInterval,
19760
+ linkedParentExtremes,
19761
+ // Only non-negative tickInterval is valid, #12961
19762
+ tickIntervalOption = isNumber(options.tickInterval) && options.tickInterval >= 0 ?
19763
+ options.tickInterval : void 0,
19791
19764
  threshold = isNumber(axis.threshold) ? axis.threshold : null,
19792
19765
  thresholdMin,
19793
19766
  thresholdMax,
@@ -19961,15 +19934,18 @@
19961
19934
  // This is in turn needed in order to find tick positions in ordinal
19962
19935
  // axes.
19963
19936
  if (isXAxis && !secondPass) {
19937
+ var hasExtemesChanged_1 = axis.min !== (axis.old && axis.old.min) ||
19938
+ axis.max !== (axis.old && axis.old.max);
19964
19939
  // First process all series assigned to that axis.
19965
19940
  axis.series.forEach(function (series) {
19966
19941
  // Allows filtering out points outside the plot area.
19967
19942
  series.forceCrop = series.forceCropping && series.forceCropping();
19968
- series.processData(axis.min !== (axis.old && axis.old.min) ||
19969
- axis.max !== (axis.old && axis.old.max));
19943
+ series.processData(hasExtemesChanged_1);
19970
19944
  });
19971
19945
  // Then apply grouping if needed.
19972
- fireEvent(this, 'postProcessData');
19946
+ // The hasExtemesChanged helps to decide if the data grouping should
19947
+ // be skipped in the further calculations #16319.
19948
+ fireEvent(this, 'postProcessData', { hasExtemesChanged: hasExtemesChanged_1 });
19973
19949
  }
19974
19950
  // set the translation factor used in translate function
19975
19951
  axis.setAxisTranslation();
@@ -20391,8 +20367,6 @@
20391
20367
  * Set extremes off ticks
20392
20368
  * @sample stock/members/axis-setextremes/
20393
20369
  * Set extremes in Highcharts Stock
20394
- * @sample maps/members/axis-setextremes/
20395
- * Set extremes in Highmaps
20396
20370
  *
20397
20371
  * @function Highcharts.Axis#setExtremes
20398
20372
  *
@@ -20544,8 +20518,6 @@
20544
20518
  *
20545
20519
  * @sample highcharts/members/axis-getextremes/
20546
20520
  * Report extremes by click on a button
20547
- * @sample maps/members/axis-getextremes/
20548
- * Get extremes in Highmaps
20549
20521
  *
20550
20522
  * @function Highcharts.Axis#getExtremes
20551
20523
  *
@@ -21045,12 +21017,15 @@
21045
21017
  var _this = this;
21046
21018
  var axis = this,
21047
21019
  chart = axis.chart,
21048
- renderer = chart.renderer,
21049
- options = axis.options,
21050
- tickPositions = axis.tickPositions,
21051
- ticks = axis.ticks,
21052
21020
  horiz = axis.horiz,
21021
+ options = axis.options,
21053
21022
  side = axis.side,
21023
+ ticks = axis.ticks,
21024
+ tickPositions = axis.tickPositions,
21025
+ coll = axis.coll,
21026
+ axisParent = axis.axisParent // Used in color axis
21027
+ ,
21028
+ renderer = chart.renderer,
21054
21029
  invertedSide = (chart.inverted && !axis.isZAxis ?
21055
21030
  [1, 0, 3, 2][side] :
21056
21031
  side),
@@ -21060,9 +21035,8 @@
21060
21035
  axisOffset = chart.axisOffset,
21061
21036
  clipOffset = chart.clipOffset,
21062
21037
  directionFactor = [-1, 1, 1, -1][side],
21063
- className = options.className,
21064
- axisParent = axis.axisParent; // Used in color axis
21065
- var showAxis,
21038
+ className = options.className;
21039
+ var showAxis,
21066
21040
  titleOffset = 0,
21067
21041
  titleOffsetOption,
21068
21042
  titleMargin = 0,
@@ -21079,7 +21053,7 @@
21079
21053
  suffix,
21080
21054
  zIndex) { return renderer.g(name)
21081
21055
  .attr({ zIndex: zIndex })
21082
- .addClass("highcharts-" + _this.coll.toLowerCase() + suffix + " " +
21056
+ .addClass("highcharts-" + coll.toLowerCase() + suffix + " " +
21083
21057
  (_this.isRadial ? "highcharts-radial-axis" + suffix + " " : '') +
21084
21058
  (className || ''))
21085
21059
  .add(axisParent); };
@@ -21157,21 +21131,23 @@
21157
21131
  }
21158
21132
  // Due to GridAxis.tickSize, tickSize should be calculated after ticks
21159
21133
  // has rendered.
21160
- var tickSize = this.tickSize('tick');
21161
- axisOffset[side] = Math.max(axisOffset[side], (axis.axisTitleMargin || 0) + titleOffset +
21162
- directionFactor * axis.offset, labelOffsetPadded, // #3027
21163
- tickPositions && tickPositions.length && tickSize ?
21164
- tickSize[0] + directionFactor * axis.offset :
21165
- 0 // #4866
21166
- );
21167
- // Decide the clipping needed to keep the graph inside
21168
- // the plot area and axis lines
21169
- var clip = options.offset ?
21170
- 0 :
21171
- // #4308, #4371:
21172
- Math.floor(axis.axisLine.strokeWidth() / 2) * 2;
21173
- clipOffset[invertedSide] =
21174
- Math.max(clipOffset[invertedSide], clip);
21134
+ if (coll !== 'colorAxis') {
21135
+ var tickSize = this.tickSize('tick');
21136
+ axisOffset[side] = Math.max(axisOffset[side], (axis.axisTitleMargin || 0) + titleOffset +
21137
+ directionFactor * axis.offset, labelOffsetPadded, // #3027
21138
+ tickPositions && tickPositions.length && tickSize ?
21139
+ tickSize[0] + directionFactor * axis.offset :
21140
+ 0 // #4866
21141
+ );
21142
+ // Decide the clipping needed to keep the graph inside
21143
+ // the plot area and axis lines
21144
+ var clip = !axis.axisLine || options.offset ?
21145
+ 0 :
21146
+ // #4308, #4371:
21147
+ Math.floor(axis.axisLine.strokeWidth() / 2) * 2;
21148
+ clipOffset[invertedSide] =
21149
+ Math.max(clipOffset[invertedSide], clip);
21150
+ }
21175
21151
  fireEvent(this, 'afterGetOffset');
21176
21152
  };
21177
21153
  /**
@@ -21705,10 +21681,10 @@
21705
21681
  stroke: options.color ||
21706
21682
  (categorized ?
21707
21683
  Color
21708
- .parse(Palette.highlightColor20)
21684
+ .parse("#ccd6eb" /* highlightColor20 */)
21709
21685
  .setOpacity(0.25)
21710
21686
  .get() :
21711
- Palette.neutralColor20),
21687
+ "#cccccc" /* neutralColor20 */),
21712
21688
  'stroke-width': pick(options.width, 1)
21713
21689
  }).css({
21714
21690
  'pointer-events': 'none'
@@ -22858,7 +22834,7 @@
22858
22834
 
22859
22835
  return PlotLineOrBandAxis;
22860
22836
  });
22861
- _registerModule(_modules, 'Core/Axis/PlotLineOrBand/PlotLineOrBand.js', [_modules['Core/Color/Palette.js'], _modules['Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js'], _modules['Core/Utilities.js']], function (Palette, PlotLineOrBandAxis, U) {
22837
+ _registerModule(_modules, 'Core/Axis/PlotLineOrBand/PlotLineOrBand.js', [_modules['Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js'], _modules['Core/Utilities.js']], function (PlotLineOrBandAxis, U) {
22862
22838
  /* *
22863
22839
  *
22864
22840
  * (c) 2010-2021 Torstein Honsi
@@ -22964,7 +22940,7 @@
22964
22940
  // Set the presentational attributes
22965
22941
  if (!axis.chart.styledMode) {
22966
22942
  if (isLine) {
22967
- attribs.stroke = color || Palette.neutralColor40;
22943
+ attribs.stroke = color || "#999999" /* neutralColor40 */;
22968
22944
  attribs['stroke-width'] = pick(options.width, 1);
22969
22945
  if (options.dashStyle) {
22970
22946
  attribs.dashstyle =
@@ -22972,7 +22948,7 @@
22972
22948
  }
22973
22949
  }
22974
22950
  else if (isBand) { // plot band
22975
- attribs.fill = color || Palette.highlightColor10;
22951
+ attribs.fill = color || "#e6ebf5" /* highlightColor10 */;
22976
22952
  if (options.borderWidth) {
22977
22953
  attribs.stroke = options.borderColor;
22978
22954
  attribs['stroke-width'] = options.borderWidth;
@@ -23237,7 +23213,7 @@
23237
23213
  * Plot band on Y axis
23238
23214
  *
23239
23215
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
23240
- * @default ${palette.highlightColor10}
23216
+ * @default #e6ebf5
23241
23217
  * @apioption xAxis.plotBands.color
23242
23218
  */
23243
23219
  /**
@@ -23485,7 +23461,7 @@
23485
23461
  * Plot line on Y axis
23486
23462
  *
23487
23463
  * @type {Highcharts.ColorString}
23488
- * @default ${palette.neutralColor40}
23464
+ * @default #999999
23489
23465
  * @apioption xAxis.plotLines.color
23490
23466
  */
23491
23467
  /**
@@ -23762,7 +23738,7 @@
23762
23738
 
23763
23739
  return PlotLineOrBand;
23764
23740
  });
23765
- _registerModule(_modules, 'Core/Tooltip.js', [_modules['Core/FormatUtilities.js'], _modules['Core/Globals.js'], _modules['Core/Color/Palette.js'], _modules['Core/Renderer/RendererUtilities.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Utilities.js']], function (F, H, palette, R, RendererRegistry, U) {
23741
+ _registerModule(_modules, 'Core/Tooltip.js', [_modules['Core/FormatUtilities.js'], _modules['Core/Globals.js'], _modules['Core/Renderer/RendererUtilities.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Utilities.js']], function (F, H, R, RendererRegistry, U) {
23766
23742
  /* *
23767
23743
  *
23768
23744
  * (c) 2010-2021 Torstein Honsi
@@ -23814,7 +23790,13 @@
23814
23790
  *
23815
23791
  * */
23816
23792
  function Tooltip(chart, options) {
23817
- this.container = void 0;
23793
+ /* *
23794
+ *
23795
+ * Properties
23796
+ *
23797
+ * */
23798
+ this.allowShared = true;
23799
+ this.container = void 0;
23818
23800
  this.crosshairs = [];
23819
23801
  this.distance = 0;
23820
23802
  this.isHidden = true;
@@ -23953,7 +23935,7 @@
23953
23935
  this.label = this.label.destroy();
23954
23936
  }
23955
23937
  if (this.split && this.tt) {
23956
- this.cleanSplit(this.chart, true);
23938
+ this.cleanSplit(true);
23957
23939
  this.tt = this.tt.destroy();
23958
23940
  }
23959
23941
  if (this.renderer) {
@@ -24047,12 +24029,14 @@
24047
24029
  * Creates the Tooltip label element if it does not exist, then returns it.
24048
24030
  *
24049
24031
  * @function Highcharts.Tooltip#getLabel
24032
+ *
24050
24033
  * @return {Highcharts.SVGElement}
24051
24034
  */
24052
24035
  Tooltip.prototype.getLabel = function () {
24053
24036
  var tooltip = this,
24054
24037
  styledMode = this.chart.styledMode,
24055
24038
  options = this.options,
24039
+ doSplit = this.split && this.allowShared,
24056
24040
  className = ('tooltip' + (defined(options.className) ?
24057
24041
  ' ' + options.className :
24058
24042
  '')),
@@ -24073,6 +24057,14 @@
24073
24057
  };
24074
24058
  var container,
24075
24059
  renderer = this.chart.renderer;
24060
+ // If changing from a split tooltip to a non-split tooltip, we must
24061
+ // destroy it in order to get the SVG right. #13868.
24062
+ if (tooltip.label) {
24063
+ var wasSplit = !tooltip.label.hasClass('highcharts-label');
24064
+ if ((doSplit && !wasSplit) || (!doSplit && wasSplit)) {
24065
+ tooltip.destroy();
24066
+ }
24067
+ }
24076
24068
  if (!this.label) {
24077
24069
  if (this.outside) {
24078
24070
  var chartStyle = this.chart.options.chart.style,
@@ -24107,7 +24099,7 @@
24107
24099
  this.renderer = renderer = new Renderer(container, 0, 0, chartStyle, void 0, void 0, renderer.styledMode);
24108
24100
  }
24109
24101
  // Create the label
24110
- if (this.split) {
24102
+ if (doSplit) {
24111
24103
  this.label = renderer.g(className);
24112
24104
  }
24113
24105
  else {
@@ -24226,8 +24218,17 @@
24226
24218
  ]);
24227
24219
  };
24228
24220
  var first = buildDimensionArray('y'), second = buildDimensionArray('x'), swapped;
24221
+ // Handle negative points or reversed axis (#13780)
24222
+ var flipped = !!point.negative;
24223
+ if (!chart.polar &&
24224
+ chart.hoverSeries &&
24225
+ chart.hoverSeries.yAxis &&
24226
+ chart.hoverSeries.yAxis.reversed) {
24227
+ flipped = !flipped;
24228
+ }
24229
24229
  // The far side is right or bottom
24230
- var preferFarSide = !this.followPointer && pick(point.ttBelow, !chart.inverted === !!point.negative), // #4984
24230
+ var preferFarSide = !this.followPointer &&
24231
+ pick(point.ttBelow, !chart.inverted === flipped), // #4984
24231
24232
  /*
24232
24233
  * Handle the preferred dimension. When the preferred dimension is
24233
24234
  * tooltip on top or bottom of the point,
@@ -24529,6 +24530,11 @@
24529
24530
  return;
24530
24531
  }
24531
24532
  U.clearTimeout(this.hideTimer);
24533
+ // A switch saying if this specific tooltip configuration allows shared
24534
+ // or split modes
24535
+ tooltip.allowShared = !(!isArray(pointOrPoints) &&
24536
+ pointOrPoints.series &&
24537
+ pointOrPoints.series.noSharedTooltip);
24532
24538
  // get the reference point coordinates (pie charts use tooltipPos)
24533
24539
  tooltip.followPointer = !tooltip.split && point.series.tooltipOptions.followPointer;
24534
24540
  var anchor = tooltip.getAnchor(pointOrPoints,
@@ -24536,10 +24542,7 @@
24536
24542
  x = anchor[0],
24537
24543
  y = anchor[1];
24538
24544
  // shared tooltip, array is sent over
24539
- if (shared &&
24540
- !(!isArray(pointOrPoints) &&
24541
- pointOrPoints.series &&
24542
- pointOrPoints.series.noSharedTooltip)) {
24545
+ if (shared && tooltip.allowShared) {
24543
24546
  chart.pointer.applyInactiveState(points);
24544
24547
  // Now set hover state for the choosen ones:
24545
24548
  points.forEach(function (item) {
@@ -24568,20 +24571,22 @@
24568
24571
  }
24569
24572
  else {
24570
24573
  // update text
24571
- if (tooltip.split) {
24574
+ if (tooltip.split && tooltip.allowShared) { // #13868
24572
24575
  this.renderSplit(text, points);
24573
24576
  }
24574
24577
  else {
24575
- var checkX = x;
24576
- var checkY = y;
24578
+ var checkX_1 = x;
24579
+ var checkY_1 = y;
24577
24580
  if (mouseEvent && chart.pointer.isDirectTouch) {
24578
- checkX = mouseEvent.chartX - chart.plotLeft;
24579
- checkY = mouseEvent.chartY - chart.plotTop;
24581
+ checkX_1 = mouseEvent.chartX - chart.plotLeft;
24582
+ checkY_1 = mouseEvent.chartY - chart.plotTop;
24580
24583
  }
24581
24584
  // #11493, #13095
24582
24585
  if (chart.polar ||
24583
24586
  currentSeries.options.clip === false ||
24584
- currentSeries.shouldShowTooltip(checkX, checkY)) {
24587
+ points.some(function (p) {
24588
+ return p.series.shouldShowTooltip(checkX_1, checkY_1);
24589
+ })) {
24585
24590
  var label = tooltip.getLabel();
24586
24591
  // Prevent the tooltip from flowing over the chart box
24587
24592
  // (#6659)
@@ -24604,7 +24609,7 @@
24604
24609
  stroke: (options.borderColor ||
24605
24610
  point.color ||
24606
24611
  currentSeries.color ||
24607
- palette.neutralColor60)
24612
+ "#666666" /* neutralColor60 */)
24608
24613
  });
24609
24614
  }
24610
24615
  tooltip.updatePosition({
@@ -24803,7 +24808,7 @@
24803
24808
  stroke: (options.borderColor ||
24804
24809
  point.color ||
24805
24810
  series.color ||
24806
- palette.neutralColor80)
24811
+ "#333333" /* neutralColor80 */)
24807
24812
  });
24808
24813
  }
24809
24814
  return tt;
@@ -25808,13 +25813,14 @@
25808
25813
  * transformed to `{ y: 10 }`, and an array config like `[1, 10]` in a
25809
25814
  * scatter series will be transformed to `{ x: 1, y: 10 }`.
25810
25815
  *
25816
+ * @deprecated
25811
25817
  * @function Highcharts.Point#optionsToObject
25812
25818
  *
25813
25819
  * @param {Highcharts.PointOptionsType} options
25814
- * The input option.
25820
+ * Series data options.
25815
25821
  *
25816
25822
  * @return {Highcharts.Dictionary<*>}
25817
- * Transformed options.
25823
+ * Transformed point options.
25818
25824
  */
25819
25825
  Point.prototype.optionsToObject = function (options) {
25820
25826
  var series = this.series,
@@ -26365,7 +26371,8 @@
26365
26371
  });
26366
26372
  }
26367
26373
  }
26368
- if (!chart.styledMode && stateMarkerGraphic) {
26374
+ if (!chart.styledMode && stateMarkerGraphic &&
26375
+ point.state !== 'inactive') {
26369
26376
  stateMarkerGraphic.attr(series.pointAttribs(point, state));
26370
26377
  }
26371
26378
  }
@@ -26643,7 +26650,7 @@
26643
26650
 
26644
26651
  return Point;
26645
26652
  });
26646
- _registerModule(_modules, 'Core/Pointer.js', [_modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Color/Palette.js'], _modules['Core/Tooltip.js'], _modules['Core/Utilities.js']], function (Color, H, Palette, Tooltip, U) {
26653
+ _registerModule(_modules, 'Core/Pointer.js', [_modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Tooltip.js'], _modules['Core/Utilities.js']], function (Color, H, Tooltip, U) {
26647
26654
  /* *
26648
26655
  *
26649
26656
  * (c) 2010-2021 Torstein Honsi
@@ -26832,7 +26839,7 @@
26832
26839
  visiblePlotOnly: true
26833
26840
  });
26834
26841
  // make a selection
26835
- if (chart.hasCartesianSeries &&
26842
+ if ((chart.hasCartesianSeries || chart.mapView) &&
26836
26843
  (this.zoomX || this.zoomY) &&
26837
26844
  clickedInside &&
26838
26845
  !panKey) {
@@ -26847,7 +26854,7 @@
26847
26854
  if (!chart.styledMode) {
26848
26855
  selectionMarker.attr({
26849
26856
  fill: (chartOptions.selectionMarkerFill ||
26850
- color(Palette.highlightColor80)
26857
+ color("#335cad" /* highlightColor80 */)
26851
26858
  .setOpacity(0.25).get())
26852
26859
  });
26853
26860
  }
@@ -26900,25 +26907,22 @@
26900
26907
  chart = this.chart,
26901
26908
  hasPinched = this.hasPinched;
26902
26909
  if (this.selectionMarker) {
26903
- var selectionData_1 = {
26904
- originalEvent: e,
26905
- xAxis: [],
26906
- yAxis: []
26907
- },
26908
- selectionBox = this.selectionMarker,
26909
- selectionLeft_1 = selectionBox.attr ?
26910
- selectionBox.attr('x') :
26911
- selectionBox.x,
26912
- selectionTop_1 = selectionBox.attr ?
26913
- selectionBox.attr('y') :
26914
- selectionBox.y,
26915
- selectionWidth_1 = selectionBox.attr ?
26910
+ var selectionBox = this.selectionMarker, x_1 = selectionBox.attr ? selectionBox.attr('x') : selectionBox.x, y_1 = selectionBox.attr ? selectionBox.attr('y') : selectionBox.y, width_1 = selectionBox.attr ?
26916
26911
  selectionBox.attr('width') :
26917
- selectionBox.width,
26918
- selectionHeight_1 = selectionBox.attr ?
26912
+ selectionBox.width, height_1 = selectionBox.attr ?
26919
26913
  selectionBox.attr('height') :
26920
- selectionBox.height;
26921
- var runZoom_1;
26914
+ selectionBox.height, selectionData_1 = {
26915
+ originalEvent: e,
26916
+ xAxis: [],
26917
+ yAxis: [],
26918
+ x: x_1,
26919
+ y: y_1,
26920
+ width: width_1,
26921
+ height: height_1
26922
+ },
26923
+ // Start by false runZoom, unless when we have a mapView, in
26924
+ // which case the zoom will be handled in the selection event.
26925
+ runZoom_1 = Boolean(chart.mapView);
26922
26926
  // a selection has been made
26923
26927
  if (this.hasDragged || hasPinched) {
26924
26928
  // record each axis' min and max
@@ -26930,17 +26934,15 @@
26930
26934
  xAxis: 'zoomX',
26931
26935
  yAxis: 'zoomY'
26932
26936
  }[axis.coll]]) &&
26933
- isNumber(selectionLeft_1) &&
26934
- isNumber(selectionTop_1)) { // #859, #3569
26937
+ isNumber(x_1) &&
26938
+ isNumber(y_1)) { // #859, #3569
26935
26939
  var horiz = axis.horiz,
26936
26940
  minPixelPadding = e.type === 'touchend' ?
26937
26941
  axis.minPixelPadding :
26938
26942
  0, // #1207, #3075
26939
- selectionMin = axis.toValue((horiz ? selectionLeft_1 : selectionTop_1) +
26940
- minPixelPadding),
26941
- selectionMax = axis.toValue((horiz ?
26942
- selectionLeft_1 + selectionWidth_1 :
26943
- selectionTop_1 + selectionHeight_1) - minPixelPadding);
26943
+ selectionMin = axis.toValue((horiz ? x_1 : y_1) + minPixelPadding),
26944
+ selectionMax = axis.toValue((horiz ? x_1 + width_1 : y_1 + height_1) -
26945
+ minPixelPadding);
26944
26946
  selectionData_1[axis.coll].push({
26945
26947
  axis: axis,
26946
26948
  // Min/max for reversed axes
@@ -27656,20 +27658,22 @@
27656
27658
  }
27657
27659
  else if (pinchDown.length) { // can be 0 when releasing, if touchend
27658
27660
  // fires first
27659
- // Set the marker
27660
- if (!selectionMarker) {
27661
- // @todo It's a mock object, so maybe we need a separate
27662
- // interface
27663
- self.selectionMarker = selectionMarker = extend({
27664
- destroy: noop,
27665
- touch: true
27666
- }, chart.plotBox);
27667
- }
27668
- self.pinchTranslate(pinchDown, touches, transform, selectionMarker, clip, lastValidTouch);
27669
- self.hasPinched = hasZoom;
27670
- // Scale and translate the groups to provide visual feedback during
27671
- // pinching
27672
- self.scaleGroups(transform, clip);
27661
+ fireEvent(chart, 'touchpan', { originalEvent: e }, function () {
27662
+ // Set the marker
27663
+ if (!selectionMarker) {
27664
+ // @todo It's a mock object, so maybe we need a separate
27665
+ // interface
27666
+ self.selectionMarker = selectionMarker = extend({
27667
+ destroy: noop,
27668
+ touch: true
27669
+ }, chart.plotBox);
27670
+ }
27671
+ self.pinchTranslate(pinchDown, touches, transform, selectionMarker, clip, lastValidTouch);
27672
+ self.hasPinched = hasZoom;
27673
+ // Scale and translate the groups to provide visual feedback
27674
+ // during pinching
27675
+ self.scaleGroups(transform, clip);
27676
+ });
27673
27677
  if (self.res) {
27674
27678
  self.res = false;
27675
27679
  this.reset(false, 0);
@@ -27996,7 +28000,9 @@
27996
28000
  // Scale each series
27997
28001
  chart.series.forEach(function (series) {
27998
28002
  var seriesAttribs = attribs || series.getPlotBox(); // #1701
27999
- if (series.xAxis && series.xAxis.zoomEnabled && series.group) {
28003
+ if (series.group &&
28004
+ ((series.xAxis && series.xAxis.zoomEnabled) ||
28005
+ chart.mapView)) {
28000
28006
  series.group.attr(seriesAttribs);
28001
28007
  if (series.markerGroup) {
28002
28008
  series.markerGroup.attr(seriesAttribs);
@@ -29450,10 +29456,14 @@
29450
29456
  if (lastY) {
29451
29457
  allItems[i - 1].pageIx = len - 1;
29452
29458
  }
29453
- if (i === allItems.length - 1 &&
29459
+ // add the last page if needed (#2617, #13683)
29460
+ if (
29461
+ // check the last item
29462
+ i === allItems.length - 1 &&
29463
+ // if adding next page is needed
29454
29464
  y + h - pages[len - 1] > clipHeight &&
29455
- y !== lastY // #2617
29456
- ) {
29465
+ // and will fully fit inside a new page
29466
+ h <= clipHeight) {
29457
29467
  pages.push(y);
29458
29468
  item.pageIx = len;
29459
29469
  }
@@ -29945,8 +29955,7 @@
29945
29955
  SeriesRegistry.seriesTypes[type].prototype.type = type;
29946
29956
  // Create the point class if needed
29947
29957
  if (pointProto) {
29948
- SeriesRegistry.seriesTypes[type].prototype.pointClass =
29949
- extendClass(Point, pointProto);
29958
+ SeriesRegistry.seriesTypes[type].prototype.pointClass = extendClass(Point, pointProto);
29950
29959
  }
29951
29960
  return SeriesRegistry.seriesTypes[type];
29952
29961
  }
@@ -29961,7 +29970,7 @@
29961
29970
 
29962
29971
  return SeriesRegistry;
29963
29972
  });
29964
- _registerModule(_modules, 'Core/Chart/Chart.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Axis/Axis.js'], _modules['Core/FormatUtilities.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Legend/Legend.js'], _modules['Core/MSPointer.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Color/Palette.js'], _modules['Core/Pointer.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Renderer/SVG/SVGRenderer.js'], _modules['Core/Time.js'], _modules['Core/Utilities.js'], _modules['Core/Renderer/HTML/AST.js']], function (A, Axis, FormatUtilities, Foundation, H, Legend, MSPointer, D, palette, Pointer, RendererRegistry, SeriesRegistry, SVGRenderer, Time, U, AST) {
29973
+ _registerModule(_modules, 'Core/Chart/Chart.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Axis/Axis.js'], _modules['Core/FormatUtilities.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Legend/Legend.js'], _modules['Core/MSPointer.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Pointer.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Renderer/SVG/SVGRenderer.js'], _modules['Core/Time.js'], _modules['Core/Utilities.js'], _modules['Core/Renderer/HTML/AST.js']], function (A, Axis, FormatUtilities, Foundation, H, Legend, MSPointer, D, Pointer, RendererRegistry, SeriesRegistry, SVGRenderer, Time, U, AST) {
29965
29974
  /* *
29966
29975
  *
29967
29976
  * (c) 2010-2021 Torstein Honsi
@@ -30762,10 +30771,10 @@
30762
30771
  var chart = this;
30763
30772
  // Default style
30764
30773
  var style = name === 'title' ? {
30765
- color: palette.neutralColor80,
30774
+ color: "#333333" /* neutralColor80 */,
30766
30775
  fontSize: this.options.isStock ? '16px' : '18px' // #2944
30767
30776
  } : {
30768
- color: palette.neutralColor60
30777
+ color: "#666666" /* neutralColor60 */
30769
30778
  };
30770
30779
  // Merge default options with explicit options
30771
30780
  var options = this.options[name] = merge(
@@ -33172,7 +33181,7 @@
33172
33181
 
33173
33182
  return LegendSymbol;
33174
33183
  });
33175
- _registerModule(_modules, 'Core/Series/SeriesDefaults.js', [_modules['Core/Color/Palette.js']], function (Palette) {
33184
+ _registerModule(_modules, 'Core/Series/SeriesDefaults.js', [], function () {
33176
33185
  /* *
33177
33186
  *
33178
33187
  * (c) 2010-2021 Torstein Honsi
@@ -34155,7 +34164,7 @@
34155
34164
  *
34156
34165
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
34157
34166
  */
34158
- lineColor: Palette.backgroundColor,
34167
+ lineColor: "#ffffff" /* backgroundColor */,
34159
34168
  /**
34160
34169
  * The width of the point marker's outline.
34161
34170
  *
@@ -34355,7 +34364,7 @@
34355
34364
  *
34356
34365
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
34357
34366
  */
34358
- fillColor: Palette.neutralColor20,
34367
+ fillColor: "#cccccc" /* neutralColor20 */,
34359
34368
  /**
34360
34369
  * The color of the point marker's outline. When
34361
34370
  * `undefined`, the series' or point's color is used.
@@ -34365,7 +34374,7 @@
34365
34374
  *
34366
34375
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
34367
34376
  */
34368
- lineColor: Palette.neutralColor100,
34377
+ lineColor: "#000000" /* neutralColor100 */,
34369
34378
  /**
34370
34379
  * The width of the point marker's outline.
34371
34380
  *
@@ -35466,7 +35475,7 @@
35466
35475
 
35467
35476
  return seriesDefaults;
35468
35477
  });
35469
- _registerModule(_modules, 'Core/Series/Series.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Core/Color/Palette.js'], _modules['Core/Series/Point.js'], _modules['Core/Series/SeriesDefaults.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Renderer/SVG/SVGElement.js'], _modules['Core/Utilities.js']], function (A, D, F, H, LegendSymbol, Palette, Point, SeriesDefaults, SeriesRegistry, SVGElement, U) {
35478
+ _registerModule(_modules, 'Core/Series/Series.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Core/Series/Point.js'], _modules['Core/Series/SeriesDefaults.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Renderer/SVG/SVGElement.js'], _modules['Core/Utilities.js']], function (A, D, F, H, LegendSymbol, Point, SeriesDefaults, SeriesRegistry, SVGElement, U) {
35470
35479
  /* *
35471
35480
  *
35472
35481
  * (c) 2010-2021 Torstein Honsi
@@ -36083,7 +36092,7 @@
36083
36092
  this.getCyclic('color');
36084
36093
  }
36085
36094
  else if (this.options.colorByPoint) {
36086
- this.color = Palette.neutralColor20;
36095
+ this.color = "#cccccc" /* neutralColor20 */;
36087
36096
  }
36088
36097
  else {
36089
36098
  this.getCyclic('color', this.options.color ||
@@ -36414,11 +36423,19 @@
36414
36423
  }
36415
36424
  else if (isArray(firstPoint)) {
36416
36425
  if (valueCount) { // [x, low, high] or [x, o, h, l, c]
36417
- for (i = 0; i < dataLength; i++) {
36418
- pt = data[i];
36419
- xData[i] = pt[0];
36420
- yData[i] =
36421
- pt.slice(1, valueCount + 1);
36426
+ if (firstPoint.length === valueCount) {
36427
+ for (i = 0; i < dataLength; i++) {
36428
+ xData[i] = this.autoIncrement();
36429
+ yData[i] = data[i];
36430
+ }
36431
+ }
36432
+ else {
36433
+ for (i = 0; i < dataLength; i++) {
36434
+ pt = data[i];
36435
+ xData[i] = pt[0];
36436
+ yData[i] =
36437
+ pt.slice(1, valueCount + 1);
36438
+ }
36422
36439
  }
36423
36440
  }
36424
36441
  else { // [x, y]
@@ -36428,10 +36445,21 @@
36428
36445
  indexOfX = indexOfX >= 0 ? indexOfX : 0;
36429
36446
  indexOfY = indexOfY >= 0 ? indexOfY : 1;
36430
36447
  }
36431
- for (i = 0; i < dataLength; i++) {
36432
- pt = data[i];
36433
- xData[i] = pt[indexOfX];
36434
- yData[i] = pt[indexOfY];
36448
+ if (firstPoint.length === 1) {
36449
+ indexOfY = 0;
36450
+ }
36451
+ if (indexOfX === indexOfY) {
36452
+ for (i = 0; i < dataLength; i++) {
36453
+ xData[i] = this.autoIncrement();
36454
+ yData[i] = data[i][indexOfY];
36455
+ }
36456
+ }
36457
+ else {
36458
+ for (i = 0; i < dataLength; i++) {
36459
+ pt = data[i];
36460
+ xData[i] = pt[indexOfX];
36461
+ yData[i] = pt[indexOfY];
36462
+ }
36435
36463
  }
36436
36464
  }
36437
36465
  }
@@ -36675,6 +36703,7 @@
36675
36703
  series.processedXData = processedData.xData;
36676
36704
  series.processedYData = processedData.yData;
36677
36705
  series.closestPointRange = series.basePointRange = processedData.closestPointRange;
36706
+ fireEvent(series, 'afterProcessData');
36678
36707
  };
36679
36708
  /**
36680
36709
  * Iterate over xData and crop values between min and max. Returns
@@ -36950,6 +36979,7 @@
36950
36979
  }
36951
36980
  }
36952
36981
  var dataExtremes = {
36982
+ activeYData: activeYData,
36953
36983
  dataMin: arrayMin(activeYData),
36954
36984
  dataMax: arrayMax(activeYData)
36955
36985
  };
@@ -37031,7 +37061,6 @@
37031
37061
  yAxis = series.yAxis,
37032
37062
  points = series.points,
37033
37063
  dataLength = points.length,
37034
- hasModifyValue = !!series.modifyValue,
37035
37064
  pointPlacement = series.pointPlacementToXValue(), // #7860
37036
37065
  dynamicallyPlaced = Boolean(pointPlacement),
37037
37066
  threshold = options.threshold,
@@ -37116,9 +37145,9 @@
37116
37145
  point.yBottom = defined(yBottom) ?
37117
37146
  limitedRange(yAxis.translate(yBottom, 0, 1, 0, 1)) :
37118
37147
  null;
37119
- // general hook, used for Highcharts Stock compare mode
37120
- if (hasModifyValue) {
37121
- yValue = series.modifyValue(yValue, point);
37148
+ // General hook, used for Highcharts Stock compare and cumulative
37149
+ if (series.dataModify) {
37150
+ yValue = series.dataModify.modifyValue(yValue, i);
37122
37151
  }
37123
37152
  // Set the the plotY value, reset it for redraws
37124
37153
  // #3201
@@ -37156,7 +37185,7 @@
37156
37185
  lastPlotX = plotX;
37157
37186
  }
37158
37187
  // Find point zone
37159
- point.zone = (this.zones.length && point.getZone());
37188
+ point.zone = this.zones.length ? point.getZone() : void 0;
37160
37189
  // Animate new points with data sorting
37161
37190
  if (!point.graphic && series.group && enabledDataSorting) {
37162
37191
  point.isNew = true;
@@ -37201,51 +37230,24 @@
37201
37230
  * @private
37202
37231
  * @function Highcharts.Series#getClip
37203
37232
  *
37204
- * @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
37205
- * Initialize the animation.
37206
- *
37207
- * @param {boolean} [finalBox]
37208
- * Final size for the clip - end state for the animation.
37209
- *
37210
37233
  * @return {Highcharts.Dictionary<number>}
37211
37234
  */
37212
- Series.prototype.getClipBox = function (animation, finalBox) {
37213
- var series = this,
37214
- options = series.options,
37215
- chart = series.chart,
37216
- inverted = chart.inverted,
37217
- xAxis = series.xAxis,
37218
- yAxis = xAxis && series.yAxis,
37219
- scrollablePlotAreaOptions = chart.options.chart.scrollablePlotArea || {};
37220
- var clipBox;
37221
- if (animation && options.clip === false && yAxis) {
37222
- // support for not clipped series animation (#10450)
37223
- clipBox = inverted ? {
37224
- y: -chart.chartWidth + yAxis.len + yAxis.pos,
37225
- height: chart.chartWidth,
37226
- width: chart.chartHeight,
37227
- x: -chart.chartHeight + xAxis.len + xAxis.pos
37228
- } : {
37229
- y: -yAxis.pos,
37230
- height: chart.chartHeight,
37231
- width: chart.chartWidth,
37232
- x: -xAxis.pos
37233
- };
37234
- // x and width will be changed later when setting for animation
37235
- // initial state in Series.setClip
37235
+ Series.prototype.getClipBox = function () {
37236
+ var _a = this,
37237
+ chart = _a.chart,
37238
+ xAxis = _a.xAxis,
37239
+ yAxis = _a.yAxis;
37240
+ // If no axes on the series, use global clipBox
37241
+ var seriesBox = merge(chart.clipBox);
37242
+ // Otherwise, use clipBox.width which is corrected for plotBorderWidth
37243
+ // and clipOffset
37244
+ if (xAxis && xAxis.len !== chart.plotSizeX) {
37245
+ seriesBox.width = xAxis.len;
37236
37246
  }
37237
- else {
37238
- clipBox = series.clipBox || chart.clipBox;
37239
- if (finalBox) {
37240
- clipBox.width = chart.plotSizeX;
37241
- clipBox.x = (chart.scrollablePixelsX || 0) *
37242
- (scrollablePlotAreaOptions.scrollPositionX || 0);
37243
- }
37247
+ if (yAxis && yAxis.len !== chart.plotSizeY) {
37248
+ seriesBox.height = yAxis.len;
37244
37249
  }
37245
- return !finalBox ? clipBox : {
37246
- width: clipBox.width,
37247
- x: clipBox.x
37248
- };
37250
+ return seriesBox;
37249
37251
  };
37250
37252
  /**
37251
37253
  * Get the shared clip key, creating it if it doesn't exist.
@@ -37253,99 +37255,52 @@
37253
37255
  * @private
37254
37256
  * @function Highcharts.Series#getSharedClipKey
37255
37257
  */
37256
- Series.prototype.getSharedClipKey = function (animation) {
37257
- if (this.sharedClipKey) {
37258
- return this.sharedClipKey;
37259
- }
37260
- var sharedClipKey = [
37261
- animation && animation.duration,
37262
- animation && animation.easing,
37263
- animation && animation.defer,
37264
- this.getClipBox(animation).height,
37265
- this.options.xAxis,
37266
- this.options.yAxis
37267
- ].join(',');
37268
- if (this.options.clip !== false || animation) {
37269
- this.sharedClipKey = sharedClipKey;
37270
- }
37271
- return sharedClipKey;
37258
+ Series.prototype.getSharedClipKey = function () {
37259
+ this.sharedClipKey = (this.options.xAxis || 0) + ',' +
37260
+ (this.options.yAxis || 0);
37261
+ return this.sharedClipKey;
37272
37262
  };
37273
37263
  /**
37274
- * Set the clipping for the series. For animated series it is called
37275
- * twice, first to initiate animating the clip then the second time
37276
- * without the animation to set the final clip.
37264
+ * Set the clipping for the series. For animated series the clip is later
37265
+ * modified.
37277
37266
  *
37278
37267
  * @private
37279
37268
  * @function Highcharts.Series#setClip
37280
37269
  */
37281
- Series.prototype.setClip = function (animation) {
37282
- var chart = this.chart,
37283
- options = this.options,
37270
+ Series.prototype.setClip = function () {
37271
+ var _a = this,
37272
+ chart = _a.chart,
37273
+ group = _a.group,
37274
+ markerGroup = _a.markerGroup,
37275
+ sharedClips = chart.sharedClips,
37284
37276
  renderer = chart.renderer,
37285
- inverted = chart.inverted,
37286
- seriesClipBox = this.clipBox,
37287
- clipBox = this.getClipBox(animation),
37288
- sharedClipKey = this.getSharedClipKey(animation); // #4526
37289
- var clipRect = chart.sharedClips[sharedClipKey],
37290
- markerClipRect = chart.sharedClips[sharedClipKey + 'm'];
37291
- if (animation) {
37292
- clipBox.width = 0;
37293
- if (inverted) {
37294
- clipBox.x = chart.plotHeight +
37295
- (options.clip !== false ? 0 : chart.plotTop);
37296
- }
37297
- }
37298
- // If a clipping rectangle with the same properties is currently
37299
- // present in the chart, use that.
37277
+ clipBox = this.getClipBox(),
37278
+ sharedClipKey = this.getSharedClipKey(); // #4526
37279
+ var clipRect = sharedClips[sharedClipKey];
37280
+ // If a clipping rectangle for the same set of axes does not exist,
37281
+ // create it
37300
37282
  if (!clipRect) {
37301
- // When animation is set, prepare the initial positions
37302
- if (animation) {
37303
- chart.sharedClips[sharedClipKey + 'm'] = markerClipRect =
37304
- renderer.clipRect(
37305
- // include the width of the first marker
37306
- inverted ? (chart.plotSizeX || 0) + 99 : -99, inverted ? -chart.plotLeft : -chart.plotTop, 99, inverted ? chart.chartWidth : chart.chartHeight);
37307
- }
37308
- chart.sharedClips[sharedClipKey] = clipRect = renderer.clipRect(clipBox);
37309
- // Create hashmap for series indexes
37310
- clipRect.count = { length: 0 };
37311
- // When the series is rendered again before starting animating, in
37312
- // compliance to a responsive rule
37283
+ sharedClips[sharedClipKey] = clipRect = renderer.clipRect(clipBox);
37284
+ // When setting chart size, or when the series is rendered again before
37285
+ // starting animating, in compliance to a responsive rule
37313
37286
  }
37314
- else if (!chart.hasLoaded) {
37315
- clipRect.attr(clipBox);
37316
- }
37317
- if (animation) {
37318
- if (!clipRect.count[this.index]) {
37319
- clipRect.count[this.index] = true;
37320
- clipRect.count.length += 1;
37321
- }
37287
+ else {
37288
+ clipRect.animate(clipBox);
37322
37289
  }
37323
- if (options.clip !== false || animation) {
37324
- this.group.clip(animation || seriesClipBox ? clipRect : chart.clipRect);
37325
- this.markerGroup.clip(markerClipRect);
37290
+ if (group) {
37291
+ // When clip is false, reset to no clip after animation
37292
+ group.clip(this.options.clip === false ? void 0 : clipRect);
37326
37293
  }
37327
- // Remove the shared clipping rectangle when all series are shown
37328
- if (!animation) {
37329
- if (clipRect.count[this.index]) {
37330
- delete clipRect.count[this.index];
37331
- clipRect.count.length -= 1;
37332
- }
37333
- if (clipRect.count.length === 0) {
37334
- if (!seriesClipBox) {
37335
- chart.sharedClips[sharedClipKey] = clipRect.destroy();
37336
- }
37337
- if (markerClipRect) {
37338
- chart.sharedClips[sharedClipKey + 'm'] = markerClipRect.destroy();
37339
- }
37340
- }
37294
+ // Unclip temporary animation clip
37295
+ if (markerGroup) {
37296
+ markerGroup.clip();
37341
37297
  }
37342
37298
  };
37343
37299
  /**
37344
37300
  * Animate in the series. Called internally twice. First with the `init`
37345
37301
  * parameter set to true, which sets up the initial state of the
37346
37302
  * animation. Then when ready, it is called with the `init` parameter
37347
- * undefined, in order to perform the actual animation. After the
37348
- * second run, the function is removed.
37303
+ * undefined, in order to perform the actual animation.
37349
37304
  *
37350
37305
  * @function Highcharts.Series#animate
37351
37306
  *
@@ -37353,29 +37308,70 @@
37353
37308
  * Initialize the animation.
37354
37309
  */
37355
37310
  Series.prototype.animate = function (init) {
37356
- var series = this,
37357
- chart = series.chart,
37358
- animation = animObject(series.options.animation),
37359
- sharedClipKey = this.sharedClipKey;
37311
+ var _a = this, chart = _a.chart, group = _a.group, markerGroup = _a.markerGroup, inverted = chart.inverted, animation = animObject(this.options.animation),
37312
+ // The key for temporary animation clips
37313
+ animationClipKey = [
37314
+ this.getSharedClipKey(),
37315
+ animation.duration,
37316
+ animation.easing,
37317
+ animation.defer
37318
+ ].join(',');
37319
+ var animationClipRect = chart.sharedClips[animationClipKey],
37320
+ markerAnimationClipRect = chart.sharedClips[animationClipKey + 'm'];
37360
37321
  // Initialize the animation. Set up the clipping rectangle.
37361
- if (init) {
37362
- series.setClip(animation);
37322
+ if (init && group) {
37323
+ var clipBox = this.getClipBox();
37324
+ // Create temporary animation clips
37325
+ if (!animationClipRect) {
37326
+ clipBox.width = 0;
37327
+ if (inverted) {
37328
+ clipBox.x = chart.plotHeight;
37329
+ }
37330
+ animationClipRect = chart.renderer.clipRect(clipBox);
37331
+ chart.sharedClips[animationClipKey] = animationClipRect;
37332
+ var markerClipBox = {
37333
+ // Include the width of the first marker
37334
+ x: inverted ? (chart.plotSizeX || 0) + 99 : -99,
37335
+ y: inverted ? -chart.plotLeft : -chart.plotTop,
37336
+ width: 99,
37337
+ height: inverted ? chart.chartWidth : chart.chartHeight
37338
+ };
37339
+ markerAnimationClipRect = chart.renderer.clipRect(markerClipBox);
37340
+ chart.sharedClips[animationClipKey + 'm'] = markerAnimationClipRect;
37341
+ }
37342
+ else {
37343
+ // When height changes during animation, typically due to
37344
+ // responsive settings
37345
+ animationClipRect.attr('height', clipBox.height);
37346
+ }
37347
+ group.clip(animationClipRect);
37348
+ if (markerGroup) {
37349
+ markerGroup.clip(markerAnimationClipRect);
37350
+ }
37363
37351
  // Run the animation
37364
37352
  }
37365
- else if (sharedClipKey) {
37366
- var clipRect = chart.sharedClips[sharedClipKey];
37367
- var markerClipRect = chart.sharedClips[sharedClipKey + 'm'];
37368
- var finalBox = series.getClipBox(animation,
37369
- true);
37370
- if (clipRect) {
37371
- clipRect.animate(finalBox, animation);
37372
- }
37373
- if (markerClipRect) {
37374
- markerClipRect.animate({
37375
- width: finalBox.width + 99,
37376
- x: finalBox.x - (chart.inverted ? 0 : 99)
37377
- }, animation);
37353
+ else if (animationClipRect &&
37354
+ // Only first series in this pane
37355
+ !animationClipRect.hasClass('highcharts-animating')) {
37356
+ var finalBox = this.getClipBox(),
37357
+ step_1 = animation.step;
37358
+ // Only do this when there are actually markers
37359
+ if (markerGroup && markerGroup.element.childNodes.length) {
37360
+ // To provide as smooth animation as possible, update the marker
37361
+ // group clipping in steps of the main group animation
37362
+ animation.step = function (val, fx) {
37363
+ if (step_1) {
37364
+ step_1.apply(fx, arguments);
37365
+ }
37366
+ if (markerAnimationClipRect &&
37367
+ markerAnimationClipRect.element) {
37368
+ markerAnimationClipRect.attr(fx.prop, fx.prop === 'width' ? val + 99 : val);
37369
+ }
37370
+ };
37378
37371
  }
37372
+ animationClipRect
37373
+ .addClass('highcharts-animating')
37374
+ .animate(finalBox, animation);
37379
37375
  }
37380
37376
  };
37381
37377
  /**
@@ -37387,9 +37383,17 @@
37387
37383
  * @fires Highcharts.Series#event:afterAnimate
37388
37384
  */
37389
37385
  Series.prototype.afterAnimate = function () {
37386
+ var _this = this;
37390
37387
  this.setClip();
37391
- fireEvent(this, 'afterAnimate');
37388
+ // Destroy temporary clip rectangles that are no longer in use
37389
+ objectEach(this.chart.sharedClips, function (clip, key, sharedClips) {
37390
+ if (clip && !_this.chart.container.querySelector("[clip-path=\"url(#" + clip.id + ")\"]")) {
37391
+ clip.destroy();
37392
+ delete sharedClips[key];
37393
+ }
37394
+ });
37392
37395
  this.finishedAnimating = true;
37396
+ fireEvent(this, 'afterAnimate');
37393
37397
  };
37394
37398
  /**
37395
37399
  * Draw the markers for line-like series types, and columns or other
@@ -37597,7 +37601,7 @@
37597
37601
  // Handle hover and select states
37598
37602
  state = state || 'normal';
37599
37603
  if (state) {
37600
- seriesStateOptions = seriesMarkerOptions.states[state];
37604
+ seriesStateOptions = seriesMarkerOptions.states[state] || {};
37601
37605
  pointStateOptions = (pointMarkerOptions.states &&
37602
37606
  pointMarkerOptions.states[state]) || {};
37603
37607
  strokeWidth = pick(pointStateOptions.lineWidth, seriesStateOptions.lineWidth, strokeWidth + pick(pointStateOptions.lineWidthPlus, seriesStateOptions.lineWidthPlus, 0));
@@ -37978,15 +37982,18 @@
37978
37982
  inverted = chart.inverted;
37979
37983
  // Animation doesn't work in IE8 quirks when the group div is
37980
37984
  // hidden, and looks bad in other oldIE
37981
- var animDuration = (!series.finishedAnimating &&
37982
- chart.renderer.isSVG &&
37983
- animOptions.duration);
37985
+ var animDuration = (!series.finishedAnimating && chart.renderer.isSVG) ?
37986
+ animOptions.duration : 0;
37984
37987
  fireEvent(this, 'render');
37985
37988
  // the group
37986
37989
  var group = series.plotGroup('group', 'series', visibility, zIndex, chartSeriesGroup);
37987
37990
  series.markerGroup = series.plotGroup('markerGroup', 'markers', visibility, zIndex, chartSeriesGroup);
37988
- // initiate the animation
37989
- if (animDuration && series.animate) {
37991
+ // Initial clipping, applies to columns etc. (#3839).
37992
+ if (options.clip !== false) {
37993
+ series.setClip();
37994
+ }
37995
+ // Initialize the animation
37996
+ if (series.animate && animDuration) {
37990
37997
  series.animate(true);
37991
37998
  }
37992
37999
  // SVGRenderer needs to know this before drawing elements (#1089,
@@ -38002,11 +38009,6 @@
38002
38009
  if (series.visible) {
38003
38010
  series.drawPoints();
38004
38011
  }
38005
- /* series.points.forEach(function (point) {
38006
- if (point.redraw) {
38007
- point.redraw();
38008
- }
38009
- }); */
38010
38012
  // Draw the data labels
38011
38013
  if (series.drawDataLabels) {
38012
38014
  series.drawDataLabels();
@@ -38023,15 +38025,8 @@
38023
38025
  }
38024
38026
  // Handle inverted series and tracker groups
38025
38027
  series.invertGroups(inverted);
38026
- // Initial clipping, must be defined after inverting groups for VML.
38027
- // Applies to columns etc. (#3839).
38028
- if (options.clip !== false &&
38029
- !series.sharedClipKey &&
38030
- !hasRendered) {
38031
- group.clip(chart.clipRect);
38032
- }
38033
38028
  // Run the animation
38034
- if (animDuration && series.animate) {
38029
+ if (series.animate && animDuration) {
38035
38030
  series.animate();
38036
38031
  }
38037
38032
  // Call the afterAnimate function on animation complete (but don't
@@ -38270,12 +38265,16 @@
38270
38265
  * @function Highcharts.Series#isPointInside
38271
38266
  */
38272
38267
  Series.prototype.isPointInside = function (point) {
38273
- var isInside = typeof point.plotY !== 'undefined' &&
38268
+ var _a = this,
38269
+ chart = _a.chart,
38270
+ xAxis = _a.xAxis,
38271
+ yAxis = _a.yAxis,
38272
+ isInside = (typeof point.plotY !== 'undefined' &&
38274
38273
  typeof point.plotX !== 'undefined' &&
38275
38274
  point.plotY >= 0 &&
38276
- point.plotY <= this.yAxis.len && // #3519
38275
+ point.plotY <= (yAxis ? yAxis.len : chart.plotHeight) &&
38277
38276
  point.plotX >= 0 &&
38278
- point.plotX <= this.xAxis.len;
38277
+ point.plotX <= (xAxis ? xAxis.len : chart.plotWidth));
38279
38278
  return isInside;
38280
38279
  };
38281
38280
  /**
@@ -40747,7 +40746,7 @@
40747
40746
 
40748
40747
  return H.StackItem;
40749
40748
  });
40750
- _registerModule(_modules, 'Series/Line/LineSeries.js', [_modules['Core/Color/Palette.js'], _modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (Palette, Series, SeriesRegistry, U) {
40749
+ _registerModule(_modules, 'Series/Line/LineSeries.js', [_modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (Series, SeriesRegistry, U) {
40751
40750
  /* *
40752
40751
  *
40753
40752
  * (c) 2010-2021 Torstein Honsi
@@ -40832,7 +40831,7 @@
40832
40831
  if (!styledMode) {
40833
40832
  props[0].push((options.lineColor ||
40834
40833
  this.color ||
40835
- Palette.neutralColor20 // when colorByPoint = true
40834
+ "#cccccc" /* neutralColor20 */ // when colorByPoint = true
40836
40835
  ), options.dashStyle);
40837
40836
  }
40838
40837
  props = series.getZonesGraphs(props);
@@ -42404,7 +42403,7 @@
42404
42403
 
42405
42404
  return AreaSplineSeries;
42406
42405
  });
42407
- _registerModule(_modules, 'Series/Column/ColumnSeries.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Core/Color/Palette.js'], _modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (A, Color, H, LegendSymbol, Palette, Series, SeriesRegistry, U) {
42406
+ _registerModule(_modules, 'Series/Column/ColumnSeries.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (A, Color, H, LegendSymbol, Series, SeriesRegistry, U) {
42408
42407
  /* *
42409
42408
  *
42410
42409
  * (c) 2010-2021 Torstein Honsi
@@ -43385,7 +43384,7 @@
43385
43384
  * @default #cccccc
43386
43385
  * @product highcharts highstock gantt
43387
43386
  */
43388
- color: Palette.neutralColor20,
43387
+ color: "#cccccc" /* neutralColor20 */,
43389
43388
  /**
43390
43389
  * A specific border color for the selected point.
43391
43390
  *
@@ -43393,7 +43392,7 @@
43393
43392
  * @default #000000
43394
43393
  * @product highcharts highstock gantt
43395
43394
  */
43396
- borderColor: Palette.neutralColor100
43395
+ borderColor: "#000000" /* neutralColor100 */
43397
43396
  }
43398
43397
  },
43399
43398
  dataLabels: {
@@ -43460,7 +43459,7 @@
43460
43459
  *
43461
43460
  * @private
43462
43461
  */
43463
- borderColor: Palette.backgroundColor
43462
+ borderColor: "#ffffff" /* backgroundColor */
43464
43463
  });
43465
43464
  return ColumnSeries;
43466
43465
  }(Series));
@@ -43651,7 +43650,7 @@
43651
43650
 
43652
43651
  return ColumnSeries;
43653
43652
  });
43654
- _registerModule(_modules, 'Core/Series/DataLabel.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/FormatUtilities.js'], _modules['Core/Color/Palette.js'], _modules['Core/Utilities.js']], function (A, F, Palette, U) {
43653
+ _registerModule(_modules, 'Core/Series/DataLabel.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/FormatUtilities.js'], _modules['Core/Utilities.js']], function (A, F, U) {
43655
43654
  /* *
43656
43655
  *
43657
43656
  * (c) 2010-2021 Torstein Honsi
@@ -43969,7 +43968,7 @@
43969
43968
  rotation = labelOptions.rotation;
43970
43969
  if (!chart.styledMode) {
43971
43970
  // Determine the color
43972
- style.color = pick(labelOptions.color, style.color, series.color, Palette.neutralColor100);
43971
+ style.color = pick(labelOptions.color, style.color, series.color, "#000000" /* neutralColor100 */);
43973
43972
  // Get automated contrast color
43974
43973
  if (style.color === 'contrast') {
43975
43974
  point.contrastColor = renderer.getContrast((point.color || series.color));
@@ -43978,7 +43977,7 @@
43978
43977
  labelDistance < 0 ||
43979
43978
  !!seriesOptions.stacking ?
43980
43979
  point.contrastColor :
43981
- Palette.neutralColor100;
43980
+ "#000000" /* neutralColor100 */;
43982
43981
  }
43983
43982
  else {
43984
43983
  delete point.contrastColor;
@@ -44314,13 +44313,15 @@
44314
44313
  */
44315
44314
  function alignDataLabel(point, dataLabel, options, alignTo, isNew) {
44316
44315
  var inverted = this.chart.inverted,
44317
- series = point.series,
44316
+ series = point.series,
44317
+ xLen = (series.xAxis ? series.xAxis.len : this.chart.plotSizeX) || 0,
44318
+ yLen = (series.yAxis ? series.yAxis.len : this.chart.plotSizeY) || 0,
44318
44319
  // data label box for alignment
44319
44320
  dlBox = point.dlBox || point.shapeArgs,
44320
44321
  below = pick(point.below, // range series
44321
44322
  point.plotY >
44322
44323
  pick(this.translatedThreshold,
44323
- series.yAxis.len)),
44324
+ yLen)),
44324
44325
  // draw it inside the box?
44325
44326
  inside = pick(options.inside, !!this.options.stacking),
44326
44327
  overshoot;
@@ -44333,14 +44334,14 @@
44333
44334
  }
44334
44335
  // If parts of the box overshoots outside the plot area, modify the
44335
44336
  // box to center the label inside
44336
- overshoot = alignTo.y + alignTo.height - series.yAxis.len;
44337
+ overshoot = alignTo.y + alignTo.height - yLen;
44337
44338
  if (overshoot > 0 && overshoot < alignTo.height) {
44338
44339
  alignTo.height -= overshoot;
44339
44340
  }
44340
44341
  if (inverted) {
44341
44342
  alignTo = {
44342
- x: series.yAxis.len - alignTo.y - alignTo.height,
44343
- y: series.xAxis.len - alignTo.x - alignTo.width,
44343
+ x: yLen - alignTo.y - alignTo.height,
44344
+ y: xLen - alignTo.x - alignTo.width,
44344
44345
  width: alignTo.height,
44345
44346
  height: alignTo.width
44346
44347
  };
@@ -44879,7 +44880,7 @@
44879
44880
 
44880
44881
  return ScatterSeries;
44881
44882
  });
44882
- _registerModule(_modules, 'Mixins/CenteredSeries.js', [_modules['Core/Globals.js'], _modules['Core/Series/Series.js'], _modules['Core/Utilities.js']], function (H, Series, U) {
44883
+ _registerModule(_modules, 'Series/CenteredUtilities.js', [_modules['Core/Globals.js'], _modules['Core/Series/Series.js'], _modules['Core/Utilities.js']], function (H, Series, U) {
44883
44884
  /* *
44884
44885
  *
44885
44886
  * (c) 2010-2021 Torstein Honsi
@@ -44889,63 +44890,60 @@
44889
44890
  * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
44890
44891
  *
44891
44892
  * */
44892
- /**
44893
- * @private
44894
- * @interface Highcharts.RadianAngles
44895
- */ /**
44896
- * @name Highcharts.RadianAngles#end
44897
- * @type {number}
44898
- */ /**
44899
- * @name Highcharts.RadianAngles#start
44900
- * @type {number}
44901
- */
44893
+ var deg2rad = H.deg2rad;
44902
44894
  var isNumber = U.isNumber,
44903
44895
  pick = U.pick,
44904
44896
  relativeLength = U.relativeLength;
44905
- var deg2rad = H.deg2rad;
44906
- /* eslint-disable valid-jsdoc */
44907
44897
  /**
44908
44898
  * @private
44909
- * @mixin Highcharts.CenteredSeriesMixin
44910
44899
  */
44911
- var centeredSeriesMixin = H.CenteredSeriesMixin = {
44912
- /**
44913
- * Get the center of the pie based on the size and center options relative
44914
- * to the plot area. Borrowed by the polar and gauge series types.
44915
- *
44916
- * @private
44917
- * @function Highcharts.CenteredSeriesMixin.getCenter
44918
- *
44919
- * @return {Array<number>}
44920
- */
44921
- getCenter: function () {
44922
- var options = this.options,
44923
- chart = this.chart,
44924
- slicingRoom = 2 * (options.slicedOffset || 0),
44925
- handleSlicingRoom,
44926
- plotWidth = chart.plotWidth - 2 * slicingRoom,
44927
- plotHeight = chart.plotHeight - 2 * slicingRoom,
44928
- centerOption = options.center,
44929
- smallestSize = Math.min(plotWidth,
44930
- plotHeight),
44931
- size = options.size,
44932
- innerSize = options.innerSize || 0,
44933
- positions,
44934
- i,
44935
- value;
44900
+ var CenteredUtilities;
44901
+ (function (CenteredUtilities) {
44902
+ /* *
44903
+ *
44904
+ * Declarations
44905
+ *
44906
+ * */
44907
+ /* *
44908
+ *
44909
+ * Functions
44910
+ *
44911
+ * */
44912
+ /* eslint-disable valid-jsdoc */
44913
+ /**
44914
+ * Get the center of the pie based on the size and center options relative
44915
+ * to the plot area. Borrowed by the polar and gauge series types.
44916
+ *
44917
+ * @private
44918
+ * @function Highcharts.CenteredSeriesMixin.getCenter
44919
+ */
44920
+ function getCenter() {
44921
+ var options = this.options,
44922
+ chart = this.chart,
44923
+ slicingRoom = 2 * (options.slicedOffset || 0),
44924
+ plotWidth = chart.plotWidth - 2 * slicingRoom,
44925
+ plotHeight = chart.plotHeight - 2 * slicingRoom,
44926
+ centerOption = options.center,
44927
+ smallestSize = Math.min(plotWidth,
44928
+ plotHeight);
44929
+ var handleSlicingRoom,
44930
+ size = options.size,
44931
+ innerSize = options.innerSize || 0,
44932
+ i,
44933
+ value;
44936
44934
  if (typeof size === 'string') {
44937
44935
  size = parseFloat(size);
44938
44936
  }
44939
44937
  if (typeof innerSize === 'string') {
44940
44938
  innerSize = parseFloat(innerSize);
44941
44939
  }
44942
- positions = [
44943
- pick(centerOption[0], '50%'),
44944
- pick(centerOption[1], '50%'),
44945
- // Prevent from negative values
44946
- pick(size && size < 0 ? void 0 : options.size, '100%'),
44947
- pick(innerSize && innerSize < 0 ? void 0 : options.innerSize || 0, '0%')
44948
- ];
44940
+ var positions = [
44941
+ pick(centerOption[0], '50%'),
44942
+ pick(centerOption[1], '50%'),
44943
+ // Prevent from negative values
44944
+ pick(size && size < 0 ? void 0 : options.size, '100%'),
44945
+ pick(innerSize && innerSize < 0 ? void 0 : options.innerSize || 0, '0%')
44946
+ ];
44949
44947
  // No need for inner size in angular (gauges) series but still required
44950
44948
  // for pie series
44951
44949
  if (chart.angular && !(this instanceof Series)) {
@@ -44965,7 +44963,8 @@
44965
44963
  positions[3] = positions[2];
44966
44964
  }
44967
44965
  return positions;
44968
- },
44966
+ }
44967
+ CenteredUtilities.getCenter = getCenter;
44969
44968
  /**
44970
44969
  * getStartAndEndRadians - Calculates start and end angles in radians.
44971
44970
  * Used in series types such as pie and sunburst.
@@ -44982,7 +44981,7 @@
44982
44981
  * @return {Highcharts.RadianAngles}
44983
44982
  * Returns an object containing start and end angles as radians.
44984
44983
  */
44985
- getStartAndEndRadians: function (start, end) {
44984
+ function getStartAndEndRadians(start, end) {
44986
44985
  var startAngle = isNumber(start) ? start : 0, // must be a number
44987
44986
  endAngle = ((isNumber(end) && // must be a number
44988
44987
  end > startAngle && // must be larger than the start angle
@@ -44996,9 +44995,31 @@
44996
44995
  end: deg2rad * (endAngle + correction)
44997
44996
  };
44998
44997
  }
44999
- };
44998
+ CenteredUtilities.getStartAndEndRadians = getStartAndEndRadians;
44999
+ })(CenteredUtilities || (CenteredUtilities = {}));
45000
+ /* *
45001
+ *
45002
+ * Default Export
45003
+ *
45004
+ * */
45005
+ /* *
45006
+ *
45007
+ * API Declarations
45008
+ *
45009
+ * */
45010
+ /**
45011
+ * @private
45012
+ * @interface Highcharts.RadianAngles
45013
+ */ /**
45014
+ * @name Highcharts.RadianAngles#end
45015
+ * @type {number}
45016
+ */ /**
45017
+ * @name Highcharts.RadianAngles#start
45018
+ * @type {number}
45019
+ */
45020
+ ''; // keeps doclets above in JS file
45000
45021
 
45001
- return centeredSeriesMixin;
45022
+ return CenteredUtilities;
45002
45023
  });
45003
45024
  _registerModule(_modules, 'Series/Pie/PiePoint.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Series/Point.js'], _modules['Core/Utilities.js']], function (A, Point, U) {
45004
45025
  /* *
@@ -45296,7 +45317,7 @@
45296
45317
 
45297
45318
  return PiePoint;
45298
45319
  });
45299
- _registerModule(_modules, 'Series/Pie/PieSeries.js', [_modules['Mixins/CenteredSeries.js'], _modules['Series/Column/ColumnSeries.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Core/Color/Palette.js'], _modules['Series/Pie/PiePoint.js'], _modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Renderer/SVG/Symbols.js'], _modules['Core/Utilities.js']], function (CenteredSeriesMixin, ColumnSeries, H, LegendSymbol, Palette, PiePoint, Series, SeriesRegistry, Symbols, U) {
45320
+ _registerModule(_modules, 'Series/Pie/PieSeries.js', [_modules['Series/CenteredUtilities.js'], _modules['Series/Column/ColumnSeries.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Series/Pie/PiePoint.js'], _modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Renderer/SVG/Symbols.js'], _modules['Core/Utilities.js']], function (CU, ColumnSeries, H, LegendSymbol, PiePoint, Series, SeriesRegistry, Symbols, U) {
45300
45321
  /* *
45301
45322
  *
45302
45323
  * (c) 2010-2021 Torstein Honsi
@@ -45322,7 +45343,7 @@
45322
45343
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45323
45344
  };
45324
45345
  })();
45325
- var getStartAndEndRadians = CenteredSeriesMixin.getStartAndEndRadians;
45346
+ var getStartAndEndRadians = CU.getStartAndEndRadians;
45326
45347
  var noop = H.noop;
45327
45348
  var clamp = U.clamp,
45328
45349
  extend = U.extend,
@@ -45437,7 +45458,7 @@
45437
45458
  this.graph.attr({
45438
45459
  'stroke-width': options.borderWidth,
45439
45460
  fill: options.fillColor || 'none',
45440
- stroke: options.color || Palette.neutralColor20
45461
+ stroke: options.color || "#cccccc" /* neutralColor20 */
45441
45462
  });
45442
45463
  }
45443
45464
  }
@@ -45836,7 +45857,7 @@
45836
45857
  * Empty pie series
45837
45858
  *
45838
45859
  * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
45839
- * @default ${palette.neutralColor20}
45860
+ * @default #cccccc
45840
45861
  * @apioption plotOptions.pie.color
45841
45862
  */
45842
45863
  /**
@@ -46237,7 +46258,7 @@
46237
46258
  *
46238
46259
  * @private
46239
46260
  */
46240
- borderColor: Palette.backgroundColor,
46261
+ borderColor: "#ffffff" /* backgroundColor */,
46241
46262
  /**
46242
46263
  * The width of the border surrounding each slice.
46243
46264
  *
@@ -46294,7 +46315,7 @@
46294
46315
  drawGraph: void 0,
46295
46316
  drawLegendSymbol: LegendSymbol.drawRectangle,
46296
46317
  drawTracker: ColumnSeries.prototype.drawTracker,
46297
- getCenter: CenteredSeriesMixin.getCenter,
46318
+ getCenter: CU.getCenter,
46298
46319
  getSymbol: noop,
46299
46320
  isCartesian: false,
46300
46321
  noSharedTooltip: true,
@@ -46406,7 +46427,7 @@
46406
46427
 
46407
46428
  return PieSeries;
46408
46429
  });
46409
- _registerModule(_modules, 'Series/Pie/PieDataLabel.js', [_modules['Core/Series/DataLabel.js'], _modules['Core/Globals.js'], _modules['Core/Color/Palette.js'], _modules['Core/Renderer/RendererUtilities.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (DataLabel, H, Palette, R, SeriesRegistry, U) {
46430
+ _registerModule(_modules, 'Series/Pie/PieDataLabel.js', [_modules['Core/Series/DataLabel.js'], _modules['Core/Globals.js'], _modules['Core/Renderer/RendererUtilities.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (DataLabel, H, R, SeriesRegistry, U) {
46410
46431
  /* *
46411
46432
  *
46412
46433
  * (c) 2010-2021 Torstein Honsi
@@ -46768,7 +46789,7 @@
46768
46789
  'stroke-width': connectorWidth,
46769
46790
  'stroke': (pointDataLabelsOptions.connectorColor ||
46770
46791
  point.color ||
46771
- Palette.neutralColor60)
46792
+ "#666666" /* neutralColor60 */)
46772
46793
  });
46773
46794
  }
46774
46795
  }