highcharts 10.2.1 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/es-modules/Accessibility/Accessibility.js +1 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +9 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +36 -32
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -16
- package/es-modules/Accessibility/Options/LangDefaults.js +4 -0
- package/es-modules/Core/Axis/Axis.js +42 -32
- package/es-modules/Core/Axis/Axis3DComposition.js +501 -0
- package/es-modules/Core/Axis/Axis3DDefaults.js +130 -0
- package/es-modules/Core/Axis/AxisDefaults.js +20 -7
- package/es-modules/Core/Axis/Color/ColorAxis.js +46 -52
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +4 -2
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +161 -0
- package/es-modules/Core/Axis/OrdinalAxis.js +2 -1
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +1 -1
- package/es-modules/Core/Axis/RadialAxis.js +19 -5
- package/es-modules/Core/Axis/Tick.js +1 -1
- package/es-modules/Core/Axis/Tick3DComposition.js +71 -0
- package/es-modules/Core/Chart/Chart.js +16 -20
- package/es-modules/Core/Chart/Chart3D.js +4 -4
- package/es-modules/Core/Chart/ChartDefaults.js +33 -43
- package/es-modules/Core/Chart/GanttChart.js +1 -1
- package/es-modules/Core/Chart/MapChart.js +1 -1
- package/es-modules/Core/Chart/StockChart.js +11 -28
- package/es-modules/Core/{DefaultOptions.js → Defaults.js} +21 -37
- package/es-modules/Core/FormatUtilities.js +1 -1
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +114 -110
- package/es-modules/Core/Legend/LegendSymbol.js +9 -6
- package/es-modules/Core/MSPointer.js +4 -2
- package/es-modules/Core/Pointer.js +125 -75
- package/es-modules/Core/Renderer/SVG/SVGElement.js +0 -3
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +28 -14
- package/es-modules/Core/Series/DataLabel.js +8 -5
- package/es-modules/Core/Series/Point.js +38 -22
- package/es-modules/Core/Series/Series.js +12 -9
- package/es-modules/Core/Series/SeriesDefaults.js +36 -24
- package/es-modules/Core/Series/SeriesRegistry.js +2 -2
- package/es-modules/Core/Time.js +6 -5
- package/es-modules/Core/Tooltip.js +6 -28
- package/es-modules/Core/Utilities.js +6 -8
- package/es-modules/Extensions/Annotations/Annotation.js +1 -1
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +13 -8
- package/es-modules/Extensions/Annotations/MockPoint.js +2 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +4 -5
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/Popup.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +4 -4
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +1 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +11 -8
- package/es-modules/Extensions/Breadcrumbs.js +2 -2
- package/es-modules/Extensions/Data.js +2 -2
- package/es-modules/Extensions/DataGrouping/ApproximationDefaults.js +157 -0
- package/es-modules/Extensions/DataGrouping/ApproximationRegistry.js +35 -0
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +469 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +174 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +143 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +479 -0
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +6 -2
- package/es-modules/Extensions/Drilldown.js +3 -5
- package/es-modules/Extensions/ExportData/ExportData.js +31 -5
- package/es-modules/Extensions/Exporting/Exporting.js +47 -60
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +22 -24
- package/es-modules/Extensions/GeoJSON.js +3 -1
- package/es-modules/Extensions/MarkerClusters.js +1 -1
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +3 -3
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +1 -1
- package/es-modules/Extensions/OldiePolyfills.js +3 -1
- package/es-modules/Extensions/Pane.js +42 -5
- package/es-modules/Extensions/ParallelCoordinates.js +5 -1
- package/es-modules/Extensions/PatternFill.js +10 -10
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +2 -2
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +4 -0
- package/es-modules/Extensions/Sonification/Sonification.js +1 -1
- package/es-modules/Extensions/Themes/Avocado.js +1 -1
- package/es-modules/Extensions/Themes/BrandDark.js +1 -1
- package/es-modules/Extensions/Themes/BrandLight.js +1 -1
- package/es-modules/Extensions/Themes/DarkBlue.js +1 -1
- package/es-modules/Extensions/Themes/DarkGreen.js +1 -1
- package/es-modules/Extensions/Themes/DarkUnica.js +1 -1
- package/es-modules/Extensions/Themes/Gray.js +1 -1
- package/es-modules/Extensions/Themes/Grid.js +1 -1
- package/es-modules/Extensions/Themes/GridLight.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastDark.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastLight.js +1 -1
- package/es-modules/Extensions/Themes/SandSignika.js +1 -1
- package/es-modules/Extensions/Themes/Skies.js +1 -1
- package/es-modules/Extensions/Themes/Sunset.js +1 -1
- package/es-modules/Gantt/Connection.js +5 -5
- package/es-modules/Gantt/Pathfinder.js +6 -6
- package/es-modules/Maps/MapNavigation.js +1 -1
- package/es-modules/Maps/{MapNavigationOptionsDefault.js → MapNavigationDefaults.js} +4 -4
- package/es-modules/Maps/MapViewOptionsDefault.js +4 -4
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +3 -5
- package/es-modules/Series/AreaRange/AreaRangePoint.js +6 -10
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +59 -48
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -1
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +22 -16
- package/es-modules/Series/Bubble/BubbleLegendItem.js +17 -21
- package/es-modules/Series/Candlestick/CandlestickSeries.js +15 -175
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +179 -0
- package/es-modules/Series/Column/ColumnSeries.js +25 -506
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +487 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +40 -36
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +2 -106
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +183 -0
- package/es-modules/Series/DotPlot/DotPlotSeries.js +11 -12
- package/es-modules/Series/DrawPointUtilities.js +2 -14
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +5 -4
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +11 -7
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +19 -136
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +147 -0
- package/es-modules/Series/Flags/FlagsPoint.js +2 -3
- package/es-modules/Series/Flags/FlagsSeries.js +31 -298
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +295 -0
- package/es-modules/Series/Flags/FlagsSymbols.js +96 -71
- package/es-modules/Series/HLC/HLCPoint.js +2 -2
- package/es-modules/Series/HLC/HLCSeries.js +7 -172
- package/es-modules/Series/HLC/HLCSeriesDefaults.js +184 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +3 -0
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -20
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +78 -139
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +102 -0
- package/es-modules/Series/Item/ItemPoint.js +0 -1
- package/es-modules/Series/Item/ItemSeries.js +13 -8
- package/es-modules/Series/Line/LineSeries.js +8 -4
- package/es-modules/Series/Map/MapPoint.js +19 -1
- package/es-modules/Series/Map/MapSeries.js +7 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +4 -0
- package/es-modules/Series/MapPoint/MapPointPoint.js +0 -5
- package/es-modules/Series/MapPoint/MapPointSeries.js +24 -9
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +2 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +2 -0
- package/es-modules/Series/OHLC/OHLCPoint.js +0 -2
- package/es-modules/Series/OHLC/OHLCSeries.js +64 -160
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +151 -0
- package/es-modules/Series/Organization/OrganizationPoint.js +0 -2
- package/es-modules/Series/Organization/OrganizationSeries.js +96 -469
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +415 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -10
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -0
- package/es-modules/Series/PathUtilities.js +74 -0
- package/es-modules/Series/Pie/PieSeries.js +2 -644
- package/es-modules/Series/Pie/PieSeriesDefaults.js +660 -0
- package/es-modules/Series/PolarComposition.js +233 -15
- package/es-modules/Series/Sankey/SankeySeries.js +27 -530
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +522 -0
- package/es-modules/Series/Scatter/ScatterSeries.js +2 -172
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +188 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +12 -182
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +199 -0
- package/es-modules/Series/Sunburst/SunburstNode.js +34 -0
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +3 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -231
- package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +248 -0
- package/es-modules/Series/TreeUtilities.js +1 -2
- package/es-modules/Series/Treegraph/TreegraphLayout.js +338 -0
- package/es-modules/Series/Treegraph/TreegraphLink.js +92 -0
- package/es-modules/Series/Treegraph/TreegraphNode.js +206 -0
- package/es-modules/Series/Treegraph/TreegraphPoint.js +175 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +510 -0
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +231 -0
- package/es-modules/Series/Treemap/TreemapNode.js +48 -0
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -1
- package/es-modules/Series/Treemap/TreemapSeries.js +29 -27
- package/es-modules/Series/Variwide/VariwideComposition.js +70 -26
- package/es-modules/Series/Variwide/VariwidePoint.js +8 -7
- package/es-modules/Series/Variwide/VariwideSeries.js +19 -14
- package/es-modules/Series/Vector/VectorSeries.js +2 -2
- package/es-modules/Series/Venn/VennSeries.js +14 -0
- package/es-modules/Series/Waterfall/WaterfallSeries.js +0 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -2
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +3 -0
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +15 -4
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +21 -18
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +3 -4
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -2
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +6 -7
- package/es-modules/{Core → Stock/Navigator}/Navigator.js +112 -686
- package/es-modules/Stock/Navigator/NavigatorComposition.js +218 -0
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +490 -0
- package/es-modules/Stock/Navigator/NavigatorSymbols.js +44 -0
- package/es-modules/{Extensions → Stock/RangeSelector}/RangeSelector.js +154 -818
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +286 -0
- package/es-modules/Stock/RangeSelector/RangeSelectorDefaults.js +521 -0
- package/es-modules/{Core → Stock/Scrollbar}/Scrollbar.js +4 -4
- package/es-modules/{Core → Stock/Scrollbar}/ScrollbarDefaults.js +1 -1
- package/es-modules/Stock/{StockToolbar.js → StockTools/StockToolbar.js} +2 -2
- package/es-modules/Stock/{StockTools.js → StockTools/StockTools.js} +3 -3
- package/es-modules/Stock/{StockToolsBindings.js → StockTools/StockToolsBindings.js} +3 -3
- package/es-modules/Stock/{StockToolsDefaults.js → StockTools/StockToolsDefaults.js} +4 -4
- package/es-modules/Stock/{StockToolsGui.js → StockTools/StockToolsGui.js} +4 -4
- package/es-modules/Stock/{StockToolsUtilities.js → StockTools/StockToolsUtilities.js} +4 -4
- package/es-modules/masters/highcharts-3d.src.js +3 -5
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +6 -6
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arc-diagram.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +11 -3
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +9 -5
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +5 -2
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +4 -4
- package/es-modules/masters/modules/stock.src.js +17 -11
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegraph.src.js +13 -0
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +5 -2
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/brand-dark.src.js +1 -1
- package/es-modules/masters/themes/brand-light.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +97 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +476 -449
- package/highcharts-gantt.js +811 -808
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +14619 -14112
- package/highcharts-more.d.ts +0 -8
- package/highcharts-more.js +208 -201
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +0 -8
- package/highcharts-more.src.js +679 -289
- package/highcharts.d.ts +30739 -6156
- package/highcharts.js +590 -589
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +30739 -6156
- package/highcharts.src.js +1988 -1799
- package/highmaps.js +759 -757
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2339 -2077
- package/highstock.js +802 -794
- package/highstock.js.map +1 -1
- package/highstock.src.js +12349 -11416
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +4 -3
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +16 -5
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.d.ts +17 -0
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.d.ts +17 -0
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.d.ts +17 -0
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.d.ts +17 -0
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.d.ts +17 -0
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.src.d.ts +17 -0
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +14 -14
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +22 -19
- package/indicators/indicators-all.js +198 -199
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +63 -57
- package/indicators/indicators.js +13 -13
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +1 -15
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.d.ts +17 -0
- package/indicators/klinger.js +12 -12
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.d.ts +17 -0
- package/indicators/klinger.src.js +4 -3
- package/indicators/macd.js +1 -1
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +4 -3
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.d.ts +17 -0
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.d.ts +17 -0
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +2 -2
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +6 -5
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +7 -7
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +4 -3
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +9 -8
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +214 -213
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +991 -835
- package/modules/annotations-advanced.js +16 -16
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +29 -24
- package/modules/annotations.js +91 -91
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +29 -24
- package/modules/arc-diagram.d.ts +17 -0
- package/modules/arc-diagram.js +15 -15
- package/modules/arc-diagram.js.map +1 -1
- package/modules/arc-diagram.src.d.ts +17 -0
- package/modules/arc-diagram.src.js +6 -6
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +19 -19
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +13 -8
- package/modules/boost.js +37 -37
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +13 -8
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +1 -1
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +25 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +77 -58
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +27 -27
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +3 -3
- package/modules/datagrouping.d.ts +31 -0
- package/modules/datagrouping.js +23 -21
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +31 -0
- package/modules/datagrouping.src.js +921 -640
- package/modules/debugger.js +3 -3
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +2 -2
- package/modules/dependency-wheel.js +12 -12
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +191 -108
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +10 -13
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +5 -5
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +7 -3
- package/modules/drilldown.js +37 -37
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +5 -6
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +27 -22
- package/modules/export-data.js +26 -25
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +33 -6
- package/modules/exporting.js +36 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +81 -88
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +221 -219
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +12842 -12524
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +40 -40
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +80 -58
- package/modules/heikinashi.d.ts +17 -0
- package/modules/heikinashi.js +9 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.d.ts +17 -0
- package/modules/heikinashi.src.js +192 -165
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.d.ts +17 -0
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.d.ts +17 -0
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +14 -10
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.js +172 -171
- package/modules/map.js.map +1 -1
- package/modules/map.src.js +194 -121
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +2 -2
- package/modules/networkgraph.js +8 -8
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +5 -6
- package/modules/no-data-to-display.js +4 -4
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +2 -2
- package/modules/offline-exporting.js +4 -4
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +7 -7
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +9 -7
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +5 -5
- package/modules/organization.js +18 -16
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +659 -495
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +10 -10
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +6 -2
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +19 -23
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +11 -11
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.js +33 -32
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +571 -550
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +7 -3
- package/modules/series-on-point.d.ts +17 -0
- package/modules/series-on-point.js +1 -1
- package/modules/series-on-point.src.d.ts +17 -0
- package/modules/series-on-point.src.js +1 -1
- package/modules/solid-gauge.js +11 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +220 -192
- package/modules/sonification.js +2 -2
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +2 -2
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +59 -59
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +19 -21
- package/modules/stock.d.ts +26 -6
- package/modules/stock.js +212 -205
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +26 -6
- package/modules/stock.src.js +11361 -10617
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +75 -73
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +133 -57
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +257 -233
- package/modules/treegraph.d.ts +17 -0
- package/modules/treegraph.js +44 -0
- package/modules/treegraph.js.map +1 -0
- package/modules/treegraph.src.d.ts +17 -0
- package/modules/treegraph.src.js +1829 -0
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +2 -3
- package/modules/treemap.js +54 -53
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +90 -52
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +158 -106
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +3 -3
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +17 -16
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +41 -4
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +6 -15
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +1 -1
- package/themes/avocado.js +2 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +2 -2
- package/themes/brand-dark.d.ts +22 -0
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.d.ts +22 -0
- package/themes/brand-dark.src.js +2 -2
- package/themes/brand-light.d.ts +22 -0
- package/themes/brand-light.js +2 -2
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.d.ts +22 -0
- package/themes/brand-light.src.js +2 -2
- package/themes/dark-blue.js +2 -2
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +2 -2
- package/themes/dark-green.js +2 -2
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +2 -2
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +2 -2
- package/themes/gray.js +2 -2
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +2 -2
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +2 -2
- package/themes/grid.js +2 -2
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +2 -2
- package/themes/high-contrast-dark.d.ts +22 -0
- package/themes/high-contrast-dark.js +2 -2
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.d.ts +22 -0
- package/themes/high-contrast-dark.src.js +2 -2
- package/themes/high-contrast-light.d.ts +22 -0
- package/themes/high-contrast-light.js +2 -2
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.d.ts +22 -0
- package/themes/high-contrast-light.src.js +2 -2
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +2 -2
- package/themes/skies.js +2 -2
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +2 -2
- package/themes/sunset.js +2 -2
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +2 -2
- package/es-modules/Core/Axis/Axis3D.js +0 -612
- package/es-modules/Core/Axis/NavigatorAxis.js +0 -159
- package/es-modules/Core/Axis/Tick3D.js +0 -68
- package/es-modules/Extensions/DataGrouping.js +0 -1177
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -12
package/modules/sankey.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts JS v10.
|
|
2
|
+
* @license Highcharts JS v10.3.1 (2022-10-31)
|
|
3
3
|
*
|
|
4
4
|
* Sankey diagram module
|
|
5
5
|
*
|
|
@@ -477,6 +477,532 @@
|
|
|
477
477
|
|
|
478
478
|
return SankeyPoint;
|
|
479
479
|
});
|
|
480
|
+
_registerModule(_modules, 'Series/Sankey/SankeySeriesDefaults.js', [], function () {
|
|
481
|
+
/* *
|
|
482
|
+
*
|
|
483
|
+
* Sankey diagram module
|
|
484
|
+
*
|
|
485
|
+
* (c) 2010-2021 Torstein Honsi
|
|
486
|
+
*
|
|
487
|
+
* License: www.highcharts.com/license
|
|
488
|
+
*
|
|
489
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
490
|
+
*
|
|
491
|
+
* */
|
|
492
|
+
/* *
|
|
493
|
+
*
|
|
494
|
+
* API Options
|
|
495
|
+
*
|
|
496
|
+
* */
|
|
497
|
+
/**
|
|
498
|
+
* A sankey diagram is a type of flow diagram, in which the width of the
|
|
499
|
+
* link between two nodes is shown proportionally to the flow quantity.
|
|
500
|
+
*
|
|
501
|
+
* @sample highcharts/demo/sankey-diagram/
|
|
502
|
+
* Sankey diagram
|
|
503
|
+
* @sample highcharts/plotoptions/sankey-inverted/
|
|
504
|
+
* Inverted sankey diagram
|
|
505
|
+
* @sample highcharts/plotoptions/sankey-outgoing
|
|
506
|
+
* Sankey diagram with outgoing links
|
|
507
|
+
*
|
|
508
|
+
* @extends plotOptions.column
|
|
509
|
+
* @since 6.0.0
|
|
510
|
+
* @product highcharts
|
|
511
|
+
* @excluding animationLimit, boostThreshold, borderRadius,
|
|
512
|
+
* crisp, cropThreshold, colorAxis, colorKey, depth, dragDrop,
|
|
513
|
+
* edgeColor, edgeWidth, findNearestPointBy, grouping,
|
|
514
|
+
* groupPadding, groupZPadding, maxPointWidth, negativeColor,
|
|
515
|
+
* pointInterval, pointIntervalUnit, pointPadding,
|
|
516
|
+
* pointPlacement, pointRange, pointStart, pointWidth,
|
|
517
|
+
* shadow, softThreshold, stacking, threshold, zoneAxis,
|
|
518
|
+
* zones, minPointLength, dataSorting, boostBlending
|
|
519
|
+
* @requires modules/sankey
|
|
520
|
+
* @optionparent plotOptions.sankey
|
|
521
|
+
*
|
|
522
|
+
* @private
|
|
523
|
+
*/
|
|
524
|
+
var SankeySeriesDefaults = {
|
|
525
|
+
borderWidth: 0,
|
|
526
|
+
colorByPoint: true,
|
|
527
|
+
/**
|
|
528
|
+
* Higher numbers makes the links in a sankey diagram or dependency
|
|
529
|
+
* wheelrender more curved. A `curveFactor` of 0 makes the lines
|
|
530
|
+
* straight.
|
|
531
|
+
*
|
|
532
|
+
* @private
|
|
533
|
+
*/
|
|
534
|
+
curveFactor: 0.33,
|
|
535
|
+
/**
|
|
536
|
+
* Options for the data labels appearing on top of the nodes and links.
|
|
537
|
+
* For sankey charts,
|
|
538
|
+
data labels are visible for the nodes by default,
|
|
539
|
+
* but hidden for links. This is controlled by modifying the
|
|
540
|
+
* `nodeFormat`,
|
|
541
|
+
and the `format` that applies to links and is an empty
|
|
542
|
+
* string by default.
|
|
543
|
+
*
|
|
544
|
+
* @declare Highcharts.SeriesSankeyDataLabelsOptionsObject
|
|
545
|
+
*
|
|
546
|
+
* @private
|
|
547
|
+
*/
|
|
548
|
+
dataLabels: {
|
|
549
|
+
enabled: true,
|
|
550
|
+
backgroundColor: 'none',
|
|
551
|
+
crop: false,
|
|
552
|
+
/**
|
|
553
|
+
* The
|
|
554
|
+
* [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)
|
|
555
|
+
* specifying what to show for _nodes_ in the sankey diagram. By
|
|
556
|
+
* default the `nodeFormatter` returns `{point.name}`.
|
|
557
|
+
*
|
|
558
|
+
* @sample highcharts/plotoptions/sankey-link-datalabels/
|
|
559
|
+
* Node and link data labels
|
|
560
|
+
*
|
|
561
|
+
* @type {string}
|
|
562
|
+
*/
|
|
563
|
+
nodeFormat: void 0,
|
|
564
|
+
// eslint-disable-next-line valid-jsdoc
|
|
565
|
+
/**
|
|
566
|
+
* Callback to format data labels for _nodes_ in the sankey diagram.
|
|
567
|
+
* The `nodeFormat` option takes precedence over the
|
|
568
|
+
* `nodeFormatter`.
|
|
569
|
+
*
|
|
570
|
+
* @type {Highcharts.SeriesSankeyDataLabelsFormatterCallbackFunction}
|
|
571
|
+
* @since 6.0.2
|
|
572
|
+
*/
|
|
573
|
+
nodeFormatter: function () {
|
|
574
|
+
return this.point.name;
|
|
575
|
+
},
|
|
576
|
+
format: void 0,
|
|
577
|
+
// eslint-disable-next-line valid-jsdoc
|
|
578
|
+
/**
|
|
579
|
+
* @type {Highcharts.SeriesSankeyDataLabelsFormatterCallbackFunction}
|
|
580
|
+
*/
|
|
581
|
+
formatter: function () {
|
|
582
|
+
return;
|
|
583
|
+
},
|
|
584
|
+
inside: true
|
|
585
|
+
},
|
|
586
|
+
/**
|
|
587
|
+
* @ignore-option
|
|
588
|
+
*
|
|
589
|
+
* @private
|
|
590
|
+
*/
|
|
591
|
+
inactiveOtherPoints: true,
|
|
592
|
+
/**
|
|
593
|
+
* Set options on specific levels. Takes precedence over series options,
|
|
594
|
+
* but not node and link options.
|
|
595
|
+
*
|
|
596
|
+
* @sample highcharts/demo/sunburst
|
|
597
|
+
* Sunburst chart
|
|
598
|
+
*
|
|
599
|
+
* @type {Array<*>}
|
|
600
|
+
* @since 7.1.0
|
|
601
|
+
* @apioption plotOptions.sankey.levels
|
|
602
|
+
*/
|
|
603
|
+
/**
|
|
604
|
+
* Can set `borderColor` on all nodes which lay on the same level.
|
|
605
|
+
*
|
|
606
|
+
* @type {Highcharts.ColorString}
|
|
607
|
+
* @apioption plotOptions.sankey.levels.borderColor
|
|
608
|
+
*/
|
|
609
|
+
/**
|
|
610
|
+
* Can set `borderWidth` on all nodes which lay on the same level.
|
|
611
|
+
*
|
|
612
|
+
* @type {number}
|
|
613
|
+
* @apioption plotOptions.sankey.levels.borderWidth
|
|
614
|
+
*/
|
|
615
|
+
/**
|
|
616
|
+
* Can set `color` on all nodes which lay on the same level.
|
|
617
|
+
*
|
|
618
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
619
|
+
* @apioption plotOptions.sankey.levels.color
|
|
620
|
+
*/
|
|
621
|
+
/**
|
|
622
|
+
* Can set `colorByPoint` on all nodes which lay on the same level.
|
|
623
|
+
*
|
|
624
|
+
* @type {boolean}
|
|
625
|
+
* @default true
|
|
626
|
+
* @apioption plotOptions.sankey.levels.colorByPoint
|
|
627
|
+
*/
|
|
628
|
+
/**
|
|
629
|
+
* Can set `dataLabels` on all points which lay on the same level.
|
|
630
|
+
*
|
|
631
|
+
* @extends plotOptions.sankey.dataLabels
|
|
632
|
+
* @apioption plotOptions.sankey.levels.dataLabels
|
|
633
|
+
*/
|
|
634
|
+
/**
|
|
635
|
+
* Decides which level takes effect from the options set in the levels
|
|
636
|
+
* object.
|
|
637
|
+
*
|
|
638
|
+
* @type {number}
|
|
639
|
+
* @apioption plotOptions.sankey.levels.level
|
|
640
|
+
*/
|
|
641
|
+
/**
|
|
642
|
+
* Can set `linkOpacity` on all points which lay on the same level.
|
|
643
|
+
*
|
|
644
|
+
* @type {number}
|
|
645
|
+
* @default 0.5
|
|
646
|
+
* @apioption plotOptions.sankey.levels.linkOpacity
|
|
647
|
+
*/
|
|
648
|
+
/**
|
|
649
|
+
* Can set `states` on all nodes and points which lay on the same level.
|
|
650
|
+
*
|
|
651
|
+
* @extends plotOptions.sankey.states
|
|
652
|
+
* @apioption plotOptions.sankey.levels.states
|
|
653
|
+
*/
|
|
654
|
+
/**
|
|
655
|
+
* Opacity for the links between nodes in the sankey diagram.
|
|
656
|
+
*
|
|
657
|
+
* @private
|
|
658
|
+
*/
|
|
659
|
+
linkOpacity: 0.5,
|
|
660
|
+
/**
|
|
661
|
+
* Opacity for the nodes in the sankey diagram.
|
|
662
|
+
*
|
|
663
|
+
* @private
|
|
664
|
+
*/
|
|
665
|
+
opacity: 1,
|
|
666
|
+
/**
|
|
667
|
+
* The minimal width for a line of a sankey. By default,
|
|
668
|
+
* 0 values are not shown.
|
|
669
|
+
*
|
|
670
|
+
* @sample highcharts/plotoptions/sankey-minlinkwidth
|
|
671
|
+
* Sankey diagram with minimal link height
|
|
672
|
+
*
|
|
673
|
+
* @type {number}
|
|
674
|
+
* @since 7.1.3
|
|
675
|
+
* @default 0
|
|
676
|
+
* @apioption plotOptions.sankey.minLinkWidth
|
|
677
|
+
*
|
|
678
|
+
* @private
|
|
679
|
+
*/
|
|
680
|
+
minLinkWidth: 0,
|
|
681
|
+
/**
|
|
682
|
+
* The pixel width of each node in a sankey diagram or dependency wheel,
|
|
683
|
+
* or the height in case the chart is inverted.
|
|
684
|
+
*
|
|
685
|
+
* @private
|
|
686
|
+
*/
|
|
687
|
+
nodeWidth: 20,
|
|
688
|
+
/**
|
|
689
|
+
* The padding between nodes in a sankey diagram or dependency wheel, in
|
|
690
|
+
* pixels.
|
|
691
|
+
*
|
|
692
|
+
* If the number of nodes is so great that it is possible to lay them
|
|
693
|
+
* out within the plot area with the given `nodePadding`, they will be
|
|
694
|
+
* rendered with a smaller padding as a strategy to avoid overflow.
|
|
695
|
+
*
|
|
696
|
+
* @private
|
|
697
|
+
*/
|
|
698
|
+
nodePadding: 10,
|
|
699
|
+
showInLegend: false,
|
|
700
|
+
states: {
|
|
701
|
+
hover: {
|
|
702
|
+
/**
|
|
703
|
+
* Opacity for the links between nodes in the sankey diagram in
|
|
704
|
+
* hover mode.
|
|
705
|
+
*/
|
|
706
|
+
linkOpacity: 1,
|
|
707
|
+
/**
|
|
708
|
+
* Opacity for the nodes in the sankey diagram in hover mode.
|
|
709
|
+
*/
|
|
710
|
+
opacity: 1
|
|
711
|
+
},
|
|
712
|
+
/**
|
|
713
|
+
* The opposite state of a hover for a single point node/link.
|
|
714
|
+
*
|
|
715
|
+
* @declare Highcharts.SeriesStatesInactiveOptionsObject
|
|
716
|
+
*/
|
|
717
|
+
inactive: {
|
|
718
|
+
/**
|
|
719
|
+
* Opacity for the links between nodes in the sankey diagram in
|
|
720
|
+
* inactive mode.
|
|
721
|
+
*/
|
|
722
|
+
linkOpacity: 0.1,
|
|
723
|
+
/**
|
|
724
|
+
* Opacity of the nodes in the sankey diagram in inactive mode.
|
|
725
|
+
*/
|
|
726
|
+
opacity: 0.1,
|
|
727
|
+
/**
|
|
728
|
+
* Animation when not hovering over the marker.
|
|
729
|
+
*
|
|
730
|
+
* @type {boolean|Partial<Highcharts.AnimationOptionsObject>}
|
|
731
|
+
* @apioption plotOptions.series.states.inactive.animation
|
|
732
|
+
*/
|
|
733
|
+
animation: {
|
|
734
|
+
/** @internal */
|
|
735
|
+
duration: 50
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
tooltip: {
|
|
740
|
+
/**
|
|
741
|
+
* A callback for defining the format for _nodes_ in the chart's
|
|
742
|
+
* tooltip, as opposed to links.
|
|
743
|
+
*
|
|
744
|
+
* @type {Highcharts.FormatterCallbackFunction<Highcharts.SankeyNodeObject>}
|
|
745
|
+
* @since 6.0.2
|
|
746
|
+
* @apioption plotOptions.sankey.tooltip.nodeFormatter
|
|
747
|
+
*/
|
|
748
|
+
/**
|
|
749
|
+
* Whether the tooltip should follow the pointer or stay fixed on
|
|
750
|
+
* the item.
|
|
751
|
+
*/
|
|
752
|
+
followPointer: true,
|
|
753
|
+
headerFormat: '<span style="font-size: 10px">{series.name}</span><br/>',
|
|
754
|
+
pointFormat: '{point.fromNode.name} \u2192 {point.toNode.name}: <b>{point.weight}</b><br/>',
|
|
755
|
+
/**
|
|
756
|
+
* The
|
|
757
|
+
* [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)
|
|
758
|
+
* specifying what to show for _nodes_ in tooltip of a diagram
|
|
759
|
+
* series, as opposed to links.
|
|
760
|
+
*/
|
|
761
|
+
nodeFormat: '{point.name}: <b>{point.sum}</b><br/>'
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
/**
|
|
765
|
+
* A `sankey` series. If the [type](#series.sankey.type) option is not
|
|
766
|
+
* specified, it is inherited from [chart.type](#chart.type).
|
|
767
|
+
*
|
|
768
|
+
* @extends series,plotOptions.sankey
|
|
769
|
+
* @excluding animationLimit, boostBlending, boostThreshold, borderColor,
|
|
770
|
+
* borderRadius, borderWidth, crisp, cropThreshold, dataParser,
|
|
771
|
+
* dataURL, depth, dragDrop, edgeColor, edgeWidth,
|
|
772
|
+
* findNearestPointBy, getExtremesFromAll, grouping, groupPadding,
|
|
773
|
+
* groupZPadding, label, maxPointWidth, negativeColor, pointInterval,
|
|
774
|
+
* pointIntervalUnit, pointPadding, pointPlacement, pointRange,
|
|
775
|
+
* pointStart, pointWidth, shadow, softThreshold, stacking,
|
|
776
|
+
* threshold, zoneAxis, zones, dataSorting
|
|
777
|
+
* @product highcharts
|
|
778
|
+
* @requires modules/sankey
|
|
779
|
+
* @apioption series.sankey
|
|
780
|
+
*/
|
|
781
|
+
/**
|
|
782
|
+
* A collection of options for the individual nodes. The nodes in a sankey
|
|
783
|
+
* diagram are auto-generated instances of `Highcharts.Point`, but options can
|
|
784
|
+
* be applied here and linked by the `id`.
|
|
785
|
+
*
|
|
786
|
+
* @sample highcharts/css/sankey/
|
|
787
|
+
* Sankey diagram with node options
|
|
788
|
+
*
|
|
789
|
+
* @declare Highcharts.SeriesSankeyNodesOptionsObject
|
|
790
|
+
* @type {Array<*>}
|
|
791
|
+
* @product highcharts
|
|
792
|
+
* @apioption series.sankey.nodes
|
|
793
|
+
*/
|
|
794
|
+
/**
|
|
795
|
+
* The id of the auto-generated node, refering to the `from` or `to` setting of
|
|
796
|
+
* the link.
|
|
797
|
+
*
|
|
798
|
+
* @type {string}
|
|
799
|
+
* @product highcharts
|
|
800
|
+
* @apioption series.sankey.nodes.id
|
|
801
|
+
*/
|
|
802
|
+
/**
|
|
803
|
+
* The color of the auto generated node.
|
|
804
|
+
*
|
|
805
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
806
|
+
* @product highcharts
|
|
807
|
+
* @apioption series.sankey.nodes.color
|
|
808
|
+
*/
|
|
809
|
+
/**
|
|
810
|
+
* The color index of the auto generated node, especially for use in styled
|
|
811
|
+
* mode.
|
|
812
|
+
*
|
|
813
|
+
* @type {number}
|
|
814
|
+
* @product highcharts
|
|
815
|
+
* @apioption series.sankey.nodes.colorIndex
|
|
816
|
+
*/
|
|
817
|
+
/**
|
|
818
|
+
* An optional column index of where to place the node. The default behaviour is
|
|
819
|
+
* to place it next to the preceding node. Note that this option name is
|
|
820
|
+
* counter intuitive in inverted charts, like for example an organization chart
|
|
821
|
+
* rendered top down. In this case the "columns" are horizontal.
|
|
822
|
+
*
|
|
823
|
+
* @sample highcharts/plotoptions/sankey-node-column/
|
|
824
|
+
* Specified node column
|
|
825
|
+
*
|
|
826
|
+
* @type {number}
|
|
827
|
+
* @since 6.0.5
|
|
828
|
+
* @product highcharts
|
|
829
|
+
* @apioption series.sankey.nodes.column
|
|
830
|
+
*/
|
|
831
|
+
/**
|
|
832
|
+
* Individual data label for each node. The options are the same as
|
|
833
|
+
* the ones for [series.sankey.dataLabels](#series.sankey.dataLabels).
|
|
834
|
+
*
|
|
835
|
+
* @extends plotOptions.sankey.dataLabels
|
|
836
|
+
* @apioption series.sankey.nodes.dataLabels
|
|
837
|
+
*/
|
|
838
|
+
/**
|
|
839
|
+
* An optional level index of where to place the node. The default behaviour is
|
|
840
|
+
* to place it next to the preceding node. Alias of `nodes.column`, but in
|
|
841
|
+
* inverted sankeys and org charts, the levels are laid out as rows.
|
|
842
|
+
*
|
|
843
|
+
* @type {number}
|
|
844
|
+
* @since 7.1.0
|
|
845
|
+
* @product highcharts
|
|
846
|
+
* @apioption series.sankey.nodes.level
|
|
847
|
+
*/
|
|
848
|
+
/**
|
|
849
|
+
* The name to display for the node in data labels and tooltips. Use this when
|
|
850
|
+
* the name is different from the `id`. Where the id must be unique for each
|
|
851
|
+
* node, this is not necessary for the name.
|
|
852
|
+
*
|
|
853
|
+
* @sample highcharts/css/sankey/
|
|
854
|
+
* Sankey diagram with node options
|
|
855
|
+
*
|
|
856
|
+
* @type {string}
|
|
857
|
+
* @product highcharts
|
|
858
|
+
* @apioption series.sankey.nodes.name
|
|
859
|
+
*/
|
|
860
|
+
/**
|
|
861
|
+
* This option is deprecated, use
|
|
862
|
+
* [offsetHorizontal](#series.sankey.nodes.offsetHorizontal) and
|
|
863
|
+
* [offsetVertical](#series.sankey.nodes.offsetVertical) instead.
|
|
864
|
+
*
|
|
865
|
+
* In a horizontal layout, the vertical offset of a node in terms of weight.
|
|
866
|
+
* Positive values shift the node downwards, negative shift it upwards. In a
|
|
867
|
+
* vertical layout, like organization chart, the offset is horizontal.
|
|
868
|
+
*
|
|
869
|
+
* If a percantage string is given, the node is offset by the percentage of the
|
|
870
|
+
* node size plus `nodePadding`.
|
|
871
|
+
*
|
|
872
|
+
* @deprecated
|
|
873
|
+
* @type {number|string}
|
|
874
|
+
* @default 0
|
|
875
|
+
* @since 6.0.5
|
|
876
|
+
* @product highcharts
|
|
877
|
+
* @apioption series.sankey.nodes.offset
|
|
878
|
+
*/
|
|
879
|
+
/**
|
|
880
|
+
* The horizontal offset of a node. Positive values shift the node right,
|
|
881
|
+
* negative shift it left.
|
|
882
|
+
*
|
|
883
|
+
* If a percantage string is given, the node is offset by the percentage of the
|
|
884
|
+
* node size.
|
|
885
|
+
*
|
|
886
|
+
* @sample highcharts/plotoptions/sankey-node-column/
|
|
887
|
+
* Specified node offset
|
|
888
|
+
*
|
|
889
|
+
* @type {number|string}
|
|
890
|
+
* @since 9.3.0
|
|
891
|
+
* @product highcharts
|
|
892
|
+
* @apioption series.sankey.nodes.offsetHorizontal
|
|
893
|
+
*/
|
|
894
|
+
/**
|
|
895
|
+
* The vertical offset of a node. Positive values shift the node down,
|
|
896
|
+
* negative shift it up.
|
|
897
|
+
*
|
|
898
|
+
* If a percantage string is given, the node is offset by the percentage of the
|
|
899
|
+
* node size.
|
|
900
|
+
*
|
|
901
|
+
* @sample highcharts/plotoptions/sankey-node-column/
|
|
902
|
+
* Specified node offset
|
|
903
|
+
*
|
|
904
|
+
* @type {number|string}
|
|
905
|
+
* @since 9.3.0
|
|
906
|
+
* @product highcharts
|
|
907
|
+
* @apioption series.sankey.nodes.offsetVertical
|
|
908
|
+
*/
|
|
909
|
+
/**
|
|
910
|
+
* An array of data points for the series. For the `sankey` series type,
|
|
911
|
+
* points can be given in the following way:
|
|
912
|
+
*
|
|
913
|
+
* An array of objects with named values. The following snippet shows only a
|
|
914
|
+
* few settings, see the complete options set below. If the total number of data
|
|
915
|
+
* points exceeds the series' [turboThreshold](#series.area.turboThreshold),
|
|
916
|
+
* this option is not available.
|
|
917
|
+
*
|
|
918
|
+
* ```js
|
|
919
|
+
* data: [{
|
|
920
|
+
* from: 'Category1',
|
|
921
|
+
* to: 'Category2',
|
|
922
|
+
* weight: 2
|
|
923
|
+
* }, {
|
|
924
|
+
* from: 'Category1',
|
|
925
|
+
* to: 'Category3',
|
|
926
|
+
* weight: 5
|
|
927
|
+
* }]
|
|
928
|
+
* ```
|
|
929
|
+
*
|
|
930
|
+
* When you provide the data as tuples, the keys option has to be set as well.
|
|
931
|
+
*
|
|
932
|
+
* ```js
|
|
933
|
+
* keys: ['from', 'to', 'weight'],
|
|
934
|
+
* data: [
|
|
935
|
+
* ['Category1', 'Category2', 2],
|
|
936
|
+
* ['Category1', 'Category3', 5]
|
|
937
|
+
* ]
|
|
938
|
+
* ```
|
|
939
|
+
*
|
|
940
|
+
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
941
|
+
* Config objects
|
|
942
|
+
*
|
|
943
|
+
* @declare Highcharts.SeriesSankeyPointOptionsObject
|
|
944
|
+
* @type {Array<*>|Array<Array<(string|number)>>}
|
|
945
|
+
* @extends series.line.data
|
|
946
|
+
* @excluding dragDrop, drilldown, marker, x, y
|
|
947
|
+
* @product highcharts
|
|
948
|
+
* @apioption series.sankey.data
|
|
949
|
+
*/
|
|
950
|
+
/**
|
|
951
|
+
* The color for the individual _link_. By default, the link color is the same
|
|
952
|
+
* as the node it extends from. The `series.fillOpacity` option also applies to
|
|
953
|
+
* the points, so when setting a specific link color, consider setting the
|
|
954
|
+
* `fillOpacity` to 1.
|
|
955
|
+
*
|
|
956
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
957
|
+
* @product highcharts
|
|
958
|
+
* @apioption series.sankey.data.color
|
|
959
|
+
*/
|
|
960
|
+
/**
|
|
961
|
+
* @type {Highcharts.SeriesSankeyDataLabelsOptionsObject|Array<Highcharts.SeriesSankeyDataLabelsOptionsObject>}
|
|
962
|
+
* @product highcharts
|
|
963
|
+
* @apioption series.sankey.data.dataLabels
|
|
964
|
+
*/
|
|
965
|
+
/**
|
|
966
|
+
* The node that the link runs from.
|
|
967
|
+
*
|
|
968
|
+
* @type {string}
|
|
969
|
+
* @product highcharts
|
|
970
|
+
* @apioption series.sankey.data.from
|
|
971
|
+
*/
|
|
972
|
+
/**
|
|
973
|
+
* The node that the link runs to.
|
|
974
|
+
*
|
|
975
|
+
* @type {string}
|
|
976
|
+
* @product highcharts
|
|
977
|
+
* @apioption series.sankey.data.to
|
|
978
|
+
*/
|
|
979
|
+
/**
|
|
980
|
+
* Whether the link goes out of the system.
|
|
981
|
+
*
|
|
982
|
+
* @sample highcharts/plotoptions/sankey-outgoing
|
|
983
|
+
* Sankey chart with outgoing links
|
|
984
|
+
*
|
|
985
|
+
* @type {boolean}
|
|
986
|
+
* @default false
|
|
987
|
+
* @product highcharts
|
|
988
|
+
* @apioption series.sankey.data.outgoing
|
|
989
|
+
*/
|
|
990
|
+
/**
|
|
991
|
+
* The weight of the link.
|
|
992
|
+
*
|
|
993
|
+
* @type {number|null}
|
|
994
|
+
* @product highcharts
|
|
995
|
+
* @apioption series.sankey.data.weight
|
|
996
|
+
*/
|
|
997
|
+
''; // adds doclets above to transpiled file
|
|
998
|
+
/* *
|
|
999
|
+
*
|
|
1000
|
+
* Default Export
|
|
1001
|
+
*
|
|
1002
|
+
* */
|
|
1003
|
+
|
|
1004
|
+
return SankeySeriesDefaults;
|
|
1005
|
+
});
|
|
480
1006
|
_registerModule(_modules, 'Series/Sankey/SankeyColumnComposition.js', [_modules['Core/Utilities.js']], function (U) {
|
|
481
1007
|
var defined = U.defined,
|
|
482
1008
|
relativeLength = U.relativeLength;
|
|
@@ -787,7 +1313,7 @@
|
|
|
787
1313
|
* Returns a map from level number to its given options.
|
|
788
1314
|
*/
|
|
789
1315
|
function getLevelOptions(params) {
|
|
790
|
-
var result =
|
|
1316
|
+
var result = {},
|
|
791
1317
|
defaults,
|
|
792
1318
|
converted,
|
|
793
1319
|
i,
|
|
@@ -795,7 +1321,6 @@
|
|
|
795
1321
|
to,
|
|
796
1322
|
levels;
|
|
797
1323
|
if (isObject(params)) {
|
|
798
|
-
result = {};
|
|
799
1324
|
from = isNumber(params.from) ? params.from : 1;
|
|
800
1325
|
levels = params.levels;
|
|
801
1326
|
converted = {};
|
|
@@ -921,7 +1446,7 @@
|
|
|
921
1446
|
|
|
922
1447
|
return TreeUtilities;
|
|
923
1448
|
});
|
|
924
|
-
_registerModule(_modules, 'Series/Sankey/SankeySeries.js', [_modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Series/NodesComposition.js'], _modules['Series/Sankey/SankeyPoint.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Series/Sankey/SankeyColumnComposition.js'], _modules['Series/TreeUtilities.js'], _modules['Core/Utilities.js']], function (Color, H, NodesComposition, SankeyPoint, SeriesRegistry, SankeyColumnComposition, TU, U) {
|
|
1449
|
+
_registerModule(_modules, 'Series/Sankey/SankeySeries.js', [_modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Series/NodesComposition.js'], _modules['Series/Sankey/SankeyPoint.js'], _modules['Series/Sankey/SankeySeriesDefaults.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Series/Sankey/SankeyColumnComposition.js'], _modules['Series/TreeUtilities.js'], _modules['Core/Utilities.js']], function (Color, H, NodesComposition, SankeyPoint, SankeySeriesDefaults, SeriesRegistry, SankeyColumnComposition, TU, U) {
|
|
925
1450
|
/* *
|
|
926
1451
|
*
|
|
927
1452
|
* Sankey diagram module
|
|
@@ -1052,6 +1577,22 @@
|
|
|
1052
1577
|
}
|
|
1053
1578
|
return columns;
|
|
1054
1579
|
};
|
|
1580
|
+
/**
|
|
1581
|
+
* Order the nodes, starting with the root node(s). (#9818)
|
|
1582
|
+
* @private
|
|
1583
|
+
*/
|
|
1584
|
+
SankeySeries.prototype.order = function (node, level) {
|
|
1585
|
+
var series = this;
|
|
1586
|
+
// Prevents circular recursion:
|
|
1587
|
+
if (typeof node.level === 'undefined') {
|
|
1588
|
+
node.level = level;
|
|
1589
|
+
node.linksFrom.forEach(function (link) {
|
|
1590
|
+
if (link.toNode) {
|
|
1591
|
+
series.order(link.toNode, level + 1);
|
|
1592
|
+
}
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1595
|
+
};
|
|
1055
1596
|
/**
|
|
1056
1597
|
* Extend generatePoints by adding the nodes, which are Point objects
|
|
1057
1598
|
* but pushed to the this.nodes array.
|
|
@@ -1059,21 +1600,7 @@
|
|
|
1059
1600
|
*/
|
|
1060
1601
|
SankeySeries.prototype.generatePoints = function () {
|
|
1061
1602
|
NodesComposition.generatePoints.apply(this, arguments);
|
|
1062
|
-
|
|
1063
|
-
* Order the nodes, starting with the root node(s). (#9818)
|
|
1064
|
-
* @private
|
|
1065
|
-
*/
|
|
1066
|
-
function order(node, level) {
|
|
1067
|
-
// Prevents circular recursion:
|
|
1068
|
-
if (typeof node.level === 'undefined') {
|
|
1069
|
-
node.level = level;
|
|
1070
|
-
node.linksFrom.forEach(function (link) {
|
|
1071
|
-
if (link.toNode) {
|
|
1072
|
-
order(link.toNode, level + 1);
|
|
1073
|
-
}
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1603
|
+
var series = this;
|
|
1077
1604
|
if (this.orderNodes) {
|
|
1078
1605
|
this.nodes
|
|
1079
1606
|
// Identify the root node(s)
|
|
@@ -1083,7 +1610,7 @@
|
|
|
1083
1610
|
// Start by the root node(s) and recursively set the level
|
|
1084
1611
|
// on all following nodes.
|
|
1085
1612
|
.forEach(function (node) {
|
|
1086
|
-
order(node, 0);
|
|
1613
|
+
series.order(node, 0);
|
|
1087
1614
|
});
|
|
1088
1615
|
stableSort(this.nodes, function (a, b) {
|
|
1089
1616
|
return a.level - b.level;
|
|
@@ -1160,16 +1687,13 @@
|
|
|
1160
1687
|
fill: Color.parse(color).setOpacity(values.linkOpacity).get()
|
|
1161
1688
|
};
|
|
1162
1689
|
};
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
this.points = this.points.concat(this.nodes || []);
|
|
1171
|
-
ColumnSeries.prototype.render.call(this);
|
|
1172
|
-
this.points = points;
|
|
1690
|
+
SankeySeries.prototype.drawPoints = function () {
|
|
1691
|
+
ColumnSeries.prototype.drawPoints.call(this, this.points);
|
|
1692
|
+
ColumnSeries.prototype.drawPoints.call(this, this.nodes);
|
|
1693
|
+
};
|
|
1694
|
+
SankeySeries.prototype.drawDataLabels = function () {
|
|
1695
|
+
ColumnSeries.prototype.drawDataLabels.call(this, this.points);
|
|
1696
|
+
ColumnSeries.prototype.drawDataLabels.call(this, this.nodes);
|
|
1173
1697
|
};
|
|
1174
1698
|
/**
|
|
1175
1699
|
* Run pre-translation by generating the nodeColumns.
|
|
@@ -1423,288 +1947,24 @@
|
|
|
1423
1947
|
chart.plotSizeY - y - height / 2,
|
|
1424
1948
|
chart.plotSizeX - x - width / 2
|
|
1425
1949
|
] : [
|
|
1426
|
-
x + width / 2,
|
|
1427
|
-
y + height / 2
|
|
1428
|
-
];
|
|
1429
|
-
node.shapeArgs = {
|
|
1430
|
-
x: x,
|
|
1431
|
-
y: y,
|
|
1432
|
-
width: width,
|
|
1433
|
-
height: height,
|
|
1434
|
-
display: node.hasShape() ? '' : 'none'
|
|
1435
|
-
};
|
|
1436
|
-
}
|
|
1437
|
-
else {
|
|
1438
|
-
node.dlOptions = {
|
|
1439
|
-
enabled: false
|
|
1440
|
-
};
|
|
1441
|
-
}
|
|
1442
|
-
};
|
|
1443
|
-
/**
|
|
1444
|
-
* A sankey diagram is a type of flow diagram, in which the width of the
|
|
1445
|
-
* link between two nodes is shown proportionally to the flow quantity.
|
|
1446
|
-
*
|
|
1447
|
-
* @sample highcharts/demo/sankey-diagram/
|
|
1448
|
-
* Sankey diagram
|
|
1449
|
-
* @sample highcharts/plotoptions/sankey-inverted/
|
|
1450
|
-
* Inverted sankey diagram
|
|
1451
|
-
* @sample highcharts/plotoptions/sankey-outgoing
|
|
1452
|
-
* Sankey diagram with outgoing links
|
|
1453
|
-
*
|
|
1454
|
-
* @extends plotOptions.column
|
|
1455
|
-
* @since 6.0.0
|
|
1456
|
-
* @product highcharts
|
|
1457
|
-
* @excluding animationLimit, boostThreshold, borderRadius,
|
|
1458
|
-
* crisp, cropThreshold, colorAxis, colorKey, depth, dragDrop,
|
|
1459
|
-
* edgeColor, edgeWidth, findNearestPointBy, grouping,
|
|
1460
|
-
* groupPadding, groupZPadding, maxPointWidth, negativeColor,
|
|
1461
|
-
* pointInterval, pointIntervalUnit, pointPadding,
|
|
1462
|
-
* pointPlacement, pointRange, pointStart, pointWidth,
|
|
1463
|
-
* shadow, softThreshold, stacking, threshold, zoneAxis,
|
|
1464
|
-
* zones, minPointLength, dataSorting, boostBlending
|
|
1465
|
-
* @requires modules/sankey
|
|
1466
|
-
* @optionparent plotOptions.sankey
|
|
1467
|
-
*
|
|
1468
|
-
* @private
|
|
1469
|
-
*/
|
|
1470
|
-
SankeySeries.defaultOptions = merge(ColumnSeries.defaultOptions, {
|
|
1471
|
-
borderWidth: 0,
|
|
1472
|
-
colorByPoint: true,
|
|
1473
|
-
/**
|
|
1474
|
-
* Higher numbers makes the links in a sankey diagram or dependency
|
|
1475
|
-
* wheelrender more curved. A `curveFactor` of 0 makes the lines
|
|
1476
|
-
* straight.
|
|
1477
|
-
*
|
|
1478
|
-
* @private
|
|
1479
|
-
*/
|
|
1480
|
-
curveFactor: 0.33,
|
|
1481
|
-
/**
|
|
1482
|
-
* Options for the data labels appearing on top of the nodes and links.
|
|
1483
|
-
* For sankey charts, data labels are visible for the nodes by default,
|
|
1484
|
-
* but hidden for links. This is controlled by modifying the
|
|
1485
|
-
* `nodeFormat`, and the `format` that applies to links and is an empty
|
|
1486
|
-
* string by default.
|
|
1487
|
-
*
|
|
1488
|
-
* @declare Highcharts.SeriesSankeyDataLabelsOptionsObject
|
|
1489
|
-
*
|
|
1490
|
-
* @private
|
|
1491
|
-
*/
|
|
1492
|
-
dataLabels: {
|
|
1493
|
-
enabled: true,
|
|
1494
|
-
backgroundColor: 'none',
|
|
1495
|
-
crop: false,
|
|
1496
|
-
/**
|
|
1497
|
-
* The
|
|
1498
|
-
* [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)
|
|
1499
|
-
* specifying what to show for _nodes_ in the sankey diagram. By
|
|
1500
|
-
* default the `nodeFormatter` returns `{point.name}`.
|
|
1501
|
-
*
|
|
1502
|
-
* @sample highcharts/plotoptions/sankey-link-datalabels/
|
|
1503
|
-
* Node and link data labels
|
|
1504
|
-
*
|
|
1505
|
-
* @type {string}
|
|
1506
|
-
*/
|
|
1507
|
-
nodeFormat: void 0,
|
|
1508
|
-
// eslint-disable-next-line valid-jsdoc
|
|
1509
|
-
/**
|
|
1510
|
-
* Callback to format data labels for _nodes_ in the sankey diagram.
|
|
1511
|
-
* The `nodeFormat` option takes precedence over the
|
|
1512
|
-
* `nodeFormatter`.
|
|
1513
|
-
*
|
|
1514
|
-
* @type {Highcharts.SeriesSankeyDataLabelsFormatterCallbackFunction}
|
|
1515
|
-
* @since 6.0.2
|
|
1516
|
-
*/
|
|
1517
|
-
nodeFormatter: function () {
|
|
1518
|
-
return this.point.name;
|
|
1519
|
-
},
|
|
1520
|
-
format: void 0,
|
|
1521
|
-
// eslint-disable-next-line valid-jsdoc
|
|
1522
|
-
/**
|
|
1523
|
-
* @type {Highcharts.SeriesSankeyDataLabelsFormatterCallbackFunction}
|
|
1524
|
-
*/
|
|
1525
|
-
formatter: function () {
|
|
1526
|
-
return;
|
|
1527
|
-
},
|
|
1528
|
-
inside: true
|
|
1529
|
-
},
|
|
1530
|
-
/**
|
|
1531
|
-
* @ignore-option
|
|
1532
|
-
*
|
|
1533
|
-
* @private
|
|
1534
|
-
*/
|
|
1535
|
-
inactiveOtherPoints: true,
|
|
1536
|
-
/**
|
|
1537
|
-
* Set options on specific levels. Takes precedence over series options,
|
|
1538
|
-
* but not node and link options.
|
|
1539
|
-
*
|
|
1540
|
-
* @sample highcharts/demo/sunburst
|
|
1541
|
-
* Sunburst chart
|
|
1542
|
-
*
|
|
1543
|
-
* @type {Array<*>}
|
|
1544
|
-
* @since 7.1.0
|
|
1545
|
-
* @apioption plotOptions.sankey.levels
|
|
1546
|
-
*/
|
|
1547
|
-
/**
|
|
1548
|
-
* Can set `borderColor` on all nodes which lay on the same level.
|
|
1549
|
-
*
|
|
1550
|
-
* @type {Highcharts.ColorString}
|
|
1551
|
-
* @apioption plotOptions.sankey.levels.borderColor
|
|
1552
|
-
*/
|
|
1553
|
-
/**
|
|
1554
|
-
* Can set `borderWidth` on all nodes which lay on the same level.
|
|
1555
|
-
*
|
|
1556
|
-
* @type {number}
|
|
1557
|
-
* @apioption plotOptions.sankey.levels.borderWidth
|
|
1558
|
-
*/
|
|
1559
|
-
/**
|
|
1560
|
-
* Can set `color` on all nodes which lay on the same level.
|
|
1561
|
-
*
|
|
1562
|
-
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
1563
|
-
* @apioption plotOptions.sankey.levels.color
|
|
1564
|
-
*/
|
|
1565
|
-
/**
|
|
1566
|
-
* Can set `colorByPoint` on all nodes which lay on the same level.
|
|
1567
|
-
*
|
|
1568
|
-
* @type {boolean}
|
|
1569
|
-
* @default true
|
|
1570
|
-
* @apioption plotOptions.sankey.levels.colorByPoint
|
|
1571
|
-
*/
|
|
1572
|
-
/**
|
|
1573
|
-
* Can set `dataLabels` on all points which lay on the same level.
|
|
1574
|
-
*
|
|
1575
|
-
* @extends plotOptions.sankey.dataLabels
|
|
1576
|
-
* @apioption plotOptions.sankey.levels.dataLabels
|
|
1577
|
-
*/
|
|
1578
|
-
/**
|
|
1579
|
-
* Decides which level takes effect from the options set in the levels
|
|
1580
|
-
* object.
|
|
1581
|
-
*
|
|
1582
|
-
* @type {number}
|
|
1583
|
-
* @apioption plotOptions.sankey.levels.level
|
|
1584
|
-
*/
|
|
1585
|
-
/**
|
|
1586
|
-
* Can set `linkOpacity` on all points which lay on the same level.
|
|
1587
|
-
*
|
|
1588
|
-
* @type {number}
|
|
1589
|
-
* @default 0.5
|
|
1590
|
-
* @apioption plotOptions.sankey.levels.linkOpacity
|
|
1591
|
-
*/
|
|
1592
|
-
/**
|
|
1593
|
-
* Can set `states` on all nodes and points which lay on the same level.
|
|
1594
|
-
*
|
|
1595
|
-
* @extends plotOptions.sankey.states
|
|
1596
|
-
* @apioption plotOptions.sankey.levels.states
|
|
1597
|
-
*/
|
|
1598
|
-
/**
|
|
1599
|
-
* Opacity for the links between nodes in the sankey diagram.
|
|
1600
|
-
*
|
|
1601
|
-
* @private
|
|
1602
|
-
*/
|
|
1603
|
-
linkOpacity: 0.5,
|
|
1604
|
-
/**
|
|
1605
|
-
* Opacity for the nodes in the sankey diagram.
|
|
1606
|
-
*
|
|
1607
|
-
* @private
|
|
1608
|
-
*/
|
|
1609
|
-
opacity: 1,
|
|
1610
|
-
/**
|
|
1611
|
-
* The minimal width for a line of a sankey. By default,
|
|
1612
|
-
* 0 values are not shown.
|
|
1613
|
-
*
|
|
1614
|
-
* @sample highcharts/plotoptions/sankey-minlinkwidth
|
|
1615
|
-
* Sankey diagram with minimal link height
|
|
1616
|
-
*
|
|
1617
|
-
* @type {number}
|
|
1618
|
-
* @since 7.1.3
|
|
1619
|
-
* @default 0
|
|
1620
|
-
* @apioption plotOptions.sankey.minLinkWidth
|
|
1621
|
-
*
|
|
1622
|
-
* @private
|
|
1623
|
-
*/
|
|
1624
|
-
minLinkWidth: 0,
|
|
1625
|
-
/**
|
|
1626
|
-
* The pixel width of each node in a sankey diagram or dependency wheel,
|
|
1627
|
-
* or the height in case the chart is inverted.
|
|
1628
|
-
*
|
|
1629
|
-
* @private
|
|
1630
|
-
*/
|
|
1631
|
-
nodeWidth: 20,
|
|
1632
|
-
/**
|
|
1633
|
-
* The padding between nodes in a sankey diagram or dependency wheel, in
|
|
1634
|
-
* pixels.
|
|
1635
|
-
*
|
|
1636
|
-
* If the number of nodes is so great that it is possible to lay them
|
|
1637
|
-
* out within the plot area with the given `nodePadding`, they will be
|
|
1638
|
-
* rendered with a smaller padding as a strategy to avoid overflow.
|
|
1639
|
-
*
|
|
1640
|
-
* @private
|
|
1641
|
-
*/
|
|
1642
|
-
nodePadding: 10,
|
|
1643
|
-
showInLegend: false,
|
|
1644
|
-
states: {
|
|
1645
|
-
hover: {
|
|
1646
|
-
/**
|
|
1647
|
-
* Opacity for the links between nodes in the sankey diagram in
|
|
1648
|
-
* hover mode.
|
|
1649
|
-
*/
|
|
1650
|
-
linkOpacity: 1,
|
|
1651
|
-
/**
|
|
1652
|
-
* Opacity for the nodes in the sankey diagram in hover mode.
|
|
1653
|
-
*/
|
|
1654
|
-
opacity: 1
|
|
1655
|
-
},
|
|
1656
|
-
/**
|
|
1657
|
-
* The opposite state of a hover for a single point node/link.
|
|
1658
|
-
*
|
|
1659
|
-
* @declare Highcharts.SeriesStatesInactiveOptionsObject
|
|
1660
|
-
*/
|
|
1661
|
-
inactive: {
|
|
1662
|
-
/**
|
|
1663
|
-
* Opacity for the links between nodes in the sankey diagram in
|
|
1664
|
-
* inactive mode.
|
|
1665
|
-
*/
|
|
1666
|
-
linkOpacity: 0.1,
|
|
1667
|
-
/**
|
|
1668
|
-
* Opacity of the nodes in the sankey diagram in inactive mode.
|
|
1669
|
-
*/
|
|
1670
|
-
opacity: 0.1,
|
|
1671
|
-
/**
|
|
1672
|
-
* Animation when not hovering over the marker.
|
|
1673
|
-
*
|
|
1674
|
-
* @type {boolean|Partial<Highcharts.AnimationOptionsObject>}
|
|
1675
|
-
* @apioption plotOptions.series.states.inactive.animation
|
|
1676
|
-
*/
|
|
1677
|
-
animation: {
|
|
1678
|
-
/** @internal */
|
|
1679
|
-
duration: 50
|
|
1680
|
-
}
|
|
1681
|
-
}
|
|
1682
|
-
},
|
|
1683
|
-
tooltip: {
|
|
1684
|
-
/**
|
|
1685
|
-
* A callback for defining the format for _nodes_ in the chart's
|
|
1686
|
-
* tooltip, as opposed to links.
|
|
1687
|
-
*
|
|
1688
|
-
* @type {Highcharts.FormatterCallbackFunction<Highcharts.SankeyNodeObject>}
|
|
1689
|
-
* @since 6.0.2
|
|
1690
|
-
* @apioption plotOptions.sankey.tooltip.nodeFormatter
|
|
1691
|
-
*/
|
|
1692
|
-
/**
|
|
1693
|
-
* Whether the tooltip should follow the pointer or stay fixed on
|
|
1694
|
-
* the item.
|
|
1695
|
-
*/
|
|
1696
|
-
followPointer: true,
|
|
1697
|
-
headerFormat: '<span style="font-size: 10px">{series.name}</span><br/>',
|
|
1698
|
-
pointFormat: '{point.fromNode.name} \u2192 {point.toNode.name}: <b>{point.weight}</b><br/>',
|
|
1699
|
-
/**
|
|
1700
|
-
* The
|
|
1701
|
-
* [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)
|
|
1702
|
-
* specifying what to show for _nodes_ in tooltip of a diagram
|
|
1703
|
-
* series, as opposed to links.
|
|
1704
|
-
*/
|
|
1705
|
-
nodeFormat: '{point.name}: <b>{point.sum}</b><br/>'
|
|
1950
|
+
x + width / 2,
|
|
1951
|
+
y + height / 2
|
|
1952
|
+
];
|
|
1953
|
+
node.shapeArgs = {
|
|
1954
|
+
x: x,
|
|
1955
|
+
y: y,
|
|
1956
|
+
width: width,
|
|
1957
|
+
height: height,
|
|
1958
|
+
display: node.hasShape() ? '' : 'none'
|
|
1959
|
+
};
|
|
1706
1960
|
}
|
|
1707
|
-
|
|
1961
|
+
else {
|
|
1962
|
+
node.dlOptions = {
|
|
1963
|
+
enabled: false
|
|
1964
|
+
};
|
|
1965
|
+
}
|
|
1966
|
+
};
|
|
1967
|
+
SankeySeries.defaultOptions = merge(ColumnSeries.defaultOptions, SankeySeriesDefaults);
|
|
1708
1968
|
return SankeySeries;
|
|
1709
1969
|
}(ColumnSeries));
|
|
1710
1970
|
NodesComposition.compose(SankeyPoint, SankeySeries);
|
|
@@ -1846,245 +2106,6 @@
|
|
|
1846
2106
|
* @type {Highcharts.SankeyNodeObject}
|
|
1847
2107
|
*/
|
|
1848
2108
|
''; // detach doclets above
|
|
1849
|
-
/* *
|
|
1850
|
-
*
|
|
1851
|
-
* API Options
|
|
1852
|
-
*
|
|
1853
|
-
* */
|
|
1854
|
-
/**
|
|
1855
|
-
* A `sankey` series. If the [type](#series.sankey.type) option is not
|
|
1856
|
-
* specified, it is inherited from [chart.type](#chart.type).
|
|
1857
|
-
*
|
|
1858
|
-
* @extends series,plotOptions.sankey
|
|
1859
|
-
* @excluding animationLimit, boostBlending, boostThreshold, borderColor,
|
|
1860
|
-
* borderRadius, borderWidth, crisp, cropThreshold, dataParser,
|
|
1861
|
-
* dataURL, depth, dragDrop, edgeColor, edgeWidth,
|
|
1862
|
-
* findNearestPointBy, getExtremesFromAll, grouping, groupPadding,
|
|
1863
|
-
* groupZPadding, label, maxPointWidth, negativeColor, pointInterval,
|
|
1864
|
-
* pointIntervalUnit, pointPadding, pointPlacement, pointRange,
|
|
1865
|
-
* pointStart, pointWidth, shadow, softThreshold, stacking,
|
|
1866
|
-
* threshold, zoneAxis, zones, dataSorting
|
|
1867
|
-
* @product highcharts
|
|
1868
|
-
* @requires modules/sankey
|
|
1869
|
-
* @apioption series.sankey
|
|
1870
|
-
*/
|
|
1871
|
-
/**
|
|
1872
|
-
* A collection of options for the individual nodes. The nodes in a sankey
|
|
1873
|
-
* diagram are auto-generated instances of `Highcharts.Point`, but options can
|
|
1874
|
-
* be applied here and linked by the `id`.
|
|
1875
|
-
*
|
|
1876
|
-
* @sample highcharts/css/sankey/
|
|
1877
|
-
* Sankey diagram with node options
|
|
1878
|
-
*
|
|
1879
|
-
* @declare Highcharts.SeriesSankeyNodesOptionsObject
|
|
1880
|
-
* @type {Array<*>}
|
|
1881
|
-
* @product highcharts
|
|
1882
|
-
* @apioption series.sankey.nodes
|
|
1883
|
-
*/
|
|
1884
|
-
/**
|
|
1885
|
-
* The id of the auto-generated node, refering to the `from` or `to` setting of
|
|
1886
|
-
* the link.
|
|
1887
|
-
*
|
|
1888
|
-
* @type {string}
|
|
1889
|
-
* @product highcharts
|
|
1890
|
-
* @apioption series.sankey.nodes.id
|
|
1891
|
-
*/
|
|
1892
|
-
/**
|
|
1893
|
-
* The color of the auto generated node.
|
|
1894
|
-
*
|
|
1895
|
-
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
1896
|
-
* @product highcharts
|
|
1897
|
-
* @apioption series.sankey.nodes.color
|
|
1898
|
-
*/
|
|
1899
|
-
/**
|
|
1900
|
-
* The color index of the auto generated node, especially for use in styled
|
|
1901
|
-
* mode.
|
|
1902
|
-
*
|
|
1903
|
-
* @type {number}
|
|
1904
|
-
* @product highcharts
|
|
1905
|
-
* @apioption series.sankey.nodes.colorIndex
|
|
1906
|
-
*/
|
|
1907
|
-
/**
|
|
1908
|
-
* An optional column index of where to place the node. The default behaviour is
|
|
1909
|
-
* to place it next to the preceding node. Note that this option name is
|
|
1910
|
-
* counter intuitive in inverted charts, like for example an organization chart
|
|
1911
|
-
* rendered top down. In this case the "columns" are horizontal.
|
|
1912
|
-
*
|
|
1913
|
-
* @sample highcharts/plotoptions/sankey-node-column/
|
|
1914
|
-
* Specified node column
|
|
1915
|
-
*
|
|
1916
|
-
* @type {number}
|
|
1917
|
-
* @since 6.0.5
|
|
1918
|
-
* @product highcharts
|
|
1919
|
-
* @apioption series.sankey.nodes.column
|
|
1920
|
-
*/
|
|
1921
|
-
/**
|
|
1922
|
-
* Individual data label for each node. The options are the same as
|
|
1923
|
-
* the ones for [series.sankey.dataLabels](#series.sankey.dataLabels).
|
|
1924
|
-
*
|
|
1925
|
-
* @extends plotOptions.sankey.dataLabels
|
|
1926
|
-
* @apioption series.sankey.nodes.dataLabels
|
|
1927
|
-
*/
|
|
1928
|
-
/**
|
|
1929
|
-
* An optional level index of where to place the node. The default behaviour is
|
|
1930
|
-
* to place it next to the preceding node. Alias of `nodes.column`, but in
|
|
1931
|
-
* inverted sankeys and org charts, the levels are laid out as rows.
|
|
1932
|
-
*
|
|
1933
|
-
* @type {number}
|
|
1934
|
-
* @since 7.1.0
|
|
1935
|
-
* @product highcharts
|
|
1936
|
-
* @apioption series.sankey.nodes.level
|
|
1937
|
-
*/
|
|
1938
|
-
/**
|
|
1939
|
-
* The name to display for the node in data labels and tooltips. Use this when
|
|
1940
|
-
* the name is different from the `id`. Where the id must be unique for each
|
|
1941
|
-
* node, this is not necessary for the name.
|
|
1942
|
-
*
|
|
1943
|
-
* @sample highcharts/css/sankey/
|
|
1944
|
-
* Sankey diagram with node options
|
|
1945
|
-
*
|
|
1946
|
-
* @type {string}
|
|
1947
|
-
* @product highcharts
|
|
1948
|
-
* @apioption series.sankey.nodes.name
|
|
1949
|
-
*/
|
|
1950
|
-
/**
|
|
1951
|
-
* This option is deprecated, use
|
|
1952
|
-
* [offsetHorizontal](#series.sankey.nodes.offsetHorizontal) and
|
|
1953
|
-
* [offsetVertical](#series.sankey.nodes.offsetVertical) instead.
|
|
1954
|
-
*
|
|
1955
|
-
* In a horizontal layout, the vertical offset of a node in terms of weight.
|
|
1956
|
-
* Positive values shift the node downwards, negative shift it upwards. In a
|
|
1957
|
-
* vertical layout, like organization chart, the offset is horizontal.
|
|
1958
|
-
*
|
|
1959
|
-
* If a percantage string is given, the node is offset by the percentage of the
|
|
1960
|
-
* node size plus `nodePadding`.
|
|
1961
|
-
*
|
|
1962
|
-
* @deprecated
|
|
1963
|
-
* @type {number|string}
|
|
1964
|
-
* @default 0
|
|
1965
|
-
* @since 6.0.5
|
|
1966
|
-
* @product highcharts
|
|
1967
|
-
* @apioption series.sankey.nodes.offset
|
|
1968
|
-
*/
|
|
1969
|
-
/**
|
|
1970
|
-
* The horizontal offset of a node. Positive values shift the node right,
|
|
1971
|
-
* negative shift it left.
|
|
1972
|
-
*
|
|
1973
|
-
* If a percantage string is given, the node is offset by the percentage of the
|
|
1974
|
-
* node size.
|
|
1975
|
-
*
|
|
1976
|
-
* @sample highcharts/plotoptions/sankey-node-column/
|
|
1977
|
-
* Specified node offset
|
|
1978
|
-
*
|
|
1979
|
-
* @type {number|string}
|
|
1980
|
-
* @since 9.3.0
|
|
1981
|
-
* @product highcharts
|
|
1982
|
-
* @apioption series.sankey.nodes.offsetHorizontal
|
|
1983
|
-
*/
|
|
1984
|
-
/**
|
|
1985
|
-
* The vertical offset of a node. Positive values shift the node down,
|
|
1986
|
-
* negative shift it up.
|
|
1987
|
-
*
|
|
1988
|
-
* If a percantage string is given, the node is offset by the percentage of the
|
|
1989
|
-
* node size.
|
|
1990
|
-
*
|
|
1991
|
-
* @sample highcharts/plotoptions/sankey-node-column/
|
|
1992
|
-
* Specified node offset
|
|
1993
|
-
*
|
|
1994
|
-
* @type {number|string}
|
|
1995
|
-
* @since 9.3.0
|
|
1996
|
-
* @product highcharts
|
|
1997
|
-
* @apioption series.sankey.nodes.offsetVertical
|
|
1998
|
-
*/
|
|
1999
|
-
/**
|
|
2000
|
-
* An array of data points for the series. For the `sankey` series type,
|
|
2001
|
-
* points can be given in the following way:
|
|
2002
|
-
*
|
|
2003
|
-
* An array of objects with named values. The following snippet shows only a
|
|
2004
|
-
* few settings, see the complete options set below. If the total number of data
|
|
2005
|
-
* points exceeds the series' [turboThreshold](#series.area.turboThreshold),
|
|
2006
|
-
* this option is not available.
|
|
2007
|
-
*
|
|
2008
|
-
* ```js
|
|
2009
|
-
* data: [{
|
|
2010
|
-
* from: 'Category1',
|
|
2011
|
-
* to: 'Category2',
|
|
2012
|
-
* weight: 2
|
|
2013
|
-
* }, {
|
|
2014
|
-
* from: 'Category1',
|
|
2015
|
-
* to: 'Category3',
|
|
2016
|
-
* weight: 5
|
|
2017
|
-
* }]
|
|
2018
|
-
* ```
|
|
2019
|
-
*
|
|
2020
|
-
* When you provide the data as tuples, the keys option has to be set as well.
|
|
2021
|
-
*
|
|
2022
|
-
* ```js
|
|
2023
|
-
* keys: ['from', 'to', 'weight'],
|
|
2024
|
-
* data: [
|
|
2025
|
-
* ['Category1', 'Category2', 2],
|
|
2026
|
-
* ['Category1', 'Category3', 5]
|
|
2027
|
-
* ]
|
|
2028
|
-
* ```
|
|
2029
|
-
*
|
|
2030
|
-
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
2031
|
-
* Config objects
|
|
2032
|
-
*
|
|
2033
|
-
* @declare Highcharts.SeriesSankeyPointOptionsObject
|
|
2034
|
-
* @type {Array<*>|Array<Array<(string|number)>>}
|
|
2035
|
-
* @extends series.line.data
|
|
2036
|
-
* @excluding dragDrop, drilldown, marker, x, y
|
|
2037
|
-
* @product highcharts
|
|
2038
|
-
* @apioption series.sankey.data
|
|
2039
|
-
*/
|
|
2040
|
-
/**
|
|
2041
|
-
* The color for the individual _link_. By default, the link color is the same
|
|
2042
|
-
* as the node it extends from. The `series.fillOpacity` option also applies to
|
|
2043
|
-
* the points, so when setting a specific link color, consider setting the
|
|
2044
|
-
* `fillOpacity` to 1.
|
|
2045
|
-
*
|
|
2046
|
-
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
2047
|
-
* @product highcharts
|
|
2048
|
-
* @apioption series.sankey.data.color
|
|
2049
|
-
*/
|
|
2050
|
-
/**
|
|
2051
|
-
* @type {Highcharts.SeriesSankeyDataLabelsOptionsObject|Array<Highcharts.SeriesSankeyDataLabelsOptionsObject>}
|
|
2052
|
-
* @product highcharts
|
|
2053
|
-
* @apioption series.sankey.data.dataLabels
|
|
2054
|
-
*/
|
|
2055
|
-
/**
|
|
2056
|
-
* The node that the link runs from.
|
|
2057
|
-
*
|
|
2058
|
-
* @type {string}
|
|
2059
|
-
* @product highcharts
|
|
2060
|
-
* @apioption series.sankey.data.from
|
|
2061
|
-
*/
|
|
2062
|
-
/**
|
|
2063
|
-
* The node that the link runs to.
|
|
2064
|
-
*
|
|
2065
|
-
* @type {string}
|
|
2066
|
-
* @product highcharts
|
|
2067
|
-
* @apioption series.sankey.data.to
|
|
2068
|
-
*/
|
|
2069
|
-
/**
|
|
2070
|
-
* Whether the link goes out of the system.
|
|
2071
|
-
*
|
|
2072
|
-
* @sample highcharts/plotoptions/sankey-outgoing
|
|
2073
|
-
* Sankey chart with outgoing links
|
|
2074
|
-
*
|
|
2075
|
-
* @type {boolean}
|
|
2076
|
-
* @default false
|
|
2077
|
-
* @product highcharts
|
|
2078
|
-
* @apioption series.sankey.data.outgoing
|
|
2079
|
-
*/
|
|
2080
|
-
/**
|
|
2081
|
-
* The weight of the link.
|
|
2082
|
-
*
|
|
2083
|
-
* @type {number|null}
|
|
2084
|
-
* @product highcharts
|
|
2085
|
-
* @apioption series.sankey.data.weight
|
|
2086
|
-
*/
|
|
2087
|
-
''; // adds doclets above to transpiled file
|
|
2088
2109
|
|
|
2089
2110
|
return SankeySeries;
|
|
2090
2111
|
});
|