highcharts 6.1.1 → 6.2.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/bower.json +1 -1
- package/css/highcharts.css +29 -0
- package/css/highcharts.scss +25 -1
- package/css/themes/dark-unica.css +29 -0
- package/css/themes/grid-light.css +29 -0
- package/css/themes/sand-signika.css +29 -0
- package/es-modules/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/indicators/atr.src.js +1 -1
- package/es-modules/indicators/bollinger-bands.src.js +2 -2
- package/es-modules/indicators/cci.src.js +1 -1
- package/es-modules/indicators/cmf.src.js +1 -1
- package/es-modules/indicators/ema.src.js +1 -1
- package/es-modules/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/indicators/indicators.src.js +29 -14
- package/es-modules/indicators/macd.src.js +4 -4
- package/es-modules/indicators/mfi.src.js +1 -1
- package/es-modules/indicators/momentum.src.js +2 -2
- package/es-modules/indicators/pivot-points.src.js +7 -2
- package/es-modules/indicators/price-envelopes.src.js +2 -2
- package/es-modules/indicators/psar.src.js +1 -1
- package/es-modules/indicators/roc.src.js +1 -1
- package/es-modules/indicators/rsi.src.js +1 -1
- package/es-modules/indicators/stochastic.src.js +9 -7
- package/es-modules/indicators/volume-by-price.src.js +1 -1
- package/es-modules/indicators/vwap.src.js +1 -1
- package/es-modules/indicators/wma.src.js +1 -1
- package/es-modules/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +11 -0
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +12 -0
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +12 -0
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +9 -0
- 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/funnel.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +2 -1
- 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/item-series.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +12 -0
- 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/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +12 -0
- 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/windbarb.src.js +1 -1
- package/es-modules/masters/modules/xrange.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/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/mixins/centered-series.js +36 -5
- package/es-modules/mixins/on-series.js +1 -1
- package/es-modules/mixins/polygon.js +4 -4
- package/es-modules/modules/annotations.src.js +2 -2
- package/es-modules/modules/boost-canvas.src.js +19 -8
- package/es-modules/modules/boost.src.js +300 -137
- package/es-modules/modules/broken-axis.src.js +169 -134
- package/es-modules/modules/bullet.src.js +2 -2
- package/es-modules/modules/data.src.js +8 -6
- package/es-modules/modules/draggable-points.src.js +2257 -0
- package/es-modules/modules/drilldown.src.js +4 -2
- package/es-modules/modules/export-data.src.js +11 -1
- package/es-modules/modules/exporting.src.js +62 -36
- package/es-modules/modules/funnel.src.js +5 -5
- package/es-modules/modules/histogram.src.js +30 -28
- package/es-modules/modules/item-series.src.js +36 -11
- package/es-modules/modules/keyboard-navigation.src.js +81 -44
- package/es-modules/modules/no-data-to-display.src.js +5 -5
- package/es-modules/modules/oldie.src.js +14 -9
- package/es-modules/modules/overlapping-datalabels.src.js +45 -21
- package/es-modules/modules/parallel-coordinates.src.js +4 -3
- package/es-modules/modules/pareto.src.js +1 -1
- package/es-modules/modules/sankey.src.js +28 -10
- package/es-modules/modules/series-label.src.js +6 -6
- package/es-modules/modules/solid-gauge.src.js +10 -7
- package/es-modules/modules/static-scale.src.js +67 -28
- package/es-modules/modules/streamgraph.src.js +4 -4
- package/es-modules/modules/sunburst.src.js +4 -4
- package/es-modules/modules/tilemap.src.js +231 -134
- package/es-modules/modules/treemap.src.js +30 -27
- package/es-modules/modules/variable-pie.src.js +3 -3
- package/es-modules/modules/variwide.src.js +36 -24
- package/es-modules/modules/vector.src.js +98 -28
- package/es-modules/modules/windbarb.src.js +4 -4
- package/es-modules/modules/wordcloud.src.js +133 -48
- package/es-modules/modules/xrange.src.js +258 -78
- package/es-modules/parts/AreaSeries.js +83 -50
- package/es-modules/parts/AreaSplineSeries.js +66 -29
- package/es-modules/parts/Axis.js +2184 -745
- package/es-modules/parts/BarSeries.js +70 -53
- package/es-modules/parts/CandlestickSeries.js +20 -10
- package/es-modules/parts/Chart.js +349 -157
- package/es-modules/parts/Color.js +74 -25
- package/es-modules/parts/ColumnSeries.js +274 -147
- package/es-modules/parts/DataGrouping.js +36 -3
- package/es-modules/parts/DataLabels.js +318 -144
- package/es-modules/parts/DateTimeAxis.js +27 -5
- package/es-modules/parts/Dynamics.js +236 -144
- package/es-modules/parts/FlagsSeries.js +49 -7
- package/es-modules/parts/Globals.js +4 -3
- package/es-modules/parts/Html.js +82 -16
- package/es-modules/parts/Interaction.js +198 -65
- package/es-modules/parts/Legend.js +181 -31
- package/es-modules/parts/LogarithmicAxis.js +36 -3
- package/es-modules/parts/MSPointer.js +31 -4
- package/es-modules/parts/Navigator.js +479 -187
- package/es-modules/parts/OHLCSeries.js +11 -5
- package/es-modules/parts/Options.js +1052 -686
- package/es-modules/parts/OrdinalAxis.js +20 -6
- package/es-modules/parts/PieSeries.js +258 -142
- package/es-modules/parts/PlotBandSeries.experimental.js +2 -2
- package/es-modules/parts/PlotLineOrBand.js +671 -35
- package/es-modules/parts/Point.js +189 -73
- package/es-modules/parts/Pointer.js +263 -62
- package/es-modules/parts/RangeSelector.js +601 -91
- package/es-modules/parts/Responsive.js +82 -36
- package/es-modules/parts/ScatterSeries.js +59 -27
- package/es-modules/parts/ScrollablePlotArea.js +30 -9
- package/es-modules/parts/Scrollbar.js +284 -113
- package/es-modules/parts/Series.js +1105 -836
- package/es-modules/parts/SplineSeries.js +53 -31
- package/es-modules/parts/Stacking.js +108 -7
- package/es-modules/parts/StockChart.js +26 -8
- package/es-modules/parts/SvgRenderer.js +1251 -613
- package/es-modules/parts/Tick.js +164 -30
- package/es-modules/parts/Time.js +171 -71
- package/es-modules/parts/Tooltip.js +271 -49
- package/es-modules/parts/TouchPointer.js +70 -3
- package/es-modules/parts/Utilities.js +1024 -429
- package/es-modules/parts-3d/Axis.js +4 -3
- package/es-modules/parts-3d/Chart.js +8 -9
- package/es-modules/parts-3d/Column.js +1 -1
- package/es-modules/parts-3d/Math.js +1 -1
- package/es-modules/parts-3d/Pie.js +1 -1
- package/es-modules/parts-3d/SVGRenderer.js +13 -10
- package/es-modules/parts-3d/Scatter.js +4 -4
- package/es-modules/parts-3d/Series.js +1 -1
- package/es-modules/parts-3d/VMLRenderer.js +1 -1
- package/es-modules/parts-gantt/ArrowSymbols.js +110 -0
- package/es-modules/parts-gantt/CurrentDateIndicator.js +92 -0
- package/es-modules/parts-gantt/GanttChart.js +111 -0
- package/es-modules/parts-gantt/GanttSeries.js +376 -0
- package/es-modules/parts-gantt/GridAxis.js +965 -0
- package/es-modules/parts-gantt/Pathfinder.js +1247 -0
- package/es-modules/parts-gantt/PathfinderAlgorithms.js +746 -0
- package/es-modules/parts-gantt/Tree.js +146 -0
- package/es-modules/parts-gantt/TreeGrid.js +917 -0
- package/es-modules/parts-map/ColorAxis.js +4 -5
- package/es-modules/parts-map/ColorSeriesMixin.js +3 -1
- package/es-modules/parts-map/GeoJSON.js +1 -1
- package/es-modules/parts-map/HeatmapSeries.js +126 -55
- package/es-modules/parts-map/Map.js +144 -51
- package/es-modules/parts-map/MapAxis.js +1 -1
- package/es-modules/parts-map/MapBubbleSeries.js +6 -5
- package/es-modules/parts-map/MapLineSeries.js +4 -4
- package/es-modules/parts-map/MapNavigation.js +50 -12
- package/es-modules/parts-map/MapPointSeries.js +3 -3
- package/es-modules/parts-map/MapPointer.js +1 -1
- package/es-modules/parts-map/MapSeries.js +7 -7
- package/es-modules/parts-more/AreaRangeSeries.js +82 -40
- package/es-modules/parts-more/AreaSplineRangeSeries.js +3 -3
- package/es-modules/parts-more/BoxPlotSeries.js +3 -3
- package/es-modules/parts-more/BubbleSeries.js +9 -4
- package/es-modules/parts-more/ColumnRangeSeries.js +3 -3
- package/es-modules/parts-more/ErrorBarSeries.js +6 -4
- package/es-modules/parts-more/GaugeSeries.js +3 -3
- package/es-modules/parts-more/Pane.js +3 -2
- package/es-modules/parts-more/Polar.js +1 -1
- package/es-modules/parts-more/PolygonSeries.js +3 -3
- package/es-modules/parts-more/RadialAxis.js +5 -4
- package/es-modules/parts-more/WaterfallSeries.js +9 -4
- package/es-modules/supplemental.docs.js +0 -1955
- package/es-modules/themes/dark-blue.js +1 -1
- package/es-modules/themes/dark-green.js +1 -1
- package/es-modules/themes/dark-unica.js +1 -1
- package/es-modules/themes/gray.js +1 -1
- package/es-modules/themes/grid-light.js +1 -1
- package/es-modules/themes/grid.js +1 -1
- package/es-modules/themes/sand-signika.js +1 -1
- package/es-modules/themes/skies.js +1 -1
- package/highcharts-3d.js +77 -75
- package/highcharts-3d.js.map +1 -8
- package/highcharts-3d.src.js +39 -32
- package/highcharts-gantt.js +503 -0
- package/highcharts-gantt.js.map +1 -0
- package/highcharts-gantt.src.js +49289 -0
- package/highcharts-more.js +66 -64
- package/highcharts-more.js.map +1 -8
- package/highcharts-more.src.js +135 -75
- package/highcharts.js +413 -403
- package/highcharts.js.map +1 -8
- package/highcharts.src.js +11114 -4781
- package/highmaps.js +442 -433
- package/highmaps.js.map +1 -8
- package/highmaps.src.js +10740 -4598
- package/highstock.js +553 -540
- package/highstock.js.map +1 -8
- package/highstock.src.js +12807 -5343
- package/indicators/accumulation-distribution.js +4 -3
- package/indicators/accumulation-distribution.js.map +1 -8
- package/indicators/accumulation-distribution.src.js +6 -2
- package/indicators/atr.js +4 -3
- package/indicators/atr.js.map +1 -8
- package/indicators/atr.src.js +6 -2
- package/indicators/bollinger-bands.js +7 -6
- package/indicators/bollinger-bands.js.map +1 -8
- package/indicators/bollinger-bands.src.js +7 -3
- package/indicators/cci.js +4 -3
- package/indicators/cci.js.map +1 -8
- package/indicators/cci.src.js +6 -2
- package/indicators/cmf.js +5 -4
- package/indicators/cmf.js.map +1 -8
- package/indicators/cmf.src.js +6 -2
- package/indicators/ema.js +4 -3
- package/indicators/ema.js.map +1 -8
- package/indicators/ema.src.js +6 -2
- package/indicators/ichimoku-kinko-hyo.js +10 -9
- package/indicators/ichimoku-kinko-hyo.js.map +1 -8
- package/indicators/ichimoku-kinko-hyo.src.js +6 -2
- package/indicators/indicators.js +6 -5
- package/indicators/indicators.js.map +1 -8
- package/indicators/indicators.src.js +34 -15
- package/indicators/macd.js +11 -10
- package/indicators/macd.js.map +1 -8
- package/indicators/macd.src.js +10 -6
- package/indicators/mfi.js +5 -3
- package/indicators/mfi.js.map +1 -8
- package/indicators/mfi.src.js +6 -2
- package/indicators/momentum.js +4 -3
- package/indicators/momentum.js.map +1 -8
- package/indicators/momentum.src.js +7 -3
- package/indicators/pivot-points.js +8 -7
- package/indicators/pivot-points.js.map +1 -8
- package/indicators/pivot-points.src.js +12 -3
- package/indicators/price-envelopes.js +7 -6
- package/indicators/price-envelopes.js.map +1 -8
- package/indicators/price-envelopes.src.js +7 -3
- package/indicators/psar.js +5 -4
- package/indicators/psar.js.map +1 -8
- package/indicators/psar.src.js +6 -2
- package/indicators/roc.js +4 -3
- package/indicators/roc.js.map +1 -8
- package/indicators/roc.src.js +6 -2
- package/indicators/rsi.js +4 -3
- package/indicators/rsi.js.map +1 -8
- package/indicators/rsi.src.js +6 -2
- package/indicators/stochastic.js +7 -5
- package/indicators/stochastic.js.map +1 -8
- package/indicators/stochastic.src.js +14 -8
- package/indicators/volume-by-price.js +13 -12
- package/indicators/volume-by-price.js.map +1 -8
- package/indicators/volume-by-price.src.js +6 -2
- package/indicators/vwap.js +4 -3
- package/indicators/vwap.js.map +1 -8
- package/indicators/vwap.src.js +6 -2
- package/indicators/wma.js +4 -3
- package/indicators/wma.js.map +1 -8
- package/indicators/wma.src.js +6 -2
- package/indicators/zigzag.js +5 -3
- package/indicators/zigzag.js.map +1 -8
- package/indicators/zigzag.src.js +6 -2
- package/js/es-modules/indicators/accumulation-distribution.src.js +1 -1
- package/js/es-modules/indicators/atr.src.js +1 -1
- package/js/es-modules/indicators/bollinger-bands.src.js +2 -2
- package/js/es-modules/indicators/cci.src.js +1 -1
- package/js/es-modules/indicators/cmf.src.js +1 -1
- package/js/es-modules/indicators/ema.src.js +1 -1
- package/js/es-modules/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/js/es-modules/indicators/indicators.src.js +29 -14
- package/js/es-modules/indicators/macd.src.js +4 -4
- package/js/es-modules/indicators/mfi.src.js +1 -1
- package/js/es-modules/indicators/momentum.src.js +2 -2
- package/js/es-modules/indicators/pivot-points.src.js +7 -2
- package/js/es-modules/indicators/price-envelopes.src.js +2 -2
- package/js/es-modules/indicators/psar.src.js +1 -1
- package/js/es-modules/indicators/roc.src.js +1 -1
- package/js/es-modules/indicators/rsi.src.js +1 -1
- package/js/es-modules/indicators/stochastic.src.js +9 -7
- package/js/es-modules/indicators/volume-by-price.src.js +1 -1
- package/js/es-modules/indicators/vwap.src.js +1 -1
- package/js/es-modules/indicators/wma.src.js +1 -1
- package/js/es-modules/indicators/zigzag.src.js +1 -1
- package/js/es-modules/masters/highcharts-gantt.src.js +11 -0
- package/js/es-modules/masters/modules/annotations.src.js +1 -1
- package/js/es-modules/masters/modules/arrow-symbols.src.js +12 -0
- package/js/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/js/es-modules/masters/modules/current-date-indicator.src.js +12 -0
- package/js/es-modules/masters/modules/data.src.js +1 -1
- package/js/es-modules/masters/modules/draggable-points.src.js +9 -0
- package/js/es-modules/masters/modules/export-data.src.js +1 -1
- package/js/es-modules/masters/modules/exporting.src.js +1 -1
- package/js/es-modules/masters/modules/funnel.src.js +1 -1
- package/js/es-modules/masters/modules/gantt.src.js +2 -1
- package/js/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/js/es-modules/masters/modules/heatmap.src.js +1 -1
- package/js/es-modules/masters/modules/item-series.src.js +1 -1
- package/js/es-modules/masters/modules/map.src.js +1 -1
- package/js/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/js/es-modules/masters/modules/pathfinder.src.js +12 -0
- package/js/es-modules/masters/modules/sankey.src.js +1 -1
- package/js/es-modules/masters/modules/series-label.src.js +1 -1
- package/js/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/js/es-modules/masters/modules/stock.src.js +1 -1
- package/js/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/js/es-modules/masters/modules/treegrid.src.js +12 -0
- package/js/es-modules/masters/modules/variwide.src.js +1 -1
- package/js/es-modules/masters/modules/vector.src.js +1 -1
- package/js/es-modules/masters/modules/windbarb.src.js +1 -1
- package/js/es-modules/masters/modules/xrange.src.js +1 -1
- package/js/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/js/es-modules/masters/themes/dark-green.src.js +1 -1
- package/js/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/js/es-modules/masters/themes/gray.src.js +1 -1
- package/js/es-modules/masters/themes/grid-light.src.js +1 -1
- package/js/es-modules/masters/themes/grid.src.js +1 -1
- package/js/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/js/es-modules/masters/themes/skies.src.js +1 -1
- package/js/es-modules/mixins/centered-series.js +36 -5
- package/js/es-modules/mixins/on-series.js +1 -1
- package/js/es-modules/mixins/polygon.js +4 -4
- package/js/es-modules/modules/annotations.src.js +2 -2
- package/js/es-modules/modules/boost-canvas.src.js +19 -8
- package/js/es-modules/modules/boost.src.js +300 -137
- package/js/es-modules/modules/broken-axis.src.js +169 -134
- package/js/es-modules/modules/bullet.src.js +2 -2
- package/js/es-modules/modules/data.src.js +8 -6
- package/js/es-modules/modules/draggable-points.src.js +2257 -0
- package/js/es-modules/modules/drilldown.src.js +4 -2
- package/js/es-modules/modules/export-data.src.js +11 -1
- package/js/es-modules/modules/exporting.src.js +62 -36
- package/js/es-modules/modules/funnel.src.js +5 -5
- package/js/es-modules/modules/histogram.src.js +30 -28
- package/js/es-modules/modules/item-series.src.js +36 -11
- package/js/es-modules/modules/keyboard-navigation.src.js +81 -44
- package/js/es-modules/modules/no-data-to-display.src.js +5 -5
- package/js/es-modules/modules/oldie.src.js +14 -9
- package/js/es-modules/modules/overlapping-datalabels.src.js +45 -21
- package/js/es-modules/modules/parallel-coordinates.src.js +4 -3
- package/js/es-modules/modules/pareto.src.js +1 -1
- package/js/es-modules/modules/sankey.src.js +23 -7
- package/js/es-modules/modules/series-label.src.js +6 -6
- package/js/es-modules/modules/solid-gauge.src.js +8 -5
- package/js/es-modules/modules/static-scale.src.js +67 -28
- package/js/es-modules/modules/streamgraph.src.js +4 -4
- package/js/es-modules/modules/sunburst.src.js +4 -4
- package/js/es-modules/modules/tilemap.src.js +231 -134
- package/js/es-modules/modules/treemap.src.js +29 -26
- package/js/es-modules/modules/variable-pie.src.js +3 -3
- package/js/es-modules/modules/variwide.src.js +36 -24
- package/js/es-modules/modules/vector.src.js +98 -28
- package/js/es-modules/modules/windbarb.src.js +4 -4
- package/js/es-modules/modules/wordcloud.src.js +133 -48
- package/js/es-modules/modules/xrange.src.js +256 -69
- package/js/es-modules/parts/AreaSeries.js +83 -50
- package/js/es-modules/parts/AreaSplineSeries.js +66 -29
- package/js/es-modules/parts/Axis.js +2089 -694
- package/js/es-modules/parts/BarSeries.js +70 -53
- package/js/es-modules/parts/CandlestickSeries.js +20 -10
- package/js/es-modules/parts/Chart.js +349 -157
- package/js/es-modules/parts/Color.js +74 -25
- package/js/es-modules/parts/ColumnSeries.js +241 -128
- package/js/es-modules/parts/DataGrouping.js +36 -3
- package/js/es-modules/parts/DataLabels.js +287 -116
- package/js/es-modules/parts/DateTimeAxis.js +27 -5
- package/js/es-modules/parts/Dynamics.js +236 -144
- package/js/es-modules/parts/FlagsSeries.js +49 -7
- package/js/es-modules/parts/Globals.js +4 -3
- package/js/es-modules/parts/Html.js +82 -16
- package/js/es-modules/parts/Interaction.js +187 -67
- package/js/es-modules/parts/Legend.js +181 -31
- package/js/es-modules/parts/LogarithmicAxis.js +36 -3
- package/js/es-modules/parts/MSPointer.js +31 -4
- package/js/es-modules/parts/Navigator.js +432 -162
- package/js/es-modules/parts/OHLCSeries.js +5 -5
- package/js/es-modules/parts/Options.js +855 -592
- package/js/es-modules/parts/OrdinalAxis.js +20 -6
- package/js/es-modules/parts/PieSeries.js +247 -134
- package/js/es-modules/parts/PlotBandSeries.experimental.js +2 -2
- package/js/es-modules/parts/PlotLineOrBand.js +671 -35
- package/js/es-modules/parts/Point.js +182 -70
- package/js/es-modules/parts/Pointer.js +263 -62
- package/js/es-modules/parts/RangeSelector.js +579 -91
- package/js/es-modules/parts/Responsive.js +82 -36
- package/js/es-modules/parts/ScatterSeries.js +58 -27
- package/js/es-modules/parts/ScrollablePlotArea.js +30 -9
- package/js/es-modules/parts/Scrollbar.js +201 -71
- package/js/es-modules/parts/Series.js +995 -745
- package/js/es-modules/parts/SplineSeries.js +53 -31
- package/js/es-modules/parts/Stacking.js +108 -7
- package/js/es-modules/parts/StockChart.js +26 -8
- package/js/es-modules/parts/SvgRenderer.js +1208 -598
- package/js/es-modules/parts/Tick.js +164 -30
- package/js/es-modules/parts/Time.js +171 -71
- package/js/es-modules/parts/Tooltip.js +276 -49
- package/js/es-modules/parts/TouchPointer.js +70 -3
- package/js/es-modules/parts/Utilities.js +1024 -429
- package/js/es-modules/parts-3d/Axis.js +4 -3
- package/js/es-modules/parts-3d/Chart.js +8 -9
- package/js/es-modules/parts-3d/Column.js +1 -1
- package/js/es-modules/parts-3d/Math.js +1 -1
- package/js/es-modules/parts-3d/Pie.js +1 -1
- package/js/es-modules/parts-3d/SVGRenderer.js +13 -10
- package/js/es-modules/parts-3d/Scatter.js +4 -4
- package/js/es-modules/parts-3d/Series.js +1 -1
- package/js/es-modules/parts-3d/VMLRenderer.js +1 -1
- package/js/es-modules/parts-gantt/ArrowSymbols.js +110 -0
- package/js/es-modules/parts-gantt/CurrentDateIndicator.js +92 -0
- package/js/es-modules/parts-gantt/GanttChart.js +111 -0
- package/js/es-modules/parts-gantt/GanttSeries.js +371 -0
- package/js/es-modules/parts-gantt/GridAxis.js +962 -0
- package/js/es-modules/parts-gantt/Pathfinder.js +1225 -0
- package/js/es-modules/parts-gantt/PathfinderAlgorithms.js +746 -0
- package/js/es-modules/parts-gantt/Tree.js +146 -0
- package/js/es-modules/parts-gantt/TreeGrid.js +891 -0
- package/js/es-modules/parts-map/ColorAxis.js +4 -5
- package/js/es-modules/parts-map/ColorSeriesMixin.js +3 -1
- package/js/es-modules/parts-map/GeoJSON.js +1 -1
- package/js/es-modules/parts-map/HeatmapSeries.js +124 -54
- package/js/es-modules/parts-map/Map.js +136 -47
- package/js/es-modules/parts-map/MapAxis.js +1 -1
- package/js/es-modules/parts-map/MapBubbleSeries.js +6 -5
- package/js/es-modules/parts-map/MapLineSeries.js +4 -4
- package/js/es-modules/parts-map/MapNavigation.js +50 -12
- package/js/es-modules/parts-map/MapPointSeries.js +3 -3
- package/js/es-modules/parts-map/MapPointer.js +1 -1
- package/js/es-modules/parts-map/MapSeries.js +5 -5
- package/js/es-modules/parts-more/AreaRangeSeries.js +82 -40
- package/js/es-modules/parts-more/AreaSplineRangeSeries.js +3 -3
- package/js/es-modules/parts-more/BoxPlotSeries.js +3 -3
- package/js/es-modules/parts-more/BubbleSeries.js +9 -4
- package/js/es-modules/parts-more/ColumnRangeSeries.js +3 -3
- package/js/es-modules/parts-more/ErrorBarSeries.js +6 -4
- package/js/es-modules/parts-more/GaugeSeries.js +3 -3
- package/js/es-modules/parts-more/Pane.js +3 -2
- package/js/es-modules/parts-more/Polar.js +1 -1
- package/js/es-modules/parts-more/PolygonSeries.js +3 -3
- package/js/es-modules/parts-more/RadialAxis.js +5 -4
- package/js/es-modules/parts-more/WaterfallSeries.js +9 -4
- package/js/es-modules/supplemental.docs.js +0 -1955
- package/js/es-modules/themes/dark-blue.js +1 -1
- package/js/es-modules/themes/dark-green.js +1 -1
- package/js/es-modules/themes/dark-unica.js +1 -1
- package/js/es-modules/themes/gray.js +1 -1
- package/js/es-modules/themes/grid-light.js +1 -1
- package/js/es-modules/themes/grid.js +1 -1
- package/js/es-modules/themes/sand-signika.js +1 -1
- package/js/es-modules/themes/skies.js +1 -1
- package/js/highcharts-3d.js +75 -74
- package/js/highcharts-3d.js.map +1 -8
- package/js/highcharts-3d.src.js +39 -32
- package/js/highcharts-gantt.js +480 -0
- package/js/highcharts-gantt.js.map +1 -0
- package/js/highcharts-gantt.src.js +47011 -0
- package/js/highcharts-more.js +63 -61
- package/js/highcharts-more.js.map +1 -8
- package/js/highcharts-more.src.js +135 -75
- package/js/highcharts.js +396 -387
- package/js/highcharts.js.map +1 -8
- package/js/highcharts.src.js +10765 -4659
- package/js/highmaps.js +419 -411
- package/js/highmaps.js.map +1 -8
- package/js/highmaps.src.js +10198 -4285
- package/js/highstock.js +529 -516
- package/js/highstock.js.map +1 -8
- package/js/highstock.src.js +12108 -4962
- package/js/indicators/accumulation-distribution.js +4 -3
- package/js/indicators/accumulation-distribution.js.map +1 -8
- package/js/indicators/accumulation-distribution.src.js +6 -2
- package/js/indicators/atr.js +4 -3
- package/js/indicators/atr.js.map +1 -8
- package/js/indicators/atr.src.js +6 -2
- package/js/indicators/bollinger-bands.js +7 -6
- package/js/indicators/bollinger-bands.js.map +1 -8
- package/js/indicators/bollinger-bands.src.js +7 -3
- package/js/indicators/cci.js +4 -3
- package/js/indicators/cci.js.map +1 -8
- package/js/indicators/cci.src.js +6 -2
- package/js/indicators/cmf.js +5 -4
- package/js/indicators/cmf.js.map +1 -8
- package/js/indicators/cmf.src.js +6 -2
- package/js/indicators/ema.js +4 -3
- package/js/indicators/ema.js.map +1 -8
- package/js/indicators/ema.src.js +6 -2
- package/js/indicators/ichimoku-kinko-hyo.js +10 -9
- package/js/indicators/ichimoku-kinko-hyo.js.map +1 -8
- package/js/indicators/ichimoku-kinko-hyo.src.js +6 -2
- package/js/indicators/indicators.js +6 -5
- package/js/indicators/indicators.js.map +1 -8
- package/js/indicators/indicators.src.js +34 -15
- package/js/indicators/macd.js +11 -10
- package/js/indicators/macd.js.map +1 -8
- package/js/indicators/macd.src.js +10 -6
- package/js/indicators/mfi.js +5 -3
- package/js/indicators/mfi.js.map +1 -8
- package/js/indicators/mfi.src.js +6 -2
- package/js/indicators/momentum.js +4 -3
- package/js/indicators/momentum.js.map +1 -8
- package/js/indicators/momentum.src.js +7 -3
- package/js/indicators/pivot-points.js +8 -7
- package/js/indicators/pivot-points.js.map +1 -8
- package/js/indicators/pivot-points.src.js +12 -3
- package/js/indicators/price-envelopes.js +7 -6
- package/js/indicators/price-envelopes.js.map +1 -8
- package/js/indicators/price-envelopes.src.js +7 -3
- package/js/indicators/psar.js +5 -4
- package/js/indicators/psar.js.map +1 -8
- package/js/indicators/psar.src.js +6 -2
- package/js/indicators/roc.js +4 -3
- package/js/indicators/roc.js.map +1 -8
- package/js/indicators/roc.src.js +6 -2
- package/js/indicators/rsi.js +4 -3
- package/js/indicators/rsi.js.map +1 -8
- package/js/indicators/rsi.src.js +6 -2
- package/js/indicators/stochastic.js +7 -5
- package/js/indicators/stochastic.js.map +1 -8
- package/js/indicators/stochastic.src.js +14 -8
- package/js/indicators/volume-by-price.js +13 -12
- package/js/indicators/volume-by-price.js.map +1 -8
- package/js/indicators/volume-by-price.src.js +6 -2
- package/js/indicators/vwap.js +4 -3
- package/js/indicators/vwap.js.map +1 -8
- package/js/indicators/vwap.src.js +6 -2
- package/js/indicators/wma.js +4 -3
- package/js/indicators/wma.js.map +1 -8
- package/js/indicators/wma.src.js +6 -2
- package/js/indicators/zigzag.js +5 -3
- package/js/indicators/zigzag.js.map +1 -8
- package/js/indicators/zigzag.src.js +6 -2
- package/js/modules/accessibility.js +52 -51
- package/js/modules/accessibility.js.map +1 -8
- package/js/modules/accessibility.src.js +86 -45
- package/js/modules/annotations.js +22 -21
- package/js/modules/annotations.js.map +1 -8
- package/js/modules/annotations.src.js +8 -4
- package/js/modules/arrow-symbols.js +13 -0
- package/js/modules/arrow-symbols.js.map +1 -0
- package/js/modules/arrow-symbols.src.js +138 -0
- package/js/modules/boost-canvas.js +15 -13
- package/js/modules/boost-canvas.js.map +1 -8
- package/js/modules/boost-canvas.src.js +24 -9
- package/js/modules/boost.js +57 -52
- package/js/modules/boost.js.map +1 -8
- package/js/modules/boost.src.js +305 -138
- package/js/modules/broken-axis.js +12 -10
- package/js/modules/broken-axis.js.map +1 -8
- package/js/modules/broken-axis.src.js +175 -136
- package/js/modules/bullet.js +3 -2
- package/js/modules/bullet.js.map +1 -8
- package/js/modules/bullet.src.js +7 -3
- package/js/modules/current-date-indicator.js +13 -0
- package/js/modules/current-date-indicator.js.map +1 -0
- package/js/modules/current-date-indicator.src.js +120 -0
- package/js/modules/data.js +25 -24
- package/js/modules/data.js.map +1 -8
- package/js/modules/data.src.js +14 -8
- package/js/modules/drag-panes.js +9 -8
- package/js/modules/drag-panes.js.map +1 -8
- package/js/modules/drag-panes.src.js +5 -1
- package/js/modules/draggable-points.js +38 -0
- package/js/modules/draggable-points.js.map +1 -0
- package/js/modules/draggable-points.src.js +2281 -0
- package/js/modules/drilldown.js +20 -19
- package/js/modules/drilldown.js.map +1 -8
- package/js/modules/drilldown.src.js +9 -3
- package/js/modules/export-data.js +20 -19
- package/js/modules/export-data.js.map +1 -8
- package/js/modules/export-data.src.js +17 -3
- package/js/modules/exporting.js +24 -23
- package/js/modules/exporting.js.map +1 -8
- package/js/modules/exporting.src.js +68 -38
- package/js/modules/funnel.js +8 -6
- package/js/modules/funnel.js.map +1 -8
- package/js/modules/funnel.src.js +11 -7
- package/js/modules/gantt.js +81 -18
- package/js/modules/gantt.js.map +1 -8
- package/js/modules/gantt.src.js +5494 -372
- package/js/modules/grid-axis.js +16 -10
- package/js/modules/grid-axis.js.map +1 -8
- package/js/modules/grid-axis.src.js +735 -293
- package/js/modules/heatmap.js +22 -21
- package/js/modules/heatmap.js.map +1 -8
- package/js/modules/heatmap.src.js +137 -62
- package/js/modules/histogram-bellcurve.js +9 -8
- package/js/modules/histogram-bellcurve.js.map +1 -8
- package/js/modules/histogram-bellcurve.src.js +35 -29
- package/js/modules/item-series.js +6 -4
- package/js/modules/item-series.js.map +1 -8
- package/js/modules/item-series.src.js +42 -13
- package/js/modules/map.js +63 -62
- package/js/modules/map.js.map +1 -8
- package/js/modules/map.src.js +353 -145
- package/js/modules/no-data-to-display.js +5 -4
- package/js/modules/no-data-to-display.js.map +1 -8
- package/js/modules/no-data-to-display.src.js +10 -6
- package/js/modules/offline-exporting.js +14 -13
- package/js/modules/offline-exporting.js.map +1 -8
- package/js/modules/offline-exporting.src.js +6 -2
- package/js/modules/oldie.js +29 -27
- package/js/modules/oldie.js.map +1 -8
- package/js/modules/oldie.src.js +20 -11
- package/js/modules/overlapping-datalabels.js +4 -3
- package/js/modules/overlapping-datalabels.js.map +1 -8
- package/js/modules/overlapping-datalabels.src.js +6 -2
- package/js/modules/parallel-coordinates.js +10 -9
- package/js/modules/parallel-coordinates.js.map +1 -8
- package/js/modules/parallel-coordinates.src.js +9 -4
- package/js/modules/pareto.js +5 -4
- package/js/modules/pareto.js.map +1 -8
- package/js/modules/pareto.src.js +6 -2
- package/js/modules/pathfinder.js +34 -0
- package/js/modules/pathfinder.js.map +1 -0
- package/js/modules/pathfinder.src.js +2106 -0
- package/js/modules/pattern-fill.js +13 -12
- package/js/modules/pattern-fill.js.map +1 -8
- package/js/modules/pattern-fill.src.js +5 -1
- package/js/modules/sankey.js +13 -12
- package/js/modules/sankey.js.map +1 -8
- package/js/modules/sankey.src.js +29 -9
- package/js/modules/series-label.js +17 -15
- package/js/modules/series-label.js.map +1 -8
- package/js/modules/series-label.src.js +12 -8
- package/js/modules/solid-gauge.js +9 -8
- package/js/modules/solid-gauge.js.map +1 -8
- package/js/modules/solid-gauge.src.js +14 -7
- package/js/modules/static-scale.js +4 -3
- package/js/modules/static-scale.js.map +1 -8
- package/js/modules/static-scale.src.js +69 -26
- package/js/modules/stock.js +136 -132
- package/js/modules/stock.js.map +1 -8
- package/js/modules/stock.src.js +1543 -499
- package/js/modules/streamgraph.js +4 -3
- package/js/modules/streamgraph.js.map +1 -8
- package/js/modules/streamgraph.src.js +10 -6
- package/js/modules/sunburst.js +40 -39
- package/js/modules/sunburst.js.map +1 -8
- package/js/modules/sunburst.src.js +38 -31
- package/js/modules/tilemap.js +19 -18
- package/js/modules/tilemap.js.map +1 -8
- package/js/modules/tilemap.src.js +363 -190
- package/js/modules/treegrid.js +51 -0
- package/js/modules/treegrid.js.map +1 -0
- package/js/modules/treegrid.src.js +2759 -0
- package/js/modules/treemap.js +27 -26
- package/js/modules/treemap.js.map +1 -8
- package/js/modules/treemap.src.js +34 -27
- package/js/modules/variable-pie.js +8 -7
- package/js/modules/variable-pie.js.map +1 -8
- package/js/modules/variable-pie.src.js +8 -4
- package/js/modules/variwide.js +8 -7
- package/js/modules/variwide.js.map +1 -8
- package/js/modules/variwide.src.js +42 -26
- package/js/modules/vector.js +7 -6
- package/js/modules/vector.js.map +1 -8
- package/js/modules/vector.src.js +104 -30
- package/js/modules/windbarb.js +11 -10
- package/js/modules/windbarb.js.map +1 -8
- package/js/modules/windbarb.src.js +11 -7
- package/js/modules/wordcloud.js +18 -15
- package/js/modules/wordcloud.js.map +1 -8
- package/js/modules/wordcloud.src.js +142 -53
- package/js/modules/xrange.js +12 -10
- package/js/modules/xrange.js.map +1 -8
- package/js/modules/xrange.src.js +262 -71
- package/js/themes/avocado.js +3 -2
- package/js/themes/avocado.js.map +1 -8
- package/js/themes/avocado.src.js +5 -1
- package/js/themes/dark-blue.js +9 -8
- package/js/themes/dark-blue.js.map +1 -8
- package/js/themes/dark-blue.src.js +7 -3
- package/js/themes/dark-green.js +9 -8
- package/js/themes/dark-green.js.map +1 -8
- package/js/themes/dark-green.src.js +7 -3
- package/js/themes/dark-unica.js +9 -7
- package/js/themes/dark-unica.js.map +1 -8
- package/js/themes/dark-unica.src.js +7 -3
- package/js/themes/gray.js +10 -8
- package/js/themes/gray.js.map +1 -8
- package/js/themes/gray.src.js +7 -3
- package/js/themes/grid-light.js +5 -4
- package/js/themes/grid-light.js.map +1 -8
- package/js/themes/grid-light.src.js +7 -3
- package/js/themes/grid.js +6 -5
- package/js/themes/grid.js.map +1 -8
- package/js/themes/grid.src.js +7 -3
- package/js/themes/sand-signika.js +6 -5
- package/js/themes/sand-signika.js.map +1 -8
- package/js/themes/sand-signika.src.js +7 -3
- package/js/themes/skies.js +6 -5
- package/js/themes/skies.js.map +1 -8
- package/js/themes/skies.src.js +7 -3
- package/js/themes/sunset.js +3 -2
- package/js/themes/sunset.js.map +1 -8
- package/js/themes/sunset.src.js +5 -1
- package/modules/accessibility.js +53 -51
- package/modules/accessibility.js.map +1 -8
- package/modules/accessibility.src.js +86 -45
- package/modules/annotations.js +24 -22
- package/modules/annotations.js.map +1 -8
- package/modules/annotations.src.js +8 -4
- package/modules/arrow-symbols.js +13 -0
- package/modules/arrow-symbols.js.map +1 -0
- package/modules/arrow-symbols.src.js +138 -0
- package/modules/boost-canvas.js +15 -13
- package/modules/boost-canvas.js.map +1 -8
- package/modules/boost-canvas.src.js +24 -9
- package/modules/boost.js +57 -52
- package/modules/boost.js.map +1 -8
- package/modules/boost.src.js +305 -138
- package/modules/broken-axis.js +12 -10
- package/modules/broken-axis.js.map +1 -8
- package/modules/broken-axis.src.js +175 -136
- package/modules/bullet.js +6 -5
- package/modules/bullet.js.map +1 -8
- package/modules/bullet.src.js +7 -3
- package/modules/current-date-indicator.js +13 -0
- package/modules/current-date-indicator.js.map +1 -0
- package/modules/current-date-indicator.src.js +120 -0
- package/modules/data.js +25 -24
- package/modules/data.js.map +1 -8
- package/modules/data.src.js +14 -8
- package/modules/drag-panes.js +9 -8
- package/modules/drag-panes.js.map +1 -8
- package/modules/drag-panes.src.js +5 -1
- package/modules/draggable-points.js +38 -0
- package/modules/draggable-points.js.map +1 -0
- package/modules/draggable-points.src.js +2281 -0
- package/modules/drilldown.js +16 -15
- package/modules/drilldown.js.map +1 -8
- package/modules/drilldown.src.js +9 -3
- package/modules/export-data.js +20 -19
- package/modules/export-data.js.map +1 -8
- package/modules/export-data.src.js +17 -3
- package/modules/exporting.js +23 -21
- package/modules/exporting.js.map +1 -8
- package/modules/exporting.src.js +68 -38
- package/modules/funnel.js +8 -7
- package/modules/funnel.js.map +1 -8
- package/modules/funnel.src.js +11 -7
- package/modules/gantt.js +84 -19
- package/modules/gantt.js.map +1 -8
- package/modules/gantt.src.js +5557 -379
- package/modules/grid-axis.js +17 -10
- package/modules/grid-axis.js.map +1 -8
- package/modules/grid-axis.src.js +736 -293
- package/modules/heatmap.js +22 -21
- package/modules/heatmap.js.map +1 -8
- package/modules/heatmap.src.js +139 -63
- package/modules/histogram-bellcurve.js +9 -8
- package/modules/histogram-bellcurve.js.map +1 -8
- package/modules/histogram-bellcurve.src.js +35 -29
- package/modules/item-series.js +6 -4
- package/modules/item-series.js.map +1 -8
- package/modules/item-series.src.js +42 -13
- package/modules/map.js +65 -64
- package/modules/map.js.map +1 -8
- package/modules/map.src.js +365 -152
- package/modules/no-data-to-display.js +5 -4
- package/modules/no-data-to-display.js.map +1 -8
- package/modules/no-data-to-display.src.js +10 -6
- package/modules/offline-exporting.js +14 -12
- package/modules/offline-exporting.js.map +1 -8
- package/modules/offline-exporting.src.js +6 -2
- package/modules/oldie.js +29 -27
- package/modules/oldie.js.map +1 -8
- package/modules/oldie.src.js +20 -11
- package/modules/overlapping-datalabels.js +4 -3
- package/modules/overlapping-datalabels.js.map +1 -8
- package/modules/overlapping-datalabels.src.js +6 -2
- package/modules/parallel-coordinates.js +10 -9
- package/modules/parallel-coordinates.js.map +1 -8
- package/modules/parallel-coordinates.src.js +9 -4
- package/modules/pareto.js +5 -4
- package/modules/pareto.js.map +1 -8
- package/modules/pareto.src.js +6 -2
- package/modules/pathfinder.js +35 -0
- package/modules/pathfinder.js.map +1 -0
- package/modules/pathfinder.src.js +2128 -0
- package/modules/pattern-fill.js +13 -12
- package/modules/pattern-fill.js.map +1 -8
- package/modules/pattern-fill.src.js +5 -1
- package/modules/sankey.js +13 -12
- package/modules/sankey.js.map +1 -8
- package/modules/sankey.src.js +34 -12
- package/modules/series-label.js +17 -15
- package/modules/series-label.js.map +1 -8
- package/modules/series-label.src.js +12 -8
- package/modules/solid-gauge.js +9 -8
- package/modules/solid-gauge.js.map +1 -8
- package/modules/solid-gauge.src.js +16 -9
- package/modules/static-scale.js +4 -3
- package/modules/static-scale.js.map +1 -8
- package/modules/static-scale.src.js +69 -26
- package/modules/stock.js +143 -139
- package/modules/stock.js.map +1 -8
- package/modules/stock.src.js +1701 -566
- package/modules/streamgraph.js +4 -3
- package/modules/streamgraph.js.map +1 -8
- package/modules/streamgraph.src.js +10 -6
- package/modules/sunburst.js +42 -41
- package/modules/sunburst.js.map +1 -8
- package/modules/sunburst.src.js +39 -32
- package/modules/tilemap.js +18 -17
- package/modules/tilemap.js.map +1 -8
- package/modules/tilemap.src.js +365 -191
- package/modules/treegrid.js +52 -0
- package/modules/treegrid.js.map +1 -0
- package/modules/treegrid.src.js +2797 -0
- package/modules/treemap.js +29 -28
- package/modules/treemap.js.map +1 -8
- package/modules/treemap.src.js +35 -28
- package/modules/variable-pie.js +8 -7
- package/modules/variable-pie.js.map +1 -8
- package/modules/variable-pie.src.js +8 -4
- package/modules/variwide.js +8 -7
- package/modules/variwide.js.map +1 -8
- package/modules/variwide.src.js +42 -26
- package/modules/vector.js +7 -6
- package/modules/vector.js.map +1 -8
- package/modules/vector.src.js +104 -30
- package/modules/windbarb.js +11 -10
- package/modules/windbarb.js.map +1 -8
- package/modules/windbarb.src.js +11 -7
- package/modules/wordcloud.js +18 -15
- package/modules/wordcloud.js.map +1 -8
- package/modules/wordcloud.src.js +142 -53
- package/modules/xrange.js +13 -11
- package/modules/xrange.js.map +1 -8
- package/modules/xrange.src.js +264 -80
- package/package.json +1 -1
- package/themes/avocado.js +3 -2
- package/themes/avocado.js.map +1 -8
- package/themes/avocado.src.js +5 -1
- package/themes/dark-blue.js +9 -8
- package/themes/dark-blue.js.map +1 -8
- package/themes/dark-blue.src.js +7 -3
- package/themes/dark-green.js +9 -8
- package/themes/dark-green.js.map +1 -8
- package/themes/dark-green.src.js +7 -3
- package/themes/dark-unica.js +9 -7
- package/themes/dark-unica.js.map +1 -8
- package/themes/dark-unica.src.js +7 -3
- package/themes/gray.js +10 -8
- package/themes/gray.js.map +1 -8
- package/themes/gray.src.js +7 -3
- package/themes/grid-light.js +5 -4
- package/themes/grid-light.js.map +1 -8
- package/themes/grid-light.src.js +7 -3
- package/themes/grid.js +6 -5
- package/themes/grid.js.map +1 -8
- package/themes/grid.src.js +7 -3
- package/themes/sand-signika.js +6 -5
- package/themes/sand-signika.js.map +1 -8
- package/themes/sand-signika.src.js +7 -3
- package/themes/skies.js +6 -5
- package/themes/skies.js.map +1 -8
- package/themes/skies.src.js +7 -3
- package/themes/sunset.js +3 -2
- package/themes/sunset.js.map +1 -8
- package/themes/sunset.src.js +5 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (c) 2010-
|
|
2
|
+
* (c) 2010-2018 Torstein Honsi
|
|
3
3
|
*
|
|
4
4
|
* License: www.highcharts.com/license
|
|
5
5
|
*/
|
|
@@ -14,36 +14,6 @@ import './Series.js';
|
|
|
14
14
|
import './Options.js';
|
|
15
15
|
import './Scrollbar.js';
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Options for the corresponding navigator series if `showInNavigator`
|
|
19
|
-
* is `true` for this series. Available options are the same as any
|
|
20
|
-
* series, documented at [plotOptions](#plotOptions.series) and
|
|
21
|
-
* [series](#series).
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* These options are merged with options in [navigator.series](
|
|
25
|
-
* #navigator.series), and will take precedence if the same option is defined
|
|
26
|
-
* both places.
|
|
27
|
-
*
|
|
28
|
-
* @type {Object}
|
|
29
|
-
* @see [navigator.series](#navigator.series)
|
|
30
|
-
* @default undefined
|
|
31
|
-
* @since 5.0.0
|
|
32
|
-
* @product highstock
|
|
33
|
-
* @apioption plotOptions.series.navigatorOptions
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Whether or not to show the series in the navigator. Takes precedence
|
|
38
|
-
* over [navigator.baseSeries](#navigator.baseSeries) if defined.
|
|
39
|
-
*
|
|
40
|
-
* @type {Boolean}
|
|
41
|
-
* @default undefined
|
|
42
|
-
* @since 5.0.0
|
|
43
|
-
* @product highstock
|
|
44
|
-
* @apioption plotOptions.series.showInNavigator
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
17
|
var addEvent = H.addEvent,
|
|
48
18
|
Axis = H.Axis,
|
|
49
19
|
Chart = H.Chart,
|
|
@@ -102,24 +72,85 @@ extend(defaultOptions, {
|
|
|
102
72
|
* @optionparent navigator
|
|
103
73
|
*/
|
|
104
74
|
navigator: {
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Whether the navigator and scrollbar should adapt to updated data
|
|
78
|
+
* in the base X axis. When loading data async, as in the demo below,
|
|
79
|
+
* this should be `false`. Otherwise new data will trigger navigator
|
|
80
|
+
* redraw, which will cause unwanted looping. In the demo below, the
|
|
81
|
+
* data in the navigator is set only once. On navigating, only the main
|
|
82
|
+
* chart content is updated.
|
|
83
|
+
*
|
|
84
|
+
* @sample {highstock} stock/demo/lazy-loading/
|
|
85
|
+
* Set to false with async data loading
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @default true
|
|
89
|
+
* @product highstock
|
|
90
|
+
* @apioption navigator.adaptToUpdatedData
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* An integer identifying the index to use for the base series, or a
|
|
95
|
+
* string representing the id of the series.
|
|
96
|
+
*
|
|
97
|
+
* **Note**: As of Highcharts 5.0, this is now a deprecated option.
|
|
98
|
+
* Prefer [series.showInNavigator](#plotOptions.series.showInNavigator).
|
|
99
|
+
*
|
|
100
|
+
* @see [series.showInNavigator](#plotOptions.series.showInNavigator)
|
|
101
|
+
*
|
|
102
|
+
* @deprecated
|
|
103
|
+
* @type {*}
|
|
104
|
+
* @default 0
|
|
105
|
+
* @product highstock
|
|
106
|
+
* @apioption navigator.baseSeries
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Enable or disable the navigator.
|
|
111
|
+
*
|
|
112
|
+
* @sample {highstock} stock/navigator/enabled/ Disable the navigator
|
|
113
|
+
*
|
|
114
|
+
* @type {boolean}
|
|
115
|
+
* @default true
|
|
116
|
+
* @product highstock
|
|
117
|
+
* @apioption navigator.enabled
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* When the chart is inverted, whether to draw the navigator on the
|
|
122
|
+
* opposite side.
|
|
123
|
+
*
|
|
124
|
+
* @type {boolean}
|
|
125
|
+
* @default false
|
|
126
|
+
* @since 5.0.8
|
|
127
|
+
* @product highstock
|
|
128
|
+
* @apioption navigator.opposite
|
|
129
|
+
*/
|
|
130
|
+
|
|
105
131
|
/**
|
|
106
132
|
* The height of the navigator.
|
|
107
133
|
*
|
|
108
|
-
* @
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* @
|
|
134
|
+
* @sample {highstock} stock/navigator/height/
|
|
135
|
+
* A higher navigator
|
|
136
|
+
*
|
|
137
|
+
* @type {number}
|
|
138
|
+
* @default 40
|
|
139
|
+
* @product highstock
|
|
140
|
+
* @apioption navigator.height
|
|
112
141
|
*/
|
|
113
142
|
height: 40,
|
|
114
143
|
|
|
115
144
|
/**
|
|
116
145
|
* The distance from the nearest element, the X axis or X axis labels.
|
|
117
146
|
*
|
|
118
|
-
* @type {Number}
|
|
119
147
|
* @sample {highstock} stock/navigator/margin/
|
|
120
148
|
* A margin of 2 draws the navigator closer to the X axis labels
|
|
121
|
-
*
|
|
122
|
-
* @
|
|
149
|
+
*
|
|
150
|
+
* @type {number}
|
|
151
|
+
* @default 25
|
|
152
|
+
* @product highstock
|
|
153
|
+
* @apioption navigator.margin
|
|
123
154
|
*/
|
|
124
155
|
margin: 25,
|
|
125
156
|
|
|
@@ -127,44 +158,53 @@ extend(defaultOptions, {
|
|
|
127
158
|
* Whether the mask should be inside the range marking the zoomed
|
|
128
159
|
* range, or outside. In Highstock 1.x it was always `false`.
|
|
129
160
|
*
|
|
130
|
-
* @type {Boolean}
|
|
131
161
|
* @sample {highstock} stock/navigator/maskinside-false/
|
|
132
162
|
* False, mask outside
|
|
133
|
-
*
|
|
134
|
-
* @
|
|
135
|
-
* @
|
|
163
|
+
*
|
|
164
|
+
* @type {boolean}
|
|
165
|
+
* @default true
|
|
166
|
+
* @since 2.0
|
|
167
|
+
* @product highstock
|
|
168
|
+
* @apioption navigator.maskInside
|
|
136
169
|
*/
|
|
137
170
|
maskInside: true,
|
|
138
171
|
|
|
139
172
|
/**
|
|
140
173
|
* Options for the handles for dragging the zoomed area.
|
|
141
174
|
*
|
|
142
|
-
* @
|
|
143
|
-
*
|
|
144
|
-
*
|
|
175
|
+
* @sample {highstock} stock/navigator/handles/
|
|
176
|
+
* Colored handles
|
|
177
|
+
*
|
|
178
|
+
* @type {*}
|
|
179
|
+
* @product highstock
|
|
180
|
+
* @apioption navigator.handles
|
|
145
181
|
*/
|
|
146
182
|
handles: {
|
|
147
183
|
/**
|
|
148
184
|
* Width for handles.
|
|
149
185
|
*
|
|
150
|
-
* @type {Number}
|
|
151
|
-
* @default 7
|
|
152
|
-
* @product highstock
|
|
153
186
|
* @sample {highstock} stock/navigator/styled-handles/
|
|
154
187
|
* Styled handles
|
|
155
|
-
*
|
|
188
|
+
*
|
|
189
|
+
* @type {number}
|
|
190
|
+
* @default 7
|
|
191
|
+
* @since 6.0.0
|
|
192
|
+
* @product highstock
|
|
193
|
+
* @apioption navigator.handles.width
|
|
156
194
|
*/
|
|
157
195
|
width: 7,
|
|
158
196
|
|
|
159
197
|
/**
|
|
160
198
|
* Height for handles.
|
|
161
199
|
*
|
|
162
|
-
* @type {Number}
|
|
163
|
-
* @default 15
|
|
164
|
-
* @product highstock
|
|
165
200
|
* @sample {highstock} stock/navigator/styled-handles/
|
|
166
201
|
* Styled handles
|
|
167
|
-
*
|
|
202
|
+
*
|
|
203
|
+
* @type {number}
|
|
204
|
+
* @default 15
|
|
205
|
+
* @since 6.0.0
|
|
206
|
+
* @product highstock
|
|
207
|
+
* @apioption navigator.handles.height
|
|
168
208
|
*/
|
|
169
209
|
height: 15,
|
|
170
210
|
|
|
@@ -181,22 +221,25 @@ extend(defaultOptions, {
|
|
|
181
221
|
* `Highcharts.SVGRenderer.prototype.symbols`. The callback is then
|
|
182
222
|
* used by its method name, as shown in the demo.
|
|
183
223
|
*
|
|
184
|
-
* @type {Array}
|
|
185
|
-
* @default ['navigator-handle', 'navigator-handle']
|
|
186
|
-
* @product highstock
|
|
187
224
|
* @sample {highstock} stock/navigator/styled-handles/
|
|
188
225
|
* Styled handles
|
|
189
|
-
*
|
|
226
|
+
*
|
|
227
|
+
* @type {Array<string>}
|
|
228
|
+
* @default ['navigator-handle', 'navigator-handle']
|
|
229
|
+
* @since 6.0.0
|
|
230
|
+
* @product highstock
|
|
231
|
+
* @apioption navigator.handles.symbols
|
|
190
232
|
*/
|
|
191
233
|
symbols: ['navigator-handle', 'navigator-handle'],
|
|
192
234
|
|
|
193
235
|
/**
|
|
194
236
|
* Allows to enable/disable handles.
|
|
195
237
|
*
|
|
196
|
-
* @type
|
|
197
|
-
* @default
|
|
198
|
-
* @
|
|
199
|
-
* @
|
|
238
|
+
* @type {boolean}
|
|
239
|
+
* @default true
|
|
240
|
+
* @since 6.0.0
|
|
241
|
+
* @product highstock
|
|
242
|
+
* @apioption navigator.handles.enabled
|
|
200
243
|
*/
|
|
201
244
|
enabled: true,
|
|
202
245
|
|
|
@@ -204,28 +247,32 @@ extend(defaultOptions, {
|
|
|
204
247
|
/**
|
|
205
248
|
* The width for the handle border and the stripes inside.
|
|
206
249
|
*
|
|
207
|
-
* @type {Number}
|
|
208
|
-
* @default 7
|
|
209
|
-
* @product highstock
|
|
210
250
|
* @sample {highstock} stock/navigator/styled-handles/
|
|
211
251
|
* Styled handles
|
|
212
|
-
*
|
|
252
|
+
*
|
|
253
|
+
* @type {number}
|
|
254
|
+
* @default 7
|
|
255
|
+
* @since 6.0.0
|
|
256
|
+
* @product highstock
|
|
257
|
+
* @apioption navigator.handles.lineWidth
|
|
213
258
|
*/
|
|
214
259
|
lineWidth: 1,
|
|
215
260
|
|
|
216
261
|
/**
|
|
217
262
|
* The fill for the handle.
|
|
218
263
|
*
|
|
219
|
-
* @type
|
|
220
|
-
* @product
|
|
264
|
+
* @type {Highcharts.ColorString}
|
|
265
|
+
* @product highstock
|
|
266
|
+
* @apioption navigator.handles.backgroundColor
|
|
221
267
|
*/
|
|
222
268
|
backgroundColor: '#f2f2f2',
|
|
223
269
|
|
|
224
270
|
/**
|
|
225
271
|
* The stroke for the handle border and the stripes inside.
|
|
226
272
|
*
|
|
227
|
-
* @type
|
|
228
|
-
* @product
|
|
273
|
+
* @type {Highcharts.ColorString}
|
|
274
|
+
* @product highstock
|
|
275
|
+
* @apioption navigator.handles.borderColor
|
|
229
276
|
*/
|
|
230
277
|
borderColor: '#999999'
|
|
231
278
|
|
|
@@ -239,14 +286,17 @@ extend(defaultOptions, {
|
|
|
239
286
|
* that are currently not visible in the main series. The default
|
|
240
287
|
* color is bluish with an opacity of 0.3 to see the series below.
|
|
241
288
|
*
|
|
242
|
-
* @
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
* @sample
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* @
|
|
289
|
+
* @see In styled mode, the mask is styled with the
|
|
290
|
+
* `.highcharts-navigator-mask` and
|
|
291
|
+
* `.highcharts-navigator-mask-inside` classes.
|
|
292
|
+
*
|
|
293
|
+
* @sample {highstock} stock/navigator/maskfill/
|
|
294
|
+
* Blue, semi transparent mask
|
|
295
|
+
*
|
|
296
|
+
* @type {Highcharts.ColorString}
|
|
297
|
+
* @default rgba(102,133,194,0.3)
|
|
298
|
+
* @product highstock
|
|
299
|
+
* @apioption navigator.maskFill
|
|
250
300
|
*/
|
|
251
301
|
maskFill: color('#6685c2').setOpacity(0.3).get(),
|
|
252
302
|
|
|
@@ -254,10 +304,13 @@ extend(defaultOptions, {
|
|
|
254
304
|
* The color of the line marking the currently zoomed area in the
|
|
255
305
|
* navigator.
|
|
256
306
|
*
|
|
257
|
-
* @
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* @
|
|
307
|
+
* @sample {highstock} stock/navigator/outline/
|
|
308
|
+
* 2px blue outline
|
|
309
|
+
*
|
|
310
|
+
* @type {Highcharts.ColorString}
|
|
311
|
+
* @default #cccccc
|
|
312
|
+
* @product highstock
|
|
313
|
+
* @apioption navigator.outlineColor
|
|
261
314
|
*/
|
|
262
315
|
outlineColor: '#cccccc',
|
|
263
316
|
|
|
@@ -265,12 +318,16 @@ extend(defaultOptions, {
|
|
|
265
318
|
* The width of the line marking the currently zoomed area in the
|
|
266
319
|
* navigator.
|
|
267
320
|
*
|
|
268
|
-
* @type {Number}
|
|
269
321
|
* @see In styled mode, the outline stroke width is set with the
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
* @
|
|
273
|
-
*
|
|
322
|
+
* `.highcharts-navigator-outline` class.
|
|
323
|
+
*
|
|
324
|
+
* @sample {highstock} stock/navigator/outline/
|
|
325
|
+
* 2px blue outline
|
|
326
|
+
*
|
|
327
|
+
* @type {number}
|
|
328
|
+
* @default 2
|
|
329
|
+
* @product highstock
|
|
330
|
+
* @apioption navigator.outlineWidth
|
|
274
331
|
*/
|
|
275
332
|
outlineWidth: 1,
|
|
276
333
|
|
|
@@ -297,14 +354,17 @@ extend(defaultOptions, {
|
|
|
297
354
|
* }
|
|
298
355
|
* }</pre>
|
|
299
356
|
*
|
|
300
|
-
* @type {Object}
|
|
301
357
|
* @see In styled mode, the navigator series is styled with the
|
|
302
358
|
* `.highcharts-navigator-series` class.
|
|
359
|
+
*
|
|
303
360
|
* @sample {highstock} stock/navigator/series-data/
|
|
304
361
|
* Using a separate data set for the navigator
|
|
305
362
|
* @sample {highstock} stock/navigator/series/
|
|
306
363
|
* A green navigator series
|
|
307
|
-
*
|
|
364
|
+
*
|
|
365
|
+
* @type {*}
|
|
366
|
+
* @product highstock
|
|
367
|
+
* @apioption navigator.series
|
|
308
368
|
*/
|
|
309
369
|
series: {
|
|
310
370
|
|
|
@@ -312,7 +372,9 @@ extend(defaultOptions, {
|
|
|
312
372
|
* The type of the navigator series. Defaults to `areaspline` if
|
|
313
373
|
* defined, otherwise `line`.
|
|
314
374
|
*
|
|
315
|
-
* @type
|
|
375
|
+
* @type {string}
|
|
376
|
+
* @default areaspline
|
|
377
|
+
* @apioption navigator.series.type
|
|
316
378
|
*/
|
|
317
379
|
type: defaultSeriesType,
|
|
318
380
|
|
|
@@ -320,11 +382,19 @@ extend(defaultOptions, {
|
|
|
320
382
|
|
|
321
383
|
/**
|
|
322
384
|
* The fill opacity of the navigator series.
|
|
385
|
+
*
|
|
386
|
+
* @type {number}
|
|
387
|
+
* @default 0.05
|
|
388
|
+
* @apioption navigator.series.fillOpacity
|
|
323
389
|
*/
|
|
324
390
|
fillOpacity: 0.05,
|
|
325
391
|
|
|
326
392
|
/**
|
|
327
393
|
* The pixel line width of the navigator series.
|
|
394
|
+
*
|
|
395
|
+
* @type {number}
|
|
396
|
+
* @default 1
|
|
397
|
+
* @apioption navigator.series.lineWidth
|
|
328
398
|
*/
|
|
329
399
|
lineWidth: 1,
|
|
330
400
|
|
|
@@ -337,7 +407,9 @@ extend(defaultOptions, {
|
|
|
337
407
|
/**
|
|
338
408
|
* Data grouping options for the navigator series.
|
|
339
409
|
*
|
|
340
|
-
* @
|
|
410
|
+
* @type {*}
|
|
411
|
+
* @extends plotOptions.series.dataGrouping
|
|
412
|
+
* @apioption navigator.series.dataGrouping
|
|
341
413
|
*/
|
|
342
414
|
dataGrouping: {
|
|
343
415
|
approximation: 'average',
|
|
@@ -351,7 +423,9 @@ extend(defaultOptions, {
|
|
|
351
423
|
* Data label options for the navigator series. Data labels are
|
|
352
424
|
* disabled by default on the navigator series.
|
|
353
425
|
*
|
|
354
|
-
* @
|
|
426
|
+
* @type {*}
|
|
427
|
+
* @extends plotOptions.series.dataLabels
|
|
428
|
+
* @apioption navigator.series.dataLabels
|
|
355
429
|
*/
|
|
356
430
|
dataLabels: {
|
|
357
431
|
enabled: false,
|
|
@@ -365,7 +439,9 @@ extend(defaultOptions, {
|
|
|
365
439
|
* Line color for the navigator series. Allows setting the color
|
|
366
440
|
* while disallowing the default candlestick setting.
|
|
367
441
|
*
|
|
368
|
-
* @type
|
|
442
|
+
* @type {Highcharts.ColorString|null}
|
|
443
|
+
* @default null
|
|
444
|
+
* @apioption navigator.series.lineColor
|
|
369
445
|
*/
|
|
370
446
|
lineColor: null, // #4602
|
|
371
447
|
|
|
@@ -377,7 +453,10 @@ extend(defaultOptions, {
|
|
|
377
453
|
/**
|
|
378
454
|
* The threshold option. Setting it to 0 will make the default
|
|
379
455
|
* navigator area series draw its area from the 0 value and up.
|
|
380
|
-
*
|
|
456
|
+
*
|
|
457
|
+
* @type {number|null}
|
|
458
|
+
* @default null
|
|
459
|
+
* @apioption navigator.series.threshold
|
|
381
460
|
*/
|
|
382
461
|
threshold: null
|
|
383
462
|
},
|
|
@@ -401,11 +480,12 @@ extend(defaultOptions, {
|
|
|
401
480
|
* }
|
|
402
481
|
* }</pre>
|
|
403
482
|
*
|
|
404
|
-
* @type
|
|
405
|
-
* @extends
|
|
406
|
-
* @excluding
|
|
407
|
-
*
|
|
408
|
-
* @product
|
|
483
|
+
* @type {*}
|
|
484
|
+
* @extends xAxis
|
|
485
|
+
* @excluding linkedTo,maxZoom,minRange,opposite,range,scrollbar,
|
|
486
|
+
* showEmpty,maxRange
|
|
487
|
+
* @product highstock
|
|
488
|
+
* @apioption navigator.xAxis
|
|
409
489
|
*/
|
|
410
490
|
xAxis: {
|
|
411
491
|
/**
|
|
@@ -413,11 +493,11 @@ extend(defaultOptions, {
|
|
|
413
493
|
* xAxis.maxPadding, but value is set in milliseconds.
|
|
414
494
|
* Can be set for both, main xAxis and navigator's xAxis.
|
|
415
495
|
*
|
|
416
|
-
* @type
|
|
417
|
-
* @default
|
|
418
|
-
* @since
|
|
419
|
-
* @product
|
|
420
|
-
* @apioption
|
|
496
|
+
* @type {number}
|
|
497
|
+
* @default 0
|
|
498
|
+
* @since 6.0.0
|
|
499
|
+
* @product highstock
|
|
500
|
+
* @apioption navigator.xAxis.overscroll
|
|
421
501
|
*/
|
|
422
502
|
overscroll: 0,
|
|
423
503
|
|
|
@@ -467,11 +547,12 @@ extend(defaultOptions, {
|
|
|
467
547
|
* tickWidth: 0
|
|
468
548
|
* }</pre>
|
|
469
549
|
*
|
|
470
|
-
* @type
|
|
471
|
-
* @extends
|
|
472
|
-
* @excluding
|
|
473
|
-
*
|
|
474
|
-
* @product
|
|
550
|
+
* @type {*}
|
|
551
|
+
* @extends yAxis
|
|
552
|
+
* @excluding height,linkedTo,maxZoom,minRange,ordinal,range,showEmpty,
|
|
553
|
+
* scrollbar,top,units,maxRange,minLength,maxLength,resize
|
|
554
|
+
* @product highstock
|
|
555
|
+
* @apioption navigator.yAxis
|
|
475
556
|
*/
|
|
476
557
|
yAxis: {
|
|
477
558
|
|
|
@@ -500,8 +581,14 @@ extend(defaultOptions, {
|
|
|
500
581
|
|
|
501
582
|
/**
|
|
502
583
|
* Draw one of the handles on the side of the zoomed range in the navigator
|
|
503
|
-
*
|
|
504
|
-
* @
|
|
584
|
+
*
|
|
585
|
+
* @function Highcharts.Renderer#symbols.navigator-handle
|
|
586
|
+
*
|
|
587
|
+
* @param {boolean} inverted
|
|
588
|
+
* flag for chart.inverted
|
|
589
|
+
*
|
|
590
|
+
* @return {Array<number|string>}
|
|
591
|
+
* Path to be used in a handle
|
|
505
592
|
*/
|
|
506
593
|
H.Renderer.prototype.symbols['navigator-handle'] = function (
|
|
507
594
|
x,
|
|
@@ -538,8 +625,11 @@ H.Renderer.prototype.symbols['navigator-handle'] = function (
|
|
|
538
625
|
|
|
539
626
|
/**
|
|
540
627
|
* The Navigator class
|
|
541
|
-
*
|
|
542
|
-
* @class
|
|
628
|
+
*
|
|
629
|
+
* @class Highcharts.Navigator
|
|
630
|
+
*
|
|
631
|
+
* @param {Highcharts.Chart} chart
|
|
632
|
+
* Chart object
|
|
543
633
|
*/
|
|
544
634
|
function Navigator(chart) {
|
|
545
635
|
this.init(chart);
|
|
@@ -548,10 +638,20 @@ function Navigator(chart) {
|
|
|
548
638
|
Navigator.prototype = {
|
|
549
639
|
/**
|
|
550
640
|
* Draw one of the handles on the side of the zoomed range in the navigator
|
|
551
|
-
*
|
|
552
|
-
* @
|
|
553
|
-
*
|
|
554
|
-
* @param
|
|
641
|
+
*
|
|
642
|
+
* @function Highcharts.Navigator#drawHandle
|
|
643
|
+
*
|
|
644
|
+
* @param {number} x
|
|
645
|
+
* The x center for the handle
|
|
646
|
+
*
|
|
647
|
+
* @param {number} index
|
|
648
|
+
* 0 for left and 1 for right
|
|
649
|
+
* @param {boolean} inverted
|
|
650
|
+
* flag for chart.inverted
|
|
651
|
+
* @param {string} verb
|
|
652
|
+
* use 'animate' or 'attr'
|
|
653
|
+
*
|
|
654
|
+
* @return {void}
|
|
555
655
|
*/
|
|
556
656
|
drawHandle: function (x, index, inverted, verb) {
|
|
557
657
|
var navigator = this,
|
|
@@ -573,10 +673,22 @@ Navigator.prototype = {
|
|
|
573
673
|
|
|
574
674
|
/**
|
|
575
675
|
* Render outline around the zoomed range
|
|
576
|
-
*
|
|
577
|
-
* @
|
|
578
|
-
*
|
|
579
|
-
* @param
|
|
676
|
+
*
|
|
677
|
+
* @function Highcharts.Navigator#drawOutline
|
|
678
|
+
*
|
|
679
|
+
* @param {number} zoomedMin
|
|
680
|
+
* in pixels position where zoomed range starts
|
|
681
|
+
*
|
|
682
|
+
* @param {number} zoomedMax
|
|
683
|
+
* in pixels position where zoomed range ends
|
|
684
|
+
*
|
|
685
|
+
* @param {boolean} inverted
|
|
686
|
+
* flag if chart is inverted
|
|
687
|
+
*
|
|
688
|
+
* @param {string} verb
|
|
689
|
+
* use 'animate' or 'attr'
|
|
690
|
+
*
|
|
691
|
+
* @return {void}
|
|
580
692
|
*/
|
|
581
693
|
drawOutline: function (zoomedMin, zoomedMax, inverted, verb) {
|
|
582
694
|
var navigator = this,
|
|
@@ -664,10 +776,22 @@ Navigator.prototype = {
|
|
|
664
776
|
|
|
665
777
|
/**
|
|
666
778
|
* Render outline around the zoomed range
|
|
667
|
-
*
|
|
668
|
-
* @
|
|
669
|
-
*
|
|
670
|
-
* @param
|
|
779
|
+
*
|
|
780
|
+
* @function Highcharts.Navigator#drawMasks
|
|
781
|
+
*
|
|
782
|
+
* @param {number} zoomedMin
|
|
783
|
+
* in pixels position where zoomed range starts
|
|
784
|
+
*
|
|
785
|
+
* @param {number} zoomedMax
|
|
786
|
+
* in pixels position where zoomed range ends
|
|
787
|
+
*
|
|
788
|
+
* @param {boolean} inverted
|
|
789
|
+
* flag if chart is inverted
|
|
790
|
+
*
|
|
791
|
+
* @param {string} verb
|
|
792
|
+
* use 'animate' or 'attr'
|
|
793
|
+
*
|
|
794
|
+
* @return {void}
|
|
671
795
|
*/
|
|
672
796
|
drawMasks: function (zoomedMin, zoomedMax, inverted, verb) {
|
|
673
797
|
var navigator = this,
|
|
@@ -716,6 +840,10 @@ Navigator.prototype = {
|
|
|
716
840
|
* - all shades
|
|
717
841
|
* - outline
|
|
718
842
|
* - handles
|
|
843
|
+
*
|
|
844
|
+
* @function Highcharts.Navigator#renderElements
|
|
845
|
+
*
|
|
846
|
+
* @return {void}
|
|
719
847
|
*/
|
|
720
848
|
renderElements: function () {
|
|
721
849
|
var navigator = this,
|
|
@@ -803,7 +931,13 @@ Navigator.prototype = {
|
|
|
803
931
|
|
|
804
932
|
/**
|
|
805
933
|
* Update navigator
|
|
806
|
-
*
|
|
934
|
+
*
|
|
935
|
+
* @function Highcharts.Navigator#update
|
|
936
|
+
*
|
|
937
|
+
* @param {Highcharts.NavigatorOptions} options
|
|
938
|
+
* Options to merge in when updating navigator
|
|
939
|
+
*
|
|
940
|
+
* @return {void}
|
|
807
941
|
*/
|
|
808
942
|
update: function (options) {
|
|
809
943
|
// Remove references to old navigator series in base series
|
|
@@ -821,10 +955,22 @@ Navigator.prototype = {
|
|
|
821
955
|
|
|
822
956
|
/**
|
|
823
957
|
* Render the navigator
|
|
824
|
-
*
|
|
825
|
-
* @
|
|
826
|
-
*
|
|
827
|
-
* @param
|
|
958
|
+
*
|
|
959
|
+
* @function Highcharts.Navigator#render
|
|
960
|
+
*
|
|
961
|
+
* @param {number} min
|
|
962
|
+
* X axis value minimum
|
|
963
|
+
*
|
|
964
|
+
* @param {number} max
|
|
965
|
+
* X axis value maximum
|
|
966
|
+
*
|
|
967
|
+
* @param {number} pxMin
|
|
968
|
+
* Pixel value minimum
|
|
969
|
+
*
|
|
970
|
+
* @param {number} pxMax
|
|
971
|
+
* Pixel value maximum
|
|
972
|
+
*
|
|
973
|
+
* @return {void}
|
|
828
974
|
*/
|
|
829
975
|
render: function (min, max, pxMin, pxMax) {
|
|
830
976
|
|
|
@@ -984,8 +1130,8 @@ Navigator.prototype = {
|
|
|
984
1130
|
navigator.scrollbar.setRange(
|
|
985
1131
|
// Use real value, not rounded because range can be very small
|
|
986
1132
|
// (#1716)
|
|
987
|
-
navigator.zoomedMin / navigatorSize,
|
|
988
|
-
navigator.zoomedMax / navigatorSize
|
|
1133
|
+
navigator.zoomedMin / (navigatorSize || 1),
|
|
1134
|
+
navigator.zoomedMax / (navigatorSize || 1)
|
|
989
1135
|
);
|
|
990
1136
|
}
|
|
991
1137
|
navigator.rendered = true;
|
|
@@ -993,6 +1139,10 @@ Navigator.prototype = {
|
|
|
993
1139
|
|
|
994
1140
|
/**
|
|
995
1141
|
* Set up the mouse and touch events for the navigator
|
|
1142
|
+
*
|
|
1143
|
+
* @function Highcharts.Navigator#addMouseEvents
|
|
1144
|
+
*
|
|
1145
|
+
* @return {void}
|
|
996
1146
|
*/
|
|
997
1147
|
addMouseEvents: function () {
|
|
998
1148
|
var navigator = this,
|
|
@@ -1050,8 +1200,14 @@ Navigator.prototype = {
|
|
|
1050
1200
|
|
|
1051
1201
|
/**
|
|
1052
1202
|
* Generate events for handles and masks
|
|
1053
|
-
*
|
|
1054
|
-
* @
|
|
1203
|
+
*
|
|
1204
|
+
* @function Highcharts.Navigator#getPartsEvents
|
|
1205
|
+
*
|
|
1206
|
+
* @param {string} eventName
|
|
1207
|
+
* Event name handler, 'mousedown' or 'touchstart'
|
|
1208
|
+
*
|
|
1209
|
+
* @return {Array<*>}
|
|
1210
|
+
* An array of arrays: [DOMElement, eventName, callback].
|
|
1055
1211
|
*/
|
|
1056
1212
|
getPartsEvents: function (eventName) {
|
|
1057
1213
|
var navigator = this,
|
|
@@ -1077,8 +1233,15 @@ Navigator.prototype = {
|
|
|
1077
1233
|
* - will be stored for future drag&drop
|
|
1078
1234
|
* - will directly shift to a new range
|
|
1079
1235
|
*
|
|
1080
|
-
* @
|
|
1081
|
-
*
|
|
1236
|
+
* @function Highcharts.Navigator#shadesMousedown
|
|
1237
|
+
*
|
|
1238
|
+
* @param {*} e
|
|
1239
|
+
* Mouse event
|
|
1240
|
+
*
|
|
1241
|
+
* @param {number} index
|
|
1242
|
+
* Index of a mask in Navigator.shades array
|
|
1243
|
+
*
|
|
1244
|
+
* @return {void}
|
|
1082
1245
|
*/
|
|
1083
1246
|
shadesMousedown: function (e, index) {
|
|
1084
1247
|
e = this.chart.pointer.normalize(e);
|
|
@@ -1114,7 +1277,7 @@ Navigator.prototype = {
|
|
|
1114
1277
|
left = Math.max(0, left);
|
|
1115
1278
|
} else if (index === 2 && left + range >= navigatorSize) {
|
|
1116
1279
|
left = navigatorSize - range;
|
|
1117
|
-
if (
|
|
1280
|
+
if (navigator.reversedExtremes) {
|
|
1118
1281
|
// #7713
|
|
1119
1282
|
left -= range;
|
|
1120
1283
|
fixedMin = navigator.getUnionExtremes().dataMin;
|
|
@@ -1149,8 +1312,15 @@ Navigator.prototype = {
|
|
|
1149
1312
|
* Mousedown on a handle mask.
|
|
1150
1313
|
* Will store necessary information for drag&drop.
|
|
1151
1314
|
*
|
|
1152
|
-
* @
|
|
1153
|
-
*
|
|
1315
|
+
* @function Highcharts.Navigator#handlesMousedown
|
|
1316
|
+
*
|
|
1317
|
+
* @param {*} e
|
|
1318
|
+
* Mouse event
|
|
1319
|
+
*
|
|
1320
|
+
* @param {number} index
|
|
1321
|
+
* Index of a handle in Navigator.handles array
|
|
1322
|
+
*
|
|
1323
|
+
* @return {void}
|
|
1154
1324
|
*/
|
|
1155
1325
|
handlesMousedown: function (e, index) {
|
|
1156
1326
|
e = this.chart.pointer.normalize(e);
|
|
@@ -1158,10 +1328,9 @@ Navigator.prototype = {
|
|
|
1158
1328
|
var navigator = this,
|
|
1159
1329
|
chart = navigator.chart,
|
|
1160
1330
|
baseXAxis = chart.xAxis[0],
|
|
1161
|
-
// For reversed axes, min and max are
|
|
1331
|
+
// For reversed axes, min and max are changed,
|
|
1162
1332
|
// so the other extreme should be stored
|
|
1163
|
-
reverse =
|
|
1164
|
-
(!chart.inverted && baseXAxis.reversed);
|
|
1333
|
+
reverse = navigator.reversedExtremes;
|
|
1165
1334
|
|
|
1166
1335
|
if (index === 0) {
|
|
1167
1336
|
// Grab the left handle
|
|
@@ -1179,7 +1348,13 @@ Navigator.prototype = {
|
|
|
1179
1348
|
},
|
|
1180
1349
|
/**
|
|
1181
1350
|
* Mouse move event based on x/y mouse position.
|
|
1182
|
-
*
|
|
1351
|
+
*
|
|
1352
|
+
* @function Highcharts.Navigator#onMouseMove
|
|
1353
|
+
*
|
|
1354
|
+
* @param {*} e
|
|
1355
|
+
* Mouse event
|
|
1356
|
+
*
|
|
1357
|
+
* @return {void}
|
|
1183
1358
|
*/
|
|
1184
1359
|
onMouseMove: function (e) {
|
|
1185
1360
|
var navigator = this,
|
|
@@ -1244,7 +1419,13 @@ Navigator.prototype = {
|
|
|
1244
1419
|
if (
|
|
1245
1420
|
navigator.hasDragged &&
|
|
1246
1421
|
navigator.scrollbar &&
|
|
1247
|
-
|
|
1422
|
+
pick(
|
|
1423
|
+
navigator.scrollbar.options.liveRedraw,
|
|
1424
|
+
|
|
1425
|
+
// By default, don't run live redraw on VML, on touch
|
|
1426
|
+
// devices or if the chart is in boost.
|
|
1427
|
+
H.svg && !isTouchDevice && !this.chart.isBoosting
|
|
1428
|
+
)
|
|
1248
1429
|
) {
|
|
1249
1430
|
e.DOMType = e.type; // DOMType is for IE8
|
|
1250
1431
|
setTimeout(function () {
|
|
@@ -1256,13 +1437,18 @@ Navigator.prototype = {
|
|
|
1256
1437
|
|
|
1257
1438
|
/**
|
|
1258
1439
|
* Mouse up event based on x/y mouse position.
|
|
1259
|
-
*
|
|
1440
|
+
*
|
|
1441
|
+
* @function Highcharts.Navigator#onMouseUp
|
|
1442
|
+
*
|
|
1443
|
+
* @param {*} e
|
|
1444
|
+
* Mouse event
|
|
1445
|
+
*
|
|
1446
|
+
* @return {void}
|
|
1260
1447
|
*/
|
|
1261
1448
|
onMouseUp: function (e) {
|
|
1262
1449
|
var navigator = this,
|
|
1263
1450
|
chart = navigator.chart,
|
|
1264
1451
|
xAxis = navigator.xAxis,
|
|
1265
|
-
reversed = xAxis && xAxis.reversed,
|
|
1266
1452
|
scrollbar = navigator.scrollbar,
|
|
1267
1453
|
unionExtremes,
|
|
1268
1454
|
fixedMin,
|
|
@@ -1287,13 +1473,13 @@ Navigator.prototype = {
|
|
|
1287
1473
|
}
|
|
1288
1474
|
// Snap to right edge (#4076)
|
|
1289
1475
|
if (navigator.zoomedMax === navigator.size) {
|
|
1290
|
-
fixedMax =
|
|
1476
|
+
fixedMax = navigator.reversedExtremes ?
|
|
1291
1477
|
unionExtremes.dataMin : unionExtremes.dataMax;
|
|
1292
1478
|
}
|
|
1293
1479
|
|
|
1294
1480
|
// Snap to left edge (#7576)
|
|
1295
1481
|
if (navigator.zoomedMin === 0) {
|
|
1296
|
-
fixedMin =
|
|
1482
|
+
fixedMin = navigator.reversedExtremes ?
|
|
1297
1483
|
unionExtremes.dataMax : unionExtremes.dataMin;
|
|
1298
1484
|
}
|
|
1299
1485
|
|
|
@@ -1331,6 +1517,10 @@ Navigator.prototype = {
|
|
|
1331
1517
|
|
|
1332
1518
|
/**
|
|
1333
1519
|
* Removes the event handlers attached previously with addEvents.
|
|
1520
|
+
*
|
|
1521
|
+
* @function Highcharts.Navigator#removeEvents
|
|
1522
|
+
*
|
|
1523
|
+
* @return {void}
|
|
1334
1524
|
*/
|
|
1335
1525
|
removeEvents: function () {
|
|
1336
1526
|
if (this.eventsToUnbind) {
|
|
@@ -1344,6 +1534,10 @@ Navigator.prototype = {
|
|
|
1344
1534
|
|
|
1345
1535
|
/**
|
|
1346
1536
|
* Remove data events.
|
|
1537
|
+
*
|
|
1538
|
+
* @function Highcharts.Navigator#removeBaseSeriesEvents
|
|
1539
|
+
*
|
|
1540
|
+
* @return {void}
|
|
1347
1541
|
*/
|
|
1348
1542
|
removeBaseSeriesEvents: function () {
|
|
1349
1543
|
var baseSeries = this.baseSeries || [];
|
|
@@ -1367,6 +1561,12 @@ Navigator.prototype = {
|
|
|
1367
1561
|
|
|
1368
1562
|
/**
|
|
1369
1563
|
* Initiate the Navigator object
|
|
1564
|
+
*
|
|
1565
|
+
* @function Highcharts.Navigator#init
|
|
1566
|
+
*
|
|
1567
|
+
* @param {Highcharts.Chart} chart
|
|
1568
|
+
*
|
|
1569
|
+
* @return {void}
|
|
1370
1570
|
*/
|
|
1371
1571
|
init: function (chart) {
|
|
1372
1572
|
var chartOptions = chart.options,
|
|
@@ -1403,22 +1603,6 @@ Navigator.prototype = {
|
|
|
1403
1603
|
baseXaxis = baseSeries && baseSeries[0] && baseSeries[0].xAxis ||
|
|
1404
1604
|
chart.xAxis[0] || { options: {} };
|
|
1405
1605
|
|
|
1406
|
-
|
|
1407
|
-
// Make room for the navigator, can be placed around the chart:
|
|
1408
|
-
addEvent(chart, 'getMargins', function () {
|
|
1409
|
-
var marginName = navigator.opposite ? 'plotTop' : 'marginBottom';
|
|
1410
|
-
if (chart.inverted) {
|
|
1411
|
-
marginName = navigator.opposite ? 'marginRight' : 'plotLeft';
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
chart[marginName] = (chart[marginName] || 0) + (
|
|
1415
|
-
navigatorEnabled || !chart.inverted ?
|
|
1416
|
-
navigator.outlineHeight :
|
|
1417
|
-
0
|
|
1418
|
-
) + navigatorOptions.margin;
|
|
1419
|
-
|
|
1420
|
-
});
|
|
1421
|
-
|
|
1422
1606
|
chart.isDirtyBox = true;
|
|
1423
1607
|
|
|
1424
1608
|
if (navigator.navigatorEnabled) {
|
|
@@ -1433,6 +1617,7 @@ Navigator.prototype = {
|
|
|
1433
1617
|
isX: true,
|
|
1434
1618
|
type: 'datetime',
|
|
1435
1619
|
index: xAxisIndex,
|
|
1620
|
+
isInternal: true,
|
|
1436
1621
|
offset: 0,
|
|
1437
1622
|
keepOrdinalPadding: true, // #2436
|
|
1438
1623
|
startOnTick: false,
|
|
@@ -1453,6 +1638,7 @@ Navigator.prototype = {
|
|
|
1453
1638
|
alignTicks: false,
|
|
1454
1639
|
offset: 0,
|
|
1455
1640
|
index: yAxisIndex,
|
|
1641
|
+
isInternal: true,
|
|
1456
1642
|
zoomEnabled: false
|
|
1457
1643
|
}, chart.inverted ? {
|
|
1458
1644
|
width: height
|
|
@@ -1480,6 +1666,12 @@ Navigator.prototype = {
|
|
|
1480
1666
|
);
|
|
1481
1667
|
}
|
|
1482
1668
|
|
|
1669
|
+
navigator.reversedExtremes = (
|
|
1670
|
+
chart.inverted && !navigator.xAxis.reversed
|
|
1671
|
+
) || (
|
|
1672
|
+
!chart.inverted && navigator.xAxis.reversed
|
|
1673
|
+
);
|
|
1674
|
+
|
|
1483
1675
|
// Render items, so we can bind events to them:
|
|
1484
1676
|
navigator.renderElements();
|
|
1485
1677
|
// Add mouse events
|
|
@@ -1558,7 +1750,13 @@ Navigator.prototype = {
|
|
|
1558
1750
|
/**
|
|
1559
1751
|
* Get the union data extremes of the chart - the outer data extremes of the
|
|
1560
1752
|
* base X axis and the navigator axis.
|
|
1561
|
-
*
|
|
1753
|
+
*
|
|
1754
|
+
* @function Highcharts.Navigator#getUnionExtremes
|
|
1755
|
+
*
|
|
1756
|
+
* @param {boolean} returnFalseOnNoBaseSeries
|
|
1757
|
+
* as the param says.
|
|
1758
|
+
*
|
|
1759
|
+
* @return {*}
|
|
1562
1760
|
*/
|
|
1563
1761
|
getUnionExtremes: function (returnFalseOnNoBaseSeries) {
|
|
1564
1762
|
var baseAxis = this.chart.xAxis[0],
|
|
@@ -1598,10 +1796,16 @@ Navigator.prototype = {
|
|
|
1598
1796
|
* Set the base series and update the navigator series from this. With a bit
|
|
1599
1797
|
* of modification we should be able to make this an API method to be called
|
|
1600
1798
|
* from the outside
|
|
1601
|
-
*
|
|
1799
|
+
*
|
|
1800
|
+
* @function Highcharts.Navigator#setBaseSeries
|
|
1801
|
+
*
|
|
1802
|
+
* @param {*} baseSeriesOptions
|
|
1602
1803
|
* Additional series options for a navigator
|
|
1603
|
-
*
|
|
1804
|
+
*
|
|
1805
|
+
* @param {boolean} [redraw]
|
|
1604
1806
|
* Whether to redraw after update.
|
|
1807
|
+
*
|
|
1808
|
+
* @return {void}
|
|
1605
1809
|
*/
|
|
1606
1810
|
setBaseSeries: function (baseSeriesOptions, redraw) {
|
|
1607
1811
|
var chart = this.chart,
|
|
@@ -1638,9 +1842,17 @@ Navigator.prototype = {
|
|
|
1638
1842
|
}
|
|
1639
1843
|
},
|
|
1640
1844
|
|
|
1641
|
-
|
|
1845
|
+
/**
|
|
1642
1846
|
* Update series in the navigator from baseSeries, adding new if does not
|
|
1643
1847
|
* exist.
|
|
1848
|
+
*
|
|
1849
|
+
* @function Highcharts.Navigator.updateNavigatorSeries
|
|
1850
|
+
*
|
|
1851
|
+
* @param {boolean} addEvents
|
|
1852
|
+
*
|
|
1853
|
+
* @param {boolean} redraw
|
|
1854
|
+
*
|
|
1855
|
+
* @return {void}
|
|
1644
1856
|
*/
|
|
1645
1857
|
updateNavigatorSeries: function (addEvents, redraw) {
|
|
1646
1858
|
var navigator = this,
|
|
@@ -1677,8 +1889,11 @@ Navigator.prototype = {
|
|
|
1677
1889
|
);
|
|
1678
1890
|
delete base.navigatorSeries;
|
|
1679
1891
|
}
|
|
1680
|
-
// Kill the nav series
|
|
1681
|
-
|
|
1892
|
+
// Kill the nav series. It may already have been
|
|
1893
|
+
// destroyed (#8715).
|
|
1894
|
+
if (navSeries.chart) {
|
|
1895
|
+
navSeries.destroy();
|
|
1896
|
+
}
|
|
1682
1897
|
return false;
|
|
1683
1898
|
}
|
|
1684
1899
|
return true;
|
|
@@ -1794,6 +2009,10 @@ Navigator.prototype = {
|
|
|
1794
2009
|
/**
|
|
1795
2010
|
* Add data events.
|
|
1796
2011
|
* For example when main series is updated we need to recalculate extremes
|
|
2012
|
+
*
|
|
2013
|
+
* @function Highcharts.Navigator#addBaseSeriesEvent
|
|
2014
|
+
*
|
|
2015
|
+
* @return {void}
|
|
1797
2016
|
*/
|
|
1798
2017
|
addBaseSeriesEvents: function () {
|
|
1799
2018
|
var navigator = this,
|
|
@@ -1845,10 +2064,32 @@ Navigator.prototype = {
|
|
|
1845
2064
|
}, this);
|
|
1846
2065
|
},
|
|
1847
2066
|
|
|
2067
|
+
/**
|
|
2068
|
+
* Get minimum from all base series connected to the navigator
|
|
2069
|
+
*
|
|
2070
|
+
* @param {number} currentSeriesMin
|
|
2071
|
+
* Minium from the current series
|
|
2072
|
+
*
|
|
2073
|
+
* @return {number} Minimum from all series
|
|
2074
|
+
*/
|
|
2075
|
+
getBaseSeriesMin: function (currentSeriesMin) {
|
|
2076
|
+
return H.reduce(
|
|
2077
|
+
this.baseSeries,
|
|
2078
|
+
function (min, series) {
|
|
2079
|
+
return Math.min(min, series.xData[0]);
|
|
2080
|
+
},
|
|
2081
|
+
currentSeriesMin
|
|
2082
|
+
);
|
|
2083
|
+
},
|
|
2084
|
+
|
|
1848
2085
|
/**
|
|
1849
2086
|
* Set the navigator x axis extremes to reflect the total. The navigator
|
|
1850
2087
|
* extremes should always be the extremes of the union of all series in the
|
|
1851
2088
|
* chart as well as the navigator series.
|
|
2089
|
+
*
|
|
2090
|
+
* @function Highcharts.Navigator#modifyNavigatorAxisExtremes
|
|
2091
|
+
*
|
|
2092
|
+
* @return {void}
|
|
1852
2093
|
*/
|
|
1853
2094
|
modifyNavigatorAxisExtremes: function () {
|
|
1854
2095
|
var xAxis = this.xAxis,
|
|
@@ -1871,6 +2112,10 @@ Navigator.prototype = {
|
|
|
1871
2112
|
|
|
1872
2113
|
/**
|
|
1873
2114
|
* Hook to modify the base axis extremes with information from the Navigator
|
|
2115
|
+
*
|
|
2116
|
+
* @function Highcharts.Navigator#modifyBaseAxisExtremes
|
|
2117
|
+
*
|
|
2118
|
+
* @return {void}
|
|
1874
2119
|
*/
|
|
1875
2120
|
modifyBaseAxisExtremes: function () {
|
|
1876
2121
|
var baseXAxis = this,
|
|
@@ -1913,8 +2158,11 @@ Navigator.prototype = {
|
|
|
1913
2158
|
if (!stickToMin) {
|
|
1914
2159
|
newMin = Math.max(
|
|
1915
2160
|
newMax - range,
|
|
1916
|
-
|
|
1917
|
-
navigatorSeries.xData
|
|
2161
|
+
navigator.getBaseSeriesMin(
|
|
2162
|
+
navigatorSeries && navigatorSeries.xData ?
|
|
2163
|
+
navigatorSeries.xData[0] :
|
|
2164
|
+
-Number.MAX_VALUE
|
|
2165
|
+
)
|
|
1918
2166
|
);
|
|
1919
2167
|
}
|
|
1920
2168
|
}
|
|
@@ -1936,15 +2184,20 @@ Navigator.prototype = {
|
|
|
1936
2184
|
* Handler for updated data on the base series. When data is modified, the
|
|
1937
2185
|
* navigator series must reflect it. This is called from the Chart.redraw
|
|
1938
2186
|
* function before axis and series extremes are computed.
|
|
2187
|
+
*
|
|
2188
|
+
* @function Highcharts.Navigator#updateDataHandler
|
|
2189
|
+
*
|
|
2190
|
+
* @return {void}
|
|
1939
2191
|
*/
|
|
1940
2192
|
updatedDataHandler: function () {
|
|
1941
2193
|
var navigator = this.chart.navigator,
|
|
1942
2194
|
baseSeries = this,
|
|
1943
|
-
navigatorSeries = this.navigatorSeries
|
|
2195
|
+
navigatorSeries = this.navigatorSeries,
|
|
2196
|
+
xDataMin = navigator.getBaseSeriesMin(baseSeries.xData[0]);
|
|
1944
2197
|
|
|
1945
2198
|
// If the scrollbar is scrolled all the way to the right, keep right as
|
|
1946
2199
|
// new data comes in.
|
|
1947
|
-
navigator.stickToMax = navigator.
|
|
2200
|
+
navigator.stickToMax = navigator.reversedExtremes ?
|
|
1948
2201
|
Math.round(navigator.zoomedMin) === 0 :
|
|
1949
2202
|
Math.round(navigator.zoomedMax) >= Math.round(navigator.size);
|
|
1950
2203
|
|
|
@@ -1952,7 +2205,7 @@ Navigator.prototype = {
|
|
|
1952
2205
|
// maximum. If the current axis minimum falls outside the new updated
|
|
1953
2206
|
// dataset, we must adjust.
|
|
1954
2207
|
navigator.stickToMin = isNumber(baseSeries.xAxis.min) &&
|
|
1955
|
-
(baseSeries.xAxis.min <=
|
|
2208
|
+
(baseSeries.xAxis.min <= xDataMin) &&
|
|
1956
2209
|
(!this.chart.fixedRange || !navigator.stickToMax);
|
|
1957
2210
|
|
|
1958
2211
|
// Set the navigator series data to the new data of the base series
|
|
@@ -1969,27 +2222,66 @@ Navigator.prototype = {
|
|
|
1969
2222
|
|
|
1970
2223
|
/**
|
|
1971
2224
|
* Add chart events, like redrawing navigator, when chart requires that.
|
|
2225
|
+
*
|
|
2226
|
+
* @function Highcharts.Navigator#addChartEvents
|
|
2227
|
+
*
|
|
2228
|
+
* @return {void}
|
|
1972
2229
|
*/
|
|
1973
2230
|
addChartEvents: function () {
|
|
1974
|
-
|
|
2231
|
+
if (!this.eventsToUnbind) {
|
|
2232
|
+
this.eventsToUnbind = [];
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
this.eventsToUnbind.push(
|
|
1975
2236
|
// Move the scrollbar after redraw, like after data updata even if
|
|
1976
2237
|
// axes don't redraw
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
navigator.
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
2238
|
+
addEvent(
|
|
2239
|
+
this.chart,
|
|
2240
|
+
'redraw',
|
|
2241
|
+
function () {
|
|
2242
|
+
var navigator = this.navigator,
|
|
2243
|
+
xAxis = navigator && (
|
|
2244
|
+
navigator.baseSeries &&
|
|
2245
|
+
navigator.baseSeries[0] &&
|
|
2246
|
+
navigator.baseSeries[0].xAxis ||
|
|
2247
|
+
navigator.scrollbar && this.xAxis[0]
|
|
2248
|
+
); // #5709
|
|
2249
|
+
|
|
2250
|
+
if (xAxis) {
|
|
2251
|
+
navigator.render(xAxis.min, xAxis.max);
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
),
|
|
2255
|
+
// Make room for the navigator, can be placed around the chart:
|
|
2256
|
+
addEvent(
|
|
2257
|
+
this.chart,
|
|
2258
|
+
'getMargins',
|
|
2259
|
+
function () {
|
|
2260
|
+
var chart = this,
|
|
2261
|
+
navigator = chart.navigator,
|
|
2262
|
+
marginName = navigator.opposite ?
|
|
2263
|
+
'plotTop' : 'marginBottom';
|
|
2264
|
+
if (chart.inverted) {
|
|
2265
|
+
marginName = navigator.opposite ?
|
|
2266
|
+
'marginRight' : 'plotLeft';
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
chart[marginName] = (chart[marginName] || 0) + (
|
|
2270
|
+
navigator.navigatorEnabled || !chart.inverted ?
|
|
2271
|
+
navigator.outlineHeight :
|
|
2272
|
+
0
|
|
2273
|
+
) + navigator.navigatorOptions.margin;
|
|
2274
|
+
}
|
|
2275
|
+
)
|
|
2276
|
+
);
|
|
1989
2277
|
},
|
|
1990
2278
|
|
|
1991
2279
|
/**
|
|
1992
2280
|
* Destroys allocated elements.
|
|
2281
|
+
*
|
|
2282
|
+
* @function Highcharts.Navigator#destroy
|
|
2283
|
+
*
|
|
2284
|
+
* @return {void}
|
|
1993
2285
|
*/
|
|
1994
2286
|
destroy: function () {
|
|
1995
2287
|
|