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
|
@@ -71,8 +71,6 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
71
71
|
_this.chart = void 0;
|
|
72
72
|
_this.coll = 'colorAxis';
|
|
73
73
|
_this.dataClasses = void 0;
|
|
74
|
-
_this.legendItem = void 0;
|
|
75
|
-
_this.legendItems = void 0;
|
|
76
74
|
_this.name = ''; // Prevents 'undefined' in legend in IE8
|
|
77
75
|
_this.options = void 0;
|
|
78
76
|
_this.stops = void 0;
|
|
@@ -137,10 +135,10 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
137
135
|
* @private
|
|
138
136
|
*/
|
|
139
137
|
ColorAxis.prototype.initDataClasses = function (userOptions) {
|
|
140
|
-
var axis = this, chart = axis.chart,
|
|
138
|
+
var axis = this, chart = axis.chart, legendItem = axis.legendItem = axis.legendItem || {}, len = userOptions.dataClasses.length, options = axis.options;
|
|
141
139
|
var dataClasses, colorCounter = 0, colorCount = chart.options.chart.colorCount;
|
|
142
140
|
axis.dataClasses = dataClasses = [];
|
|
143
|
-
|
|
141
|
+
legendItem.labels = [];
|
|
144
142
|
(userOptions.dataClasses || []).forEach(function (dataClass, i) {
|
|
145
143
|
var colors;
|
|
146
144
|
dataClass = merge(dataClass);
|
|
@@ -214,7 +212,7 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
214
212
|
*/
|
|
215
213
|
ColorAxis.prototype.setAxisSize = function () {
|
|
216
214
|
var axis = this;
|
|
217
|
-
var symbol = axis.
|
|
215
|
+
var symbol = axis.legendItem && axis.legendItem.symbol;
|
|
218
216
|
var chart = axis.chart;
|
|
219
217
|
var legendOptions = chart.options.legend || {};
|
|
220
218
|
var x, y, width, height;
|
|
@@ -296,7 +294,7 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
296
294
|
*/
|
|
297
295
|
ColorAxis.prototype.getOffset = function () {
|
|
298
296
|
var axis = this;
|
|
299
|
-
var group = axis.
|
|
297
|
+
var group = axis.legendItem && axis.legendItem.group;
|
|
300
298
|
var sideOffset = axis.chart.axisOffset[axis.side];
|
|
301
299
|
if (group) {
|
|
302
300
|
// Hook for the getOffset method to add groups to this parent
|
|
@@ -350,31 +348,24 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
350
348
|
* @private
|
|
351
349
|
*/
|
|
352
350
|
ColorAxis.prototype.drawLegendSymbol = function (legend, item) {
|
|
353
|
-
var axis = this
|
|
354
|
-
var padding = legend.padding;
|
|
355
|
-
var legendOptions = legend.options;
|
|
356
|
-
var horiz = axis.horiz;
|
|
357
|
-
var width = pick(legendOptions.symbolWidth, horiz ? ColorAxis.defaultLegendLength : 12);
|
|
358
|
-
var height = pick(legendOptions.symbolHeight, horiz ? 12 : ColorAxis.defaultLegendLength);
|
|
359
|
-
var labelPadding = pick(
|
|
351
|
+
var axis = this, legendItem = item.legendItem || {}, padding = legend.padding, legendOptions = legend.options, itemDistance = pick(legendOptions.itemDistance, 10), horiz = axis.horiz, width = pick(legendOptions.symbolWidth, horiz ? ColorAxis.defaultLegendLength : 12), height = pick(legendOptions.symbolHeight, horiz ? 12 : ColorAxis.defaultLegendLength), labelPadding = pick(
|
|
360
352
|
// @todo: This option is not documented, nor implemented when
|
|
361
353
|
// vertical
|
|
362
354
|
legendOptions.labelPadding, horiz ? 16 : 30);
|
|
363
|
-
var itemDistance = pick(legendOptions.itemDistance, 10);
|
|
364
355
|
this.setLegendColor();
|
|
365
356
|
// Create the gradient
|
|
366
|
-
if (!
|
|
367
|
-
|
|
357
|
+
if (!legendItem.symbol) {
|
|
358
|
+
legendItem.symbol = this.chart.renderer.rect(0, legend.baseline - 11, width, height).attr({
|
|
368
359
|
zIndex: 1
|
|
369
|
-
}).add(
|
|
360
|
+
}).add(legendItem.group);
|
|
370
361
|
}
|
|
371
362
|
// Set how much space this legend item takes up
|
|
372
|
-
|
|
363
|
+
legendItem.labelWidth = (width +
|
|
373
364
|
padding +
|
|
374
365
|
(horiz ?
|
|
375
366
|
itemDistance :
|
|
376
367
|
this.options.labels.x + this.maxLabelLength));
|
|
377
|
-
|
|
368
|
+
legendItem.labelHeight = height + padding + (horiz ? labelPadding : 0);
|
|
378
369
|
};
|
|
379
370
|
/**
|
|
380
371
|
* Fool the legend.
|
|
@@ -460,11 +451,7 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
460
451
|
* @emits Highcharts.ColorAxis#event:drawCrosshair
|
|
461
452
|
*/
|
|
462
453
|
ColorAxis.prototype.drawCrosshair = function (e, point) {
|
|
463
|
-
var axis = this;
|
|
464
|
-
var plotX = point && point.plotX;
|
|
465
|
-
var plotY = point && point.plotY;
|
|
466
|
-
var axisPos = axis.pos;
|
|
467
|
-
var axisLen = axis.len;
|
|
454
|
+
var axis = this, legendItem = axis.legendItem || {}, plotX = point && point.plotX, plotY = point && point.plotY, axisPos = axis.pos, axisLen = axis.len;
|
|
468
455
|
var crossPos;
|
|
469
456
|
if (point) {
|
|
470
457
|
crossPos = axis.toPixels(point.getNestedProperty(point.series.colorKey));
|
|
@@ -481,10 +468,10 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
481
468
|
point.plotY = plotY;
|
|
482
469
|
if (axis.cross &&
|
|
483
470
|
!axis.cross.addedToColorAxis &&
|
|
484
|
-
|
|
471
|
+
legendItem.group) {
|
|
485
472
|
axis.cross
|
|
486
473
|
.addClass('highcharts-coloraxis-marker')
|
|
487
|
-
.add(
|
|
474
|
+
.add(legendItem.group);
|
|
488
475
|
axis.cross.addedToColorAxis = true;
|
|
489
476
|
if (!axis.chart.styledMode &&
|
|
490
477
|
typeof axis.crosshair === 'object') {
|
|
@@ -543,7 +530,7 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
543
530
|
axis.destroyItems();
|
|
544
531
|
}
|
|
545
532
|
_super.prototype.update.call(this, newOptions, redraw);
|
|
546
|
-
if (axis.legendItem) {
|
|
533
|
+
if (axis.legendItem && axis.legendItem.label) {
|
|
547
534
|
axis.setLegendColor();
|
|
548
535
|
legend.colorizeItem(this, true);
|
|
549
536
|
}
|
|
@@ -553,15 +540,15 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
553
540
|
* @private
|
|
554
541
|
*/
|
|
555
542
|
ColorAxis.prototype.destroyItems = function () {
|
|
556
|
-
var axis = this;
|
|
557
|
-
|
|
558
|
-
if (axis.legendItem) {
|
|
543
|
+
var axis = this, chart = axis.chart, legendItem = axis.legendItem || {};
|
|
544
|
+
if (legendItem.label) {
|
|
559
545
|
chart.legend.destroyItem(axis);
|
|
560
546
|
}
|
|
561
|
-
else if (
|
|
562
|
-
|
|
547
|
+
else if (legendItem.labels) {
|
|
548
|
+
for (var _i = 0, _a = legendItem.labels; _i < _a.length; _i++) {
|
|
549
|
+
var item = _a[_i];
|
|
563
550
|
chart.legend.destroyItem(item);
|
|
564
|
-
}
|
|
551
|
+
}
|
|
565
552
|
}
|
|
566
553
|
chart.isDirtyLegend = true;
|
|
567
554
|
};
|
|
@@ -588,12 +575,17 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
588
575
|
* @private
|
|
589
576
|
*/
|
|
590
577
|
ColorAxis.prototype.getDataClassLegendSymbols = function () {
|
|
591
|
-
var axis = this
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
var
|
|
595
|
-
|
|
596
|
-
|
|
578
|
+
var axis = this, chart = axis.chart, legendItems = (axis.legendItem &&
|
|
579
|
+
axis.legendItem.labels ||
|
|
580
|
+
[]), legendOptions = chart.options.legend, valueDecimals = pick(legendOptions.valueDecimals, -1), valueSuffix = pick(legendOptions.valueSuffix, '');
|
|
581
|
+
var getPointsInDataClass = function (i) {
|
|
582
|
+
return axis.series.reduce(function (points, s) {
|
|
583
|
+
points.push.apply(points, s.points.filter(function (point) {
|
|
584
|
+
return point.dataClass === i;
|
|
585
|
+
}));
|
|
586
|
+
return points;
|
|
587
|
+
}, []);
|
|
588
|
+
};
|
|
597
589
|
var name;
|
|
598
590
|
if (!legendItems.length) {
|
|
599
591
|
axis.dataClasses.forEach(function (dataClass, i) {
|
|
@@ -624,17 +616,23 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
624
616
|
options: {},
|
|
625
617
|
drawLegendSymbol: LegendSymbol.drawRectangle,
|
|
626
618
|
visible: true,
|
|
627
|
-
setState: noop,
|
|
628
619
|
isDataClass: true,
|
|
620
|
+
// Override setState to set either normal or inactive
|
|
621
|
+
// state to all points in this data class
|
|
622
|
+
setState: function (state) {
|
|
623
|
+
for (var _i = 0, _a = getPointsInDataClass(i); _i < _a.length; _i++) {
|
|
624
|
+
var point = _a[_i];
|
|
625
|
+
point.setState(state);
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
// Override setState to show or hide all points in this
|
|
629
|
+
// data class
|
|
629
630
|
setVisible: function () {
|
|
630
631
|
this.visible = vis = axis.visible = !vis;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
}
|
|
636
|
-
});
|
|
637
|
-
});
|
|
632
|
+
for (var _i = 0, _a = getPointsInDataClass(i); _i < _a.length; _i++) {
|
|
633
|
+
var point = _a[_i];
|
|
634
|
+
point.setVisible(vis);
|
|
635
|
+
}
|
|
638
636
|
chart.legend.colorizeItem(this, vis);
|
|
639
637
|
}
|
|
640
638
|
}, dataClass));
|
|
@@ -653,11 +651,7 @@ var ColorAxis = /** @class */ (function (_super) {
|
|
|
653
651
|
* @private
|
|
654
652
|
*/
|
|
655
653
|
ColorAxis.keepProps = [
|
|
656
|
-
'
|
|
657
|
-
'legendItemHeight',
|
|
658
|
-
'legendItemWidth',
|
|
659
|
-
'legendItem',
|
|
660
|
-
'legendSymbol'
|
|
654
|
+
'legendItem'
|
|
661
655
|
];
|
|
662
656
|
return ColorAxis;
|
|
663
657
|
}(Axis));
|
|
@@ -155,7 +155,7 @@ var ColorAxisComposition;
|
|
|
155
155
|
*/
|
|
156
156
|
function onLegendAfterColorizeItem(e) {
|
|
157
157
|
if (e.visible && e.item.legendColor) {
|
|
158
|
-
e.item.
|
|
158
|
+
e.item.legendItem.symbol.attr({
|
|
159
159
|
fill: e.item.legendColor
|
|
160
160
|
});
|
|
161
161
|
}
|
|
@@ -230,7 +230,9 @@ var ColorAxisComposition;
|
|
|
230
230
|
point.color || series.color);
|
|
231
231
|
if (color && point.color !== color) {
|
|
232
232
|
point.color = color;
|
|
233
|
-
if (series.options.legendType === 'point' &&
|
|
233
|
+
if (series.options.legendType === 'point' &&
|
|
234
|
+
point.legendItem &&
|
|
235
|
+
point.legendItem.label) {
|
|
234
236
|
series.chart.legend.colorizeItem(point, point.visible);
|
|
235
237
|
}
|
|
236
238
|
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2021 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
'use strict';
|
|
11
|
+
import H from '../Globals.js';
|
|
12
|
+
var isTouchDevice = H.isTouchDevice;
|
|
13
|
+
import U from '../Utilities.js';
|
|
14
|
+
var addEvent = U.addEvent, correctFloat = U.correctFloat, defined = U.defined, isNumber = U.isNumber, pick = U.pick;
|
|
15
|
+
/* *
|
|
16
|
+
*
|
|
17
|
+
* Constants
|
|
18
|
+
*
|
|
19
|
+
* */
|
|
20
|
+
var composedClasses = [];
|
|
21
|
+
/* *
|
|
22
|
+
*
|
|
23
|
+
* Functions
|
|
24
|
+
*
|
|
25
|
+
* */
|
|
26
|
+
/**
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
function onAxisInit() {
|
|
30
|
+
var axis = this;
|
|
31
|
+
if (!axis.navigatorAxis) {
|
|
32
|
+
axis.navigatorAxis = new NavigatorAxisAdditions(axis);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* For Stock charts, override selection zooming with some special features
|
|
37
|
+
* because X axis zooming is already allowed by the Navigator and Range
|
|
38
|
+
* selector.
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
function onAxisZoom(e) {
|
|
42
|
+
var axis = this, chart = axis.chart, chartOptions = chart.options, navigator = chartOptions.navigator, navigatorAxis = axis.navigatorAxis, pinchType = chartOptions.chart.zooming.pinchType, rangeSelector = chartOptions.rangeSelector, zoomType = chartOptions.chart.zooming.type;
|
|
43
|
+
if (axis.isXAxis && ((navigator && navigator.enabled) ||
|
|
44
|
+
(rangeSelector && rangeSelector.enabled))) {
|
|
45
|
+
// For y only zooming, ignore the X axis completely
|
|
46
|
+
if (zoomType === 'y') {
|
|
47
|
+
e.zoomed = false;
|
|
48
|
+
// For xy zooming, record the state of the zoom before zoom
|
|
49
|
+
// selection, then when the reset button is pressed, revert to
|
|
50
|
+
// this state. This should apply only if the chart is
|
|
51
|
+
// initialized with a range (#6612), otherwise zoom all the way
|
|
52
|
+
// out.
|
|
53
|
+
}
|
|
54
|
+
else if (((!isTouchDevice && zoomType === 'xy') ||
|
|
55
|
+
(isTouchDevice && pinchType === 'xy')) &&
|
|
56
|
+
axis.options.range) {
|
|
57
|
+
var previousZoom = navigatorAxis.previousZoom;
|
|
58
|
+
if (defined(e.newMin)) {
|
|
59
|
+
navigatorAxis.previousZoom = [axis.min, axis.max];
|
|
60
|
+
}
|
|
61
|
+
else if (previousZoom) {
|
|
62
|
+
e.newMin = previousZoom[0];
|
|
63
|
+
e.newMax = previousZoom[1];
|
|
64
|
+
navigatorAxis.previousZoom = void 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (typeof e.zoomed !== 'undefined') {
|
|
69
|
+
e.preventDefault();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/* *
|
|
73
|
+
*
|
|
74
|
+
* Class
|
|
75
|
+
*
|
|
76
|
+
* */
|
|
77
|
+
/**
|
|
78
|
+
* @private
|
|
79
|
+
* @class
|
|
80
|
+
*/
|
|
81
|
+
var NavigatorAxisAdditions = /** @class */ (function () {
|
|
82
|
+
/* *
|
|
83
|
+
*
|
|
84
|
+
* Constructors
|
|
85
|
+
*
|
|
86
|
+
* */
|
|
87
|
+
function NavigatorAxisAdditions(axis) {
|
|
88
|
+
this.axis = axis;
|
|
89
|
+
}
|
|
90
|
+
/* *
|
|
91
|
+
*
|
|
92
|
+
* Static Functions
|
|
93
|
+
*
|
|
94
|
+
* */
|
|
95
|
+
/**
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
NavigatorAxisAdditions.compose = function (AxisClass) {
|
|
99
|
+
if (composedClasses.indexOf(AxisClass) === -1) {
|
|
100
|
+
composedClasses.push(AxisClass);
|
|
101
|
+
AxisClass.keepProps.push('navigatorAxis');
|
|
102
|
+
addEvent(AxisClass, 'init', onAxisInit);
|
|
103
|
+
addEvent(AxisClass, 'zoom', onAxisZoom);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
/* *
|
|
107
|
+
*
|
|
108
|
+
* Functions
|
|
109
|
+
*
|
|
110
|
+
* */
|
|
111
|
+
/**
|
|
112
|
+
* @private
|
|
113
|
+
*/
|
|
114
|
+
NavigatorAxisAdditions.prototype.destroy = function () {
|
|
115
|
+
this.axis = void 0;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Add logic to normalize the zoomed range in order to preserve the pressed
|
|
119
|
+
* state of range selector buttons
|
|
120
|
+
*
|
|
121
|
+
* @private
|
|
122
|
+
* @function Highcharts.Axis#toFixedRange
|
|
123
|
+
*/
|
|
124
|
+
NavigatorAxisAdditions.prototype.toFixedRange = function (pxMin, pxMax, fixedMin, fixedMax) {
|
|
125
|
+
var axis = this.axis, chart = axis.chart;
|
|
126
|
+
var newMin = pick(fixedMin, axis.translate(pxMin, true, !axis.horiz)), newMax = pick(fixedMax, axis.translate(pxMax, true, !axis.horiz));
|
|
127
|
+
var fixedRange = chart && chart.fixedRange, halfPointRange = (axis.pointRange || 0) / 2, changeRatio = fixedRange && (newMax - newMin) / fixedRange;
|
|
128
|
+
// Add/remove half point range to/from the extremes (#1172)
|
|
129
|
+
if (!defined(fixedMin)) {
|
|
130
|
+
newMin = correctFloat(newMin + halfPointRange);
|
|
131
|
+
}
|
|
132
|
+
if (!defined(fixedMax)) {
|
|
133
|
+
newMax = correctFloat(newMax - halfPointRange);
|
|
134
|
+
}
|
|
135
|
+
// If the difference between the fixed range and the actual requested
|
|
136
|
+
// range is too great, the user is dragging across an ordinal gap, and
|
|
137
|
+
// we need to release the range selector button.
|
|
138
|
+
if (changeRatio > 0.7 && changeRatio < 1.3) {
|
|
139
|
+
if (fixedMax) {
|
|
140
|
+
newMin = newMax - fixedRange;
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
newMax = newMin + fixedRange;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
if (!isNumber(newMin) || !isNumber(newMax)) { // #1195, #7411
|
|
147
|
+
newMin = newMax = void 0;
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
min: newMin,
|
|
151
|
+
max: newMax
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
return NavigatorAxisAdditions;
|
|
155
|
+
}());
|
|
156
|
+
/* *
|
|
157
|
+
*
|
|
158
|
+
* Default Export
|
|
159
|
+
*
|
|
160
|
+
* */
|
|
161
|
+
export default NavigatorAxisAdditions;
|
|
@@ -615,7 +615,8 @@ var OrdinalAxis;
|
|
|
615
615
|
// For an axis with multiple series, check if the distance
|
|
616
616
|
// between points is identical throughout all series.
|
|
617
617
|
if (i > 0 &&
|
|
618
|
-
series.options.id !== 'highcharts-navigator-series'
|
|
618
|
+
series.options.id !== 'highcharts-navigator-series' &&
|
|
619
|
+
series.processedXData.length > 1) {
|
|
619
620
|
adjustOrdinalExtremesPoints =
|
|
620
621
|
distanceBetweenPoint_1 !== series.processedXData[1] -
|
|
621
622
|
series.processedXData[0];
|
|
@@ -108,7 +108,7 @@ var PlotLineOrBand = /** @class */ (function () {
|
|
|
108
108
|
/**
|
|
109
109
|
* SVG element of the plot line or band.
|
|
110
110
|
*
|
|
111
|
-
* @name Highcharts.PlotLineOrBand#
|
|
111
|
+
* @name Highcharts.PlotLineOrBand#svgElem
|
|
112
112
|
* @type {Highcharts.SVGElement}
|
|
113
113
|
*/
|
|
114
114
|
plotLine.svgElem = svgElem = renderer
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
11
|
import AxisDefaults from './AxisDefaults.js';
|
|
12
|
-
import D from '../
|
|
12
|
+
import D from '../Defaults.js';
|
|
13
13
|
var defaultOptions = D.defaultOptions;
|
|
14
14
|
import H from '../Globals.js';
|
|
15
15
|
var noop = H.noop;
|
|
@@ -582,16 +582,31 @@ var RadialAxis;
|
|
|
582
582
|
function onAxisAfterInit() {
|
|
583
583
|
var chart = this.chart, options = this.options, isHidden = chart.angular && this.isXAxis, pane = this.pane, paneOptions = pane && pane.options;
|
|
584
584
|
if (!isHidden && pane && (chart.angular || chart.polar)) {
|
|
585
|
+
var fullCircle = Math.PI * 2,
|
|
585
586
|
// Start and end angle options are given in degrees relative to
|
|
586
587
|
// top, while internal computations are in radians relative to
|
|
587
588
|
// right (like SVG).
|
|
589
|
+
start = (pick(paneOptions.startAngle, 0) - 90) * Math.PI / 180, end = (pick(paneOptions.endAngle, pick(paneOptions.startAngle, 0) + 360) - 90) * Math.PI / 180;
|
|
588
590
|
// Y axis in polar charts
|
|
589
591
|
this.angleRad = (options.angle || 0) * Math.PI / 180;
|
|
590
592
|
// Gauges
|
|
591
|
-
this.startAngleRad =
|
|
592
|
-
|
|
593
|
-
this.endAngleRad = (pick(paneOptions.endAngle, paneOptions.startAngle + 360) - 90) * Math.PI / 180; // Gauges
|
|
593
|
+
this.startAngleRad = start;
|
|
594
|
+
this.endAngleRad = end;
|
|
594
595
|
this.offset = options.offset || 0;
|
|
596
|
+
// Normalize Start and End to <0, 2*PI> range
|
|
597
|
+
// (in degrees: <0,360>)
|
|
598
|
+
var normalizedStart = (start % fullCircle + fullCircle) %
|
|
599
|
+
fullCircle, normalizedEnd = (end % fullCircle + fullCircle) % fullCircle;
|
|
600
|
+
// Move normalized angles to <-PI, PI> range (<-180, 180>)
|
|
601
|
+
// to match values returned by Math.atan2()
|
|
602
|
+
if (normalizedStart > Math.PI) {
|
|
603
|
+
normalizedStart -= fullCircle;
|
|
604
|
+
}
|
|
605
|
+
if (normalizedEnd > Math.PI) {
|
|
606
|
+
normalizedEnd -= fullCircle;
|
|
607
|
+
}
|
|
608
|
+
this.normalizedStartAngleRad = normalizedStart;
|
|
609
|
+
this.normalizedEndAngleRad = normalizedEnd;
|
|
595
610
|
}
|
|
596
611
|
}
|
|
597
612
|
/**
|
|
@@ -661,7 +676,6 @@ var RadialAxis;
|
|
|
661
676
|
// Disable certain features on angular and polar axes
|
|
662
677
|
if (angular || polar) {
|
|
663
678
|
this.isRadial = true;
|
|
664
|
-
chartOptions.chart.zooming.type = null;
|
|
665
679
|
if (!this.labelCollector) {
|
|
666
680
|
this.labelCollector = this.createLabelCollector();
|
|
667
681
|
}
|
|
@@ -156,7 +156,7 @@ var Tick = /** @class */ (function () {
|
|
|
156
156
|
return labelOptions.formatter.call(ctx, ctx);
|
|
157
157
|
}
|
|
158
158
|
if (labelOptions.format) {
|
|
159
|
-
ctx.text = axis.defaultLabelFormatter.call(ctx);
|
|
159
|
+
ctx.text = axis.defaultLabelFormatter.call(ctx, ctx);
|
|
160
160
|
return F.format(labelOptions.format, ctx, chart);
|
|
161
161
|
}
|
|
162
162
|
return axis.defaultLabelFormatter.call(ctx, ctx);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2021 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* Extenstion for 3d axes
|
|
6
|
+
*
|
|
7
|
+
* License: www.highcharts.com/license
|
|
8
|
+
*
|
|
9
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
10
|
+
*
|
|
11
|
+
* */
|
|
12
|
+
'use strict';
|
|
13
|
+
import U from '../Utilities.js';
|
|
14
|
+
var addEvent = U.addEvent, extend = U.extend, wrap = U.wrap;
|
|
15
|
+
/* *
|
|
16
|
+
*
|
|
17
|
+
* Constants
|
|
18
|
+
*
|
|
19
|
+
* */
|
|
20
|
+
var composedClasses = [];
|
|
21
|
+
/* *
|
|
22
|
+
*
|
|
23
|
+
* Functions
|
|
24
|
+
*
|
|
25
|
+
* */
|
|
26
|
+
/**
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
function compose(TickClass) {
|
|
30
|
+
if (composedClasses.indexOf(TickClass) === -1) {
|
|
31
|
+
composedClasses.push(TickClass);
|
|
32
|
+
addEvent(TickClass, 'afterGetLabelPosition', onTickAfterGetLabelPosition);
|
|
33
|
+
wrap(TickClass.prototype, 'getMarkPath', wrapTickGetMarkPath);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
function onTickAfterGetLabelPosition(e) {
|
|
40
|
+
var axis3D = this.axis.axis3D;
|
|
41
|
+
if (axis3D) {
|
|
42
|
+
extend(e.pos, axis3D.fix3dPosition(e.pos));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @private
|
|
47
|
+
*/
|
|
48
|
+
function wrapTickGetMarkPath(proceed) {
|
|
49
|
+
var axis3D = this.axis.axis3D, path = proceed.apply(this, [].slice.call(arguments, 1));
|
|
50
|
+
if (axis3D) {
|
|
51
|
+
var start = path[0];
|
|
52
|
+
var end = path[1];
|
|
53
|
+
if (start[0] === 'M' && end[0] === 'L') {
|
|
54
|
+
var pArr = [
|
|
55
|
+
axis3D.fix3dPosition({ x: start[1], y: start[2], z: 0 }),
|
|
56
|
+
axis3D.fix3dPosition({ x: end[1], y: end[2], z: 0 })
|
|
57
|
+
];
|
|
58
|
+
return this.axis.chart.renderer.toLineSegments(pArr);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return path;
|
|
62
|
+
}
|
|
63
|
+
/* *
|
|
64
|
+
*
|
|
65
|
+
* Default Export
|
|
66
|
+
*
|
|
67
|
+
* */
|
|
68
|
+
var Tick3DAdditions = {
|
|
69
|
+
compose: compose
|
|
70
|
+
};
|
|
71
|
+
export default Tick3DAdditions;
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
import A from '../Animation/AnimationUtilities.js';
|
|
12
12
|
var animate = A.animate, animObject = A.animObject, setAnimation = A.setAnimation;
|
|
13
13
|
import Axis from '../Axis/Axis.js';
|
|
14
|
+
import D from '../Defaults.js';
|
|
15
|
+
var defaultOptions = D.defaultOptions, defaultTime = D.defaultTime;
|
|
14
16
|
import FormatUtilities from '../FormatUtilities.js';
|
|
15
17
|
var numberFormat = FormatUtilities.numberFormat;
|
|
16
18
|
import Foundation from '../Foundation.js';
|
|
@@ -19,8 +21,6 @@ import H from '../Globals.js';
|
|
|
19
21
|
var charts = H.charts, doc = H.doc, marginNames = H.marginNames, svg = H.svg, win = H.win;
|
|
20
22
|
import Legend from '../Legend/Legend.js';
|
|
21
23
|
import MSPointer from '../MSPointer.js';
|
|
22
|
-
import D from '../DefaultOptions.js';
|
|
23
|
-
var defaultOptions = D.defaultOptions, defaultTime = D.defaultTime;
|
|
24
24
|
import Pointer from '../Pointer.js';
|
|
25
25
|
import RendererRegistry from '../Renderer/RendererRegistry.js';
|
|
26
26
|
import SeriesRegistry from '../Series/SeriesRegistry.js';
|
|
@@ -426,10 +426,12 @@ var Chart = /** @class */ (function () {
|
|
|
426
426
|
var series = options.series, box = (options.visiblePlotOnly && scrollablePlotBox) || plotBox, x = options.inverted ? plotY : plotX, y = options.inverted ? plotX : plotY, e = {
|
|
427
427
|
x: x,
|
|
428
428
|
y: y,
|
|
429
|
-
isInsidePlot: true
|
|
429
|
+
isInsidePlot: true,
|
|
430
|
+
options: options
|
|
430
431
|
};
|
|
431
432
|
if (!options.ignoreX) {
|
|
432
|
-
var xAxis = (series &&
|
|
433
|
+
var xAxis = (series &&
|
|
434
|
+
(inverted && !this.polar ? series.yAxis : series.xAxis)) || {
|
|
433
435
|
pos: plotLeft,
|
|
434
436
|
len: Infinity
|
|
435
437
|
};
|
|
@@ -441,7 +443,7 @@ var Chart = /** @class */ (function () {
|
|
|
441
443
|
}
|
|
442
444
|
}
|
|
443
445
|
if (!options.ignoreY && e.isInsidePlot) {
|
|
444
|
-
var yAxis = (series && (inverted ? series.xAxis : series.yAxis)) || {
|
|
446
|
+
var yAxis = (options.axis && !options.axis.isXAxis && options.axis) || (series && (inverted ? series.xAxis : series.yAxis)) || {
|
|
445
447
|
pos: plotTop,
|
|
446
448
|
len: Infinity
|
|
447
449
|
};
|
|
@@ -2566,8 +2568,7 @@ var Chart = /** @class */ (function () {
|
|
|
2566
2568
|
* @param {Highcharts.SelectEventObject} event
|
|
2567
2569
|
*/
|
|
2568
2570
|
Chart.prototype.zoom = function (event) {
|
|
2569
|
-
var chart = this, pointer = chart.pointer
|
|
2570
|
-
pointer.mouseDownX : pointer.mouseDownY;
|
|
2571
|
+
var chart = this, pointer = chart.pointer;
|
|
2571
2572
|
var displayButton = false, hasZoomed;
|
|
2572
2573
|
// If zoom is called with no arguments, reset the axes
|
|
2573
2574
|
if (!event || event.resetSelection) {
|
|
@@ -2578,20 +2579,12 @@ var Chart = /** @class */ (function () {
|
|
|
2578
2579
|
}
|
|
2579
2580
|
else { // else, zoom in on all axes
|
|
2580
2581
|
event.xAxis.concat(event.yAxis).forEach(function (axisData) {
|
|
2581
|
-
var axis = axisData.axis,
|
|
2582
|
-
axisStartPos + axis.width : axisStartPos + axis.height, isXAxis = axis.isXAxis;
|
|
2583
|
-
var isWithinPane = false;
|
|
2584
|
-
// Check if zoomed area is within the pane (#1289).
|
|
2585
|
-
// In case of multiple panes only one pane should be zoomed.
|
|
2586
|
-
if ((!isXAxis &&
|
|
2587
|
-
mouseDownPos >= axisStartPos &&
|
|
2588
|
-
mouseDownPos <= axisEndPos) ||
|
|
2589
|
-
isXAxis ||
|
|
2590
|
-
!defined(mouseDownPos)) {
|
|
2591
|
-
isWithinPane = true;
|
|
2592
|
-
}
|
|
2582
|
+
var axis = axisData.axis, isXAxis = axis.isXAxis;
|
|
2593
2583
|
// don't zoom more than minRange
|
|
2594
|
-
if (pointer[isXAxis ? 'zoomX' : 'zoomY'] &&
|
|
2584
|
+
if (pointer[isXAxis ? 'zoomX' : 'zoomY'] &&
|
|
2585
|
+
(defined(pointer.mouseDownX) &&
|
|
2586
|
+
defined(pointer.mouseDownY) &&
|
|
2587
|
+
chart.isInsidePlot(pointer.mouseDownX - chart.plotLeft, pointer.mouseDownY - chart.plotTop, { axis: axis })) || !defined(chart.inverted ? pointer.mouseDownX : pointer.mouseDownY)) {
|
|
2595
2588
|
hasZoomed = axis.zoom(axisData.min, axisData.max);
|
|
2596
2589
|
if (axis.displayBtn) {
|
|
2597
2590
|
displayButton = true;
|
|
@@ -2921,6 +2914,9 @@ export default Chart;
|
|
|
2921
2914
|
/**
|
|
2922
2915
|
* @interface Highcharts.ChartIsInsideOptionsObject
|
|
2923
2916
|
*/ /**
|
|
2917
|
+
* @name Highcharts.ChartIsInsideOptionsObject#axis
|
|
2918
|
+
* @type {Highcharts.Axis|undefined}
|
|
2919
|
+
*/ /**
|
|
2924
2920
|
* @name Highcharts.ChartIsInsideOptionsObject#ignoreX
|
|
2925
2921
|
* @type {boolean|undefined}
|
|
2926
2922
|
*/ /**
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
'use strict';
|
|
13
13
|
import Color from '../Color/Color.js';
|
|
14
14
|
var color = Color.parse;
|
|
15
|
+
import D from '../Defaults.js';
|
|
16
|
+
var genericDefaultOptions = D.defaultOptions;
|
|
15
17
|
import Math3D from '../Math3D.js';
|
|
16
18
|
var perspective = Math3D.perspective, shapeArea3D = Math3D.shapeArea3D;
|
|
17
|
-
import D from '../DefaultOptions.js';
|
|
18
|
-
var genericDefaultOptions = D.defaultOptions;
|
|
19
19
|
import U from '../Utilities.js';
|
|
20
20
|
var addEvent = U.addEvent, isArray = U.isArray, merge = U.merge, pick = U.pick, wrap = U.wrap;
|
|
21
21
|
var Chart3D;
|
|
@@ -672,8 +672,8 @@ var Chart3D;
|
|
|
672
672
|
addEvent(ChartClass, 'beforeRedraw', onBeforeRedraw);
|
|
673
673
|
addEvent(ChartClass, 'beforeRender', onBeforeRender);
|
|
674
674
|
wrap(chartProto, 'isInsidePlot', wrapIsInsidePlot);
|
|
675
|
-
wrap(
|
|
676
|
-
wrap(
|
|
675
|
+
wrap(chartProto, 'renderSeries', wrapRenderSeries);
|
|
676
|
+
wrap(chartProto, 'setClassName', wrapSetClassName);
|
|
677
677
|
}
|
|
678
678
|
Chart3D.compose = compose;
|
|
679
679
|
/**
|