highcharts 11.4.3 → 11.4.4
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/AccessibilityComponent.js +1 -1
- package/es-modules/Accessibility/Components/NavigatorComponent.js +2 -2
- package/es-modules/Accessibility/KeyboardNavigation.js +1 -1
- package/es-modules/Accessibility/KeyboardNavigationHandler.js +5 -5
- package/es-modules/Accessibility/Options/A11yDefaults.js +1 -1
- package/es-modules/Accessibility/Options/LangDefaults.js +3 -3
- package/es-modules/Accessibility/Utils/EventProvider.js +1 -1
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +1 -1
- package/es-modules/Core/Animation/Fx.js +4 -2
- package/es-modules/Core/Axis/Axis.js +3 -3
- package/es-modules/Core/Axis/AxisDefaults.js +1 -0
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +7 -3
- package/es-modules/Core/Axis/GridAxis.js +1 -1
- package/es-modules/Core/Axis/OrdinalAxis.js +5 -2
- package/es-modules/Core/Axis/RadialAxisDefaults.js +3 -3
- package/es-modules/Core/Axis/Stacking/StackItem.js +1 -1
- package/es-modules/Core/Chart/Chart.js +16 -7
- package/es-modules/Core/Chart/MapChart.js +3 -3
- package/es-modules/Core/Chart/StockChart.js +1 -1
- package/es-modules/Core/Color/Color.js +2 -2
- package/es-modules/Core/Defaults.js +27 -1
- package/es-modules/Core/Geometry/GeometryUtilities.js +22 -0
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +82 -14
- package/es-modules/Core/MSPointer.js +42 -1
- package/es-modules/Core/Pointer.js +10 -6
- package/es-modules/Core/Renderer/HTML/AST.js +6 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGElement.js +31 -98
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +20 -0
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +29 -14
- package/es-modules/Core/Renderer/SVG/Symbols.js +18 -18
- package/es-modules/Core/Responsive.js +6 -1
- package/es-modules/Core/Series/DataLabel.js +1 -10
- package/es-modules/Core/Series/DataSeriesComposition.js +0 -2
- package/es-modules/Core/Series/Point.js +7 -10
- package/es-modules/Core/Series/Series.js +40 -24
- package/es-modules/Core/Series/SeriesDefaults.js +18 -12
- package/es-modules/Core/Templating.js +2 -2
- package/es-modules/Core/Tooltip.js +6 -3
- package/es-modules/Data/Connectors/JSONConnector.js +1 -0
- package/es-modules/Data/Converters/CSVConverter.js +1 -1
- package/es-modules/Data/Converters/DataConverter.js +7 -7
- package/es-modules/Data/DataTable.js +106 -5
- package/es-modules/Data/Formula/FormulaParser.js +2 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableDefaults.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +1 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +1 -2
- package/es-modules/Extensions/Boost/Boost.js +1 -1
- package/es-modules/Extensions/Boost/BoostChart.js +8 -2
- package/es-modules/Extensions/Boost/BoostSeries.js +41 -10
- package/es-modules/Extensions/Boost/WGLShader.js +1 -1
- package/es-modules/Extensions/BorderRadius.js +3 -3
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +0 -38
- package/es-modules/Extensions/Data.js +11 -11
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +1 -2
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +1 -1
- package/es-modules/Extensions/DownloadURL.js +1 -1
- package/es-modules/Extensions/Drilldown/Drilldown.js +0 -2
- package/es-modules/Extensions/Exporting/Exporting.js +14 -14
- package/es-modules/Extensions/OverlappingDataLabels.js +36 -5
- package/es-modules/Extensions/Pane/PaneDefaults.js +3 -2
- package/es-modules/Extensions/ParallelCoordinates/ParallelCoordinates.js +1 -1
- package/es-modules/Extensions/Sonification/MIDI.js +7 -7
- package/es-modules/Extensions/Sonification/SonificationInstrument.js +0 -1
- package/es-modules/Extensions/Sonification/TimelineFromChart.js +1 -3
- package/es-modules/Extensions/TextPath.js +225 -0
- package/es-modules/Maps/MapUtilities.js +1 -20
- package/es-modules/Maps/MapView.js +3 -1
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +3 -0
- package/es-modules/Series/Area/AreaSeries.js +5 -0
- package/es-modules/Series/Area/AreaSeriesDefaults.js +1 -1
- package/es-modules/Series/Bar/BarSeries.js +1 -1
- package/es-modules/Series/Bellcurve/BellcurveSeriesDefaults.js +2 -2
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +2 -1
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +4 -7
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +3 -3
- package/es-modules/Series/Bubble/BubbleSeries.js +4 -4
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +1 -1
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +5 -2
- package/es-modules/Series/Dumbbell/DumbbellSeriesDefaults.js +2 -2
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +2 -2
- package/es-modules/Series/Flags/FlagsSeries.js +2 -2
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +1 -1
- package/es-modules/Series/Gantt/GanttSeriesDefaults.js +1 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +1 -1
- package/es-modules/Series/HLC/HLCSeries.js +1 -1
- package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +2 -2
- package/es-modules/Series/Item/ItemSeries.js +1 -1
- package/es-modules/Series/Map/MapSeries.js +1 -1
- package/es-modules/Series/Map/MapSeriesDefaults.js +2 -2
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +4 -1
- package/es-modules/Series/Organization/OrganizationSeries.js +3 -0
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +8 -5
- package/es-modules/Series/Pie/PieDataLabel.js +7 -6
- package/es-modules/Series/Pie/PiePoint.js +6 -6
- package/es-modules/Series/Pie/PieSeriesDefaults.js +11 -10
- package/es-modules/Series/Pie3D/Pie3DSeries.js +1 -1
- package/es-modules/Series/Sankey/SankeySeries.js +7 -4
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +8 -5
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +2 -2
- package/es-modules/Series/Tilemap/TilemapSeriesDefaults.js +2 -2
- package/es-modules/Series/Treegraph/TreegraphSeries.js +23 -2
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +2 -2
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -1
- package/es-modules/Series/Treemap/TreemapSeries.js +15 -7
- package/es-modules/Series/Treemap/TreemapSeriesDefaults.js +15 -1
- package/es-modules/Series/VariablePie/VariablePieSeriesDefaults.js +2 -2
- package/es-modules/Series/Variwide/VariwideComposition.js +1 -1
- package/es-modules/Series/Vector/VectorSeries.js +1 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +2 -2
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +2 -2
- package/es-modules/Series/Wordcloud/WordcloudSeriesDefaults.js +1 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +1 -1
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +1 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +3 -3
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegressionIndicator.js +1 -1
- package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +3 -3
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +2 -2
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +3 -3
- package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +1 -1
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +1 -1
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +1 -1
- package/es-modules/Stock/Navigator/Navigator.js +141 -55
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +1 -1
- package/es-modules/Stock/RangeSelector/RangeSelector.js +1 -1
- package/es-modules/Stock/RangeSelector/RangeSelectorDefaults.js +1 -1
- package/es-modules/Stock/Scrollbar/ScrollbarDefaults.js +1 -1
- package/es-modules/Stock/StockTools/StockToolbar.js +115 -37
- package/es-modules/Stock/StockTools/StockToolsDefaults.js +7 -1
- package/es-modules/Stock/StockTools/StockToolsGui.js +24 -23
- package/es-modules/Stock/StockTools/StockToolsUtilities.js +26 -0
- package/es-modules/masters/highcharts-more.src.js +2 -2
- 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/arc-diagram.src.js +2 -3
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +2 -2
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +3 -3
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/textpath.src.d.ts +1 -0
- package/es-modules/masters/modules/textpath.src.js +16 -0
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/treegraph.src.js +1 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -1
- package/highcharts-3d.js +2 -2
- package/highcharts-3d.src.js +4 -4
- package/highcharts-gantt.js +3 -3
- package/highcharts-gantt.src.js +3374 -3042
- package/highcharts-more.d.ts +42 -2
- package/highcharts-more.js +2 -2
- package/highcharts-more.src.d.ts +42 -2
- package/highcharts-more.src.js +260 -35
- package/highcharts.d.ts +828 -428
- package/highcharts.js +3 -3
- package/highcharts.src.d.ts +828 -428
- package/highcharts.src.js +5844 -5600
- package/highmaps.js +3 -3
- package/highmaps.src.js +3270 -3043
- package/highstock.js +3 -3
- package/highstock.src.js +3379 -3048
- package/indicators/acceleration-bands.js +2 -2
- package/indicators/acceleration-bands.src.js +4 -4
- package/indicators/accumulation-distribution.js +2 -2
- package/indicators/accumulation-distribution.src.js +5 -5
- package/indicators/ao.js +2 -2
- package/indicators/ao.src.js +4 -4
- package/indicators/apo.js +2 -2
- package/indicators/apo.src.js +5 -5
- package/indicators/aroon-oscillator.js +2 -2
- package/indicators/aroon-oscillator.src.js +4 -4
- package/indicators/aroon.js +2 -2
- package/indicators/aroon.src.js +5 -5
- package/indicators/atr.js +2 -2
- package/indicators/atr.src.js +4 -4
- package/indicators/bollinger-bands.js +2 -2
- package/indicators/bollinger-bands.src.js +4 -4
- package/indicators/cci.js +2 -2
- package/indicators/cci.src.js +4 -4
- package/indicators/chaikin.js +2 -2
- package/indicators/chaikin.src.js +6 -6
- package/indicators/cmf.js +2 -2
- package/indicators/cmf.src.js +5 -5
- package/indicators/cmo.js +2 -2
- package/indicators/cmo.src.js +4 -4
- package/indicators/dema.js +2 -2
- package/indicators/dema.src.js +4 -4
- package/indicators/disparity-index.js +2 -2
- package/indicators/disparity-index.src.js +4 -4
- package/indicators/dmi.js +2 -2
- package/indicators/dmi.src.js +4 -4
- package/indicators/dpo.js +2 -2
- package/indicators/dpo.src.js +4 -4
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +2 -2
- package/indicators/ichimoku-kinko-hyo.js +2 -2
- package/indicators/ichimoku-kinko-hyo.src.js +7 -7
- package/indicators/indicators-all.js +2 -2
- package/indicators/indicators-all.src.js +29 -29
- package/indicators/indicators.js +2 -2
- package/indicators/indicators.src.js +5 -5
- package/indicators/keltner-channels.js +2 -2
- package/indicators/keltner-channels.src.js +4 -4
- package/indicators/klinger.js +2 -2
- package/indicators/klinger.src.js +4 -4
- package/indicators/macd.js +2 -2
- package/indicators/macd.src.js +4 -4
- package/indicators/mfi.js +2 -2
- package/indicators/mfi.src.js +5 -5
- package/indicators/momentum.js +2 -2
- package/indicators/momentum.src.js +4 -4
- package/indicators/natr.js +2 -2
- package/indicators/natr.src.js +4 -4
- package/indicators/obv.js +2 -2
- package/indicators/obv.src.js +4 -4
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.src.js +7 -7
- package/indicators/ppo.js +2 -2
- package/indicators/ppo.src.js +5 -5
- package/indicators/price-channel.js +2 -2
- package/indicators/price-channel.src.js +5 -5
- package/indicators/price-envelopes.js +2 -2
- package/indicators/price-envelopes.src.js +4 -4
- package/indicators/psar.js +2 -2
- package/indicators/psar.src.js +5 -5
- package/indicators/regressions.js +2 -2
- package/indicators/regressions.src.js +5 -5
- package/indicators/roc.js +2 -2
- package/indicators/roc.src.js +4 -4
- package/indicators/rsi.js +2 -2
- package/indicators/rsi.src.js +4 -4
- package/indicators/slow-stochastic.js +2 -2
- package/indicators/slow-stochastic.src.js +6 -6
- package/indicators/stochastic.js +2 -2
- package/indicators/stochastic.src.js +4 -4
- package/indicators/supertrend.js +2 -2
- package/indicators/supertrend.src.js +7 -7
- package/indicators/tema.js +2 -2
- package/indicators/tema.src.js +4 -4
- package/indicators/trendline.js +2 -2
- package/indicators/trendline.src.js +5 -5
- package/indicators/trix.js +2 -2
- package/indicators/trix.src.js +4 -4
- package/indicators/volume-by-price.js +2 -2
- package/indicators/volume-by-price.src.js +4 -4
- package/indicators/vwap.js +2 -2
- package/indicators/vwap.src.js +5 -5
- package/indicators/williams-r.js +2 -2
- package/indicators/williams-r.src.js +5 -5
- package/indicators/wma.js +2 -2
- package/indicators/wma.src.js +4 -4
- package/indicators/zigzag.js +2 -2
- package/indicators/zigzag.src.js +4 -4
- package/modules/accessibility.js +2 -2
- package/modules/accessibility.src.js +162 -77
- package/modules/annotations-advanced.js +2 -2
- package/modules/annotations-advanced.src.js +8 -9
- package/modules/annotations.js +2 -2
- package/modules/annotations.src.js +8 -9
- package/modules/arc-diagram.d.ts +120 -1
- package/modules/arc-diagram.js +2 -2
- package/modules/arc-diagram.src.d.ts +120 -1
- package/modules/arc-diagram.src.js +9363 -5
- package/modules/arrow-symbols.js +2 -2
- package/modules/arrow-symbols.src.js +3 -3
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.src.js +53 -16
- package/modules/boost.js +2 -2
- package/modules/boost.src.js +54 -17
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.src.js +3 -3
- package/modules/bullet.js +2 -2
- package/modules/bullet.src.js +3 -3
- package/modules/coloraxis.js +2 -2
- package/modules/coloraxis.src.js +10 -6
- package/modules/current-date-indicator.js +2 -2
- package/modules/current-date-indicator.src.js +3 -3
- package/modules/cylinder.js +2 -2
- package/modules/cylinder.src.js +4 -4
- package/modules/data-tools.js +2 -2
- package/modules/data-tools.src.js +120 -18
- package/modules/data.js +2 -2
- package/modules/data.src.js +14 -14
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.src.js +5 -6
- package/modules/debugger.js +2 -2
- package/modules/debugger.src.js +3 -3
- package/modules/dependency-wheel.js +2 -2
- package/modules/dependency-wheel.src.js +8 -7
- package/modules/dotplot.js +2 -2
- package/modules/dotplot.src.js +3 -3
- package/modules/drag-panes.js +2 -2
- package/modules/drag-panes.src.js +4 -4
- package/modules/draggable-points.js +2 -2
- package/modules/draggable-points.src.js +3 -3
- package/modules/drilldown.js +2 -2
- package/modules/drilldown.src.js +3 -43
- package/modules/dumbbell.js +2 -2
- package/modules/dumbbell.src.js +5 -5
- package/modules/export-data.js +2 -2
- package/modules/export-data.src.js +5 -5
- package/modules/exporting.js +2 -2
- package/modules/exporting.src.js +17 -17
- package/modules/flowmap.js +2 -2
- package/modules/flowmap.src.js +3 -3
- package/modules/full-screen.js +2 -2
- package/modules/full-screen.src.js +3 -3
- package/modules/funnel.js +2 -2
- package/modules/funnel.src.js +3 -3
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.src.js +4 -4
- package/modules/gantt.js +2 -2
- package/modules/gantt.src.js +155 -67
- package/modules/geoheatmap.js +2 -2
- package/modules/geoheatmap.src.js +3 -3
- package/modules/grid-axis.js +2 -2
- package/modules/grid-axis.src.js +4 -4
- package/modules/heatmap.js +2 -2
- package/modules/heatmap.src.js +12 -8
- package/modules/heikinashi.js +2 -2
- package/modules/heikinashi.src.js +4 -4
- package/modules/histogram-bellcurve.js +2 -2
- package/modules/histogram-bellcurve.src.js +5 -5
- package/modules/hollowcandlestick.js +2 -2
- package/modules/hollowcandlestick.src.js +4 -4
- package/modules/item-series.js +2 -2
- package/modules/item-series.src.js +4 -4
- package/modules/lollipop.js +2 -2
- package/modules/lollipop.src.js +3 -3
- package/modules/map.d.ts +1 -1
- package/modules/map.js +2 -2
- package/modules/map.src.d.ts +1 -1
- package/modules/map.src.js +34 -51
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.src.js +3 -3
- package/modules/mouse-wheel-zoom.js +2 -2
- package/modules/mouse-wheel-zoom.src.js +3 -3
- package/modules/navigator.js +2 -2
- package/modules/navigator.src.js +146 -61
- package/modules/networkgraph.d.ts +40 -0
- package/modules/networkgraph.js +2 -2
- package/modules/networkgraph.src.d.ts +40 -0
- package/modules/networkgraph.src.js +231 -5
- package/modules/no-data-to-display.js +2 -2
- package/modules/no-data-to-display.src.js +3 -3
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +6 -6
- package/modules/organization.js +2 -2
- package/modules/organization.src.js +6 -5
- package/modules/overlapping-datalabels.js +2 -2
- package/modules/overlapping-datalabels.src.js +3 -3
- package/modules/parallel-coordinates.js +2 -2
- package/modules/parallel-coordinates.src.js +4 -4
- package/modules/pareto.js +2 -2
- package/modules/pareto.src.js +3 -3
- package/modules/pathfinder.js +2 -2
- package/modules/pathfinder.src.js +3 -3
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.src.js +3 -3
- package/modules/pictorial.js +2 -2
- package/modules/pictorial.src.js +3 -3
- package/modules/price-indicator.js +2 -2
- package/modules/price-indicator.src.js +4 -4
- package/modules/pyramid3d.js +2 -2
- package/modules/pyramid3d.src.js +4 -4
- package/modules/sankey.d.ts +42 -1
- package/modules/sankey.js +2 -2
- package/modules/sankey.src.d.ts +42 -1
- package/modules/sankey.src.js +235 -9
- package/modules/series-label.js +2 -2
- package/modules/series-label.src.js +3 -3
- package/modules/series-on-point.js +2 -2
- package/modules/series-on-point.src.js +3 -3
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.src.js +4 -4
- package/modules/sonification.js +2 -2
- package/modules/sonification.src.js +12 -15
- package/modules/static-scale.js +2 -2
- package/modules/static-scale.src.js +3 -3
- package/modules/stock-tools.d.ts +15 -1
- package/modules/stock-tools.js +2 -2
- package/modules/stock-tools.src.d.ts +15 -1
- package/modules/stock-tools.src.js +178 -70
- package/modules/stock.js +2 -2
- package/modules/stock.src.js +160 -73
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.src.js +3 -3
- package/modules/sunburst.d.ts +40 -0
- package/modules/sunburst.js +2 -2
- package/modules/sunburst.src.d.ts +40 -0
- package/modules/sunburst.src.js +269 -58
- package/modules/textpath.d.ts +58 -0
- package/modules/textpath.js +7 -0
- package/modules/textpath.src.d.ts +58 -0
- package/modules/textpath.src.js +269 -0
- package/modules/tiledwebmap.js +3 -3
- package/modules/tiledwebmap.src.js +3 -3
- package/modules/tilemap.js +2 -2
- package/modules/tilemap.src.js +6 -6
- package/modules/timeline.js +2 -2
- package/modules/timeline.src.js +3 -3
- package/modules/treegraph.d.ts +40 -0
- package/modules/treegraph.js +2 -2
- package/modules/treegraph.src.d.ts +40 -0
- package/modules/treegraph.src.js +253 -9
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.src.js +4 -4
- package/modules/treemap.js +2 -2
- package/modules/treemap.src.js +35 -50
- package/modules/variable-pie.js +2 -2
- package/modules/variable-pie.src.js +5 -5
- package/modules/variwide.js +2 -2
- package/modules/variwide.src.js +4 -4
- package/modules/vector.js +2 -2
- package/modules/vector.src.js +4 -4
- package/modules/venn.js +2 -2
- package/modules/venn.src.js +3 -88
- package/modules/windbarb.js +2 -2
- package/modules/windbarb.src.js +5 -5
- package/modules/wordcloud.js +2 -2
- package/modules/wordcloud.src.js +6 -6
- package/modules/xrange.js +2 -2
- package/modules/xrange.src.js +3 -3
- package/options/ad.d.ts +17 -9
- package/options/ad.src.d.ts +17 -9
- package/options/apo.d.ts +17 -9
- package/options/apo.src.d.ts +17 -9
- package/options/arearange.d.ts +17 -9
- package/options/arearange.src.d.ts +17 -9
- package/options/areaspline.d.ts +17 -9
- package/options/areaspline.src.d.ts +17 -9
- package/options/bar.d.ts +17 -9
- package/options/bar.src.d.ts +17 -9
- package/options/bb.d.ts +17 -9
- package/options/bb.src.d.ts +17 -9
- package/options/bubble.d.ts +17 -9
- package/options/bubble.src.d.ts +17 -9
- package/options/candlestick.d.ts +17 -9
- package/options/candlestick.src.d.ts +17 -9
- package/options/cci.d.ts +17 -9
- package/options/cci.src.d.ts +17 -9
- package/options/cmf.d.ts +17 -9
- package/options/cmf.src.d.ts +17 -9
- package/options/column.d.ts +17 -9
- package/options/column.src.d.ts +17 -9
- package/options/columnpyramid.d.ts +17 -9
- package/options/columnpyramid.src.d.ts +17 -9
- package/options/columnrange.d.ts +17 -9
- package/options/columnrange.src.d.ts +17 -9
- package/options/cylinder.d.ts +17 -9
- package/options/cylinder.src.d.ts +17 -9
- package/options/dema.d.ts +17 -9
- package/options/dema.src.d.ts +17 -9
- package/options/dependencywheel.d.ts +17 -9
- package/options/dependencywheel.src.d.ts +17 -9
- package/options/disparityindex.d.ts +17 -9
- package/options/disparityindex.src.d.ts +17 -9
- package/options/dpo.d.ts +17 -9
- package/options/dpo.src.d.ts +17 -9
- package/options/dumbbell.d.ts +17 -9
- package/options/dumbbell.src.d.ts +17 -9
- package/options/ema.d.ts +17 -9
- package/options/ema.src.d.ts +17 -9
- package/options/funnel.d.ts +17 -9
- package/options/funnel.src.d.ts +17 -9
- package/options/gantt.d.ts +16 -8
- package/options/gantt.src.d.ts +16 -8
- package/options/klinger.d.ts +17 -9
- package/options/klinger.src.d.ts +17 -9
- package/options/linearregression.d.ts +17 -9
- package/options/linearregression.src.d.ts +17 -9
- package/options/lollipop.d.ts +17 -9
- package/options/lollipop.src.d.ts +17 -9
- package/options/macd.d.ts +17 -9
- package/options/macd.src.d.ts +17 -9
- package/options/momentum.d.ts +17 -9
- package/options/momentum.src.d.ts +17 -9
- package/options/ohlc.d.ts +17 -9
- package/options/ohlc.src.d.ts +17 -9
- package/options/organization.d.ts +17 -9
- package/options/organization.src.d.ts +17 -9
- package/options/pareto.d.ts +16 -8
- package/options/pareto.src.d.ts +16 -8
- package/options/pc.d.ts +17 -9
- package/options/pc.src.d.ts +17 -9
- package/options/polygon.d.ts +17 -9
- package/options/polygon.src.d.ts +17 -9
- package/options/ppo.d.ts +17 -9
- package/options/ppo.src.d.ts +17 -9
- package/options/psar.d.ts +17 -9
- package/options/psar.src.d.ts +17 -9
- package/options/pyramid.d.ts +17 -9
- package/options/pyramid.src.d.ts +17 -9
- package/options/roc.d.ts +17 -9
- package/options/roc.src.d.ts +17 -9
- package/options/sankey.d.ts +17 -9
- package/options/sankey.src.d.ts +17 -9
- package/options/scatter.d.ts +17 -9
- package/options/scatter.src.d.ts +17 -9
- package/options/series.d.ts +17 -9
- package/options/series.src.d.ts +17 -9
- package/options/sma.d.ts +17 -9
- package/options/sma.src.d.ts +17 -9
- package/options/spline.d.ts +17 -9
- package/options/spline.src.d.ts +17 -9
- package/options/stochastic.d.ts +17 -9
- package/options/stochastic.src.d.ts +17 -9
- package/options/supertrend.d.ts +17 -9
- package/options/supertrend.src.d.ts +17 -9
- package/options/tilemap.d.ts +17 -9
- package/options/tilemap.src.d.ts +17 -9
- package/options/treegraph.d.ts +24 -9
- package/options/treegraph.src.d.ts +24 -9
- package/options/treemap.d.ts +23 -8
- package/options/treemap.src.d.ts +23 -8
- package/options/trendline.d.ts +17 -9
- package/options/trendline.src.d.ts +17 -9
- package/options/variwide.d.ts +17 -9
- package/options/variwide.src.d.ts +17 -9
- package/options/vbp.d.ts +17 -9
- package/options/vbp.src.d.ts +17 -9
- package/options/vector.d.ts +17 -9
- package/options/vector.src.d.ts +17 -9
- package/options/waterfall.d.ts +17 -9
- package/options/waterfall.src.d.ts +17 -9
- package/options/williamsr.d.ts +17 -9
- package/options/williamsr.src.d.ts +17 -9
- package/options/xrange.d.ts +17 -9
- package/options/xrange.src.d.ts +17 -9
- package/package.json +1 -1
- package/standalone-navigator.js +2 -2
- package/standalone-navigator.src.js +3363 -3034
- package/themes/avocado.js +2 -2
- package/themes/avocado.src.js +3 -3
- package/themes/brand-dark.js +2 -2
- package/themes/brand-dark.src.js +3 -3
- package/themes/brand-light.js +2 -2
- package/themes/brand-light.src.js +3 -3
- package/themes/dark-blue.js +2 -2
- package/themes/dark-blue.src.js +3 -3
- package/themes/dark-green.js +2 -2
- package/themes/dark-green.src.js +3 -3
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.src.js +3 -3
- package/themes/gray.js +2 -2
- package/themes/gray.src.js +3 -3
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.src.js +3 -3
- package/themes/grid.js +2 -2
- package/themes/grid.src.js +3 -3
- package/themes/high-contrast-dark.js +2 -2
- package/themes/high-contrast-dark.src.js +3 -3
- package/themes/high-contrast-light.js +2 -2
- package/themes/high-contrast-light.src.js +3 -3
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.src.js +3 -3
- package/themes/skies.js +2 -2
- package/themes/skies.src.js +3 -3
- package/themes/sunset.js +2 -2
- package/themes/sunset.src.js +3 -3
|
@@ -225,7 +225,7 @@ PSARIndicator.defaultOptions = merge(SMAIndicator.defaultOptions, {
|
|
|
225
225
|
* @excluding period
|
|
226
226
|
*/
|
|
227
227
|
params: {
|
|
228
|
-
period: void 0,
|
|
228
|
+
period: void 0, // Unchangeable period, do not inherit (#15362)
|
|
229
229
|
/**
|
|
230
230
|
* The initial value for acceleration factor.
|
|
231
231
|
* Acceleration factor is starting with this value
|
|
@@ -228,7 +228,7 @@ class PivotPointsIndicator extends SMAIndicator {
|
|
|
228
228
|
* @since 6.0.0
|
|
229
229
|
* @product highstock
|
|
230
230
|
* @requires stock/indicators/indicators
|
|
231
|
-
* @requires stock/indicators/
|
|
231
|
+
* @requires stock/indicators/pivot-points
|
|
232
232
|
* @optionparent plotOptions.pivotpoints
|
|
233
233
|
*/
|
|
234
234
|
PivotPointsIndicator.defaultOptions = merge(SMAIndicator.defaultOptions, {
|
|
@@ -236,7 +236,7 @@ PivotPointsIndicator.defaultOptions = merge(SMAIndicator.defaultOptions, {
|
|
|
236
236
|
* @excluding index
|
|
237
237
|
*/
|
|
238
238
|
params: {
|
|
239
|
-
index: void 0,
|
|
239
|
+
index: void 0, // Unchangeable index, do not inherit (#15362)
|
|
240
240
|
period: 28,
|
|
241
241
|
/**
|
|
242
242
|
* Algorithm used to calculate resistance and support lines based
|
|
@@ -289,7 +289,7 @@ export default PivotPointsIndicator;
|
|
|
289
289
|
* @product highstock
|
|
290
290
|
* @excluding dataParser, dataURL
|
|
291
291
|
* @requires stock/indicators/indicators
|
|
292
|
-
* @requires stock/indicators/
|
|
292
|
+
* @requires stock/indicators/pivot-points
|
|
293
293
|
* @apioption series.pivotpoints
|
|
294
294
|
*/
|
|
295
295
|
''; // To include the above in the js output'
|
|
@@ -325,7 +325,7 @@ extend(SMAIndicator.prototype, {
|
|
|
325
325
|
},
|
|
326
326
|
hasDerivedData: true,
|
|
327
327
|
nameComponents: ['period'],
|
|
328
|
-
nameSuffixes: [],
|
|
328
|
+
nameSuffixes: [], // E.g. Zig Zag uses extra '%'' in the legend name
|
|
329
329
|
useCommonDataGrouping: true
|
|
330
330
|
});
|
|
331
331
|
SeriesRegistry.registerSeriesType('sma', SMAIndicator);
|
|
@@ -85,7 +85,7 @@ class SlowStochasticIndicator extends StochasticIndicator {
|
|
|
85
85
|
* @product highstock
|
|
86
86
|
* @requires stock/indicators/indicators
|
|
87
87
|
* @requires stock/indicators/stochastic
|
|
88
|
-
* @requires stock/indicators/
|
|
88
|
+
* @requires stock/indicators/slow-stochastic
|
|
89
89
|
* @optionparent plotOptions.slowstochastic
|
|
90
90
|
*/
|
|
91
91
|
SlowStochasticIndicator.defaultOptions = merge(StochasticIndicator.defaultOptions, {
|
|
@@ -123,7 +123,7 @@ export default SlowStochasticIndicator;
|
|
|
123
123
|
* @product highstock
|
|
124
124
|
* @requires stock/indicators/indicators
|
|
125
125
|
* @requires stock/indicators/stochastic
|
|
126
|
-
* @requires stock/indicators/
|
|
126
|
+
* @requires stock/indicators/slow-stochastic
|
|
127
127
|
* @apioption series.slowstochastic
|
|
128
128
|
*/
|
|
129
129
|
''; // To include the above in the js output
|
|
@@ -80,8 +80,8 @@ class SupertrendIndicator extends SMAIndicator {
|
|
|
80
80
|
},
|
|
81
81
|
// Sorted supertrend points array
|
|
82
82
|
groupedPoints = {
|
|
83
|
-
top: [],
|
|
84
|
-
bottom: [],
|
|
83
|
+
top: [], // Rising trend line points
|
|
84
|
+
bottom: [], // Falling trend line points
|
|
85
85
|
intersect: [] // Change trend line points
|
|
86
86
|
},
|
|
87
87
|
// Options for trend lines
|
|
@@ -372,7 +372,7 @@ SupertrendIndicator.defaultOptions = merge(SMAIndicator.defaultOptions, {
|
|
|
372
372
|
* @excluding index
|
|
373
373
|
*/
|
|
374
374
|
params: {
|
|
375
|
-
index: void 0,
|
|
375
|
+
index: void 0, // Unchangeable index, do not inherit (#15362)
|
|
376
376
|
/**
|
|
377
377
|
* Multiplier for Supertrend Indicator.
|
|
378
378
|
*/
|
|
@@ -97,7 +97,7 @@ TrendLineIndicator.defaultOptions = merge(SMAIndicator.defaultOptions, {
|
|
|
97
97
|
* @excluding period
|
|
98
98
|
*/
|
|
99
99
|
params: {
|
|
100
|
-
period: void 0,
|
|
100
|
+
period: void 0, // Unchangeable period, do not inherit (#15362)
|
|
101
101
|
/**
|
|
102
102
|
* The point index which indicator calculations will base. For
|
|
103
103
|
* example using OHLC data, index=2 means the indicator will be
|
|
@@ -140,7 +140,7 @@ VWAPIndicator.defaultOptions = merge(SMAIndicator.defaultOptions, {
|
|
|
140
140
|
* @excluding index
|
|
141
141
|
*/
|
|
142
142
|
params: {
|
|
143
|
-
index: void 0,
|
|
143
|
+
index: void 0, // Unchangeable index, do not inherit (#15362)
|
|
144
144
|
period: 30,
|
|
145
145
|
/**
|
|
146
146
|
* The id of volume series which is mandatory. For example using
|
|
@@ -17,6 +17,8 @@ const { isTouchDevice } = H;
|
|
|
17
17
|
import NavigatorAxisAdditions from '../../Core/Axis/NavigatorAxisComposition.js';
|
|
18
18
|
import NavigatorComposition from './NavigatorComposition.js';
|
|
19
19
|
import Scrollbar from '../Scrollbar/Scrollbar.js';
|
|
20
|
+
import SVGRenderer from '../../Core/Renderer/SVG/SVGRenderer.js';
|
|
21
|
+
const { prototype: { symbols } } = SVGRenderer;
|
|
20
22
|
import U from '../../Core/Utilities.js';
|
|
21
23
|
const { addEvent, clamp, correctFloat, defined, destroyObjectProperties, erase, extend, find, fireEvent, isArray, isNumber, merge, pick, removeEvent, splat } = U;
|
|
22
24
|
/* *
|
|
@@ -67,6 +69,7 @@ class Navigator {
|
|
|
67
69
|
*
|
|
68
70
|
* */
|
|
69
71
|
constructor(chart) {
|
|
72
|
+
this.isDirty = false;
|
|
70
73
|
this.scrollbarHeight = 0;
|
|
71
74
|
this.init(chart);
|
|
72
75
|
}
|
|
@@ -137,9 +140,9 @@ class Navigator {
|
|
|
137
140
|
],
|
|
138
141
|
// Top right of zoomed range
|
|
139
142
|
['L', left + height, verticalMin],
|
|
140
|
-
['L', left, verticalMin],
|
|
141
|
-
['M', left, zoomedMax],
|
|
142
|
-
['L', left + height, zoomedMax],
|
|
143
|
+
['L', left, verticalMin], // Top left of z.r.
|
|
144
|
+
['M', left, zoomedMax], // Bottom left of z.r.
|
|
145
|
+
['L', left + height, zoomedMax], // Bottom right of z.r.
|
|
143
146
|
[
|
|
144
147
|
'L',
|
|
145
148
|
left + height,
|
|
@@ -177,7 +180,7 @@ class Navigator {
|
|
|
177
180
|
[
|
|
178
181
|
'L',
|
|
179
182
|
left + navigatorSize + scrollButtonSize * 2,
|
|
180
|
-
|
|
183
|
+
lineTop
|
|
181
184
|
]
|
|
182
185
|
];
|
|
183
186
|
if (maskInside) {
|
|
@@ -245,7 +248,7 @@ class Navigator {
|
|
|
245
248
|
});
|
|
246
249
|
}
|
|
247
250
|
/**
|
|
248
|
-
* Generate DOM elements for a navigator:
|
|
251
|
+
* Generate and update DOM elements for a navigator:
|
|
249
252
|
*
|
|
250
253
|
* - main navigator group
|
|
251
254
|
*
|
|
@@ -263,39 +266,40 @@ class Navigator {
|
|
|
263
266
|
cursor: inverted ? 'ns-resize' : 'ew-resize'
|
|
264
267
|
},
|
|
265
268
|
// Create the main navigator group
|
|
266
|
-
navigatorGroup = navigator.navigatorGroup
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
269
|
+
navigatorGroup = navigator.navigatorGroup ??
|
|
270
|
+
(navigator.navigatorGroup = renderer
|
|
271
|
+
.g('navigator')
|
|
272
|
+
.attr({
|
|
273
|
+
zIndex: 8,
|
|
274
|
+
visibility: 'hidden'
|
|
275
|
+
})
|
|
276
|
+
.add());
|
|
273
277
|
// Create masks, each mask will get events and fill:
|
|
274
278
|
[
|
|
275
279
|
!maskInside,
|
|
276
280
|
maskInside,
|
|
277
281
|
!maskInside
|
|
278
282
|
].forEach((hasMask, index) => {
|
|
279
|
-
const shade =
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
const shade = navigator.shades[index] ??
|
|
284
|
+
(navigator.shades[index] = renderer.rect()
|
|
285
|
+
.addClass('highcharts-navigator-mask' +
|
|
286
|
+
(index === 1 ? '-inside' : '-outside'))
|
|
287
|
+
.add(navigatorGroup));
|
|
283
288
|
if (!chart.styledMode) {
|
|
284
289
|
shade.attr({
|
|
285
|
-
fill: hasMask ?
|
|
286
|
-
navigatorOptions.maskFill :
|
|
287
|
-
'rgba(0,0,0,0)'
|
|
290
|
+
fill: hasMask ? navigatorOptions.maskFill : 'rgba(0,0,0,0)'
|
|
288
291
|
});
|
|
289
292
|
if (index === 1) {
|
|
290
293
|
shade.css(mouseCursor);
|
|
291
294
|
}
|
|
292
295
|
}
|
|
293
|
-
navigator.shades[index] = shade;
|
|
294
296
|
});
|
|
295
297
|
// Create the outline:
|
|
296
|
-
navigator.outline
|
|
297
|
-
.
|
|
298
|
-
|
|
298
|
+
if (!navigator.outline) {
|
|
299
|
+
navigator.outline = renderer.path()
|
|
300
|
+
.addClass('highcharts-navigator-outline')
|
|
301
|
+
.add(navigatorGroup);
|
|
302
|
+
}
|
|
299
303
|
if (!chart.styledMode) {
|
|
300
304
|
navigator.outline.attr({
|
|
301
305
|
'stroke-width': navigatorOptions.outlineWidth,
|
|
@@ -303,10 +307,27 @@ class Navigator {
|
|
|
303
307
|
});
|
|
304
308
|
}
|
|
305
309
|
// Create the handlers:
|
|
306
|
-
if (navigatorOptions.handles
|
|
310
|
+
if (navigatorOptions.handles?.enabled) {
|
|
307
311
|
const handlesOptions = navigatorOptions.handles, { height, width } = handlesOptions;
|
|
308
312
|
[0, 1].forEach((index) => {
|
|
309
|
-
|
|
313
|
+
const symbolName = handlesOptions.symbols[index];
|
|
314
|
+
if (!navigator.handles[index]) {
|
|
315
|
+
navigator.handles[index] = renderer.symbol(symbolName, -width / 2 - 1, 0, width, height, handlesOptions);
|
|
316
|
+
// Z index is 6 for right handle, 7 for left. Can't be 10,
|
|
317
|
+
// because of the tooltip in inverted chart (#2908).
|
|
318
|
+
navigator.handles[index].attr({ zIndex: 7 - index })
|
|
319
|
+
.addClass('highcharts-navigator-handle ' +
|
|
320
|
+
'highcharts-navigator-handle-' +
|
|
321
|
+
['left', 'right'][index]).add(navigatorGroup);
|
|
322
|
+
// If the navigator symbol changed, update its path and name
|
|
323
|
+
}
|
|
324
|
+
else if (symbolName !== navigator.handles[index].symbolName) {
|
|
325
|
+
const symbolFn = symbols[symbolName], path = symbolFn.call(symbols, -width / 2 - 1, 0, width, height);
|
|
326
|
+
navigator.handles[index].attr({
|
|
327
|
+
d: path
|
|
328
|
+
});
|
|
329
|
+
navigator.handles[index].symbolName = symbolName;
|
|
330
|
+
}
|
|
310
331
|
if (chart.inverted) {
|
|
311
332
|
navigator.handles[index].attr({
|
|
312
333
|
rotation: 90,
|
|
@@ -314,18 +335,16 @@ class Navigator {
|
|
|
314
335
|
rotationOriginY: (height + width) / 2
|
|
315
336
|
});
|
|
316
337
|
}
|
|
317
|
-
// Z index is 6 for right handle, 7 for left. Can't be 10,
|
|
318
|
-
// because of the tooltip in inverted chart (#2908).
|
|
319
|
-
navigator.handles[index].attr({ zIndex: 7 - index })
|
|
320
|
-
.addClass('highcharts-navigator-handle ' +
|
|
321
|
-
'highcharts-navigator-handle-' +
|
|
322
|
-
['left', 'right'][index]).add(navigatorGroup);
|
|
323
338
|
if (!chart.styledMode) {
|
|
324
339
|
navigator.handles[index]
|
|
325
340
|
.attr({
|
|
326
341
|
fill: handlesOptions.backgroundColor,
|
|
327
342
|
stroke: handlesOptions.borderColor,
|
|
328
|
-
'stroke-width': handlesOptions.lineWidth
|
|
343
|
+
'stroke-width': handlesOptions.lineWidth,
|
|
344
|
+
width: handlesOptions.width,
|
|
345
|
+
height: handlesOptions.height,
|
|
346
|
+
x: -width / 2 - 1,
|
|
347
|
+
y: 0
|
|
329
348
|
})
|
|
330
349
|
.css(mouseCursor);
|
|
331
350
|
}
|
|
@@ -341,18 +360,53 @@ class Navigator {
|
|
|
341
360
|
* @param {Highcharts.NavigatorOptions} options
|
|
342
361
|
* Options to merge in when updating navigator
|
|
343
362
|
*/
|
|
344
|
-
update(options) {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
363
|
+
update(options, redraw = false) {
|
|
364
|
+
const chart = this.chart, invertedUpdate = chart.options.chart.inverted !==
|
|
365
|
+
chart.scrollbar?.options.vertical;
|
|
366
|
+
merge(true, chart.options.navigator, options);
|
|
367
|
+
this.navigatorOptions = chart.options.navigator || {};
|
|
368
|
+
this.setOpposite();
|
|
369
|
+
// Revert to destroy/init for navigator/scrollbar enabled toggle
|
|
370
|
+
if (defined(options.enabled) || invertedUpdate) {
|
|
371
|
+
this.destroy();
|
|
372
|
+
this.navigatorEnabled = options.enabled || this.navigatorEnabled;
|
|
373
|
+
return this.init(chart);
|
|
374
|
+
}
|
|
375
|
+
if (this.navigatorEnabled) {
|
|
376
|
+
this.isDirty = true;
|
|
377
|
+
if (options.adaptToUpdatedData === false) {
|
|
378
|
+
this.baseSeries.forEach((series) => {
|
|
379
|
+
removeEvent(series, 'updatedData', this.updatedDataHandler);
|
|
380
|
+
}, this);
|
|
349
381
|
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
382
|
+
if (options.adaptToUpdatedData) {
|
|
383
|
+
this.baseSeries.forEach((series) => {
|
|
384
|
+
series.eventsToUnbind.push(addEvent(series, 'updatedData', this.updatedDataHandler));
|
|
385
|
+
}, this);
|
|
386
|
+
}
|
|
387
|
+
// Update navigator series
|
|
388
|
+
if (options.series || options.baseSeries) {
|
|
389
|
+
this.setBaseSeries(void 0, false);
|
|
390
|
+
}
|
|
391
|
+
// Update navigator axis
|
|
392
|
+
if (options.height || options.xAxis || options.yAxis) {
|
|
393
|
+
this.height = options.height ?? this.height;
|
|
394
|
+
const offsets = this.getXAxisOffsets();
|
|
395
|
+
this.xAxis.update({
|
|
396
|
+
...options.xAxis,
|
|
397
|
+
offsets,
|
|
398
|
+
[chart.inverted ? 'width' : 'height']: this.height,
|
|
399
|
+
[chart.inverted ? 'height' : 'width']: void 0
|
|
400
|
+
}, false);
|
|
401
|
+
this.yAxis.update({
|
|
402
|
+
...options.yAxis,
|
|
403
|
+
[chart.inverted ? 'width' : 'height']: this.height
|
|
404
|
+
}, false);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
if (redraw) {
|
|
408
|
+
chart.redraw();
|
|
409
|
+
}
|
|
356
410
|
}
|
|
357
411
|
/**
|
|
358
412
|
* Render the navigator
|
|
@@ -375,6 +429,10 @@ class Navigator {
|
|
|
375
429
|
if (this.hasDragged && !defined(pxMin)) {
|
|
376
430
|
return;
|
|
377
431
|
}
|
|
432
|
+
if (this.isDirty) {
|
|
433
|
+
// Update DOM navigator elements
|
|
434
|
+
this.renderElements();
|
|
435
|
+
}
|
|
378
436
|
min = correctFloat(min - pointRange / 2);
|
|
379
437
|
max = correctFloat(max + pointRange / 2);
|
|
380
438
|
// Don't render the navigator until we have data (#486, #4202, #5172).
|
|
@@ -475,6 +533,7 @@ class Navigator {
|
|
|
475
533
|
navigator.zoomedMin / (navigatorSize || 1), navigator.zoomedMax / (navigatorSize || 1));
|
|
476
534
|
}
|
|
477
535
|
navigator.rendered = true;
|
|
536
|
+
this.isDirty = false;
|
|
478
537
|
fireEvent(this, 'afterRender');
|
|
479
538
|
}
|
|
480
539
|
/**
|
|
@@ -809,6 +868,16 @@ class Navigator {
|
|
|
809
868
|
}
|
|
810
869
|
}
|
|
811
870
|
}
|
|
871
|
+
/**
|
|
872
|
+
* Calculate the navigator xAxis offsets
|
|
873
|
+
*
|
|
874
|
+
* @private
|
|
875
|
+
*/
|
|
876
|
+
getXAxisOffsets() {
|
|
877
|
+
return (this.chart.inverted ?
|
|
878
|
+
[this.scrollButtonSize, 0, -this.scrollButtonSize, 0] :
|
|
879
|
+
[0, -this.scrollButtonSize, 0, this.scrollButtonSize]);
|
|
880
|
+
}
|
|
812
881
|
/**
|
|
813
882
|
* Initialize the Navigator object
|
|
814
883
|
*
|
|
@@ -828,11 +897,12 @@ class Navigator {
|
|
|
828
897
|
this.navigatorEnabled = navigatorEnabled;
|
|
829
898
|
this.navigatorOptions = navigatorOptions;
|
|
830
899
|
this.scrollbarOptions = scrollbarOptions;
|
|
831
|
-
this.
|
|
900
|
+
this.setOpposite();
|
|
832
901
|
const navigator = this, baseSeries = navigator.baseSeries, xAxisIndex = chart.xAxis.length, yAxisIndex = chart.yAxis.length, baseXaxis = baseSeries && baseSeries[0] && baseSeries[0].xAxis ||
|
|
833
902
|
chart.xAxis[0] || { options: {} };
|
|
834
903
|
chart.isDirtyBox = true;
|
|
835
904
|
if (navigator.navigatorEnabled) {
|
|
905
|
+
const offsets = this.getXAxisOffsets();
|
|
836
906
|
// An x axis is required for scrollbar also
|
|
837
907
|
navigator.xAxis = new Axis(chart, merge({
|
|
838
908
|
// Inherit base xAxis' break, ordinal options and overscroll
|
|
@@ -844,18 +914,21 @@ class Navigator {
|
|
|
844
914
|
index: xAxisIndex,
|
|
845
915
|
isInternal: true,
|
|
846
916
|
offset: 0,
|
|
847
|
-
keepOrdinalPadding: true,
|
|
917
|
+
keepOrdinalPadding: true, // #2436
|
|
848
918
|
startOnTick: false,
|
|
849
919
|
endOnTick: false,
|
|
850
|
-
|
|
851
|
-
|
|
920
|
+
// Inherit base xAxis' padding when ordinal is false (#16915).
|
|
921
|
+
minPadding: baseXaxis.options.ordinal ? 0 :
|
|
922
|
+
baseXaxis.options.minPadding,
|
|
923
|
+
maxPadding: baseXaxis.options.ordinal ? 0 :
|
|
924
|
+
baseXaxis.options.maxPadding,
|
|
852
925
|
zoomEnabled: false
|
|
853
926
|
}, chart.inverted ? {
|
|
854
|
-
offsets
|
|
927
|
+
offsets,
|
|
855
928
|
width: height
|
|
856
929
|
} : {
|
|
857
|
-
offsets
|
|
858
|
-
height
|
|
930
|
+
offsets,
|
|
931
|
+
height
|
|
859
932
|
}), 'xAxis');
|
|
860
933
|
navigator.yAxis = new Axis(chart, merge(navigatorOptions.yAxis, {
|
|
861
934
|
alignTicks: false,
|
|
@@ -863,7 +936,7 @@ class Navigator {
|
|
|
863
936
|
index: yAxisIndex,
|
|
864
937
|
isInternal: true,
|
|
865
938
|
reversed: pick((navigatorOptions.yAxis &&
|
|
866
|
-
navigatorOptions.yAxis.reversed), (chart.yAxis[0] && chart.yAxis[0].reversed), false),
|
|
939
|
+
navigatorOptions.yAxis.reversed), (chart.yAxis[0] && chart.yAxis[0].reversed), false), // #14060
|
|
867
940
|
zoomEnabled: false
|
|
868
941
|
}, chart.inverted ? {
|
|
869
942
|
width: height
|
|
@@ -938,6 +1011,15 @@ class Navigator {
|
|
|
938
1011
|
// Add redraw events
|
|
939
1012
|
navigator.addChartEvents();
|
|
940
1013
|
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Set the opposite property on navigator
|
|
1016
|
+
*
|
|
1017
|
+
* @private
|
|
1018
|
+
*/
|
|
1019
|
+
setOpposite() {
|
|
1020
|
+
const navigatorOptions = this.navigatorOptions, navigatorEnabled = this.navigatorEnabled, chart = this.chart;
|
|
1021
|
+
this.opposite = pick(navigatorOptions.opposite, Boolean(!navigatorEnabled && chart.inverted)); // #6262
|
|
1022
|
+
}
|
|
941
1023
|
/**
|
|
942
1024
|
* Get the union data extremes of the chart - the outer data extremes of the
|
|
943
1025
|
* base X axis and the navigator axis.
|
|
@@ -1005,14 +1087,14 @@ class Navigator {
|
|
|
1005
1087
|
updateNavigatorSeries(addEvents, redraw) {
|
|
1006
1088
|
const navigator = this, chart = navigator.chart, baseSeries = navigator.baseSeries, navSeriesMixin = {
|
|
1007
1089
|
enableMouseTracking: false,
|
|
1008
|
-
index: null,
|
|
1009
|
-
linkedTo: null,
|
|
1010
|
-
group: 'nav',
|
|
1090
|
+
index: null, // #6162
|
|
1091
|
+
linkedTo: null, // #6734
|
|
1092
|
+
group: 'nav', // For columns
|
|
1011
1093
|
padXAxis: false,
|
|
1012
1094
|
xAxis: this.navigatorOptions.xAxis?.id,
|
|
1013
1095
|
yAxis: this.navigatorOptions.yAxis?.id,
|
|
1014
1096
|
showInLegend: false,
|
|
1015
|
-
stacking: void 0,
|
|
1097
|
+
stacking: void 0, // #4823
|
|
1016
1098
|
isInternal: true,
|
|
1017
1099
|
states: {
|
|
1018
1100
|
inactive: {
|
|
@@ -1167,6 +1249,9 @@ class Navigator {
|
|
|
1167
1249
|
}
|
|
1168
1250
|
// Handle series removal
|
|
1169
1251
|
base.eventsToUnbind.push(addEvent(base, 'remove', function () {
|
|
1252
|
+
if (baseSeries) {
|
|
1253
|
+
erase(baseSeries, base); // #21043
|
|
1254
|
+
}
|
|
1170
1255
|
if (this.navigatorSeries) {
|
|
1171
1256
|
erase(navigator.series, this.navigatorSeries);
|
|
1172
1257
|
if (defined(this.navigatorSeries.options)) {
|
|
@@ -1383,6 +1468,7 @@ class Navigator {
|
|
|
1383
1468
|
[this.handles].forEach((coll) => {
|
|
1384
1469
|
destroyObjectProperties(coll);
|
|
1385
1470
|
});
|
|
1471
|
+
this.navigatorEnabled = false;
|
|
1386
1472
|
}
|
|
1387
1473
|
}
|
|
1388
1474
|
/* *
|
|
@@ -188,7 +188,7 @@ const ScrollbarDefaults = {
|
|
|
188
188
|
*
|
|
189
189
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
190
190
|
*/
|
|
191
|
-
trackBackgroundColor: 'rgba(255, 255, 255, 0.001)',
|
|
191
|
+
trackBackgroundColor: 'rgba(255, 255, 255, 0.001)', // #18922
|
|
192
192
|
/**
|
|
193
193
|
* The color of the border of the scrollbar track.
|
|
194
194
|
*
|