highcharts 10.2.1 → 10.3.1
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/bower.json +1 -1
- package/es-modules/Accessibility/Accessibility.js +1 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +9 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +36 -32
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -16
- package/es-modules/Accessibility/Options/LangDefaults.js +4 -0
- package/es-modules/Core/Axis/Axis.js +42 -32
- package/es-modules/Core/Axis/Axis3DComposition.js +501 -0
- package/es-modules/Core/Axis/Axis3DDefaults.js +130 -0
- package/es-modules/Core/Axis/AxisDefaults.js +20 -7
- package/es-modules/Core/Axis/Color/ColorAxis.js +46 -52
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +4 -2
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +161 -0
- package/es-modules/Core/Axis/OrdinalAxis.js +2 -1
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +1 -1
- package/es-modules/Core/Axis/RadialAxis.js +19 -5
- package/es-modules/Core/Axis/Tick.js +1 -1
- package/es-modules/Core/Axis/Tick3DComposition.js +71 -0
- package/es-modules/Core/Chart/Chart.js +16 -20
- package/es-modules/Core/Chart/Chart3D.js +4 -4
- package/es-modules/Core/Chart/ChartDefaults.js +33 -43
- package/es-modules/Core/Chart/GanttChart.js +1 -1
- package/es-modules/Core/Chart/MapChart.js +1 -1
- package/es-modules/Core/Chart/StockChart.js +11 -28
- package/es-modules/Core/{DefaultOptions.js → Defaults.js} +21 -37
- package/es-modules/Core/FormatUtilities.js +1 -1
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +114 -110
- package/es-modules/Core/Legend/LegendSymbol.js +9 -6
- package/es-modules/Core/MSPointer.js +4 -2
- package/es-modules/Core/Pointer.js +125 -75
- package/es-modules/Core/Renderer/SVG/SVGElement.js +0 -3
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +28 -14
- package/es-modules/Core/Series/DataLabel.js +8 -5
- package/es-modules/Core/Series/Point.js +38 -22
- package/es-modules/Core/Series/Series.js +12 -9
- package/es-modules/Core/Series/SeriesDefaults.js +36 -24
- package/es-modules/Core/Series/SeriesRegistry.js +2 -2
- package/es-modules/Core/Time.js +6 -5
- package/es-modules/Core/Tooltip.js +6 -28
- package/es-modules/Core/Utilities.js +6 -8
- package/es-modules/Extensions/Annotations/Annotation.js +1 -1
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +13 -8
- package/es-modules/Extensions/Annotations/MockPoint.js +2 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +4 -5
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/Popup.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +4 -4
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +1 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +11 -8
- package/es-modules/Extensions/Breadcrumbs.js +2 -2
- package/es-modules/Extensions/Data.js +2 -2
- package/es-modules/Extensions/DataGrouping/ApproximationDefaults.js +157 -0
- package/es-modules/Extensions/DataGrouping/ApproximationRegistry.js +35 -0
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +469 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +174 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +143 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +479 -0
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +6 -2
- package/es-modules/Extensions/Drilldown.js +3 -5
- package/es-modules/Extensions/ExportData/ExportData.js +31 -5
- package/es-modules/Extensions/Exporting/Exporting.js +47 -60
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +22 -24
- package/es-modules/Extensions/GeoJSON.js +3 -1
- package/es-modules/Extensions/MarkerClusters.js +1 -1
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +3 -3
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +1 -1
- package/es-modules/Extensions/OldiePolyfills.js +3 -1
- package/es-modules/Extensions/Pane.js +42 -5
- package/es-modules/Extensions/ParallelCoordinates.js +5 -1
- package/es-modules/Extensions/PatternFill.js +10 -10
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +2 -2
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +4 -0
- package/es-modules/Extensions/Sonification/Sonification.js +1 -1
- package/es-modules/Extensions/Themes/Avocado.js +1 -1
- package/es-modules/Extensions/Themes/BrandDark.js +1 -1
- package/es-modules/Extensions/Themes/BrandLight.js +1 -1
- package/es-modules/Extensions/Themes/DarkBlue.js +1 -1
- package/es-modules/Extensions/Themes/DarkGreen.js +1 -1
- package/es-modules/Extensions/Themes/DarkUnica.js +1 -1
- package/es-modules/Extensions/Themes/Gray.js +1 -1
- package/es-modules/Extensions/Themes/Grid.js +1 -1
- package/es-modules/Extensions/Themes/GridLight.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastDark.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastLight.js +1 -1
- package/es-modules/Extensions/Themes/SandSignika.js +1 -1
- package/es-modules/Extensions/Themes/Skies.js +1 -1
- package/es-modules/Extensions/Themes/Sunset.js +1 -1
- package/es-modules/Gantt/Connection.js +5 -5
- package/es-modules/Gantt/Pathfinder.js +6 -6
- package/es-modules/Maps/MapNavigation.js +1 -1
- package/es-modules/Maps/{MapNavigationOptionsDefault.js → MapNavigationDefaults.js} +4 -4
- package/es-modules/Maps/MapViewOptionsDefault.js +4 -4
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +3 -5
- package/es-modules/Series/AreaRange/AreaRangePoint.js +6 -10
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +59 -48
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -1
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +22 -16
- package/es-modules/Series/Bubble/BubbleLegendItem.js +17 -21
- package/es-modules/Series/Candlestick/CandlestickSeries.js +15 -175
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +179 -0
- package/es-modules/Series/Column/ColumnSeries.js +25 -506
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +487 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +40 -36
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +2 -106
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +183 -0
- package/es-modules/Series/DotPlot/DotPlotSeries.js +11 -12
- package/es-modules/Series/DrawPointUtilities.js +2 -14
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +5 -4
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +11 -7
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +19 -136
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +147 -0
- package/es-modules/Series/Flags/FlagsPoint.js +2 -3
- package/es-modules/Series/Flags/FlagsSeries.js +31 -298
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +295 -0
- package/es-modules/Series/Flags/FlagsSymbols.js +96 -71
- package/es-modules/Series/HLC/HLCPoint.js +2 -2
- package/es-modules/Series/HLC/HLCSeries.js +7 -172
- package/es-modules/Series/HLC/HLCSeriesDefaults.js +184 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +3 -0
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -20
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +78 -139
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +102 -0
- package/es-modules/Series/Item/ItemPoint.js +0 -1
- package/es-modules/Series/Item/ItemSeries.js +13 -8
- package/es-modules/Series/Line/LineSeries.js +8 -4
- package/es-modules/Series/Map/MapPoint.js +19 -1
- package/es-modules/Series/Map/MapSeries.js +7 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +4 -0
- package/es-modules/Series/MapPoint/MapPointPoint.js +0 -5
- package/es-modules/Series/MapPoint/MapPointSeries.js +24 -9
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +2 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +2 -0
- package/es-modules/Series/OHLC/OHLCPoint.js +0 -2
- package/es-modules/Series/OHLC/OHLCSeries.js +64 -160
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +151 -0
- package/es-modules/Series/Organization/OrganizationPoint.js +0 -2
- package/es-modules/Series/Organization/OrganizationSeries.js +96 -469
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +415 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -10
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -0
- package/es-modules/Series/PathUtilities.js +74 -0
- package/es-modules/Series/Pie/PieSeries.js +2 -644
- package/es-modules/Series/Pie/PieSeriesDefaults.js +660 -0
- package/es-modules/Series/PolarComposition.js +233 -15
- package/es-modules/Series/Sankey/SankeySeries.js +27 -530
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +522 -0
- package/es-modules/Series/Scatter/ScatterSeries.js +2 -172
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +188 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +12 -182
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +199 -0
- package/es-modules/Series/Sunburst/SunburstNode.js +34 -0
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +3 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -231
- package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +248 -0
- package/es-modules/Series/TreeUtilities.js +1 -2
- package/es-modules/Series/Treegraph/TreegraphLayout.js +338 -0
- package/es-modules/Series/Treegraph/TreegraphLink.js +92 -0
- package/es-modules/Series/Treegraph/TreegraphNode.js +206 -0
- package/es-modules/Series/Treegraph/TreegraphPoint.js +175 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +510 -0
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +231 -0
- package/es-modules/Series/Treemap/TreemapNode.js +48 -0
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -1
- package/es-modules/Series/Treemap/TreemapSeries.js +29 -27
- package/es-modules/Series/Variwide/VariwideComposition.js +70 -26
- package/es-modules/Series/Variwide/VariwidePoint.js +8 -7
- package/es-modules/Series/Variwide/VariwideSeries.js +19 -14
- package/es-modules/Series/Vector/VectorSeries.js +2 -2
- package/es-modules/Series/Venn/VennSeries.js +14 -0
- package/es-modules/Series/Waterfall/WaterfallSeries.js +0 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -2
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +3 -0
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +15 -4
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +21 -18
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +3 -4
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -2
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +6 -7
- package/es-modules/{Core → Stock/Navigator}/Navigator.js +112 -686
- package/es-modules/Stock/Navigator/NavigatorComposition.js +218 -0
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +490 -0
- package/es-modules/Stock/Navigator/NavigatorSymbols.js +44 -0
- package/es-modules/{Extensions → Stock/RangeSelector}/RangeSelector.js +154 -818
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +286 -0
- package/es-modules/Stock/RangeSelector/RangeSelectorDefaults.js +521 -0
- package/es-modules/{Core → Stock/Scrollbar}/Scrollbar.js +4 -4
- package/es-modules/{Core → Stock/Scrollbar}/ScrollbarDefaults.js +1 -1
- package/es-modules/Stock/{StockToolbar.js → StockTools/StockToolbar.js} +2 -2
- package/es-modules/Stock/{StockTools.js → StockTools/StockTools.js} +3 -3
- package/es-modules/Stock/{StockToolsBindings.js → StockTools/StockToolsBindings.js} +3 -3
- package/es-modules/Stock/{StockToolsDefaults.js → StockTools/StockToolsDefaults.js} +4 -4
- package/es-modules/Stock/{StockToolsGui.js → StockTools/StockToolsGui.js} +4 -4
- package/es-modules/Stock/{StockToolsUtilities.js → StockTools/StockToolsUtilities.js} +4 -4
- package/es-modules/masters/highcharts-3d.src.js +3 -5
- 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 +6 -6
- 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/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -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 +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arc-diagram.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 +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +11 -3
- 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 +9 -5
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +5 -2
- 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 -1
- 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/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +4 -4
- package/es-modules/masters/modules/stock.src.js +17 -11
- 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/treegraph.src.js +13 -0
- 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 +5 -2
- 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/brand-dark.src.js +1 -1
- package/es-modules/masters/themes/brand-light.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 +97 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +476 -449
- package/highcharts-gantt.js +811 -808
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +14619 -14112
- package/highcharts-more.d.ts +0 -8
- package/highcharts-more.js +208 -201
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +0 -8
- package/highcharts-more.src.js +679 -289
- package/highcharts.d.ts +30739 -6156
- package/highcharts.js +590 -589
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +30739 -6156
- package/highcharts.src.js +1988 -1799
- package/highmaps.js +759 -757
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2339 -2077
- package/highstock.js +802 -794
- package/highstock.js.map +1 -1
- package/highstock.src.js +12349 -11416
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- 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 -3
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +16 -5
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.d.ts +17 -0
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.d.ts +17 -0
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.d.ts +17 -0
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.d.ts +17 -0
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.d.ts +17 -0
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.src.d.ts +17 -0
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +14 -14
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +22 -19
- package/indicators/indicators-all.js +198 -199
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +63 -57
- package/indicators/indicators.js +13 -13
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +1 -15
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.d.ts +17 -0
- package/indicators/klinger.js +12 -12
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.d.ts +17 -0
- package/indicators/klinger.src.js +4 -3
- package/indicators/macd.js +1 -1
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +4 -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 +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.d.ts +17 -0
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.d.ts +17 -0
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +2 -2
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- 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 +1 -1
- 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 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +6 -5
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +7 -7
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +4 -3
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +9 -8
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- 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.js +214 -213
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +991 -835
- package/modules/annotations-advanced.js +16 -16
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +29 -24
- package/modules/annotations.js +91 -91
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +29 -24
- package/modules/arc-diagram.d.ts +17 -0
- package/modules/arc-diagram.js +15 -15
- package/modules/arc-diagram.js.map +1 -1
- package/modules/arc-diagram.src.d.ts +17 -0
- package/modules/arc-diagram.src.js +6 -6
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +19 -19
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +13 -8
- package/modules/boost.js +37 -37
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +13 -8
- 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 +25 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +77 -58
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +27 -27
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +3 -3
- package/modules/datagrouping.d.ts +31 -0
- package/modules/datagrouping.js +23 -21
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +31 -0
- package/modules/datagrouping.src.js +921 -640
- package/modules/debugger.js +3 -3
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +2 -2
- package/modules/dependency-wheel.js +12 -12
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +191 -108
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +10 -13
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +5 -5
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +7 -3
- package/modules/drilldown.js +37 -37
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +5 -6
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +27 -22
- package/modules/export-data.js +26 -25
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +33 -6
- package/modules/exporting.js +36 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +81 -88
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +221 -219
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +12842 -12524
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +40 -40
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +80 -58
- package/modules/heikinashi.d.ts +17 -0
- package/modules/heikinashi.js +9 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.d.ts +17 -0
- package/modules/heikinashi.src.js +192 -165
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.d.ts +17 -0
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.d.ts +17 -0
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +14 -10
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.js +172 -171
- package/modules/map.js.map +1 -1
- package/modules/map.src.js +194 -121
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +2 -2
- package/modules/networkgraph.js +8 -8
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +5 -6
- package/modules/no-data-to-display.js +4 -4
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +2 -2
- package/modules/offline-exporting.js +4 -4
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +7 -7
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +9 -7
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +5 -5
- package/modules/organization.js +18 -16
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +659 -495
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +10 -10
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +6 -2
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +19 -23
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +11 -11
- 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.js +33 -32
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +571 -550
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +7 -3
- package/modules/series-on-point.d.ts +17 -0
- package/modules/series-on-point.js +1 -1
- package/modules/series-on-point.src.d.ts +17 -0
- package/modules/series-on-point.src.js +1 -1
- package/modules/solid-gauge.js +11 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +220 -192
- package/modules/sonification.js +2 -2
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +2 -2
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +59 -59
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +19 -21
- package/modules/stock.d.ts +26 -6
- package/modules/stock.js +212 -205
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +26 -6
- package/modules/stock.src.js +11361 -10617
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +75 -73
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +133 -57
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +257 -233
- package/modules/treegraph.d.ts +17 -0
- package/modules/treegraph.js +44 -0
- package/modules/treegraph.js.map +1 -0
- package/modules/treegraph.src.d.ts +17 -0
- package/modules/treegraph.src.js +1829 -0
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +2 -3
- package/modules/treemap.js +54 -53
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +90 -52
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +158 -106
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +3 -3
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +17 -16
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +41 -4
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +6 -15
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +1 -1
- package/themes/avocado.js +2 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +2 -2
- package/themes/brand-dark.d.ts +22 -0
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.d.ts +22 -0
- package/themes/brand-dark.src.js +2 -2
- package/themes/brand-light.d.ts +22 -0
- package/themes/brand-light.js +2 -2
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.d.ts +22 -0
- package/themes/brand-light.src.js +2 -2
- package/themes/dark-blue.js +2 -2
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +2 -2
- package/themes/dark-green.js +2 -2
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +2 -2
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +2 -2
- package/themes/gray.js +2 -2
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +2 -2
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +2 -2
- package/themes/grid.js +2 -2
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +2 -2
- package/themes/high-contrast-dark.d.ts +22 -0
- package/themes/high-contrast-dark.js +2 -2
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.d.ts +22 -0
- package/themes/high-contrast-dark.src.js +2 -2
- package/themes/high-contrast-light.d.ts +22 -0
- package/themes/high-contrast-light.js +2 -2
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.d.ts +22 -0
- package/themes/high-contrast-light.src.js +2 -2
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +2 -2
- package/themes/skies.js +2 -2
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +2 -2
- package/themes/sunset.js +2 -2
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +2 -2
- package/es-modules/Core/Axis/Axis3D.js +0 -612
- package/es-modules/Core/Axis/NavigatorAxis.js +0 -159
- package/es-modules/Core/Axis/Tick3D.js +0 -68
- package/es-modules/Extensions/DataGrouping.js +0 -1177
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -12
|
@@ -8,27 +8,28 @@
|
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
|
-
import Axis from '
|
|
12
|
-
import
|
|
13
|
-
import Color from './Color/Color.js';
|
|
14
|
-
var color = Color.parse;
|
|
15
|
-
import H from './Globals.js';
|
|
16
|
-
var hasTouch = H.hasTouch, isTouchDevice = H.isTouchDevice;
|
|
17
|
-
import NavigatorAxis from './Axis/NavigatorAxis.js';
|
|
18
|
-
import D from './DefaultOptions.js';
|
|
11
|
+
import Axis from '../../Core/Axis/Axis.js';
|
|
12
|
+
import D from '../../Core/Defaults.js';
|
|
19
13
|
var defaultOptions = D.defaultOptions;
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
|
|
25
|
-
import U from '
|
|
14
|
+
import H from '../../Core/Globals.js';
|
|
15
|
+
var hasTouch = H.hasTouch, isTouchDevice = H.isTouchDevice;
|
|
16
|
+
import NavigatorAxisAdditions from '../../Core/Axis/NavigatorAxisComposition.js';
|
|
17
|
+
import NavigatorComposition from './NavigatorComposition.js';
|
|
18
|
+
import Scrollbar from '../Scrollbar/Scrollbar.js';
|
|
19
|
+
import U from '../../Core/Utilities.js';
|
|
26
20
|
var addEvent = U.addEvent, clamp = U.clamp, correctFloat = U.correctFloat, defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, erase = U.erase, extend = U.extend, find = U.find, isArray = U.isArray, isNumber = U.isNumber, merge = U.merge, pick = U.pick, removeEvent = U.removeEvent, splat = U.splat;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
/* *
|
|
22
|
+
*
|
|
23
|
+
* Functions
|
|
24
|
+
*
|
|
25
|
+
* */
|
|
26
|
+
/**
|
|
27
|
+
* Finding the min or max of a set of variables where we don't know if they are
|
|
28
|
+
* defined, is a pattern that is repeated several places in Highcharts. Consider
|
|
29
|
+
* making this a global utility method.
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
function numExt(extreme) {
|
|
32
33
|
var args = [];
|
|
33
34
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
34
35
|
args[_i - 1] = arguments[_i];
|
|
@@ -37,497 +38,12 @@ numExt = function (extreme) {
|
|
|
37
38
|
if (numbers.length) {
|
|
38
39
|
return Math[extreme].apply(0, numbers);
|
|
39
40
|
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
'line' :
|
|
43
|
-
'areaspline';
|
|
44
|
-
extend(defaultOptions, {
|
|
45
|
-
/**
|
|
46
|
-
* Maximum range which can be set using the navigator's handles.
|
|
47
|
-
* Opposite of [xAxis.minRange](#xAxis.minRange).
|
|
48
|
-
*
|
|
49
|
-
* @sample {highstock} stock/navigator/maxrange/
|
|
50
|
-
* Defined max and min range
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @since 6.0.0
|
|
54
|
-
* @product highstock gantt
|
|
55
|
-
* @apioption xAxis.maxRange
|
|
56
|
-
*/
|
|
57
|
-
/**
|
|
58
|
-
* The navigator is a small series below the main series, displaying
|
|
59
|
-
* a view of the entire data set. It provides tools to zoom in and
|
|
60
|
-
* out on parts of the data as well as panning across the dataset.
|
|
61
|
-
*
|
|
62
|
-
* @product highstock gantt
|
|
63
|
-
* @optionparent navigator
|
|
64
|
-
*/
|
|
65
|
-
navigator: {
|
|
66
|
-
/**
|
|
67
|
-
* Whether the navigator and scrollbar should adapt to updated data
|
|
68
|
-
* in the base X axis. When loading data async, as in the demo below,
|
|
69
|
-
* this should be `false`. Otherwise new data will trigger navigator
|
|
70
|
-
* redraw, which will cause unwanted looping. In the demo below, the
|
|
71
|
-
* data in the navigator is set only once. On navigating, only the main
|
|
72
|
-
* chart content is updated.
|
|
73
|
-
*
|
|
74
|
-
* @sample {highstock} stock/demo/lazy-loading/
|
|
75
|
-
* Set to false with async data loading
|
|
76
|
-
*
|
|
77
|
-
* @type {boolean}
|
|
78
|
-
* @default true
|
|
79
|
-
* @apioption navigator.adaptToUpdatedData
|
|
80
|
-
*/
|
|
81
|
-
/**
|
|
82
|
-
* An integer identifying the index to use for the base series, or a
|
|
83
|
-
* string representing the id of the series.
|
|
84
|
-
*
|
|
85
|
-
* **Note**: As of Highcharts 5.0, this is now a deprecated option.
|
|
86
|
-
* Prefer [series.showInNavigator](#plotOptions.series.showInNavigator).
|
|
87
|
-
*
|
|
88
|
-
* @see [series.showInNavigator](#plotOptions.series.showInNavigator)
|
|
89
|
-
*
|
|
90
|
-
* @deprecated
|
|
91
|
-
* @type {number|string}
|
|
92
|
-
* @default 0
|
|
93
|
-
* @apioption navigator.baseSeries
|
|
94
|
-
*/
|
|
95
|
-
/**
|
|
96
|
-
* Enable or disable the navigator.
|
|
97
|
-
*
|
|
98
|
-
* @sample {highstock} stock/navigator/enabled/
|
|
99
|
-
* Disable the navigator
|
|
100
|
-
*
|
|
101
|
-
* @type {boolean}
|
|
102
|
-
* @default true
|
|
103
|
-
* @apioption navigator.enabled
|
|
104
|
-
*/
|
|
105
|
-
/**
|
|
106
|
-
* When the chart is inverted, whether to draw the navigator on the
|
|
107
|
-
* opposite side.
|
|
108
|
-
*
|
|
109
|
-
* @type {boolean}
|
|
110
|
-
* @default false
|
|
111
|
-
* @since 5.0.8
|
|
112
|
-
* @apioption navigator.opposite
|
|
113
|
-
*/
|
|
114
|
-
/**
|
|
115
|
-
* The height of the navigator.
|
|
116
|
-
*
|
|
117
|
-
* @sample {highstock} stock/navigator/height/
|
|
118
|
-
* A higher navigator
|
|
119
|
-
*/
|
|
120
|
-
height: 40,
|
|
121
|
-
/**
|
|
122
|
-
* The distance from the nearest element, the X axis or X axis labels.
|
|
123
|
-
*
|
|
124
|
-
* @sample {highstock} stock/navigator/margin/
|
|
125
|
-
* A margin of 2 draws the navigator closer to the X axis labels
|
|
126
|
-
*/
|
|
127
|
-
margin: 25,
|
|
128
|
-
/**
|
|
129
|
-
* Whether the mask should be inside the range marking the zoomed
|
|
130
|
-
* range, or outside. In Highcharts Stock 1.x it was always `false`.
|
|
131
|
-
*
|
|
132
|
-
* @sample {highstock} stock/navigator/maskinside-false/
|
|
133
|
-
* False, mask outside
|
|
134
|
-
*
|
|
135
|
-
* @since 2.0
|
|
136
|
-
*/
|
|
137
|
-
maskInside: true,
|
|
138
|
-
/**
|
|
139
|
-
* Options for the handles for dragging the zoomed area.
|
|
140
|
-
*
|
|
141
|
-
* @sample {highstock} stock/navigator/handles/
|
|
142
|
-
* Colored handles
|
|
143
|
-
*/
|
|
144
|
-
handles: {
|
|
145
|
-
/**
|
|
146
|
-
* Width for handles.
|
|
147
|
-
*
|
|
148
|
-
* @sample {highstock} stock/navigator/styled-handles/
|
|
149
|
-
* Styled handles
|
|
150
|
-
*
|
|
151
|
-
* @since 6.0.0
|
|
152
|
-
*/
|
|
153
|
-
width: 7,
|
|
154
|
-
/**
|
|
155
|
-
* Height for handles.
|
|
156
|
-
*
|
|
157
|
-
* @sample {highstock} stock/navigator/styled-handles/
|
|
158
|
-
* Styled handles
|
|
159
|
-
*
|
|
160
|
-
* @since 6.0.0
|
|
161
|
-
*/
|
|
162
|
-
height: 15,
|
|
163
|
-
/**
|
|
164
|
-
* Array to define shapes of handles. 0-index for left, 1-index for
|
|
165
|
-
* right.
|
|
166
|
-
*
|
|
167
|
-
* Additionally, the URL to a graphic can be given on this form:
|
|
168
|
-
* `url(graphic.png)`. Note that for the image to be applied to
|
|
169
|
-
* exported charts, its URL needs to be accessible by the export
|
|
170
|
-
* server.
|
|
171
|
-
*
|
|
172
|
-
* Custom callbacks for symbol path generation can also be added to
|
|
173
|
-
* `Highcharts.SVGRenderer.prototype.symbols`. The callback is then
|
|
174
|
-
* used by its method name, as shown in the demo.
|
|
175
|
-
*
|
|
176
|
-
* @sample {highstock} stock/navigator/styled-handles/
|
|
177
|
-
* Styled handles
|
|
178
|
-
*
|
|
179
|
-
* @type {Array<string>}
|
|
180
|
-
* @default ["navigator-handle", "navigator-handle"]
|
|
181
|
-
* @since 6.0.0
|
|
182
|
-
*/
|
|
183
|
-
symbols: ['navigator-handle', 'navigator-handle'],
|
|
184
|
-
/**
|
|
185
|
-
* Allows to enable/disable handles.
|
|
186
|
-
*
|
|
187
|
-
* @since 6.0.0
|
|
188
|
-
*/
|
|
189
|
-
enabled: true,
|
|
190
|
-
/**
|
|
191
|
-
* The width for the handle border and the stripes inside.
|
|
192
|
-
*
|
|
193
|
-
* @sample {highstock} stock/navigator/styled-handles/
|
|
194
|
-
* Styled handles
|
|
195
|
-
*
|
|
196
|
-
* @since 6.0.0
|
|
197
|
-
* @apioption navigator.handles.lineWidth
|
|
198
|
-
*/
|
|
199
|
-
lineWidth: 1,
|
|
200
|
-
/**
|
|
201
|
-
* The fill for the handle.
|
|
202
|
-
*
|
|
203
|
-
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
204
|
-
*/
|
|
205
|
-
backgroundColor: "#f2f2f2" /* Palette.neutralColor5 */,
|
|
206
|
-
/**
|
|
207
|
-
* The stroke for the handle border and the stripes inside.
|
|
208
|
-
*
|
|
209
|
-
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
210
|
-
*/
|
|
211
|
-
borderColor: "#999999" /* Palette.neutralColor40 */
|
|
212
|
-
},
|
|
213
|
-
/**
|
|
214
|
-
* The color of the mask covering the areas of the navigator series
|
|
215
|
-
* that are currently not visible in the main series. The default
|
|
216
|
-
* color is bluish with an opacity of 0.3 to see the series below.
|
|
217
|
-
*
|
|
218
|
-
* @see In styled mode, the mask is styled with the
|
|
219
|
-
* `.highcharts-navigator-mask` and
|
|
220
|
-
* `.highcharts-navigator-mask-inside` classes.
|
|
221
|
-
*
|
|
222
|
-
* @sample {highstock} stock/navigator/maskfill/
|
|
223
|
-
* Blue, semi transparent mask
|
|
224
|
-
*
|
|
225
|
-
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
226
|
-
* @default rgba(102,133,194,0.3)
|
|
227
|
-
*/
|
|
228
|
-
maskFill: color("#6685c2" /* Palette.highlightColor60 */).setOpacity(0.3).get(),
|
|
229
|
-
/**
|
|
230
|
-
* The color of the line marking the currently zoomed area in the
|
|
231
|
-
* navigator.
|
|
232
|
-
*
|
|
233
|
-
* @sample {highstock} stock/navigator/outline/
|
|
234
|
-
* 2px blue outline
|
|
235
|
-
*
|
|
236
|
-
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
237
|
-
* @default #cccccc
|
|
238
|
-
*/
|
|
239
|
-
outlineColor: "#cccccc" /* Palette.neutralColor20 */,
|
|
240
|
-
/**
|
|
241
|
-
* The width of the line marking the currently zoomed area in the
|
|
242
|
-
* navigator.
|
|
243
|
-
*
|
|
244
|
-
* @see In styled mode, the outline stroke width is set with the
|
|
245
|
-
* `.highcharts-navigator-outline` class.
|
|
246
|
-
*
|
|
247
|
-
* @sample {highstock} stock/navigator/outline/
|
|
248
|
-
* 2px blue outline
|
|
249
|
-
*
|
|
250
|
-
* @type {number}
|
|
251
|
-
*/
|
|
252
|
-
outlineWidth: 1,
|
|
253
|
-
/**
|
|
254
|
-
* Options for the navigator series. Available options are the same
|
|
255
|
-
* as any series, documented at [plotOptions](#plotOptions.series)
|
|
256
|
-
* and [series](#series).
|
|
257
|
-
*
|
|
258
|
-
* Unless data is explicitly defined on navigator.series, the data
|
|
259
|
-
* is borrowed from the first series in the chart.
|
|
260
|
-
*
|
|
261
|
-
* Default series options for the navigator series are:
|
|
262
|
-
* ```js
|
|
263
|
-
* series: {
|
|
264
|
-
* type: 'areaspline',
|
|
265
|
-
* fillOpacity: 0.05,
|
|
266
|
-
* dataGrouping: {
|
|
267
|
-
* smoothed: true
|
|
268
|
-
* },
|
|
269
|
-
* lineWidth: 1,
|
|
270
|
-
* marker: {
|
|
271
|
-
* enabled: false
|
|
272
|
-
* }
|
|
273
|
-
* }
|
|
274
|
-
* ```
|
|
275
|
-
*
|
|
276
|
-
* @see In styled mode, the navigator series is styled with the
|
|
277
|
-
* `.highcharts-navigator-series` class.
|
|
278
|
-
*
|
|
279
|
-
* @sample {highstock} stock/navigator/series-data/
|
|
280
|
-
* Using a separate data set for the navigator
|
|
281
|
-
* @sample {highstock} stock/navigator/series/
|
|
282
|
-
* A green navigator series
|
|
283
|
-
*
|
|
284
|
-
* @type {*|Array<*>|Highcharts.SeriesOptionsType|Array<Highcharts.SeriesOptionsType>}
|
|
285
|
-
*/
|
|
286
|
-
series: {
|
|
287
|
-
/**
|
|
288
|
-
* The type of the navigator series.
|
|
289
|
-
*
|
|
290
|
-
* Heads up:
|
|
291
|
-
* In column-type navigator, zooming is limited to at least one
|
|
292
|
-
* point with its `pointRange`.
|
|
293
|
-
*
|
|
294
|
-
* @sample {highstock} stock/navigator/column/
|
|
295
|
-
* Column type navigator
|
|
296
|
-
*
|
|
297
|
-
* @type {string}
|
|
298
|
-
* @default {highstock} `areaspline` if defined, otherwise `line`
|
|
299
|
-
* @default {gantt} gantt
|
|
300
|
-
*/
|
|
301
|
-
type: defaultSeriesType,
|
|
302
|
-
/**
|
|
303
|
-
* The fill opacity of the navigator series.
|
|
304
|
-
*/
|
|
305
|
-
fillOpacity: 0.05,
|
|
306
|
-
/**
|
|
307
|
-
* The pixel line width of the navigator series.
|
|
308
|
-
*/
|
|
309
|
-
lineWidth: 1,
|
|
310
|
-
/**
|
|
311
|
-
* @ignore-option
|
|
312
|
-
*/
|
|
313
|
-
compare: null,
|
|
314
|
-
/**
|
|
315
|
-
* Unless data is explicitly defined, the data is borrowed from the
|
|
316
|
-
* first series in the chart.
|
|
317
|
-
*
|
|
318
|
-
* @type {Array<number|Array<number|string|null>|object|null>}
|
|
319
|
-
* @product highstock
|
|
320
|
-
* @apioption navigator.series.data
|
|
321
|
-
*/
|
|
322
|
-
/**
|
|
323
|
-
* Data grouping options for the navigator series.
|
|
324
|
-
*
|
|
325
|
-
* @extends plotOptions.series.dataGrouping
|
|
326
|
-
*/
|
|
327
|
-
dataGrouping: {
|
|
328
|
-
approximation: 'average',
|
|
329
|
-
enabled: true,
|
|
330
|
-
groupPixelWidth: 2,
|
|
331
|
-
// Replace smoothed property by anchors, #12455.
|
|
332
|
-
firstAnchor: 'firstPoint',
|
|
333
|
-
anchor: 'middle',
|
|
334
|
-
lastAnchor: 'lastPoint',
|
|
335
|
-
// Day and week differs from plotOptions.series.dataGrouping
|
|
336
|
-
units: [
|
|
337
|
-
['millisecond', [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]],
|
|
338
|
-
['second', [1, 2, 5, 10, 15, 30]],
|
|
339
|
-
['minute', [1, 2, 5, 10, 15, 30]],
|
|
340
|
-
['hour', [1, 2, 3, 4, 6, 8, 12]],
|
|
341
|
-
['day', [1, 2, 3, 4]],
|
|
342
|
-
['week', [1, 2, 3]],
|
|
343
|
-
['month', [1, 3, 6]],
|
|
344
|
-
['year', null]
|
|
345
|
-
]
|
|
346
|
-
},
|
|
347
|
-
/**
|
|
348
|
-
* Data label options for the navigator series. Data labels are
|
|
349
|
-
* disabled by default on the navigator series.
|
|
350
|
-
*
|
|
351
|
-
* @extends plotOptions.series.dataLabels
|
|
352
|
-
*/
|
|
353
|
-
dataLabels: {
|
|
354
|
-
enabled: false,
|
|
355
|
-
zIndex: 2 // #1839
|
|
356
|
-
},
|
|
357
|
-
id: 'highcharts-navigator-series',
|
|
358
|
-
className: 'highcharts-navigator-series',
|
|
359
|
-
/**
|
|
360
|
-
* Sets the fill color of the navigator series.
|
|
361
|
-
*
|
|
362
|
-
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
363
|
-
* @apioption navigator.series.color
|
|
364
|
-
*/
|
|
365
|
-
/**
|
|
366
|
-
* Line color for the navigator series. Allows setting the color
|
|
367
|
-
* while disallowing the default candlestick setting.
|
|
368
|
-
*
|
|
369
|
-
* @type {Highcharts.ColorString|null}
|
|
370
|
-
*/
|
|
371
|
-
lineColor: null,
|
|
372
|
-
marker: {
|
|
373
|
-
enabled: false
|
|
374
|
-
},
|
|
375
|
-
/**
|
|
376
|
-
* Since Highcharts Stock v8, default value is the same as default
|
|
377
|
-
* `pointRange` defined for a specific type (e.g. `null` for
|
|
378
|
-
* column type).
|
|
379
|
-
*
|
|
380
|
-
* In Highcharts Stock version < 8, defaults to 0.
|
|
381
|
-
*
|
|
382
|
-
* @extends plotOptions.series.pointRange
|
|
383
|
-
* @type {number|null}
|
|
384
|
-
* @apioption navigator.series.pointRange
|
|
385
|
-
*/
|
|
386
|
-
/**
|
|
387
|
-
* The threshold option. Setting it to 0 will make the default
|
|
388
|
-
* navigator area series draw its area from the 0 value and up.
|
|
389
|
-
*
|
|
390
|
-
* @type {number|null}
|
|
391
|
-
*/
|
|
392
|
-
threshold: null
|
|
393
|
-
},
|
|
394
|
-
/**
|
|
395
|
-
* Enable or disable navigator sticking to right, while adding new
|
|
396
|
-
* points. If `undefined`, the navigator sticks to the axis maximum only
|
|
397
|
-
* if it was already at the maximum prior to adding points.
|
|
398
|
-
*
|
|
399
|
-
* @type {boolean}
|
|
400
|
-
* @default undefined
|
|
401
|
-
* @since 10.2.1
|
|
402
|
-
* @sample {highstock} stock/navigator/sticktomax-false/
|
|
403
|
-
* stickToMax set to false
|
|
404
|
-
* @apioption navigator.stickToMax
|
|
405
|
-
*/
|
|
406
|
-
/**
|
|
407
|
-
* Options for the navigator X axis. Default series options for the
|
|
408
|
-
* navigator xAxis are:
|
|
409
|
-
* ```js
|
|
410
|
-
* xAxis: {
|
|
411
|
-
* tickWidth: 0,
|
|
412
|
-
* lineWidth: 0,
|
|
413
|
-
* gridLineWidth: 1,
|
|
414
|
-
* tickPixelInterval: 200,
|
|
415
|
-
* labels: {
|
|
416
|
-
* align: 'left',
|
|
417
|
-
* style: {
|
|
418
|
-
* color: '#888'
|
|
419
|
-
* },
|
|
420
|
-
* x: 3,
|
|
421
|
-
* y: -4
|
|
422
|
-
* }
|
|
423
|
-
* }
|
|
424
|
-
* ```
|
|
425
|
-
*
|
|
426
|
-
* @extends xAxis
|
|
427
|
-
* @excluding linkedTo, maxZoom, minRange, opposite, range, scrollbar,
|
|
428
|
-
* showEmpty, maxRange
|
|
429
|
-
*/
|
|
430
|
-
xAxis: {
|
|
431
|
-
/**
|
|
432
|
-
* Additional range on the right side of the xAxis. Works similar to
|
|
433
|
-
* xAxis.maxPadding, but value is set in milliseconds.
|
|
434
|
-
* Can be set for both, main xAxis and navigator's xAxis.
|
|
435
|
-
*
|
|
436
|
-
* @since 6.0.0
|
|
437
|
-
*/
|
|
438
|
-
overscroll: 0,
|
|
439
|
-
className: 'highcharts-navigator-xaxis',
|
|
440
|
-
tickLength: 0,
|
|
441
|
-
lineWidth: 0,
|
|
442
|
-
gridLineColor: "#e6e6e6" /* Palette.neutralColor10 */,
|
|
443
|
-
gridLineWidth: 1,
|
|
444
|
-
tickPixelInterval: 200,
|
|
445
|
-
labels: {
|
|
446
|
-
align: 'left',
|
|
447
|
-
/**
|
|
448
|
-
* @type {Highcharts.CSSObject}
|
|
449
|
-
*/
|
|
450
|
-
style: {
|
|
451
|
-
/** @ignore */
|
|
452
|
-
color: "#999999" /* Palette.neutralColor40 */
|
|
453
|
-
},
|
|
454
|
-
x: 3,
|
|
455
|
-
y: -4
|
|
456
|
-
},
|
|
457
|
-
crosshair: false
|
|
458
|
-
},
|
|
459
|
-
/**
|
|
460
|
-
* Options for the navigator Y axis. Default series options for the
|
|
461
|
-
* navigator yAxis are:
|
|
462
|
-
* ```js
|
|
463
|
-
* yAxis: {
|
|
464
|
-
* gridLineWidth: 0,
|
|
465
|
-
* startOnTick: false,
|
|
466
|
-
* endOnTick: false,
|
|
467
|
-
* minPadding: 0.1,
|
|
468
|
-
* maxPadding: 0.1,
|
|
469
|
-
* labels: {
|
|
470
|
-
* enabled: false
|
|
471
|
-
* },
|
|
472
|
-
* title: {
|
|
473
|
-
* text: null
|
|
474
|
-
* },
|
|
475
|
-
* tickWidth: 0
|
|
476
|
-
* }
|
|
477
|
-
* ```
|
|
478
|
-
*
|
|
479
|
-
* @extends yAxis
|
|
480
|
-
* @excluding height, linkedTo, maxZoom, minRange, ordinal, range,
|
|
481
|
-
* showEmpty, scrollbar, top, units, maxRange, minLength,
|
|
482
|
-
* maxLength, resize
|
|
483
|
-
*/
|
|
484
|
-
yAxis: {
|
|
485
|
-
className: 'highcharts-navigator-yaxis',
|
|
486
|
-
gridLineWidth: 0,
|
|
487
|
-
startOnTick: false,
|
|
488
|
-
endOnTick: false,
|
|
489
|
-
minPadding: 0.1,
|
|
490
|
-
maxPadding: 0.1,
|
|
491
|
-
labels: {
|
|
492
|
-
enabled: false
|
|
493
|
-
},
|
|
494
|
-
crosshair: false,
|
|
495
|
-
title: {
|
|
496
|
-
text: null
|
|
497
|
-
},
|
|
498
|
-
tickLength: 0,
|
|
499
|
-
tickWidth: 0
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
});
|
|
503
|
-
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
504
|
-
/**
|
|
505
|
-
* Draw one of the handles on the side of the zoomed range in the navigator
|
|
41
|
+
}
|
|
42
|
+
/* *
|
|
506
43
|
*
|
|
507
|
-
*
|
|
508
|
-
*
|
|
509
|
-
*
|
|
510
|
-
* @param {number} y
|
|
511
|
-
* @param {number} w
|
|
512
|
-
* @param {number} h
|
|
513
|
-
* @param {Highcharts.NavigatorHandlesOptions} options
|
|
514
|
-
* @return {Highcharts.SVGPathArray}
|
|
515
|
-
* Path to be used in a handle
|
|
516
|
-
*/
|
|
517
|
-
RendererRegistry.getRendererType().prototype.symbols['navigator-handle'] = function (_x, _y, _w, _h, options) {
|
|
518
|
-
var halfWidth = (options && options.width || 0) / 2, markerPosition = Math.round(halfWidth / 3) + 0.5, height = options && options.height || 0;
|
|
519
|
-
return [
|
|
520
|
-
['M', -halfWidth - 1, 0.5],
|
|
521
|
-
['L', halfWidth, 0.5],
|
|
522
|
-
['L', halfWidth, height + 0.5],
|
|
523
|
-
['L', -halfWidth - 1, height + 0.5],
|
|
524
|
-
['L', -halfWidth - 1, 0.5],
|
|
525
|
-
['M', -markerPosition, 4],
|
|
526
|
-
['L', -markerPosition, height - 3],
|
|
527
|
-
['M', markerPosition - 1, 4],
|
|
528
|
-
['L', markerPosition - 1, height - 3]
|
|
529
|
-
];
|
|
530
|
-
};
|
|
44
|
+
* Class
|
|
45
|
+
*
|
|
46
|
+
* */
|
|
531
47
|
/**
|
|
532
48
|
* The Navigator class
|
|
533
49
|
*
|
|
@@ -539,7 +55,17 @@ RendererRegistry.getRendererType().prototype.symbols['navigator-handle'] = funct
|
|
|
539
55
|
* Chart object
|
|
540
56
|
*/
|
|
541
57
|
var Navigator = /** @class */ (function () {
|
|
58
|
+
/* *
|
|
59
|
+
*
|
|
60
|
+
* Constructor
|
|
61
|
+
*
|
|
62
|
+
* */
|
|
542
63
|
function Navigator(chart) {
|
|
64
|
+
/* *
|
|
65
|
+
*
|
|
66
|
+
* Properties
|
|
67
|
+
*
|
|
68
|
+
* */
|
|
543
69
|
this.baseSeries = void 0;
|
|
544
70
|
this.chart = void 0;
|
|
545
71
|
this.handles = void 0;
|
|
@@ -564,8 +90,21 @@ var Navigator = /** @class */ (function () {
|
|
|
564
90
|
this.zoomedMin = void 0;
|
|
565
91
|
this.init(chart);
|
|
566
92
|
}
|
|
93
|
+
/* *
|
|
94
|
+
*
|
|
95
|
+
* Static Functions
|
|
96
|
+
*
|
|
97
|
+
* */
|
|
98
|
+
Navigator.compose = function (AxisClass, ChartClass, SeriesClass) {
|
|
99
|
+
NavigatorComposition.compose(AxisClass, ChartClass, Navigator, SeriesClass);
|
|
100
|
+
};
|
|
101
|
+
/* *
|
|
102
|
+
*
|
|
103
|
+
* Functions
|
|
104
|
+
*
|
|
105
|
+
* */
|
|
567
106
|
/**
|
|
568
|
-
* Draw one of the handles on the side of the zoomed range in the navigator
|
|
107
|
+
* Draw one of the handles on the side of the zoomed range in the navigator.
|
|
569
108
|
*
|
|
570
109
|
* @private
|
|
571
110
|
* @function Highcharts.Navigator#drawHandle
|
|
@@ -577,10 +116,10 @@ var Navigator = /** @class */ (function () {
|
|
|
577
116
|
* 0 for left and 1 for right
|
|
578
117
|
*
|
|
579
118
|
* @param {boolean|undefined} inverted
|
|
580
|
-
*
|
|
119
|
+
* Flag for chart.inverted
|
|
581
120
|
*
|
|
582
121
|
* @param {string} verb
|
|
583
|
-
*
|
|
122
|
+
* Use 'animate' or 'attr'
|
|
584
123
|
*/
|
|
585
124
|
Navigator.prototype.drawHandle = function (x, index, inverted, verb) {
|
|
586
125
|
var navigator = this, height = navigator.navigatorOptions.handles.height;
|
|
@@ -613,7 +152,8 @@ var Navigator = /** @class */ (function () {
|
|
|
613
152
|
*/
|
|
614
153
|
Navigator.prototype.drawOutline = function (zoomedMin, zoomedMax, inverted, verb) {
|
|
615
154
|
var navigator = this, maskInside = navigator.navigatorOptions.maskInside, outlineWidth = navigator.outline.strokeWidth(), halfOutline = outlineWidth / 2, outlineCorrection = (outlineWidth % 2) / 2, // #5800
|
|
616
|
-
outlineHeight = navigator.outlineHeight, scrollbarHeight = navigator.scrollbarHeight || 0, navigatorSize = navigator.size
|
|
155
|
+
outlineHeight = navigator.outlineHeight, scrollbarHeight = navigator.scrollbarHeight || 0, navigatorSize = navigator.size;
|
|
156
|
+
var left = navigator.left - scrollbarHeight, navigatorTop = navigator.top, verticalMin, path;
|
|
617
157
|
if (inverted) {
|
|
618
158
|
left -= halfOutline;
|
|
619
159
|
verticalMin = navigatorTop + zoomedMax + outlineCorrection;
|
|
@@ -696,7 +236,8 @@ var Navigator = /** @class */ (function () {
|
|
|
696
236
|
* use 'animate' or 'attr'
|
|
697
237
|
*/
|
|
698
238
|
Navigator.prototype.drawMasks = function (zoomedMin, zoomedMax, inverted, verb) {
|
|
699
|
-
var navigator = this, left = navigator.left, top = navigator.top, navigatorHeight = navigator.height
|
|
239
|
+
var navigator = this, left = navigator.left, top = navigator.top, navigatorHeight = navigator.height;
|
|
240
|
+
var height, width, x, y;
|
|
700
241
|
// Determine rectangle position & size
|
|
701
242
|
// According to (non)inverted position:
|
|
702
243
|
if (inverted) {
|
|
@@ -743,11 +284,12 @@ var Navigator = /** @class */ (function () {
|
|
|
743
284
|
* @function Highcharts.Navigator#renderElements
|
|
744
285
|
*/
|
|
745
286
|
Navigator.prototype.renderElements = function () {
|
|
746
|
-
var navigator = this, navigatorOptions = navigator.navigatorOptions, maskInside = navigatorOptions.maskInside, chart = navigator.chart, inverted = chart.inverted, renderer = chart.renderer,
|
|
287
|
+
var navigator = this, navigatorOptions = navigator.navigatorOptions, maskInside = navigatorOptions.maskInside, chart = navigator.chart, inverted = chart.inverted, renderer = chart.renderer, mouseCursor = {
|
|
747
288
|
cursor: inverted ? 'ns-resize' : 'ew-resize'
|
|
748
|
-
}
|
|
289
|
+
},
|
|
749
290
|
// Create the main navigator group
|
|
750
|
-
|
|
291
|
+
navigatorGroup = navigator.navigatorGroup = renderer
|
|
292
|
+
.g('navigator')
|
|
751
293
|
.attr({
|
|
752
294
|
zIndex: 8,
|
|
753
295
|
visibility: 'hidden'
|
|
@@ -786,10 +328,11 @@ var Navigator = /** @class */ (function () {
|
|
|
786
328
|
});
|
|
787
329
|
}
|
|
788
330
|
// Create the handlers:
|
|
789
|
-
if (navigatorOptions.handles.enabled) {
|
|
331
|
+
if (navigatorOptions.handles && navigatorOptions.handles.enabled) {
|
|
332
|
+
var handlesOptions_1 = navigatorOptions.handles;
|
|
790
333
|
[0, 1].forEach(function (index) {
|
|
791
|
-
|
|
792
|
-
navigator.handles[index] = renderer.symbol(
|
|
334
|
+
handlesOptions_1.inverted = !!chart.inverted;
|
|
335
|
+
navigator.handles[index] = renderer.symbol(handlesOptions_1.symbols[index], -handlesOptions_1.width / 2 - 1, 0, handlesOptions_1.width, handlesOptions_1.height, navigatorOptions.handles);
|
|
793
336
|
// zIndex = 6 for right handle, 7 for left.
|
|
794
337
|
// Can't be 10, because of the tooltip in inverted chart #2908
|
|
795
338
|
navigator.handles[index].attr({ zIndex: 7 - index })
|
|
@@ -797,12 +340,11 @@ var Navigator = /** @class */ (function () {
|
|
|
797
340
|
'highcharts-navigator-handle-' +
|
|
798
341
|
['left', 'right'][index]).add(navigatorGroup);
|
|
799
342
|
if (!chart.styledMode) {
|
|
800
|
-
var handlesOptions = navigatorOptions.handles;
|
|
801
343
|
navigator.handles[index]
|
|
802
344
|
.attr({
|
|
803
|
-
fill:
|
|
804
|
-
stroke:
|
|
805
|
-
'stroke-width':
|
|
345
|
+
fill: handlesOptions_1.backgroundColor,
|
|
346
|
+
stroke: handlesOptions_1.borderColor,
|
|
347
|
+
'stroke-width': handlesOptions_1.lineWidth
|
|
806
348
|
})
|
|
807
349
|
.css(mouseCursor);
|
|
808
350
|
}
|
|
@@ -828,7 +370,7 @@ var Navigator = /** @class */ (function () {
|
|
|
828
370
|
// Destroy and rebuild navigator
|
|
829
371
|
this.destroy();
|
|
830
372
|
var chartOptions = this.chart.options;
|
|
831
|
-
merge(true, chartOptions.navigator,
|
|
373
|
+
merge(true, chartOptions.navigator, options);
|
|
832
374
|
this.init(this.chart);
|
|
833
375
|
};
|
|
834
376
|
/**
|
|
@@ -846,7 +388,8 @@ var Navigator = /** @class */ (function () {
|
|
|
846
388
|
* Pixel value maximum
|
|
847
389
|
*/
|
|
848
390
|
Navigator.prototype.render = function (min, max, pxMin, pxMax) {
|
|
849
|
-
var navigator = this, chart = navigator.chart,
|
|
391
|
+
var navigator = this, chart = navigator.chart, xAxis = navigator.xAxis, pointRange = xAxis.pointRange || 0, scrollbarXAxis = xAxis.navigatorAxis.fake ? chart.xAxis[0] : xAxis, navigatorEnabled = navigator.navigatorEnabled, rendered = navigator.rendered, inverted = chart.inverted, minRange = chart.xAxis[0].minRange, maxRange = chart.xAxis[0].options.maxRange;
|
|
392
|
+
var navigatorWidth, scrollbarLeft, scrollbarTop, scrollbarHeight = navigator.scrollbarHeight, navigatorSize, verb;
|
|
850
393
|
// Don't redraw while moving the handles (#4703).
|
|
851
394
|
if (this.hasDragged && !defined(pxMin)) {
|
|
852
395
|
return;
|
|
@@ -869,7 +412,7 @@ var Navigator = /** @class */ (function () {
|
|
|
869
412
|
// in case of scrollbar only, without navigator
|
|
870
413
|
chart.plotLeft + scrollbarHeight +
|
|
871
414
|
(inverted ? chart.plotWidth : 0));
|
|
872
|
-
navigator.size =
|
|
415
|
+
var zoomedMax = navigator.size = navigatorSize = pick(xAxis.len, (inverted ? chart.plotHeight : chart.plotWidth) -
|
|
873
416
|
2 * scrollbarHeight);
|
|
874
417
|
if (inverted) {
|
|
875
418
|
navigatorWidth = scrollbarHeight;
|
|
@@ -886,9 +429,7 @@ var Navigator = /** @class */ (function () {
|
|
|
886
429
|
pxMax = navigatorWidth;
|
|
887
430
|
}
|
|
888
431
|
// Are we below the minRange? (#2618, #6191)
|
|
889
|
-
newMin = xAxis.toValue(pxMin, true);
|
|
890
|
-
newMax = xAxis.toValue(pxMax, true);
|
|
891
|
-
currentRange = Math.abs(correctFloat(newMax - newMin));
|
|
432
|
+
var newMin = xAxis.toValue(pxMin, true), newMax = xAxis.toValue(pxMax, true), currentRange = Math.abs(correctFloat(newMax - newMin));
|
|
892
433
|
if (currentRange < minRange) {
|
|
893
434
|
if (this.grabbedLeft) {
|
|
894
435
|
pxMin = xAxis.toPixels(newMax - minRange - pointRange, true);
|
|
@@ -913,7 +454,7 @@ var Navigator = /** @class */ (function () {
|
|
|
913
454
|
Math.min(pxMin, pxMax), 0, zoomedMax);
|
|
914
455
|
navigator.range = navigator.zoomedMax - navigator.zoomedMin;
|
|
915
456
|
zoomedMax = Math.round(navigator.zoomedMax);
|
|
916
|
-
zoomedMin = Math.round(navigator.zoomedMin);
|
|
457
|
+
var zoomedMin = Math.round(navigator.zoomedMin);
|
|
917
458
|
if (navigatorEnabled) {
|
|
918
459
|
navigator.navigatorGroup.attr({
|
|
919
460
|
visibility: 'inherit'
|
|
@@ -961,7 +502,8 @@ var Navigator = /** @class */ (function () {
|
|
|
961
502
|
* @function Highcharts.Navigator#addMouseEvents
|
|
962
503
|
*/
|
|
963
504
|
Navigator.prototype.addMouseEvents = function () {
|
|
964
|
-
var navigator = this, chart = navigator.chart, container = chart.container
|
|
505
|
+
var navigator = this, chart = navigator.chart, container = chart.container;
|
|
506
|
+
var eventsToUnbind = [], mouseMoveHandler, mouseUpHandler;
|
|
965
507
|
/**
|
|
966
508
|
* Create mouse events' handlers.
|
|
967
509
|
* Make them as separate functions to enable wrapping them:
|
|
@@ -1033,7 +575,8 @@ var Navigator = /** @class */ (function () {
|
|
|
1033
575
|
*/
|
|
1034
576
|
Navigator.prototype.shadesMousedown = function (e, index) {
|
|
1035
577
|
e = this.chart.pointer.normalize(e);
|
|
1036
|
-
var navigator = this, chart = navigator.chart, xAxis = navigator.xAxis, zoomedMin = navigator.zoomedMin,
|
|
578
|
+
var navigator = this, chart = navigator.chart, xAxis = navigator.xAxis, zoomedMin = navigator.zoomedMin, navigatorSize = navigator.size, range = navigator.range;
|
|
579
|
+
var navigatorPosition = navigator.left, chartX = e.chartX, fixedMax, fixedMin, ext, left;
|
|
1037
580
|
// For inverted chart, swap some options:
|
|
1038
581
|
if (chart.inverted) {
|
|
1039
582
|
chartX = e.chartY;
|
|
@@ -1114,7 +657,8 @@ var Navigator = /** @class */ (function () {
|
|
|
1114
657
|
* Mouse event
|
|
1115
658
|
*/
|
|
1116
659
|
Navigator.prototype.onMouseMove = function (e) {
|
|
1117
|
-
var navigator = this, chart = navigator.chart,
|
|
660
|
+
var navigator = this, chart = navigator.chart, navigatorSize = navigator.navigatorSize, range = navigator.range, dragOffset = navigator.dragOffset, inverted = chart.inverted;
|
|
661
|
+
var left = navigator.left, chartX;
|
|
1118
662
|
// In iOS, a mousemove event with e.pageX === 0 is fired when holding
|
|
1119
663
|
// the finger down in the center of the scrollbar. This should be
|
|
1120
664
|
// ignored.
|
|
@@ -1174,7 +718,8 @@ var Navigator = /** @class */ (function () {
|
|
|
1174
718
|
*/
|
|
1175
719
|
Navigator.prototype.onMouseUp = function (e) {
|
|
1176
720
|
var navigator = this, chart = navigator.chart, xAxis = navigator.xAxis, scrollbar = navigator.scrollbar, DOMEvent = e.DOMEvent || e, inverted = chart.inverted, verb = navigator.rendered && !navigator.hasDragged ?
|
|
1177
|
-
'animate' : 'attr'
|
|
721
|
+
'animate' : 'attr';
|
|
722
|
+
var zoomedMax, zoomedMin, unionExtremes, fixedMin, fixedMax, ext;
|
|
1178
723
|
if (
|
|
1179
724
|
// MouseUp is called for both, navigator and scrollbar (that order),
|
|
1180
725
|
// which causes calling afterSetExtremes twice. Prevent first call
|
|
@@ -1280,13 +825,9 @@ var Navigator = /** @class */ (function () {
|
|
|
1280
825
|
*
|
|
1281
826
|
* @private
|
|
1282
827
|
* @function Highcharts.Navigator#init
|
|
1283
|
-
*
|
|
1284
|
-
* @param {Highcharts.Chart} chart
|
|
1285
828
|
*/
|
|
1286
829
|
Navigator.prototype.init = function (chart) {
|
|
1287
|
-
var chartOptions = chart.options, navigatorOptions = chartOptions.navigator, navigatorEnabled = navigatorOptions.enabled, scrollbarOptions = chartOptions.scrollbar, scrollbarEnabled = scrollbarOptions.enabled, height = navigatorEnabled
|
|
1288
|
-
scrollbarOptions.height :
|
|
1289
|
-
0;
|
|
830
|
+
var chartOptions = chart.options, navigatorOptions = chartOptions.navigator || {}, navigatorEnabled = navigatorOptions.enabled, scrollbarOptions = chartOptions.scrollbar || {}, scrollbarEnabled = scrollbarOptions.enabled, height = navigatorEnabled && navigatorOptions.height || 0, scrollbarHeight = scrollbarEnabled && scrollbarOptions.height || 0;
|
|
1290
831
|
this.handles = [];
|
|
1291
832
|
this.shades = [];
|
|
1292
833
|
this.chart = chart;
|
|
@@ -1386,7 +927,7 @@ var Navigator = /** @class */ (function () {
|
|
|
1386
927
|
}
|
|
1387
928
|
};
|
|
1388
929
|
navigator.xAxis.navigatorAxis.axis = navigator.xAxis;
|
|
1389
|
-
navigator.xAxis.navigatorAxis.toFixedRange = (
|
|
930
|
+
navigator.xAxis.navigatorAxis.toFixedRange = (NavigatorAxisAdditions.prototype.toFixedRange.bind(navigator.xAxis.navigatorAxis));
|
|
1390
931
|
}
|
|
1391
932
|
// Initialize the scrollbar
|
|
1392
933
|
if (chart.options.scrollbar.enabled) {
|
|
@@ -1418,7 +959,8 @@ var Navigator = /** @class */ (function () {
|
|
|
1418
959
|
* @function Highcharts.Navigator#getUnionExtremes
|
|
1419
960
|
*/
|
|
1420
961
|
Navigator.prototype.getUnionExtremes = function (returnFalseOnNoBaseSeries) {
|
|
1421
|
-
var baseAxis = this.chart.xAxis[0], navAxis = this.xAxis, navAxisOptions = navAxis.options, baseAxisOptions = baseAxis.options
|
|
962
|
+
var baseAxis = this.chart.xAxis[0], navAxis = this.xAxis, navAxisOptions = navAxis.options, baseAxisOptions = baseAxis.options;
|
|
963
|
+
var ret;
|
|
1422
964
|
if (!returnFalseOnNoBaseSeries || baseAxis.dataMin !== null) {
|
|
1423
965
|
ret = {
|
|
1424
966
|
dataMin: pick(// #4053
|
|
@@ -1446,9 +988,7 @@ var Navigator = /** @class */ (function () {
|
|
|
1446
988
|
chart.options && chart.options.navigator.baseSeries ||
|
|
1447
989
|
(chart.series.length ?
|
|
1448
990
|
// Find the first non-navigator series (#8430)
|
|
1449
|
-
find(chart.series, function (s) {
|
|
1450
|
-
return !s.options.isInternal;
|
|
1451
|
-
}).index :
|
|
991
|
+
find(chart.series, function (s) { return (!s.options.isInternal); }).index :
|
|
1452
992
|
0));
|
|
1453
993
|
// Iterate through series and add the ones that should be shown in
|
|
1454
994
|
// navigator.
|
|
@@ -1474,11 +1014,9 @@ var Navigator = /** @class */ (function () {
|
|
|
1474
1014
|
*
|
|
1475
1015
|
* @private
|
|
1476
1016
|
* @function Highcharts.Navigator.updateNavigatorSeries
|
|
1477
|
-
* @param {boolean} addEvents
|
|
1478
|
-
* @param {boolean} [redraw]
|
|
1479
1017
|
*/
|
|
1480
1018
|
Navigator.prototype.updateNavigatorSeries = function (addEvents, redraw) {
|
|
1481
|
-
var navigator = this, chart = navigator.chart, baseSeries = navigator.baseSeries,
|
|
1019
|
+
var navigator = this, chart = navigator.chart, baseSeries = navigator.baseSeries, navSeriesMixin = {
|
|
1482
1020
|
enableMouseTracking: false,
|
|
1483
1021
|
index: null,
|
|
1484
1022
|
linkedTo: null,
|
|
@@ -1515,10 +1053,11 @@ var Navigator = /** @class */ (function () {
|
|
|
1515
1053
|
}
|
|
1516
1054
|
return true;
|
|
1517
1055
|
});
|
|
1056
|
+
var baseOptions, mergedNavSeriesOptions, chartNavigatorSeriesOptions = navigator.navigatorOptions.series, baseNavigatorOptions;
|
|
1518
1057
|
// Go through each base series and merge the options to create new
|
|
1519
1058
|
// series
|
|
1520
1059
|
if (baseSeries && baseSeries.length) {
|
|
1521
|
-
baseSeries.forEach(function
|
|
1060
|
+
baseSeries.forEach(function (base) {
|
|
1522
1061
|
var linkedNavSeries = base.navigatorSeries, userNavOptions = extend(
|
|
1523
1062
|
// Grab color and visibility from base as default
|
|
1524
1063
|
{
|
|
@@ -1610,6 +1149,7 @@ var Navigator = /** @class */ (function () {
|
|
|
1610
1149
|
* @function Highcharts.Navigator#addBaseSeriesEvent
|
|
1611
1150
|
*/
|
|
1612
1151
|
Navigator.prototype.addBaseSeriesEvents = function () {
|
|
1152
|
+
var _this = this;
|
|
1613
1153
|
var navigator = this, baseSeries = navigator.baseSeries || [];
|
|
1614
1154
|
// Bind modified extremes event to first base's xAxis only.
|
|
1615
1155
|
// In event of > 1 base-xAxes, the navigator will ignore those.
|
|
@@ -1632,9 +1172,9 @@ var Navigator = /** @class */ (function () {
|
|
|
1632
1172
|
}));
|
|
1633
1173
|
// Respond to updated data in the base series, unless explicitily
|
|
1634
1174
|
// not adapting to data changes.
|
|
1635
|
-
if (
|
|
1175
|
+
if (_this.navigatorOptions.adaptToUpdatedData !== false) {
|
|
1636
1176
|
if (base.xAxis) {
|
|
1637
|
-
base.eventsToUnbind.push(addEvent(base, 'updatedData',
|
|
1177
|
+
base.eventsToUnbind.push(addEvent(base, 'updatedData', _this.updatedDataHandler));
|
|
1638
1178
|
}
|
|
1639
1179
|
}
|
|
1640
1180
|
// Handle series removal
|
|
@@ -1647,14 +1187,15 @@ var Navigator = /** @class */ (function () {
|
|
|
1647
1187
|
delete this.navigatorSeries;
|
|
1648
1188
|
}
|
|
1649
1189
|
}));
|
|
1650
|
-
}
|
|
1190
|
+
});
|
|
1651
1191
|
};
|
|
1652
1192
|
/**
|
|
1653
1193
|
* Get minimum from all base series connected to the navigator
|
|
1654
1194
|
* @private
|
|
1655
|
-
* @param
|
|
1656
|
-
*
|
|
1657
|
-
* @return {number}
|
|
1195
|
+
* @param {number} currentSeriesMin
|
|
1196
|
+
* Minium from the current series
|
|
1197
|
+
* @return {number}
|
|
1198
|
+
* Minimum from all series
|
|
1658
1199
|
*/
|
|
1659
1200
|
Navigator.prototype.getBaseSeriesMin = function (currentSeriesMin) {
|
|
1660
1201
|
return this.baseSeries.reduce(function (min, series) {
|
|
@@ -1672,9 +1213,9 @@ var Navigator = /** @class */ (function () {
|
|
|
1672
1213
|
* @function Highcharts.Navigator#modifyNavigatorAxisExtremes
|
|
1673
1214
|
*/
|
|
1674
1215
|
Navigator.prototype.modifyNavigatorAxisExtremes = function () {
|
|
1675
|
-
var xAxis = this.xAxis
|
|
1216
|
+
var xAxis = this.xAxis;
|
|
1676
1217
|
if (typeof xAxis.getExtremes !== 'undefined') {
|
|
1677
|
-
unionExtremes = this.getUnionExtremes(true);
|
|
1218
|
+
var unionExtremes = this.getUnionExtremes(true);
|
|
1678
1219
|
if (unionExtremes &&
|
|
1679
1220
|
(unionExtremes.dataMin !== xAxis.min ||
|
|
1680
1221
|
unionExtremes.dataMax !== xAxis.max)) {
|
|
@@ -1690,12 +1231,13 @@ var Navigator = /** @class */ (function () {
|
|
|
1690
1231
|
* @function Highcharts.Navigator#modifyBaseAxisExtremes
|
|
1691
1232
|
*/
|
|
1692
1233
|
Navigator.prototype.modifyBaseAxisExtremes = function () {
|
|
1693
|
-
var baseXAxis = this, navigator = baseXAxis.chart.navigator, baseExtremes = baseXAxis.getExtremes(), baseMin = baseExtremes.min, baseMax = baseExtremes.max, baseDataMin = baseExtremes.dataMin, baseDataMax = baseExtremes.dataMax, range = baseMax - baseMin, stickToMin = navigator.stickToMin, stickToMax = navigator.stickToMax, overscroll = pick(baseXAxis.options.overscroll, 0),
|
|
1234
|
+
var baseXAxis = this, navigator = baseXAxis.chart.navigator, baseExtremes = baseXAxis.getExtremes(), baseMin = baseExtremes.min, baseMax = baseExtremes.max, baseDataMin = baseExtremes.dataMin, baseDataMax = baseExtremes.dataMax, range = baseMax - baseMin, stickToMin = navigator.stickToMin, stickToMax = navigator.stickToMax, overscroll = pick(baseXAxis.options.overscroll, 0), navigatorSeries = navigator.series && navigator.series[0], hasSetExtremes = !!baseXAxis.setExtremes,
|
|
1694
1235
|
// When the extremes have been set by range selector button, don't
|
|
1695
1236
|
// stick to min or max. The range selector buttons will handle the
|
|
1696
1237
|
// extremes. (#5489)
|
|
1697
1238
|
unmutable = baseXAxis.eventArgs &&
|
|
1698
1239
|
baseXAxis.eventArgs.trigger === 'rangeSelectorButton';
|
|
1240
|
+
var newMax, newMin;
|
|
1699
1241
|
if (!unmutable) {
|
|
1700
1242
|
// If the zoomed range is already at the min, move it to the right
|
|
1701
1243
|
// as new data comes in
|
|
@@ -1819,6 +1361,7 @@ var Navigator = /** @class */ (function () {
|
|
|
1819
1361
|
* @function Highcharts.Navigator#destroy
|
|
1820
1362
|
*/
|
|
1821
1363
|
Navigator.prototype.destroy = function () {
|
|
1364
|
+
var _this = this;
|
|
1822
1365
|
// Disconnect events added in addEvents
|
|
1823
1366
|
this.removeEvents();
|
|
1824
1367
|
if (this.xAxis) {
|
|
@@ -1841,138 +1384,21 @@ var Navigator = /** @class */ (function () {
|
|
|
1841
1384
|
'scrollbarRifles', 'scrollbarGroup', 'scrollbar', 'navigatorGroup',
|
|
1842
1385
|
'rendered'
|
|
1843
1386
|
].forEach(function (prop) {
|
|
1844
|
-
if (
|
|
1845
|
-
|
|
1387
|
+
if (_this[prop] && _this[prop].destroy) {
|
|
1388
|
+
_this[prop].destroy();
|
|
1846
1389
|
}
|
|
1847
|
-
|
|
1848
|
-
}
|
|
1390
|
+
_this[prop] = null;
|
|
1391
|
+
});
|
|
1849
1392
|
// Destroy elements in collection
|
|
1850
1393
|
[this.handles].forEach(function (coll) {
|
|
1851
1394
|
destroyObjectProperties(coll);
|
|
1852
|
-
}
|
|
1395
|
+
});
|
|
1853
1396
|
};
|
|
1854
1397
|
return Navigator;
|
|
1855
1398
|
}());
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
// selector. (#9285)
|
|
1863
|
-
addEvent(Chart, 'beforeShowResetZoom', function () {
|
|
1864
|
-
var chartOptions = this.options, navigator = chartOptions.navigator, rangeSelector = chartOptions.rangeSelector;
|
|
1865
|
-
if (((navigator && navigator.enabled) ||
|
|
1866
|
-
(rangeSelector && rangeSelector.enabled)) &&
|
|
1867
|
-
((!isTouchDevice &&
|
|
1868
|
-
chartOptions.chart.zooming.type === 'x') ||
|
|
1869
|
-
(isTouchDevice &&
|
|
1870
|
-
chartOptions.chart.zooming.pinchType === 'x'))) {
|
|
1871
|
-
return false;
|
|
1872
|
-
}
|
|
1873
|
-
});
|
|
1874
|
-
// Initialize navigator for stock charts
|
|
1875
|
-
addEvent(Chart, 'beforeRender', function () {
|
|
1876
|
-
var options = this.options;
|
|
1877
|
-
if (options.navigator.enabled ||
|
|
1878
|
-
options.scrollbar.enabled) {
|
|
1879
|
-
this.scroller = this.navigator = new Navigator(this);
|
|
1880
|
-
}
|
|
1881
|
-
});
|
|
1882
|
-
// For stock charts, extend the Chart.setChartSize method so that we can set
|
|
1883
|
-
// the final top position of the navigator once the height of the chart,
|
|
1884
|
-
// including the legend, is determined. #367. We can't use Chart.getMargins,
|
|
1885
|
-
// because labels offsets are not calculated yet.
|
|
1886
|
-
addEvent(Chart, 'afterSetChartSize', function () {
|
|
1887
|
-
var legend = this.legend, navigator = this.navigator, scrollbarHeight, legendOptions, xAxis, yAxis;
|
|
1888
|
-
if (navigator) {
|
|
1889
|
-
legendOptions = legend && legend.options;
|
|
1890
|
-
xAxis = navigator.xAxis;
|
|
1891
|
-
yAxis = navigator.yAxis;
|
|
1892
|
-
scrollbarHeight = navigator.scrollbarHeight;
|
|
1893
|
-
// Compute the top position
|
|
1894
|
-
if (this.inverted) {
|
|
1895
|
-
navigator.left = navigator.opposite ?
|
|
1896
|
-
this.chartWidth - scrollbarHeight -
|
|
1897
|
-
navigator.height :
|
|
1898
|
-
this.spacing[3] + scrollbarHeight;
|
|
1899
|
-
navigator.top = this.plotTop + scrollbarHeight;
|
|
1900
|
-
}
|
|
1901
|
-
else {
|
|
1902
|
-
navigator.left = pick(xAxis.left, this.plotLeft + scrollbarHeight);
|
|
1903
|
-
navigator.top = navigator.navigatorOptions.top ||
|
|
1904
|
-
this.chartHeight -
|
|
1905
|
-
navigator.height -
|
|
1906
|
-
scrollbarHeight -
|
|
1907
|
-
this.spacing[2] -
|
|
1908
|
-
(this.rangeSelector && this.extraBottomMargin ?
|
|
1909
|
-
this.rangeSelector.getHeight() :
|
|
1910
|
-
0) -
|
|
1911
|
-
((legendOptions &&
|
|
1912
|
-
legendOptions.verticalAlign === 'bottom' &&
|
|
1913
|
-
legendOptions.layout !== 'proximate' && // #13392
|
|
1914
|
-
legendOptions.enabled &&
|
|
1915
|
-
!legendOptions.floating) ?
|
|
1916
|
-
legend.legendHeight +
|
|
1917
|
-
pick(legendOptions.margin, 10) :
|
|
1918
|
-
0) -
|
|
1919
|
-
(this.titleOffset ? this.titleOffset[2] : 0);
|
|
1920
|
-
}
|
|
1921
|
-
if (xAxis && yAxis) { // false if navigator is disabled (#904)
|
|
1922
|
-
if (this.inverted) {
|
|
1923
|
-
xAxis.options.left = yAxis.options.left = navigator.left;
|
|
1924
|
-
}
|
|
1925
|
-
else {
|
|
1926
|
-
xAxis.options.top = yAxis.options.top = navigator.top;
|
|
1927
|
-
}
|
|
1928
|
-
xAxis.setAxisSize();
|
|
1929
|
-
yAxis.setAxisSize();
|
|
1930
|
-
}
|
|
1931
|
-
}
|
|
1932
|
-
});
|
|
1933
|
-
// Merge options, if no scrolling exists yet
|
|
1934
|
-
addEvent(Chart, 'update', function (e) {
|
|
1935
|
-
var navigatorOptions = (e.options.navigator || {}), scrollbarOptions = (e.options.scrollbar || {});
|
|
1936
|
-
if (!this.navigator && !this.scroller &&
|
|
1937
|
-
(navigatorOptions.enabled || scrollbarOptions.enabled)) {
|
|
1938
|
-
merge(true, this.options.navigator, navigatorOptions);
|
|
1939
|
-
merge(true, this.options.scrollbar, scrollbarOptions);
|
|
1940
|
-
delete e.options.navigator;
|
|
1941
|
-
delete e.options.scrollbar;
|
|
1942
|
-
}
|
|
1943
|
-
});
|
|
1944
|
-
// Initialize navigator, if no scrolling exists yet
|
|
1945
|
-
addEvent(Chart, 'afterUpdate', function (event) {
|
|
1946
|
-
if (!this.navigator && !this.scroller &&
|
|
1947
|
-
(this.options.navigator.enabled ||
|
|
1948
|
-
this.options.scrollbar.enabled)) {
|
|
1949
|
-
this.scroller = this.navigator = new Navigator(this);
|
|
1950
|
-
if (pick(event.redraw, true)) {
|
|
1951
|
-
this.redraw(event.animation); // #7067
|
|
1952
|
-
}
|
|
1953
|
-
}
|
|
1954
|
-
});
|
|
1955
|
-
// Handle adding new series
|
|
1956
|
-
addEvent(Chart, 'afterAddSeries', function () {
|
|
1957
|
-
if (this.navigator) {
|
|
1958
|
-
// Recompute which series should be shown in navigator, and add them
|
|
1959
|
-
this.navigator.setBaseSeries(null, false);
|
|
1960
|
-
}
|
|
1961
|
-
});
|
|
1962
|
-
// Handle updating series
|
|
1963
|
-
addEvent(Series, 'afterUpdate', function () {
|
|
1964
|
-
if (this.chart.navigator && !this.options.isInternal) {
|
|
1965
|
-
this.chart.navigator.setBaseSeries(null, false);
|
|
1966
|
-
}
|
|
1967
|
-
});
|
|
1968
|
-
Chart.prototype.callbacks.push(function (chart) {
|
|
1969
|
-
var extremes, navigator = chart.navigator;
|
|
1970
|
-
// Initialize the navigator
|
|
1971
|
-
if (navigator && chart.xAxis[0]) {
|
|
1972
|
-
extremes = chart.xAxis[0].getExtremes();
|
|
1973
|
-
navigator.render(extremes.min, extremes.max);
|
|
1974
|
-
}
|
|
1975
|
-
});
|
|
1976
|
-
}
|
|
1977
|
-
H.Navigator = Navigator;
|
|
1978
|
-
export default H.Navigator;
|
|
1399
|
+
/* *
|
|
1400
|
+
*
|
|
1401
|
+
* Default Export
|
|
1402
|
+
*
|
|
1403
|
+
* */
|
|
1404
|
+
export default Navigator;
|