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
|
@@ -99,7 +99,7 @@ class OrganizationSeries extends SankeySeries {
|
|
|
99
99
|
translateLink(point) {
|
|
100
100
|
const chart = this.chart, options = this.options, fromNode = point.fromNode, toNode = point.toNode, linkWidth = pick(options.linkLineWidth, options.link.lineWidth), crisp = (Math.round(linkWidth) % 2) / 2, factor = pick(options.link.offset, 0.5), type = pick(point.options.link && point.options.link.type, options.link.type);
|
|
101
101
|
if (fromNode.shapeArgs && toNode.shapeArgs) {
|
|
102
|
-
const hangingIndent = options.hangingIndent, toOffset = toNode.options.offset, percentOffset = /%$/.test(toOffset) && parseInt(toOffset, 10), inverted = chart.inverted;
|
|
102
|
+
const hangingIndent = options.hangingIndent, hangingRight = options.hangingSide === 'right', toOffset = toNode.options.offset, percentOffset = /%$/.test(toOffset) && parseInt(toOffset, 10), inverted = chart.inverted;
|
|
103
103
|
let x1 = Math.floor((fromNode.shapeArgs.x || 0) +
|
|
104
104
|
(fromNode.shapeArgs.width || 0)) + crisp, y1 = Math.floor((fromNode.shapeArgs.y || 0) +
|
|
105
105
|
(fromNode.shapeArgs.height || 0) / 2) + crisp, x2 = Math.floor(toNode.shapeArgs.x || 0) + crisp, y2 = Math.floor((toNode.shapeArgs.y || 0) +
|
|
@@ -127,11 +127,14 @@ class OrganizationSeries extends SankeySeries {
|
|
|
127
127
|
}
|
|
128
128
|
if (toNode.hangsFrom === fromNode) {
|
|
129
129
|
if (chart.inverted) {
|
|
130
|
-
y1 =
|
|
131
|
-
(fromNode.shapeArgs.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
(
|
|
130
|
+
y1 = !hangingRight ?
|
|
131
|
+
Math.floor((fromNode.shapeArgs.y || 0) +
|
|
132
|
+
(fromNode.shapeArgs.height || 0) -
|
|
133
|
+
hangingIndent / 2) + crisp :
|
|
134
|
+
Math.floor((fromNode.shapeArgs.y || 0) +
|
|
135
|
+
hangingIndent / 2) + crisp;
|
|
136
|
+
y2 = !hangingRight ? ((toNode.shapeArgs.y || 0) +
|
|
137
|
+
(toNode.shapeArgs.height || 0)) : (toNode.shapeArgs.y || 0) + hangingIndent / 2;
|
|
135
138
|
}
|
|
136
139
|
else {
|
|
137
140
|
y1 = Math.floor((fromNode.shapeArgs.y || 0) +
|
|
@@ -180,15 +183,19 @@ class OrganizationSeries extends SankeySeries {
|
|
|
180
183
|
}
|
|
181
184
|
translateNode(node, column) {
|
|
182
185
|
super.translateNode(node, column);
|
|
183
|
-
const chart = this.chart, options = this.options,
|
|
186
|
+
const chart = this.chart, options = this.options, sum = node.getSum(), translationFactor = this.translationFactor, nodeHeight = Math.max(Math.round(sum * translationFactor), options.minLinkWidth || 0), hangingRight = options.hangingSide === 'right', indent = options.hangingIndent || 0, indentLogic = options.hangingIndentTranslation, minLength = options.minNodeLength || 10, nodeWidth = Math.round(this.nodeWidth), shapeArgs = node.shapeArgs, sign = chart.inverted ? -1 : 1;
|
|
184
187
|
let parentNode = node.hangsFrom;
|
|
185
188
|
if (parentNode) {
|
|
186
189
|
if (indentLogic === 'cumulative') {
|
|
187
190
|
// Move to the right:
|
|
188
191
|
shapeArgs.height -= indent;
|
|
189
|
-
|
|
192
|
+
// If hanging right, first indent is handled by shrinking.
|
|
193
|
+
if (chart.inverted && !hangingRight) {
|
|
194
|
+
shapeArgs.y -= sign * indent;
|
|
195
|
+
}
|
|
190
196
|
while (parentNode) {
|
|
191
|
-
|
|
197
|
+
// Hanging right is the same direction as non-inverted.
|
|
198
|
+
shapeArgs.y += (hangingRight ? 1 : sign) * indent;
|
|
192
199
|
parentNode = parentNode.hangsFrom;
|
|
193
200
|
}
|
|
194
201
|
}
|
|
@@ -197,6 +204,11 @@ class OrganizationSeries extends SankeySeries {
|
|
|
197
204
|
while (parentNode &&
|
|
198
205
|
shapeArgs.height > indent + minLength) {
|
|
199
206
|
shapeArgs.height -= indent;
|
|
207
|
+
// Fixes nodes not dropping in non-inverted charts.
|
|
208
|
+
// Hanging right is the same as non-inverted.
|
|
209
|
+
if (!chart.inverted || hangingRight) {
|
|
210
|
+
shapeArgs.y += indent;
|
|
211
|
+
}
|
|
200
212
|
parentNode = parentNode.hangsFrom;
|
|
201
213
|
}
|
|
202
214
|
}
|
|
@@ -204,7 +216,7 @@ class OrganizationSeries extends SankeySeries {
|
|
|
204
216
|
// Option indentLogic === "inherit"
|
|
205
217
|
// Do nothing (v9.3.2 and prev versions):
|
|
206
218
|
shapeArgs.height -= indent;
|
|
207
|
-
if (!chart.inverted) {
|
|
219
|
+
if (!chart.inverted || hangingRight) {
|
|
208
220
|
shapeArgs.y += indent;
|
|
209
221
|
}
|
|
210
222
|
}
|
|
@@ -254,6 +254,19 @@ const OrganizationSeriesDefaults = {
|
|
|
254
254
|
* @private
|
|
255
255
|
*/
|
|
256
256
|
hangingIndentTranslation: 'inherit',
|
|
257
|
+
/**
|
|
258
|
+
* Whether links connecting hanging nodes should be drawn on the left
|
|
259
|
+
* or right side. Useful for RTL layouts.
|
|
260
|
+
* **Note:** Only effects inverted charts (vertical layout).
|
|
261
|
+
*
|
|
262
|
+
* @sample highcharts/series-organization/hanging-side
|
|
263
|
+
* Nodes hanging from right side.
|
|
264
|
+
*
|
|
265
|
+
* @type {'left'|'right'}
|
|
266
|
+
* @since 11.3.0
|
|
267
|
+
* @default 'left'
|
|
268
|
+
*/
|
|
269
|
+
hangingSide: 'left',
|
|
257
270
|
/**
|
|
258
271
|
*
|
|
259
272
|
* The color of the links between nodes. This option is moved to
|
|
@@ -292,8 +305,8 @@ const OrganizationSeriesDefaults = {
|
|
|
292
305
|
minNodeLength: 10,
|
|
293
306
|
/**
|
|
294
307
|
* In a horizontal chart, the width of the nodes in pixels. Note that
|
|
295
|
-
* most organization charts are vertical, so the name of this
|
|
296
|
-
* is counterintuitive.
|
|
308
|
+
* most organization charts are inverted (vertical), so the name of this
|
|
309
|
+
* option is counterintuitive.
|
|
297
310
|
*
|
|
298
311
|
* @see [minNodeLength](#plotOptions.organization.minNodeLength)
|
|
299
312
|
*
|
|
@@ -9,12 +9,10 @@
|
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
11
|
import GraphLayout from '../GraphLayoutComposition.js';
|
|
12
|
-
import H from '../../Core/Globals.js';
|
|
13
|
-
const { composed } = H;
|
|
14
12
|
import PackedBubbleIntegration from './PackedBubbleIntegration.js';
|
|
15
13
|
import ReingoldFruchtermanLayout from '../Networkgraph/ReingoldFruchtermanLayout.js';
|
|
16
14
|
import U from '../../Core/Utilities.js';
|
|
17
|
-
const { addEvent, pick
|
|
15
|
+
const { addEvent, pick } = U;
|
|
18
16
|
/* *
|
|
19
17
|
*
|
|
20
18
|
* Functions
|
|
@@ -63,9 +61,9 @@ class PackedBubbleLayout extends ReingoldFruchtermanLayout {
|
|
|
63
61
|
ReingoldFruchtermanLayout.compose(ChartClass);
|
|
64
62
|
GraphLayout.integrations.packedbubble = PackedBubbleIntegration;
|
|
65
63
|
GraphLayout.layouts.packedbubble = PackedBubbleLayout;
|
|
66
|
-
|
|
64
|
+
const chartProto = ChartClass.prototype;
|
|
65
|
+
if (!chartProto.getSelectedParentNodes) {
|
|
67
66
|
addEvent(ChartClass, 'beforeRedraw', onChartBeforeRedraw);
|
|
68
|
-
const chartProto = ChartClass.prototype;
|
|
69
67
|
chartProto.getSelectedParentNodes = chartGetSelectedParentNodes;
|
|
70
68
|
}
|
|
71
69
|
}
|
|
@@ -36,7 +36,7 @@ class PackedBubblePoint extends BubblePoint {
|
|
|
36
36
|
return Point.prototype.destroy.apply(this, arguments);
|
|
37
37
|
}
|
|
38
38
|
firePointEvent() {
|
|
39
|
-
const
|
|
39
|
+
const series = this.series, seriesOptions = series.options;
|
|
40
40
|
if (this.isParentNode && seriesOptions.parentNode) {
|
|
41
41
|
const temp = seriesOptions.allowPointSelect;
|
|
42
42
|
seriesOptions.allowPointSelect = (seriesOptions.parentNode.allowPointSelect);
|
|
@@ -147,7 +147,7 @@ class PackedBubbleSeries extends BubbleSeries {
|
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* The function responsible for calculating the parent node radius
|
|
150
|
-
* based on the total surface of
|
|
150
|
+
* based on the total surface of inside-bubbles and the group BBox
|
|
151
151
|
* @private
|
|
152
152
|
*/
|
|
153
153
|
calculateParentRadius() {
|
|
@@ -292,7 +292,7 @@ class PackedBubbleSeries extends BubbleSeries {
|
|
|
292
292
|
seriesProto.destroy.apply(this, arguments);
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
|
-
* Packedbubble has two separate
|
|
295
|
+
* Packedbubble has two separate collections of nodes if split, render
|
|
296
296
|
* dataLabels for both sets:
|
|
297
297
|
* @private
|
|
298
298
|
*/
|
|
@@ -376,12 +376,7 @@ class PackedBubbleSeries extends BubbleSeries {
|
|
|
376
376
|
parentNode.graphic.element.point = parentNode;
|
|
377
377
|
}
|
|
378
378
|
dataLabels.forEach((dataLabel) => {
|
|
379
|
-
|
|
380
|
-
dataLabel.div.point = parentNode;
|
|
381
|
-
}
|
|
382
|
-
else {
|
|
383
|
-
dataLabel.element.point = parentNode;
|
|
384
|
-
}
|
|
379
|
+
(dataLabel.div || dataLabel.element).point = parentNode;
|
|
385
380
|
});
|
|
386
381
|
}
|
|
387
382
|
}
|
|
@@ -436,7 +431,7 @@ class PackedBubbleSeries extends BubbleSeries {
|
|
|
436
431
|
/**
|
|
437
432
|
* Mouse up action, finalizing drag&drop.
|
|
438
433
|
* @private
|
|
439
|
-
* @param {Highcharts.Point} point The point that event
|
|
434
|
+
* @param {Highcharts.Point} point The point that event occurred.
|
|
440
435
|
*/
|
|
441
436
|
onMouseUp(dnPoint) {
|
|
442
437
|
const point = dnPoint;
|
|
@@ -584,7 +579,7 @@ class PackedBubbleSeries extends BubbleSeries {
|
|
|
584
579
|
/**
|
|
585
580
|
* Function that is adding one bubble based on positions and sizes of
|
|
586
581
|
* two other bubbles, lastBubble is the last added bubble, newOrigin is
|
|
587
|
-
* the bubble for positioning new bubbles. nextBubble is the
|
|
582
|
+
* the bubble for positioning new bubbles. nextBubble is the currently
|
|
588
583
|
* added bubble for which we are calculating positions
|
|
589
584
|
* @private
|
|
590
585
|
* @param {Array<number>} lastBubble The closest last bubble
|
|
@@ -816,6 +811,7 @@ extend(PackedBubbleSeries.prototype, {
|
|
|
816
811
|
directTouch: true,
|
|
817
812
|
forces: ['barycenter', 'repulsive'],
|
|
818
813
|
hasDraggableNodes: true,
|
|
814
|
+
invertible: false,
|
|
819
815
|
isCartesian: false,
|
|
820
816
|
noSharedTooltip: true,
|
|
821
817
|
pointArrayMap: ['value'],
|
|
@@ -330,10 +330,10 @@ function destroyAllStackShadows(chart) {
|
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
// This is a workaround due to no implementation of the animation drilldown.
|
|
333
|
-
addEvent(Chart, 'afterDrilldown', function (
|
|
333
|
+
addEvent(Chart, 'afterDrilldown', function () {
|
|
334
334
|
destroyAllStackShadows(this);
|
|
335
335
|
});
|
|
336
|
-
addEvent(Chart, 'afterDrillUp', function (
|
|
336
|
+
addEvent(Chart, 'afterDrillUp', function () {
|
|
337
337
|
destroyAllStackShadows(this);
|
|
338
338
|
});
|
|
339
339
|
PictorialSeries.prototype.pointClass = PictorialPoint;
|
|
@@ -83,7 +83,7 @@ var ColumnDataLabel;
|
|
|
83
83
|
/** @private */
|
|
84
84
|
function compose(PieSeriesClass) {
|
|
85
85
|
DataLabel.compose(Series);
|
|
86
|
-
if (pushUnique(composed,
|
|
86
|
+
if (pushUnique(composed, 'PieDataLabel')) {
|
|
87
87
|
const pieProto = PieSeriesClass.prototype;
|
|
88
88
|
pieProto.dataLabelPositioners = dataLabelPositioners;
|
|
89
89
|
pieProto.alignDataLabel = noop;
|
|
@@ -197,7 +197,7 @@ var ColumnDataLabel;
|
|
|
197
197
|
bottom = Math.min(centerY + radius + maxLabelDistance, chart.plotHeight);
|
|
198
198
|
points.forEach((point) => {
|
|
199
199
|
// Check if specific points' label is outside the pie
|
|
200
|
-
(point.dataLabels || []).forEach((dataLabel
|
|
200
|
+
(point.dataLabels || []).forEach((dataLabel) => {
|
|
201
201
|
const labelPosition = dataLabel.dataLabelPosition;
|
|
202
202
|
if (labelPosition &&
|
|
203
203
|
labelPosition.distance > 0) {
|
|
@@ -12,7 +12,7 @@ import A from '../../Core/Animation/AnimationUtilities.js';
|
|
|
12
12
|
const { setAnimation } = A;
|
|
13
13
|
import Point from '../../Core/Series/Point.js';
|
|
14
14
|
import U from '../../Core/Utilities.js';
|
|
15
|
-
const { addEvent, defined, extend, isNumber,
|
|
15
|
+
const { addEvent, defined, extend, isNumber, pick, relativeLength } = U;
|
|
16
16
|
/* *
|
|
17
17
|
*
|
|
18
18
|
* Class
|
|
@@ -19,7 +19,7 @@ import Series from '../../Core/Series/Series.js';
|
|
|
19
19
|
import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
|
|
20
20
|
import Symbols from '../../Core/Renderer/SVG/Symbols.js';
|
|
21
21
|
import U from '../../Core/Utilities.js';
|
|
22
|
-
const { clamp, extend, fireEvent, merge, pick
|
|
22
|
+
const { clamp, extend, fireEvent, merge, pick } = U;
|
|
23
23
|
/* *
|
|
24
24
|
*
|
|
25
25
|
* Class
|
|
@@ -249,6 +249,14 @@ class PieSeries extends Series {
|
|
|
249
249
|
// given. If positions are passed as a parameter, we're in a
|
|
250
250
|
// recursive loop for adjusting space for data labels.
|
|
251
251
|
if (!positions) {
|
|
252
|
+
/**
|
|
253
|
+
* The series center position, read only. This applies only to
|
|
254
|
+
* circular chart types like pie and sunburst. It is an array of
|
|
255
|
+
* `[centerX, centerY, diameter, innerDiameter]`.
|
|
256
|
+
*
|
|
257
|
+
* @name Highcharts.Series#center
|
|
258
|
+
* @type {Array<number>}
|
|
259
|
+
*/
|
|
252
260
|
series.center = positions = series.getCenter();
|
|
253
261
|
}
|
|
254
262
|
// Calculate the geometry for each point
|
|
@@ -339,6 +347,7 @@ extend(PieSeries.prototype, {
|
|
|
339
347
|
drawTracker: ColumnSeries.prototype.drawTracker,
|
|
340
348
|
getCenter: CU.getCenter,
|
|
341
349
|
getSymbol: noop,
|
|
350
|
+
invertible: false,
|
|
342
351
|
isCartesian: false,
|
|
343
352
|
noSharedTooltip: true,
|
|
344
353
|
pointAttribs: ColumnSeries.prototype.pointAttribs,
|
|
@@ -116,7 +116,7 @@ const PieSeriesDefaults = {
|
|
|
116
116
|
* Empty pie series
|
|
117
117
|
*
|
|
118
118
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
119
|
-
* @default
|
|
119
|
+
* @default ${palette.neutralColor20}
|
|
120
120
|
* @apioption plotOptions.pie.color
|
|
121
121
|
*/
|
|
122
122
|
/**
|
|
@@ -29,7 +29,7 @@ class Pie3DSeries extends PieSeries {
|
|
|
29
29
|
*
|
|
30
30
|
* */
|
|
31
31
|
static compose(SeriesClass) {
|
|
32
|
-
if (pushUnique(composed,
|
|
32
|
+
if (pushUnique(composed, 'Pie3D')) {
|
|
33
33
|
SeriesClass.types.pie = Pie3DSeries;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -207,4 +207,4 @@ export default Pie3DSeries;
|
|
|
207
207
|
* @requires highcharts-3d
|
|
208
208
|
* @apioption plotOptions.pie.depth
|
|
209
209
|
*/
|
|
210
|
-
''; // keeps doclets above after
|
|
210
|
+
''; // keeps doclets above after transpiledion
|
|
@@ -72,13 +72,13 @@ function findAlignments(angle, options) {
|
|
|
72
72
|
* @private
|
|
73
73
|
* @param {boolean} calculateNeighbours
|
|
74
74
|
* Check if connectors should be calculated for neighbour points as
|
|
75
|
-
* well allows short
|
|
75
|
+
* well allows short recurrence
|
|
76
76
|
*/
|
|
77
77
|
function getConnectors(segment, index, calculateNeighbours, connectEnds) {
|
|
78
78
|
const smoothing = 1.5, denom = smoothing + 1, addedNumber = connectEnds ? 1 : 0;
|
|
79
79
|
let i, leftContX, leftContY, rightContX, rightContY, jointAngle;
|
|
80
80
|
// Calculate final index of points depending on the initial index value.
|
|
81
|
-
// Because of calculating neighbours, index may be
|
|
81
|
+
// Because of calculating neighbours, index may be outside segment
|
|
82
82
|
// array.
|
|
83
83
|
if (index >= 0 && index <= segment.length - 1) {
|
|
84
84
|
i = index;
|
|
@@ -168,15 +168,13 @@ function onPointerGetSelectionBox(event) {
|
|
|
168
168
|
const marker = event.args.marker, xAxis = this.chart.xAxis[0], yAxis = this.chart.yAxis[0], inverted = this.chart.inverted, radialAxis = inverted ? yAxis : xAxis, linearAxis = inverted ? xAxis : yAxis;
|
|
169
169
|
if (this.chart.polar) {
|
|
170
170
|
event.preventDefault();
|
|
171
|
-
|
|
172
|
-
let r = (marker.attr ? marker.attr('r') : marker.r);
|
|
173
|
-
let end = (marker.attr ? marker.attr('end') : marker.end) - radialAxis.startAngleRad;
|
|
174
|
-
let innerR = (marker.attr ? marker.attr('innerR') : marker.innerR);
|
|
171
|
+
const start = (marker.attr ? marker.attr('start') : marker.start) - radialAxis.startAngleRad, r = (marker.attr ? marker.attr('r') : marker.r), end = (marker.attr ? marker.attr('end') : marker.end) - radialAxis.startAngleRad, innerR = (marker.attr ? marker.attr('innerR') : marker.innerR);
|
|
175
172
|
event.result.x = start + radialAxis.pos;
|
|
176
173
|
event.result.width = end - start;
|
|
177
|
-
// innerR goes from pane's center but toValue computes values from
|
|
178
|
-
|
|
179
|
-
event.result.
|
|
174
|
+
// `innerR` goes from pane's center but `toValue` computes values from
|
|
175
|
+
// top
|
|
176
|
+
event.result.y = linearAxis.len + linearAxis.pos - r;
|
|
177
|
+
event.result.height = r - innerR;
|
|
180
178
|
}
|
|
181
179
|
}
|
|
182
180
|
/**
|
|
@@ -187,7 +185,7 @@ function onPointerGetSelectionMarkerAttrs(event) {
|
|
|
187
185
|
const chart = this.chart;
|
|
188
186
|
if (chart.polar && chart.hoverPane && chart.hoverPane.axis) {
|
|
189
187
|
event.preventDefault();
|
|
190
|
-
const center = chart.hoverPane.center, mouseDownX =
|
|
188
|
+
const center = chart.hoverPane.center, mouseDownX = chart.mouseDownX || 0, mouseDownY = chart.mouseDownY || 0, chartY = event.args.chartY, chartX = event.args.chartX, fullCircle = Math.PI * 2, startAngleRad = chart.hoverPane.axis.startAngleRad, endAngleRad = chart.hoverPane.axis.endAngleRad, linearAxis = chart.inverted ? chart.xAxis[0] : chart.yAxis[0], attrs = {};
|
|
191
189
|
let shapeType = 'arc';
|
|
192
190
|
attrs.x = center[0] + chart.plotLeft;
|
|
193
191
|
attrs.y = center[1] + chart.plotTop;
|
|
@@ -224,7 +222,7 @@ function onPointerGetSelectionMarkerAttrs(event) {
|
|
|
224
222
|
Math.min(endAngle + startAngleRad, endAngleRad);
|
|
225
223
|
// Adjust the selection shape for polygon grid lines
|
|
226
224
|
if (linearAxis.options.gridLineInterpolation === 'polygon') {
|
|
227
|
-
const radialAxis = chart.hoverPane.axis,
|
|
225
|
+
const radialAxis = chart.hoverPane.axis, min = start - radialAxis.startAngleRad + radialAxis.pos, max = end - start;
|
|
228
226
|
let path = linearAxis.getPlotLinePath({
|
|
229
227
|
value: linearAxis.max
|
|
230
228
|
}), pathStart = radialAxis.toValue(min), pathEnd = radialAxis.toValue(min + max);
|
|
@@ -872,14 +870,18 @@ function wrapSplineSeriesGetPointSpline(proceed, segment, point, i) {
|
|
|
872
870
|
* @private
|
|
873
871
|
*/
|
|
874
872
|
function wrapPointPos(proceed, chartCoordinates, plotY = this.plotY) {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
plotX
|
|
879
|
-
plotY
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
873
|
+
if (!this.destroyed) {
|
|
874
|
+
const { plotX, series } = this, { chart } = series;
|
|
875
|
+
if (chart.polar &&
|
|
876
|
+
isNumber(plotX) &&
|
|
877
|
+
isNumber(plotY)) {
|
|
878
|
+
return [
|
|
879
|
+
plotX + (chartCoordinates ? chart.plotLeft : 0),
|
|
880
|
+
plotY + (chartCoordinates ? chart.plotTop : 0)
|
|
881
|
+
];
|
|
882
|
+
}
|
|
883
|
+
return proceed.call(this, chartCoordinates, plotY);
|
|
884
|
+
}
|
|
883
885
|
}
|
|
884
886
|
/* *
|
|
885
887
|
*
|
|
@@ -900,7 +902,7 @@ class PolarAdditions {
|
|
|
900
902
|
static compose(AxisClass, ChartClass, PointerClass, SeriesClass, TickClass, PointClass, AreaSplineRangeSeriesClass, ColumnSeriesClass, LineSeriesClass, SplineSeriesClass) {
|
|
901
903
|
Pane.compose(ChartClass, PointerClass);
|
|
902
904
|
RadialAxis.compose(AxisClass, TickClass);
|
|
903
|
-
if (pushUnique(composed,
|
|
905
|
+
if (pushUnique(composed, 'Polar')) {
|
|
904
906
|
const chartProto = ChartClass.prototype, pointProto = PointClass.prototype, pointerProto = PointerClass.prototype, seriesProto = SeriesClass.prototype;
|
|
905
907
|
addEvent(ChartClass, 'afterDrawChartBox', onChartAfterDrawChartBox);
|
|
906
908
|
addEvent(ChartClass, 'getAxes', onChartGetAxes);
|
|
@@ -20,7 +20,7 @@ const { column: ColumnSeries, line: LineSeries } = SeriesRegistry.seriesTypes;
|
|
|
20
20
|
import Color from '../../Core/Color/Color.js';
|
|
21
21
|
const { parse: color } = Color;
|
|
22
22
|
import TU from '../TreeUtilities.js';
|
|
23
|
-
const { getLevelOptions } = TU;
|
|
23
|
+
const { getLevelOptions, getNodeWidth } = TU;
|
|
24
24
|
import U from '../../Core/Utilities.js';
|
|
25
25
|
const { clamp, extend, isObject, merge, pick, relativeLength, stableSort } = U;
|
|
26
26
|
/* *
|
|
@@ -199,14 +199,14 @@ class SankeySeries extends ColumnSeries {
|
|
|
199
199
|
}
|
|
200
200
|
this.generatePoints();
|
|
201
201
|
this.nodeColumns = this.createNodeColumns();
|
|
202
|
-
this.
|
|
203
|
-
|
|
202
|
+
const series = this, chart = this.chart, options = this.options, nodeColumns = this.nodeColumns, columnCount = nodeColumns.length;
|
|
203
|
+
this.nodeWidth = getNodeWidth(this, columnCount);
|
|
204
204
|
this.nodePadding = this.getNodePadding();
|
|
205
205
|
// Find out how much space is needed. Base it on the translation
|
|
206
|
-
// factor of the most
|
|
206
|
+
// factor of the most spacious column.
|
|
207
207
|
this.translationFactor = nodeColumns.reduce((translationFactor, column) => Math.min(translationFactor, column.sankeyColumn.getTranslationFactor(series)), Infinity);
|
|
208
208
|
this.colDistance =
|
|
209
|
-
(chart.plotSizeX - nodeWidth -
|
|
209
|
+
(chart.plotSizeX - this.nodeWidth -
|
|
210
210
|
options.borderWidth) / Math.max(1, nodeColumns.length - 1);
|
|
211
211
|
// Calculate level options used in sankey and organization
|
|
212
212
|
series.mapOptionsToLevel = getLevelOptions({
|
|
@@ -530,7 +530,7 @@ export default SankeySeries;
|
|
|
530
530
|
* The vertical offset of a node in terms of weight. Positive values shift the
|
|
531
531
|
* node downwards, negative shift it upwards.
|
|
532
532
|
*
|
|
533
|
-
* If a
|
|
533
|
+
* If a percentage string is given, the node is offset by the percentage of the
|
|
534
534
|
* node size plus `nodePadding`.
|
|
535
535
|
*
|
|
536
536
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/sankey-node-column/|Highcharts-Demo:}
|
|
@@ -545,7 +545,7 @@ export default SankeySeries;
|
|
|
545
545
|
* The horizontal offset of a node. Positive values shift the node right,
|
|
546
546
|
* negative shift it left.
|
|
547
547
|
*
|
|
548
|
-
* If a
|
|
548
|
+
* If a percentage string is given, the node is offset by the percentage of the
|
|
549
549
|
* node size.
|
|
550
550
|
*
|
|
551
551
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/sankey-node-column/|Highcharts-Demo:}
|
|
@@ -558,7 +558,7 @@ export default SankeySeries;
|
|
|
558
558
|
* The vertical offset of a node. Positive values shift the node down,
|
|
559
559
|
* negative shift it up.
|
|
560
560
|
*
|
|
561
|
-
* If a
|
|
561
|
+
* If a percentage string is given, the node is offset by the percentage of the
|
|
562
562
|
* node size.
|
|
563
563
|
*
|
|
564
564
|
* @see {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/sankey-node-column/|Highcharts-Demo:}
|
|
@@ -227,23 +227,57 @@ const SankeySeriesDefaults = {
|
|
|
227
227
|
*/
|
|
228
228
|
nodeAlignment: 'center',
|
|
229
229
|
/**
|
|
230
|
-
* The pixel width of each node in a sankey diagram or dependency wheel,
|
|
231
|
-
*
|
|
230
|
+
* The pixel width of each node in a sankey diagram or dependency wheel, or
|
|
231
|
+
* the height in case the chart is inverted.
|
|
232
232
|
*
|
|
233
|
-
*
|
|
233
|
+
* Can be a number or a percentage string.
|
|
234
|
+
*
|
|
235
|
+
* Sankey series also support setting it to `auto`. With this setting, the
|
|
236
|
+
* nodes are sized to fill up the plot area in the longitudinal direction,
|
|
237
|
+
* regardless of the number of levels.
|
|
238
|
+
*
|
|
239
|
+
* @see [sankey.nodeDistance](#nodeDistance)
|
|
240
|
+
* @sample highcharts/series-sankey/node-distance
|
|
241
|
+
* Sankey with auto node width combined with node distance
|
|
242
|
+
* @sample highcharts/series-organization/node-distance
|
|
243
|
+
* Organization chart with node distance of 50%
|
|
244
|
+
*
|
|
245
|
+
* @type {number|string}
|
|
234
246
|
*/
|
|
235
247
|
nodeWidth: 20,
|
|
236
248
|
/**
|
|
237
249
|
* The padding between nodes in a sankey diagram or dependency wheel, in
|
|
238
|
-
* pixels.
|
|
250
|
+
* pixels. For sankey charts, this applies to the nodes of the same column,
|
|
251
|
+
* so vertical distance by default, or horizontal distance in an inverted
|
|
252
|
+
* (vertical) sankey.
|
|
239
253
|
*
|
|
240
|
-
* If the number of nodes is so great that it is
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* @private
|
|
254
|
+
* If the number of nodes is so great that it is impossible to lay them out
|
|
255
|
+
* within the plot area with the given `nodePadding`, they will be rendered
|
|
256
|
+
* with a smaller padding as a strategy to avoid overflow.
|
|
245
257
|
*/
|
|
246
258
|
nodePadding: 10,
|
|
259
|
+
/**
|
|
260
|
+
* The distance between nodes in a sankey diagram in the longitudinal
|
|
261
|
+
* direction. The longitudinal direction means the direction that the chart
|
|
262
|
+
* flows - in a horizontal chart the distance is horizontal, in an inverted
|
|
263
|
+
* chart (vertical), the distance is vertical.
|
|
264
|
+
*
|
|
265
|
+
* If a number is given, it denotes pixels. If a percentage string is given,
|
|
266
|
+
* the distance is a percentage of the rendered node width. A `nodeDistance`
|
|
267
|
+
* of `100%` will render equal widths for the nodes and the gaps between
|
|
268
|
+
* them.
|
|
269
|
+
*
|
|
270
|
+
* This option applies only when the `nodeWidth` option is `auto`, making
|
|
271
|
+
* the node width respond to the number of columns.
|
|
272
|
+
*
|
|
273
|
+
* @since 11.4.0
|
|
274
|
+
* @sample highcharts/series-sankey/node-distance
|
|
275
|
+
* Sankey with dnode distance of 100% means equal to node width
|
|
276
|
+
* @sample highcharts/series-organization/node-distance
|
|
277
|
+
* Organization chart with node distance of 50%
|
|
278
|
+
* @type {number|string}
|
|
279
|
+
*/
|
|
280
|
+
nodeDistance: 30,
|
|
247
281
|
showInLegend: false,
|
|
248
282
|
states: {
|
|
249
283
|
hover: {
|
|
@@ -340,7 +374,7 @@ const SankeySeriesDefaults = {
|
|
|
340
374
|
* @apioption series.sankey.nodes
|
|
341
375
|
*/
|
|
342
376
|
/**
|
|
343
|
-
* The id of the auto-generated node,
|
|
377
|
+
* The id of the auto-generated node, referring to the `from` or `to` setting of
|
|
344
378
|
* the link.
|
|
345
379
|
*
|
|
346
380
|
* @type {string}
|
|
@@ -383,6 +417,16 @@ const SankeySeriesDefaults = {
|
|
|
383
417
|
* @extends plotOptions.sankey.dataLabels
|
|
384
418
|
* @apioption series.sankey.nodes.dataLabels
|
|
385
419
|
*/
|
|
420
|
+
/**
|
|
421
|
+
* The height of the node.
|
|
422
|
+
*
|
|
423
|
+
* @sample highcharts/series-sankey/height/
|
|
424
|
+
* Sankey diagram with height options
|
|
425
|
+
*
|
|
426
|
+
* @type {number}
|
|
427
|
+
* @since 11.3.0
|
|
428
|
+
* @apioption series.sankey.nodes.height
|
|
429
|
+
*/
|
|
386
430
|
/**
|
|
387
431
|
* An optional level index of where to place the node. The default behaviour is
|
|
388
432
|
* to place it next to the preceding node. Alias of `nodes.column`, but in
|
|
@@ -414,7 +458,7 @@ const SankeySeriesDefaults = {
|
|
|
414
458
|
* Positive values shift the node downwards, negative shift it upwards. In a
|
|
415
459
|
* vertical layout, like organization chart, the offset is horizontal.
|
|
416
460
|
*
|
|
417
|
-
* If a
|
|
461
|
+
* If a percentage string is given, the node is offset by the percentage of the
|
|
418
462
|
* node size plus `nodePadding`.
|
|
419
463
|
*
|
|
420
464
|
* @deprecated
|
|
@@ -428,7 +472,7 @@ const SankeySeriesDefaults = {
|
|
|
428
472
|
* The horizontal offset of a node. Positive values shift the node right,
|
|
429
473
|
* negative shift it left.
|
|
430
474
|
*
|
|
431
|
-
* If a
|
|
475
|
+
* If a percentage string is given, the node is offset by the percentage of the
|
|
432
476
|
* node size.
|
|
433
477
|
*
|
|
434
478
|
* @sample highcharts/plotoptions/sankey-node-column/
|
|
@@ -443,7 +487,7 @@ const SankeySeriesDefaults = {
|
|
|
443
487
|
* The vertical offset of a node. Positive values shift the node down,
|
|
444
488
|
* negative shift it up.
|
|
445
489
|
*
|
|
446
|
-
* If a
|
|
490
|
+
* If a percentage string is given, the node is offset by the percentage of the
|
|
447
491
|
* node size.
|
|
448
492
|
*
|
|
449
493
|
* @sample highcharts/plotoptions/sankey-node-column/
|
|
@@ -13,7 +13,7 @@ const { composed } = H;
|
|
|
13
13
|
import Point from '../Core/Series/Point.js';
|
|
14
14
|
import Series from '../Core/Series/Series.js';
|
|
15
15
|
import SeriesRegistry from '../Core/Series/SeriesRegistry.js';
|
|
16
|
-
const { bubble
|
|
16
|
+
const { bubble } = SeriesRegistry.seriesTypes;
|
|
17
17
|
import SVGRenderer from '../Core/Renderer/SVG/SVGRenderer.js';
|
|
18
18
|
import U from '../Core/Utilities.js';
|
|
19
19
|
const { addEvent, defined, find, isNumber, pushUnique } = U;
|
|
@@ -46,7 +46,7 @@ var SeriesOnPointComposition;
|
|
|
46
46
|
* Chart class to use.
|
|
47
47
|
*/
|
|
48
48
|
function compose(SeriesClass, ChartClass) {
|
|
49
|
-
if (pushUnique(composed,
|
|
49
|
+
if (pushUnique(composed, 'SeriesOnPoint')) {
|
|
50
50
|
const { chartGetZData, seriesAfterInit, seriesAfterRender, seriesGetCenter, seriesShowOrHide, seriesTranslate } = Additions.prototype;
|
|
51
51
|
// We can mark support for pie series here because it's in the core.
|
|
52
52
|
// But all other series outside the core should be marked in its
|
|
@@ -233,7 +233,7 @@ var SeriesOnPointComposition;
|
|
|
233
233
|
return id === point.id;
|
|
234
234
|
});
|
|
235
235
|
// And also toggle series that are on toggled points. Redraw is
|
|
236
|
-
// not needed because it's fired later after
|
|
236
|
+
// not needed because it's fired later after showOrHide event
|
|
237
237
|
series && series.setVisible(!series.visible, false);
|
|
238
238
|
});
|
|
239
239
|
}
|
|
@@ -197,11 +197,6 @@ function getDlOptions(params) {
|
|
|
197
197
|
2 * (options.padding || 0), 1);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
// NOTE: alignDataLabel positions the data label differntly when rotation is
|
|
201
|
-
// 0. Avoiding this by setting rotation to a small number.
|
|
202
|
-
if (options.rotation === 0) {
|
|
203
|
-
options.rotation = 0.001;
|
|
204
|
-
}
|
|
205
200
|
return options;
|
|
206
201
|
}
|
|
207
202
|
/** @private */
|
|
@@ -444,7 +439,7 @@ class SunburstSeries extends TreemapSeries {
|
|
|
444
439
|
});
|
|
445
440
|
}
|
|
446
441
|
// Draw data labels after points
|
|
447
|
-
// TODO draw labels one by one to avoid
|
|
442
|
+
// TODO draw labels one by one to avoid additional looping
|
|
448
443
|
if (hackDataLabelAnimation && addedHack) {
|
|
449
444
|
series.hasRendered = false;
|
|
450
445
|
series.options.dataLabels.defer = true;
|
|
@@ -531,7 +526,7 @@ class SunburstSeries extends TreemapSeries {
|
|
|
531
526
|
}
|
|
532
527
|
child.shapeArgs = merge(values, {
|
|
533
528
|
plotX: center.x,
|
|
534
|
-
plotY: center.y
|
|
529
|
+
plotY: center.y
|
|
535
530
|
});
|
|
536
531
|
child.values = merge(values, {
|
|
537
532
|
val: val
|