highcharts 13.0.2 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +6 -2
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +10 -6
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +2 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +25 -1
- package/es-modules/Accessibility/KeyboardNavigation.js +1 -1
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +13 -3
- package/es-modules/Core/Animation/AnimationUtilities.js +7 -2
- package/es-modules/Core/Animation/Fx.js +1 -0
- package/es-modules/Core/Axis/Axis.js +181 -211
- package/es-modules/Core/Axis/Axis3DComposition.js +13 -15
- package/es-modules/Core/Axis/AxisDefaults.js +9 -8
- package/es-modules/Core/Axis/BrokenAxis.js +5 -4
- package/es-modules/Core/Axis/Color/ColorAxis.js +66 -54
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -0
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +6 -4
- package/es-modules/Core/Axis/DateTimeAxis.js +4 -3
- package/es-modules/Core/Axis/GridAxis.js +17 -13
- package/es-modules/Core/Axis/LogarithmicAxis.js +4 -3
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +3 -4
- package/es-modules/Core/Axis/OrdinalAxis.js +0 -15
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +135 -72
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +72 -124
- package/es-modules/Core/Axis/RadialAxis.js +50 -7
- package/es-modules/Core/Axis/ScrollbarAxis.js +3 -0
- package/es-modules/Core/Axis/Stacking/StackItem.js +49 -75
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +34 -22
- package/es-modules/Core/Axis/Tick.js +95 -92
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +9 -13
- package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
- package/es-modules/Core/Chart/Chart.js +13 -4
- package/es-modules/Core/Chart/StockChart.js +20 -26
- package/es-modules/Core/Defaults.js +18 -0
- package/es-modules/Core/Globals.js +9 -7
- package/es-modules/Core/Pointer.js +7 -8
- package/es-modules/Core/Renderer/HTML/AST.js +18 -11
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +5 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +1 -0
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -1
- package/es-modules/Core/Renderer/SVG/Symbols.js +1 -1
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +6 -2
- package/es-modules/Core/Series/OverlappingDataLabels.js +41 -32
- package/es-modules/Core/Series/Point.js +14 -11
- package/es-modules/Core/Series/Series.js +21 -10
- package/es-modules/Core/Tooltip.js +35 -40
- package/es-modules/Data/DataCursor.js +3 -2
- package/es-modules/Data/DataTable.js +21 -2
- package/es-modules/Data/DataTableCore.js +28 -4
- package/es-modules/Data/Formula/FormulaParser.js +30 -10
- package/es-modules/Extensions/Annotations/Annotation.js +5 -7
- package/es-modules/Extensions/Annotations/AnnotationChart.js +2 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +4 -13
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +6 -4
- package/es-modules/Extensions/Breadcrumbs/BreadcrumbsDefaults.js +1 -1
- package/es-modules/Extensions/Data.js +4 -2
- package/es-modules/Extensions/DragPanes/DragPanes.js +6 -9
- package/es-modules/Extensions/Drilldown/Drilldown.js +9 -4
- package/es-modules/Extensions/ExportData/ExportData.js +24 -4
- package/es-modules/Extensions/Pane/Pane.js +1 -1
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +5 -4
- package/es-modules/Extensions/StaticScale.js +13 -11
- package/es-modules/Series/Area/AreaSeriesDefaults.js +1 -1
- package/es-modules/Series/AreaRange/AreaRangeSeriesDefaults.js +1 -1
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +1 -1
- package/es-modules/Series/AreaSplineRange/AreaSplineRangeSeries.js +1 -1
- package/es-modules/Series/Bar/BarSeries.js +1 -1
- package/es-modules/Series/Bellcurve/BellcurveSeriesDefaults.js +1 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +1 -1
- package/es-modules/Series/Bubble/BubbleSeries.js +1 -1
- package/es-modules/Series/Bullet/BulletSeriesDefaults.js +1 -1
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +1 -1
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +6 -3
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeriesDefaults.js +2 -3
- package/es-modules/Series/ColumnRange/ColumnRangeSeriesDefaults.js +1 -1
- package/es-modules/Series/Contour/ContourSeriesDefaults.js +12 -14
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +1 -1
- package/es-modules/Series/Flags/FlagsPoint.js +4 -2
- package/es-modules/Series/Flags/FlagsPointOptions.js +12 -0
- package/es-modules/Series/Flags/FlagsSeries.js +8 -7
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +7 -7
- package/es-modules/Series/Flags/FlagsSeriesOptions.js +12 -0
- package/es-modules/Series/Flags/FlagsSymbols.js +5 -3
- package/es-modules/Series/Funnel/FunnelSeriesDefaults.js +1 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +1 -1
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +1 -1
- package/es-modules/Series/HLC/HLCSeriesDefaults.js +1 -7
- package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +1 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +1 -1
- package/es-modules/Series/Histogram/HistogramSeriesDefaults.js +1 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +1 -1
- package/es-modules/Series/Item/ItemSeriesDefaults.js +1 -1
- package/es-modules/Series/Line/LineSeries.js +0 -1
- package/es-modules/Series/Map/MapSeriesDefaults.js +1 -1
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +0 -1
- package/es-modules/Series/MapLine/MapLineSeriesDefaults.js +1 -1
- package/es-modules/Series/MapPoint/MapPointSeriesDefaults.js +0 -1
- package/es-modules/Series/Networkgraph/ReingoldFruchtermanLayout.js +5 -5
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +0 -1
- package/es-modules/Series/PackedBubble/PackedBubbleChart.js +18 -0
- package/es-modules/Series/PackedBubble/PackedBubbleDataLabelOptions.js +12 -0
- package/es-modules/Series/PackedBubble/PackedBubbleIntegration.js +3 -3
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +2 -2
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubblePointOptions.js +12 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +20 -20
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -2
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesOptions.js +12 -0
- package/es-modules/Series/ParetoSeries/ParetoPoint.js +17 -0
- package/es-modules/Series/ParetoSeries/ParetoPointOptions.js +12 -0
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -3
- package/es-modules/Series/ParetoSeries/ParetoSeriesDefaults.js +1 -1
- package/es-modules/Series/ParetoSeries/ParetoSeriesOptions.js +12 -0
- package/es-modules/Series/PathUtilities.js +3 -1
- package/es-modules/Series/Pictorial/PictorialPointOptions.js +12 -0
- package/es-modules/Series/Pictorial/PictorialSeries.js +5 -25
- package/es-modules/Series/Pictorial/PictorialSeriesDefaults.js +45 -0
- package/es-modules/Series/Pictorial/PictorialSeriesOptions.js +12 -0
- package/es-modules/Series/Pie/PieSeriesDefaults.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DPoint.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +6 -6
- package/es-modules/Series/PolarComposition.js +22 -21
- package/es-modules/Series/Polygon/PolygonPoint.js +17 -0
- package/es-modules/Series/Polygon/PolygonPointOptions.js +12 -0
- package/es-modules/Series/Polygon/PolygonSeriesDefaults.js +1 -1
- package/es-modules/Series/Polygon/PolygonSeriesOptions.js +12 -0
- package/es-modules/Series/Pyramid/PyramidPoint.js +19 -0
- package/es-modules/Series/Pyramid/PyramidPointOptions.js +14 -0
- package/es-modules/Series/Pyramid/PyramidSeries.js +1 -1
- package/es-modules/Series/Pyramid/PyramidSeriesDefaults.js +1 -1
- package/es-modules/Series/Pyramid/PyramidSeriesOptions.js +14 -0
- package/es-modules/Series/Pyramid3D/Pyramid3DPoint.js +19 -0
- package/es-modules/Series/Pyramid3D/Pyramid3DPointOptions.js +14 -0
- package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +1 -1
- package/es-modules/Series/Pyramid3D/Pyramid3DSeriesOptions.js +14 -0
- package/es-modules/Series/Renko/RenkoSeriesDefaults.js +1 -2
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +6 -7
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +1 -1
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +1 -1
- package/es-modules/Series/Spline/SplineSeries.js +1 -1
- package/es-modules/Series/Streamgraph/StreamgraphSeriesDefaults.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +1 -1
- package/es-modules/Series/TiledWebMap/TiledWebMapSeriesDefaults.js +2 -2
- package/es-modules/Series/Tilemap/TilemapSeriesDefaults.js +1 -1
- package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +1 -1
- package/es-modules/Series/Treemap/TreemapSeriesDefaults.js +1 -1
- package/es-modules/Series/VariablePie/VariablePieSeriesDefaults.js +1 -1
- package/es-modules/Series/Variwide/VariwideComposition.js +11 -8
- package/es-modules/Series/Vector/VectorSeriesDefaults.js +1 -1
- package/es-modules/Series/Venn/VennSeriesDefaults.js +1 -1
- package/es-modules/Series/Waterfall/WaterfallSeriesDefaults.js +1 -1
- package/es-modules/Series/Windbarb/WindbarbSeriesDefaults.js +1 -1
- package/es-modules/Shared/Utilities.js +7 -0
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +0 -1
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +0 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -1
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +2 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +0 -1
- package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +0 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +0 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +0 -1
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +3 -3
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +3 -3
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +0 -1
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegressionIndicator.js +0 -1
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngleIndicator.js +0 -1
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionInterceptIndicator.js +0 -1
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopesIndicator.js +0 -1
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +0 -1
- package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +0 -1
- package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +0 -1
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +0 -1
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +0 -1
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +0 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +0 -1
- package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +0 -1
- package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +0 -1
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +0 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -3
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -1
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +1 -1
- package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +0 -1
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +1 -1
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +0 -1
- package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +0 -1
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +5 -5
- package/es-modules/Stock/Navigator/Navigator.js +1 -5
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +38 -8
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +2 -2
- package/es-modules/Stock/Scrollbar/ScrollbarDefaults.js +1 -3
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-autoload.src.js +1 -1
- 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 +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
- package/es-modules/masters/i18n/fr-FR.src.js +1 -1
- package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
- package/es-modules/masters/i18n/nb-NO.src.js +1 -1
- package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
- package/es-modules/masters/i18n/zh-CN.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/contour.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-sorting.src.js +1 -1
- package/es-modules/masters/modules/data-tools.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- 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/flowmap.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 +1 -1
- package/es-modules/masters/modules/geoheatmap.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- 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/mouse-wheel-zoom.src.js +1 -1
- package/es-modules/masters/modules/navigator.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/non-cartesian-zoom.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/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/pictorial.src.js +1 -1
- package/es-modules/masters/modules/pointandfigure.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/renko.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 +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/textpath.src.js +1 -1
- package/es-modules/masters/modules/tiledwebmap.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 +1 -1
- 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 +1 -1
- 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/standalone-navigator.src.js +1 -1
- package/es-modules/masters/themes/adaptive.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/high-contrast.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -1
- package/esm/highcharts-3d.js +2 -2
- package/esm/highcharts-3d.src.js +38 -61
- package/esm/highcharts-autoload.js +2 -2
- package/esm/highcharts-autoload.src.js +18 -39
- package/esm/highcharts-gantt.js +1 -1
- package/esm/highcharts-gantt.src.js +1 -1
- package/esm/highcharts-more.js +2 -2
- package/esm/highcharts-more.src.js +142 -120
- package/esm/highcharts.js +4 -4
- package/esm/highcharts.src.js +824 -750
- package/esm/highmaps.js +1 -1
- package/esm/highmaps.src.js +1 -1
- package/esm/highstock.js +1 -1
- package/esm/highstock.src.js +1 -1
- package/esm/i18n/fr-FR.js +2 -2
- package/esm/i18n/fr-FR.src.js +17 -38
- package/esm/i18n/nb-NO.js +2 -2
- package/esm/i18n/nb-NO.src.js +17 -38
- package/esm/i18n/zh-CN.js +2 -2
- package/esm/i18n/zh-CN.src.js +17 -38
- package/esm/indicators/acceleration-bands.js +2 -2
- package/esm/indicators/acceleration-bands.src.js +18 -39
- package/esm/indicators/accumulation-distribution.js +2 -2
- package/esm/indicators/accumulation-distribution.src.js +17 -39
- package/esm/indicators/ao.js +2 -2
- package/esm/indicators/ao.src.js +18 -39
- package/esm/indicators/apo.js +2 -2
- package/esm/indicators/apo.src.js +18 -39
- package/esm/indicators/aroon-oscillator.js +2 -2
- package/esm/indicators/aroon-oscillator.src.js +19 -40
- package/esm/indicators/aroon.js +2 -2
- package/esm/indicators/aroon.src.js +18 -39
- package/esm/indicators/atr.js +2 -2
- package/esm/indicators/atr.src.js +17 -39
- package/esm/indicators/bollinger-bands.js +2 -2
- package/esm/indicators/bollinger-bands.src.js +17 -39
- package/esm/indicators/cci.js +2 -2
- package/esm/indicators/cci.src.js +17 -39
- package/esm/indicators/chaikin.js +2 -2
- package/esm/indicators/chaikin.src.js +18 -40
- package/esm/indicators/cmf.js +2 -2
- package/esm/indicators/cmf.src.js +17 -39
- package/esm/indicators/cmo.js +2 -2
- package/esm/indicators/cmo.src.js +17 -39
- package/esm/indicators/dema.js +2 -2
- package/esm/indicators/dema.src.js +18 -39
- package/esm/indicators/disparity-index.js +2 -2
- package/esm/indicators/disparity-index.src.js +20 -41
- package/esm/indicators/dmi.js +2 -2
- package/esm/indicators/dmi.src.js +20 -41
- package/esm/indicators/dpo.js +2 -2
- package/esm/indicators/dpo.src.js +18 -39
- package/esm/indicators/ichimoku-kinko-hyo.js +2 -2
- package/esm/indicators/ichimoku-kinko-hyo.src.js +18 -40
- package/esm/indicators/indicators-all.js +2 -2
- package/esm/indicators/indicators-all.src.js +76 -99
- package/esm/indicators/indicators.js +2 -2
- package/esm/indicators/indicators.src.js +48 -46
- package/esm/indicators/keltner-channels.js +2 -2
- package/esm/indicators/keltner-channels.src.js +18 -39
- package/esm/indicators/klinger.js +2 -2
- package/esm/indicators/klinger.src.js +17 -38
- package/esm/indicators/macd.js +2 -2
- package/esm/indicators/macd.src.js +17 -39
- package/esm/indicators/mfi.js +2 -2
- package/esm/indicators/mfi.src.js +17 -39
- package/esm/indicators/momentum.js +2 -2
- package/esm/indicators/momentum.src.js +17 -39
- package/esm/indicators/natr.js +2 -2
- package/esm/indicators/natr.src.js +17 -39
- package/esm/indicators/obv.js +2 -2
- package/esm/indicators/obv.src.js +17 -39
- package/esm/indicators/pivot-points.js +2 -2
- package/esm/indicators/pivot-points.src.js +17 -39
- package/esm/indicators/ppo.js +2 -2
- package/esm/indicators/ppo.src.js +18 -39
- package/esm/indicators/price-channel.js +2 -2
- package/esm/indicators/price-channel.src.js +18 -39
- package/esm/indicators/price-envelopes.js +2 -2
- package/esm/indicators/price-envelopes.src.js +17 -39
- package/esm/indicators/psar.js +2 -2
- package/esm/indicators/psar.src.js +17 -39
- package/esm/indicators/regressions.js +2 -2
- package/esm/indicators/regressions.src.js +17 -42
- package/esm/indicators/roc.js +2 -2
- package/esm/indicators/roc.src.js +17 -39
- package/esm/indicators/rsi.js +2 -2
- package/esm/indicators/rsi.src.js +17 -39
- package/esm/indicators/slow-stochastic.js +2 -2
- package/esm/indicators/slow-stochastic.src.js +17 -38
- package/esm/indicators/stochastic.js +2 -2
- package/esm/indicators/stochastic.src.js +20 -41
- package/esm/indicators/supertrend.js +2 -2
- package/esm/indicators/supertrend.src.js +19 -40
- package/esm/indicators/tema.js +2 -2
- package/esm/indicators/tema.src.js +18 -39
- package/esm/indicators/trendline.js +2 -2
- package/esm/indicators/trendline.src.js +17 -39
- package/esm/indicators/trix.js +2 -2
- package/esm/indicators/trix.src.js +18 -39
- package/esm/indicators/volume-by-price.js +2 -2
- package/esm/indicators/volume-by-price.src.js +18 -39
- package/esm/indicators/vwap.js +2 -2
- package/esm/indicators/vwap.src.js +17 -39
- package/esm/indicators/williams-r.js +2 -2
- package/esm/indicators/williams-r.src.js +18 -39
- package/esm/indicators/wma.js +2 -2
- package/esm/indicators/wma.src.js +17 -39
- package/esm/indicators/zigzag.js +2 -2
- package/esm/indicators/zigzag.src.js +17 -39
- package/esm/modules/accessibility.js +2 -2
- package/esm/modules/accessibility.src.js +90 -76
- package/esm/modules/annotations-advanced.js +3 -3
- package/esm/modules/annotations-advanced.src.js +36 -58
- package/esm/modules/annotations.js +3 -3
- package/esm/modules/annotations.src.js +36 -58
- package/esm/modules/arc-diagram.js +2 -2
- package/esm/modules/arc-diagram.src.js +18 -39
- package/esm/modules/arrow-symbols.js +3 -3
- package/esm/modules/arrow-symbols.src.js +17 -38
- package/esm/modules/boost-canvas.js +2 -2
- package/esm/modules/boost-canvas.src.js +57 -63
- package/esm/modules/boost.js +2 -2
- package/esm/modules/boost.src.js +56 -62
- package/esm/modules/broken-axis.js +2 -2
- package/esm/modules/broken-axis.src.js +21 -41
- package/esm/modules/bullet.js +2 -2
- package/esm/modules/bullet.src.js +18 -39
- package/esm/modules/coloraxis.js +2 -2
- package/esm/modules/coloraxis.src.js +92 -96
- package/esm/modules/contour.js +3 -3
- package/esm/modules/contour.src.js +29 -52
- package/esm/modules/current-date-indicator.js +2 -2
- package/esm/modules/current-date-indicator.src.js +17 -38
- package/esm/modules/cylinder.js +2 -2
- package/esm/modules/cylinder.src.js +18 -39
- package/esm/modules/data-sorting.js +2 -2
- package/esm/modules/data-sorting.src.js +18 -39
- package/esm/modules/data-tools.js +2 -2
- package/esm/modules/data-tools.src.js +110 -67
- package/esm/modules/data.js +4 -4
- package/esm/modules/data.src.js +53 -48
- package/esm/modules/datagrouping.js +2 -2
- package/esm/modules/datagrouping.src.js +52 -48
- package/esm/modules/debugger.js +2 -2
- package/esm/modules/debugger.src.js +17 -38
- package/esm/modules/dependency-wheel.js +2 -2
- package/esm/modules/dependency-wheel.src.js +17 -38
- package/esm/modules/dotplot.js +2 -2
- package/esm/modules/dotplot.src.js +17 -38
- package/esm/modules/drag-panes.js +2 -2
- package/esm/modules/drag-panes.src.js +22 -46
- package/esm/modules/draggable-points.js +2 -2
- package/esm/modules/draggable-points.src.js +17 -38
- package/esm/modules/drilldown.js +2 -2
- package/esm/modules/drilldown.src.js +40 -54
- package/esm/modules/dumbbell.js +2 -2
- package/esm/modules/dumbbell.src.js +18 -39
- package/esm/modules/export-data.js +2 -2
- package/esm/modules/export-data.src.js +42 -43
- package/esm/modules/exporting.js +2 -2
- package/esm/modules/exporting.src.js +26 -47
- package/esm/modules/flowmap.js +2 -2
- package/esm/modules/flowmap.src.js +17 -38
- package/esm/modules/full-screen.js +2 -2
- package/esm/modules/full-screen.src.js +17 -38
- package/esm/modules/funnel.js +2 -2
- package/esm/modules/funnel.src.js +21 -42
- package/esm/modules/funnel3d.js +2 -2
- package/esm/modules/funnel3d.src.js +18 -39
- package/esm/modules/gantt.js +2 -2
- package/esm/modules/gantt.src.js +84 -104
- package/esm/modules/geoheatmap.js +2 -2
- package/esm/modules/geoheatmap.src.js +18 -39
- package/esm/modules/grid-axis.js +2 -2
- package/esm/modules/grid-axis.src.js +34 -51
- package/esm/modules/heatmap.js +2 -2
- package/esm/modules/heatmap.src.js +20 -41
- package/esm/modules/heikinashi.js +2 -2
- package/esm/modules/heikinashi.src.js +18 -39
- package/esm/modules/histogram-bellcurve.js +2 -2
- package/esm/modules/histogram-bellcurve.src.js +19 -40
- package/esm/modules/hollowcandlestick.js +2 -2
- package/esm/modules/hollowcandlestick.src.js +18 -39
- package/esm/modules/item-series.js +2 -2
- package/esm/modules/item-series.src.js +19 -40
- package/esm/modules/lollipop.js +2 -2
- package/esm/modules/lollipop.src.js +18 -39
- package/esm/modules/map.js +2 -2
- package/esm/modules/map.src.js +64 -63
- package/esm/modules/marker-clusters.js +2 -2
- package/esm/modules/marker-clusters.src.js +49 -46
- package/esm/modules/mouse-wheel-zoom.js +2 -2
- package/esm/modules/mouse-wheel-zoom.src.js +17 -38
- package/esm/modules/navigator.js +2 -2
- package/esm/modules/navigator.src.js +72 -67
- package/esm/modules/networkgraph.js +2 -2
- package/esm/modules/networkgraph.src.js +24 -45
- package/esm/modules/no-data-to-display.js +2 -2
- package/esm/modules/no-data-to-display.src.js +17 -38
- package/esm/modules/non-cartesian-zoom.js +2 -2
- package/esm/modules/non-cartesian-zoom.src.js +17 -38
- package/esm/modules/offline-exporting.js +2 -2
- package/esm/modules/offline-exporting.src.js +19 -40
- package/esm/modules/organization.js +2 -2
- package/esm/modules/organization.src.js +20 -39
- package/esm/modules/parallel-coordinates.js +2 -2
- package/esm/modules/parallel-coordinates.src.js +24 -44
- package/esm/modules/pareto.js +2 -2
- package/esm/modules/pareto.src.js +21 -42
- package/esm/modules/pathfinder.js +2 -2
- package/esm/modules/pathfinder.src.js +20 -39
- package/esm/modules/pattern-fill.js +2 -2
- package/esm/modules/pattern-fill.src.js +17 -38
- package/esm/modules/pictorial.js +2 -2
- package/esm/modules/pictorial.src.js +71 -65
- package/esm/modules/pointandfigure.js +2 -2
- package/esm/modules/pointandfigure.src.js +47 -44
- package/esm/modules/price-indicator.js +2 -2
- package/esm/modules/price-indicator.src.js +17 -38
- package/esm/modules/pyramid3d.js +2 -2
- package/esm/modules/pyramid3d.src.js +18 -39
- package/esm/modules/renko.js +2 -2
- package/esm/modules/renko.src.js +18 -40
- package/esm/modules/sankey.js +2 -2
- package/esm/modules/sankey.src.js +24 -46
- package/esm/modules/series-label.js +2 -2
- package/esm/modules/series-label.src.js +17 -38
- package/esm/modules/series-on-point.js +2 -2
- package/esm/modules/series-on-point.src.js +47 -44
- package/esm/modules/solid-gauge.js +2 -2
- package/esm/modules/solid-gauge.src.js +18 -39
- package/esm/modules/sonification.js +2 -2
- package/esm/modules/sonification.src.js +18 -39
- package/esm/modules/static-scale.js +2 -2
- package/esm/modules/static-scale.src.js +30 -49
- package/esm/modules/stock-tools.js +2 -2
- package/esm/modules/stock-tools.src.js +29 -50
- package/esm/modules/stock.js +2 -2
- package/esm/modules/stock.src.js +117 -141
- package/esm/modules/streamgraph.js +2 -2
- package/esm/modules/streamgraph.src.js +18 -39
- package/esm/modules/sunburst.js +2 -2
- package/esm/modules/sunburst.src.js +38 -57
- package/esm/modules/textpath.js +2 -2
- package/esm/modules/textpath.src.js +17 -38
- package/esm/modules/tiledwebmap.js +3 -3
- package/esm/modules/tiledwebmap.src.js +19 -40
- package/esm/modules/tilemap.js +2 -2
- package/esm/modules/tilemap.src.js +22 -40
- package/esm/modules/timeline.js +2 -2
- package/esm/modules/timeline.src.js +19 -40
- package/esm/modules/treegraph.js +2 -2
- package/esm/modules/treegraph.src.js +23 -42
- package/esm/modules/treegrid.js +2 -2
- package/esm/modules/treegrid.src.js +47 -67
- package/esm/modules/treemap.js +2 -2
- package/esm/modules/treemap.src.js +34 -53
- package/esm/modules/variable-pie.js +2 -2
- package/esm/modules/variable-pie.src.js +19 -40
- package/esm/modules/variwide.js +2 -2
- package/esm/modules/variwide.src.js +28 -46
- package/esm/modules/vector.js +2 -2
- package/esm/modules/vector.src.js +18 -39
- package/esm/modules/venn.js +2 -2
- package/esm/modules/venn.src.js +18 -39
- package/esm/modules/windbarb.js +2 -2
- package/esm/modules/windbarb.src.js +18 -39
- package/esm/modules/wordcloud.js +2 -2
- package/esm/modules/wordcloud.src.js +18 -39
- package/esm/modules/xrange.js +2 -2
- package/esm/modules/xrange.src.js +18 -39
- package/esm/standalone-navigator.js +4 -4
- package/esm/standalone-navigator.src.js +876 -776
- package/esm/themes/adaptive.js +2 -2
- package/esm/themes/adaptive.src.js +17 -38
- package/esm/themes/avocado.js +2 -2
- package/esm/themes/avocado.src.js +17 -38
- package/esm/themes/dark-unica.js +2 -2
- package/esm/themes/dark-unica.src.js +17 -38
- package/esm/themes/grid-light.js +2 -2
- package/esm/themes/grid-light.src.js +17 -38
- package/esm/themes/high-contrast.js +2 -2
- package/esm/themes/high-contrast.src.js +17 -38
- package/esm/themes/sand-signika.js +2 -2
- package/esm/themes/sand-signika.src.js +17 -38
- package/esm/themes/sunset.js +2 -2
- package/esm/themes/sunset.src.js +17 -38
- package/highcharts-3d.js +2 -2
- package/highcharts-3d.src.js +43 -66
- package/highcharts-autoload.d.ts +0 -1
- package/highcharts-autoload.js +4 -4
- package/highcharts-autoload.src.d.ts +0 -1
- package/highcharts-autoload.src.js +833 -778
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +895 -839
- package/highcharts-more.d.ts +10 -0
- package/highcharts-more.js +2 -2
- package/highcharts-more.src.d.ts +10 -0
- package/highcharts-more.src.js +147 -125
- package/highcharts.d.ts +2785 -80144
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +2785 -80144
- package/highcharts.src.js +832 -777
- package/highmaps.js +4 -4
- package/highmaps.src.js +915 -845
- package/highstock.js +4 -4
- package/highstock.src.js +903 -874
- package/i18n/fr-FR.js +2 -2
- package/i18n/fr-FR.src.js +26 -37
- package/i18n/nb-NO.js +2 -2
- package/i18n/nb-NO.src.js +26 -37
- package/i18n/zh-CN.js +2 -2
- package/i18n/zh-CN.src.js +26 -37
- package/indicators/acceleration-bands.js +2 -2
- package/indicators/acceleration-bands.src.js +23 -44
- package/indicators/accumulation-distribution.js +2 -2
- package/indicators/accumulation-distribution.src.js +22 -44
- package/indicators/ao.js +2 -2
- package/indicators/ao.src.js +23 -44
- package/indicators/apo.js +2 -2
- package/indicators/apo.src.js +23 -44
- package/indicators/aroon-oscillator.js +2 -2
- package/indicators/aroon-oscillator.src.js +24 -45
- package/indicators/aroon.js +2 -2
- package/indicators/aroon.src.js +23 -44
- package/indicators/atr.js +2 -2
- package/indicators/atr.src.js +22 -44
- package/indicators/bollinger-bands.js +2 -2
- package/indicators/bollinger-bands.src.js +22 -44
- package/indicators/cci.js +2 -2
- package/indicators/cci.src.js +22 -44
- package/indicators/chaikin.js +2 -2
- package/indicators/chaikin.src.js +23 -45
- package/indicators/cmf.js +2 -2
- package/indicators/cmf.src.js +22 -44
- package/indicators/cmo.js +2 -2
- package/indicators/cmo.src.js +22 -44
- package/indicators/dema.js +2 -2
- package/indicators/dema.src.js +23 -44
- package/indicators/disparity-index.js +2 -2
- package/indicators/disparity-index.src.js +25 -46
- package/indicators/dmi.js +2 -2
- package/indicators/dmi.src.js +25 -46
- package/indicators/dpo.js +2 -2
- package/indicators/dpo.src.js +23 -44
- package/indicators/ichimoku-kinko-hyo.js +2 -2
- package/indicators/ichimoku-kinko-hyo.src.js +23 -45
- package/indicators/indicators-all.js +2 -2
- package/indicators/indicators-all.src.js +81 -104
- package/indicators/indicators.js +2 -2
- package/indicators/indicators.src.js +53 -51
- package/indicators/keltner-channels.js +2 -2
- package/indicators/keltner-channels.src.js +23 -44
- package/indicators/klinger.js +2 -2
- package/indicators/klinger.src.js +22 -43
- package/indicators/macd.js +2 -2
- package/indicators/macd.src.js +22 -44
- package/indicators/mfi.js +2 -2
- package/indicators/mfi.src.js +22 -44
- package/indicators/momentum.js +2 -2
- package/indicators/momentum.src.js +22 -44
- package/indicators/natr.js +2 -2
- package/indicators/natr.src.js +22 -44
- package/indicators/obv.js +2 -2
- package/indicators/obv.src.js +22 -44
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.src.js +22 -44
- package/indicators/ppo.js +2 -2
- package/indicators/ppo.src.js +23 -44
- package/indicators/price-channel.js +2 -2
- package/indicators/price-channel.src.js +23 -44
- package/indicators/price-envelopes.js +2 -2
- package/indicators/price-envelopes.src.js +22 -44
- package/indicators/psar.js +2 -2
- package/indicators/psar.src.js +22 -44
- package/indicators/regressions.js +2 -2
- package/indicators/regressions.src.js +22 -47
- package/indicators/roc.js +2 -2
- package/indicators/roc.src.js +22 -44
- package/indicators/rsi.js +2 -2
- package/indicators/rsi.src.js +22 -44
- package/indicators/slow-stochastic.js +2 -2
- package/indicators/slow-stochastic.src.js +22 -43
- package/indicators/stochastic.js +2 -2
- package/indicators/stochastic.src.js +25 -46
- package/indicators/supertrend.js +2 -2
- package/indicators/supertrend.src.js +24 -45
- package/indicators/tema.js +2 -2
- package/indicators/tema.src.js +23 -44
- package/indicators/trendline.js +2 -2
- package/indicators/trendline.src.js +22 -44
- package/indicators/trix.js +2 -2
- package/indicators/trix.src.js +23 -44
- package/indicators/volume-by-price.js +2 -2
- package/indicators/volume-by-price.src.js +23 -44
- package/indicators/vwap.js +2 -2
- package/indicators/vwap.src.js +22 -44
- package/indicators/williams-r.js +2 -2
- package/indicators/williams-r.src.js +23 -44
- package/indicators/wma.js +2 -2
- package/indicators/wma.src.js +22 -44
- package/indicators/zigzag.js +2 -2
- package/indicators/zigzag.src.js +22 -44
- package/modules/accessibility.js +2 -2
- package/modules/accessibility.src.js +95 -81
- package/modules/annotations-advanced.js +9 -9
- package/modules/annotations-advanced.src.js +41 -63
- package/modules/annotations.js +3 -3
- package/modules/annotations.src.js +41 -63
- package/modules/arc-diagram.js +2 -2
- package/modules/arc-diagram.src.js +23 -44
- package/modules/arrow-symbols.js +2 -2
- package/modules/arrow-symbols.src.js +17 -38
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.src.js +62 -68
- package/modules/boost.js +2 -2
- package/modules/boost.src.js +61 -67
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.src.js +26 -46
- package/modules/bullet.js +2 -2
- package/modules/bullet.src.js +23 -44
- package/modules/coloraxis.js +2 -2
- package/modules/coloraxis.src.js +97 -101
- package/modules/contour.js +5 -5
- package/modules/contour.src.js +111 -117
- package/modules/current-date-indicator.js +2 -2
- package/modules/current-date-indicator.src.js +17 -38
- package/modules/cylinder.js +2 -2
- package/modules/cylinder.src.js +23 -44
- package/modules/data-sorting.js +2 -2
- package/modules/data-sorting.src.js +18 -39
- package/modules/data-tools.js +2 -2
- package/modules/data-tools.src.js +110 -67
- package/modules/data.js +4 -4
- package/modules/data.src.js +58 -53
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.src.js +57 -53
- package/modules/debugger.js +2 -2
- package/modules/debugger.src.js +17 -38
- package/modules/dependency-wheel.js +2 -2
- package/modules/dependency-wheel.src.js +22 -43
- package/modules/dotplot.js +2 -2
- package/modules/dotplot.src.js +22 -43
- package/modules/drag-panes.js +2 -2
- package/modules/drag-panes.src.js +22 -46
- package/modules/draggable-points.js +2 -2
- package/modules/draggable-points.src.js +17 -38
- package/modules/drilldown.js +2 -2
- package/modules/drilldown.src.js +45 -59
- package/modules/dumbbell.js +2 -2
- package/modules/dumbbell.src.js +23 -44
- package/modules/export-data.js +2 -2
- package/modules/export-data.src.js +47 -48
- package/modules/exporting.js +2 -2
- package/modules/exporting.src.js +31 -52
- package/modules/flowmap.js +2 -2
- package/modules/flowmap.src.js +22 -43
- package/modules/full-screen.js +2 -2
- package/modules/full-screen.src.js +22 -43
- package/modules/funnel.js +2 -2
- package/modules/funnel.src.js +26 -47
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.src.js +23 -44
- package/modules/gantt.js +8 -8
- package/modules/gantt.src.js +93 -113
- package/modules/geoheatmap.js +2 -2
- package/modules/geoheatmap.src.js +23 -44
- package/modules/grid-axis.js +2 -2
- package/modules/grid-axis.src.js +39 -56
- package/modules/heatmap.js +4 -4
- package/modules/heatmap.src.js +101 -105
- package/modules/heikinashi.js +2 -2
- package/modules/heikinashi.src.js +23 -44
- package/modules/histogram-bellcurve.js +2 -2
- package/modules/histogram-bellcurve.src.js +24 -45
- package/modules/hollowcandlestick.js +2 -2
- package/modules/hollowcandlestick.src.js +23 -44
- package/modules/item-series.js +2 -2
- package/modules/item-series.src.js +24 -45
- package/modules/lollipop.js +2 -2
- package/modules/lollipop.src.js +23 -44
- package/modules/map.js +4 -4
- package/modules/map.src.js +146 -128
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.src.js +49 -46
- package/modules/mouse-wheel-zoom.js +2 -2
- package/modules/mouse-wheel-zoom.src.js +17 -38
- package/modules/navigator.js +2 -2
- package/modules/navigator.src.js +77 -72
- package/modules/networkgraph.js +2 -2
- package/modules/networkgraph.src.js +29 -50
- package/modules/no-data-to-display.js +2 -2
- package/modules/no-data-to-display.src.js +22 -43
- package/modules/non-cartesian-zoom.js +2 -2
- package/modules/non-cartesian-zoom.src.js +17 -38
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +24 -45
- package/modules/organization.js +3 -3
- package/modules/organization.src.js +25 -44
- package/modules/parallel-coordinates.js +2 -2
- package/modules/parallel-coordinates.src.js +29 -49
- package/modules/pareto.js +2 -2
- package/modules/pareto.src.js +26 -47
- package/modules/pathfinder.js +2 -2
- package/modules/pathfinder.src.js +25 -44
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.src.js +17 -38
- package/modules/pictorial.js +2 -2
- package/modules/pictorial.src.js +76 -70
- package/modules/pointandfigure.js +2 -2
- package/modules/pointandfigure.src.js +52 -49
- package/modules/price-indicator.js +2 -2
- package/modules/price-indicator.src.js +17 -38
- package/modules/pyramid3d.js +2 -2
- package/modules/pyramid3d.src.js +23 -44
- package/modules/renko.js +2 -2
- package/modules/renko.src.js +23 -45
- package/modules/sankey.js +2 -2
- package/modules/sankey.src.js +29 -51
- package/modules/series-label.js +2 -2
- package/modules/series-label.src.js +22 -43
- package/modules/series-on-point.js +2 -2
- package/modules/series-on-point.src.js +52 -49
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.src.js +23 -44
- package/modules/sonification.js +2 -2
- package/modules/sonification.src.js +23 -44
- package/modules/static-scale.js +2 -2
- package/modules/static-scale.src.js +30 -49
- package/modules/stock-tools.js +2 -2
- package/modules/stock-tools.src.js +34 -55
- package/modules/stock.js +6 -6
- package/modules/stock.src.js +132 -154
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.src.js +23 -44
- package/modules/sunburst.js +2 -2
- package/modules/sunburst.src.js +43 -62
- package/modules/textpath.js +2 -2
- package/modules/textpath.src.js +17 -38
- package/modules/tiledwebmap.js +3 -3
- package/modules/tiledwebmap.src.js +24 -45
- package/modules/tilemap.js +2 -2
- package/modules/tilemap.src.js +27 -45
- package/modules/timeline.js +2 -2
- package/modules/timeline.src.js +24 -45
- package/modules/treegraph.js +2 -2
- package/modules/treegraph.src.js +28 -47
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.src.js +52 -72
- package/modules/treemap.js +2 -2
- package/modules/treemap.src.js +39 -58
- package/modules/variable-pie.js +2 -2
- package/modules/variable-pie.src.js +24 -45
- package/modules/variwide.js +2 -2
- package/modules/variwide.src.js +33 -51
- package/modules/vector.js +2 -2
- package/modules/vector.src.js +23 -44
- package/modules/venn.js +2 -2
- package/modules/venn.src.js +23 -44
- package/modules/windbarb.js +2 -2
- package/modules/windbarb.src.js +23 -44
- package/modules/wordcloud.js +2 -2
- package/modules/wordcloud.src.js +23 -44
- package/modules/xrange.js +2 -2
- package/modules/xrange.src.js +23 -44
- package/options/abands.d.ts +183 -8
- package/options/abands.src.d.ts +183 -8
- package/options/ad.d.ts +176 -5
- package/options/ad.src.d.ts +176 -5
- package/options/ao.d.ts +202 -0
- package/options/ao.src.d.ts +202 -0
- package/options/apo.d.ts +178 -8
- package/options/apo.src.d.ts +178 -8
- package/options/arcdiagram.d.ts +785 -0
- package/options/arcdiagram.src.d.ts +785 -0
- package/options/area.d.ts +226 -0
- package/options/area.src.d.ts +226 -0
- package/options/arearange.d.ts +229 -8
- package/options/arearange.src.d.ts +229 -8
- package/options/areaspline.d.ts +1344 -8
- package/options/areaspline.src.d.ts +1344 -8
- package/options/areasplinerange.d.ts +972 -8
- package/options/areasplinerange.src.d.ts +972 -8
- package/options/aroon.d.ts +219 -0
- package/options/aroon.src.d.ts +219 -0
- package/options/aroonoscillator.d.ts +1140 -8
- package/options/aroonoscillator.src.d.ts +1140 -8
- package/options/atr.d.ts +210 -0
- package/options/atr.src.d.ts +210 -0
- package/options/bar.d.ts +183 -10
- package/options/bar.src.d.ts +183 -10
- package/options/bb.d.ts +1232 -0
- package/options/bb.src.d.ts +1232 -0
- package/options/bellcurve.d.ts +1167 -8
- package/options/bellcurve.src.d.ts +1167 -8
- package/options/boxplot.d.ts +163 -10
- package/options/boxplot.src.d.ts +163 -10
- package/options/bubble.d.ts +1005 -8
- package/options/bubble.src.d.ts +1005 -8
- package/options/bullet.d.ts +953 -8
- package/options/bullet.src.d.ts +953 -8
- package/options/candlestick.d.ts +1309 -8
- package/options/candlestick.src.d.ts +1309 -8
- package/options/cci.d.ts +210 -0
- package/options/cci.src.d.ts +210 -0
- package/options/chaikin.d.ts +180 -8
- package/options/chaikin.src.d.ts +180 -8
- package/options/cmf.d.ts +211 -0
- package/options/cmf.src.d.ts +211 -0
- package/options/cmo.d.ts +175 -5
- package/options/cmo.src.d.ts +175 -5
- package/options/column.d.ts +252 -2
- package/options/column.src.d.ts +252 -2
- package/options/columnpyramid.d.ts +1296 -0
- package/options/columnpyramid.src.d.ts +1296 -0
- package/options/columnrange.d.ts +216 -2
- package/options/columnrange.src.d.ts +216 -2
- package/options/contour.d.ts +1148 -0
- package/options/contour.src.d.ts +1148 -0
- package/options/cylinder.d.ts +183 -2
- package/options/cylinder.src.d.ts +183 -2
- package/options/dema.d.ts +1181 -0
- package/options/dema.src.d.ts +1181 -0
- package/options/dependencywheel.d.ts +315 -0
- package/options/dependencywheel.src.d.ts +315 -0
- package/options/disparityindex.d.ts +1157 -8
- package/options/disparityindex.src.d.ts +1157 -8
- package/options/dmi.d.ts +1227 -0
- package/options/dmi.src.d.ts +1227 -0
- package/options/dpo.d.ts +1140 -8
- package/options/dpo.src.d.ts +1140 -8
- package/options/dumbbell.d.ts +286 -0
- package/options/dumbbell.src.d.ts +286 -0
- package/options/ema.d.ts +1156 -5
- package/options/ema.src.d.ts +1156 -5
- package/options/errorbar.d.ts +1286 -0
- package/options/errorbar.src.d.ts +1286 -0
- package/options/flags.d.ts +1269 -8
- package/options/flags.src.d.ts +1269 -8
- package/options/flowmap.d.ts +551 -0
- package/options/flowmap.src.d.ts +551 -0
- package/options/funnel.d.ts +728 -10
- package/options/funnel.src.d.ts +728 -10
- package/options/gantt.d.ts +1011 -0
- package/options/gantt.src.d.ts +1011 -0
- package/options/gauge.d.ts +675 -0
- package/options/gauge.src.d.ts +675 -0
- package/options/geoheatmap.d.ts +585 -8
- package/options/geoheatmap.src.d.ts +585 -8
- package/options/heatmap.d.ts +1054 -8
- package/options/heatmap.src.d.ts +1054 -8
- package/options/heikinashi.d.ts +178 -10
- package/options/heikinashi.src.d.ts +178 -10
- package/options/histogram.d.ts +1226 -0
- package/options/histogram.src.d.ts +1226 -0
- package/options/hlc.d.ts +223 -2
- package/options/hlc.src.d.ts +223 -2
- package/options/hollowcandlestick.d.ts +1335 -0
- package/options/hollowcandlestick.src.d.ts +1335 -0
- package/options/ikh.d.ts +228 -5
- package/options/ikh.src.d.ts +228 -5
- package/options/item.d.ts +217 -8
- package/options/item.src.d.ts +217 -8
- package/options/keltnerchannels.d.ts +1220 -0
- package/options/keltnerchannels.src.d.ts +1220 -0
- package/options/klinger.d.ts +1162 -0
- package/options/klinger.src.d.ts +1162 -0
- package/options/line.d.ts +1377 -8
- package/options/line.src.d.ts +1377 -8
- package/options/linearregression.d.ts +199 -5
- package/options/linearregression.src.d.ts +199 -5
- package/options/linearregressionangle.d.ts +1157 -5
- package/options/linearregressionangle.src.d.ts +1157 -5
- package/options/linearregressionintercept.d.ts +240 -0
- package/options/linearregressionintercept.src.d.ts +240 -0
- package/options/linearregressionslope.d.ts +240 -0
- package/options/linearregressionslope.src.d.ts +240 -0
- package/options/lollipop.d.ts +949 -0
- package/options/lollipop.src.d.ts +949 -0
- package/options/macd.d.ts +254 -0
- package/options/macd.src.d.ts +254 -0
- package/options/map.d.ts +150 -8
- package/options/map.src.d.ts +150 -8
- package/options/mapbubble.d.ts +1016 -8
- package/options/mapbubble.src.d.ts +1016 -8
- package/options/mapline.d.ts +994 -0
- package/options/mapline.src.d.ts +994 -0
- package/options/mappoint.d.ts +1105 -1
- package/options/mappoint.src.d.ts +1105 -1
- package/options/mfi.d.ts +181 -5
- package/options/mfi.src.d.ts +181 -5
- package/options/momentum.d.ts +215 -0
- package/options/momentum.src.d.ts +215 -0
- package/options/natr.d.ts +170 -5
- package/options/natr.src.d.ts +170 -5
- package/options/networkgraph.d.ts +365 -0
- package/options/networkgraph.src.d.ts +365 -0
- package/options/obv.d.ts +170 -5
- package/options/obv.src.d.ts +170 -5
- package/options/ohlc.d.ts +183 -7
- package/options/ohlc.src.d.ts +183 -7
- package/options/organization.d.ts +808 -0
- package/options/organization.src.d.ts +808 -0
- package/options/packedbubble.d.ts +877 -8
- package/options/packedbubble.src.d.ts +877 -8
- package/options/pareto.d.ts +1028 -0
- package/options/pareto.src.d.ts +1028 -0
- package/options/pc.d.ts +183 -8
- package/options/pc.src.d.ts +183 -8
- package/options/pictorial.d.ts +202 -2
- package/options/pictorial.src.d.ts +202 -2
- package/options/pie.d.ts +196 -8
- package/options/pie.src.d.ts +196 -8
- package/options/pivotpoints.d.ts +1199 -0
- package/options/pivotpoints.src.d.ts +1199 -0
- package/options/pointandfigure.d.ts +980 -0
- package/options/pointandfigure.src.d.ts +980 -0
- package/options/polygon.d.ts +234 -0
- package/options/polygon.src.d.ts +234 -0
- package/options/ppo.d.ts +1156 -8
- package/options/ppo.src.d.ts +1156 -8
- package/options/priceenvelopes.d.ts +1229 -0
- package/options/priceenvelopes.src.d.ts +1229 -0
- package/options/psar.d.ts +1156 -5
- package/options/psar.src.d.ts +1156 -5
- package/options/pyramid.d.ts +837 -2
- package/options/pyramid.src.d.ts +837 -2
- package/options/renko.d.ts +247 -10
- package/options/renko.src.d.ts +247 -10
- package/options/roc.d.ts +1215 -0
- package/options/roc.src.d.ts +1215 -0
- package/options/rsi.d.ts +1157 -5
- package/options/rsi.src.d.ts +1157 -5
- package/options/sankey.d.ts +276 -8
- package/options/sankey.src.d.ts +276 -8
- package/options/scatter.d.ts +3043 -1018
- package/options/scatter.src.d.ts +3043 -1018
- package/options/series.d.ts +175 -0
- package/options/series.src.d.ts +175 -0
- package/options/slowstochastic.d.ts +183 -0
- package/options/slowstochastic.src.d.ts +183 -0
- package/options/sma.d.ts +211 -0
- package/options/sma.src.d.ts +211 -0
- package/options/solidgauge.d.ts +218 -0
- package/options/solidgauge.src.d.ts +218 -0
- package/options/spline.d.ts +230 -0
- package/options/spline.src.d.ts +230 -0
- package/options/stochastic.d.ts +1170 -8
- package/options/stochastic.src.d.ts +1170 -8
- package/options/streamgraph.d.ts +1345 -8
- package/options/streamgraph.src.d.ts +1345 -8
- package/options/sunburst.d.ts +286 -9
- package/options/sunburst.src.d.ts +286 -9
- package/options/supertrend.d.ts +1208 -0
- package/options/supertrend.src.d.ts +1208 -0
- package/options/tema.d.ts +1140 -8
- package/options/tema.src.d.ts +1140 -8
- package/options/tiledwebmap.d.ts +164 -0
- package/options/tiledwebmap.src.d.ts +164 -0
- package/options/tilemap.d.ts +687 -0
- package/options/tilemap.src.d.ts +687 -0
- package/options/timeline.d.ts +282 -0
- package/options/timeline.src.d.ts +282 -0
- package/options/treegraph.d.ts +982 -0
- package/options/treegraph.src.d.ts +982 -0
- package/options/treemap.d.ts +1396 -22
- package/options/treemap.src.d.ts +1396 -22
- package/options/trendline.d.ts +211 -0
- package/options/trendline.src.d.ts +211 -0
- package/options/trix.d.ts +178 -8
- package/options/trix.src.d.ts +178 -8
- package/options/variablepie.d.ts +686 -8
- package/options/variablepie.src.d.ts +686 -8
- package/options/variwide.d.ts +178 -2
- package/options/variwide.src.d.ts +178 -2
- package/options/vbp.d.ts +576 -0
- package/options/vbp.src.d.ts +576 -0
- package/options/vector.d.ts +660 -0
- package/options/vector.src.d.ts +660 -0
- package/options/venn.d.ts +654 -0
- package/options/venn.src.d.ts +654 -0
- package/options/vwap.d.ts +1157 -5
- package/options/vwap.src.d.ts +1157 -5
- package/options/waterfall.d.ts +1254 -8
- package/options/waterfall.src.d.ts +1254 -8
- package/options/williamsr.d.ts +209 -0
- package/options/williamsr.src.d.ts +209 -0
- package/options/windbarb.d.ts +222 -2
- package/options/windbarb.src.d.ts +222 -2
- package/options/wma.d.ts +1156 -5
- package/options/wma.src.d.ts +1156 -5
- package/options/wordcloud.d.ts +682 -0
- package/options/wordcloud.src.d.ts +682 -0
- package/options/xrange.d.ts +1168 -0
- package/options/xrange.src.d.ts +1168 -0
- package/options/zigzag.d.ts +1197 -0
- package/options/zigzag.src.d.ts +1197 -0
- package/package.json +1 -1
- package/standalone-navigator.js +4 -4
- package/standalone-navigator.src.js +884 -803
- package/themes/adaptive.js +2 -2
- package/themes/adaptive.src.js +22 -43
- package/themes/avocado.js +2 -2
- package/themes/avocado.src.js +17 -38
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.src.js +17 -38
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.src.js +17 -38
- package/themes/high-contrast.js +2 -2
- package/themes/high-contrast.src.js +17 -38
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.src.js +17 -38
- package/themes/sunset.js +2 -2
- package/themes/sunset.src.js +17 -38
|
@@ -51,9 +51,11 @@ class PlotLineOrBand {
|
|
|
51
51
|
this.labelCollectors.push(() => {
|
|
52
52
|
const labels = [];
|
|
53
53
|
for (const axis of this.axes) {
|
|
54
|
-
for (const
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
for (const coll of ['plotBands', 'plotLines']) {
|
|
55
|
+
for (const { label, options } of axis[coll]) {
|
|
56
|
+
if (label && !options?.label?.allowOverlap) {
|
|
57
|
+
labels.push(label);
|
|
58
|
+
}
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -67,7 +69,7 @@ class PlotLineOrBand {
|
|
|
67
69
|
* Constructor
|
|
68
70
|
*
|
|
69
71
|
* */
|
|
70
|
-
constructor(axis, options) {
|
|
72
|
+
constructor(axis, options, coll) {
|
|
71
73
|
/**
|
|
72
74
|
* Related axis.
|
|
73
75
|
*
|
|
@@ -83,6 +85,7 @@ class PlotLineOrBand {
|
|
|
83
85
|
*/
|
|
84
86
|
this.options = options;
|
|
85
87
|
this.id = options.id;
|
|
88
|
+
this.coll = coll;
|
|
86
89
|
}
|
|
87
90
|
/* *
|
|
88
91
|
*
|
|
@@ -98,43 +101,28 @@ class PlotLineOrBand {
|
|
|
98
101
|
*/
|
|
99
102
|
render() {
|
|
100
103
|
fireEvent(this, 'render');
|
|
101
|
-
const { axis, options } = this, { chart, horiz, logarithmic } = axis, { color, events, zIndex = 0 } = options, { renderer, time } = axis.chart,
|
|
104
|
+
const { axis, options } = this, { chart, horiz, logarithmic } = axis, { color, events, zIndex = 0 } = options, { renderer, styledMode, time } = axis.chart,
|
|
102
105
|
// These properties only exist on either band or line
|
|
103
106
|
to = time.parse(options.to), from = time.parse(options.from), value = time.parse(options.value), borderWidth = options.borderWidth;
|
|
104
|
-
let optionsLabel = options.label, { label, svgElem } = this,
|
|
105
|
-
const isBand =
|
|
106
|
-
'class':
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
// Set the
|
|
111
|
-
if (!
|
|
112
|
-
|
|
113
|
-
attribs.stroke = color || 'var(--highcharts-neutral-color-40)';
|
|
114
|
-
attribs['stroke-width'] =
|
|
115
|
-
options.width ?? 1;
|
|
116
|
-
if (options.dashStyle) {
|
|
117
|
-
attribs.dashstyle = options.dashStyle;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
else if (isBand) { // Plot band
|
|
121
|
-
attribs.fill = color || 'var(--highcharts-highlight-color-10)';
|
|
122
|
-
if (borderWidth) {
|
|
123
|
-
attribs.stroke = options.borderColor;
|
|
124
|
-
attribs['stroke-width'] = borderWidth;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
107
|
+
let optionsLabel = options.label, { label, svgElem } = this, group;
|
|
108
|
+
const isBand = this.coll === 'plotBands', shortKey = isBand ? 'band' : 'line', groupName = `${shortKey}s-${zIndex}`, isNew = !svgElem, attribs = {
|
|
109
|
+
'class': `highcharts-plot-${shortKey} ${options.className || ''}`
|
|
110
|
+
}, strokeWidth = isBand ?
|
|
111
|
+
(borderWidth || 0) :
|
|
112
|
+
(options.width ?? 1);
|
|
113
|
+
// Set the stroke width before the path is calculated
|
|
114
|
+
if (!styledMode) {
|
|
115
|
+
attribs['stroke-width'] = strokeWidth;
|
|
127
116
|
}
|
|
128
117
|
// Grouping and zIndex
|
|
129
|
-
groupAttribs.zIndex = zIndex;
|
|
130
|
-
groupName += '-' + zIndex;
|
|
131
118
|
group = axis.plotLinesAndBandsGroups[groupName];
|
|
132
119
|
if (!group) {
|
|
133
120
|
axis.plotLinesAndBandsGroups[groupName] = group =
|
|
134
121
|
renderer.g('plot-' + groupName)
|
|
135
122
|
.clip(chart.plotClipOuter)
|
|
136
|
-
.attr(
|
|
123
|
+
.attr({ zIndex }).add();
|
|
137
124
|
}
|
|
125
|
+
group[isNew ? 'attr' : 'animate']({ opacity: +axis.visible });
|
|
138
126
|
// Create the path
|
|
139
127
|
if (!svgElem) {
|
|
140
128
|
/**
|
|
@@ -145,40 +133,58 @@ class PlotLineOrBand {
|
|
|
145
133
|
*/
|
|
146
134
|
this.svgElem = svgElem = renderer
|
|
147
135
|
.path()
|
|
148
|
-
.attr(attribs)
|
|
149
|
-
|
|
136
|
+
.attr(attribs);
|
|
137
|
+
}
|
|
138
|
+
// Add it to the correct index while allowing dynamic z-index update
|
|
139
|
+
if (svgElem.parentGroup !== group) {
|
|
140
|
+
svgElem.add(group);
|
|
150
141
|
}
|
|
151
142
|
// Set the path or return
|
|
152
|
-
|
|
143
|
+
let path;
|
|
144
|
+
if (!isBand && defined(value)) { // Plot line
|
|
153
145
|
path = axis.getPlotLinePath({
|
|
154
146
|
value: logarithmic?.log2lin(value) ?? value,
|
|
155
147
|
lineWidth: svgElem.strokeWidth(),
|
|
156
148
|
acrossPanes: options.acrossPanes
|
|
157
149
|
});
|
|
158
150
|
}
|
|
159
|
-
else if (defined(from) && defined(to)) { // Plot band
|
|
151
|
+
else if (isBand && defined(from) && defined(to)) { // Plot band
|
|
160
152
|
path = axis.getPlotBandPath(logarithmic?.log2lin(from) ?? from, logarithmic?.log2lin(to) ?? to, options);
|
|
161
153
|
}
|
|
162
|
-
|
|
163
|
-
|
|
154
|
+
if (path) {
|
|
155
|
+
attribs.d = path;
|
|
156
|
+
}
|
|
157
|
+
// Apply the styling
|
|
158
|
+
if (!styledMode) {
|
|
159
|
+
if (isBand) { // Plot band
|
|
160
|
+
attribs.fill = color || 'var(--highcharts-highlight-color-10)';
|
|
161
|
+
if (borderWidth) {
|
|
162
|
+
attribs.stroke = options.borderColor;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
attribs.stroke = color || 'var(--highcharts-neutral-color-40)';
|
|
167
|
+
if (options.dashStyle) {
|
|
168
|
+
attribs.dashstyle = options.dashStyle;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
164
171
|
}
|
|
165
172
|
// Common for lines and bands. Add events only if they were not added
|
|
166
173
|
// before.
|
|
167
|
-
if (
|
|
174
|
+
if (isNew && events) {
|
|
168
175
|
objectEach(events, (_event, eventType) => {
|
|
169
176
|
svgElem?.on(eventType, (e) => {
|
|
170
177
|
events[eventType].apply(this, [e, this]);
|
|
171
178
|
});
|
|
172
179
|
});
|
|
173
|
-
this.eventsAdded = true;
|
|
174
180
|
}
|
|
175
181
|
if ((isNew || !svgElem.d) && path?.length) {
|
|
176
|
-
svgElem.attr(
|
|
182
|
+
svgElem.attr(attribs);
|
|
177
183
|
}
|
|
178
184
|
else if (svgElem) {
|
|
179
185
|
if (path) {
|
|
180
186
|
svgElem.show();
|
|
181
|
-
svgElem.animate(
|
|
187
|
+
svgElem.animate(attribs);
|
|
182
188
|
}
|
|
183
189
|
else if (svgElem.d) {
|
|
184
190
|
svgElem.hide();
|
|
@@ -218,7 +224,7 @@ class PlotLineOrBand {
|
|
|
218
224
|
* @function Highcharts.PlotLineOrBand#renderLabel
|
|
219
225
|
*/
|
|
220
226
|
renderLabel(optionsLabel, path, isBand, zIndex) {
|
|
221
|
-
const plotLine = this, axis = plotLine.axis,
|
|
227
|
+
const plotLine = this, axis = plotLine.axis, chart = axis.chart, renderer = chart.renderer, inside = optionsLabel.inside;
|
|
222
228
|
let label = plotLine.label;
|
|
223
229
|
// Add the SVG element
|
|
224
230
|
if (!label) {
|
|
@@ -229,25 +235,31 @@ class PlotLineOrBand {
|
|
|
229
235
|
* @type {Highcharts.SVGElement}
|
|
230
236
|
*/
|
|
231
237
|
plotLine.label = label = renderer
|
|
232
|
-
.text(
|
|
233
|
-
.attr({
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
238
|
+
.text('', 0, 0, optionsLabel.useHTML)
|
|
239
|
+
.attr({ zIndex });
|
|
240
|
+
}
|
|
241
|
+
label
|
|
242
|
+
.attr({
|
|
243
|
+
text: this.getLabelText(optionsLabel),
|
|
244
|
+
align: optionsLabel.textAlign || optionsLabel.align,
|
|
245
|
+
'class': 'highcharts-plot-' + (isBand ? 'band' : 'line') +
|
|
246
|
+
'-label ' + (optionsLabel.className || '')
|
|
247
|
+
})[label.placed ? 'animate' : 'attr']({
|
|
248
|
+
opacity: 1,
|
|
249
|
+
rotation: optionsLabel.rotation
|
|
250
|
+
});
|
|
251
|
+
if (!chart.styledMode) {
|
|
252
|
+
label.css(merge({
|
|
253
|
+
// To allow theming, and in lack of a general place to set
|
|
254
|
+
// default options for plot lines and bands, default to the
|
|
255
|
+
// title color. If we expose the palette, we should use that
|
|
256
|
+
// instead.
|
|
257
|
+
color: chart.options.title?.style?.color,
|
|
258
|
+
fontSize: '0.8em',
|
|
259
|
+
textOverflow: (isBand && !inside) ? '' : 'ellipsis'
|
|
260
|
+
}, optionsLabel.style));
|
|
261
|
+
}
|
|
262
|
+
if (!label.added) {
|
|
251
263
|
label.add();
|
|
252
264
|
}
|
|
253
265
|
// Get the bounding box and align the label
|
|
@@ -271,12 +283,31 @@ class PlotLineOrBand {
|
|
|
271
283
|
axis.height - (label.alignAttr.y -
|
|
272
284
|
axis.top) : (optionsLabel.clip ?
|
|
273
285
|
(axis.width + axis.left) :
|
|
274
|
-
|
|
286
|
+
chart.chartWidth) - label.alignAttr.x) :
|
|
275
287
|
bBoxWidth)) + 'px'
|
|
276
288
|
});
|
|
277
289
|
}
|
|
290
|
+
else if (label.textWidth) {
|
|
291
|
+
label.css({ width: 'auto' });
|
|
292
|
+
}
|
|
278
293
|
label.show(true);
|
|
279
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* Update the plot line or band with new options.
|
|
297
|
+
*
|
|
298
|
+
* @param {Highcharts.AxisPlotLinesOptions|Highcharts.AxisPlotBandsOptions} options
|
|
299
|
+
* The new options to apply
|
|
300
|
+
* @param {boolean} [redraw=true]
|
|
301
|
+
* Whether to redraw the plot guide immediately
|
|
302
|
+
*
|
|
303
|
+
* @function Highcharts.PlotLineOrBand#update
|
|
304
|
+
*/
|
|
305
|
+
update(options, redraw = true) {
|
|
306
|
+
merge(true, this.options, options);
|
|
307
|
+
if (redraw) {
|
|
308
|
+
this.render();
|
|
309
|
+
}
|
|
310
|
+
}
|
|
280
311
|
/**
|
|
281
312
|
* Get label's text content.
|
|
282
313
|
* @internal
|
|
@@ -288,15 +319,22 @@ class PlotLineOrBand {
|
|
|
288
319
|
optionsLabel.text;
|
|
289
320
|
}
|
|
290
321
|
/**
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
* @function Highcharts.PlotLineOrBand#destroy
|
|
322
|
+
* Destroy the item's elements
|
|
294
323
|
*/
|
|
295
324
|
destroy() {
|
|
325
|
+
destroyObjectProperties(this, this.axis);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Remove the plot line or band and destroy its elements.
|
|
329
|
+
*
|
|
330
|
+
* @function Highcharts.PlotLineOrBand#remove
|
|
331
|
+
*/
|
|
332
|
+
remove() {
|
|
296
333
|
// Remove it from the lookup
|
|
297
|
-
erase(this.axis.
|
|
298
|
-
|
|
299
|
-
|
|
334
|
+
erase(this.axis[this.coll], this);
|
|
335
|
+
// Remove from options
|
|
336
|
+
erase(this.axis.options[this.coll] || [], this.options);
|
|
337
|
+
this.destroy();
|
|
300
338
|
}
|
|
301
339
|
}
|
|
302
340
|
/* *
|
|
@@ -343,10 +381,24 @@ export default PlotLineOrBand;
|
|
|
343
381
|
* In styled mode, the plot bands are styled by the `.highcharts-plot-band`
|
|
344
382
|
* class in addition to the `className` option.
|
|
345
383
|
*
|
|
384
|
+
* When doing `Chart.update()` or `Axis.update()`, the plot bands are updated
|
|
385
|
+
* by index or id. The following merging rules apply:
|
|
386
|
+
* - If `plotBands` are not defined in the new options, all existing plot bands
|
|
387
|
+
* are kept.
|
|
388
|
+
* - If `plotBands` are defined without ids, the existing plot bands are updated
|
|
389
|
+
* by index. If the new array has fewer plot bands, the remaining existing
|
|
390
|
+
* plot bands are removed. If the new array has more plot bands, the extra
|
|
391
|
+
* ones are added. An empty array removes all existing plot bands.
|
|
392
|
+
* - If `plotBands` are defined with ids, the existing plot bands are matched
|
|
393
|
+
* by id, and remaining unmatched existing plot bands are removed.
|
|
394
|
+
*
|
|
346
395
|
* @productdesc {highcharts}
|
|
347
396
|
* In a gauge, a plot band on the Y axis (value axis) will stretch along the
|
|
348
397
|
* perimeter of the gauge.
|
|
349
398
|
*
|
|
399
|
+
* @sample {highcharts} highcharts/xaxis/plotbands-color/
|
|
400
|
+
* Basic plot band
|
|
401
|
+
*
|
|
350
402
|
* @type {Array<*>}
|
|
351
403
|
* @product highcharts highstock gantt
|
|
352
404
|
* @apioption xAxis.plotBands
|
|
@@ -638,12 +690,23 @@ export default PlotLineOrBand;
|
|
|
638
690
|
* In styled mode, the plot lines are styled by the
|
|
639
691
|
* `.highcharts-plot-line` class in addition to the `className` option.
|
|
640
692
|
*
|
|
693
|
+
* When doing `Chart.update()` or `Axis.update()`, the plot lines are updated
|
|
694
|
+
* by index or id. The following merging rules apply:
|
|
695
|
+
* - If `plotLines` are not defined in the new options, all existing plot lines
|
|
696
|
+
* are kept.
|
|
697
|
+
* - If `plotLines` are defined without ids, the existing plot lines are updated
|
|
698
|
+
* by index. If the new array has fewer plot lines, the remaining existing
|
|
699
|
+
* plot lines are removed. If the new array has more plot lines, the extra
|
|
700
|
+
* ones are added. An empty array removes all existing plot lines.
|
|
701
|
+
* - If `plotLines` are defined with ids, the existing plot lines are matched
|
|
702
|
+
* by id, and remaining unmatched existing plot lines are removed.
|
|
703
|
+
*
|
|
641
704
|
* @type {Array<*>}
|
|
642
705
|
* @product highcharts highstock gantt
|
|
643
|
-
* @sample
|
|
644
|
-
*
|
|
645
|
-
* @sample
|
|
646
|
-
*
|
|
706
|
+
* @sample {highcharts} highcharts/xaxis/plotlines-color/
|
|
707
|
+
* Basic plot line
|
|
708
|
+
* @sample {highcharts} highcharts/series-solidgauge/labels-auto-aligned/
|
|
709
|
+
* Solid gauge plot line
|
|
647
710
|
* @apioption xAxis.plotLines
|
|
648
711
|
*/
|
|
649
712
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
12
|
'use strict';
|
|
13
|
-
import {
|
|
13
|
+
import { addEvent, extend, isNumber, splat } from '../../../Shared/Utilities.js';
|
|
14
14
|
/* *
|
|
15
15
|
*
|
|
16
16
|
* Composition
|
|
@@ -34,24 +34,7 @@ var PlotLineOrBandAxis;
|
|
|
34
34
|
* Functions
|
|
35
35
|
*
|
|
36
36
|
* */
|
|
37
|
-
|
|
38
|
-
* Add a plot band after render time.
|
|
39
|
-
*
|
|
40
|
-
* @sample highcharts/members/axis-addplotband/
|
|
41
|
-
* Toggle the plot band from a button
|
|
42
|
-
*
|
|
43
|
-
* @function Highcharts.Axis#addPlotBand
|
|
44
|
-
*
|
|
45
|
-
* @param {Highcharts.AxisPlotBandsOptions} options
|
|
46
|
-
* A configuration object for the plot band, as defined in
|
|
47
|
-
* [xAxis.plotBands](https://api.highcharts.com/highcharts/xAxis.plotBands).
|
|
48
|
-
*
|
|
49
|
-
* @return {Highcharts.PlotLineOrBand|undefined}
|
|
50
|
-
* The added plot band, or `undefined` if the options are not valid.
|
|
51
|
-
*/
|
|
52
|
-
function addPlotBand(options) {
|
|
53
|
-
return this.addPlotBandOrLine(options, 'plotBands');
|
|
54
|
-
}
|
|
37
|
+
const getAdderFunction = (coll) =>
|
|
55
38
|
/**
|
|
56
39
|
* Add a plot band or plot line after render time. Called from
|
|
57
40
|
* addPlotBand and addPlotLine internally.
|
|
@@ -59,65 +42,85 @@ var PlotLineOrBandAxis;
|
|
|
59
42
|
* @internal
|
|
60
43
|
* @function Highcharts.Axis#addPlotBandOrLine
|
|
61
44
|
* @param {Highcharts.AxisPlotBandsOptions|Highcharts.AxisPlotLinesOptions} options
|
|
62
|
-
*
|
|
45
|
+
* The `plotBand` or `plotLine` configuration object.
|
|
63
46
|
*/
|
|
64
|
-
function
|
|
65
|
-
|
|
66
|
-
|
|
47
|
+
function addPlotLineOrBand(options) {
|
|
48
|
+
var _a;
|
|
49
|
+
const plotItem = new PlotLineOrBandClass(this, options, coll);
|
|
67
50
|
if (this.visible) {
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
if (obj) { // #2189
|
|
71
|
-
if (!this._addedPlotLB) {
|
|
72
|
-
this._addedPlotLB = true;
|
|
73
|
-
(userOptions.plotLines || [])
|
|
74
|
-
.concat(userOptions.plotBands || [])
|
|
75
|
-
.forEach((plotLineOptions) => {
|
|
76
|
-
this.addPlotBandOrLine(plotLineOptions);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
// Add it to the user options for exporting and Axis.update
|
|
80
|
-
if (coll) {
|
|
81
|
-
// Workaround Microsoft/TypeScript issue #32693
|
|
82
|
-
const updatedOptions = (userOptions[coll] || []);
|
|
83
|
-
updatedOptions.push(options);
|
|
84
|
-
userOptions[coll] = updatedOptions;
|
|
85
|
-
}
|
|
86
|
-
this.plotLinesAndBands.push(obj);
|
|
51
|
+
plotItem.render();
|
|
87
52
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
* @sample highcharts/members/axis-addplotline/
|
|
94
|
-
* Toggle the plot line from a button
|
|
95
|
-
*
|
|
96
|
-
* @function Highcharts.Axis#addPlotLine
|
|
97
|
-
*
|
|
98
|
-
* @param {Highcharts.AxisPlotLinesOptions} options
|
|
99
|
-
* A configuration object for the plot line, as defined in
|
|
100
|
-
* [xAxis.plotLines](https://api.highcharts.com/highcharts/xAxis.plotLines).
|
|
101
|
-
*
|
|
102
|
-
* @return {Highcharts.PlotLineOrBand|undefined}
|
|
103
|
-
* The added plot line, or `undefined` if the options are not valid.
|
|
104
|
-
*/
|
|
105
|
-
function addPlotLine(options) {
|
|
106
|
-
return this.addPlotBandOrLine(options, 'plotLines');
|
|
107
|
-
}
|
|
53
|
+
(_a = this.options)[coll] || (_a[coll] = this.userOptions[coll] = []);
|
|
54
|
+
this.options[coll].push(options);
|
|
55
|
+
this[coll].push(plotItem);
|
|
56
|
+
return plotItem;
|
|
57
|
+
};
|
|
108
58
|
/** @internal */
|
|
109
59
|
function compose(PlotLineOrBandType, AxisClass) {
|
|
110
60
|
const axisProto = AxisClass.prototype;
|
|
111
61
|
if (!axisProto.addPlotBand) {
|
|
112
62
|
PlotLineOrBandClass = PlotLineOrBandType;
|
|
113
63
|
extend(axisProto, {
|
|
114
|
-
addPlotBand,
|
|
115
|
-
addPlotLine,
|
|
116
|
-
addPlotBandOrLine,
|
|
64
|
+
addPlotBand: getAdderFunction('plotBands'),
|
|
65
|
+
addPlotLine: getAdderFunction('plotLines'),
|
|
117
66
|
getPlotBandPath,
|
|
118
|
-
removePlotBand,
|
|
119
|
-
removePlotLine
|
|
120
|
-
|
|
67
|
+
removePlotBand: removePlotBandOrLine,
|
|
68
|
+
removePlotLine: removePlotBandOrLine
|
|
69
|
+
});
|
|
70
|
+
addEvent(AxisClass, 'afterInit', function () {
|
|
71
|
+
// First time only, not on Axis.update()
|
|
72
|
+
if (!this.plotBands) {
|
|
73
|
+
// Placeholder for plotlines and plotbands groups
|
|
74
|
+
this.plotLinesAndBandsGroups = {};
|
|
75
|
+
// Plot lines and bands from options
|
|
76
|
+
for (const coll of ['plotBands', 'plotLines']) {
|
|
77
|
+
this[coll] = [];
|
|
78
|
+
for (const pOptions of splat(this.options[coll] || [])) {
|
|
79
|
+
this[coll].push(new PlotLineOrBandClass(this, pOptions, coll));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
// Update plot bands and lines one to one
|
|
85
|
+
addEvent(AxisClass, 'update', function ({ options }) {
|
|
86
|
+
for (const coll of ['plotBands', 'plotLines']) {
|
|
87
|
+
// Check if we have new options to process, otherwise do
|
|
88
|
+
// nothing with existing plot lines and bands
|
|
89
|
+
if (options[coll]) {
|
|
90
|
+
const plotItems = this[coll];
|
|
91
|
+
splat(options[coll]).forEach((pOptions = {}, i) => {
|
|
92
|
+
// Match by id
|
|
93
|
+
let pItem;
|
|
94
|
+
if (pOptions?.id) {
|
|
95
|
+
pItem = plotItems.find((p) => p.id === pOptions.id);
|
|
96
|
+
}
|
|
97
|
+
// Match by index
|
|
98
|
+
pItem || (pItem = plotItems[i]);
|
|
99
|
+
// Update
|
|
100
|
+
if (pItem) {
|
|
101
|
+
pItem.update(pOptions, false);
|
|
102
|
+
options[coll][i] = pItem.options;
|
|
103
|
+
// Add
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
pItem = this[coll === 'plotBands' ?
|
|
107
|
+
'addPlotBand' :
|
|
108
|
+
'addPlotLine'](pOptions);
|
|
109
|
+
}
|
|
110
|
+
pItem.isActive = true;
|
|
111
|
+
});
|
|
112
|
+
// Remove inactive items from end to start
|
|
113
|
+
let i = plotItems.length;
|
|
114
|
+
while (i--) {
|
|
115
|
+
if (!plotItems[i].isActive) {
|
|
116
|
+
plotItems[i].remove();
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
delete plotItems[i].isActive;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
121
124
|
});
|
|
122
125
|
}
|
|
123
126
|
return AxisClass;
|
|
@@ -188,23 +191,6 @@ var PlotLineOrBandAxis;
|
|
|
188
191
|
}
|
|
189
192
|
return result;
|
|
190
193
|
}
|
|
191
|
-
/**
|
|
192
|
-
* Remove a plot band by its id.
|
|
193
|
-
*
|
|
194
|
-
* @sample highcharts/members/axis-removeplotband/
|
|
195
|
-
* Remove plot band by id
|
|
196
|
-
* @sample highcharts/members/axis-addplotband/
|
|
197
|
-
* Toggle the plot band from a button
|
|
198
|
-
*
|
|
199
|
-
* @function Highcharts.Axis#removePlotBand
|
|
200
|
-
*
|
|
201
|
-
* @param {string} id
|
|
202
|
-
* The plot band's `id` as given in the original configuration
|
|
203
|
-
* object or in the `addPlotBand` option.
|
|
204
|
-
*/
|
|
205
|
-
function removePlotBand(id) {
|
|
206
|
-
this.removePlotBandOrLine(id);
|
|
207
|
-
}
|
|
208
194
|
/**
|
|
209
195
|
* Remove a plot band or plot line from the chart by id. Called
|
|
210
196
|
* internally from `removePlotBand` and `removePlotLine`.
|
|
@@ -212,45 +198,7 @@ var PlotLineOrBandAxis;
|
|
|
212
198
|
* @function Highcharts.Axis#removePlotBandOrLine
|
|
213
199
|
*/
|
|
214
200
|
function removePlotBandOrLine(id) {
|
|
215
|
-
|
|
216
|
-
if (plotLinesAndBands) { // #15639
|
|
217
|
-
let i = plotLinesAndBands.length;
|
|
218
|
-
while (i--) {
|
|
219
|
-
if (plotLinesAndBands[i].id === id) {
|
|
220
|
-
plotLinesAndBands[i].destroy();
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
([
|
|
224
|
-
options.plotLines || [],
|
|
225
|
-
userOptions.plotLines || [],
|
|
226
|
-
options.plotBands || [],
|
|
227
|
-
userOptions.plotBands || []
|
|
228
|
-
]).forEach(function (arr) {
|
|
229
|
-
i = arr.length;
|
|
230
|
-
while (i--) {
|
|
231
|
-
if (arr[i]?.id === id) {
|
|
232
|
-
erase(arr, arr[i]);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Remove a plot line by its id.
|
|
240
|
-
*
|
|
241
|
-
* @sample highcharts/xaxis/plotlines-id/
|
|
242
|
-
* Remove plot line by id
|
|
243
|
-
* @sample highcharts/members/axis-addplotline/
|
|
244
|
-
* Toggle the plot line from a button
|
|
245
|
-
*
|
|
246
|
-
* @function Highcharts.Axis#removePlotLine
|
|
247
|
-
*
|
|
248
|
-
* @param {string} id
|
|
249
|
-
* The plot line's `id` as given in the original configuration
|
|
250
|
-
* object or in the `addPlotLine` option.
|
|
251
|
-
*/
|
|
252
|
-
function removePlotLine(id) {
|
|
253
|
-
this.removePlotBandOrLine(id);
|
|
201
|
+
[...this.plotBands || [], ...this.plotLines || []].find((plotItem) => plotItem.id === id)?.remove();
|
|
254
202
|
}
|
|
255
203
|
})(PlotLineOrBandAxis || (PlotLineOrBandAxis = {}));
|
|
256
204
|
/* *
|
|
@@ -461,6 +461,47 @@ var RadialAxis;
|
|
|
461
461
|
(titleOptions.y || 0))
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* Before modifying the axis properities, save references to the unmodified
|
|
466
|
+
* properties so that they can be restored when switching back from radial
|
|
467
|
+
* to cartesian.
|
|
468
|
+
*/
|
|
469
|
+
function saveUnmodified(axis) {
|
|
470
|
+
axis.unmodifiedProps || (axis.unmodifiedProps = [
|
|
471
|
+
'beforeSetTickPositions',
|
|
472
|
+
'createLabelCollector',
|
|
473
|
+
'getCrosshairPosition',
|
|
474
|
+
'getLinePath',
|
|
475
|
+
'getOffset',
|
|
476
|
+
'getPlotBandPath',
|
|
477
|
+
'getPlotLinePath',
|
|
478
|
+
'getPosition',
|
|
479
|
+
'getTitlePosition',
|
|
480
|
+
'isHidden',
|
|
481
|
+
'postTranslate',
|
|
482
|
+
'redraw',
|
|
483
|
+
'render',
|
|
484
|
+
'setAxisSize',
|
|
485
|
+
'setAxisTranslation',
|
|
486
|
+
'setCategories',
|
|
487
|
+
'setOptions',
|
|
488
|
+
'setScale',
|
|
489
|
+
'setTitle'
|
|
490
|
+
].reduce((obj, fnName) => {
|
|
491
|
+
obj[fnName] = axis[fnName];
|
|
492
|
+
return obj;
|
|
493
|
+
}, {}));
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Restore unmodified axis properties.
|
|
497
|
+
*/
|
|
498
|
+
function unmodify(axis) {
|
|
499
|
+
const props = axis.unmodifiedProps;
|
|
500
|
+
if (isObject(props)) {
|
|
501
|
+
extend(axis, props);
|
|
502
|
+
delete axis.unmodifiedProps;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
464
505
|
/**
|
|
465
506
|
* Modify radial axis.
|
|
466
507
|
* @internal
|
|
@@ -584,6 +625,7 @@ var RadialAxis;
|
|
|
584
625
|
return;
|
|
585
626
|
}
|
|
586
627
|
// Before prototype.init
|
|
628
|
+
saveUnmodified(this);
|
|
587
629
|
if (angular) {
|
|
588
630
|
if (isHidden) {
|
|
589
631
|
modifyAsHidden(this);
|
|
@@ -598,6 +640,9 @@ var RadialAxis;
|
|
|
598
640
|
// Check which axis is circular
|
|
599
641
|
isCircular = this.horiz;
|
|
600
642
|
}
|
|
643
|
+
else {
|
|
644
|
+
unmodify(this);
|
|
645
|
+
}
|
|
601
646
|
// Disable certain features on angular and polar axes
|
|
602
647
|
if (angular || polar) {
|
|
603
648
|
this.isRadial = true;
|
|
@@ -642,7 +687,7 @@ var RadialAxis;
|
|
|
642
687
|
correctAngle + 360 : correctAngle, reducedAngle2 = reducedAngle1, translateY = 0, translateX = 0;
|
|
643
688
|
if (axis.isRadial) { // Both X and Y axes in a polar chart
|
|
644
689
|
ret = axis.getPosition(this.pos, (axis.center[2] / 2) +
|
|
645
|
-
relativeLength(labelOptions.distance ??
|
|
690
|
+
relativeLength(labelOptions.distance ?? 15, axis.center[2] / 2) +
|
|
646
691
|
axis.offset);
|
|
647
692
|
// Automatically rotated
|
|
648
693
|
if (labelOptions.rotation === 'auto') {
|
|
@@ -823,6 +868,8 @@ var RadialAxis;
|
|
|
823
868
|
start = this.postTranslate(this.angleRad, center[3] / 2);
|
|
824
869
|
center[0] = start.x - this.chart.plotLeft;
|
|
825
870
|
center[1] = start.y - this.chart.plotTop;
|
|
871
|
+
// After updating chart.inverted
|
|
872
|
+
delete this.sector;
|
|
826
873
|
// Axis len is used to lay out the ticks
|
|
827
874
|
this.len = this.width = this.height =
|
|
828
875
|
(center[2] - center[3]) / 2;
|
|
@@ -913,12 +960,8 @@ var RadialAxis;
|
|
|
913
960
|
if (axis.isRadial) {
|
|
914
961
|
endPoint = axis.getPosition(this.pos, axis.center[2] / 2 + tickLength);
|
|
915
962
|
ret = [
|
|
916
|
-
'M',
|
|
917
|
-
x,
|
|
918
|
-
y,
|
|
919
|
-
'L',
|
|
920
|
-
endPoint.x,
|
|
921
|
-
endPoint.y
|
|
963
|
+
['M', x, y],
|
|
964
|
+
['L', endPoint.x, endPoint.y]
|
|
922
965
|
];
|
|
923
966
|
}
|
|
924
967
|
else {
|