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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highstock JS v9.2.2 (2021-08-24)
2
+ * @license Highstock JS v9.3.0 (2021-10-21)
3
3
  *
4
4
  * Advanced Highcharts Stock tools
5
5
  *
@@ -294,8 +294,7 @@
294
294
  * @param {Highcharts.AnnotationControllable} target
295
295
  * @return {Highcharts.PositionObject}
296
296
  */
297
- var extend = U.extend,
298
- merge = U.merge,
297
+ var merge = U.merge,
299
298
  pick = U.pick;
300
299
  /* eslint-disable no-invalid-this, valid-jsdoc */
301
300
  /**
@@ -1189,8 +1188,11 @@
1189
1188
  *
1190
1189
  * @param {number} dx translation for x coordinate
1191
1190
  * @param {number} dy translation for y coordinate
1191
+ * @param {boolean|undefined} translateSecondPoint If the shape has two
1192
+ * points attached to it, this option allows you to translate also
1193
+ * the second point
1192
1194
  */
1193
- translateShape: function (dx, dy) {
1195
+ translateShape: function (dx, dy, translateSecondPoint) {
1194
1196
  var chart = this.annotation.chart,
1195
1197
  // Annotation.options
1196
1198
  shapeOptions = this.annotation.userOptions,
@@ -1198,6 +1200,9 @@
1198
1200
  annotationIndex = chart.annotations.indexOf(this.annotation),
1199
1201
  chartOptions = chart.options.annotations[annotationIndex];
1200
1202
  this.translatePoint(dx, dy, 0);
1203
+ if (translateSecondPoint) {
1204
+ this.translatePoint(dx, dy, 1);
1205
+ }
1201
1206
  // Options stored in:
1202
1207
  // - chart (for exporting)
1203
1208
  // - current config (for redraws)
@@ -1891,6 +1896,215 @@
1891
1896
 
1892
1897
  return ControllableCircle;
1893
1898
  });
1899
+ _registerModule(_modules, 'Extensions/Annotations/Controllables/ControllableEllipse.js', [_modules['Extensions/Annotations/Mixins/ControllableMixin.js'], _modules['Extensions/Annotations/Controllables/ControllablePath.js'], _modules['Core/Utilities.js']], function (ControllableMixin, ControllablePath, U) {
1900
+ /* *
1901
+ *
1902
+ * Author: Pawel Lysy
1903
+ *
1904
+ * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
1905
+ *
1906
+ * */
1907
+ var merge = U.merge,
1908
+ defined = U.defined;
1909
+ /**
1910
+ * A controllable ellipse class.
1911
+ *
1912
+ * @requires modules/annotations
1913
+ *
1914
+ * @private
1915
+ * @class
1916
+ * @name Highcharts.AnnotationControllableEllipse
1917
+ *
1918
+ * @param {Highcharts.Annotation} annotation an annotation instance
1919
+ * @param {Highcharts.AnnotationsShapeOptions} options a shape's options
1920
+ * @param {number} index of the Ellipse
1921
+ */
1922
+ var ControllableEllipse = /** @class */ (function () {
1923
+ /* *
1924
+ *
1925
+ * Constructor
1926
+ *
1927
+ * */
1928
+ function ControllableEllipse(annotation, options, index) {
1929
+ /* *
1930
+ *
1931
+ * Properties
1932
+ *
1933
+ * */
1934
+ this.addControlPoints = ControllableMixin.addControlPoints;
1935
+ this.anchor = ControllableMixin.anchor;
1936
+ this.attr = ControllableMixin.attr;
1937
+ this.attrsFromOptions = ControllableMixin.attrsFromOptions;
1938
+ this.destroy = ControllableMixin.destroy;
1939
+ this.getPointsOptions = ControllableMixin.getPointsOptions;
1940
+ this.linkPoints = ControllableMixin.linkPoints;
1941
+ this.point = ControllableMixin.point;
1942
+ this.scale = ControllableMixin.scale;
1943
+ this.setControlPointsVisibility = ControllableMixin.setControlPointsVisibility;
1944
+ this.shouldBeDrawn = ControllableMixin.shouldBeDrawn;
1945
+ this.transform = ControllableMixin.transform;
1946
+ this.translatePoint = ControllableMixin.translatePoint;
1947
+ this.transformPoint = ControllableMixin.transformPoint;
1948
+ /**
1949
+ * @type 'ellipse'
1950
+ */
1951
+ this.type = 'ellipse';
1952
+ this.init(annotation, options, index);
1953
+ this.collection = 'shapes';
1954
+ }
1955
+ /* *
1956
+ *
1957
+ * Functions
1958
+ *
1959
+ * */
1960
+ ControllableEllipse.prototype.init = function (annotation, options, index) {
1961
+ if (defined(options.yAxis)) {
1962
+ options.points.forEach(function (point) {
1963
+ point.yAxis = options.yAxis;
1964
+ });
1965
+ }
1966
+ if (defined(options.xAxis)) {
1967
+ options.points.forEach(function (point) {
1968
+ point.xAxis = options.xAxis;
1969
+ });
1970
+ }
1971
+ ControllableMixin.init.call(this, annotation, options, index);
1972
+ };
1973
+ /**
1974
+ *
1975
+ * Render the element
1976
+ * @param parent parent SVG element.
1977
+ */
1978
+ ControllableEllipse.prototype.render = function (parent) {
1979
+ this.graphic = this.annotation.chart.renderer.createElement('ellipse')
1980
+ .attr(this.attrsFromOptions(this.options))
1981
+ .add(parent);
1982
+ ControllableMixin.render.call(this);
1983
+ };
1984
+ /**
1985
+ * Translate the points.
1986
+ * Mostly used to handle dragging of the ellipse.
1987
+ */
1988
+ ControllableEllipse.prototype.translate = function (dx, dy) {
1989
+ ControllableMixin.translateShape.call(this, dx, dy, true);
1990
+ };
1991
+ /**
1992
+ * Get the distance from the line to the point.
1993
+ * @param point1 first point which is on the line
1994
+ * @param point2 second point
1995
+ * @param x0 point's x value from which you want to calculate the distance from
1996
+ * @param y0 point's y value from which you want to calculate the distance from
1997
+ */
1998
+ ControllableEllipse.prototype.getDistanceFromLine = function (point1, point2, x0, y0) {
1999
+ return Math.abs((point2.y - point1.y) * x0 - (point2.x - point1.x) * y0 +
2000
+ point2.x * point1.y - point2.y * point1.x) / Math.sqrt((point2.y - point1.y) * (point2.y - point1.y) +
2001
+ (point2.x - point1.x) * (point2.x - point1.x));
2002
+ };
2003
+ /**
2004
+ * The fuction calculates the svg attributes of the ellipse, and returns all
2005
+ * parameters neccessary to draw the ellipse.
2006
+ * @param position absolute position of the first point in points array
2007
+ * @param position2 absolute position of the second point in points array
2008
+ */
2009
+ ControllableEllipse.prototype.getAttrs = function (position, position2) {
2010
+ var x1 = position.x,
2011
+ y1 = position.y,
2012
+ x2 = position2.x,
2013
+ y2 = position2.y,
2014
+ cx = (x1 + x2) / 2,
2015
+ cy = (y1 + y2) / 2,
2016
+ rx = Math.sqrt((x1 - x2) * (x1 - x2) / 4 + (y1 - y2) * (y1 - y2) / 4),
2017
+ tan = (y2 - y1) / (x2 - x1);
2018
+ var angle = Math.atan(tan) * 180 / Math.PI;
2019
+ if (cx < x1) {
2020
+ angle += 180;
2021
+ }
2022
+ var ry = this.getRY();
2023
+ return { cx: cx, cy: cy, rx: rx, ry: ry, angle: angle };
2024
+ };
2025
+ /**
2026
+ * Get the value of minor radius of the ellipse.
2027
+ */
2028
+ ControllableEllipse.prototype.getRY = function () {
2029
+ var yAxis = this.getYAxis();
2030
+ return defined(yAxis) ?
2031
+ Math.abs(yAxis.toPixels(this.options.ry) - yAxis.toPixels(0)) :
2032
+ this.options.ry;
2033
+ };
2034
+ /**
2035
+ * get the yAxis object to which the ellipse is pinned.
2036
+ */
2037
+ ControllableEllipse.prototype.getYAxis = function () {
2038
+ var yAxisIndex = this.options.yAxis;
2039
+ return this.chart.yAxis[yAxisIndex];
2040
+ };
2041
+ /**
2042
+ * Get the absolute coordinates of the MockPoint
2043
+ * @param point MockPoint that is added through options
2044
+ */
2045
+ ControllableEllipse.prototype.getAbsolutePosition = function (point) {
2046
+ return this.anchor(point).absolutePosition;
2047
+ };
2048
+ /**
2049
+ *
2050
+ * Redraw the element
2051
+ * @param animation display an annimation
2052
+ */
2053
+ ControllableEllipse.prototype.redraw = function (animation) {
2054
+ var position = this.getAbsolutePosition(this.points[0]),
2055
+ position2 = this.getAbsolutePosition(this.points[1]),
2056
+ attrs = this.getAttrs(position,
2057
+ position2);
2058
+ if (position) {
2059
+ this.graphic[animation ? 'animate' : 'attr']({
2060
+ cx: attrs.cx,
2061
+ cy: attrs.cy,
2062
+ rx: attrs.rx,
2063
+ ry: attrs.ry,
2064
+ rotation: attrs.angle,
2065
+ rotationOriginX: attrs.cx,
2066
+ rotationOriginY: attrs.cy
2067
+ });
2068
+ }
2069
+ else {
2070
+ this.graphic.attr({
2071
+ x: 0,
2072
+ y: -9e9
2073
+ });
2074
+ }
2075
+ this.graphic.placed = Boolean(position);
2076
+ ControllableMixin.redraw.call(this, animation);
2077
+ };
2078
+ /**
2079
+ * Set the radius Y.
2080
+ *
2081
+ * @param {number} ry a radius in y direction to be set
2082
+ */
2083
+ ControllableEllipse.prototype.setYRadius = function (ry) {
2084
+ this.options.ry = ry;
2085
+ this.annotation.userOptions.shapes[0].ry = ry;
2086
+ this.annotation.options.shapes[0].ry = ry;
2087
+ };
2088
+ /* *
2089
+ *
2090
+ * Static Properties
2091
+ *
2092
+ * */
2093
+ /**
2094
+ * A map object which allows to map options attributes to element
2095
+ * attributes.
2096
+ *
2097
+ * @name Highcharts.AnnotationControllableEllipse.attrsMap
2098
+ * @type {Highcharts.Dictionary<string>}
2099
+ */
2100
+ ControllableEllipse.attrsMap = merge(ControllablePath.attrsMap, {
2101
+ ry: 'ry'
2102
+ });
2103
+ return ControllableEllipse;
2104
+ }());
2105
+
2106
+ return ControllableEllipse;
2107
+ });
1894
2108
  _registerModule(_modules, 'Extensions/Annotations/Controllables/ControllableLabel.js', [_modules['Extensions/Annotations/Mixins/ControllableMixin.js'], _modules['Core/FormatUtilities.js'], _modules['Extensions/Annotations/MockPoint.js'], _modules['Core/Renderer/SVG/SVGRenderer.js'], _modules['Core/Tooltip.js'], _modules['Core/Utilities.js']], function (ControllableMixin, F, MockPoint, SVGRenderer, Tooltip, U) {
1895
2109
  /* *
1896
2110
  *
@@ -2425,7 +2639,7 @@
2425
2639
 
2426
2640
  return ControllableImage;
2427
2641
  });
2428
- _registerModule(_modules, 'Extensions/Annotations/Annotations.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Chart/Chart.js'], _modules['Extensions/Annotations/Mixins/ControllableMixin.js'], _modules['Extensions/Annotations/Controllables/ControllableRect.js'], _modules['Extensions/Annotations/Controllables/ControllableCircle.js'], _modules['Extensions/Annotations/Controllables/ControllablePath.js'], _modules['Extensions/Annotations/Controllables/ControllableImage.js'], _modules['Extensions/Annotations/Controllables/ControllableLabel.js'], _modules['Extensions/Annotations/ControlPoint.js'], _modules['Extensions/Annotations/Mixins/EventEmitterMixin.js'], _modules['Core/Globals.js'], _modules['Extensions/Annotations/MockPoint.js'], _modules['Core/Pointer.js'], _modules['Core/Utilities.js'], _modules['Core/Color/Palette.js']], function (A, Chart, ControllableMixin, ControllableRect, ControllableCircle, ControllablePath, ControllableImage, ControllableLabel, ControlPoint, EventEmitterMixin, H, MockPoint, Pointer, U, palette) {
2642
+ _registerModule(_modules, 'Extensions/Annotations/Annotations.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Chart/Chart.js'], _modules['Extensions/Annotations/Mixins/ControllableMixin.js'], _modules['Extensions/Annotations/Controllables/ControllableRect.js'], _modules['Extensions/Annotations/Controllables/ControllableCircle.js'], _modules['Extensions/Annotations/Controllables/ControllableEllipse.js'], _modules['Extensions/Annotations/Controllables/ControllablePath.js'], _modules['Extensions/Annotations/Controllables/ControllableImage.js'], _modules['Extensions/Annotations/Controllables/ControllableLabel.js'], _modules['Extensions/Annotations/ControlPoint.js'], _modules['Extensions/Annotations/Mixins/EventEmitterMixin.js'], _modules['Core/Globals.js'], _modules['Extensions/Annotations/MockPoint.js'], _modules['Core/Pointer.js'], _modules['Core/Utilities.js']], function (A, Chart, ControllableMixin, ControllableRect, ControllableCircle, ControllableEllipse, ControllablePath, ControllableImage, ControllableLabel, ControlPoint, EventEmitterMixin, H, MockPoint, Pointer, U) {
2429
2643
  /* *
2430
2644
  *
2431
2645
  * (c) 2009-2021 Highsoft, Black Label
@@ -2647,7 +2861,10 @@
2647
2861
  };
2648
2862
  Annotation.prototype.addClipPaths = function () {
2649
2863
  this.setClipAxes();
2650
- if (this.clipXAxis && this.clipYAxis) {
2864
+ if (this.clipXAxis &&
2865
+ this.clipYAxis &&
2866
+ this.options.crop // #15399
2867
+ ) {
2651
2868
  this.clipRect = this.chart.renderer.clipRect(this.getClipBox());
2652
2869
  }
2653
2870
  };
@@ -2749,8 +2966,10 @@
2749
2966
  .add();
2750
2967
  this.shapesGroup = renderer
2751
2968
  .g('annotation-shapes')
2752
- .add(this.graphic)
2753
- .clip(this.chart.plotBoxClip);
2969
+ .add(this.graphic);
2970
+ if (this.options.crop) { // #15399
2971
+ this.shapesGroup.clip(this.chart.plotBoxClip);
2972
+ }
2754
2973
  this.labelsGroup = renderer
2755
2974
  .g('annotation-labels')
2756
2975
  .attr({
@@ -2867,6 +3086,9 @@
2867
3086
  * Initialisation of a single shape
2868
3087
  * @private
2869
3088
  * @param {Object} shapeOptions - a confg object for a single shape
3089
+ * @param {number} index - annotation may have many shapes,
3090
+ * this is the shape's index saved in shapes.index.
3091
+
2870
3092
  */
2871
3093
  Annotation.prototype.initShape = function (shapeOptions, index) {
2872
3094
  var options = merge(this.options.shapeOptions, {
@@ -2972,6 +3194,7 @@
2972
3194
  Annotation.shapesMap = {
2973
3195
  'rect': ControllableRect,
2974
3196
  'circle': ControllableCircle,
3197
+ 'ellipse': ControllableEllipse,
2975
3198
  'path': ControllablePath,
2976
3199
  'image': ControllableImage
2977
3200
  };
@@ -3048,9 +3271,18 @@
3048
3271
  * Animation defer settings
3049
3272
  * @type {boolean|Partial<Highcharts.AnimationOptionsObject>}
3050
3273
  * @since 8.2.0
3051
- * @apioption annotations.animation
3052
3274
  */
3053
3275
  animation: {},
3276
+ /**
3277
+ * Whether to hide the part of the annotation
3278
+ * that is outside the plot area.
3279
+ *
3280
+ * @sample highcharts/annotations/label-crop-overflow/
3281
+ * Crop line annotation
3282
+ * @type {boolean}
3283
+ * @since 9.3.0
3284
+ */
3285
+ crop: true,
3054
3286
  /**
3055
3287
  * The animation delay time in milliseconds.
3056
3288
  * Set to `0` renders annotation immediately.
@@ -3115,7 +3347,7 @@
3115
3347
  *
3116
3348
  * @type {Highcharts.ColorString}
3117
3349
  */
3118
- borderColor: palette.neutralColor100,
3350
+ borderColor: "#000000" /* neutralColor100 */,
3119
3351
  /**
3120
3352
  * The border radius in pixels for the annotaiton's label.
3121
3353
  *
@@ -3410,6 +3642,32 @@
3410
3642
  * @requires modules/annotations
3411
3643
  */
3412
3644
  shapeOptions: {
3645
+ /**
3646
+ *
3647
+ * The radius of the shape in y direction.
3648
+ * Used for the ellipse.
3649
+ *
3650
+ * @sample highcharts/annotations/ellipse/
3651
+ * Ellipse annotation
3652
+ *
3653
+ * @type {number}
3654
+ * @apioption annotations.shapeOptions.ry
3655
+ **/
3656
+ /**
3657
+ *
3658
+ * The xAxis index to which the points should be attached.
3659
+ * Used for the ellipse.
3660
+ *
3661
+ * @type {number}
3662
+ * @apioption annotations.shapeOptions.xAxis
3663
+ **/
3664
+ /**
3665
+ * The yAxis index to which the points should be attached.
3666
+ * Used for the ellipse.
3667
+ *
3668
+ * @type {number}
3669
+ * @apioption annotations.shapeOptions.yAxis
3670
+ **/
3413
3671
  /**
3414
3672
  * The width of the shape.
3415
3673
  *
@@ -3429,11 +3687,15 @@
3429
3687
  * @apioption annotations.shapeOptions.height
3430
3688
  */
3431
3689
  /**
3432
- * The type of the shape, e.g. circle or rectangle.
3690
+ * The type of the shape.
3691
+ * Avaliable options are circle, rect and ellipse.
3433
3692
  *
3434
3693
  * @sample highcharts/annotations/shape/
3435
3694
  * Basic shape annotation
3436
3695
  *
3696
+ * @sample highcharts/annotations/ellipse/
3697
+ * Ellipse annotation
3698
+ *
3437
3699
  * @type {string}
3438
3700
  * @default rect
3439
3701
  * @apioption annotations.shapeOptions.type
@@ -3515,9 +3777,10 @@
3515
3777
  width: 10,
3516
3778
  height: 10,
3517
3779
  style: {
3518
- stroke: palette.neutralColor100,
3519
- 'stroke-width': 2,
3520
- fill: palette.backgroundColor
3780
+ cursor: 'pointer',
3781
+ fill: "#ffffff" /* backgroundColor */,
3782
+ stroke: "#000000" /* neutralColor100 */,
3783
+ 'stroke-width': 2
3521
3784
  },
3522
3785
  visible: false,
3523
3786
  events: {}
@@ -3580,7 +3843,8 @@
3580
3843
  * @param {Highcharts.AnnotationsOptions} options
3581
3844
  * The annotation options for the new, detailed annotation.
3582
3845
  * @param {boolean} [redraw]
3583
- *
3846
+ * @sample highcharts/annotations/add-annotation/
3847
+ * Add annotation
3584
3848
  * @return {Highcharts.Annotation} - The newly generated annotation.
3585
3849
  */
3586
3850
  addAnnotation: function (userOptions, redraw) {
@@ -3847,7 +4111,7 @@
3847
4111
 
3848
4112
  return Annotation;
3849
4113
  });
3850
- _registerModule(_modules, 'Mixins/Navigation.js', [], function () {
4114
+ _registerModule(_modules, 'Core/Chart/ChartNavigationComposition.js', [], function () {
3851
4115
  /**
3852
4116
  *
3853
4117
  * (c) 2010-2021 Paweł Fus
@@ -3857,56 +4121,91 @@
3857
4121
  * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
3858
4122
  *
3859
4123
  * */
3860
- var chartNavigation = {
3861
- /**
3862
- * Initializes `chart.navigation` object which delegates `update()` methods
3863
- * to all other common classes (used in exporting and navigationBindings).
3864
- *
3865
- * @private
3866
- * @param {Highcharts.Chart} chart
3867
- * The chart instance.
3868
- * @return {void}
3869
- */
3870
- initUpdate: function (chart) {
3871
- if (!chart.navigation) {
3872
- chart.navigation = {
3873
- updates: [],
3874
- update: function (options,
3875
- redraw) {
3876
- this.updates.forEach(function (updateConfig) {
3877
- updateConfig.update.call(updateConfig.context,
3878
- options,
3879
- redraw);
3880
- });
3881
- }
3882
- };
3883
- }
3884
- },
3885
- /**
3886
- * Registers an `update()` method in the `chart.navigation` object.
4124
+ /* *
4125
+ *
4126
+ * Composition
4127
+ *
4128
+ * */
4129
+ var ChartNavigationComposition;
4130
+ (function (ChartNavigationComposition) {
4131
+ /* *
3887
4132
  *
4133
+ * Declarations
4134
+ *
4135
+ * */
4136
+ /* *
4137
+ *
4138
+ * Functions
4139
+ *
4140
+ * */
4141
+ /* eslint-disable valid-jsdoc */
4142
+ /**
3888
4143
  * @private
3889
- * @param {Highcharts.ChartNavigationUpdateFunction} update
3890
- * The `update()` method that will be called in `chart.update()`.
3891
- * @param {Highcharts.Chart} chart
3892
- * The chart instance. `update()` will use that as a context
3893
- * (`this`).
3894
- * @return {void}
3895
4144
  */
3896
- addUpdate: function (update, chart) {
4145
+ function compose(chart) {
3897
4146
  if (!chart.navigation) {
3898
- this.initUpdate(chart);
4147
+ chart.navigation = new Additions(chart);
3899
4148
  }
3900
- chart.navigation.updates.push({
3901
- update: update,
3902
- context: chart
3903
- });
4149
+ return chart;
3904
4150
  }
3905
- };
4151
+ ChartNavigationComposition.compose = compose;
4152
+ /* *
4153
+ *
4154
+ * Class
4155
+ *
4156
+ * */
4157
+ /**
4158
+ * Initializes `chart.navigation` object which delegates `update()` methods
4159
+ * to all other common classes (used in exporting and navigationBindings).
4160
+ * @private
4161
+ */
4162
+ var Additions = /** @class */ (function () {
4163
+ /* *
4164
+ *
4165
+ * Constructor
4166
+ *
4167
+ * */
4168
+ function Additions(chart) {
4169
+ this.updates = [];
4170
+ this.chart = chart;
4171
+ }
4172
+ /* *
4173
+ *
4174
+ * Functions
4175
+ *
4176
+ * */
4177
+ /**
4178
+ * Registers an `update()` method in the `chart.navigation` object.
4179
+ *
4180
+ * @private
4181
+ * @param {UpdateFunction} updateFn
4182
+ * The `update()` method that will be called in `chart.update()`.
4183
+ */
4184
+ Additions.prototype.addUpdate = function (updateFn) {
4185
+ this.chart.navigation.updates.push(updateFn);
4186
+ };
4187
+ /**
4188
+ * @private
4189
+ */
4190
+ Additions.prototype.update = function (options, redraw) {
4191
+ var _this = this;
4192
+ this.updates.forEach(function (updateFn) {
4193
+ updateFn.call(_this.chart, options, redraw);
4194
+ });
4195
+ };
4196
+ return Additions;
4197
+ }());
4198
+ ChartNavigationComposition.Additions = Additions;
4199
+ })(ChartNavigationComposition || (ChartNavigationComposition = {}));
4200
+ /* *
4201
+ *
4202
+ * Default Export
4203
+ *
4204
+ * */
3906
4205
 
3907
- return chartNavigation;
4206
+ return ChartNavigationComposition;
3908
4207
  });
3909
- _registerModule(_modules, 'Extensions/Annotations/NavigationBindings.js', [_modules['Extensions/Annotations/Annotations.js'], _modules['Core/Chart/Chart.js'], _modules['Mixins/Navigation.js'], _modules['Core/FormatUtilities.js'], _modules['Core/Globals.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Utilities.js']], function (Annotation, Chart, chartNavigationMixin, F, H, D, U) {
4208
+ _registerModule(_modules, 'Extensions/Annotations/NavigationBindings.js', [_modules['Extensions/Annotations/Annotations.js'], _modules['Core/Chart/Chart.js'], _modules['Core/Chart/ChartNavigationComposition.js'], _modules['Core/FormatUtilities.js'], _modules['Core/Globals.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Utilities.js']], function (Annotation, Chart, ChartNavigationComposition, F, H, D, U) {
3910
4209
  /* *
3911
4210
  *
3912
4211
  * (c) 2009-2021 Highsoft, Black Label
@@ -4054,8 +4353,9 @@
4054
4353
  */
4055
4354
  getAssignedAxis: function (coords) {
4056
4355
  return coords.filter(function (coord) {
4057
- var axisMin = coord.axis.min,
4058
- axisMax = coord.axis.max,
4356
+ var extremes = coord.axis.getExtremes(),
4357
+ axisMin = extremes.min,
4358
+ axisMax = extremes.max,
4059
4359
  // Correct axis edges when axis has series
4060
4360
  // with pointRange (like column)
4061
4361
  minPointOffset = pick(coord.axis.minPointOffset, 0);
@@ -4156,9 +4456,11 @@
4156
4456
  */
4157
4457
  NavigationBindings.prototype.initUpdate = function () {
4158
4458
  var navigation = this;
4159
- chartNavigationMixin.addUpdate(function (options) {
4459
+ ChartNavigationComposition
4460
+ .compose(this.chart).navigation
4461
+ .addUpdate(function (options) {
4160
4462
  navigation.update(options);
4161
- }, this.chart);
4463
+ });
4162
4464
  };
4163
4465
  /**
4164
4466
  * Hook for click on a button, method selcts/unselects buttons,
@@ -4603,6 +4905,7 @@
4603
4905
  },
4604
4906
  // Simple shapes:
4605
4907
  circle: ['shapes'],
4908
+ ellipse: ['shapes'],
4606
4909
  verticalLine: [],
4607
4910
  label: ['labelOptions'],
4608
4911
  // Measure
@@ -4619,7 +4922,9 @@
4619
4922
  // Define non editable fields per annotation, for example Rectangle inherits
4620
4923
  // options from Measure, but crosshairs are not available
4621
4924
  NavigationBindings.annotationsNonEditable = {
4622
- rectangle: ['crosshairX', 'crosshairY', 'label']
4925
+ rectangle: ['crosshairX', 'crosshairY', 'labelOptions'],
4926
+ ellipse: ['labelOptions'],
4927
+ circle: ['labelOptions']
4623
4928
  };
4624
4929
  return NavigationBindings;
4625
4930
  }());
@@ -4736,7 +5041,6 @@
4736
5041
  * Configure the Popup strings in the chart. Requires the
4737
5042
  * `annotations.js` or `annotations-advanced.src.js` module to be
4738
5043
  * loaded.
4739
- *
4740
5044
  * @since 7.0.0
4741
5045
  * @product highcharts highstock
4742
5046
  */
@@ -4750,6 +5054,7 @@
4750
5054
  simpleShapes: 'Simple shapes',
4751
5055
  lines: 'Lines',
4752
5056
  circle: 'Circle',
5057
+ ellipse: 'Ellipse',
4753
5058
  rectangle: 'Rectangle',
4754
5059
  label: 'Label',
4755
5060
  shapeOptions: 'Shape options',
@@ -4810,9 +5115,16 @@
4810
5115
  * - `end`: last event to be called after last step event
4811
5116
  *
4812
5117
  * @type {Highcharts.Dictionary<Highcharts.NavigationBindingsOptionsObject>|*}
4813
- * @sample stock/stocktools/stocktools-thresholds
4814
- * Custom bindings in Highcharts Stock
5118
+ *
5119
+ * @sample {highstock} stock/stocktools/stocktools-thresholds
5120
+ * Custom bindings
5121
+ * @sample {highcharts} highcharts/annotations/bindings/
5122
+ * Simple binding
5123
+ * @sample {highcharts} highcharts/annotations/bindings-custom-annotation/
5124
+ * Custom annotation binding
5125
+ *
4815
5126
  * @since 7.0.0
5127
+ * @requires modules/annotations
4816
5128
  * @product highcharts highstock
4817
5129
  */
4818
5130
  bindings: {
@@ -4849,27 +5161,21 @@
4849
5161
  },
4850
5162
  r: 5
4851
5163
  }]
4852
- }, navigation
4853
- .annotationsOptions, navigation
4854
- .bindings
4855
- .circleAnnotation
4856
- .annotationsOptions));
5164
+ }, navigation.annotationsOptions, navigation.bindings.circleAnnotation.annotationsOptions));
4857
5165
  },
4858
5166
  /** @ignore-option */
4859
5167
  steps: [
4860
5168
  function (e, annotation) {
4861
5169
  var mockPointOpts = annotation.options.shapes[0]
4862
5170
  .point,
4863
- inverted = this.chart.inverted,
4864
- x,
4865
- y,
4866
5171
  distance;
4867
5172
  if (isNumber(mockPointOpts.xAxis) &&
4868
5173
  isNumber(mockPointOpts.yAxis)) {
4869
- x = this.chart.xAxis[mockPointOpts.xAxis]
4870
- .toPixels(mockPointOpts.x);
4871
- y = this.chart.yAxis[mockPointOpts.yAxis]
4872
- .toPixels(mockPointOpts.y);
5174
+ var inverted = this.chart.inverted,
5175
+ x = this.chart.xAxis[mockPointOpts.xAxis]
5176
+ .toPixels(mockPointOpts.x),
5177
+ y = this.chart.yAxis[mockPointOpts.yAxis]
5178
+ .toPixels(mockPointOpts.y);
4873
5179
  distance = Math.max(Math.sqrt(Math.pow(inverted ? y - e.chartX : x - e.chartX, 2) +
4874
5180
  Math.pow(inverted ? x - e.chartY : y - e.chartY, 2)), 5);
4875
5181
  }
@@ -4881,6 +5187,58 @@
4881
5187
  }
4882
5188
  ]
4883
5189
  },
5190
+ ellipseAnnotation: {
5191
+ className: 'highcharts-ellipse-annotation',
5192
+ start: function (e) {
5193
+ var coords = this.chart.pointer.getCoordinates(e),
5194
+ coordsX = this.utils.getAssignedAxis(coords.xAxis),
5195
+ coordsY = this.utils.getAssignedAxis(coords.yAxis),
5196
+ navigation = this.chart.options.navigation;
5197
+ if (!coordsX || !coordsY) {
5198
+ return;
5199
+ }
5200
+ return this.chart.addAnnotation(merge({
5201
+ langKey: 'ellipse',
5202
+ type: 'basicAnnotation',
5203
+ shapes: [
5204
+ {
5205
+ type: 'ellipse',
5206
+ xAxis: coordsX.axis.options.index,
5207
+ yAxis: coordsY.axis.options.index,
5208
+ points: [{
5209
+ x: coordsX.value,
5210
+ y: coordsY.value
5211
+ }, {
5212
+ x: coordsX.value,
5213
+ y: coordsY.value
5214
+ }],
5215
+ ry: 1
5216
+ }
5217
+ ]
5218
+ }, navigation.annotationsOptions, navigation.bindings.ellipseAnnotation.annotationOptions));
5219
+ },
5220
+ steps: [
5221
+ function (e, annotation) {
5222
+ var target = annotation.shapes[0],
5223
+ position = target.getAbsolutePosition(target.points[1]);
5224
+ target.translatePoint(e.chartX - position.x, e.chartY - position.y, 1);
5225
+ target.redraw(false);
5226
+ },
5227
+ function (e, annotation) {
5228
+ var target = annotation.shapes[0],
5229
+ position = target.getAbsolutePosition(target.points[0]),
5230
+ position2 = target.getAbsolutePosition(target.points[1]),
5231
+ newR = target.getDistanceFromLine(position,
5232
+ position2,
5233
+ e.chartX,
5234
+ e.chartY),
5235
+ yAxis = target.getYAxis(),
5236
+ newRY = Math.abs(yAxis.toValue(0) - yAxis.toValue(newR));
5237
+ target.setYRadius(newRY);
5238
+ target.redraw(false);
5239
+ }
5240
+ ]
5241
+ },
4884
5242
  /**
4885
5243
  * A rectangle annotation bindings. Includes `start` and one event
4886
5244
  * in `steps` array.
@@ -4914,7 +5272,8 @@
4914
5272
  { xAxis: xAxis, yAxis: yAxis, x: x, y: y },
4915
5273
  { xAxis: xAxis, yAxis: yAxis, x: x, y: y },
4916
5274
  { xAxis: xAxis, yAxis: yAxis, x: x, y: y },
4917
- { xAxis: xAxis, yAxis: yAxis, x: x, y: y }
5275
+ { xAxis: xAxis, yAxis: yAxis, x: x, y: y },
5276
+ { command: 'Z' }
4918
5277
  ]
4919
5278
  }]
4920
5279
  }, navigation
@@ -4999,7 +5358,7 @@
4999
5358
  * from a different server.
5000
5359
  *
5001
5360
  * @type {string}
5002
- * @default https://code.highcharts.com/9.2.2/gfx/stock-icons/
5361
+ * @default https://code.highcharts.com/9.3.0/gfx/stock-icons/
5003
5362
  * @since 7.1.3
5004
5363
  * @apioption navigation.iconsURL
5005
5364
  */
@@ -5055,6 +5414,7 @@
5055
5414
  * @extends annotations
5056
5415
  * @exclude crookedLine, elliottWave, fibonacci, infinityLine,
5057
5416
  * measure, pitchfork, tunnel, verticalLine, basicAnnotation
5417
+ * @requires modules/annotations
5058
5418
  * @apioption navigation.annotationsOptions
5059
5419
  */
5060
5420
  annotationsOptions: {
@@ -5118,7 +5478,7 @@
5118
5478
 
5119
5479
  return NavigationBindings;
5120
5480
  });
5121
- _registerModule(_modules, 'Stock/StockToolsBindings.js', [_modules['Core/Globals.js'], _modules['Extensions/Annotations/NavigationBindings.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Series/Series.js'], _modules['Core/Utilities.js'], _modules['Core/Color/Palette.js']], function (H, NavigationBindings, D, Series, U, palette) {
5481
+ _registerModule(_modules, 'Stock/StockToolsBindings.js', [_modules['Core/DefaultOptions.js'], _modules['Core/Globals.js'], _modules['Extensions/Annotations/NavigationBindings.js'], _modules['Core/Series/Series.js'], _modules['Core/Utilities.js']], function (D, H, NavigationBindings, Series, U) {
5122
5482
  /**
5123
5483
  *
5124
5484
  * Events generator for Stock tools
@@ -5238,34 +5598,35 @@
5238
5598
  };
5239
5599
  };
5240
5600
  bindingsUtils.indicatorsWithAxes = [
5601
+ 'apo',
5241
5602
  'ad',
5603
+ 'aroon',
5604
+ 'aroonoscillator',
5242
5605
  'atr',
5606
+ 'ao',
5243
5607
  'cci',
5608
+ 'chaikin',
5244
5609
  'cmf',
5245
- 'disparityindex',
5246
5610
  'cmo',
5611
+ 'disparityindex',
5247
5612
  'dmi',
5613
+ 'dpo',
5614
+ 'linearRegressionAngle',
5615
+ 'linearRegressionIntercept',
5616
+ 'linearRegressionSlope',
5617
+ 'klinger',
5248
5618
  'macd',
5249
5619
  'mfi',
5250
- 'roc',
5251
- 'rsi',
5252
- 'ao',
5253
- 'aroon',
5254
- 'aroonoscillator',
5255
- 'trix',
5256
- 'apo',
5257
- 'dpo',
5258
- 'ppo',
5620
+ 'momentum',
5259
5621
  'natr',
5260
5622
  'obv',
5261
- 'williamsr',
5262
- 'stochastic',
5623
+ 'ppo',
5624
+ 'roc',
5625
+ 'rsi',
5263
5626
  'slowstochastic',
5264
- 'linearRegression',
5265
- 'linearRegressionSlope',
5266
- 'linearRegressionIntercept',
5267
- 'linearRegressionAngle',
5268
- 'klinger'
5627
+ 'stochastic',
5628
+ 'trix',
5629
+ 'williamsr'
5269
5630
  ];
5270
5631
  bindingsUtils.manageIndicators = function (data) {
5271
5632
  var navigation = this,
@@ -6122,7 +6483,7 @@
6122
6483
  *
6123
6484
  * @type {Highcharts.NavigationBindingsOptionsObject}
6124
6485
  * @product highstock
6125
- * @default {"className": "highcharts-crooked3", "start": function() {}, "steps": [function() {}, function() {}, function() {}, function() {}], "annotationsOptions": {}}
6486
+ * @default {"className": "highcharts-crooked5", "start": function() {}, "steps": [function() {}, function() {}, function() {}, function() {}], "annotationsOptions": {}}
6126
6487
  */
6127
6488
  crooked5: {
6128
6489
  /** @ignore-option */
@@ -6141,7 +6502,7 @@
6141
6502
  y = coordsY.value,
6142
6503
  navigation = this.chart.options.navigation,
6143
6504
  options = merge({
6144
- langKey: 'crookedLine',
6505
+ langKey: 'crooked5',
6145
6506
  type: 'crookedLine',
6146
6507
  typeOptions: {
6147
6508
  xAxis: coordsX.axis.options.index,
@@ -6215,7 +6576,7 @@
6215
6576
  },
6216
6577
  labelOptions: {
6217
6578
  style: {
6218
- color: palette.neutralColor60
6579
+ color: "#666666" /* neutralColor60 */
6219
6580
  }
6220
6581
  }
6221
6582
  },
@@ -6277,7 +6638,7 @@
6277
6638
  },
6278
6639
  labelOptions: {
6279
6640
  style: {
6280
- color: palette.neutralColor60
6641
+ color: "#666666" /* neutralColor60 */
6281
6642
  }
6282
6643
  }
6283
6644
  },
@@ -6329,23 +6690,23 @@
6329
6690
  y: y },
6330
6691
  crosshairX: {
6331
6692
  strokeWidth: 1,
6332
- stroke: palette.neutralColor100
6693
+ stroke: "#000000" /* neutralColor100 */
6333
6694
  },
6334
6695
  crosshairY: {
6335
6696
  enabled: false,
6336
6697
  strokeWidth: 0,
6337
- stroke: palette.neutralColor100
6698
+ stroke: "#000000" /* neutralColor100 */
6338
6699
  },
6339
6700
  background: {
6340
6701
  width: 0,
6341
6702
  height: 0,
6342
6703
  strokeWidth: 0,
6343
- stroke: palette.backgroundColor
6704
+ stroke: "#ffffff" /* backgroundColor */
6344
6705
  }
6345
6706
  },
6346
6707
  labelOptions: {
6347
6708
  style: {
6348
- color: palette.neutralColor60
6709
+ color: "#666666" /* neutralColor60 */
6349
6710
  }
6350
6711
  }
6351
6712
  },
@@ -6394,22 +6755,22 @@
6394
6755
  crosshairX: {
6395
6756
  enabled: false,
6396
6757
  strokeWidth: 0,
6397
- stroke: palette.neutralColor100
6758
+ stroke: "#000000" /* neutralColor100 */
6398
6759
  },
6399
6760
  crosshairY: {
6400
6761
  strokeWidth: 1,
6401
- stroke: palette.neutralColor100
6762
+ stroke: "#000000" /* neutralColor100 */
6402
6763
  },
6403
6764
  background: {
6404
6765
  width: 0,
6405
6766
  height: 0,
6406
6767
  strokeWidth: 0,
6407
- stroke: palette.backgroundColor
6768
+ stroke: "#ffffff" /* backgroundColor */
6408
6769
  }
6409
6770
  },
6410
6771
  labelOptions: {
6411
6772
  style: {
6412
- color: palette.neutralColor60
6773
+ color: "#666666" /* neutralColor60 */
6413
6774
  }
6414
6775
  }
6415
6776
  },
@@ -6462,16 +6823,16 @@
6462
6823
  },
6463
6824
  crosshairX: {
6464
6825
  strokeWidth: 1,
6465
- stroke: palette.neutralColor100
6826
+ stroke: "#000000" /* neutralColor100 */
6466
6827
  },
6467
6828
  crosshairY: {
6468
6829
  strokeWidth: 1,
6469
- stroke: palette.neutralColor100
6830
+ stroke: "#000000" /* neutralColor100 */
6470
6831
  }
6471
6832
  },
6472
6833
  labelOptions: {
6473
6834
  style: {
6474
- color: palette.neutralColor60
6835
+ color: "#666666" /* neutralColor60 */
6475
6836
  }
6476
6837
  }
6477
6838
  },
@@ -6524,7 +6885,7 @@
6524
6885
  },
6525
6886
  labelOptions: {
6526
6887
  style: {
6527
- color: palette.neutralColor60
6888
+ color: "#666666" /* neutralColor60 */
6528
6889
  }
6529
6890
  }
6530
6891
  },
@@ -6618,7 +6979,7 @@
6618
6979
  y: coordsY.value,
6619
6980
  controlPoint: {
6620
6981
  style: {
6621
- fill: palette.negativeColor
6982
+ fill: "#f21313" /* negativeColor */
6622
6983
  }
6623
6984
  }
6624
6985
  }, { x: x, y: y },
@@ -6682,7 +7043,7 @@
6682
7043
  },
6683
7044
  labelOptions: {
6684
7045
  style: {
6685
- color: palette.neutralColor60,
7046
+ color: "#666666" /* neutralColor60 */,
6686
7047
  fontSize: '11px'
6687
7048
  }
6688
7049
  },
@@ -6705,6 +7066,44 @@
6705
7066
  * @product highstock
6706
7067
  * @default {"className": "highcharts-vertical-label", "start": function() {}, "annotationsOptions": {}}
6707
7068
  */
7069
+ timeCycles: {
7070
+ className: 'highcharts-time-cycles',
7071
+ start: function (e) {
7072
+ var closestPoint = bindingsUtils.attractToPoint(e,
7073
+ this.chart),
7074
+ navigation = this.chart.options.navigation,
7075
+ options,
7076
+ annotation;
7077
+ // Exit if clicked out of axes area
7078
+ if (!closestPoint) {
7079
+ return;
7080
+ }
7081
+ options = merge({
7082
+ langKey: 'timeCycles',
7083
+ type: 'timeCycles',
7084
+ typeOptions: {
7085
+ xAxis: closestPoint.xAxis,
7086
+ yAxis: closestPoint.yAxis,
7087
+ points: [{
7088
+ x: closestPoint.x
7089
+ }, {
7090
+ x: closestPoint.x
7091
+ }],
7092
+ line: {
7093
+ stroke: 'rgba(0, 0, 0, 0.75)',
7094
+ fill: 'transparent',
7095
+ strokeWidth: 2
7096
+ }
7097
+ }
7098
+ }, navigation.annotationsOptions, navigation.bindings.timeCycles.annotationsOptions);
7099
+ annotation = this.chart.addAnnotation(options);
7100
+ annotation.options.events.click.call(annotation, {});
7101
+ return annotation;
7102
+ },
7103
+ steps: [
7104
+ bindingsUtils.updateNthPoint(1)
7105
+ ]
7106
+ },
6708
7107
  verticalLabel: {
6709
7108
  /** @ignore-option */
6710
7109
  className: 'highcharts-vertical-label',
@@ -6736,7 +7135,7 @@
6736
7135
  },
6737
7136
  labelOptions: {
6738
7137
  style: {
6739
- color: palette.neutralColor60,
7138
+ color: "#666666" /* neutralColor60 */,
6740
7139
  fontSize: '11px'
6741
7140
  }
6742
7141
  },
@@ -6752,8 +7151,8 @@
6752
7151
  /**
6753
7152
  * A vertical arrow annotation bindings. Includes `start` event. On click,
6754
7153
  * finds the closest point and marks it with an arrow.
6755
- * `${palette.positiveColor}` is the color of the arrow when
6756
- * pointing from above and `${palette.negativeColor}`
7154
+ * `#06b535` is the color of the arrow when
7155
+ * pointing from above and `#f21313`
6757
7156
  * when pointing from below the point.
6758
7157
  *
6759
7158
  * @type {Highcharts.NavigationBindingsOptionsObject}
@@ -6792,7 +7191,7 @@
6792
7191
  connector: {
6793
7192
  fill: 'none',
6794
7193
  stroke: closestPoint.below ?
6795
- palette.negativeColor : palette.positiveColor
7194
+ "#f21313" /* negativeColor */ : "#06b535" /* positiveColor */
6796
7195
  }
6797
7196
  },
6798
7197
  shapeOptions: {
@@ -6804,6 +7203,66 @@
6804
7203
  annotation.options.events.click.call(annotation, {});
6805
7204
  }
6806
7205
  },
7206
+ /**
7207
+ * The Fibonacci Time Zones annotation bindings. Includes `start` and one
7208
+ * event in `steps` array.
7209
+ *
7210
+ * @type {Highcharts.NavigationBindingsOptionsObject}
7211
+ * @product highstock
7212
+ * @default {"className": "highcharts-fibonacci-time-zones", "start": function() {}, "steps": [function() {}], "annotationsOptions": {}}
7213
+ */
7214
+ fibonacciTimeZones: {
7215
+ /** @ignore-option */
7216
+ className: 'highcharts-fibonacci-time-zones',
7217
+ // eslint-disable-next-line valid-jsdoc
7218
+ /** @ignore-option */
7219
+ start: function (e) {
7220
+ var coords = this.chart.pointer.getCoordinates(e),
7221
+ coordsX = this.utils.getAssignedAxis(coords.xAxis),
7222
+ coordsY = this.utils.getAssignedAxis(coords.yAxis);
7223
+ // Exit if clicked out of axes area
7224
+ if (!coordsX || !coordsY) {
7225
+ return;
7226
+ }
7227
+ var navigation = this.chart.options.navigation,
7228
+ options = merge({
7229
+ type: 'fibonacciTimeZones',
7230
+ langKey: 'fibonacciTimeZones',
7231
+ typeOptions: {
7232
+ xAxis: coordsX.axis.options.index,
7233
+ yAxis: coordsY.axis.options.index,
7234
+ points: [{
7235
+ x: coordsX.value
7236
+ }]
7237
+ }
7238
+ },
7239
+ navigation.annotationsOptions,
7240
+ navigation.bindings.fibonacciTimeZones.annotationsOptions);
7241
+ return this.chart.addAnnotation(options);
7242
+ },
7243
+ /** @ignore-option */
7244
+ // eslint-disable-next-line valid-jsdoc
7245
+ steps: [
7246
+ function (e, annotation) {
7247
+ var mockPointOpts = annotation.options.typeOptions.points,
7248
+ x = mockPointOpts && mockPointOpts[0].x,
7249
+ coords = this.chart.pointer.getCoordinates(e),
7250
+ coordsX = this.utils.getAssignedAxis(coords.xAxis),
7251
+ coordsY = this.utils.getAssignedAxis(coords.yAxis);
7252
+ annotation.update({
7253
+ typeOptions: {
7254
+ xAxis: coordsX.axis.options.index,
7255
+ yAxis: coordsY.axis.options.index,
7256
+ points: [{
7257
+ x: x
7258
+ }, {
7259
+ x: coordsX.value
7260
+ }]
7261
+ }
7262
+ });
7263
+ }
7264
+ ]
7265
+ },
6807
7266
  // Flag types:
6808
7267
  /**
6809
7268
  * A flag series bindings. Includes `start` event. On click, finds the
@@ -7007,6 +7466,23 @@
7007
7466
  fireEvent(this, 'deselectButton', { button: button });
7008
7467
  }
7009
7468
  },
7469
+ /**
7470
+ * Change main series to `'hlc'` type.
7471
+ *
7472
+ * @type {Highcharts.NavigationBindingsOptionsObject}
7473
+ * @product highstock
7474
+ * @default {"className": "highcharts-series-type-hlc", "init": function () {}}
7475
+ */
7476
+ seriesTypeHLC: {
7477
+ className: 'highcharts-series-type-hlc',
7478
+ init: function (button) {
7479
+ this.chart.series[0].update({
7480
+ type: 'hlc',
7481
+ useOhlcData: true
7482
+ });
7483
+ fireEvent(this, 'deselectButton', { button: button });
7484
+ }
7485
+ },
7010
7486
  /**
7011
7487
  * Changes main series to `'hollowcandlestick'` type.
7012
7488
  *
@@ -7258,10 +7734,12 @@
7258
7734
  typeOHLC: 'OHLC',
7259
7735
  typeLine: 'Line',
7260
7736
  typeCandlestick: 'Candlestick',
7737
+ typeHLC: 'HLC',
7261
7738
  typeHollowCandlestick: 'Hollow Candlestick',
7262
7739
  typeHeikinAshi: 'Heikin Ashi',
7263
7740
  // Basic shapes:
7264
7741
  circle: 'Circle',
7742
+ ellipse: 'Ellipse',
7265
7743
  label: 'Label',
7266
7744
  rectangle: 'Rectangle',
7267
7745
  // Flags:
@@ -7279,7 +7757,7 @@
7279
7757
  ray: 'Ray',
7280
7758
  arrowRay: 'Arrow ray',
7281
7759
  line: 'Line',
7282
- arrowLine: 'Arrow line',
7760
+ arrowInfinityLine: 'Arrow line',
7283
7761
  horizontalLine: 'Horizontal line',
7284
7762
  verticalLine: 'Vertical line',
7285
7763
  infinityLine: 'Infinity line',
@@ -7294,14 +7772,17 @@
7294
7772
  verticalArrow: 'Vertical arrow',
7295
7773
  // Advanced:
7296
7774
  fibonacci: 'Fibonacci',
7775
+ fibonacciTimeZones: 'Fibonacci Time Zones',
7297
7776
  pitchfork: 'Pitchfork',
7298
- parallelChannel: 'Parallel channel'
7777
+ parallelChannel: 'Parallel channel',
7778
+ timeCycles: 'Time Cycles'
7299
7779
  }
7300
7780
  },
7301
7781
  navigation: {
7302
7782
  popup: {
7303
7783
  // Annotations:
7304
7784
  circle: 'Circle',
7785
+ ellipse: 'Ellipse',
7305
7786
  rectangle: 'Rectangle',
7306
7787
  label: 'Label',
7307
7788
  segment: 'Segment',
@@ -7309,7 +7790,7 @@
7309
7790
  ray: 'Ray',
7310
7791
  arrowRay: 'Arrow ray',
7311
7792
  line: 'Line',
7312
- arrowLine: 'Arrow line',
7793
+ arrowInfinityLine: 'Arrow line',
7313
7794
  horizontalLine: 'Horizontal line',
7314
7795
  verticalLine: 'Vertical line',
7315
7796
  crooked3: 'Crooked 3 line',
@@ -7320,6 +7801,7 @@
7320
7801
  verticalLabel: 'Vertical label',
7321
7802
  verticalArrow: 'Vertical arrow',
7322
7803
  fibonacci: 'Fibonacci',
7804
+ fibonacciTimeZones: 'Fibonacci Time Zones',
7323
7805
  pitchfork: 'Pitchfork',
7324
7806
  parallelChannel: 'Parallel channel',
7325
7807
  infinityLine: 'Infinity line',
@@ -7327,6 +7809,7 @@
7327
7809
  measureXY: 'Measure XY',
7328
7810
  measureX: 'Measure X',
7329
7811
  measureY: 'Measure Y',
7812
+ timeCycles: 'Time Cycles',
7330
7813
  // Flags:
7331
7814
  flags: 'Flags',
7332
7815
  // GUI elements:
@@ -7344,7 +7827,11 @@
7344
7827
  crosshairY: 'Crosshair Y',
7345
7828
  tunnel: 'Tunnel',
7346
7829
  background: 'Background',
7830
+ // Indicators' searchbox (#16019):
7831
+ noFilterMatch: 'No match',
7347
7832
  // Indicators' params (#15170):
7833
+ searchIndicators: 'Search Indicators',
7834
+ clearFilter: '\u2715 clear filter',
7348
7835
  index: 'Index',
7349
7836
  period: 'Period',
7350
7837
  periods: 'Periods',
@@ -7372,7 +7859,346 @@
7372
7859
  factor: 'Factor',
7373
7860
  fastAvgPeriod: 'Fast average period',
7374
7861
  slowAvgPeriod: 'Slow average period',
7375
- average: 'Average'
7862
+ average: 'Average',
7863
+ /**
7864
+ * Configure the aliases for indicator names.
7865
+ *
7866
+ * @product highstock
7867
+ * @since 9.3.0
7868
+ */
7869
+ indicatorAliases: {
7870
+ // Overlays
7871
+ /**
7872
+ * Acceleration Bands alias.
7873
+ *
7874
+ * @default ['Acceleration Bands']
7875
+ * @type {Array<string>}
7876
+ */
7877
+ abands: ['Acceleration Bands'],
7878
+ /**
7879
+ * Bollinger Bands alias.
7880
+ *
7881
+ * @default ['Bollinger Bands']
7882
+ * @type {Array<string>}
7883
+ */
7884
+ bb: ['Bollinger Bands'],
7885
+ /**
7886
+ * Double Exponential Moving Average alias.
7887
+ *
7888
+ * @default ['Double Exponential Moving Average']
7889
+ * @type {Array<string>}
7890
+ */
7891
+ dema: ['Double Exponential Moving Average'],
7892
+ /**
7893
+ * Exponential Moving Average alias.
7894
+ *
7895
+ * @default ['Exponential Moving Average']
7896
+ * @type {Array<string>}
7897
+ */
7898
+ ema: ['Exponential Moving Average'],
7899
+ /**
7900
+ * Ichimoku Kinko Hyo alias.
7901
+ *
7902
+ * @default ['Ichimoku Kinko Hyo']
7903
+ * @type {Array<string>}
7904
+ */
7905
+ ikh: ['Ichimoku Kinko Hyo'],
7906
+ /**
7907
+ * Keltner Channels alias.
7908
+ *
7909
+ * @default ['Keltner Channels']
7910
+ * @type {Array<string>}
7911
+ */
7912
+ keltnerchannels: ['Keltner Channels'],
7913
+ /**
7914
+ * Linear Regression alias.
7915
+ *
7916
+ * @default ['Linear Regression']
7917
+ * @type {Array<string>}
7918
+ */
7919
+ linearRegression: ['Linear Regression'],
7920
+ /**
7921
+ * Pivot Points alias.
7922
+ *
7923
+ * @default ['Pivot Points']
7924
+ * @type {Array<string>}
7925
+ */
7926
+ pivotpoints: ['Pivot Points'],
7927
+ /**
7928
+ * Price Channel alias.
7929
+ *
7930
+ * @default ['Price Channel']
7931
+ * @type {Array<string>}
7932
+ */
7933
+ pc: ['Price Channel'],
7934
+ /**
7935
+ * Price Envelopes alias.
7936
+ *
7937
+ * @default ['Price Envelopes']
7938
+ * @type {Array<string>}
7939
+ */
7940
+ priceenvelopes: ['Price Envelopes'],
7941
+ /**
7942
+ * Parabolic SAR alias.
7943
+ *
7944
+ * @default ['Parabolic SAR']
7945
+ * @type {Array<string>}
7946
+ */
7947
+ psar: ['Parabolic SAR'],
7948
+ /**
7949
+ * Simple Moving Average alias.
7950
+ *
7951
+ * @default ['Simple Moving Average']
7952
+ * @type {Array<string>}
7953
+ */
7954
+ sma: ['Simple Moving Average'],
7955
+ /**
7956
+ * Super Trend alias.
7957
+ *
7958
+ * @default ['Super Trend']
7959
+ * @type {Array<string>}
7960
+ */
7961
+ supertrend: ['Super Trend'],
7962
+ /**
7963
+ * Triple Exponential Moving Average alias.
7964
+ *
7965
+ * @default ['Triple Exponential Moving Average']
7966
+ * @type {Array<string>}
7967
+ */
7968
+ tema: ['Triple Exponential Moving Average'],
7969
+ /**
7970
+ * Volume by Price alias.
7971
+ *
7972
+ * @default ['Volume by Price']
7973
+ * @type {Array<string>}
7974
+ */
7975
+ vbp: ['Volume by Price'],
7976
+ /**
7977
+ * Volume Weighted Moving Average alias.
7978
+ *
7979
+ * @default ['Volume Weighted Moving Average']
7980
+ * @type {Array<string>}
7981
+ */
7982
+ vwap: ['Volume Weighted Moving Average'],
7983
+ /**
7984
+ * Weighted Moving Average alias.
7985
+ *
7986
+ * @default ['Weighted Moving Average']
7987
+ * @type {Array<string>}
7988
+ */
7989
+ wma: ['Weighted Moving Average'],
7990
+ /**
7991
+ * Zig Zagalias.
7992
+ *
7993
+ * @default ['Zig Zag']
7994
+ * @type {Array<string>}
7995
+ */
7996
+ zigzag: ['Zig Zag'],
7997
+ // Oscilators
7998
+ /**
7999
+ * Absolute price indicator alias.
8000
+ *
8001
+ * @default ['Absolute price indicator']
8002
+ * @type {Array<string>}
8003
+ */
8004
+ apo: ['Absolute price indicator'],
8005
+ /**
8006
+ * Accumulation/Distribution alias.
8007
+ *
8008
+ * @default ['Accumulation/Distribution’]
8009
+ * @type {Array<string>}
8010
+ */
8011
+ ad: ['Accumulation/Distribution'],
8012
+ /**
8013
+ * Aroon alias.
8014
+ *
8015
+ * @default ['Aroon']
8016
+ * @type {Array<string>}
8017
+ */
8018
+ aroon: ['Aroon'],
8019
+ /**
8020
+ * Aroon oscillator alias.
8021
+ *
8022
+ * @default ['Aroon oscillator']
8023
+ * @type {Array<string>}
8024
+ */
8025
+ aroonoscillator: ['Aroon oscillator'],
8026
+ /**
8027
+ * Average True Range alias.
8028
+ *
8029
+ * @default ['Average True Range’]
8030
+ * @type {Array<string>}
8031
+ */
8032
+ atr: ['Average True Range'],
8033
+ /**
8034
+ * Awesome oscillator alias.
8035
+ *
8036
+ * @default ['Awesome oscillator’]
8037
+ * @type {Array<string>}
8038
+ */
8039
+ ao: ['Awesome oscillator'],
8040
+ /**
8041
+ * Commodity Channel Index alias.
8042
+ *
8043
+ * @default ['Commodity Channel Index’]
8044
+ * @type {Array<string>}
8045
+ */
8046
+ cci: ['Commodity Channel Index'],
8047
+ /**
8048
+ * Chaikin alias.
8049
+ *
8050
+ * @default ['Chaikin’]
8051
+ * @type {Array<string>}
8052
+ */
8053
+ chaikin: ['Chaikin'],
8054
+ /**
8055
+ * Chaikin Money Flow alias.
8056
+ *
8057
+ * @default ['Chaikin Money Flow’]
8058
+ * @type {Array<string>}
8059
+ */
8060
+ cmf: ['Chaikin Money Flow'],
8061
+ /**
8062
+ * Chande Momentum Oscillator alias.
8063
+ *
8064
+ * @default ['Chande Momentum Oscillator’]
8065
+ * @type {Array<string>}
8066
+ */
8067
+ cmo: ['Chande Momentum Oscillator'],
8068
+ /**
8069
+ * Disparity Index alias.
8070
+ *
8071
+ * @default ['Disparity Index’]
8072
+ * @type {Array<string>}
8073
+ */
8074
+ disparityindex: ['Disparity Index'],
8075
+ /**
8076
+ * Directional Movement Index alias.
8077
+ *
8078
+ * @default ['Directional Movement Index’]
8079
+ * @type {Array<string>}
8080
+ */
8081
+ dmi: ['Directional Movement Index'],
8082
+ /**
8083
+ * Detrended price oscillator alias.
8084
+ *
8085
+ * @default ['Detrended price oscillator’]
8086
+ * @type {Array<string>}
8087
+ */
8088
+ dpo: ['Detrended price oscillator'],
8089
+ /**
8090
+ * Klinger Oscillator alias.
8091
+ *
8092
+ * @default [‘Klinger Oscillator’]
8093
+ * @type {Array<string>}
8094
+ */
8095
+ klinger: ['Klinger Oscillator'],
8096
+ /**
8097
+ * Linear Regression Angle alias.
8098
+ *
8099
+ * @default [‘Linear Regression Angle’]
8100
+ * @type {Array<string>}
8101
+ */
8102
+ linearRegressionAngle: ['Linear Regression Angle'],
8103
+ /**
8104
+ * Linear Regression Intercept alias.
8105
+ *
8106
+ * @default [‘Linear Regression Intercept’]
8107
+ * @type {Array<string>}
8108
+ */
8109
+ linearRegressionIntercept: ['Linear Regression Intercept'],
8110
+ /**
8111
+ * Linear Regression Slope alias.
8112
+ *
8113
+ * @default [‘Linear Regression Slope’]
8114
+ * @type {Array<string>}
8115
+ */
8116
+ linearRegressionSlope: ['Linear Regression Slope'],
8117
+ /**
8118
+ * Moving Average Convergence Divergence alias.
8119
+ *
8120
+ * @default ['Moving Average Convergence Divergence’]
8121
+ * @type {Array<string>}
8122
+ */
8123
+ macd: ['Moving Average Convergence Divergence'],
8124
+ /**
8125
+ * Money Flow Index alias.
8126
+ *
8127
+ * @default ['Money Flow Index’]
8128
+ * @type {Array<string>}
8129
+ */
8130
+ mfi: ['Money Flow Index'],
8131
+ /**
8132
+ * Momentum alias.
8133
+ *
8134
+ * @default [‘Momentum’]
8135
+ * @type {Array<string>}
8136
+ */
8137
+ momentum: ['Momentum'],
8138
+ /**
8139
+ * Normalized Average True Range alias.
8140
+ *
8141
+ * @default ['Normalized Average True Range’]
8142
+ * @type {Array<string>}
8143
+ */
8144
+ natr: ['Normalized Average True Range'],
8145
+ /**
8146
+ * On-Balance Volume alias.
8147
+ *
8148
+ * @default ['On-Balance Volume’]
8149
+ * @type {Array<string>}
8150
+ */
8151
+ obv: ['On-Balance Volume'],
8152
+ /**
8153
+ * Percentage Price oscillator alias.
8154
+ *
8155
+ * @default ['Percentage Price oscillator’]
8156
+ * @type {Array<string>}
8157
+ */
8158
+ ppo: ['Percentage Price oscillator'],
8159
+ /**
8160
+ * Rate of Change alias.
8161
+ *
8162
+ * @default ['Rate of Change’]
8163
+ * @type {Array<string>}
8164
+ */
8165
+ roc: ['Rate of Change'],
8166
+ /**
8167
+ * Relative Strength Index alias.
8168
+ *
8169
+ * @default ['Relative Strength Index’]
8170
+ * @type {Array<string>}
8171
+ */
8172
+ rsi: ['Relative Strength Index'],
8173
+ /**
8174
+ * Slow Stochastic alias.
8175
+ *
8176
+ * @default [‘Slow Stochastic’]
8177
+ * @type {Array<string>}
8178
+ */
8179
+ slowstochastic: ['Slow Stochastic'],
8180
+ /**
8181
+ * Stochastic alias.
8182
+ *
8183
+ * @default [‘Stochastic’]
8184
+ * @type {Array<string>}
8185
+ */
8186
+ stochastic: ['Stochastic'],
8187
+ /**
8188
+ * TRIX alias.
8189
+ *
8190
+ * @default [‘TRIX’]
8191
+ * @type {Array<string>}
8192
+ */
8193
+ trix: ['TRIX'],
8194
+ /**
8195
+ * Williams %R alias.
8196
+ *
8197
+ * @default [‘Williams %R’]
8198
+ * @type {Array<string>}
8199
+ */
8200
+ williamsr: ['Williams %R']
8201
+ }
7376
8202
  }
7377
8203
  }
7378
8204
  },
@@ -7487,6 +8313,7 @@
7487
8313
  * @default [
7488
8314
  * 'label',
7489
8315
  * 'circle',
8316
+ * 'ellipse',
7490
8317
  * 'rectangle'
7491
8318
  * ]
7492
8319
  *
@@ -7494,6 +8321,7 @@
7494
8321
  items: [
7495
8322
  'label',
7496
8323
  'circle',
8324
+ 'ellipse',
7497
8325
  'rectangle'
7498
8326
  ],
7499
8327
  circle: {
@@ -7505,6 +8333,15 @@
7505
8333
  */
7506
8334
  symbol: 'circle.svg'
7507
8335
  },
8336
+ ellipse: {
8337
+ /**
8338
+ * A predefined background symbol for the button.
8339
+ *
8340
+ * @type {string}
8341
+ *
8342
+ */
8343
+ symbol: 'ellipse.svg'
8344
+ },
7508
8345
  rectangle: {
7509
8346
  /**
7510
8347
  * A predefined background symbol for the button.
@@ -7591,7 +8428,7 @@
7591
8428
  * 'ray',
7592
8429
  * 'arrowRay',
7593
8430
  * 'line',
7594
- * 'arrowLine',
8431
+ * 'arrowInfinityLine',
7595
8432
  * 'horizontalLine',
7596
8433
  * 'verticalLine'
7597
8434
  * ]
@@ -7602,7 +8439,7 @@
7602
8439
  'ray',
7603
8440
  'arrowRay',
7604
8441
  'line',
7605
- 'arrowLine',
8442
+ 'arrowInfinityLine',
7606
8443
  'horizontalLine',
7607
8444
  'verticalLine'
7608
8445
  ],
@@ -7646,7 +8483,7 @@
7646
8483
  */
7647
8484
  symbol: 'line.svg'
7648
8485
  },
7649
- arrowLine: {
8486
+ arrowInfinityLine: {
7650
8487
  /**
7651
8488
  * A predefined background symbol for the button.
7652
8489
  *
@@ -7774,14 +8611,18 @@
7774
8611
  * @type {array}
7775
8612
  * @default [
7776
8613
  * 'fibonacci',
8614
+ * 'fibonacciTimeZones',
7777
8615
  * 'pitchfork',
7778
- * 'parallelChannel'
8616
+ * 'parallelChannel',
8617
+ * 'timeCycles'
7779
8618
  * ]
7780
8619
  */
7781
8620
  items: [
7782
8621
  'fibonacci',
8622
+ 'fibonacciTimeZones',
7783
8623
  'pitchfork',
7784
- 'parallelChannel'
8624
+ 'parallelChannel',
8625
+ 'timeCycles'
7785
8626
  ],
7786
8627
  pitchfork: {
7787
8628
  /**
@@ -7799,6 +8640,14 @@
7799
8640
  */
7800
8641
  symbol: 'fibonacci.svg'
7801
8642
  },
8643
+ fibonacciTimeZones: {
8644
+ /**
8645
+ * A predefined background symbol for the button.
8646
+ *
8647
+ * @type {string}
8648
+ */
8649
+ symbol: 'fibonacci-timezone.svg'
8650
+ },
7802
8651
  parallelChannel: {
7803
8652
  /**
7804
8653
  * A predefined background symbol for the button.
@@ -7806,6 +8655,14 @@
7806
8655
  * @type {string}
7807
8656
  */
7808
8657
  symbol: 'parallel-channel.svg'
8658
+ },
8659
+ timeCycles: {
8660
+ /**
8661
+ * A predefined backgroud symbol for the button.
8662
+ *
8663
+ * @type {string}
8664
+ */
8665
+ symbol: 'time-cycles.svg'
7809
8666
  }
7810
8667
  },
7811
8668
  measure: {
@@ -7934,6 +8791,7 @@
7934
8791
  'typeLine',
7935
8792
  'typeCandlestick',
7936
8793
  'typeHollowCandlestick',
8794
+ 'typeHLC',
7937
8795
  'typeHeikinAshi'
7938
8796
  ],
7939
8797
  typeOHLC: {
@@ -7960,6 +8818,14 @@
7960
8818
  */
7961
8819
  symbol: 'series-candlestick.svg'
7962
8820
  },
8821
+ typeHLC: {
8822
+ /**
8823
+ * A predefined background symbol for the button.
8824
+ *
8825
+ * @type {string}
8826
+ */
8827
+ symbol: 'series-hlc.svg'
8828
+ },
7963
8829
  typeHeikinAshi: {
7964
8830
  /**
7965
8831
  * A predefined background symbol for the button.
@@ -8557,7 +9423,7 @@
8557
9423
  Toolbar.prototype.getIconsURL = function () {
8558
9424
  return this.chart.options.navigation.iconsURL ||
8559
9425
  this.options.iconsURL ||
8560
- 'https://code.highcharts.com/9.2.2/gfx/stock-icons/';
9426
+ 'https://code.highcharts.com/9.3.0/gfx/stock-icons/';
8561
9427
  };
8562
9428
  return Toolbar;
8563
9429
  }());
@@ -8567,6 +9433,7 @@
8567
9433
  */
8568
9434
  Toolbar.prototype.classMapping = {
8569
9435
  circle: PREFIX + 'circle-annotation',
9436
+ ellipse: PREFIX + 'ellipse-annotation',
8570
9437
  rectangle: PREFIX + 'rectangle-annotation',
8571
9438
  label: PREFIX + 'label-annotation',
8572
9439
  segment: PREFIX + 'segment',
@@ -8574,7 +9441,7 @@
8574
9441
  ray: PREFIX + 'ray',
8575
9442
  arrowRay: PREFIX + 'arrow-ray',
8576
9443
  line: PREFIX + 'infinity-line',
8577
- arrowLine: PREFIX + 'arrow-infinity-line',
9444
+ arrowInfinityLine: PREFIX + 'arrow-infinity-line',
8578
9445
  verticalLine: PREFIX + 'vertical-line',
8579
9446
  horizontalLine: PREFIX + 'horizontal-line',
8580
9447
  crooked3: PREFIX + 'crooked3',
@@ -8583,10 +9450,12 @@
8583
9450
  elliott5: PREFIX + 'elliott5',
8584
9451
  pitchfork: PREFIX + 'pitchfork',
8585
9452
  fibonacci: PREFIX + 'fibonacci',
9453
+ fibonacciTimeZones: PREFIX + 'fibonacci-time-zones',
8586
9454
  parallelChannel: PREFIX + 'parallel-channel',
8587
9455
  measureX: PREFIX + 'measure-x',
8588
9456
  measureY: PREFIX + 'measure-y',
8589
9457
  measureXY: PREFIX + 'measure-xy',
9458
+ timeCycles: PREFIX + 'time-cycles',
8590
9459
  verticalCounter: PREFIX + 'vertical-counter',
8591
9460
  verticalLabel: PREFIX + 'vertical-label',
8592
9461
  verticalArrow: PREFIX + 'vertical-arrow',
@@ -8601,6 +9470,7 @@
8601
9470
  zoomXY: PREFIX + 'zoom-xy',
8602
9471
  typeLine: PREFIX + 'series-type-line',
8603
9472
  typeOHLC: PREFIX + 'series-type-ohlc',
9473
+ typeHLC: PREFIX + 'series-type-hlc',
8604
9474
  typeCandlestick: PREFIX + 'series-type-candlestick',
8605
9475
  typeHollowCandlestick: PREFIX + 'series-type-hollowcandlestick',
8606
9476
  typeHeikinAshi: PREFIX + 'series-type-heikinashi',