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.
- package/README.md +13 -6
- package/bower.json +1 -1
- package/css/annotations/popup.css +48 -8
- package/css/annotations/popup.scss +70 -22
- package/css/highcharts.css +45 -0
- package/css/highcharts.scss +40 -0
- package/css/themes/dark-unica.css +45 -0
- package/css/themes/grid-light.css +45 -0
- package/css/themes/sand-signika.css +45 -0
- package/es-modules/Accessibility/A11yI18n.js +273 -224
- package/es-modules/Accessibility/Accessibility.js +233 -128
- package/es-modules/Accessibility/AccessibilityComponent.js +79 -314
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +10 -0
- package/es-modules/Accessibility/Components/ContainerComponent.js +52 -27
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +46 -23
- package/es-modules/Accessibility/Components/LegendComponent.js +97 -65
- package/es-modules/Accessibility/Components/MenuComponent.js +59 -40
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -8
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +152 -115
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +133 -68
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +64 -27
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +38 -21
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +380 -325
- package/es-modules/Accessibility/Components/ZoomComponent.js +28 -20
- package/es-modules/Accessibility/FocusBorder.js +192 -147
- package/es-modules/Accessibility/HighContrastMode.js +78 -66
- package/es-modules/Accessibility/HighContrastTheme.js +10 -0
- package/es-modules/Accessibility/KeyboardNavigation.js +144 -70
- package/es-modules/Accessibility/KeyboardNavigationHandler.js +71 -44
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +11 -1
- package/es-modules/Accessibility/Options/LangOptions.js +1 -2
- package/es-modules/Accessibility/Options/Options.js +32 -17
- package/es-modules/Accessibility/ProxyElement.js +212 -0
- package/es-modules/Accessibility/ProxyProvider.js +305 -0
- package/es-modules/Accessibility/Utils/Announcer.js +15 -8
- package/es-modules/Accessibility/Utils/ChartUtilities.js +41 -16
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +27 -15
- package/es-modules/Accessibility/Utils/EventProvider.js +27 -17
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +125 -30
- package/es-modules/Core/Axis/Axis.js +37 -30
- package/es-modules/Core/Axis/AxisDefaults.js +35 -24
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +54 -4
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +5 -5
- package/es-modules/Core/Axis/OrdinalAxis.js +8 -12
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +4 -5
- package/es-modules/Core/Axis/ScrollbarAxis.js +10 -3
- package/es-modules/Core/Axis/TreeGridAxis.js +2 -2
- package/es-modules/Core/Axis/TreeGridTick.js +1 -2
- package/es-modules/Core/Chart/Chart.js +2 -3
- package/es-modules/Core/Chart/ChartDefaults.js +3 -4
- package/es-modules/Core/Chart/ChartNavigationComposition.js +92 -0
- package/es-modules/Core/Chart/MapChart.js +10 -22
- package/es-modules/Core/Chart/StockChart.js +3 -293
- package/es-modules/Core/Color/Palettes.js +22 -0
- package/es-modules/Core/DefaultOptions.js +19 -17
- package/es-modules/Core/Foundation.js +39 -31
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/HttpUtilities.js +3 -3
- package/es-modules/Core/Legend/Legend.js +7 -3
- package/es-modules/Core/Navigator.js +7 -8
- package/es-modules/Core/Pointer.js +39 -36
- package/es-modules/Core/Renderer/HTML/AST.js +2 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -18
- package/es-modules/Core/Renderer/SVG/SVGElement.js +3 -4
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +21 -18
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +3 -3
- package/es-modules/Core/ScrollbarDefaults.js +10 -9
- package/es-modules/Core/Series/DataLabel.js +2 -3
- package/es-modules/Core/Series/Point.js +5 -3
- package/es-modules/Core/Series/Series.js +153 -162
- package/es-modules/Core/Series/SeriesDefaults.js +3 -4
- package/es-modules/Core/Series/SeriesRegistry.js +1 -2
- package/es-modules/Core/Tooltip.js +44 -17
- package/es-modules/Core/Utilities.js +15 -7
- package/es-modules/Data/DataConverter.js +489 -0
- package/es-modules/Data/DataPromise.js +252 -0
- package/es-modules/Data/DataSeriesConverter.js +203 -0
- package/es-modules/Data/DataTable.js +1204 -0
- package/es-modules/Data/Modifiers/ChainModifier.js +299 -0
- package/es-modules/Data/Modifiers/DataModifier.js +303 -0
- package/es-modules/Data/Modifiers/GroupModifier.js +144 -0
- package/es-modules/Data/Modifiers/InvertModifier.js +254 -0
- package/es-modules/Data/Modifiers/RangeModifier.js +143 -0
- package/es-modules/Data/Modifiers/SeriesPointsModifier.js +110 -0
- package/es-modules/Data/Modifiers/SortModifier.js +249 -0
- package/es-modules/Data/Parsers/CSVParser.js +399 -0
- package/es-modules/Data/Parsers/DataParser.js +101 -0
- package/es-modules/Data/Parsers/GoogleSheetsParser.js +220 -0
- package/es-modules/Data/Parsers/HTMLTableParser.js +213 -0
- package/es-modules/Data/Stores/CSVStore.js +317 -0
- package/es-modules/Data/Stores/DataStore.js +276 -0
- package/es-modules/Data/Stores/GoogleSheetsStore.js +167 -0
- package/es-modules/Data/Stores/HTMLTableStore.js +351 -0
- package/es-modules/Extensions/Annotations/Annotations.js +61 -11
- package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +199 -0
- package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +7 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +68 -19
- package/es-modules/Extensions/Annotations/Popup.js +479 -141
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +51 -2
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +2 -3
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +219 -0
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +14 -8
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +5 -5
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +207 -0
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -5
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +1 -1
- package/es-modules/Extensions/Boost/BoostOverrides.js +3 -1
- package/es-modules/Extensions/Boost/WGLShader.js +4 -3
- package/es-modules/Extensions/BoostCanvas.js +1 -2
- package/es-modules/Extensions/CurrentDateIndication.js +2 -3
- package/es-modules/Extensions/DataGrouping.js +31 -18
- package/es-modules/Extensions/DownloadURL.js +2 -2
- package/es-modules/Extensions/DragPanes.js +1 -2
- package/es-modules/Extensions/Drilldown.js +2 -3
- package/es-modules/Extensions/Exporting/Exporting.js +8 -7
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +8 -15
- package/es-modules/Extensions/GeoJSON.js +39 -63
- package/es-modules/Extensions/MarkerClusters.js +115 -97
- package/es-modules/Extensions/NoDataToDisplay.js +1 -2
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +9 -8
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +2 -3
- package/es-modules/Extensions/Pane.js +5 -6
- package/es-modules/Extensions/RangeSelector.js +3 -4
- package/es-modules/Extensions/Sonification/ChartSonify.js +247 -637
- package/es-modules/Extensions/Sonification/Earcon.js +136 -102
- package/es-modules/Extensions/Sonification/Instrument.js +496 -426
- package/es-modules/Extensions/Sonification/MusicalFrequencies.js +10 -0
- package/es-modules/Extensions/Sonification/Options.js +10 -0
- package/es-modules/Extensions/Sonification/PointSonify.js +203 -152
- package/es-modules/Extensions/Sonification/SeriesSonify.js +459 -0
- package/es-modules/Extensions/Sonification/SignalHandler.js +124 -0
- package/es-modules/Extensions/Sonification/Sonification.js +26 -52
- package/es-modules/Extensions/Sonification/{Utilities.js → SonificationUtilities.js} +62 -84
- package/es-modules/Extensions/Sonification/Timeline.js +255 -567
- package/es-modules/Extensions/Sonification/TimelineEvent.js +158 -0
- package/es-modules/Extensions/Sonification/TimelinePath.js +311 -0
- package/es-modules/Maps/MapNavigation.js +27 -64
- package/es-modules/Maps/MapNavigationOptionsDefault.js +3 -0
- package/es-modules/Maps/MapPointer.js +7 -5
- package/es-modules/Maps/MapView.js +450 -0
- package/es-modules/Maps/MapViewOptionsDefault.js +95 -0
- package/es-modules/Maps/Projection.js +433 -0
- package/es-modules/Maps/ProjectionDefinition.js +9 -0
- package/es-modules/Maps/Projections/EqualEarth.js +42 -0
- package/es-modules/Maps/Projections/Miller.js +17 -0
- package/es-modules/Maps/Projections/Orthographic.js +26 -0
- package/es-modules/Maps/Projections/ProjectionRegistry.js +17 -0
- package/es-modules/Maps/Projections/WebMercator.js +25 -0
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +4 -5
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -8
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +1 -2
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -2
- package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
- package/es-modules/Series/Bubble/BubblePoint.js +5 -0
- package/es-modules/Series/Bubble/BubbleSeries.js +90 -50
- package/es-modules/Series/Candlestick/CandlestickSeries.js +10 -18
- package/es-modules/{Mixins/CenteredSeries.js → Series/CenteredUtilities.js} +45 -23
- package/es-modules/Series/ColorMapComposition.js +109 -0
- package/es-modules/Series/Column/ColumnDataLabel.js +5 -5
- package/es-modules/Series/Column/ColumnSeries.js +3 -4
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +6 -6
- package/es-modules/Series/DataModifyComposition.js +539 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +2 -6
- package/es-modules/Series/DerivedComposition.js +137 -0
- package/es-modules/Series/DrawPointComposition.js +111 -0
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +2 -3
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +1 -2
- package/es-modules/Series/Flags/FlagsSeries.js +18 -25
- package/es-modules/Series/Funnel/FunnelSeries.js +6 -5
- package/es-modules/Series/Gantt/GanttSeries.js +0 -2
- package/es-modules/Series/Gauge/GaugePoint.js +1 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +7 -7
- package/es-modules/Series/HLC/HLCPoint.js +55 -0
- package/es-modules/Series/HLC/HLCSeries.js +383 -0
- package/es-modules/Series/Heatmap/HeatmapPoint.js +3 -4
- package/es-modules/Series/Heatmap/HeatmapSeries.js +19 -6
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +2 -3
- package/es-modules/Series/Histogram/HistogramSeries.js +3 -7
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +9 -10
- package/es-modules/Series/Line/LineSeries.js +1 -2
- package/es-modules/Series/Map/MapPoint.js +23 -16
- package/es-modules/Series/Map/MapSeries.js +268 -309
- package/es-modules/Series/MapBubble/MapBubblePoint.js +0 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +10 -1
- package/es-modules/Series/MapPoint/MapPointPoint.js +5 -1
- package/es-modules/Series/MapPoint/MapPointSeries.js +87 -4
- package/es-modules/Series/Networkgraph/Networkgraph.js +5 -5
- package/es-modules/{Mixins/Nodes.js → Series/NodesComposition.js} +76 -29
- package/es-modules/Series/OHLC/OHLCPoint.js +2 -6
- package/es-modules/Series/OHLC/OHLCSeries.js +55 -183
- package/es-modules/{Mixins/OnSeries.js → Series/OnSeriesComposition.js} +53 -21
- package/es-modules/Series/Organization/OrganizationSeries.js +2 -3
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +46 -6
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -7
- package/es-modules/Series/Pie/PieDataLabel.js +1 -2
- package/es-modules/Series/Pie/PieSeries.js +6 -7
- package/es-modules/Series/Sankey/SankeyPoint.js +0 -4
- package/es-modules/Series/Sankey/SankeySeries.js +89 -20
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -3
- package/es-modules/Series/Sunburst/SunburstSeries.js +4 -4
- package/es-modules/Series/Tilemap/TilemapPoint.js +2 -3
- package/es-modules/Series/Timeline/TimelineSeries.js +3 -4
- package/es-modules/{Mixins/TreeSeries.js → Series/TreeUtilities.js} +86 -76
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +8 -8
- package/es-modules/Series/Venn/VennPoint.js +16 -7
- package/es-modules/Series/Venn/VennSeries.js +5 -8
- package/es-modules/Series/Venn/VennUtils.js +550 -439
- package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -3
- package/es-modules/Series/Windbarb/WindbarbSeries.js +23 -24
- package/es-modules/Series/Wordcloud/WordcloudPoint.js +8 -6
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +24 -20
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +673 -484
- package/es-modules/Series/XRange/XRangePoint.js +1 -0
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -6
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +2 -3
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +14 -20
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -6
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +11 -13
- package/es-modules/Stock/Indicators/ArrayUtilities.js +47 -0
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +27 -11
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +6 -12
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -11
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +19 -11
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +17 -11
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +1 -3
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +11 -9
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -16
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +2 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/{Mixins/MultipleLines.js → Stock/Indicators/MultipleLinesComposition.js} +136 -87
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +1 -3
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +14 -13
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -11
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -26
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +9 -32
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +0 -8
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +15 -8
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +4 -6
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +26 -11
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +6 -12
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +20 -3
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +2 -3
- package/es-modules/Stock/StockToolsBindings.js +144 -42
- package/es-modules/Stock/StockToolsGui.js +405 -11
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ema.src.js +4 -10
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +2 -2
- package/es-modules/masters/indicators/indicators.src.js +2 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +16 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +3 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +6 -3
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -2
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -3
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +33 -2
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +4 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +1 -1
- package/highcharts-3d.src.js +1 -1
- package/highcharts-gantt.js +801 -804
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +775 -739
- package/highcharts-more.js +194 -193
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +207 -119
- package/highcharts.d.ts +9670 -4217
- package/highcharts.js +585 -588
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +9670 -4217
- package/highcharts.src.js +608 -587
- package/highmaps.js +726 -708
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2708 -1587
- package/highstock.js +788 -783
- package/highstock.js.map +1 -1
- package/highstock.src.js +1896 -1267
- package/indicators/acceleration-bands.js +10 -9
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +156 -112
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +4 -4
- package/indicators/apo.js +5 -6
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +16 -84
- package/indicators/aroon-oscillator.js +9 -9
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +160 -177
- package/indicators/aroon.js +9 -9
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +156 -112
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +10 -9
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +180 -117
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +8 -9
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +8 -76
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +5 -6
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +3 -75
- package/indicators/disparity-index.js +6 -7
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +19 -74
- package/indicators/dmi.js +11 -11
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +173 -116
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ema.js +1 -13
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +7 -188
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +197 -203
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +649 -720
- package/indicators/indicators.js +12 -12
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +188 -124
- package/indicators/keltner-channels.js +10 -10
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +164 -118
- package/indicators/klinger.js +12 -13
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +161 -184
- package/indicators/macd.js +2 -2
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +2 -3
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +3 -3
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +2 -4
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.src.js +1 -1
- package/indicators/ppo.js +5 -6
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +3 -75
- package/indicators/price-channel.js +9 -9
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +207 -168
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +9 -9
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.js +5 -6
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +2 -72
- package/indicators/stochastic.js +10 -10
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +209 -164
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +6 -7
- package/indicators/tema.js +6 -7
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +28 -75
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +4 -5
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +8 -76
- package/indicators/volume-by-price.js +16 -16
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +21 -3
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +5 -6
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +41 -51
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.d.ts +5 -0
- package/modules/accessibility.js +234 -216
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.d.ts +5 -0
- package/modules/accessibility.src.js +9709 -8608
- package/modules/annotations-advanced.d.ts +30 -0
- package/modules/annotations-advanced.js +191 -165
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.d.ts +30 -0
- package/modules/annotations-advanced.src.js +1578 -320
- package/modules/annotations.js +121 -107
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +958 -229
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +15 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +3 -3
- package/modules/boost.js +79 -79
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +10 -9
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +1 -1
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +24 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +69 -98
- package/modules/current-date-indicator.js +4 -4
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +4 -4
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +19 -19
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +9 -6
- package/modules/datagrouping.js +20 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +33 -19
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.js +11 -11
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +4 -7
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +8 -8
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +3 -3
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.src.js +1 -1
- package/modules/drilldown.js +24 -24
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +4 -4
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +4 -4
- package/modules/export-data.js +1 -1
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +3 -3
- package/modules/exporting.js +39 -38
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +98 -67
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +12 -12
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +9 -6
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +217 -218
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +167 -152
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +39 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +177 -162
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.src.js +4 -4
- package/modules/histogram-bellcurve.js +13 -13
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +91 -86
- package/modules/hollowcandlestick.js +9 -9
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +11 -11
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +1 -1
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +136 -14
- package/modules/map.js +142 -122
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +136 -14
- package/modules/map.src.js +2129 -1029
- package/modules/marker-clusters.js +36 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +173 -142
- package/modules/networkgraph.d.ts +12 -1
- package/modules/networkgraph.js +49 -49
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.d.ts +12 -1
- package/modules/networkgraph.src.js +91 -43
- package/modules/no-data-to-display.js +5 -5
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +3 -3
- package/modules/offline-exporting.js +17 -17
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +13 -13
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +26 -26
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +4 -4
- package/modules/organization.js +13 -13
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +4 -4
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.js +7 -7
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +89 -78
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.src.js +1 -1
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.d.ts +12 -1
- package/modules/sankey.js +29 -29
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.d.ts +12 -1
- package/modules/sankey.src.js +300 -176
- package/modules/series-label.js +1 -1
- package/modules/series-label.src.js +1 -1
- package/modules/solid-gauge.js +1 -1
- package/modules/solid-gauge.src.js +1 -1
- package/modules/sonification.js +59 -55
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +3034 -2553
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +177 -164
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +1001 -131
- package/modules/stock.d.ts +39 -6
- package/modules/stock.js +204 -196
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +39 -6
- package/modules/stock.src.js +1689 -1081
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +61 -60
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +329 -266
- package/modules/tilemap.js +17 -17
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +3 -4
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +5 -5
- package/modules/treegrid.js +56 -57
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +126 -120
- package/modules/treemap.js +41 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +319 -254
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +1 -1
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +1 -1
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +731 -721
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +90 -62
- package/modules/wordcloud.js +23 -24
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +897 -949
- package/modules/xrange.js +2 -2
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +2 -1
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
- package/es-modules/Core/Axis/MapAxis.js +0 -157
- package/es-modules/Core/Color/Palette.js +0 -82
- package/es-modules/Extensions/Sonification/InstrumentDefinitions.js +0 -32
- package/es-modules/Mixins/ColorMapSeries.js +0 -82
- package/es-modules/Mixins/ColorSeries.js +0 -77
- package/es-modules/Mixins/DerivedSeries.js +0 -118
- package/es-modules/Mixins/DrawPoint.js +0 -81
- package/es-modules/Mixins/IndicatorRequired.js +0 -56
- package/es-modules/Mixins/Navigation.js +0 -54
- package/es-modules/Mixins/NelderMead.js +0 -132
- package/es-modules/Mixins/Polygon.js +0 -259
- package/es-modules/Mixins/ReduceArray.js +0 -54
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highstock JS v9.
|
|
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
|
|
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']
|
|
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 &&
|
|
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
|
-
|
|
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:
|
|
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
|
|
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
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
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, '
|
|
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
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
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
|
-
|
|
4145
|
+
function compose(chart) {
|
|
3897
4146
|
if (!chart.navigation) {
|
|
3898
|
-
|
|
4147
|
+
chart.navigation = new Additions(chart);
|
|
3899
4148
|
}
|
|
3900
|
-
chart
|
|
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
|
|
4206
|
+
return ChartNavigationComposition;
|
|
3908
4207
|
});
|
|
3909
|
-
_registerModule(_modules, 'Extensions/Annotations/NavigationBindings.js', [_modules['Extensions/Annotations/Annotations.js'], _modules['Core/Chart/Chart.js'], _modules['
|
|
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
|
|
4058
|
-
|
|
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
|
-
|
|
4459
|
+
ChartNavigationComposition
|
|
4460
|
+
.compose(this.chart).navigation
|
|
4461
|
+
.addUpdate(function (options) {
|
|
4160
4462
|
navigation.update(options);
|
|
4161
|
-
}
|
|
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', '
|
|
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
|
-
*
|
|
4814
|
-
*
|
|
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
|
-
|
|
4870
|
-
.
|
|
4871
|
-
|
|
4872
|
-
.
|
|
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.
|
|
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/
|
|
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
|
-
'
|
|
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
|
-
'
|
|
5262
|
-
'
|
|
5623
|
+
'ppo',
|
|
5624
|
+
'roc',
|
|
5625
|
+
'rsi',
|
|
5263
5626
|
'slowstochastic',
|
|
5264
|
-
'
|
|
5265
|
-
'
|
|
5266
|
-
'
|
|
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-
|
|
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: '
|
|
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:
|
|
6579
|
+
color: "#666666" /* neutralColor60 */
|
|
6219
6580
|
}
|
|
6220
6581
|
}
|
|
6221
6582
|
},
|
|
@@ -6277,7 +6638,7 @@
|
|
|
6277
6638
|
},
|
|
6278
6639
|
labelOptions: {
|
|
6279
6640
|
style: {
|
|
6280
|
-
color:
|
|
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:
|
|
6693
|
+
stroke: "#000000" /* neutralColor100 */
|
|
6333
6694
|
},
|
|
6334
6695
|
crosshairY: {
|
|
6335
6696
|
enabled: false,
|
|
6336
6697
|
strokeWidth: 0,
|
|
6337
|
-
stroke:
|
|
6698
|
+
stroke: "#000000" /* neutralColor100 */
|
|
6338
6699
|
},
|
|
6339
6700
|
background: {
|
|
6340
6701
|
width: 0,
|
|
6341
6702
|
height: 0,
|
|
6342
6703
|
strokeWidth: 0,
|
|
6343
|
-
stroke:
|
|
6704
|
+
stroke: "#ffffff" /* backgroundColor */
|
|
6344
6705
|
}
|
|
6345
6706
|
},
|
|
6346
6707
|
labelOptions: {
|
|
6347
6708
|
style: {
|
|
6348
|
-
color:
|
|
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:
|
|
6758
|
+
stroke: "#000000" /* neutralColor100 */
|
|
6398
6759
|
},
|
|
6399
6760
|
crosshairY: {
|
|
6400
6761
|
strokeWidth: 1,
|
|
6401
|
-
stroke:
|
|
6762
|
+
stroke: "#000000" /* neutralColor100 */
|
|
6402
6763
|
},
|
|
6403
6764
|
background: {
|
|
6404
6765
|
width: 0,
|
|
6405
6766
|
height: 0,
|
|
6406
6767
|
strokeWidth: 0,
|
|
6407
|
-
stroke:
|
|
6768
|
+
stroke: "#ffffff" /* backgroundColor */
|
|
6408
6769
|
}
|
|
6409
6770
|
},
|
|
6410
6771
|
labelOptions: {
|
|
6411
6772
|
style: {
|
|
6412
|
-
color:
|
|
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:
|
|
6826
|
+
stroke: "#000000" /* neutralColor100 */
|
|
6466
6827
|
},
|
|
6467
6828
|
crosshairY: {
|
|
6468
6829
|
strokeWidth: 1,
|
|
6469
|
-
stroke:
|
|
6830
|
+
stroke: "#000000" /* neutralColor100 */
|
|
6470
6831
|
}
|
|
6471
6832
|
},
|
|
6472
6833
|
labelOptions: {
|
|
6473
6834
|
style: {
|
|
6474
|
-
color:
|
|
6835
|
+
color: "#666666" /* neutralColor60 */
|
|
6475
6836
|
}
|
|
6476
6837
|
}
|
|
6477
6838
|
},
|
|
@@ -6524,7 +6885,7 @@
|
|
|
6524
6885
|
},
|
|
6525
6886
|
labelOptions: {
|
|
6526
6887
|
style: {
|
|
6527
|
-
color:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
*
|
|
6756
|
-
* pointing from above and
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
* '
|
|
8431
|
+
* 'arrowInfinityLine',
|
|
7595
8432
|
* 'horizontalLine',
|
|
7596
8433
|
* 'verticalLine'
|
|
7597
8434
|
* ]
|
|
@@ -7602,7 +8439,7 @@
|
|
|
7602
8439
|
'ray',
|
|
7603
8440
|
'arrowRay',
|
|
7604
8441
|
'line',
|
|
7605
|
-
'
|
|
8442
|
+
'arrowInfinityLine',
|
|
7606
8443
|
'horizontalLine',
|
|
7607
8444
|
'verticalLine'
|
|
7608
8445
|
],
|
|
@@ -7646,7 +8483,7 @@
|
|
|
7646
8483
|
*/
|
|
7647
8484
|
symbol: 'line.svg'
|
|
7648
8485
|
},
|
|
7649
|
-
|
|
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.
|
|
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
|
-
|
|
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',
|