highcharts 10.2.1 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/es-modules/Accessibility/Accessibility.js +1 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +9 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +36 -32
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -16
- package/es-modules/Accessibility/Options/LangDefaults.js +4 -0
- package/es-modules/Core/Axis/Axis.js +42 -32
- package/es-modules/Core/Axis/Axis3DComposition.js +501 -0
- package/es-modules/Core/Axis/Axis3DDefaults.js +130 -0
- package/es-modules/Core/Axis/AxisDefaults.js +20 -7
- package/es-modules/Core/Axis/Color/ColorAxis.js +46 -52
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +4 -2
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +161 -0
- package/es-modules/Core/Axis/OrdinalAxis.js +2 -1
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +1 -1
- package/es-modules/Core/Axis/RadialAxis.js +19 -5
- package/es-modules/Core/Axis/Tick.js +1 -1
- package/es-modules/Core/Axis/Tick3DComposition.js +71 -0
- package/es-modules/Core/Chart/Chart.js +16 -20
- package/es-modules/Core/Chart/Chart3D.js +4 -4
- package/es-modules/Core/Chart/ChartDefaults.js +33 -43
- package/es-modules/Core/Chart/GanttChart.js +1 -1
- package/es-modules/Core/Chart/MapChart.js +1 -1
- package/es-modules/Core/Chart/StockChart.js +11 -28
- package/es-modules/Core/{DefaultOptions.js → Defaults.js} +21 -37
- package/es-modules/Core/FormatUtilities.js +1 -1
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +114 -110
- package/es-modules/Core/Legend/LegendSymbol.js +9 -6
- package/es-modules/Core/MSPointer.js +4 -2
- package/es-modules/Core/Pointer.js +125 -75
- package/es-modules/Core/Renderer/SVG/SVGElement.js +0 -3
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +28 -14
- package/es-modules/Core/Series/DataLabel.js +8 -5
- package/es-modules/Core/Series/Point.js +38 -22
- package/es-modules/Core/Series/Series.js +12 -9
- package/es-modules/Core/Series/SeriesDefaults.js +36 -24
- package/es-modules/Core/Series/SeriesRegistry.js +2 -2
- package/es-modules/Core/Time.js +6 -5
- package/es-modules/Core/Tooltip.js +6 -28
- package/es-modules/Core/Utilities.js +6 -8
- package/es-modules/Extensions/Annotations/Annotation.js +1 -1
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +13 -8
- package/es-modules/Extensions/Annotations/MockPoint.js +2 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +4 -5
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/Popup.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +4 -4
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +1 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +11 -8
- package/es-modules/Extensions/Breadcrumbs.js +2 -2
- package/es-modules/Extensions/Data.js +2 -2
- package/es-modules/Extensions/DataGrouping/ApproximationDefaults.js +157 -0
- package/es-modules/Extensions/DataGrouping/ApproximationRegistry.js +35 -0
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +469 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +174 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +143 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +479 -0
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +6 -2
- package/es-modules/Extensions/Drilldown.js +3 -5
- package/es-modules/Extensions/ExportData/ExportData.js +31 -5
- package/es-modules/Extensions/Exporting/Exporting.js +47 -60
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +22 -24
- package/es-modules/Extensions/GeoJSON.js +3 -1
- package/es-modules/Extensions/MarkerClusters.js +1 -1
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +3 -3
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +1 -1
- package/es-modules/Extensions/OldiePolyfills.js +3 -1
- package/es-modules/Extensions/Pane.js +42 -5
- package/es-modules/Extensions/ParallelCoordinates.js +5 -1
- package/es-modules/Extensions/PatternFill.js +10 -10
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +2 -2
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +4 -0
- package/es-modules/Extensions/Sonification/Sonification.js +1 -1
- package/es-modules/Extensions/Themes/Avocado.js +1 -1
- package/es-modules/Extensions/Themes/BrandDark.js +1 -1
- package/es-modules/Extensions/Themes/BrandLight.js +1 -1
- package/es-modules/Extensions/Themes/DarkBlue.js +1 -1
- package/es-modules/Extensions/Themes/DarkGreen.js +1 -1
- package/es-modules/Extensions/Themes/DarkUnica.js +1 -1
- package/es-modules/Extensions/Themes/Gray.js +1 -1
- package/es-modules/Extensions/Themes/Grid.js +1 -1
- package/es-modules/Extensions/Themes/GridLight.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastDark.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastLight.js +1 -1
- package/es-modules/Extensions/Themes/SandSignika.js +1 -1
- package/es-modules/Extensions/Themes/Skies.js +1 -1
- package/es-modules/Extensions/Themes/Sunset.js +1 -1
- package/es-modules/Gantt/Connection.js +5 -5
- package/es-modules/Gantt/Pathfinder.js +6 -6
- package/es-modules/Maps/MapNavigation.js +1 -1
- package/es-modules/Maps/{MapNavigationOptionsDefault.js → MapNavigationDefaults.js} +4 -4
- package/es-modules/Maps/MapViewOptionsDefault.js +4 -4
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +3 -5
- package/es-modules/Series/AreaRange/AreaRangePoint.js +6 -10
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +59 -48
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -1
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +22 -16
- package/es-modules/Series/Bubble/BubbleLegendItem.js +17 -21
- package/es-modules/Series/Candlestick/CandlestickSeries.js +15 -175
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +179 -0
- package/es-modules/Series/Column/ColumnSeries.js +25 -506
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +487 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +40 -36
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +2 -106
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +183 -0
- package/es-modules/Series/DotPlot/DotPlotSeries.js +11 -12
- package/es-modules/Series/DrawPointUtilities.js +2 -14
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +5 -4
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +11 -7
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +19 -136
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +147 -0
- package/es-modules/Series/Flags/FlagsPoint.js +2 -3
- package/es-modules/Series/Flags/FlagsSeries.js +31 -298
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +295 -0
- package/es-modules/Series/Flags/FlagsSymbols.js +96 -71
- package/es-modules/Series/HLC/HLCPoint.js +2 -2
- package/es-modules/Series/HLC/HLCSeries.js +7 -172
- package/es-modules/Series/HLC/HLCSeriesDefaults.js +184 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +3 -0
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -20
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +78 -139
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +102 -0
- package/es-modules/Series/Item/ItemPoint.js +0 -1
- package/es-modules/Series/Item/ItemSeries.js +13 -8
- package/es-modules/Series/Line/LineSeries.js +8 -4
- package/es-modules/Series/Map/MapPoint.js +19 -1
- package/es-modules/Series/Map/MapSeries.js +7 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +4 -0
- package/es-modules/Series/MapPoint/MapPointPoint.js +0 -5
- package/es-modules/Series/MapPoint/MapPointSeries.js +24 -9
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +2 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +2 -0
- package/es-modules/Series/OHLC/OHLCPoint.js +0 -2
- package/es-modules/Series/OHLC/OHLCSeries.js +64 -160
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +151 -0
- package/es-modules/Series/Organization/OrganizationPoint.js +0 -2
- package/es-modules/Series/Organization/OrganizationSeries.js +96 -469
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +415 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -10
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -0
- package/es-modules/Series/PathUtilities.js +74 -0
- package/es-modules/Series/Pie/PieSeries.js +2 -644
- package/es-modules/Series/Pie/PieSeriesDefaults.js +660 -0
- package/es-modules/Series/PolarComposition.js +233 -15
- package/es-modules/Series/Sankey/SankeySeries.js +27 -530
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +522 -0
- package/es-modules/Series/Scatter/ScatterSeries.js +2 -172
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +188 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +12 -182
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +199 -0
- package/es-modules/Series/Sunburst/SunburstNode.js +34 -0
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +3 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -231
- package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +248 -0
- package/es-modules/Series/TreeUtilities.js +1 -2
- package/es-modules/Series/Treegraph/TreegraphLayout.js +338 -0
- package/es-modules/Series/Treegraph/TreegraphLink.js +92 -0
- package/es-modules/Series/Treegraph/TreegraphNode.js +206 -0
- package/es-modules/Series/Treegraph/TreegraphPoint.js +175 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +510 -0
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +231 -0
- package/es-modules/Series/Treemap/TreemapNode.js +48 -0
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -1
- package/es-modules/Series/Treemap/TreemapSeries.js +29 -27
- package/es-modules/Series/Variwide/VariwideComposition.js +70 -26
- package/es-modules/Series/Variwide/VariwidePoint.js +8 -7
- package/es-modules/Series/Variwide/VariwideSeries.js +19 -14
- package/es-modules/Series/Vector/VectorSeries.js +2 -2
- package/es-modules/Series/Venn/VennSeries.js +14 -0
- package/es-modules/Series/Waterfall/WaterfallSeries.js +0 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -2
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +3 -0
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +15 -4
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +21 -18
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +3 -4
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -2
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +6 -7
- package/es-modules/{Core → Stock/Navigator}/Navigator.js +112 -686
- package/es-modules/Stock/Navigator/NavigatorComposition.js +218 -0
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +490 -0
- package/es-modules/Stock/Navigator/NavigatorSymbols.js +44 -0
- package/es-modules/{Extensions → Stock/RangeSelector}/RangeSelector.js +154 -818
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +286 -0
- package/es-modules/Stock/RangeSelector/RangeSelectorDefaults.js +521 -0
- package/es-modules/{Core → Stock/Scrollbar}/Scrollbar.js +4 -4
- package/es-modules/{Core → Stock/Scrollbar}/ScrollbarDefaults.js +1 -1
- package/es-modules/Stock/{StockToolbar.js → StockTools/StockToolbar.js} +2 -2
- package/es-modules/Stock/{StockTools.js → StockTools/StockTools.js} +3 -3
- package/es-modules/Stock/{StockToolsBindings.js → StockTools/StockToolsBindings.js} +3 -3
- package/es-modules/Stock/{StockToolsDefaults.js → StockTools/StockToolsDefaults.js} +4 -4
- package/es-modules/Stock/{StockToolsGui.js → StockTools/StockToolsGui.js} +4 -4
- package/es-modules/Stock/{StockToolsUtilities.js → StockTools/StockToolsUtilities.js} +4 -4
- package/es-modules/masters/highcharts-3d.src.js +3 -5
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +6 -6
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arc-diagram.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +11 -3
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +9 -5
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +5 -2
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +4 -4
- package/es-modules/masters/modules/stock.src.js +17 -11
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegraph.src.js +13 -0
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +5 -2
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/brand-dark.src.js +1 -1
- package/es-modules/masters/themes/brand-light.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +97 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +476 -449
- package/highcharts-gantt.js +811 -808
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +14619 -14112
- package/highcharts-more.d.ts +0 -8
- package/highcharts-more.js +208 -201
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +0 -8
- package/highcharts-more.src.js +679 -289
- package/highcharts.d.ts +30739 -6156
- package/highcharts.js +590 -589
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +30739 -6156
- package/highcharts.src.js +1988 -1799
- package/highmaps.js +759 -757
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2339 -2077
- package/highstock.js +802 -794
- package/highstock.js.map +1 -1
- package/highstock.src.js +12349 -11416
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +4 -3
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +16 -5
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.d.ts +17 -0
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.d.ts +17 -0
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.d.ts +17 -0
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.d.ts +17 -0
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.d.ts +17 -0
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.src.d.ts +17 -0
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +14 -14
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +22 -19
- package/indicators/indicators-all.js +198 -199
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +63 -57
- package/indicators/indicators.js +13 -13
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +1 -15
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.d.ts +17 -0
- package/indicators/klinger.js +12 -12
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.d.ts +17 -0
- package/indicators/klinger.src.js +4 -3
- package/indicators/macd.js +1 -1
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +4 -3
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.d.ts +17 -0
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.d.ts +17 -0
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +2 -2
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +6 -5
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +7 -7
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +4 -3
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +9 -8
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +214 -213
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +991 -835
- package/modules/annotations-advanced.js +16 -16
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +29 -24
- package/modules/annotations.js +91 -91
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +29 -24
- package/modules/arc-diagram.d.ts +17 -0
- package/modules/arc-diagram.js +15 -15
- package/modules/arc-diagram.js.map +1 -1
- package/modules/arc-diagram.src.d.ts +17 -0
- package/modules/arc-diagram.src.js +6 -6
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +19 -19
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +13 -8
- package/modules/boost.js +37 -37
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +13 -8
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +1 -1
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +25 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +77 -58
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +27 -27
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +3 -3
- package/modules/datagrouping.d.ts +31 -0
- package/modules/datagrouping.js +23 -21
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +31 -0
- package/modules/datagrouping.src.js +921 -640
- package/modules/debugger.js +3 -3
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +2 -2
- package/modules/dependency-wheel.js +12 -12
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +191 -108
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +10 -13
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +5 -5
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +7 -3
- package/modules/drilldown.js +37 -37
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +5 -6
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +27 -22
- package/modules/export-data.js +26 -25
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +33 -6
- package/modules/exporting.js +36 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +81 -88
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +221 -219
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +12842 -12524
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +40 -40
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +80 -58
- package/modules/heikinashi.d.ts +17 -0
- package/modules/heikinashi.js +9 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.d.ts +17 -0
- package/modules/heikinashi.src.js +192 -165
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.d.ts +17 -0
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.d.ts +17 -0
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +14 -10
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.js +172 -171
- package/modules/map.js.map +1 -1
- package/modules/map.src.js +194 -121
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +2 -2
- package/modules/networkgraph.js +8 -8
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +5 -6
- package/modules/no-data-to-display.js +4 -4
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +2 -2
- package/modules/offline-exporting.js +4 -4
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +7 -7
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +9 -7
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +5 -5
- package/modules/organization.js +18 -16
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +659 -495
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +10 -10
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +6 -2
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +19 -23
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +11 -11
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.js +33 -32
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +571 -550
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +7 -3
- package/modules/series-on-point.d.ts +17 -0
- package/modules/series-on-point.js +1 -1
- package/modules/series-on-point.src.d.ts +17 -0
- package/modules/series-on-point.src.js +1 -1
- package/modules/solid-gauge.js +11 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +220 -192
- package/modules/sonification.js +2 -2
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +2 -2
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +59 -59
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +19 -21
- package/modules/stock.d.ts +26 -6
- package/modules/stock.js +212 -205
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +26 -6
- package/modules/stock.src.js +11361 -10617
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +75 -73
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +133 -57
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +257 -233
- package/modules/treegraph.d.ts +17 -0
- package/modules/treegraph.js +44 -0
- package/modules/treegraph.js.map +1 -0
- package/modules/treegraph.src.d.ts +17 -0
- package/modules/treegraph.src.js +1829 -0
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +2 -3
- package/modules/treemap.js +54 -53
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +90 -52
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +158 -106
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +3 -3
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +17 -16
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +41 -4
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +6 -15
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +1 -1
- package/themes/avocado.js +2 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +2 -2
- package/themes/brand-dark.d.ts +22 -0
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.d.ts +22 -0
- package/themes/brand-dark.src.js +2 -2
- package/themes/brand-light.d.ts +22 -0
- package/themes/brand-light.js +2 -2
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.d.ts +22 -0
- package/themes/brand-light.src.js +2 -2
- package/themes/dark-blue.js +2 -2
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +2 -2
- package/themes/dark-green.js +2 -2
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +2 -2
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +2 -2
- package/themes/gray.js +2 -2
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +2 -2
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +2 -2
- package/themes/grid.js +2 -2
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +2 -2
- package/themes/high-contrast-dark.d.ts +22 -0
- package/themes/high-contrast-dark.js +2 -2
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.d.ts +22 -0
- package/themes/high-contrast-dark.src.js +2 -2
- package/themes/high-contrast-light.d.ts +22 -0
- package/themes/high-contrast-light.js +2 -2
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.d.ts +22 -0
- package/themes/high-contrast-light.src.js +2 -2
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +2 -2
- package/themes/skies.js +2 -2
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +2 -2
- package/themes/sunset.js +2 -2
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +2 -2
- package/es-modules/Core/Axis/Axis3D.js +0 -612
- package/es-modules/Core/Axis/NavigatorAxis.js +0 -159
- package/es-modules/Core/Axis/Tick3D.js +0 -68
- package/es-modules/Extensions/DataGrouping.js +0 -1177
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -12
|
@@ -23,7 +23,7 @@ var addEvent = U.addEvent, attr = U.attr, css = U.css, defined = U.defined, exte
|
|
|
23
23
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
24
24
|
/**
|
|
25
25
|
* The mouse and touch tracker object. Each {@link Chart} item has one
|
|
26
|
-
*
|
|
26
|
+
* associated Pointer item that can be accessed from the {@link Chart.pointer}
|
|
27
27
|
* property.
|
|
28
28
|
*
|
|
29
29
|
* @class
|
|
@@ -123,6 +123,41 @@ var Pointer = /** @class */ (function () {
|
|
|
123
123
|
pointer[prop] = void 0;
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Calculate attrs for selection marker.
|
|
128
|
+
* @private
|
|
129
|
+
* @function Highcharts.Pointer#getSelectionMarkerAttrs
|
|
130
|
+
* @emits getSelectionMarkerAttrs
|
|
131
|
+
*/
|
|
132
|
+
Pointer.prototype.getSelectionMarkerAttrs = function (chartX, chartY) {
|
|
133
|
+
var _this = this;
|
|
134
|
+
var e = {
|
|
135
|
+
args: { chartX: chartX, chartY: chartY },
|
|
136
|
+
attrs: {},
|
|
137
|
+
shapeType: 'rect'
|
|
138
|
+
};
|
|
139
|
+
fireEvent(this, 'getSelectionMarkerAttrs', e, function (e) {
|
|
140
|
+
var _a = _this, chart = _a.chart, _b = _a.mouseDownX, mouseDownX = _b === void 0 ? 0 : _b, _c = _a.mouseDownY, mouseDownY = _c === void 0 ? 0 : _c, zoomHor = _a.zoomHor, zoomVert = _a.zoomVert, attrs = e.attrs;
|
|
141
|
+
var size;
|
|
142
|
+
attrs.x = chart.plotLeft;
|
|
143
|
+
attrs.y = chart.plotTop;
|
|
144
|
+
attrs.width = zoomHor ? 1 : chart.plotWidth;
|
|
145
|
+
attrs.height = zoomVert ? 1 : chart.plotHeight;
|
|
146
|
+
// Adjust the width of the selection marker
|
|
147
|
+
if (zoomHor) {
|
|
148
|
+
size = chartX - mouseDownX;
|
|
149
|
+
attrs.width = Math.abs(size);
|
|
150
|
+
attrs.x = (size > 0 ? 0 : size) + mouseDownX;
|
|
151
|
+
}
|
|
152
|
+
// Adjust the height of the selection marker
|
|
153
|
+
if (zoomVert) {
|
|
154
|
+
size = chartY - mouseDownY;
|
|
155
|
+
attrs.height = Math.abs(size);
|
|
156
|
+
attrs.y = (size > 0 ? 0 : size) + mouseDownY;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
return e;
|
|
160
|
+
};
|
|
126
161
|
/**
|
|
127
162
|
* Perform a drag operation in response to a mousemove event while the mouse
|
|
128
163
|
* is down.
|
|
@@ -130,17 +165,17 @@ var Pointer = /** @class */ (function () {
|
|
|
130
165
|
* @function Highcharts.Pointer#drag
|
|
131
166
|
*/
|
|
132
167
|
Pointer.prototype.drag = function (e) {
|
|
133
|
-
var chart = this.chart, chartOptions = chart.options.chart,
|
|
168
|
+
var chart = this.chart, chartOptions = chart.options.chart, plotLeft = chart.plotLeft, plotTop = chart.plotTop, plotWidth = chart.plotWidth, plotHeight = chart.plotHeight, mouseDownX = (this.mouseDownX || 0), mouseDownY = (this.mouseDownY || 0), panningEnabled = isObject(chartOptions.panning) ?
|
|
134
169
|
chartOptions.panning && chartOptions.panning.enabled :
|
|
135
170
|
chartOptions.panning, panKey = (chartOptions.panKey && e[chartOptions.panKey + 'Key']);
|
|
136
|
-
var chartX = e.chartX, chartY = e.chartY, clickedInside,
|
|
171
|
+
var chartX = e.chartX, chartY = e.chartY, clickedInside, selectionMarker = this.selectionMarker;
|
|
137
172
|
// If the device supports both touch and mouse (like IE11), and we are
|
|
138
173
|
// touch-dragging inside the plot area, don't handle the mouse event.
|
|
139
174
|
// #4339.
|
|
140
175
|
if (selectionMarker && selectionMarker.touch) {
|
|
141
176
|
return;
|
|
142
177
|
}
|
|
143
|
-
// If the mouse is outside the plot area, adjust to
|
|
178
|
+
// If the mouse is outside the plot area, adjust to coordinates
|
|
144
179
|
// inside to prevent the selection marker from going outside
|
|
145
180
|
if (chartX < plotLeft) {
|
|
146
181
|
chartX = plotLeft;
|
|
@@ -161,6 +196,7 @@ var Pointer = /** @class */ (function () {
|
|
|
161
196
|
clickedInside = chart.isInsidePlot(mouseDownX - plotLeft, mouseDownY - plotTop, {
|
|
162
197
|
visiblePlotOnly: true
|
|
163
198
|
});
|
|
199
|
+
var _a = this.getSelectionMarkerAttrs(chartX, chartY), shapeType = _a.shapeType, attrs = _a.attrs;
|
|
164
200
|
// make a selection
|
|
165
201
|
if ((chart.hasCartesianSeries || chart.mapView) &&
|
|
166
202
|
(this.zoomX || this.zoomY) &&
|
|
@@ -168,36 +204,24 @@ var Pointer = /** @class */ (function () {
|
|
|
168
204
|
!panKey) {
|
|
169
205
|
if (!selectionMarker) {
|
|
170
206
|
this.selectionMarker = selectionMarker =
|
|
171
|
-
chart.renderer
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
207
|
+
chart.renderer[shapeType]();
|
|
208
|
+
selectionMarker
|
|
209
|
+
.attr({
|
|
210
|
+
'class': 'highcharts-selection-marker',
|
|
211
|
+
zIndex: 7
|
|
212
|
+
})
|
|
213
|
+
.add();
|
|
177
214
|
if (!chart.styledMode) {
|
|
178
215
|
selectionMarker.attr({
|
|
179
|
-
fill:
|
|
216
|
+
fill: chartOptions.selectionMarkerFill ||
|
|
180
217
|
color("#335cad" /* Palette.highlightColor80 */)
|
|
181
|
-
.setOpacity(0.25).get()
|
|
218
|
+
.setOpacity(0.25).get()
|
|
182
219
|
});
|
|
183
220
|
}
|
|
184
221
|
}
|
|
185
222
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
size = chartX - mouseDownX;
|
|
189
|
-
selectionMarker.attr({
|
|
190
|
-
width: Math.abs(size),
|
|
191
|
-
x: (size > 0 ? 0 : size) + mouseDownX
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
// adjust the height of the selection marker
|
|
195
|
-
if (selectionMarker && zoomVert) {
|
|
196
|
-
size = chartY - mouseDownY;
|
|
197
|
-
selectionMarker.attr({
|
|
198
|
-
height: Math.abs(size),
|
|
199
|
-
y: (size > 0 ? 0 : size) + mouseDownY
|
|
200
|
-
});
|
|
223
|
+
if (selectionMarker) {
|
|
224
|
+
selectionMarker.attr(attrs);
|
|
201
225
|
}
|
|
202
226
|
// panning
|
|
203
227
|
if (clickedInside &&
|
|
@@ -220,6 +244,27 @@ var Pointer = /** @class */ (function () {
|
|
|
220
244
|
chart.mouseDownX = this.mouseDownX = e.chartX;
|
|
221
245
|
chart.mouseDownY = this.mouseDownY = e.chartY;
|
|
222
246
|
};
|
|
247
|
+
/**
|
|
248
|
+
* Get selection box to calculate extremes
|
|
249
|
+
* @private
|
|
250
|
+
* @function Highcharts.Pointer#getSelectionBox
|
|
251
|
+
* @emits getSelectionBox
|
|
252
|
+
*/
|
|
253
|
+
Pointer.prototype.getSelectionBox = function (marker) {
|
|
254
|
+
var e = {
|
|
255
|
+
args: { marker: marker },
|
|
256
|
+
result: {}
|
|
257
|
+
};
|
|
258
|
+
fireEvent(this, 'getSelectionBox', e, function (e) {
|
|
259
|
+
e.result = {
|
|
260
|
+
x: marker.attr ? +marker.attr('x') : marker.x,
|
|
261
|
+
y: marker.attr ? +marker.attr('y') : marker.y,
|
|
262
|
+
width: marker.attr ? marker.attr('width') : marker.width,
|
|
263
|
+
height: marker.attr ? marker.attr('height') : marker.height
|
|
264
|
+
};
|
|
265
|
+
});
|
|
266
|
+
return e.result;
|
|
267
|
+
};
|
|
223
268
|
/**
|
|
224
269
|
* On mouse up or touch end across the entire document, drop the selection.
|
|
225
270
|
* @private
|
|
@@ -228,11 +273,8 @@ var Pointer = /** @class */ (function () {
|
|
|
228
273
|
Pointer.prototype.drop = function (e) {
|
|
229
274
|
var pointer = this, chart = this.chart, hasPinched = this.hasPinched;
|
|
230
275
|
if (this.selectionMarker) {
|
|
231
|
-
var
|
|
232
|
-
|
|
233
|
-
selectionBox.width, height_1 = selectionBox.attr ?
|
|
234
|
-
selectionBox.attr('height') :
|
|
235
|
-
selectionBox.height, selectionData_1 = {
|
|
276
|
+
var _a = this.getSelectionBox(this.selectionMarker), x_1 = _a.x, y_1 = _a.y, width_1 = _a.width, height_1 = _a.height;
|
|
277
|
+
var selectionData_1 = {
|
|
236
278
|
originalEvent: e,
|
|
237
279
|
xAxis: [],
|
|
238
280
|
yAxis: [],
|
|
@@ -256,7 +298,9 @@ var Pointer = /** @class */ (function () {
|
|
|
256
298
|
yAxis: 'zoomY'
|
|
257
299
|
}[axis.coll]]) &&
|
|
258
300
|
isNumber(x_1) &&
|
|
259
|
-
isNumber(y_1)
|
|
301
|
+
isNumber(y_1) &&
|
|
302
|
+
isNumber(width_1) &&
|
|
303
|
+
isNumber(height_1)) { // #859, #3569
|
|
260
304
|
var horiz = axis.horiz, minPixelPadding = e.type === 'touchend' ?
|
|
261
305
|
axis.minPixelPadding :
|
|
262
306
|
0, // #1207, #3075
|
|
@@ -315,14 +359,6 @@ var Pointer = /** @class */ (function () {
|
|
|
315
359
|
* The point closest to given coordinates.
|
|
316
360
|
*/
|
|
317
361
|
Pointer.prototype.findNearestKDPoint = function (series, shared, e) {
|
|
318
|
-
var chart = this.chart;
|
|
319
|
-
var hoverPoint = chart.hoverPoint;
|
|
320
|
-
var tooltip = chart.tooltip;
|
|
321
|
-
if (hoverPoint &&
|
|
322
|
-
tooltip &&
|
|
323
|
-
tooltip.isStickyOnContact()) {
|
|
324
|
-
return hoverPoint;
|
|
325
|
-
}
|
|
326
362
|
var closest;
|
|
327
363
|
/** @private */
|
|
328
364
|
function sort(p1, p2) {
|
|
@@ -461,10 +497,10 @@ var Pointer = /** @class */ (function () {
|
|
|
461
497
|
* @function Highcharts.Pointer#getHoverData
|
|
462
498
|
*
|
|
463
499
|
* @param {Highcharts.Point|undefined} existingHoverPoint
|
|
464
|
-
* The point
|
|
500
|
+
* The point currently being hovered.
|
|
465
501
|
*
|
|
466
502
|
* @param {Highcharts.Series|undefined} existingHoverSeries
|
|
467
|
-
* The series currently
|
|
503
|
+
* The series currently being hovered.
|
|
468
504
|
*
|
|
469
505
|
* @param {Array<Highcharts.Series>} series
|
|
470
506
|
* All the series in the chart.
|
|
@@ -582,7 +618,7 @@ var Pointer = /** @class */ (function () {
|
|
|
582
618
|
};
|
|
583
619
|
/**
|
|
584
620
|
* Utility to detect whether an element has, or has a parent with, a
|
|
585
|
-
*
|
|
621
|
+
* specific class name. Used on detection of tracker objects and on deciding
|
|
586
622
|
* whether hovering the tooltip should cause the active series to mouse out.
|
|
587
623
|
*
|
|
588
624
|
* @function Highcharts.Pointer#inClass
|
|
@@ -641,7 +677,6 @@ var Pointer = /** @class */ (function () {
|
|
|
641
677
|
* @type {Highcharts.Tooltip}
|
|
642
678
|
*/
|
|
643
679
|
chart.tooltip = new Tooltip(chart, options.tooltip);
|
|
644
|
-
this.followTouchMove = pick(options.tooltip.followTouchMove, true);
|
|
645
680
|
}
|
|
646
681
|
this.setDOMEvents();
|
|
647
682
|
};
|
|
@@ -755,10 +790,6 @@ var Pointer = /** @class */ (function () {
|
|
|
755
790
|
Pointer.prototype.onContainerMouseLeave = function (e) {
|
|
756
791
|
var chart = charts[pick(Pointer.hoverChartIndex, -1)];
|
|
757
792
|
var tooltip = this.chart.tooltip;
|
|
758
|
-
// #14434: tooltip.options.outside
|
|
759
|
-
if (tooltip && tooltip.shouldStickOnContact() && this.inClass(e.relatedTarget, 'highcharts-tooltip-container')) {
|
|
760
|
-
return;
|
|
761
|
-
}
|
|
762
793
|
e = this.normalize(e);
|
|
763
794
|
// #4886, MS Touch end fires mouseleave but with no related target
|
|
764
795
|
if (chart &&
|
|
@@ -786,8 +817,7 @@ var Pointer = /** @class */ (function () {
|
|
|
786
817
|
* @function Highcharts.Pointer#onContainerMouseMove
|
|
787
818
|
*/
|
|
788
819
|
Pointer.prototype.onContainerMouseMove = function (e) {
|
|
789
|
-
var chart = this.chart;
|
|
790
|
-
var pEvt = this.normalize(e);
|
|
820
|
+
var chart = this.chart, tooltip = chart.tooltip, pEvt = this.normalize(e);
|
|
791
821
|
this.setHoverChartIndex();
|
|
792
822
|
// In IE8 we apparently need this returnValue set to false in order to
|
|
793
823
|
// avoid text being selected. But in Chrome, e.returnValue is prevented,
|
|
@@ -805,7 +835,12 @@ var Pointer = /** @class */ (function () {
|
|
|
805
835
|
(this.inClass(pEvt.target, 'highcharts-tracker') ||
|
|
806
836
|
chart.isInsidePlot(pEvt.chartX - chart.plotLeft, pEvt.chartY - chart.plotTop, {
|
|
807
837
|
visiblePlotOnly: true
|
|
808
|
-
}))
|
|
838
|
+
})) &&
|
|
839
|
+
// If the tooltip has stickOnContact enabled, do nothing. This
|
|
840
|
+
// applies regardless of any combinations of the `split` and
|
|
841
|
+
// `useHTML` options.
|
|
842
|
+
!(tooltip &&
|
|
843
|
+
tooltip.shouldStickOnContact(pEvt))) {
|
|
809
844
|
if (this.inClass(pEvt.target, 'highcharts-no-tooltip')) {
|
|
810
845
|
this.reset(false, 0);
|
|
811
846
|
}
|
|
@@ -858,16 +893,16 @@ var Pointer = /** @class */ (function () {
|
|
|
858
893
|
*/
|
|
859
894
|
Pointer.prototype.onDocumentMouseMove = function (e) {
|
|
860
895
|
var chart = this.chart;
|
|
896
|
+
var tooltip = chart.tooltip;
|
|
861
897
|
var chartPosition = this.chartPosition;
|
|
862
898
|
var pEvt = this.normalize(e, chartPosition);
|
|
863
|
-
var tooltip = chart.tooltip;
|
|
864
899
|
// If we're outside, hide the tooltip
|
|
865
900
|
if (chartPosition &&
|
|
866
|
-
(!tooltip ||
|
|
867
|
-
!tooltip.isStickyOnContact()) &&
|
|
868
901
|
!chart.isInsidePlot(pEvt.chartX - chart.plotLeft, pEvt.chartY - chart.plotTop, {
|
|
869
902
|
visiblePlotOnly: true
|
|
870
903
|
}) &&
|
|
904
|
+
!(tooltip &&
|
|
905
|
+
tooltip.shouldStickOnContact(pEvt)) &&
|
|
871
906
|
!this.inClass(pEvt.target, 'highcharts-tracker')) {
|
|
872
907
|
this.reset();
|
|
873
908
|
}
|
|
@@ -890,7 +925,8 @@ var Pointer = /** @class */ (function () {
|
|
|
890
925
|
Pointer.prototype.pinch = function (e) {
|
|
891
926
|
var self = this, chart = self.chart, pinchDown = self.pinchDown, touches = (e.touches || []), touchesLength = touches.length, lastValidTouch = self.lastValidTouch, hasZoom = self.hasZoom, transform = {}, fireClickEvent = touchesLength === 1 && ((self.inClass(e.target, 'highcharts-tracker') &&
|
|
892
927
|
chart.runTrackerClick) ||
|
|
893
|
-
self.runChartClick), clip = {}
|
|
928
|
+
self.runChartClick), clip = {}, tooltip = self.chart.tooltip, followTouchMove = touchesLength === 1 &&
|
|
929
|
+
pick((tooltip && tooltip.options.followTouchMove), true);
|
|
894
930
|
var selectionMarker = self.selectionMarker;
|
|
895
931
|
// Don't initiate panning until the user has pinched. This prevents us
|
|
896
932
|
// from blocking page scrolling as users scroll down a long page
|
|
@@ -898,7 +934,7 @@ var Pointer = /** @class */ (function () {
|
|
|
898
934
|
if (touchesLength > 1) {
|
|
899
935
|
self.initiated = true;
|
|
900
936
|
}
|
|
901
|
-
else if (
|
|
937
|
+
else if (followTouchMove) {
|
|
902
938
|
// #16119: Prevent blocking scroll when single-finger panning is
|
|
903
939
|
// not enabled
|
|
904
940
|
self.initiated = false;
|
|
@@ -936,7 +972,7 @@ var Pointer = /** @class */ (function () {
|
|
|
936
972
|
self.res = true; // reset on next move
|
|
937
973
|
// Optionally move the tooltip on touchmove
|
|
938
974
|
}
|
|
939
|
-
else if (
|
|
975
|
+
else if (followTouchMove) {
|
|
940
976
|
this.runPointActions(self.normalize(e));
|
|
941
977
|
// Event type is touchmove, handle panning and pinching
|
|
942
978
|
}
|
|
@@ -1416,6 +1452,23 @@ export default Pointer;
|
|
|
1416
1452
|
* API Declarations
|
|
1417
1453
|
*
|
|
1418
1454
|
* */
|
|
1455
|
+
/**
|
|
1456
|
+
* Chart position and scale.
|
|
1457
|
+
*
|
|
1458
|
+
* @interface Highcharts.ChartPositionObject
|
|
1459
|
+
*/ /**
|
|
1460
|
+
* @name Highcharts.ChartPositionObject#left
|
|
1461
|
+
* @type {number}
|
|
1462
|
+
*/ /**
|
|
1463
|
+
* @name Highcharts.ChartPositionObject#scaleX
|
|
1464
|
+
* @type {number}
|
|
1465
|
+
*/ /**
|
|
1466
|
+
* @name Highcharts.ChartPositionObject#scaleY
|
|
1467
|
+
* @type {number}
|
|
1468
|
+
*/ /**
|
|
1469
|
+
* @name Highcharts.ChartPositionObject#top
|
|
1470
|
+
* @type {number}
|
|
1471
|
+
*/
|
|
1419
1472
|
/**
|
|
1420
1473
|
* One position in relation to an axis.
|
|
1421
1474
|
*
|
|
@@ -1477,44 +1530,41 @@ export default Pointer;
|
|
|
1477
1530
|
*
|
|
1478
1531
|
* @interface Highcharts.SelectDataObject
|
|
1479
1532
|
*/ /**
|
|
1533
|
+
* The selected Axis.
|
|
1480
1534
|
* @name Highcharts.SelectDataObject#axis
|
|
1481
1535
|
* @type {Highcharts.Axis}
|
|
1482
1536
|
*/ /**
|
|
1537
|
+
* The maximum axis value, either automatic or set manually.
|
|
1483
1538
|
* @name Highcharts.SelectDataObject#max
|
|
1484
1539
|
* @type {number}
|
|
1485
1540
|
*/ /**
|
|
1541
|
+
* The minimum axis value, either automatic or set manually.
|
|
1486
1542
|
* @name Highcharts.SelectDataObject#min
|
|
1487
1543
|
* @type {number}
|
|
1488
1544
|
*/
|
|
1489
1545
|
/**
|
|
1490
1546
|
* Object for select events.
|
|
1547
|
+
* The primary axes are `xAxis[0]` and `yAxis[0]`. Remember the unit of a
|
|
1548
|
+
* datetime axis is milliseconds since 1970-01-01 00:00:00.
|
|
1491
1549
|
*
|
|
1492
1550
|
* @interface Highcharts.SelectEventObject
|
|
1493
1551
|
*/ /**
|
|
1552
|
+
* The related browser event.
|
|
1494
1553
|
* @name Highcharts.SelectEventObject#originalEvent
|
|
1495
1554
|
* @type {global.Event}
|
|
1496
1555
|
*/ /**
|
|
1556
|
+
* Indicates a reset event to restore default state.
|
|
1557
|
+
* @name Highcharts.SelectEventObject#resetSelection
|
|
1558
|
+
* @type {boolean|undefined}
|
|
1559
|
+
*/ /**
|
|
1560
|
+
* Arrays containing the axes of each dimension and each axis' min and max
|
|
1561
|
+
* values.
|
|
1497
1562
|
* @name Highcharts.SelectEventObject#xAxis
|
|
1498
1563
|
* @type {Array<Highcharts.SelectDataObject>}
|
|
1499
1564
|
*/ /**
|
|
1565
|
+
* Arrays containing the axes of each dimension and each axis' min and max
|
|
1566
|
+
* values.
|
|
1500
1567
|
* @name Highcharts.SelectEventObject#yAxis
|
|
1501
1568
|
* @type {Array<Highcharts.SelectDataObject>}
|
|
1502
1569
|
*/
|
|
1503
|
-
/**
|
|
1504
|
-
* Chart position and scale.
|
|
1505
|
-
*
|
|
1506
|
-
* @interface Highcharts.ChartPositionObject
|
|
1507
|
-
*/ /**
|
|
1508
|
-
* @name Highcharts.ChartPositionObject#left
|
|
1509
|
-
* @type {number}
|
|
1510
|
-
*/ /**
|
|
1511
|
-
* @name Highcharts.ChartPositionObject#scaleX
|
|
1512
|
-
* @type {number}
|
|
1513
|
-
*/ /**
|
|
1514
|
-
* @name Highcharts.ChartPositionObject#scaleY
|
|
1515
|
-
* @type {number}
|
|
1516
|
-
*/ /**
|
|
1517
|
-
* @name Highcharts.ChartPositionObject#top
|
|
1518
|
-
* @type {number}
|
|
1519
|
-
*/
|
|
1520
1570
|
''; // keeps doclets above in JS file
|
|
@@ -395,9 +395,6 @@ var SVGElement = /** @class */ (function () {
|
|
|
395
395
|
var strokeWidth = parts[0];
|
|
396
396
|
if (strokeWidth && strokeWidth !== 'none' && H.svg) {
|
|
397
397
|
this.fakeTS = true; // Fake text shadow
|
|
398
|
-
// In order to get the right y position of the clone,
|
|
399
|
-
// copy over the y setter
|
|
400
|
-
this.ySetter = this.xSetter;
|
|
401
398
|
// Since the stroke is applied on center of the actual outline, we
|
|
402
399
|
// need to double it to get the correct stroke-width outside the
|
|
403
400
|
// glyphs.
|
|
@@ -193,7 +193,7 @@ var SVGRenderer = /** @class */ (function () {
|
|
|
193
193
|
this.url = this.getReferenceURL();
|
|
194
194
|
// Add description
|
|
195
195
|
var desc = this.createElement('desc').add();
|
|
196
|
-
desc.element.appendChild(doc.createTextNode('Created with Highcharts 10.
|
|
196
|
+
desc.element.appendChild(doc.createTextNode('Created with Highcharts 10.3.1'));
|
|
197
197
|
renderer.defs = this.createElement('defs').add();
|
|
198
198
|
renderer.allowHTML = allowHTML;
|
|
199
199
|
renderer.forExport = forExport;
|
|
@@ -573,7 +573,7 @@ var SVGRenderer = /** @class */ (function () {
|
|
|
573
573
|
disabledStyle = disabledState.style;
|
|
574
574
|
delete disabledState.style;
|
|
575
575
|
}
|
|
576
|
-
// Add the events. IE9 and IE10 need mouseover and mouseout to
|
|
576
|
+
// Add the events. IE9 and IE10 need mouseover and mouseout to function
|
|
577
577
|
// (#667).
|
|
578
578
|
addEvent(label.element, isMS ? 'mouseover' : 'mouseenter', function () {
|
|
579
579
|
if (curState !== 3) {
|
|
@@ -619,6 +619,15 @@ var SVGRenderer = /** @class */ (function () {
|
|
|
619
619
|
label
|
|
620
620
|
.attr(normalState)
|
|
621
621
|
.css(extend({ cursor: 'default' }, normalStyle));
|
|
622
|
+
// HTML labels don't need to handle pointer events because click and
|
|
623
|
+
// mouseenter/mouseleave is bound to the underlying <g> element.
|
|
624
|
+
// Should this be reconsidered, we need more complex logic to share
|
|
625
|
+
// events between the <g> and its <div> counterpart, and avoid
|
|
626
|
+
// triggering mouseenter/mouseleave when hovering from one to the
|
|
627
|
+
// other (#17440).
|
|
628
|
+
if (useHTML) {
|
|
629
|
+
label.text.css({ pointerEvents: 'none' });
|
|
630
|
+
}
|
|
622
631
|
}
|
|
623
632
|
return label
|
|
624
633
|
.on('touchstart', function (e) { return e.stopPropagation(); })
|
|
@@ -1099,9 +1108,11 @@ var SVGRenderer = /** @class */ (function () {
|
|
|
1099
1108
|
*/
|
|
1100
1109
|
['width', 'height'].forEach(function (key) {
|
|
1101
1110
|
img_1[key + 'Setter'] = function (value, key) {
|
|
1102
|
-
var imgSize = this['img' + key];
|
|
1103
1111
|
this[key] = value;
|
|
1112
|
+
var _a = this, alignByTranslate = _a.alignByTranslate, element = _a.element, width = _a.width, height = _a.height, imgwidth = _a.imgwidth, imgheight = _a.imgheight;
|
|
1113
|
+
var imgSize = this['img' + key];
|
|
1104
1114
|
if (defined(imgSize)) {
|
|
1115
|
+
var scale = 1;
|
|
1105
1116
|
// Scale and center the image within its container.
|
|
1106
1117
|
// The name `backgroundSize` is taken from the CSS spec,
|
|
1107
1118
|
// but the value `within` is made up. Other possible
|
|
@@ -1109,19 +1120,22 @@ var SVGRenderer = /** @class */ (function () {
|
|
|
1109
1120
|
// implemented if needed.
|
|
1110
1121
|
if (options &&
|
|
1111
1122
|
options.backgroundSize === 'within' &&
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1123
|
+
width &&
|
|
1124
|
+
height) {
|
|
1125
|
+
scale = Math.min(width / imgwidth, height / imgheight);
|
|
1126
|
+
imgSize = Math.round(imgSize * scale);
|
|
1127
|
+
// Update both width and height to keep the ratio
|
|
1128
|
+
// correct (#17315)
|
|
1129
|
+
attr(element, {
|
|
1130
|
+
width: Math.round(imgwidth * scale),
|
|
1131
|
+
height: Math.round(imgheight * scale)
|
|
1132
|
+
});
|
|
1115
1133
|
}
|
|
1116
|
-
if (
|
|
1117
|
-
|
|
1134
|
+
else if (element) {
|
|
1135
|
+
element.setAttribute(key, imgSize);
|
|
1118
1136
|
}
|
|
1119
|
-
if (!
|
|
1120
|
-
|
|
1121
|
-
var attribs = key === 'width' ?
|
|
1122
|
-
{ translateX: translate } :
|
|
1123
|
-
{ translateY: translate };
|
|
1124
|
-
this.attr(attribs);
|
|
1137
|
+
if (!alignByTranslate) {
|
|
1138
|
+
this.translate(((width || 0) - (imgSize * scale)) / 2, ((height || 0) - (imgSize * scale)) / 2);
|
|
1125
1139
|
}
|
|
1126
1140
|
}
|
|
1127
1141
|
};
|
|
@@ -229,8 +229,9 @@ var DataLabel;
|
|
|
229
229
|
* Draw the data labels
|
|
230
230
|
* @private
|
|
231
231
|
*/
|
|
232
|
-
function drawDataLabels() {
|
|
233
|
-
|
|
232
|
+
function drawDataLabels(points) {
|
|
233
|
+
if (points === void 0) { points = this.points; }
|
|
234
|
+
var series = this, chart = series.chart, seriesOptions = series.options, hasRendered = series.hasRendered || 0, renderer = chart.renderer, _a = chart.options.chart, backgroundColor = _a.backgroundColor, plotBackgroundColor = _a.plotBackgroundColor, contrastColor = renderer.getContrast((isString(plotBackgroundColor) && plotBackgroundColor) ||
|
|
234
235
|
(isString(backgroundColor) && backgroundColor) ||
|
|
235
236
|
"#000000" /* Palette.neutralColor100 */);
|
|
236
237
|
var seriesDlOptions = seriesOptions.dataLabels, pointOptions, dataLabelsGroup;
|
|
@@ -408,11 +409,13 @@ var DataLabel;
|
|
|
408
409
|
// read text bounding box
|
|
409
410
|
dataLabel.css(style).shadow(labelOptions.shadow);
|
|
410
411
|
}
|
|
411
|
-
|
|
412
|
+
var textPathOptions = labelOptions[point.formatPrefix + 'TextPath'] ||
|
|
413
|
+
labelOptions.textPath;
|
|
414
|
+
if (textPathOptions && !labelOptions.useHTML) {
|
|
412
415
|
dataLabel.setTextPath((point.getDataLabelPath &&
|
|
413
|
-
point.getDataLabelPath(dataLabel)) || point.graphic,
|
|
416
|
+
point.getDataLabelPath(dataLabel)) || point.graphic, textPathOptions);
|
|
414
417
|
if (point.dataLabelPath &&
|
|
415
|
-
!
|
|
418
|
+
!textPathOptions.enabled) {
|
|
416
419
|
// clean the DOM
|
|
417
420
|
point.dataLabelPath = (point.dataLabelPath.destroy());
|
|
418
421
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import AST from '../Renderer/HTML/AST.js';
|
|
12
12
|
import A from '../Animation/AnimationUtilities.js';
|
|
13
13
|
var animObject = A.animObject;
|
|
14
|
-
import D from '../
|
|
14
|
+
import D from '../Defaults.js';
|
|
15
15
|
var defaultOptions = D.defaultOptions;
|
|
16
16
|
import F from '../FormatUtilities.js';
|
|
17
17
|
var format = F.format;
|
|
@@ -216,7 +216,7 @@ var Point = /** @class */ (function () {
|
|
|
216
216
|
if (pointValKey) {
|
|
217
217
|
point.y = Point.prototype.getNestedProperty.call(point, pointValKey);
|
|
218
218
|
}
|
|
219
|
-
point.isNull =
|
|
219
|
+
point.isNull = this.isValid && !this.isValid();
|
|
220
220
|
point.formatPrefix = point.isNull ? 'null' : 'point'; // #9233, #10874
|
|
221
221
|
// The point is initially selected by options (#5777)
|
|
222
222
|
if (point.selected) {
|
|
@@ -265,7 +265,10 @@ var Point = /** @class */ (function () {
|
|
|
265
265
|
*/
|
|
266
266
|
function destroyPoint() {
|
|
267
267
|
// Remove all events and elements
|
|
268
|
-
if (point.graphic ||
|
|
268
|
+
if (point.graphic ||
|
|
269
|
+
point.graphics ||
|
|
270
|
+
point.dataLabel ||
|
|
271
|
+
point.dataLabels) {
|
|
269
272
|
removeEvent(point);
|
|
270
273
|
point.destroyElements();
|
|
271
274
|
}
|
|
@@ -273,7 +276,8 @@ var Point = /** @class */ (function () {
|
|
|
273
276
|
point[prop] = null;
|
|
274
277
|
}
|
|
275
278
|
}
|
|
276
|
-
if (point.legendItem) {
|
|
279
|
+
if (point.legendItem) {
|
|
280
|
+
// pies have legend items
|
|
277
281
|
chart.legend.destroyItem(point);
|
|
278
282
|
}
|
|
279
283
|
if (hoverPoints) {
|
|
@@ -387,7 +391,7 @@ var Point = /** @class */ (function () {
|
|
|
387
391
|
var prop, i;
|
|
388
392
|
kinds = kinds || { graphic: 1, dataLabel: 1 };
|
|
389
393
|
if (kinds.graphic) {
|
|
390
|
-
props.push('graphic', '
|
|
394
|
+
props.push('graphic', 'shadowGroup');
|
|
391
395
|
}
|
|
392
396
|
if (kinds.dataLabel) {
|
|
393
397
|
props.push('dataLabel', 'dataLabelPath', 'dataLabelUpper', 'connector');
|
|
@@ -399,7 +403,11 @@ var Point = /** @class */ (function () {
|
|
|
399
403
|
graphicalProps.singular.push(prop);
|
|
400
404
|
}
|
|
401
405
|
}
|
|
402
|
-
[
|
|
406
|
+
[
|
|
407
|
+
'graphic',
|
|
408
|
+
'dataLabel',
|
|
409
|
+
'connector'
|
|
410
|
+
].forEach(function (prop) {
|
|
403
411
|
var plural = prop + 's';
|
|
404
412
|
if (kinds[prop] && point[plural]) {
|
|
405
413
|
graphicalProps.plural.push(plural);
|
|
@@ -510,6 +518,14 @@ var Point = /** @class */ (function () {
|
|
|
510
518
|
fireEvent(this, 'afterInit');
|
|
511
519
|
return this;
|
|
512
520
|
};
|
|
521
|
+
/**
|
|
522
|
+
* Determine if point is valid.
|
|
523
|
+
* @private
|
|
524
|
+
* @function Highcharts.Point#isValid
|
|
525
|
+
*/
|
|
526
|
+
Point.prototype.isValid = function () {
|
|
527
|
+
return this.x !== null && isNumber(this.y);
|
|
528
|
+
};
|
|
513
529
|
/**
|
|
514
530
|
* Transform number or array configs into objects. Also called for object
|
|
515
531
|
* configs. Used internally to unify the different configuration formats for
|
|
@@ -644,6 +660,9 @@ var Point = /** @class */ (function () {
|
|
|
644
660
|
}, object);
|
|
645
661
|
return object;
|
|
646
662
|
};
|
|
663
|
+
Point.prototype.shouldDraw = function () {
|
|
664
|
+
return !this.isNull;
|
|
665
|
+
};
|
|
647
666
|
/**
|
|
648
667
|
* Extendable method for formatting each point's tooltip line.
|
|
649
668
|
*
|
|
@@ -719,14 +738,14 @@ var Point = /** @class */ (function () {
|
|
|
719
738
|
function update() {
|
|
720
739
|
point.applyOptions(options);
|
|
721
740
|
// Update visuals, #4146
|
|
722
|
-
// Handle
|
|
723
|
-
var
|
|
741
|
+
// Handle mock graphic elements for a11y, #12718
|
|
742
|
+
var hasMockGraphic = graphic && point.hasMockGraphic;
|
|
724
743
|
var shouldDestroyGraphic = point.y === null ?
|
|
725
|
-
!
|
|
726
|
-
|
|
744
|
+
!hasMockGraphic :
|
|
745
|
+
hasMockGraphic;
|
|
727
746
|
if (graphic && shouldDestroyGraphic) {
|
|
728
747
|
point.graphic = graphic.destroy();
|
|
729
|
-
delete point.
|
|
748
|
+
delete point.hasMockGraphic;
|
|
730
749
|
}
|
|
731
750
|
if (isObject(options, true)) {
|
|
732
751
|
// Destroy so we can get new elements
|
|
@@ -968,8 +987,8 @@ var Point = /** @class */ (function () {
|
|
|
968
987
|
markerAttribs = series.markerAttribs(point, state);
|
|
969
988
|
}
|
|
970
989
|
// Apply hover styles to the existing point
|
|
971
|
-
// Prevent from
|
|
972
|
-
if (point.graphic && !point.
|
|
990
|
+
// Prevent from mocked null points (#14966)
|
|
991
|
+
if (point.graphic && !point.hasMockGraphic) {
|
|
973
992
|
if (previousState) {
|
|
974
993
|
point.graphic.removeClass('highcharts-point-' + previousState);
|
|
975
994
|
}
|
|
@@ -979,21 +998,18 @@ var Point = /** @class */ (function () {
|
|
|
979
998
|
if (!chart.styledMode) {
|
|
980
999
|
pointAttribs = series.pointAttribs(point, state);
|
|
981
1000
|
pointAttribsAnimation = pick(chart.options.chart.animation, stateOptions.animation);
|
|
1001
|
+
var opacity_1 = pointAttribs.opacity;
|
|
982
1002
|
// Some inactive points (e.g. slices in pie) should apply
|
|
983
1003
|
// opacity also for their labels
|
|
984
|
-
if (
|
|
985
|
-
isNumber(pointAttribs.opacity)) {
|
|
1004
|
+
if (isNumber(opacity_1)) {
|
|
986
1005
|
(point.dataLabels || []).forEach(function (label) {
|
|
987
|
-
if (label
|
|
988
|
-
label.
|
|
989
|
-
|
|
990
|
-
}, pointAttribsAnimation);
|
|
1006
|
+
if (label &&
|
|
1007
|
+
!label.hasClass('highcharts-data-label-hidden')) {
|
|
1008
|
+
label.animate({ opacity: opacity_1 }, pointAttribsAnimation);
|
|
991
1009
|
}
|
|
992
1010
|
});
|
|
993
1011
|
if (point.connector) {
|
|
994
|
-
point.connector.animate({
|
|
995
|
-
opacity: pointAttribs.opacity
|
|
996
|
-
}, pointAttribsAnimation);
|
|
1012
|
+
point.connector.animate({ opacity: opacity_1 }, pointAttribsAnimation);
|
|
997
1013
|
}
|
|
998
1014
|
}
|
|
999
1015
|
point.graphic.animate(pointAttribs, pointAttribsAnimation);
|