highcharts 11.3.0 → 11.4.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/README.md +1 -1
- package/bower.json +1 -1
- package/css/annotations/popup.css +27 -19
- package/css/stocktools/gui.css +19 -7
- package/es-modules/Accessibility/A11yI18n.js +4 -6
- package/es-modules/Accessibility/Accessibility.js +8 -6
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +11 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +4 -4
- package/es-modules/Accessibility/Components/MenuComponent.js +3 -6
- package/es-modules/Accessibility/Components/NavigatorComponent.js +6 -3
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +4 -7
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +18 -3
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +5 -3
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +4 -4
- package/es-modules/Accessibility/FocusBorder.js +5 -5
- package/es-modules/Accessibility/HighContrastMode.js +22 -13
- package/es-modules/Accessibility/HighContrastTheme.js +2 -6
- package/es-modules/Accessibility/KeyboardNavigation.js +17 -8
- package/es-modules/Accessibility/Options/A11yDefaults.js +11 -1
- package/es-modules/Accessibility/ProxyElement.js +4 -4
- package/es-modules/Accessibility/ProxyProvider.js +8 -2
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +8 -0
- package/es-modules/Accessibility/Utils/EventProvider.js +9 -0
- package/es-modules/Core/Animation/Fx.js +3 -3
- package/es-modules/Core/Axis/Axis.js +43 -97
- package/es-modules/Core/Axis/Axis3DComposition.js +5 -5
- package/es-modules/Core/Axis/Axis3DDefaults.js +1 -1
- package/es-modules/Core/Axis/AxisDefaults.js +18 -7
- package/es-modules/Core/Axis/BrokenAxis.js +4 -6
- package/es-modules/Core/Axis/Color/ColorAxis.js +2 -1
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -5
- package/es-modules/Core/Axis/DateTimeAxis.js +3 -5
- package/es-modules/Core/Axis/GridAxis.js +7 -7
- package/es-modules/Core/Axis/LogarithmicAxis.js +2 -4
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +26 -22
- package/es-modules/Core/Axis/OrdinalAxis.js +97 -53
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -3
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +4 -5
- package/es-modules/Core/Axis/RadialAxis.js +5 -5
- package/es-modules/Core/Axis/ScrollbarAxis.js +2 -2
- package/es-modules/Core/Axis/Stacking/StackItem.js +8 -4
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +3 -5
- package/es-modules/Core/Axis/Tick.js +16 -7
- package/es-modules/Core/Axis/Tick3DComposition.js +2 -2
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +4 -8
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +3 -6
- package/es-modules/Core/Axis/WaterfallAxis.js +3 -3
- package/es-modules/Core/Axis/ZAxis.js +6 -11
- package/es-modules/Core/Chart/Chart.js +201 -176
- package/es-modules/Core/Chart/Chart3D.js +1 -1
- package/es-modules/Core/Chart/ChartDefaults.js +7 -0
- package/es-modules/Core/Chart/GanttChart.js +2 -2
- package/es-modules/Core/Chart/MapChart.js +12 -2
- package/es-modules/Core/Chart/StockChart.js +12 -11
- package/es-modules/Core/Color/Color.js +3 -3
- package/es-modules/Core/Color/Palettes.js +2 -2
- package/es-modules/Core/Defaults.js +18 -15
- package/es-modules/Core/Geometry/CircleUtilities.js +3 -3
- package/es-modules/Core/Globals.js +2 -2
- package/es-modules/Core/HttpUtilities.js +4 -4
- package/es-modules/Core/Legend/Legend.js +6 -6
- package/es-modules/Core/MSPointer.js +7 -7
- package/es-modules/Core/Pointer.js +230 -245
- package/es-modules/Core/Renderer/HTML/AST.js +1 -1
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +213 -26
- package/es-modules/Core/Renderer/RendererUtilities.js +1 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +85 -52
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +14 -11
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +17 -14
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +8 -7
- package/es-modules/Core/Renderer/SVG/Symbols.js +1 -1
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +2 -2
- package/es-modules/Core/Responsive.js +5 -6
- package/es-modules/Core/Series/DataLabel.js +70 -90
- package/es-modules/Core/Series/DataSeriesComposition.js +1 -1
- package/es-modules/Core/Series/DataSeriesConverter.js +2 -2
- package/es-modules/Core/Series/Point.js +48 -40
- package/es-modules/Core/Series/Series.js +61 -51
- package/es-modules/Core/Series/Series3D.js +2 -2
- package/es-modules/Core/Series/SeriesRegistry.js +10 -2
- package/es-modules/Core/Templating.js +1 -1
- package/es-modules/Core/Time.js +12 -7
- package/es-modules/Core/Tooltip.js +19 -17
- package/es-modules/Core/Utilities.js +54 -26
- package/es-modules/Data/Connectors/CSVConnector.js +2 -2
- package/es-modules/Data/Connectors/DataConnector.js +4 -2
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +2 -2
- package/es-modules/Data/Connectors/HTMLTableConnector.js +2 -2
- package/es-modules/Data/Connectors/JSONConnector.js +3 -5
- package/es-modules/Data/Converters/CSVConverter.js +1 -3
- package/es-modules/Data/Converters/DataConverter.js +8 -2
- package/es-modules/Data/Converters/HTMLTableConverter.js +1 -3
- package/es-modules/Data/Converters/JSONConverter.js +1 -0
- package/es-modules/Data/DataTable.js +1 -2
- package/es-modules/Data/Formula/FormulaProcessor.js +4 -2
- package/es-modules/Data/Modifiers/DataModifier.js +15 -3
- package/es-modules/Extensions/Annotations/Annotation.js +6 -7
- package/es-modules/Extensions/Annotations/AnnotationChart.js +4 -5
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +4 -4
- package/es-modules/Extensions/Annotations/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/ControlTarget.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/Controllable.js +7 -3
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +3 -3
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +8 -9
- package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -4
- package/es-modules/Extensions/Annotations/EventEmitter.js +6 -6
- package/es-modules/Extensions/Annotations/NavigationBindings.js +29 -18
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +6 -6
- package/es-modules/Extensions/Annotations/Popup/Popup.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +10 -6
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupIndicators.js +31 -31
- package/es-modules/Extensions/Annotations/Popup/PopupTabs.js +1 -1
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +14 -11
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +1 -1
- package/es-modules/Extensions/ArrowSymbols.js +7 -13
- package/es-modules/Extensions/Boost/Boost.js +39 -7
- package/es-modules/Extensions/Boost/BoostChart.js +4 -4
- package/es-modules/Extensions/Boost/BoostSeries.js +58 -13
- package/es-modules/Extensions/Boost/WGLRenderer.js +3 -3
- package/es-modules/Extensions/Boost/WGLVertexBuffer.js +1 -1
- package/es-modules/Extensions/BoostCanvas.js +5 -4
- package/es-modules/Extensions/BorderRadius.js +5 -4
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +9 -9
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +11 -11
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +1 -1
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +8 -9
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +1 -1
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +6 -7
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/Debugger/ErrorMessages.js +2 -2
- package/es-modules/Extensions/DragPanes/AxisResizer.js +13 -16
- package/es-modules/Extensions/DragPanes/DragPanes.js +2 -4
- package/es-modules/Extensions/DraggablePoints/DragDropDefaults.js +2 -1
- package/es-modules/Extensions/DraggablePoints/DragDropUtilities.js +1 -1
- package/es-modules/Extensions/DraggablePoints/DraggableChart.js +4 -4
- package/es-modules/Extensions/DraggablePoints/DraggablePoints.js +8 -9
- package/es-modules/Extensions/Drilldown/Drilldown.js +11 -9
- package/es-modules/Extensions/Drilldown/DrilldownSeries.js +5 -6
- package/es-modules/Extensions/ExportData/ExportData.js +27 -18
- package/es-modules/Extensions/Exporting/Exporting.js +25 -20
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +1 -1
- package/es-modules/Extensions/Exporting/Fullscreen.js +5 -10
- package/es-modules/Extensions/MarkerClusters/MarkerClusterScatter.js +26 -21
- package/es-modules/Extensions/MarkerClusters/MarkerClusterSymbols.js +2 -12
- package/es-modules/Extensions/MarkerClusters/MarkerClusters.js +3 -3
- package/es-modules/Extensions/MouseWheelZoom/MouseWheelZoom.js +51 -161
- package/es-modules/Extensions/NoDataToDisplay/NoDataToDisplay.js +3 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -6
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/OverlappingDataLabels.js +21 -49
- package/es-modules/Extensions/Pane/PaneComposition.js +3 -5
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +2 -4
- package/es-modules/Extensions/ParallelCoordinates/ParallelCoordinates.js +5 -6
- package/es-modules/Extensions/ParallelCoordinates/ParallelSeries.js +1 -1
- package/es-modules/Extensions/PatternFill.js +19 -22
- package/es-modules/Extensions/PriceIndication.js +1 -1
- package/es-modules/Extensions/ScrollablePlotArea.js +218 -292
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +26 -18
- package/es-modules/Extensions/Sonification/Options.js +1 -0
- package/es-modules/Extensions/Sonification/SonificationSpeaker.js +2 -2
- package/es-modules/Extensions/Sonification/SynthPatch.js +3 -3
- package/es-modules/Extensions/StaticScale.js +3 -5
- package/es-modules/Gantt/Legacy.js +1 -1
- package/es-modules/Gantt/Pathfinder.js +2 -2
- package/es-modules/Gantt/PathfinderComposition.js +3 -5
- package/es-modules/Gantt/Tree.js +3 -3
- package/es-modules/Maps/GeoJSONComposition.js +20 -13
- package/es-modules/Maps/MapNavigation.js +2 -2
- package/es-modules/Maps/MapPointer.js +3 -19
- package/es-modules/Maps/MapSymbols.js +3 -9
- package/es-modules/Maps/MapView.js +134 -74
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +5 -4
- package/es-modules/Series/Area/AreaSeries.js +2 -4
- package/es-modules/Series/Area3D/Area3DSeries.js +1 -1
- package/es-modules/Series/AreaRange/AreaRangePoint.js +2 -2
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +2 -3
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +1 -1
- package/es-modules/Series/Bar/BarSeries.js +1 -1
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +1 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +4 -0
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +1 -1
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +2 -2
- package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
- package/es-modules/Series/Bubble/BubbleSeries.js +1 -1
- package/es-modules/Series/Bullet/BulletSeriesDefaults.js +2 -2
- package/es-modules/Series/Candlestick/CandlestickSeries.js +2 -2
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +1 -5
- package/es-modules/Series/ColorMapComposition.js +1 -1
- package/es-modules/Series/Column/ColumnDataLabel.js +2 -2
- package/es-modules/Series/Column/ColumnSeries.js +20 -22
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +1 -1
- package/es-modules/Series/Column3D/Column3DComposition.js +1 -1
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
- package/es-modules/Series/Cylinder/CylinderComposition.js +9 -9
- package/es-modules/Series/DataModifyComposition.js +5 -5
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +3 -2
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +1 -1
- package/es-modules/Series/DragNodesComposition.js +7 -7
- package/es-modules/Series/DrawPointUtilities.js +0 -2
- package/es-modules/Series/Dumbbell/DumbbellSeriesDefaults.js +1 -1
- package/es-modules/Series/Funnel/FunnelSeries.js +1 -1
- package/es-modules/Series/Funnel3D/Funnel3DComposition.js +6 -6
- package/es-modules/Series/Funnel3D/Funnel3DSeriesDefaults.js +2 -2
- package/es-modules/Series/Funnel3D/SVGElement3DFunnel.js +1 -1
- package/es-modules/Series/Gantt/GanttSeries.js +0 -1
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +5 -5
- package/es-modules/Series/GraphLayoutComposition.js +1 -1
- package/es-modules/Series/Heatmap/HeatmapSeries.js +2 -2
- package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +1 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +3 -3
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +1 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +2 -2
- package/es-modules/Series/Item/ItemSeries.js +1 -1
- package/es-modules/Series/Line/LineSeries.js +1 -1
- package/es-modules/Series/Lollipop/LollipopSeries.js +3 -1
- package/es-modules/Series/Map/MapPoint.js +5 -1
- package/es-modules/Series/Map/MapSeries.js +32 -7
- package/es-modules/Series/Map/MapSeriesDefaults.js +5 -3
- package/es-modules/Series/Networkgraph/EulerIntegration.js +5 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +4 -4
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +5 -5
- package/es-modules/Series/Networkgraph/QuadTree.js +1 -1
- package/es-modules/Series/Networkgraph/QuadTreeNode.js +1 -1
- package/es-modules/Series/Networkgraph/VerletIntegration.js +9 -9
- package/es-modules/Series/NodesComposition.js +1 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +1 -1
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +1 -1
- package/es-modules/Series/OnSeriesComposition.js +1 -1
- package/es-modules/Series/Organization/OrganizationPoint.js +1 -1
- package/es-modules/Series/Organization/OrganizationSeries.js +22 -10
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +15 -2
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +3 -5
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +6 -10
- package/es-modules/Series/Pictorial/PictorialSeries.js +2 -2
- package/es-modules/Series/Pie/PieDataLabel.js +2 -2
- package/es-modules/Series/Pie/PiePoint.js +1 -1
- package/es-modules/Series/Pie/PieSeries.js +10 -1
- package/es-modules/Series/Pie/PieSeriesDefaults.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +2 -2
- package/es-modules/Series/PolarComposition.js +22 -20
- package/es-modules/Series/Sankey/SankeyColumnComposition.js +1 -1
- package/es-modules/Series/Sankey/SankeySeries.js +8 -8
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +57 -13
- package/es-modules/Series/SeriesOnPointComposition.js +3 -3
- package/es-modules/Series/Spline/SplineSeries.js +1 -1
- package/es-modules/Series/Sunburst/SunburstPoint.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +2 -7
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +3 -3
- package/es-modules/Series/Sunburst/SunburstUtilities.js +1 -1
- package/es-modules/Series/TiledWebMap/TiledWebMapSeries.js +23 -25
- package/es-modules/Series/Tilemap/TilemapSeries.js +2 -2
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -2
- package/es-modules/Series/TreeUtilities.js +23 -1
- package/es-modules/Series/Treegraph/TreegraphLayout.js +7 -11
- package/es-modules/Series/Treegraph/TreegraphPoint.js +1 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +8 -8
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +39 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +4 -2
- package/es-modules/Series/Treemap/TreemapUtilities.js +0 -7
- package/es-modules/Series/Variwide/VariwideComposition.js +6 -2
- package/es-modules/Series/Variwide/VariwideSeries.js +1 -1
- package/es-modules/Series/Venn/VennSeries.js +4 -4
- package/es-modules/Series/Venn/VennUtils.js +5 -6
- package/es-modules/Series/Waterfall/WaterfallSeriesDefaults.js +1 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +1 -1
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -4
- package/es-modules/Series/XRange/XRangePoint.js +2 -2
- package/es-modules/Series/XRange/XRangeSeries.js +1 -1
- package/es-modules/Shared/BaseForm.js +1 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +3 -1
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +1 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +2 -2
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegressionIndicator.js +7 -7
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +9 -9
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -2
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +16 -17
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +4 -5
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +5 -5
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +188 -0
- package/es-modules/Stock/Navigator/Navigator.js +42 -27
- package/es-modules/Stock/Navigator/NavigatorComposition.js +10 -149
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +16 -2
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +334 -0
- package/es-modules/Stock/Navigator/StandaloneNavigatorDefaults.js +64 -0
- package/es-modules/Stock/RangeSelector/RangeSelector.js +28 -16
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +2 -2
- package/es-modules/Stock/Scrollbar/Scrollbar.js +10 -10
- package/es-modules/Stock/Scrollbar/ScrollbarDefaults.js +1 -3
- package/es-modules/Stock/StockTools/StockToolbar.js +6 -5
- package/es-modules/Stock/StockTools/StockTools.js +10 -13
- package/es-modules/Stock/StockTools/StockToolsBindings.js +35 -35
- package/es-modules/Stock/StockTools/StockToolsDefaults.js +2 -1
- package/es-modules/Stock/StockTools/StockToolsGui.js +7 -8
- package/es-modules/Stock/StockTools/StockToolsUtilities.js +8 -9
- package/es-modules/Stock/Utilities/StockUtilities.js +41 -0
- package/es-modules/masters/highcharts-3d.src.js +2 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +2 -1
- package/es-modules/masters/highcharts.src.js +41 -40
- 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 +3 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +3 -1
- package/es-modules/masters/indicators/ao.src.js +3 -1
- package/es-modules/masters/indicators/apo.src.js +3 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +3 -1
- package/es-modules/masters/indicators/aroon.src.js +3 -1
- package/es-modules/masters/indicators/atr.src.js +3 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +3 -1
- package/es-modules/masters/indicators/cci.src.js +3 -1
- package/es-modules/masters/indicators/chaikin.src.js +3 -1
- package/es-modules/masters/indicators/cmf.src.js +3 -1
- package/es-modules/masters/indicators/cmo.src.js +3 -1
- package/es-modules/masters/indicators/dema.src.js +3 -1
- package/es-modules/masters/indicators/disparity-index.src.js +3 -1
- package/es-modules/masters/indicators/dmi.src.js +3 -1
- package/es-modules/masters/indicators/dpo.src.js +3 -1
- package/es-modules/masters/indicators/ema.src.js +2 -0
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +3 -1
- package/es-modules/masters/indicators/indicators-all.src.js +3 -1
- package/es-modules/masters/indicators/indicators.src.js +7 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +3 -1
- package/es-modules/masters/indicators/klinger.src.js +3 -1
- package/es-modules/masters/indicators/macd.src.js +3 -1
- package/es-modules/masters/indicators/mfi.src.js +3 -1
- package/es-modules/masters/indicators/momentum.src.js +3 -1
- package/es-modules/masters/indicators/natr.src.js +3 -1
- package/es-modules/masters/indicators/obv.src.js +3 -1
- package/es-modules/masters/indicators/pivot-points.src.js +3 -1
- package/es-modules/masters/indicators/ppo.src.js +3 -1
- package/es-modules/masters/indicators/price-channel.src.js +3 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +3 -1
- package/es-modules/masters/indicators/psar.src.js +3 -1
- package/es-modules/masters/indicators/regressions.src.js +3 -1
- package/es-modules/masters/indicators/roc.src.js +3 -1
- package/es-modules/masters/indicators/rsi.src.js +3 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +3 -1
- package/es-modules/masters/indicators/stochastic.src.js +3 -1
- package/es-modules/masters/indicators/supertrend.src.js +3 -1
- package/es-modules/masters/indicators/tema.src.js +3 -1
- package/es-modules/masters/indicators/trendline.src.js +3 -1
- package/es-modules/masters/indicators/trix.src.js +3 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +3 -1
- package/es-modules/masters/indicators/vwap.src.js +3 -1
- package/es-modules/masters/indicators/williams-r.src.js +3 -1
- package/es-modules/masters/indicators/wma.src.js +3 -1
- package/es-modules/masters/indicators/zigzag.src.js +3 -1
- package/es-modules/masters/modules/accessibility.src.js +4 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +3 -5
- package/es-modules/masters/modules/annotations.src.js +6 -3
- package/es-modules/masters/modules/arc-diagram.src.js +3 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +2 -1
- package/es-modules/masters/modules/boost-canvas.src.js +2 -1
- package/es-modules/masters/modules/boost.src.js +3 -2
- package/es-modules/masters/modules/broken-axis.src.js +4 -3
- package/es-modules/masters/modules/bullet.src.js +3 -1
- package/es-modules/masters/modules/coloraxis.src.js +4 -3
- package/es-modules/masters/modules/current-date-indicator.src.js +2 -1
- package/es-modules/masters/modules/cylinder.src.js +3 -1
- package/es-modules/masters/modules/data-tools.src.js +9 -8
- package/es-modules/masters/modules/data.src.js +9 -8
- package/es-modules/masters/modules/datagrouping.src.js +7 -5
- package/es-modules/masters/modules/debugger.src.js +3 -2
- package/es-modules/masters/modules/dependency-wheel.src.js +3 -1
- package/es-modules/masters/modules/dotplot.src.js +3 -1
- package/es-modules/masters/modules/drag-panes.src.js +2 -1
- package/es-modules/masters/modules/draggable-points.src.js +2 -1
- package/es-modules/masters/modules/drilldown.src.js +3 -2
- package/es-modules/masters/modules/dumbbell.src.js +3 -1
- package/es-modules/masters/modules/export-data.src.js +5 -4
- package/es-modules/masters/modules/exporting.src.js +6 -5
- package/es-modules/masters/modules/flowmap.src.js +3 -1
- package/es-modules/masters/modules/full-screen.src.js +4 -3
- package/es-modules/masters/modules/funnel.src.js +2 -1
- package/es-modules/masters/modules/funnel3d.src.js +4 -3
- package/es-modules/masters/modules/gantt.src.js +15 -17
- package/es-modules/masters/modules/geoheatmap.src.js +3 -1
- package/es-modules/masters/modules/grid-axis.src.js +2 -1
- package/es-modules/masters/modules/heatmap.src.js +3 -5
- package/es-modules/masters/modules/heikinashi.src.js +2 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +3 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +3 -1
- package/es-modules/masters/modules/item-series.src.js +3 -1
- package/es-modules/masters/modules/lollipop.src.js +3 -1
- package/es-modules/masters/modules/map.src.js +15 -10
- package/es-modules/masters/modules/marker-clusters.src.js +2 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +4 -2
- package/es-modules/masters/modules/navigator.src.d.ts +1 -0
- package/es-modules/masters/modules/navigator.src.js +19 -0
- package/es-modules/masters/modules/networkgraph.src.js +2 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +2 -1
- package/es-modules/masters/modules/offline-exporting.src.js +4 -3
- package/es-modules/masters/modules/organization.src.js +3 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +4 -2
- package/es-modules/masters/modules/parallel-coordinates.src.js +2 -1
- package/es-modules/masters/modules/pareto.src.js +3 -1
- package/es-modules/masters/modules/pathfinder.src.js +4 -3
- package/es-modules/masters/modules/pattern-fill.src.js +2 -1
- package/es-modules/masters/modules/pictorial.src.js +3 -1
- package/es-modules/masters/modules/price-indicator.src.js +2 -1
- package/es-modules/masters/modules/pyramid3d.src.js +3 -1
- package/es-modules/masters/modules/sankey.src.js +3 -1
- package/es-modules/masters/modules/series-label.src.js +2 -1
- package/es-modules/masters/modules/series-on-point.src.js +2 -1
- package/es-modules/masters/modules/solid-gauge.src.js +3 -1
- package/es-modules/masters/modules/sonification.src.js +2 -1
- package/es-modules/masters/modules/static-scale.src.js +2 -1
- package/es-modules/masters/modules/stock-tools.src.js +5 -3
- package/es-modules/masters/modules/stock.src.js +20 -15
- package/es-modules/masters/modules/streamgraph.src.js +3 -1
- package/es-modules/masters/modules/sunburst.src.js +4 -3
- package/es-modules/masters/modules/tiledwebmap.src.js +5 -4
- package/es-modules/masters/modules/tilemap.src.js +2 -1
- package/es-modules/masters/modules/timeline.src.js +3 -1
- package/es-modules/masters/modules/treegraph.src.js +3 -1
- package/es-modules/masters/modules/treegrid.src.js +2 -2
- package/es-modules/masters/modules/treemap.src.js +5 -4
- package/es-modules/masters/modules/variable-pie.src.js +3 -1
- package/es-modules/masters/modules/variwide.src.js +2 -1
- package/es-modules/masters/modules/vector.src.js +3 -1
- package/es-modules/masters/modules/venn.src.js +3 -1
- package/es-modules/masters/modules/windbarb.src.js +3 -1
- package/es-modules/masters/modules/wordcloud.src.js +3 -1
- package/es-modules/masters/modules/xrange.src.js +2 -1
- package/es-modules/masters/standalone-navigator.src.js +13 -0
- package/es-modules/masters/themes/avocado.src.js +2 -1
- package/es-modules/masters/themes/brand-dark.src.js +2 -1
- package/es-modules/masters/themes/brand-light.src.js +2 -1
- package/es-modules/masters/themes/dark-blue.src.js +2 -1
- package/es-modules/masters/themes/dark-green.src.js +2 -1
- package/es-modules/masters/themes/dark-unica.src.js +2 -1
- package/es-modules/masters/themes/gray.src.js +2 -1
- package/es-modules/masters/themes/grid-light.src.js +2 -1
- package/es-modules/masters/themes/grid.src.js +2 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +2 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +2 -1
- package/es-modules/masters/themes/sand-signika.src.js +2 -1
- package/es-modules/masters/themes/skies.src.js +2 -1
- package/es-modules/masters/themes/sunset.src.js +2 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -0
- package/globals.d.ts +9 -0
- package/globals.src.d.ts +9 -0
- package/highcharts-3d.js +3 -3
- package/highcharts-3d.src.js +32 -33
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +5703 -5639
- package/highcharts-more.d.ts +4 -0
- package/highcharts-more.js +3 -3
- package/highcharts-more.src.d.ts +4 -0
- package/highcharts-more.src.js +88 -87
- package/highcharts.d.ts +834 -5365
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +834 -5365
- package/highcharts.src.js +1583 -1682
- package/highmaps.js +4 -4
- package/highmaps.src.js +1837 -1835
- package/highstock.js +4 -4
- package/highstock.src.js +12488 -12510
- package/indicators/acceleration-bands.js +3 -3
- package/indicators/acceleration-bands.src.js +12 -11
- package/indicators/accumulation-distribution.js +3 -3
- package/indicators/accumulation-distribution.src.js +6 -3
- package/indicators/ao.js +3 -3
- package/indicators/ao.src.js +3 -2
- package/indicators/apo.js +3 -3
- package/indicators/apo.src.js +4 -3
- package/indicators/aroon-oscillator.js +3 -3
- package/indicators/aroon-oscillator.src.js +12 -11
- package/indicators/aroon.js +3 -3
- package/indicators/aroon.src.js +13 -12
- package/indicators/atr.js +3 -3
- package/indicators/atr.src.js +3 -2
- package/indicators/bollinger-bands.js +3 -3
- package/indicators/bollinger-bands.src.js +12 -11
- package/indicators/cci.js +3 -3
- package/indicators/cci.src.js +3 -2
- package/indicators/chaikin.js +3 -3
- package/indicators/chaikin.src.js +7 -4
- package/indicators/cmf.js +3 -3
- package/indicators/cmf.src.js +4 -3
- package/indicators/cmo.js +3 -3
- package/indicators/cmo.src.js +5 -4
- package/indicators/dema.js +3 -3
- package/indicators/dema.src.js +3 -2
- package/indicators/disparity-index.js +3 -3
- package/indicators/disparity-index.src.js +3 -2
- package/indicators/dmi.js +3 -3
- package/indicators/dmi.src.js +12 -11
- package/indicators/dpo.js +3 -3
- package/indicators/dpo.src.js +4 -3
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +2 -1
- package/indicators/ichimoku-kinko-hyo.js +3 -3
- package/indicators/ichimoku-kinko-hyo.src.js +3 -2
- package/indicators/indicators-all.js +3 -3
- package/indicators/indicators-all.src.js +63 -60
- package/indicators/indicators.js +3 -3
- package/indicators/indicators.src.js +286 -3
- package/indicators/keltner-channels.js +3 -3
- package/indicators/keltner-channels.src.js +12 -11
- package/indicators/klinger.js +3 -3
- package/indicators/klinger.src.js +13 -12
- package/indicators/macd.js +3 -3
- package/indicators/macd.src.js +3 -2
- package/indicators/mfi.js +3 -3
- package/indicators/mfi.src.js +3 -2
- package/indicators/momentum.js +3 -3
- package/indicators/momentum.src.js +3 -2
- package/indicators/natr.js +3 -3
- package/indicators/natr.src.js +3 -2
- package/indicators/obv.js +3 -3
- package/indicators/obv.src.js +4 -3
- package/indicators/pivot-points.js +3 -3
- package/indicators/pivot-points.src.js +5 -4
- package/indicators/ppo.js +3 -3
- package/indicators/ppo.src.js +4 -3
- package/indicators/price-channel.js +3 -3
- package/indicators/price-channel.src.js +12 -11
- package/indicators/price-envelopes.js +3 -3
- package/indicators/price-envelopes.src.js +12 -11
- package/indicators/psar.js +3 -3
- package/indicators/psar.src.js +3 -2
- package/indicators/regressions.js +3 -3
- package/indicators/regressions.src.js +10 -9
- package/indicators/roc.js +3 -3
- package/indicators/roc.src.js +3 -2
- package/indicators/rsi.js +3 -3
- package/indicators/rsi.src.js +3 -2
- package/indicators/slow-stochastic.js +3 -3
- package/indicators/slow-stochastic.src.js +3 -2
- package/indicators/stochastic.js +3 -3
- package/indicators/stochastic.src.js +12 -11
- package/indicators/supertrend.js +3 -3
- package/indicators/supertrend.src.js +20 -19
- package/indicators/tema.js +3 -3
- package/indicators/tema.src.js +3 -2
- package/indicators/trendline.js +3 -3
- package/indicators/trendline.src.js +3 -2
- package/indicators/trix.js +3 -3
- package/indicators/trix.src.js +3 -2
- package/indicators/volume-by-price.js +3 -3
- package/indicators/volume-by-price.src.js +8 -7
- package/indicators/vwap.js +3 -3
- package/indicators/vwap.src.js +3 -2
- package/indicators/williams-r.js +3 -3
- package/indicators/williams-r.src.js +4 -3
- package/indicators/wma.js +3 -3
- package/indicators/wma.src.js +3 -2
- package/indicators/zigzag.js +3 -3
- package/indicators/zigzag.src.js +8 -7
- package/lib/svg2pdf.js +7 -7
- package/lib/svg2pdf.src.js +185 -150
- package/modules/accessibility.js +3 -3
- package/modules/accessibility.src.js +664 -2793
- package/modules/annotations-advanced.d.ts +3 -0
- package/modules/annotations-advanced.js +3 -3
- package/modules/annotations-advanced.src.d.ts +3 -0
- package/modules/annotations-advanced.src.js +2949 -2920
- package/modules/annotations.d.ts +0 -3
- package/modules/annotations.js +3 -3
- package/modules/annotations.src.d.ts +0 -3
- package/modules/annotations.src.js +2926 -2905
- package/modules/arc-diagram.js +3 -3
- package/modules/arc-diagram.src.js +8 -6
- package/modules/arrow-symbols.js +3 -3
- package/modules/arrow-symbols.src.js +10 -13
- package/modules/boost-canvas.js +3 -3
- package/modules/boost-canvas.src.js +73 -26
- package/modules/boost.js +3 -3
- package/modules/boost.src.js +108 -30
- package/modules/broken-axis.js +3 -3
- package/modules/broken-axis.src.js +9 -9
- package/modules/bullet.js +3 -3
- package/modules/bullet.src.js +5 -4
- package/modules/coloraxis.js +3 -3
- package/modules/coloraxis.src.js +10 -9
- package/modules/current-date-indicator.js +3 -3
- package/modules/current-date-indicator.src.js +3 -2
- package/modules/cylinder.js +3 -3
- package/modules/cylinder.src.js +12 -11
- package/modules/data-tools.js +3 -3
- package/modules/data-tools.src.js +53 -36
- package/modules/data.d.ts +2 -2
- package/modules/data.js +3 -3
- package/modules/data.src.d.ts +2 -2
- package/modules/data.src.js +24 -23
- package/modules/datagrouping.js +3 -3
- package/modules/datagrouping.src.js +25 -23
- package/modules/debugger.js +3 -3
- package/modules/debugger.src.js +6 -5
- package/modules/dependency-wheel.js +3 -3
- package/modules/dependency-wheel.src.js +7 -5
- package/modules/dotplot.js +3 -3
- package/modules/dotplot.src.js +3 -2
- package/modules/drag-panes.js +3 -3
- package/modules/drag-panes.src.js +19 -21
- package/modules/draggable-points.js +3 -3
- package/modules/draggable-points.src.js +18 -16
- package/modules/drilldown.js +3 -3
- package/modules/drilldown.src.js +29 -26
- package/modules/dumbbell.js +3 -3
- package/modules/dumbbell.src.js +5 -4
- package/modules/export-data.js +3 -3
- package/modules/export-data.src.js +33 -22
- package/modules/exporting.d.ts +1 -1
- package/modules/exporting.js +3 -3
- package/modules/exporting.src.d.ts +1 -1
- package/modules/exporting.src.js +40 -39
- package/modules/flowmap.js +3 -3
- package/modules/flowmap.src.js +3 -2
- package/modules/full-screen.js +3 -3
- package/modules/full-screen.src.js +9 -13
- package/modules/funnel.js +3 -3
- package/modules/funnel.src.js +3 -2
- package/modules/funnel3d.js +3 -3
- package/modules/funnel3d.src.js +12 -12
- package/modules/gantt.d.ts +3 -4
- package/modules/gantt.js +3 -3
- package/modules/gantt.src.d.ts +3 -4
- package/modules/gantt.src.js +4165 -4002
- package/modules/geoheatmap.js +3 -3
- package/modules/geoheatmap.src.js +8 -7
- package/modules/grid-axis.js +3 -3
- package/modules/grid-axis.src.js +9 -8
- package/modules/heatmap.d.ts +2 -2
- package/modules/heatmap.js +3 -3
- package/modules/heatmap.src.d.ts +2 -2
- package/modules/heatmap.src.js +21 -15
- package/modules/heikinashi.js +3 -3
- package/modules/heikinashi.src.js +9 -6
- package/modules/histogram-bellcurve.js +3 -3
- package/modules/histogram-bellcurve.src.js +4 -3
- package/modules/hollowcandlestick.js +3 -3
- package/modules/hollowcandlestick.src.js +5 -4
- package/modules/item-series.js +3 -3
- package/modules/item-series.src.js +4 -3
- package/modules/lollipop.js +3 -3
- package/modules/lollipop.src.js +6 -3
- package/modules/map.d.ts +22 -1
- package/modules/map.js +3 -3
- package/modules/map.src.d.ts +22 -1
- package/modules/map.src.js +256 -155
- package/modules/marker-clusters.js +3 -3
- package/modules/marker-clusters.src.js +35 -37
- package/modules/mouse-wheel-zoom.js +3 -3
- package/modules/mouse-wheel-zoom.src.js +55 -163
- package/modules/navigator.d.ts +148 -0
- package/modules/navigator.js +9 -0
- package/modules/navigator.src.d.ts +148 -0
- package/modules/navigator.src.js +3921 -0
- package/modules/networkgraph.d.ts +2 -2
- package/modules/networkgraph.js +3 -3
- package/modules/networkgraph.src.d.ts +2 -2
- package/modules/networkgraph.src.js +36 -35
- package/modules/no-data-to-display.js +3 -3
- package/modules/no-data-to-display.src.js +6 -6
- package/modules/offline-exporting.js +3 -3
- package/modules/offline-exporting.src.js +10 -10
- package/modules/organization.js +3 -3
- package/modules/organization.src.js +41 -15
- package/modules/overlapping-datalabels.js +3 -3
- package/modules/overlapping-datalabels.src.js +4 -2
- package/modules/parallel-coordinates.js +3 -3
- package/modules/parallel-coordinates.src.js +12 -12
- package/modules/pareto.js +3 -3
- package/modules/pareto.src.js +3 -2
- package/modules/pathfinder.js +3 -3
- package/modules/pathfinder.src.js +18 -22
- package/modules/pattern-fill.js +3 -3
- package/modules/pattern-fill.src.js +22 -23
- package/modules/pictorial.js +3 -3
- package/modules/pictorial.src.js +25 -26
- package/modules/price-indicator.js +3 -3
- package/modules/price-indicator.src.js +3 -2
- package/modules/pyramid3d.js +3 -3
- package/modules/pyramid3d.src.js +3 -2
- package/modules/sankey.js +3 -3
- package/modules/sankey.src.js +93 -26
- package/modules/series-label.js +3 -3
- package/modules/series-label.src.js +28 -19
- package/modules/series-on-point.js +3 -3
- package/modules/series-on-point.src.js +5 -4
- package/modules/solid-gauge.js +3 -3
- package/modules/solid-gauge.src.js +3 -2
- package/modules/sonification.d.ts +2 -2
- package/modules/sonification.js +3 -3
- package/modules/sonification.src.d.ts +2 -2
- package/modules/sonification.src.js +8 -6
- package/modules/static-scale.js +3 -3
- package/modules/static-scale.src.js +6 -6
- package/modules/stock-tools.js +3 -3
- package/modules/stock-tools.src.js +109 -96
- package/modules/stock.d.ts +1 -1
- package/modules/stock.js +3 -3
- package/modules/stock.src.d.ts +1 -1
- package/modules/stock.src.js +10762 -10685
- package/modules/streamgraph.js +3 -3
- package/modules/streamgraph.src.js +3 -2
- package/modules/sunburst.js +3 -3
- package/modules/sunburst.src.js +50 -37
- package/modules/tiledwebmap.js +4 -4
- package/modules/tiledwebmap.src.js +28 -29
- package/modules/tilemap.js +3 -3
- package/modules/tilemap.src.js +4 -3
- package/modules/timeline.js +3 -3
- package/modules/timeline.src.js +5 -4
- package/modules/treegraph.js +3 -3
- package/modules/treegraph.src.js +58 -23
- package/modules/treegrid.js +3 -3
- package/modules/treegrid.src.js +49 -33
- package/modules/treemap.js +3 -3
- package/modules/treemap.src.js +44 -26
- package/modules/variable-pie.js +3 -3
- package/modules/variable-pie.src.js +3 -2
- package/modules/variwide.js +3 -3
- package/modules/variwide.src.js +9 -4
- package/modules/vector.js +3 -3
- package/modules/vector.src.js +3 -2
- package/modules/venn.js +3 -3
- package/modules/venn.src.js +16 -17
- package/modules/windbarb.js +3 -3
- package/modules/windbarb.src.js +5 -4
- package/modules/wordcloud.js +3 -3
- package/modules/wordcloud.src.js +10 -8
- package/modules/xrange.js +3 -3
- package/modules/xrange.src.js +5 -4
- package/package.json +1 -1
- package/standalone-navigator.js +2 -0
- package/standalone-navigator.src.js +49402 -0
- package/themes/avocado.js +3 -3
- package/themes/avocado.src.js +2 -1
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.src.js +2 -1
- package/themes/brand-light.js +3 -3
- package/themes/brand-light.src.js +2 -1
- package/themes/dark-blue.js +3 -3
- package/themes/dark-blue.src.js +2 -1
- package/themes/dark-green.js +3 -3
- package/themes/dark-green.src.js +2 -1
- package/themes/dark-unica.js +3 -3
- package/themes/dark-unica.src.js +2 -1
- package/themes/gray.js +3 -3
- package/themes/gray.src.js +2 -1
- package/themes/grid-light.js +3 -3
- package/themes/grid-light.src.js +2 -1
- package/themes/grid.js +3 -3
- package/themes/grid.src.js +2 -1
- package/themes/high-contrast-dark.js +3 -3
- package/themes/high-contrast-dark.src.js +2 -1
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.src.js +2 -1
- package/themes/sand-signika.js +3 -3
- package/themes/sand-signika.src.js +2 -1
- package/themes/skies.js +3 -3
- package/themes/skies.src.js +2 -1
- package/themes/sunset.js +3 -3
- package/themes/sunset.src.js +2 -1
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +0 -259
- package/lib/canvg.js +0 -8
|
@@ -8,10 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
|
-
import H from '../Globals.js';
|
|
12
|
-
const { composed } = H;
|
|
13
11
|
import U from '../Utilities.js';
|
|
14
|
-
const { addEvent, normalizeTickInterval, pick
|
|
12
|
+
const { addEvent, normalizeTickInterval, pick } = U;
|
|
15
13
|
/* *
|
|
16
14
|
*
|
|
17
15
|
* Class
|
|
@@ -37,7 +35,7 @@ var LogarithmicAxis;
|
|
|
37
35
|
* @private
|
|
38
36
|
*/
|
|
39
37
|
function compose(AxisClass) {
|
|
40
|
-
if (
|
|
38
|
+
if (!AxisClass.keepProps.includes('logarithmic')) {
|
|
41
39
|
AxisClass.keepProps.push('logarithmic');
|
|
42
40
|
addEvent(AxisClass, 'init', onInit);
|
|
43
41
|
addEvent(AxisClass, 'afterInit', onAfterInit);
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
11
|
import H from '../Globals.js';
|
|
12
|
-
const {
|
|
12
|
+
const { isTouchDevice } = H;
|
|
13
13
|
import U from '../Utilities.js';
|
|
14
|
-
const { addEvent, correctFloat, defined, isNumber, pick
|
|
14
|
+
const { addEvent, correctFloat, defined, isNumber, pick } = U;
|
|
15
15
|
/* *
|
|
16
16
|
*
|
|
17
17
|
* Functions
|
|
@@ -32,34 +32,36 @@ function onAxisInit() {
|
|
|
32
32
|
* selector.
|
|
33
33
|
* @private
|
|
34
34
|
*/
|
|
35
|
-
function
|
|
35
|
+
function onAxisSetExtremes(e) {
|
|
36
36
|
const axis = this, chart = axis.chart, chartOptions = chart.options, navigator = chartOptions.navigator, navigatorAxis = axis.navigatorAxis, pinchType = chart.zooming.pinchType, rangeSelector = chartOptions.rangeSelector, zoomType = chart.zooming.type;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
let zoomed;
|
|
38
|
+
if (axis.isXAxis &&
|
|
39
|
+
(navigator?.enabled || rangeSelector?.enabled)) {
|
|
39
40
|
// For y only zooming, ignore the X axis completely
|
|
40
|
-
if (zoomType === 'y') {
|
|
41
|
-
|
|
42
|
-
// For xy zooming, record the state of the zoom before zoom
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
// out.
|
|
41
|
+
if (zoomType === 'y' && e.trigger === 'zoom') {
|
|
42
|
+
zoomed = false;
|
|
43
|
+
// For xy zooming, record the state of the zoom before zoom selection,
|
|
44
|
+
// then when the reset button is pressed, revert to this state. This
|
|
45
|
+
// should apply only if the chart is initialized with a range (#6612),
|
|
46
|
+
// otherwise zoom all the way out.
|
|
47
47
|
}
|
|
48
|
-
else if (((
|
|
48
|
+
else if (((e.trigger === 'zoom' && zoomType === 'xy') ||
|
|
49
49
|
(isTouchDevice && pinchType === 'xy')) &&
|
|
50
50
|
axis.options.range) {
|
|
51
51
|
const previousZoom = navigatorAxis.previousZoom;
|
|
52
|
-
|
|
52
|
+
// Minimum defined, zooming in
|
|
53
|
+
if (defined(e.min)) {
|
|
53
54
|
navigatorAxis.previousZoom = [axis.min, axis.max];
|
|
55
|
+
// Minimum undefined, resetting zoom
|
|
54
56
|
}
|
|
55
57
|
else if (previousZoom) {
|
|
56
|
-
e.
|
|
57
|
-
e.
|
|
58
|
+
e.min = previousZoom[0];
|
|
59
|
+
e.max = previousZoom[1];
|
|
58
60
|
navigatorAxis.previousZoom = void 0;
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
|
-
if (typeof
|
|
64
|
+
if (typeof zoomed !== 'undefined') {
|
|
63
65
|
e.preventDefault();
|
|
64
66
|
}
|
|
65
67
|
}
|
|
@@ -82,10 +84,10 @@ class NavigatorAxisAdditions {
|
|
|
82
84
|
* @private
|
|
83
85
|
*/
|
|
84
86
|
static compose(AxisClass) {
|
|
85
|
-
if (
|
|
87
|
+
if (!AxisClass.keepProps.includes('navigatorAxis')) {
|
|
86
88
|
AxisClass.keepProps.push('navigatorAxis');
|
|
87
89
|
addEvent(AxisClass, 'init', onAxisInit);
|
|
88
|
-
addEvent(AxisClass, '
|
|
90
|
+
addEvent(AxisClass, 'setExtremes', onAxisSetExtremes);
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
/* *
|
|
@@ -115,7 +117,7 @@ class NavigatorAxisAdditions {
|
|
|
115
117
|
* @function Highcharts.Axis#toFixedRange
|
|
116
118
|
*/
|
|
117
119
|
toFixedRange(pxMin, pxMax, fixedMin, fixedMax) {
|
|
118
|
-
const axis = this.axis, chart = axis.chart;
|
|
120
|
+
const axis = this.axis, chart = axis.chart, overscroll = pick(axis.ordinal?.convertOverscroll(axis.options.overscroll), 0);
|
|
119
121
|
let newMin = pick(fixedMin, axis.translate(pxMin, true, !axis.horiz)), newMax = pick(fixedMax, axis.translate(pxMax, true, !axis.horiz));
|
|
120
122
|
const fixedRange = chart && chart.fixedRange, halfPointRange = (axis.pointRange || 0) / 2;
|
|
121
123
|
// Add/remove half point range to/from the extremes (#1172)
|
|
@@ -127,8 +129,10 @@ class NavigatorAxisAdditions {
|
|
|
127
129
|
}
|
|
128
130
|
// Make sure panning to the edges does not decrease the zoomed range
|
|
129
131
|
if (fixedRange && axis.dataMin && axis.dataMax) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
const maxWithOverscroll = axis.dataMax + overscroll;
|
|
133
|
+
if (newMax >= maxWithOverscroll) {
|
|
134
|
+
newMin = correctFloat(maxWithOverscroll - fixedRange);
|
|
135
|
+
newMax = correctFloat(maxWithOverscroll);
|
|
132
136
|
}
|
|
133
137
|
if (newMin <= axis.dataMin) {
|
|
134
138
|
newMax = correctFloat(axis.dataMin + fixedRange);
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
'use strict';
|
|
11
11
|
import Axis from './Axis.js';
|
|
12
12
|
import H from '../Globals.js';
|
|
13
|
-
const { composed } = H;
|
|
14
13
|
import Series from '../Series/Series.js';
|
|
15
14
|
import U from '../Utilities.js';
|
|
16
|
-
const { addEvent, correctFloat, css, defined, error,
|
|
15
|
+
const { addEvent, correctFloat, css, defined, error, isNumber, pick, timeUnits, isString } = U;
|
|
17
16
|
/* *
|
|
18
17
|
*
|
|
19
18
|
* Composition
|
|
@@ -50,8 +49,8 @@ var OrdinalAxis;
|
|
|
50
49
|
* Series class to use.
|
|
51
50
|
*/
|
|
52
51
|
function compose(AxisClass, SeriesClass, ChartClass) {
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
const axisProto = AxisClass.prototype;
|
|
53
|
+
if (!axisProto.ordinal2lin) {
|
|
55
54
|
axisProto.getTimeTicks = getTimeTicks;
|
|
56
55
|
axisProto.index2val = index2val;
|
|
57
56
|
axisProto.lin2val = lin2val;
|
|
@@ -69,7 +68,7 @@ var OrdinalAxis;
|
|
|
69
68
|
}
|
|
70
69
|
OrdinalAxis.compose = compose;
|
|
71
70
|
/**
|
|
72
|
-
* In an ordinal axis, there might be areas with dense
|
|
71
|
+
* In an ordinal axis, there might be areas with dense concentrations of
|
|
73
72
|
* points, then large gaps between some. Creating equally distributed
|
|
74
73
|
* ticks over this entire range may lead to a huge number of ticks that
|
|
75
74
|
* will later be removed. So instead, break the positions up in
|
|
@@ -268,7 +267,7 @@ var OrdinalAxis;
|
|
|
268
267
|
let positions = ordinal.getExtendedPositions();
|
|
269
268
|
// In some cases (especially in early stages of the chart creation) the
|
|
270
269
|
// getExtendedPositions might return undefined.
|
|
271
|
-
if (positions.length) {
|
|
270
|
+
if (positions && positions.length) {
|
|
272
271
|
// Convert back from modivied value to pixels. // #15970
|
|
273
272
|
const pixelVal = correctFloat((val - localMin) * localA +
|
|
274
273
|
axis.minPixelPadding), index = correctFloat(ordinal.getIndexOfPoint(pixelVal, positions)), mantissa = correctFloat(index % 1);
|
|
@@ -309,22 +308,32 @@ var OrdinalAxis;
|
|
|
309
308
|
* @private
|
|
310
309
|
*/
|
|
311
310
|
function onAxisFoundExtremes() {
|
|
312
|
-
const axis = this;
|
|
311
|
+
const axis = this, { eventArgs, options } = axis;
|
|
313
312
|
if (axis.isXAxis &&
|
|
314
|
-
defined(
|
|
315
|
-
|
|
316
|
-
(
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
axis.
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
313
|
+
defined(options.overscroll) &&
|
|
314
|
+
options.overscroll !== 0 &&
|
|
315
|
+
isNumber(axis.max) &&
|
|
316
|
+
isNumber(axis.min)) {
|
|
317
|
+
if (axis.options.ordinal && !axis.ordinal.originalOrdinalRange) {
|
|
318
|
+
// Calculate the original ordinal range
|
|
319
|
+
axis.ordinal.getExtendedPositions(false);
|
|
320
|
+
}
|
|
321
|
+
if (axis.max === axis.dataMax &&
|
|
322
|
+
(
|
|
323
|
+
// Panning is an exception. We don't want to apply
|
|
324
|
+
// overscroll when panning over the dataMax
|
|
325
|
+
eventArgs?.trigger !== 'pan' ||
|
|
326
|
+
axis.isInternal) &&
|
|
327
|
+
// Scrollbar buttons are the other execption
|
|
328
|
+
eventArgs?.trigger !== 'navigator') {
|
|
329
|
+
const overscroll = axis.ordinal.convertOverscroll(options.overscroll);
|
|
330
|
+
axis.max += overscroll;
|
|
331
|
+
// Live data and buttons require translation for the min:
|
|
332
|
+
if (!axis.isInternal &&
|
|
333
|
+
defined(axis.userMin) &&
|
|
334
|
+
eventArgs?.trigger !== 'mousewheel') {
|
|
335
|
+
axis.min += overscroll;
|
|
336
|
+
}
|
|
328
337
|
}
|
|
329
338
|
}
|
|
330
339
|
}
|
|
@@ -357,7 +366,7 @@ var OrdinalAxis;
|
|
|
357
366
|
* @private
|
|
358
367
|
*/
|
|
359
368
|
function onChartPan(e) {
|
|
360
|
-
const chart = this, xAxis = chart.xAxis[0], overscroll = xAxis.options.overscroll, chartX = e.originalEvent.chartX, panning = chart.options.chart.panning;
|
|
369
|
+
const chart = this, xAxis = chart.xAxis[0], overscroll = xAxis.ordinal.convertOverscroll(xAxis.options.overscroll), chartX = e.originalEvent.chartX, panning = chart.options.chart.panning;
|
|
361
370
|
let runBase = false;
|
|
362
371
|
if (panning &&
|
|
363
372
|
panning.type !== 'y' &&
|
|
@@ -375,7 +384,7 @@ var OrdinalAxis;
|
|
|
375
384
|
extendedOrdinalPositions: extendedOrdinalPositions
|
|
376
385
|
}
|
|
377
386
|
}, index2val = xAxis.index2val, val2lin = xAxis.val2lin;
|
|
378
|
-
let trimmedRange, ordinalPositions
|
|
387
|
+
let trimmedRange, ordinalPositions;
|
|
379
388
|
// we have an ordinal axis, but the data is equally spaced
|
|
380
389
|
if (!extendedAxis.ordinal.positions) {
|
|
381
390
|
runBase = true;
|
|
@@ -387,21 +396,11 @@ var OrdinalAxis;
|
|
|
387
396
|
point.setState();
|
|
388
397
|
});
|
|
389
398
|
}
|
|
390
|
-
if (movedUnits < 0) {
|
|
391
|
-
searchAxisLeft = extendedAxis;
|
|
392
|
-
searchAxisRight = xAxis.ordinal.positions ?
|
|
393
|
-
xAxis : extendedAxis;
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
searchAxisLeft = xAxis.ordinal.positions ?
|
|
397
|
-
xAxis : extendedAxis;
|
|
398
|
-
searchAxisRight = extendedAxis;
|
|
399
|
-
}
|
|
400
399
|
// In grouped data series, the last ordinal position represents
|
|
401
400
|
// the grouped data, which is to the left of the real data max.
|
|
402
401
|
// If we don't compensate for this, we will be allowed to pan
|
|
403
402
|
// grouped data series passed the right of the plot area.
|
|
404
|
-
ordinalPositions =
|
|
403
|
+
ordinalPositions = extendedAxis.ordinal.positions;
|
|
405
404
|
if (dataMax >
|
|
406
405
|
ordinalPositions[ordinalPositions.length - 1]) {
|
|
407
406
|
ordinalPositions.push(dataMax);
|
|
@@ -411,19 +410,18 @@ var OrdinalAxis;
|
|
|
411
410
|
// translate back to values. This happens on the extended
|
|
412
411
|
// ordinal positions if the new position is out of range, else
|
|
413
412
|
// it happens on the current x axis which is smaller and faster.
|
|
414
|
-
chart.
|
|
413
|
+
chart.setFixedRange(max - min);
|
|
415
414
|
trimmedRange = xAxis.navigatorAxis
|
|
416
|
-
.toFixedRange(void 0, void 0, index2val.apply(
|
|
417
|
-
val2lin.apply(
|
|
415
|
+
.toFixedRange(void 0, void 0, index2val.apply(extendedAxis, [
|
|
416
|
+
val2lin.apply(extendedAxis, [min, true]) +
|
|
418
417
|
movedUnits
|
|
419
|
-
]), index2val.apply(
|
|
420
|
-
val2lin.apply(
|
|
418
|
+
]), index2val.apply(extendedAxis, [
|
|
419
|
+
val2lin.apply(extendedAxis, [max, true]) +
|
|
421
420
|
movedUnits
|
|
422
421
|
]));
|
|
423
422
|
// Apply it if it is within the available data range
|
|
424
423
|
if (trimmedRange.min >= Math.min(extremes.dataMin, min) &&
|
|
425
|
-
trimmedRange.max <= Math.max(dataMax, max) +
|
|
426
|
-
overscroll) {
|
|
424
|
+
trimmedRange.max <= Math.max(dataMax, max) + overscroll) {
|
|
427
425
|
xAxis.setExtremes(trimmedRange.min, trimmedRange.max, true, false, { trigger: 'pan' });
|
|
428
426
|
}
|
|
429
427
|
chart.mouseDownX = chartX; // set new reference for next run
|
|
@@ -452,6 +450,7 @@ var OrdinalAxis;
|
|
|
452
450
|
// and destroy extendedOrdinalPositions, #16055.
|
|
453
451
|
if (xAxis && xAxis.options.ordinal) {
|
|
454
452
|
delete xAxis.ordinal.index;
|
|
453
|
+
delete xAxis.ordinal.originalOrdinalRange;
|
|
455
454
|
}
|
|
456
455
|
}
|
|
457
456
|
/**
|
|
@@ -515,9 +514,9 @@ var OrdinalAxis;
|
|
|
515
514
|
return val;
|
|
516
515
|
}
|
|
517
516
|
// Since ordinal.slope is the average distance between 2
|
|
518
|
-
// points on visible plotArea, this can be used to
|
|
517
|
+
// points on visible plotArea, this can be used to calculate
|
|
519
518
|
// the approximate position of the point, which is outside
|
|
520
|
-
// the
|
|
519
|
+
// the extendedOrdinalPositions.
|
|
521
520
|
if (val < extendedOrdinalPositions[0]) {
|
|
522
521
|
const diff = extendedOrdinalPositions[0] - val, approximateIndexOffset = diff / slope;
|
|
523
522
|
ordinalIndex =
|
|
@@ -622,6 +621,11 @@ var OrdinalAxis;
|
|
|
622
621
|
}
|
|
623
622
|
}
|
|
624
623
|
});
|
|
624
|
+
if (!axis.ordinal.originalOrdinalRange) {
|
|
625
|
+
// Calculate current originalOrdinalRange
|
|
626
|
+
axis.ordinal.originalOrdinalRange =
|
|
627
|
+
(ordinalPositions.length - 1) * overscrollPointsRange;
|
|
628
|
+
}
|
|
625
629
|
// If the distance between points is not identical throughout
|
|
626
630
|
// all series, remove the first and last ordinal position to
|
|
627
631
|
// avoid enabling ordinal logic when it is not needed, #17405.
|
|
@@ -663,7 +667,7 @@ var OrdinalAxis;
|
|
|
663
667
|
else if (len === 1) {
|
|
664
668
|
// We have just one point, closest distance is unknown.
|
|
665
669
|
// Assume then it is last point and overscrolled range:
|
|
666
|
-
overscrollPointsRange = axis.options.overscroll;
|
|
670
|
+
overscrollPointsRange = axis.ordinal.convertOverscroll(axis.options.overscroll);
|
|
667
671
|
ordinalPositions = [
|
|
668
672
|
ordinalPositions[0],
|
|
669
673
|
ordinalPositions[0] + overscrollPointsRange
|
|
@@ -749,10 +753,11 @@ var OrdinalAxis;
|
|
|
749
753
|
* it will be regenerated the next time a panning operation starts.
|
|
750
754
|
* @private
|
|
751
755
|
*/
|
|
752
|
-
getExtendedPositions() {
|
|
753
|
-
const ordinal = this, axis = ordinal.axis, axisProto = axis.constructor.prototype, chart = axis.chart, grouping = axis.series[0]
|
|
756
|
+
getExtendedPositions(withOverscroll = true) {
|
|
757
|
+
const ordinal = this, axis = ordinal.axis, axisProto = axis.constructor.prototype, chart = axis.chart, grouping = axis.series[0]?.currentDataGrouping, key = grouping ?
|
|
754
758
|
grouping.count + grouping.unitName :
|
|
755
|
-
'raw', overscroll =
|
|
759
|
+
'raw', overscroll = withOverscroll ?
|
|
760
|
+
axis.ordinal.convertOverscroll(axis.options.overscroll) : 0, extremes = axis.getExtremes();
|
|
756
761
|
let fakeAxis, fakeSeries = void 0, ordinalIndex = ordinal.index;
|
|
757
762
|
// If this is the first time, or the ordinal index is deleted by
|
|
758
763
|
// updatedData,
|
|
@@ -801,7 +806,9 @@ var OrdinalAxis;
|
|
|
801
806
|
reserveSpace: Series.prototype.reserveSpace,
|
|
802
807
|
visible: series.visible
|
|
803
808
|
};
|
|
804
|
-
|
|
809
|
+
if (withOverscroll) {
|
|
810
|
+
fakeSeries.xData = fakeSeries.xData.concat(ordinal.getOverscrollPositions());
|
|
811
|
+
}
|
|
805
812
|
fakeSeries.options = {
|
|
806
813
|
dataGrouping: grouping ? {
|
|
807
814
|
firstAnchor: 'firstPoint',
|
|
@@ -825,13 +832,18 @@ var OrdinalAxis;
|
|
|
825
832
|
fakeAxis.applyGrouping({ hasExtremesChanged: true });
|
|
826
833
|
// Force to use the ordinal when points are evenly spaced (e.g.
|
|
827
834
|
// weeks), #3825.
|
|
828
|
-
if ((fakeSeries
|
|
829
|
-
fakeSeries
|
|
835
|
+
if ((fakeSeries?.closestPointRange !==
|
|
836
|
+
fakeSeries?.basePointRange) &&
|
|
830
837
|
fakeSeries.currentDataGrouping) {
|
|
831
838
|
fakeAxis.forceOrdinal = true;
|
|
832
839
|
}
|
|
833
840
|
// Run beforeSetTickPositions to compute the ordinalPositions
|
|
834
841
|
axis.ordinal.beforeSetTickPositions.apply({ axis: fakeAxis });
|
|
842
|
+
if (!axis.ordinal.originalOrdinalRange &&
|
|
843
|
+
fakeAxis.ordinal.originalOrdinalRange) {
|
|
844
|
+
axis.ordinal.originalOrdinalRange =
|
|
845
|
+
fakeAxis.ordinal.originalOrdinalRange;
|
|
846
|
+
}
|
|
835
847
|
// Cache it
|
|
836
848
|
ordinalIndex[key] = fakeAxis.ordinal.positions;
|
|
837
849
|
}
|
|
@@ -861,7 +873,7 @@ var OrdinalAxis;
|
|
|
861
873
|
* @private
|
|
862
874
|
*/
|
|
863
875
|
getGroupIntervalFactor(xMin, xMax, series) {
|
|
864
|
-
const ordinal = this,
|
|
876
|
+
const ordinal = this, processedXData = series.processedXData, len = processedXData.length, distances = [];
|
|
865
877
|
let median, i, groupIntervalFactor = ordinal.groupIntervalFactor;
|
|
866
878
|
// Only do this computation for the first series, let the other
|
|
867
879
|
// inherit it (#2416)
|
|
@@ -893,7 +905,7 @@ var OrdinalAxis;
|
|
|
893
905
|
* @param {number} val
|
|
894
906
|
* The pixel value of a point.
|
|
895
907
|
*
|
|
896
|
-
* @param {Array<number>} [
|
|
908
|
+
* @param {Array<number>} [ordinalArray]
|
|
897
909
|
* An array of all points available on the axis for the given data set.
|
|
898
910
|
* Either ordinalPositions if the value is inside the plotArea or
|
|
899
911
|
* extendedOrdinalPositions if not.
|
|
@@ -942,7 +954,7 @@ var OrdinalAxis;
|
|
|
942
954
|
* @private
|
|
943
955
|
*/
|
|
944
956
|
getOverscrollPositions() {
|
|
945
|
-
const ordinal = this, axis = ordinal.axis, extraRange = axis.options.overscroll, distance = ordinal.overscrollPointsRange, positions = [];
|
|
957
|
+
const ordinal = this, axis = ordinal.axis, extraRange = ordinal.convertOverscroll(axis.options.overscroll), distance = ordinal.overscrollPointsRange, positions = [];
|
|
946
958
|
let max = axis.dataMax;
|
|
947
959
|
if (defined(distance)) {
|
|
948
960
|
// Max + pointRange because we need to scroll to the last
|
|
@@ -981,6 +993,38 @@ var OrdinalAxis;
|
|
|
981
993
|
}
|
|
982
994
|
return ret;
|
|
983
995
|
}
|
|
996
|
+
/**
|
|
997
|
+
* If overscroll is pixel or pecentage value, convert it to axis range.
|
|
998
|
+
*
|
|
999
|
+
* @private
|
|
1000
|
+
* @param {number | string} overscroll
|
|
1001
|
+
* Overscroll value in axis range, pixels or percentage value.
|
|
1002
|
+
* @return {number}
|
|
1003
|
+
* Overscroll value in axis range.
|
|
1004
|
+
*/
|
|
1005
|
+
convertOverscroll(overscroll = 0) {
|
|
1006
|
+
const ordinal = this, axis = ordinal.axis, calculateOverscroll = function (overscrollPercentage) {
|
|
1007
|
+
return pick(ordinal.originalOrdinalRange, defined(axis.dataMax) && defined(axis.dataMin) ?
|
|
1008
|
+
axis.dataMax - axis.dataMin : 0) * overscrollPercentage;
|
|
1009
|
+
};
|
|
1010
|
+
if (isString(overscroll)) {
|
|
1011
|
+
const overscrollValue = parseInt(overscroll, 10);
|
|
1012
|
+
if (/%$/.test(overscroll)) {
|
|
1013
|
+
// If overscroll is percentage
|
|
1014
|
+
return calculateOverscroll(overscrollValue / 100);
|
|
1015
|
+
}
|
|
1016
|
+
if (/px/.test(overscroll)) {
|
|
1017
|
+
// If overscroll is pixels, it is limited to 90% of the axis
|
|
1018
|
+
// length to prevent division by zero
|
|
1019
|
+
const limitedOverscrollValue = Math.min(overscrollValue, axis.len * 0.9), pixelToPercent = limitedOverscrollValue / axis.len;
|
|
1020
|
+
return calculateOverscroll(pixelToPercent / (1 - pixelToPercent));
|
|
1021
|
+
}
|
|
1022
|
+
// If overscroll is a string but not pixels or percentage,
|
|
1023
|
+
// return 0 as no overscroll
|
|
1024
|
+
return 0;
|
|
1025
|
+
}
|
|
1026
|
+
return overscroll;
|
|
1027
|
+
}
|
|
984
1028
|
}
|
|
985
1029
|
OrdinalAxis.Additions = Additions;
|
|
986
1030
|
})(OrdinalAxis || (OrdinalAxis = {}));
|
|
@@ -139,7 +139,7 @@ class PlotLineOrBand {
|
|
|
139
139
|
// before.
|
|
140
140
|
if (!this.eventsAdded && events) {
|
|
141
141
|
objectEach(events, (event, eventType) => {
|
|
142
|
-
svgElem?.on(eventType,
|
|
142
|
+
svgElem?.on(eventType, (e) => {
|
|
143
143
|
events[eventType].apply(this, [e]);
|
|
144
144
|
});
|
|
145
145
|
});
|
|
@@ -353,7 +353,7 @@ export default PlotLineOrBand;
|
|
|
353
353
|
* Plot band on Y axis
|
|
354
354
|
*
|
|
355
355
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
356
|
-
* @default
|
|
356
|
+
* @default ${palette.highlightColor10}
|
|
357
357
|
* @apioption xAxis.plotBands.color
|
|
358
358
|
*/
|
|
359
359
|
/**
|
|
@@ -601,7 +601,7 @@ export default PlotLineOrBand;
|
|
|
601
601
|
* Plot line on Y axis
|
|
602
602
|
*
|
|
603
603
|
* @type {Highcharts.ColorString}
|
|
604
|
-
* @default
|
|
604
|
+
* @default ${palette.neutralColor40}
|
|
605
605
|
* @apioption xAxis.plotLines.color
|
|
606
606
|
*/
|
|
607
607
|
/**
|
|
@@ -8,10 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
|
-
import H from '../../Globals.js';
|
|
12
|
-
const { composed } = H;
|
|
13
11
|
import U from '../../Utilities.js';
|
|
14
|
-
const { erase, extend, isNumber
|
|
12
|
+
const { erase, extend, isNumber } = U;
|
|
15
13
|
/* *
|
|
16
14
|
*
|
|
17
15
|
* Composition
|
|
@@ -110,9 +108,10 @@ var PlotLineOrBandAxis;
|
|
|
110
108
|
* @private
|
|
111
109
|
*/
|
|
112
110
|
function compose(PlotLineOrBandType, AxisClass) {
|
|
113
|
-
|
|
111
|
+
const axisProto = AxisClass.prototype;
|
|
112
|
+
if (!axisProto.addPlotBand) {
|
|
114
113
|
PlotLineOrBandClass = PlotLineOrBandType;
|
|
115
|
-
extend(
|
|
114
|
+
extend(axisProto, {
|
|
116
115
|
addPlotBand,
|
|
117
116
|
addPlotLine,
|
|
118
117
|
addPlotBandOrLine,
|
|
@@ -182,7 +182,7 @@ var RadialAxis;
|
|
|
182
182
|
* Axis composition.
|
|
183
183
|
*/
|
|
184
184
|
function compose(AxisClass, TickClass) {
|
|
185
|
-
if (pushUnique(composed,
|
|
185
|
+
if (pushUnique(composed, 'Axis.Radial')) {
|
|
186
186
|
addEvent(AxisClass, 'afterInit', onAxisAfterInit);
|
|
187
187
|
addEvent(AxisClass, 'autoLabelAlign', onAxisAutoLabelAlign);
|
|
188
188
|
addEvent(AxisClass, 'destroy', onAxisDestroy);
|
|
@@ -631,7 +631,7 @@ var RadialAxis;
|
|
|
631
631
|
* Modify axis instance with radial logic before common axis init.
|
|
632
632
|
*/
|
|
633
633
|
function onAxisInit(e) {
|
|
634
|
-
const chart = this.chart,
|
|
634
|
+
const chart = this.chart, angular = chart.angular, polar = chart.polar, isX = this.isXAxis, coll = this.coll, isHidden = angular && isX, paneIndex = e.userOptions.pane || 0, pane = this.pane = chart.pane && chart.pane[paneIndex];
|
|
635
635
|
let isCircular;
|
|
636
636
|
// Prevent changes for colorAxis
|
|
637
637
|
if (coll === 'colorAxis') {
|
|
@@ -762,7 +762,7 @@ var RadialAxis;
|
|
|
762
762
|
else {
|
|
763
763
|
align = (labelDir === 'start') ? 'left' : 'right';
|
|
764
764
|
}
|
|
765
|
-
// For angles
|
|
765
|
+
// For angles between (90 + n * 180) +- 20
|
|
766
766
|
if (reducedAngle2 > 70 && reducedAngle2 < 110) {
|
|
767
767
|
align = 'center';
|
|
768
768
|
}
|
|
@@ -859,7 +859,7 @@ var RadialAxis;
|
|
|
859
859
|
else {
|
|
860
860
|
// When the pane's startAngle or the axis' angle is set then
|
|
861
861
|
// new x and y values for vertical axis' center must be
|
|
862
|
-
//
|
|
862
|
+
// calculated
|
|
863
863
|
start = this.postTranslate(this.angleRad, center[3] / 2);
|
|
864
864
|
center[0] = start.x - this.chart.plotLeft;
|
|
865
865
|
center[1] = start.y - this.chart.plotTop;
|
|
@@ -926,7 +926,7 @@ var RadialAxis;
|
|
|
926
926
|
defaultPolarOptions.reversedStacks = true;
|
|
927
927
|
}
|
|
928
928
|
const options = this.options = merge(defaultPolarOptions, userOptions);
|
|
929
|
-
// Make sure the plotBands array is
|
|
929
|
+
// Make sure the plotBands array is instantiated for each Axis
|
|
930
930
|
// (#2649)
|
|
931
931
|
if (!options.plotBands) {
|
|
932
932
|
options.plotBands = [];
|
|
@@ -42,7 +42,7 @@ var ScrollbarAxis;
|
|
|
42
42
|
* Scrollbar class to use.
|
|
43
43
|
*/
|
|
44
44
|
function compose(AxisClass, ScrollbarClass) {
|
|
45
|
-
if (pushUnique(composed,
|
|
45
|
+
if (pushUnique(composed, 'Axis.Scrollbar')) {
|
|
46
46
|
Scrollbar = ScrollbarClass;
|
|
47
47
|
addEvent(AxisClass, 'afterGetOffset', onAxisAfterGetOffset);
|
|
48
48
|
addEvent(AxisClass, 'afterInit', onAxisAfterInit);
|
|
@@ -115,7 +115,7 @@ var ScrollbarAxis;
|
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
117
|
// When live redraw is disabled, don't change extremes
|
|
118
|
-
// Only change the position of the
|
|
118
|
+
// Only change the position of the scrollbar thumb
|
|
119
119
|
this.setRange(this.from, this.to);
|
|
120
120
|
}
|
|
121
121
|
});
|
|
@@ -89,7 +89,7 @@ class StackItem {
|
|
|
89
89
|
format(formatOption, this, chart) :
|
|
90
90
|
options.formatter.call(this);
|
|
91
91
|
// Change the text to reflect the new total and set visibility to hidden
|
|
92
|
-
// in case the
|
|
92
|
+
// in case the series is hidden
|
|
93
93
|
if (this.label) {
|
|
94
94
|
this.label.attr({ text: str, visibility: 'hidden' });
|
|
95
95
|
}
|
|
@@ -133,7 +133,7 @@ class StackItem {
|
|
|
133
133
|
xAxis
|
|
134
134
|
}), { verticalAlign } = alignOptions;
|
|
135
135
|
if (label && stackBox) {
|
|
136
|
-
const labelBox = label.getBBox(), padding = label.padding;
|
|
136
|
+
const labelBox = label.getBBox(void 0, 0), padding = label.padding;
|
|
137
137
|
let isJustify = pick(options.overflow, 'justify') === 'justify', visible;
|
|
138
138
|
// Reset alignOptions property after justify #12337
|
|
139
139
|
alignOptions.x = options.x || 0;
|
|
@@ -160,13 +160,17 @@ class StackItem {
|
|
|
160
160
|
// Justify stackLabel into the alignBox
|
|
161
161
|
Series.prototype.justifyDataLabel.call(axis, label, alignOptions, label.alignAttr, labelBox, stackBox);
|
|
162
162
|
}
|
|
163
|
-
// Add attr to
|
|
163
|
+
// Add attr to avoid the default animation of justifyDataLabel.
|
|
164
164
|
// Also add correct rotation with its rotation origin. #15129
|
|
165
165
|
label.attr({
|
|
166
166
|
x: label.alignAttr.x,
|
|
167
167
|
y: label.alignAttr.y,
|
|
168
168
|
rotation: options.rotation,
|
|
169
|
-
rotationOriginX: labelBox.width
|
|
169
|
+
rotationOriginX: labelBox.width * {
|
|
170
|
+
left: 0,
|
|
171
|
+
center: 0.5,
|
|
172
|
+
right: 1
|
|
173
|
+
}[options.textAlign || 'center'],
|
|
170
174
|
rotationOriginY: labelBox.height / 2
|
|
171
175
|
});
|
|
172
176
|
// Check if the dataLabel should be visible.
|
|
@@ -11,13 +11,11 @@
|
|
|
11
11
|
import A from '../../Animation/AnimationUtilities.js';
|
|
12
12
|
const { getDeferredAnimation } = A;
|
|
13
13
|
import Axis from '../Axis.js';
|
|
14
|
-
import H from '../../Globals.js';
|
|
15
|
-
const { composed } = H;
|
|
16
14
|
import SeriesRegistry from '../../Series/SeriesRegistry.js';
|
|
17
15
|
const { series: { prototype: seriesProto } } = SeriesRegistry;
|
|
18
16
|
import StackItem from './StackItem.js';
|
|
19
17
|
import U from '../../Utilities.js';
|
|
20
|
-
const { addEvent, correctFloat, defined, destroyObjectProperties, fireEvent, isArray, isNumber, objectEach, pick
|
|
18
|
+
const { addEvent, correctFloat, defined, destroyObjectProperties, fireEvent, isArray, isNumber, objectEach, pick } = U;
|
|
21
19
|
/* *
|
|
22
20
|
*
|
|
23
21
|
* Functions
|
|
@@ -415,8 +413,8 @@ var StackingAxis;
|
|
|
415
413
|
* @private
|
|
416
414
|
*/
|
|
417
415
|
function compose(AxisClass, ChartClass, SeriesClass) {
|
|
418
|
-
|
|
419
|
-
|
|
416
|
+
const chartProto = ChartClass.prototype, seriesProto = SeriesClass.prototype;
|
|
417
|
+
if (!chartProto.getStacks) {
|
|
420
418
|
addEvent(AxisClass, 'init', onAxisInit);
|
|
421
419
|
addEvent(AxisClass, 'destroy', onAxisDestroy);
|
|
422
420
|
chartProto.getStacks = chartGetStacks;
|