highcharts 10.2.0 → 10.2.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/css/highcharts.css +10 -20
- package/css/themes/dark-unica.css +10 -20
- package/css/themes/grid-light.css +10 -20
- package/css/themes/sand-signika.css +10 -20
- package/es-modules/Accessibility/Accessibility.js +6 -0
- package/es-modules/Accessibility/Components/LegendComponent.js +8 -8
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +3 -2
- package/es-modules/Accessibility/Options/A11yDefaults.js +1 -1
- package/es-modules/Core/Axis/Axis.js +3 -0
- package/es-modules/Core/Axis/Axis3D.js +1 -1
- package/es-modules/Core/Axis/AxisDefaults.js +1 -1
- package/es-modules/Core/Axis/BrokenAxis.js +1 -1
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +4 -0
- package/es-modules/Core/Axis/NavigatorAxis.js +2 -2
- package/es-modules/Core/Axis/OrdinalAxis.js +2 -2
- package/es-modules/Core/Axis/RadialAxis.js +1 -1
- package/es-modules/Core/Axis/Stacking/StackItem.js +262 -0
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +468 -0
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +732 -0
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +313 -0
- package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
- package/es-modules/Core/Axis/ZAxis.js +73 -70
- package/es-modules/Core/Chart/Chart.js +16 -2
- package/es-modules/Core/Chart/Chart3D.js +2 -2
- package/es-modules/Core/Chart/ChartDefaults.js +151 -2
- package/es-modules/Core/Chart/StockChart.js +5 -3
- package/es-modules/Core/DefaultOptions.js +2 -1
- package/es-modules/Core/Geometry/CircleUtilities.js +4 -4
- package/es-modules/Core/Globals.js +2 -1
- package/es-modules/{Extensions → Core}/Math3D.js +48 -43
- package/es-modules/Core/Navigator.js +24 -7
- package/es-modules/Core/Pointer.js +7 -9
- package/es-modules/Core/Renderer/HTML/AST.js +4 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +103 -163
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +29 -27
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +3 -3
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +1 -1
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +5 -3
- package/es-modules/Core/Scrollbar.js +3 -1
- package/es-modules/Core/Series/DataLabel.js +8 -6
- package/es-modules/Core/Series/Point.js +2 -2
- package/es-modules/Core/Series/Series.js +36 -31
- package/es-modules/Core/Series/Series3D.js +1 -1
- package/es-modules/Core/Series/SeriesDefaults.js +8 -3
- package/es-modules/Core/Series/SeriesRegistry.js +6 -29
- package/es-modules/Core/Tooltip.js +14 -3
- package/es-modules/Core/Utilities.js +1 -3
- package/es-modules/Data/DataConverter.js +5 -0
- package/es-modules/Data/DataPromise.js +1 -1
- package/es-modules/Data/DataSeriesComposition.js +288 -0
- package/es-modules/Data/DataSeriesConverter.js +1 -1
- package/es-modules/Data/DataTable.js +2 -2
- package/es-modules/Data/Modifiers/ChainModifier.js +1 -1
- package/es-modules/Data/Modifiers/DataModifier.js +1 -1
- package/es-modules/Data/Modifiers/GroupModifier.js +1 -1
- package/es-modules/Data/Modifiers/InvertModifier.js +1 -1
- package/es-modules/Data/Modifiers/RangeModifier.js +1 -1
- package/es-modules/Data/Modifiers/SeriesPointsModifier.js +1 -1
- package/es-modules/Data/Modifiers/SortModifier.js +1 -1
- package/es-modules/Data/Parsers/DataParser.js +1 -1
- package/es-modules/Data/Stores/DataStore.js +1 -1
- package/es-modules/Extensions/Annotations/Annotation.js +347 -1156
- package/es-modules/Extensions/Annotations/AnnotationChart.js +291 -0
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +624 -0
- package/es-modules/Extensions/Annotations/ControlPoint.js +89 -64
- package/es-modules/Extensions/Annotations/{Mixins/ControllableMixin.js → Controllables/Controllable.js} +300 -241
- package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +63 -50
- package/es-modules/Extensions/Annotations/Controllables/ControllableDefaults.js +95 -0
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +90 -61
- package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +50 -44
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +95 -78
- package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +167 -51
- package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +53 -52
- package/es-modules/Extensions/Annotations/{Mixins/EventEmitterMixin.js → EventEmitter.js} +136 -116
- package/es-modules/Extensions/Annotations/MockPoint.js +210 -145
- package/es-modules/Extensions/Annotations/NavigationBindings.js +272 -674
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +396 -0
- package/es-modules/Extensions/Annotations/NavigationBindingsUtilities.js +98 -0
- package/es-modules/Extensions/Annotations/Popup/Popup.js +295 -0
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +177 -0
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +81 -0
- package/es-modules/Extensions/Annotations/Popup/PopupIndicators.js +609 -0
- package/es-modules/Extensions/Annotations/Popup/PopupTabs.js +134 -0
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +10 -14
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +11 -19
- package/es-modules/Extensions/Annotations/Types/ElliottWave.js +10 -10
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +28 -20
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +63 -63
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +10 -19
- package/es-modules/Extensions/Annotations/Types/Measure.js +255 -249
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +11 -17
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +20 -17
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +12 -13
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +11 -15
- package/es-modules/Extensions/Boost/Boost.js +320 -15
- package/es-modules/Extensions/Boost/BoostChart.js +245 -0
- package/es-modules/Extensions/Boost/BoostSeries.js +927 -0
- package/es-modules/Extensions/Boost/BoostableMap.js +21 -5
- package/es-modules/Extensions/Boost/Boostables.js +13 -2
- package/es-modules/Extensions/Boost/NamedColors.js +15 -6
- package/es-modules/Extensions/Boost/WGLDrawMode.js +36 -0
- package/es-modules/Extensions/Boost/WGLRenderer.js +288 -295
- package/es-modules/Extensions/Boost/WGLShader.js +370 -376
- package/es-modules/Extensions/Boost/WGLVertexBuffer.js +192 -0
- package/es-modules/Extensions/BoostCanvas.js +62 -46
- package/es-modules/Extensions/Breadcrumbs.js +4 -0
- package/es-modules/Extensions/DataGrouping.js +65 -27
- package/es-modules/Extensions/Debugger/Debugger.js +60 -22
- package/es-modules/Extensions/DraggablePoints.js +4 -3
- package/es-modules/Extensions/Drilldown.js +7 -8
- package/es-modules/Extensions/{ExportData.js → ExportData/ExportData.js} +341 -530
- package/es-modules/Extensions/ExportData/ExportDataDefaults.js +272 -0
- package/es-modules/Extensions/Exporting/Exporting.js +5 -1
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +3 -1
- package/es-modules/Extensions/{FullScreen.js → Exporting/Fullscreen.js} +72 -27
- package/es-modules/Extensions/MarkerClusters.js +2 -0
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +1 -1
- package/es-modules/Extensions/ParallelCoordinates.js +11 -7
- package/es-modules/Extensions/ScrollablePlotArea.js +1 -1
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +2 -2
- package/es-modules/Extensions/Sonification/ChartSonify.js +1 -1
- package/es-modules/Maps/MapPointer.js +1 -1
- package/es-modules/Maps/MapView.js +2 -1
- package/es-modules/Series/{Area3DSeries.js → Area3D/Area3DSeries.js} +42 -20
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +8 -2
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +223 -231
- package/es-modules/Series/Bubble/BubbleLegendItem.js +46 -45
- package/es-modules/Series/Bubble/BubbleSeries.js +85 -66
- package/es-modules/Series/Column/ColumnSeries.js +2 -0
- package/es-modules/Series/Column3D/Column3DComposition.js +2 -2
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +1 -1
- package/es-modules/Series/Cylinder/CylinderComposition.js +1 -1
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +24 -11
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +16 -2
- package/es-modules/Series/DragNodesComposition.js +166 -0
- package/es-modules/Series/Funnel3D/Funnel3DSeries.js +1 -1
- package/es-modules/Series/Gantt/GanttSeries.js +1 -1
- package/es-modules/Series/GraphLayoutComposition.js +130 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +5 -1
- package/es-modules/Series/Lollipop/LollipopPoint.js +21 -11
- package/es-modules/Series/Lollipop/LollipopSeries.js +15 -10
- package/es-modules/Series/Map/MapSeries.js +6 -1
- package/es-modules/Series/MapBubble/MapBubblePoint.js +15 -17
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +19 -19
- package/es-modules/Series/Networkgraph/EulerIntegration.js +199 -0
- package/es-modules/Series/Networkgraph/NetworkgraphPoint.js +290 -0
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +401 -0
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +545 -0
- package/es-modules/Series/Networkgraph/QuadTree.js +66 -272
- package/es-modules/Series/Networkgraph/QuadTreeNode.js +271 -0
- package/es-modules/Series/Networkgraph/{Layouts.js → ReingoldFruchtermanLayout.js} +240 -259
- package/es-modules/Series/Networkgraph/VerletIntegration.js +193 -0
- package/es-modules/Series/Organization/OrganizationSeries.js +9 -1
- package/es-modules/Series/PackedBubble/PackedBubbleIntegration.js +81 -0
- package/es-modules/Series/PackedBubble/{PackedBubbleComposition.js → PackedBubbleLayout.js} +114 -77
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +2 -2
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +197 -570
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +394 -0
- package/es-modules/Series/Pie/PieSeries.js +3 -1
- package/es-modules/Series/PolarComposition.js +12 -12
- package/es-modules/Series/Sankey/SankeySeries.js +13 -1
- package/es-modules/Series/Scatter/ScatterSeries.js +4 -1
- package/es-modules/Series/Scatter3D/Scatter3DSeries.js +1 -1
- package/es-modules/Series/SeriesOnPointComposition.js +5 -1
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +1 -1
- package/es-modules/Series/Sunburst/SunburstPoint.js +5 -6
- package/es-modules/Series/Sunburst/SunburstSeries.js +24 -2
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -0
- package/es-modules/Series/Treemap/TreemapSeries.js +3 -3
- package/es-modules/Series/Vector/VectorSeries.js +2 -4
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +1 -1
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +1 -1
- package/es-modules/Series/XRange/XRangePoint.js +54 -45
- package/es-modules/Series/XRange/XRangeSeries.js +121 -273
- package/es-modules/Series/XRange/XRangeSeriesDefaults.js +211 -0
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +10 -2
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +5 -0
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +22 -11
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +6 -1
- package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +16 -3
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +15 -2
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +6 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +5 -1
- package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +16 -3
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +20 -0
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +15 -1
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +7 -2
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +25 -0
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +5 -0
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +19 -8
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +10 -0
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +34 -15
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +25 -0
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +12 -1
- package/es-modules/Stock/Indicators/LinearRegression/{LinearRegression.js → LinearRegressionIndicator.js} +11 -1
- package/es-modules/Stock/Indicators/LinearRegressionAngle/{LinearRegressionAngle.js → LinearRegressionAngleIndicator.js} +12 -7
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/{LinearRegressionIntercept.js → LinearRegressionInterceptIndicator.js} +11 -1
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/{LinearRegressionSlopes.js → LinearRegressionSlopesIndicator.js} +11 -1
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +21 -10
- package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +23 -10
- package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +30 -2
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +16 -1
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +10 -0
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +13 -8
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +14 -4
- package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +16 -3
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +16 -6
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsPoint.js +16 -12
- package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +25 -0
- package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +15 -2
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +20 -2
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +25 -0
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +15 -0
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +17 -3
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +25 -0
- package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +14 -4
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +32 -3
- package/es-modules/Stock/Indicators/VBP/VBPPoint.js +6 -6
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +11 -1
- package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +30 -2
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +10 -0
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +11 -1
- package/es-modules/Stock/StockToolbar.js +568 -0
- package/es-modules/Stock/StockTools.js +256 -0
- package/es-modules/Stock/StockToolsBindings.js +114 -629
- package/es-modules/Stock/StockToolsDefaults.js +1190 -0
- package/es-modules/Stock/StockToolsGui.js +150 -1771
- package/es-modules/Stock/StockToolsUtilities.js +423 -0
- package/es-modules/masters/highcharts-3d.src.js +5 -4
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +4 -3
- package/es-modules/masters/highcharts.src.js +5 -2
- 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 +5 -7
- 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 +5 -5
- 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 +6 -4
- package/es-modules/masters/modules/annotations.src.js +6 -4
- 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 +6 -2
- 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 +1 -1
- package/es-modules/masters/modules/debugger.src.js +5 -3
- 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 +5 -2
- package/es-modules/masters/modules/exporting.src.js +1 -2
- package/es-modules/masters/modules/full-screen.src.js +6 -2
- 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 +3 -2
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +2 -2
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +5 -2
- 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 +10 -3
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +2 -2
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +5 -2
- 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 +98 -99
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +232 -211
- package/highcharts-gantt.js +808 -809
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +2308 -2136
- package/highcharts-more.d.ts +5 -8
- package/highcharts-more.js +201 -194
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +5 -8
- package/highcharts-more.src.js +3671 -3275
- package/highcharts.d.ts +1400 -885
- package/highcharts.js +593 -595
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +1400 -885
- package/highcharts.src.js +847 -716
- package/highmaps.js +762 -763
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +1288 -1129
- package/highstock.js +796 -798
- package/highstock.js.map +1 -1
- package/highstock.src.js +953 -762
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +11 -3
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +6 -1
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +23 -14
- package/indicators/apo.js +1 -1
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +6 -1
- package/indicators/aroon-oscillator.js +10 -10
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +7 -3
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +16 -3
- package/indicators/atr.js +1 -1
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +17 -4
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +6 -2
- package/indicators/cci.js +1 -1
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +17 -4
- package/indicators/chaikin.js +8 -8
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +13 -5
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +21 -1
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.js.map +1 -1
- package/indicators/cmo.src.js +16 -2
- package/indicators/dema.js +1 -1
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +26 -1
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +6 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +20 -9
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +35 -16
- package/indicators/indicators-all.js +199 -199
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +754 -162
- package/indicators/indicators.js +1 -1
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +12 -2
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +26 -1
- package/indicators/klinger.js +12 -12
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +13 -4
- package/indicators/macd.js +1 -1
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +22 -13
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +24 -11
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +31 -3
- package/indicators/natr.js +1 -1
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +17 -3
- package/indicators/obv.js +1 -1
- package/indicators/obv.js.map +1 -1
- package/indicators/obv.src.js +11 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +32 -19
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +15 -5
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +14 -9
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +26 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +17 -4
- package/indicators/regressions.js +12 -11
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +50 -15
- package/indicators/roc.js +1 -1
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +16 -3
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +21 -3
- package/indicators/slow-stochastic.js +1 -1
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +26 -1
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +16 -1
- package/indicators/supertrend.js +7 -7
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +18 -6
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +15 -5
- package/indicators/trix.js +1 -1
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +26 -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 +38 -10
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +12 -2
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +11 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +31 -3
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +12 -2
- package/modules/accessibility.js +183 -182
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +559 -554
- package/modules/annotations-advanced.d.ts +1 -1
- package/modules/annotations-advanced.js +193 -192
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.d.ts +1 -1
- package/modules/annotations-advanced.src.js +9263 -8654
- package/modules/annotations.d.ts +1 -1
- package/modules/annotations.js +128 -126
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.d.ts +1 -1
- package/modules/annotations.src.js +6699 -6063
- package/modules/arc-diagram.js +1 -1
- package/modules/arc-diagram.src.js +1 -1
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.d.ts +19 -0
- package/modules/boost-canvas.js +81 -16
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.d.ts +19 -0
- package/modules/boost-canvas.src.js +3334 -50
- package/modules/boost.d.ts +8 -26
- package/modules/boost.js +84 -77
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.d.ts +8 -26
- package/modules/boost.src.js +2423 -1888
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +2 -2
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +1 -1
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +5 -1
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +9 -9
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +2 -2
- package/modules/data.js +1 -1
- package/modules/data.src.js +1 -1
- package/modules/datagrouping.d.ts +22 -0
- package/modules/datagrouping.js +4 -4
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +22 -0
- package/modules/datagrouping.src.js +66 -28
- package/modules/debugger.js +6 -5
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +81 -40
- package/modules/dependency-wheel.js +12 -12
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +41 -14
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- 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 +5 -4
- package/modules/drilldown.d.ts +0 -10
- package/modules/drilldown.js +29 -29
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +0 -10
- package/modules/drilldown.src.js +12 -9
- package/modules/dumbbell.js +1 -1
- package/modules/dumbbell.src.js +1 -1
- package/modules/export-data.js +25 -24
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +607 -499
- package/modules/exporting.js +38 -38
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +559 -507
- package/modules/full-screen.js +8 -8
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +76 -26
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +2 -2
- package/modules/gantt.js +217 -216
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +1481 -1440
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +1 -1
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +10 -2
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.src.js +1 -1
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +1 -1
- package/modules/lollipop.js +6 -6
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.js +37 -22
- package/modules/map.d.ts +3 -3
- package/modules/map.js +171 -171
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +3 -3
- package/modules/map.src.js +442 -414
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +3 -1
- package/modules/networkgraph.js +55 -50
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +2259 -1938
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +2 -2
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +2 -2
- package/modules/oldie.src.js +2 -2
- package/modules/organization.js +15 -15
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +10 -2
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +11 -11
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +13 -8
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.src.js +1 -1
- 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 +1 -1
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +14 -2
- package/modules/series-label.js +5 -5
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +3 -3
- package/modules/series-on-point.js +1 -1
- package/modules/series-on-point.js.map +1 -1
- package/modules/series-on-point.src.js +6 -2
- package/modules/solid-gauge.js +1 -1
- package/modules/solid-gauge.src.js +2 -2
- package/modules/sonification.d.ts +2 -2
- package/modules/sonification.js +1 -1
- package/modules/sonification.src.d.ts +2 -2
- 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.d.ts +1 -23
- package/modules/stock-tools.js +109 -179
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.d.ts +1 -23
- package/modules/stock-tools.src.js +2605 -6335
- package/modules/stock.d.ts +8 -0
- package/modules/stock.js +105 -105
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +8 -0
- package/modules/stock.src.js +105 -45
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +72 -72
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +38 -12
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +1 -1
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +3 -1
- package/modules/treegrid.js +57 -57
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +1022 -1014
- package/modules/treemap.js +1 -1
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +8 -4
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +1 -1
- package/modules/vector.js +2 -2
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +3 -5
- package/modules/venn.js +1 -1
- package/modules/venn.src.js +5 -5
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +1 -1
- package/modules/wordcloud.js +1 -1
- package/modules/wordcloud.src.js +3 -3
- package/modules/xrange.js +17 -17
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +411 -397
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/brand-dark.js +1 -1
- package/themes/brand-dark.src.js +1 -1
- package/themes/brand-light.js +1 -1
- package/themes/brand-light.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
- package/es-modules/Core/Axis/StackingAxis.js +0 -215
- package/es-modules/Core/Axis/TreeGridAxis.js +0 -720
- package/es-modules/Core/Axis/TreeGridTick.js +0 -317
- package/es-modules/Extensions/Annotations/AnnotationsDefaults.js +0 -0
- package/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +0 -179
- package/es-modules/Extensions/Annotations/Popup.js +0 -1123
- package/es-modules/Extensions/Boost/BoostAttach.js +0 -154
- package/es-modules/Extensions/Boost/BoostInit.js +0 -324
- package/es-modules/Extensions/Boost/BoostOptions.js +0 -245
- package/es-modules/Extensions/Boost/BoostOverrides.js +0 -386
- package/es-modules/Extensions/Boost/BoostUtils.js +0 -255
- package/es-modules/Extensions/Boost/WGLVBuffer.js +0 -153
- package/es-modules/Extensions/Stacking.js +0 -517
- package/es-modules/Series/Networkgraph/DraggableNodes.js +0 -132
- package/es-modules/Series/Networkgraph/Integrations.js +0 -348
- package/es-modules/Series/Networkgraph/Networkgraph.js +0 -1180
- package/es-modules/Series/XRange/XRangeComposition.js +0 -49
package/modules/map.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highmaps JS v10.2.
|
|
2
|
+
* @license Highmaps JS v10.2.1 (2022-08-29)
|
|
3
3
|
*
|
|
4
4
|
* Highmaps as a plugin for Highcharts or Highcharts Stock.
|
|
5
5
|
*
|
|
@@ -707,6 +707,10 @@
|
|
|
707
707
|
* first item is a float between 0 and 1 assigning the relative
|
|
708
708
|
* position in the gradient, and the second item is the color.
|
|
709
709
|
*
|
|
710
|
+
* @sample highcharts/coloraxis/coloraxis-stops/
|
|
711
|
+
* Color axis stops
|
|
712
|
+
* @sample highcharts/coloraxis/color-key-with-stops/
|
|
713
|
+
* Color axis stops with custom colorKey
|
|
710
714
|
* @sample {highmaps} maps/demo/heatmap/
|
|
711
715
|
* Heatmap with three color stops
|
|
712
716
|
*
|
|
@@ -2180,7 +2184,7 @@
|
|
|
2180
2184
|
var mapNavigation = this.chart.options.mapNavigation;
|
|
2181
2185
|
// Pinch status
|
|
2182
2186
|
if (pick(mapNavigation.enableTouchZoom, mapNavigation.enabled)) {
|
|
2183
|
-
this.chart.options.chart.pinchType = 'xy';
|
|
2187
|
+
this.chart.options.chart.zooming.pinchType = 'xy';
|
|
2184
2188
|
}
|
|
2185
2189
|
proceed.apply(this, [].slice.call(arguments, 1));
|
|
2186
2190
|
});
|
|
@@ -4664,7 +4668,8 @@
|
|
|
4664
4668
|
relativeLength = U.relativeLength;
|
|
4665
4669
|
/**
|
|
4666
4670
|
* The world size in terms of 10k meters in the Web Mercator projection, to
|
|
4667
|
-
* match a 256 square tile to zoom level 0
|
|
4671
|
+
* match a 256 square tile to zoom level 0.
|
|
4672
|
+
* @private
|
|
4668
4673
|
*/
|
|
4669
4674
|
var worldSize = 400.979322;
|
|
4670
4675
|
var tileSize = 256;
|
|
@@ -6426,6 +6431,8 @@
|
|
|
6426
6431
|
* @excluding marker, cluster
|
|
6427
6432
|
* @product highmaps
|
|
6428
6433
|
* @optionparent plotOptions.map
|
|
6434
|
+
*
|
|
6435
|
+
* @private
|
|
6429
6436
|
*/
|
|
6430
6437
|
MapSeries.defaultOptions = merge(ScatterSeries.defaultOptions, {
|
|
6431
6438
|
/**
|
|
@@ -6436,6 +6443,8 @@
|
|
|
6436
6443
|
* US map with world map backdrop
|
|
6437
6444
|
*
|
|
6438
6445
|
* @since 10.0.0
|
|
6446
|
+
*
|
|
6447
|
+
* @private
|
|
6439
6448
|
*/
|
|
6440
6449
|
affectsMapView: true,
|
|
6441
6450
|
animation: false,
|
|
@@ -6829,8 +6838,9 @@
|
|
|
6829
6838
|
* The geometry type. Can be one of `LineString`, `Polygon`, `MultiLineString`
|
|
6830
6839
|
* or `MultiPolygon`.
|
|
6831
6840
|
*
|
|
6841
|
+
* @declare Highcharts.MapGeometryTypeValue
|
|
6832
6842
|
* @type {string}
|
|
6833
|
-
* @since
|
|
6843
|
+
* @since 9.3.0
|
|
6834
6844
|
* @product highmaps
|
|
6835
6845
|
* @validvalue ["LineString", "Polygon", "MultiLineString", "MultiPolygon"]
|
|
6836
6846
|
* @apioption series.map.data.geometry.type
|
|
@@ -7857,28 +7867,11 @@
|
|
|
7857
7867
|
merge = U.merge,
|
|
7858
7868
|
pick = U.pick,
|
|
7859
7869
|
stableSort = U.stableSort;
|
|
7860
|
-
/**
|
|
7861
|
-
* @interface Highcharts.BubbleLegendFormatterContextObject
|
|
7862
|
-
*/ /**
|
|
7863
|
-
* The center y position of the range.
|
|
7864
|
-
* @name Highcharts.BubbleLegendFormatterContextObject#center
|
|
7865
|
-
* @type {number}
|
|
7866
|
-
*/ /**
|
|
7867
|
-
* The radius of the bubble range.
|
|
7868
|
-
* @name Highcharts.BubbleLegendFormatterContextObject#radius
|
|
7869
|
-
* @type {number}
|
|
7870
|
-
*/ /**
|
|
7871
|
-
* The bubble value.
|
|
7872
|
-
* @name Highcharts.BubbleLegendFormatterContextObject#value
|
|
7873
|
-
* @type {number}
|
|
7874
|
-
*/
|
|
7875
|
-
''; // detach doclets above
|
|
7876
7870
|
/* *
|
|
7877
7871
|
*
|
|
7878
7872
|
* Class
|
|
7879
7873
|
*
|
|
7880
7874
|
* */
|
|
7881
|
-
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
7882
7875
|
/**
|
|
7883
7876
|
* BubbleLegend class.
|
|
7884
7877
|
*
|
|
@@ -7892,7 +7885,17 @@
|
|
|
7892
7885
|
* Legend of item.
|
|
7893
7886
|
*/
|
|
7894
7887
|
var BubbleLegendItem = /** @class */ (function () {
|
|
7888
|
+
/* *
|
|
7889
|
+
*
|
|
7890
|
+
* Constructor
|
|
7891
|
+
*
|
|
7892
|
+
* */
|
|
7895
7893
|
function BubbleLegendItem(options, legend) {
|
|
7894
|
+
/* *
|
|
7895
|
+
*
|
|
7896
|
+
* Properties
|
|
7897
|
+
*
|
|
7898
|
+
* */
|
|
7896
7899
|
this.chart = void 0;
|
|
7897
7900
|
this.fontMetrics = void 0;
|
|
7898
7901
|
this.legend = void 0;
|
|
@@ -7911,15 +7914,14 @@
|
|
|
7911
7914
|
this.setState = noop;
|
|
7912
7915
|
this.init(options, legend);
|
|
7913
7916
|
}
|
|
7917
|
+
/* *
|
|
7918
|
+
*
|
|
7919
|
+
* Functions
|
|
7920
|
+
*
|
|
7921
|
+
* */
|
|
7914
7922
|
/**
|
|
7915
7923
|
* Create basic bubbleLegend properties similar to item in legend.
|
|
7916
|
-
*
|
|
7917
7924
|
* @private
|
|
7918
|
-
* @function Highcharts.BubbleLegend#init
|
|
7919
|
-
* @param {Highcharts.LegendBubbleLegendOptions} options
|
|
7920
|
-
* Bubble legend options
|
|
7921
|
-
* @param {Highcharts.Legend} legend
|
|
7922
|
-
* Legend
|
|
7923
7925
|
*/
|
|
7924
7926
|
BubbleLegendItem.prototype.init = function (options, legend) {
|
|
7925
7927
|
this.options = options;
|
|
@@ -7931,9 +7933,9 @@
|
|
|
7931
7933
|
* Depending on the position option, add bubbleLegend to legend items.
|
|
7932
7934
|
*
|
|
7933
7935
|
* @private
|
|
7934
|
-
*
|
|
7936
|
+
*
|
|
7935
7937
|
* @param {Array<(Highcharts.Point|Highcharts.Series)>} items
|
|
7936
|
-
*
|
|
7938
|
+
* All legend items
|
|
7937
7939
|
*/
|
|
7938
7940
|
BubbleLegendItem.prototype.addToLegend = function (items) {
|
|
7939
7941
|
// Insert bubbleLegend into legend items
|
|
@@ -7944,7 +7946,7 @@
|
|
|
7944
7946
|
* creation.
|
|
7945
7947
|
*
|
|
7946
7948
|
* @private
|
|
7947
|
-
*
|
|
7949
|
+
*
|
|
7948
7950
|
* @param {Highcharts.Legend} legend
|
|
7949
7951
|
* Legend instance
|
|
7950
7952
|
*/
|
|
@@ -7986,9 +7988,7 @@
|
|
|
7986
7988
|
};
|
|
7987
7989
|
/**
|
|
7988
7990
|
* Set style options for each bubbleLegend range.
|
|
7989
|
-
*
|
|
7990
7991
|
* @private
|
|
7991
|
-
* @function Highcharts.BubbleLegend#setOptions
|
|
7992
7992
|
*/
|
|
7993
7993
|
BubbleLegendItem.prototype.setOptions = function () {
|
|
7994
7994
|
var ranges = this.ranges,
|
|
@@ -8040,9 +8040,10 @@
|
|
|
8040
8040
|
* used code from BubbleSeries.js 'getRadius' method.
|
|
8041
8041
|
*
|
|
8042
8042
|
* @private
|
|
8043
|
-
*
|
|
8043
|
+
*
|
|
8044
8044
|
* @param {number} value
|
|
8045
8045
|
* Range value
|
|
8046
|
+
*
|
|
8046
8047
|
* @return {number|null}
|
|
8047
8048
|
* Radius for one range
|
|
8048
8049
|
*/
|
|
@@ -8058,9 +8059,7 @@
|
|
|
8058
8059
|
};
|
|
8059
8060
|
/**
|
|
8060
8061
|
* Render the legendSymbol group.
|
|
8061
|
-
*
|
|
8062
8062
|
* @private
|
|
8063
|
-
* @function Highcharts.BubbleLegend#render
|
|
8064
8063
|
*/
|
|
8065
8064
|
BubbleLegendItem.prototype.render = function () {
|
|
8066
8065
|
var renderer = this.chart.renderer,
|
|
@@ -8092,7 +8091,7 @@
|
|
|
8092
8091
|
* Render one range, consisting of bubble symbol, connector and label.
|
|
8093
8092
|
*
|
|
8094
8093
|
* @private
|
|
8095
|
-
*
|
|
8094
|
+
*
|
|
8096
8095
|
* @param {Highcharts.LegendBubbleLegendRangesOptions} range
|
|
8097
8096
|
* Range options
|
|
8098
8097
|
*/
|
|
@@ -8173,9 +8172,7 @@
|
|
|
8173
8172
|
};
|
|
8174
8173
|
/**
|
|
8175
8174
|
* Get the label which takes up the most space.
|
|
8176
|
-
*
|
|
8177
8175
|
* @private
|
|
8178
|
-
* @function Highcharts.BubbleLegend#getMaxLabelSize
|
|
8179
8176
|
*/
|
|
8180
8177
|
BubbleLegendItem.prototype.getMaxLabelSize = function () {
|
|
8181
8178
|
var labels = this.symbols.labels;
|
|
@@ -8197,9 +8194,10 @@
|
|
|
8197
8194
|
* Get formatted label for range.
|
|
8198
8195
|
*
|
|
8199
8196
|
* @private
|
|
8200
|
-
*
|
|
8197
|
+
*
|
|
8201
8198
|
* @param {Highcharts.LegendBubbleLegendRangesOptions} range
|
|
8202
8199
|
* Range options
|
|
8200
|
+
*
|
|
8203
8201
|
* @return {string}
|
|
8204
8202
|
* Range label text
|
|
8205
8203
|
*/
|
|
@@ -8215,9 +8213,7 @@
|
|
|
8215
8213
|
/**
|
|
8216
8214
|
* By using default chart 'hideOverlappingLabels' method, hide or show
|
|
8217
8215
|
* labels and connectors.
|
|
8218
|
-
*
|
|
8219
8216
|
* @private
|
|
8220
|
-
* @function Highcharts.BubbleLegend#hideOverlappingLabels
|
|
8221
8217
|
*/
|
|
8222
8218
|
BubbleLegendItem.prototype.hideOverlappingLabels = function () {
|
|
8223
8219
|
var chart = this.chart,
|
|
@@ -8240,7 +8236,7 @@
|
|
|
8240
8236
|
* Calculate ranges from created series.
|
|
8241
8237
|
*
|
|
8242
8238
|
* @private
|
|
8243
|
-
*
|
|
8239
|
+
*
|
|
8244
8240
|
* @return {Array<Highcharts.LegendBubbleLegendRangesOptions>}
|
|
8245
8241
|
* Array of range objects
|
|
8246
8242
|
*/
|
|
@@ -8292,7 +8288,7 @@
|
|
|
8292
8288
|
* Calculate bubble legend sizes from rendered series.
|
|
8293
8289
|
*
|
|
8294
8290
|
* @private
|
|
8295
|
-
*
|
|
8291
|
+
*
|
|
8296
8292
|
* @return {Array<number,number>}
|
|
8297
8293
|
* Calculated min and max bubble sizes
|
|
8298
8294
|
*/
|
|
@@ -8333,11 +8329,7 @@
|
|
|
8333
8329
|
};
|
|
8334
8330
|
/**
|
|
8335
8331
|
* Correct ranges with calculated sizes.
|
|
8336
|
-
*
|
|
8337
8332
|
* @private
|
|
8338
|
-
* @function Highcharts.BubbleLegend#updateRanges
|
|
8339
|
-
* @param {number} min
|
|
8340
|
-
* @param {number} max
|
|
8341
8333
|
*/
|
|
8342
8334
|
BubbleLegendItem.prototype.updateRanges = function (min, max) {
|
|
8343
8335
|
var bubbleLegendOptions = this.legend.options.bubbleLegend;
|
|
@@ -8349,9 +8341,7 @@
|
|
|
8349
8341
|
* Because of the possibility of creating another legend line, predicted
|
|
8350
8342
|
* bubble legend sizes may differ by a few pixels, so it is necessary to
|
|
8351
8343
|
* correct them.
|
|
8352
|
-
*
|
|
8353
8344
|
* @private
|
|
8354
|
-
* @function Highcharts.BubbleLegend#correctSizes
|
|
8355
8345
|
*/
|
|
8356
8346
|
BubbleLegendItem.prototype.correctSizes = function () {
|
|
8357
8347
|
var legend = this.legend,
|
|
@@ -8373,6 +8363,27 @@
|
|
|
8373
8363
|
* Default Export
|
|
8374
8364
|
*
|
|
8375
8365
|
* */
|
|
8366
|
+
/* *
|
|
8367
|
+
*
|
|
8368
|
+
* API Declarations
|
|
8369
|
+
*
|
|
8370
|
+
* */
|
|
8371
|
+
/**
|
|
8372
|
+
* @interface Highcharts.BubbleLegendFormatterContextObject
|
|
8373
|
+
*/ /**
|
|
8374
|
+
* The center y position of the range.
|
|
8375
|
+
* @name Highcharts.BubbleLegendFormatterContextObject#center
|
|
8376
|
+
* @type {number}
|
|
8377
|
+
*/ /**
|
|
8378
|
+
* The radius of the bubble range.
|
|
8379
|
+
* @name Highcharts.BubbleLegendFormatterContextObject#radius
|
|
8380
|
+
* @type {number}
|
|
8381
|
+
*/ /**
|
|
8382
|
+
* The bubble value.
|
|
8383
|
+
* @name Highcharts.BubbleLegendFormatterContextObject#value
|
|
8384
|
+
* @type {number}
|
|
8385
|
+
*/
|
|
8386
|
+
''; // detach doclets above
|
|
8376
8387
|
|
|
8377
8388
|
return BubbleLegendItem;
|
|
8378
8389
|
});
|
|
@@ -8394,282 +8405,274 @@
|
|
|
8394
8405
|
wrap = U.wrap;
|
|
8395
8406
|
/* *
|
|
8396
8407
|
*
|
|
8397
|
-
*
|
|
8408
|
+
* Constants
|
|
8398
8409
|
*
|
|
8399
8410
|
* */
|
|
8400
|
-
var
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8411
|
+
var composedClasses = [];
|
|
8412
|
+
/* *
|
|
8413
|
+
*
|
|
8414
|
+
* Functions
|
|
8415
|
+
*
|
|
8416
|
+
* */
|
|
8417
|
+
/**
|
|
8418
|
+
* If ranges are not specified, determine ranges from rendered bubble series
|
|
8419
|
+
* and render legend again.
|
|
8420
|
+
*/
|
|
8421
|
+
function chartDrawChartBox(proceed, options, callback) {
|
|
8422
|
+
var chart = this,
|
|
8423
|
+
legend = chart.legend,
|
|
8424
|
+
bubbleSeries = getVisibleBubbleSeriesIndex(chart) >= 0;
|
|
8425
|
+
var bubbleLegendOptions,
|
|
8426
|
+
bubbleSizes;
|
|
8427
|
+
if (legend && legend.options.enabled && legend.bubbleLegend &&
|
|
8428
|
+
legend.options.bubbleLegend.autoRanges && bubbleSeries) {
|
|
8429
|
+
bubbleLegendOptions = legend.bubbleLegend.options;
|
|
8430
|
+
bubbleSizes = legend.bubbleLegend.predictBubbleSizes();
|
|
8431
|
+
legend.bubbleLegend.updateRanges(bubbleSizes[0], bubbleSizes[1]);
|
|
8432
|
+
// Disable animation on init
|
|
8433
|
+
if (!bubbleLegendOptions.placed) {
|
|
8434
|
+
legend.group.placed = false;
|
|
8435
|
+
legend.allItems.forEach(function (item) {
|
|
8436
|
+
item.legendGroup.translateY = null;
|
|
8437
|
+
});
|
|
8438
|
+
}
|
|
8439
|
+
// Create legend with bubbleLegend
|
|
8440
|
+
legend.render();
|
|
8441
|
+
chart.getMargins();
|
|
8442
|
+
chart.axes.forEach(function (axis) {
|
|
8443
|
+
if (axis.visible) { // #11448
|
|
8444
|
+
axis.render();
|
|
8445
|
+
}
|
|
8430
8446
|
if (!bubbleLegendOptions.placed) {
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8447
|
+
axis.setScale();
|
|
8448
|
+
axis.updateNames();
|
|
8449
|
+
// Disable axis animation on init
|
|
8450
|
+
objectEach(axis.ticks, function (tick) {
|
|
8451
|
+
tick.isNew = true;
|
|
8452
|
+
tick.isNewLabel = true;
|
|
8434
8453
|
});
|
|
8435
8454
|
}
|
|
8436
|
-
|
|
8455
|
+
});
|
|
8456
|
+
bubbleLegendOptions.placed = true;
|
|
8457
|
+
// After recalculate axes, calculate margins again.
|
|
8458
|
+
chart.getMargins();
|
|
8459
|
+
// Call default 'drawChartBox' method.
|
|
8460
|
+
proceed.call(chart, options, callback);
|
|
8461
|
+
// Check bubble legend sizes and correct them if necessary.
|
|
8462
|
+
legend.bubbleLegend.correctSizes();
|
|
8463
|
+
// Correct items positions with different dimensions in legend.
|
|
8464
|
+
retranslateItems(legend, getLinesHeights(legend));
|
|
8465
|
+
}
|
|
8466
|
+
else {
|
|
8467
|
+
proceed.call(chart, options, callback);
|
|
8468
|
+
// Allow color change on static bubble legend after click on legend
|
|
8469
|
+
if (legend && legend.options.enabled && legend.bubbleLegend) {
|
|
8437
8470
|
legend.render();
|
|
8438
|
-
chart.getMargins();
|
|
8439
|
-
chart.axes.forEach(function (axis) {
|
|
8440
|
-
if (axis.visible) { // #11448
|
|
8441
|
-
axis.render();
|
|
8442
|
-
}
|
|
8443
|
-
if (!bubbleLegendOptions.placed) {
|
|
8444
|
-
axis.setScale();
|
|
8445
|
-
axis.updateNames();
|
|
8446
|
-
// Disable axis animation on init
|
|
8447
|
-
objectEach(axis.ticks, function (tick) {
|
|
8448
|
-
tick.isNew = true;
|
|
8449
|
-
tick.isNewLabel = true;
|
|
8450
|
-
});
|
|
8451
|
-
}
|
|
8452
|
-
});
|
|
8453
|
-
bubbleLegendOptions.placed = true;
|
|
8454
|
-
// After recalculate axes, calculate margins again.
|
|
8455
|
-
chart.getMargins();
|
|
8456
|
-
// Call default 'drawChartBox' method.
|
|
8457
|
-
proceed.call(chart, options, callback);
|
|
8458
|
-
// Check bubble legend sizes and correct them if necessary.
|
|
8459
|
-
legend.bubbleLegend.correctSizes();
|
|
8460
|
-
// Correct items positions with different dimensions in legend.
|
|
8461
8471
|
retranslateItems(legend, getLinesHeights(legend));
|
|
8462
8472
|
}
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8473
|
+
}
|
|
8474
|
+
}
|
|
8475
|
+
/**
|
|
8476
|
+
* Compose classes for use with Bubble series.
|
|
8477
|
+
* @private
|
|
8478
|
+
*
|
|
8479
|
+
* @param {Highcharts.Chart} ChartClass
|
|
8480
|
+
* Core chart class to use with Bubble series.
|
|
8481
|
+
*
|
|
8482
|
+
* @param {Highcharts.Legend} LegendClass
|
|
8483
|
+
* Core legend class to use with Bubble series.
|
|
8484
|
+
*
|
|
8485
|
+
* @param {Highcharts.Series} SeriesClass
|
|
8486
|
+
* Core series class to use with Bubble series.
|
|
8487
|
+
*/
|
|
8488
|
+
function compose(ChartClass, LegendClass, SeriesClass) {
|
|
8489
|
+
if (composedClasses.indexOf(ChartClass) === -1) {
|
|
8490
|
+
composedClasses.push(ChartClass);
|
|
8491
|
+
setOptions({
|
|
8492
|
+
// Set default bubble legend options
|
|
8493
|
+
legend: {
|
|
8494
|
+
bubbleLegend: BubbleLegendDefaults
|
|
8469
8495
|
}
|
|
8470
|
-
}
|
|
8496
|
+
});
|
|
8497
|
+
wrap(ChartClass.prototype, 'drawChartBox', chartDrawChartBox);
|
|
8471
8498
|
}
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
*
|
|
8476
|
-
* @param {Highcharts.Chart} ChartClass
|
|
8477
|
-
* Core chart class to use with Bubble series.
|
|
8478
|
-
*
|
|
8479
|
-
* @param {Highcharts.Legend} LegendClass
|
|
8480
|
-
* Core legend class to use with Bubble series.
|
|
8481
|
-
*
|
|
8482
|
-
* @param {Highcharts.Series} SeriesClass
|
|
8483
|
-
* Core series class to use with Bubble series.
|
|
8484
|
-
*/
|
|
8485
|
-
function compose(ChartClass, LegendClass, SeriesClass) {
|
|
8486
|
-
if (composedClasses.indexOf(ChartClass) === -1) {
|
|
8487
|
-
composedClasses.push(ChartClass);
|
|
8488
|
-
setOptions({
|
|
8489
|
-
// Set default bubble legend options
|
|
8490
|
-
legend: {
|
|
8491
|
-
bubbleLegend: BubbleLegendDefaults
|
|
8492
|
-
}
|
|
8493
|
-
});
|
|
8494
|
-
wrap(ChartClass.prototype, 'drawChartBox', chartDrawChartBox);
|
|
8495
|
-
}
|
|
8496
|
-
if (composedClasses.indexOf(LegendClass) === -1) {
|
|
8497
|
-
composedClasses.push(LegendClass);
|
|
8498
|
-
addEvent(LegendClass, 'afterGetAllItems', onLegendAfterGetAllItems);
|
|
8499
|
-
}
|
|
8500
|
-
if (composedClasses.indexOf(SeriesClass) === -1) {
|
|
8501
|
-
composedClasses.push(SeriesClass);
|
|
8502
|
-
addEvent(SeriesClass, 'legendItemClick', onSeriesLegendItemClick);
|
|
8503
|
-
}
|
|
8499
|
+
if (composedClasses.indexOf(LegendClass) === -1) {
|
|
8500
|
+
composedClasses.push(LegendClass);
|
|
8501
|
+
addEvent(LegendClass, 'afterGetAllItems', onLegendAfterGetAllItems);
|
|
8504
8502
|
}
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
*
|
|
8509
|
-
* @private
|
|
8510
|
-
* @function getVisibleBubbleSeriesIndex
|
|
8511
|
-
* @param {Highcharts.Chart} chart
|
|
8512
|
-
* Chart to check.
|
|
8513
|
-
* @return {number}
|
|
8514
|
-
* First visible bubble series index
|
|
8515
|
-
*/
|
|
8516
|
-
function getVisibleBubbleSeriesIndex(chart) {
|
|
8517
|
-
var series = chart.series;
|
|
8518
|
-
var i = 0;
|
|
8519
|
-
while (i < series.length) {
|
|
8520
|
-
if (series[i] &&
|
|
8521
|
-
series[i].isBubble &&
|
|
8522
|
-
series[i].visible &&
|
|
8523
|
-
series[i].zData.length) {
|
|
8524
|
-
return i;
|
|
8525
|
-
}
|
|
8526
|
-
i++;
|
|
8527
|
-
}
|
|
8528
|
-
return -1;
|
|
8503
|
+
if (composedClasses.indexOf(SeriesClass) === -1) {
|
|
8504
|
+
composedClasses.push(SeriesClass);
|
|
8505
|
+
addEvent(SeriesClass, 'legendItemClick', onSeriesLegendItemClick);
|
|
8529
8506
|
}
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
i
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8507
|
+
}
|
|
8508
|
+
/**
|
|
8509
|
+
* Check if there is at least one visible bubble series.
|
|
8510
|
+
*
|
|
8511
|
+
* @private
|
|
8512
|
+
* @function getVisibleBubbleSeriesIndex
|
|
8513
|
+
* @param {Highcharts.Chart} chart
|
|
8514
|
+
* Chart to check.
|
|
8515
|
+
* @return {number}
|
|
8516
|
+
* First visible bubble series index
|
|
8517
|
+
*/
|
|
8518
|
+
function getVisibleBubbleSeriesIndex(chart) {
|
|
8519
|
+
var series = chart.series;
|
|
8520
|
+
var i = 0;
|
|
8521
|
+
while (i < series.length) {
|
|
8522
|
+
if (series[i] &&
|
|
8523
|
+
series[i].isBubble &&
|
|
8524
|
+
series[i].visible &&
|
|
8525
|
+
series[i].zData.length) {
|
|
8526
|
+
return i;
|
|
8527
|
+
}
|
|
8528
|
+
i++;
|
|
8529
|
+
}
|
|
8530
|
+
return -1;
|
|
8531
|
+
}
|
|
8532
|
+
/**
|
|
8533
|
+
* Calculate height for each row in legend.
|
|
8534
|
+
*
|
|
8535
|
+
* @private
|
|
8536
|
+
* @function getLinesHeights
|
|
8537
|
+
*
|
|
8538
|
+
* @param {Highcharts.Legend} legend
|
|
8539
|
+
* Legend to calculate from.
|
|
8540
|
+
*
|
|
8541
|
+
* @return {Array<Highcharts.Dictionary<number>>}
|
|
8542
|
+
* Informations about line height and items amount
|
|
8543
|
+
*/
|
|
8544
|
+
function getLinesHeights(legend) {
|
|
8545
|
+
var items = legend.allItems,
|
|
8546
|
+
lines = [],
|
|
8547
|
+
length = items.length;
|
|
8548
|
+
var lastLine,
|
|
8549
|
+
i = 0,
|
|
8550
|
+
j = 0;
|
|
8551
|
+
for (i = 0; i < length; i++) {
|
|
8552
|
+
if (items[i].legendItemHeight) {
|
|
8553
|
+
// for bubbleLegend
|
|
8554
|
+
items[i].itemHeight = items[i].legendItemHeight;
|
|
8555
|
+
}
|
|
8556
|
+
if ( // Line break
|
|
8557
|
+
items[i] === items[length - 1] ||
|
|
8558
|
+
items[i + 1] &&
|
|
8559
|
+
items[i]._legendItemPos[1] !==
|
|
8560
|
+
items[i + 1]._legendItemPos[1]) {
|
|
8561
|
+
lines.push({ height: 0 });
|
|
8562
|
+
lastLine = lines[lines.length - 1];
|
|
8563
|
+
// Find the highest item in line
|
|
8564
|
+
for (j; j <= i; j++) {
|
|
8565
|
+
if (items[j].itemHeight > lastLine.height) {
|
|
8566
|
+
lastLine.height = items[j].itemHeight;
|
|
8566
8567
|
}
|
|
8567
|
-
lastLine.step = i;
|
|
8568
8568
|
}
|
|
8569
|
+
lastLine.step = i;
|
|
8569
8570
|
}
|
|
8570
|
-
return lines;
|
|
8571
8571
|
}
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
if (bubbleSeriesIndex >= 0 &&
|
|
8593
|
-
legendOptions.enabled &&
|
|
8594
|
-
options.enabled) {
|
|
8595
|
-
options.seriesIndex = bubbleSeriesIndex;
|
|
8596
|
-
legend.bubbleLegend = new BubbleLegendItem(options, legend);
|
|
8597
|
-
legend.bubbleLegend.addToLegend(e.allItems);
|
|
8598
|
-
}
|
|
8572
|
+
return lines;
|
|
8573
|
+
}
|
|
8574
|
+
/**
|
|
8575
|
+
* Start the bubble legend creation process.
|
|
8576
|
+
*/
|
|
8577
|
+
function onLegendAfterGetAllItems(e) {
|
|
8578
|
+
var legend = this,
|
|
8579
|
+
bubbleLegend = legend.bubbleLegend,
|
|
8580
|
+
legendOptions = legend.options,
|
|
8581
|
+
options = legendOptions.bubbleLegend,
|
|
8582
|
+
bubbleSeriesIndex = getVisibleBubbleSeriesIndex(legend.chart);
|
|
8583
|
+
// Remove unnecessary element
|
|
8584
|
+
if (bubbleLegend && bubbleLegend.ranges && bubbleLegend.ranges.length) {
|
|
8585
|
+
// Allow change the way of calculating ranges in update
|
|
8586
|
+
if (options.ranges.length) {
|
|
8587
|
+
options.autoRanges =
|
|
8588
|
+
!!options.ranges[0].autoRanges;
|
|
8589
|
+
}
|
|
8590
|
+
// Update bubbleLegend dimensions in each redraw
|
|
8591
|
+
legend.destroyItem(bubbleLegend);
|
|
8599
8592
|
}
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
legend = series.chart.legend;
|
|
8608
|
-
var status;
|
|
8609
|
-
if (legend && legend.bubbleLegend) {
|
|
8610
|
-
// Temporary correct 'visible' property
|
|
8611
|
-
series.visible = !visible;
|
|
8612
|
-
// Save future status for getRanges method
|
|
8613
|
-
series.ignoreSeries = visible;
|
|
8614
|
-
// Check if at lest one bubble series is visible
|
|
8615
|
-
status = getVisibleBubbleSeriesIndex(chart) >= 0;
|
|
8616
|
-
// Hide bubble legend if all bubble series are disabled
|
|
8617
|
-
if (legend.bubbleLegend.visible !== status) {
|
|
8618
|
-
// Show or hide bubble legend
|
|
8619
|
-
legend.update({
|
|
8620
|
-
bubbleLegend: { enabled: status }
|
|
8621
|
-
});
|
|
8622
|
-
legend.bubbleLegend.visible = status; // Restore default status
|
|
8623
|
-
}
|
|
8624
|
-
series.visible = visible;
|
|
8625
|
-
}
|
|
8593
|
+
// Create bubble legend
|
|
8594
|
+
if (bubbleSeriesIndex >= 0 &&
|
|
8595
|
+
legendOptions.enabled &&
|
|
8596
|
+
options.enabled) {
|
|
8597
|
+
options.seriesIndex = bubbleSeriesIndex;
|
|
8598
|
+
legend.bubbleLegend = new BubbleLegendItem(options, legend);
|
|
8599
|
+
legend.bubbleLegend.addToLegend(e.allItems);
|
|
8626
8600
|
}
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
movementX = item.movementX;
|
|
8650
|
-
if (movementX || (rtl && item.ranges)) {
|
|
8651
|
-
movementX = rtl ?
|
|
8652
|
-
orgTranslateX - item.options.maxSize / 2 :
|
|
8653
|
-
orgTranslateX + movementX;
|
|
8654
|
-
item.legendGroup.attr({ translateX: movementX });
|
|
8655
|
-
}
|
|
8656
|
-
if (index > lines[actualLine].step) {
|
|
8657
|
-
actualLine++;
|
|
8658
|
-
}
|
|
8659
|
-
item.legendGroup.attr({
|
|
8660
|
-
translateY: Math.round(orgTranslateY + lines[actualLine].height / 2)
|
|
8601
|
+
}
|
|
8602
|
+
/**
|
|
8603
|
+
* Toggle bubble legend depending on the visible status of bubble series.
|
|
8604
|
+
*/
|
|
8605
|
+
function onSeriesLegendItemClick() {
|
|
8606
|
+
var series = this,
|
|
8607
|
+
chart = series.chart,
|
|
8608
|
+
visible = series.visible,
|
|
8609
|
+
legend = series.chart.legend;
|
|
8610
|
+
var status;
|
|
8611
|
+
if (legend && legend.bubbleLegend) {
|
|
8612
|
+
// Temporary correct 'visible' property
|
|
8613
|
+
series.visible = !visible;
|
|
8614
|
+
// Save future status for getRanges method
|
|
8615
|
+
series.ignoreSeries = visible;
|
|
8616
|
+
// Check if at lest one bubble series is visible
|
|
8617
|
+
status = getVisibleBubbleSeriesIndex(chart) >= 0;
|
|
8618
|
+
// Hide bubble legend if all bubble series are disabled
|
|
8619
|
+
if (legend.bubbleLegend.visible !== status) {
|
|
8620
|
+
// Show or hide bubble legend
|
|
8621
|
+
legend.update({
|
|
8622
|
+
bubbleLegend: { enabled: status }
|
|
8661
8623
|
});
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8624
|
+
legend.bubbleLegend.visible = status; // Restore default status
|
|
8625
|
+
}
|
|
8626
|
+
series.visible = visible;
|
|
8665
8627
|
}
|
|
8666
|
-
|
|
8667
|
-
|
|
8628
|
+
}
|
|
8629
|
+
/**
|
|
8630
|
+
* Correct legend items translation in case of different elements heights.
|
|
8631
|
+
*
|
|
8632
|
+
* @private
|
|
8633
|
+
* @function Highcharts.Legend#retranslateItems
|
|
8634
|
+
*
|
|
8635
|
+
* @param {Highcharts.Legend} legend
|
|
8636
|
+
* Legend to translate in.
|
|
8637
|
+
*
|
|
8638
|
+
* @param {Array<Highcharts.Dictionary<number>>} lines
|
|
8639
|
+
* Informations about line height and items amount
|
|
8640
|
+
*/
|
|
8641
|
+
function retranslateItems(legend, lines) {
|
|
8642
|
+
var items = legend.allItems,
|
|
8643
|
+
rtl = legend.options.rtl;
|
|
8644
|
+
var orgTranslateX,
|
|
8645
|
+
orgTranslateY,
|
|
8646
|
+
movementX,
|
|
8647
|
+
actualLine = 0;
|
|
8648
|
+
items.forEach(function (item, index) {
|
|
8649
|
+
orgTranslateX = item.legendGroup.translateX;
|
|
8650
|
+
orgTranslateY = item._legendItemPos[1];
|
|
8651
|
+
movementX = item.movementX;
|
|
8652
|
+
if (movementX || (rtl && item.ranges)) {
|
|
8653
|
+
movementX = rtl ?
|
|
8654
|
+
orgTranslateX - item.options.maxSize / 2 :
|
|
8655
|
+
orgTranslateX + movementX;
|
|
8656
|
+
item.legendGroup.attr({ translateX: movementX });
|
|
8657
|
+
}
|
|
8658
|
+
if (index > lines[actualLine].step) {
|
|
8659
|
+
actualLine++;
|
|
8660
|
+
}
|
|
8661
|
+
item.legendGroup.attr({
|
|
8662
|
+
translateY: Math.round(orgTranslateY + lines[actualLine].height / 2)
|
|
8663
|
+
});
|
|
8664
|
+
item._legendItemPos[1] = orgTranslateY +
|
|
8665
|
+
lines[actualLine].height / 2;
|
|
8666
|
+
});
|
|
8667
|
+
}
|
|
8668
8668
|
/* *
|
|
8669
8669
|
*
|
|
8670
8670
|
* Default Export
|
|
8671
8671
|
*
|
|
8672
8672
|
* */
|
|
8673
|
+
var BubbleLegendComposition = {
|
|
8674
|
+
compose: compose
|
|
8675
|
+
};
|
|
8673
8676
|
|
|
8674
8677
|
return BubbleLegendComposition;
|
|
8675
8678
|
});
|
|
@@ -8753,7 +8756,7 @@
|
|
|
8753
8756
|
|
|
8754
8757
|
return BubblePoint;
|
|
8755
8758
|
});
|
|
8756
|
-
_registerModule(_modules, 'Series/Bubble/BubbleSeries.js', [_modules['
|
|
8759
|
+
_registerModule(_modules, 'Series/Bubble/BubbleSeries.js', [_modules['Series/Bubble/BubbleLegendComposition.js'], _modules['Series/Bubble/BubblePoint.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (BubbleLegendComposition, BubblePoint, Color, H, SeriesRegistry, U) {
|
|
8757
8760
|
/* *
|
|
8758
8761
|
*
|
|
8759
8762
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -8781,8 +8784,9 @@
|
|
|
8781
8784
|
})();
|
|
8782
8785
|
var color = Color.parse;
|
|
8783
8786
|
var noop = H.noop;
|
|
8784
|
-
var
|
|
8785
|
-
|
|
8787
|
+
var Series = SeriesRegistry.series,
|
|
8788
|
+
_a = SeriesRegistry.seriesTypes,
|
|
8789
|
+
columnProto = _a.column.prototype,
|
|
8786
8790
|
ScatterSeries = _a.scatter;
|
|
8787
8791
|
var addEvent = U.addEvent,
|
|
8788
8792
|
arrayMax = U.arrayMax,
|
|
@@ -8792,6 +8796,77 @@
|
|
|
8792
8796
|
isNumber = U.isNumber,
|
|
8793
8797
|
merge = U.merge,
|
|
8794
8798
|
pick = U.pick;
|
|
8799
|
+
/* *
|
|
8800
|
+
*
|
|
8801
|
+
* Constants
|
|
8802
|
+
*
|
|
8803
|
+
* */
|
|
8804
|
+
var composedClasses = [];
|
|
8805
|
+
/* *
|
|
8806
|
+
*
|
|
8807
|
+
* Functions
|
|
8808
|
+
*
|
|
8809
|
+
* */
|
|
8810
|
+
/**
|
|
8811
|
+
* Add logic to pad each axis with the amount of pixels necessary to avoid the
|
|
8812
|
+
* bubbles to overflow.
|
|
8813
|
+
*/
|
|
8814
|
+
function axisBeforePadding() {
|
|
8815
|
+
var _this = this;
|
|
8816
|
+
var axisLength = this.len,
|
|
8817
|
+
chart = this.chart,
|
|
8818
|
+
isXAxis = this.isXAxis,
|
|
8819
|
+
dataKey = isXAxis ? 'xData' : 'yData',
|
|
8820
|
+
min = this.min,
|
|
8821
|
+
range = this.max - min;
|
|
8822
|
+
var pxMin = 0,
|
|
8823
|
+
pxMax = axisLength,
|
|
8824
|
+
transA = axisLength / range,
|
|
8825
|
+
hasActiveSeries;
|
|
8826
|
+
// Handle padding on the second pass, or on redraw
|
|
8827
|
+
this.series.forEach(function (series) {
|
|
8828
|
+
if (series.bubblePadding &&
|
|
8829
|
+
(series.visible || !chart.options.chart.ignoreHiddenSeries)) {
|
|
8830
|
+
// Correction for #1673
|
|
8831
|
+
_this.allowZoomOutside = true;
|
|
8832
|
+
hasActiveSeries = true;
|
|
8833
|
+
var data = series[dataKey];
|
|
8834
|
+
if (isXAxis) {
|
|
8835
|
+
(series.onPoint || series).getRadii(0, 0, series);
|
|
8836
|
+
if (series.onPoint) {
|
|
8837
|
+
series.radii = series.onPoint.radii;
|
|
8838
|
+
}
|
|
8839
|
+
}
|
|
8840
|
+
if (range > 0) {
|
|
8841
|
+
var i = data.length;
|
|
8842
|
+
while (i--) {
|
|
8843
|
+
if (isNumber(data[i]) &&
|
|
8844
|
+
_this.dataMin <= data[i] &&
|
|
8845
|
+
data[i] <= _this.max) {
|
|
8846
|
+
var radius = series.radii && series.radii[i] || 0;
|
|
8847
|
+
pxMin = Math.min(((data[i] - min) * transA) - radius, pxMin);
|
|
8848
|
+
pxMax = Math.max(((data[i] - min) * transA) + radius, pxMax);
|
|
8849
|
+
}
|
|
8850
|
+
}
|
|
8851
|
+
}
|
|
8852
|
+
}
|
|
8853
|
+
});
|
|
8854
|
+
// Apply the padding to the min and max properties
|
|
8855
|
+
if (hasActiveSeries && range > 0 && !this.logarithmic) {
|
|
8856
|
+
pxMax -= axisLength;
|
|
8857
|
+
transA *= (axisLength +
|
|
8858
|
+
Math.max(0, pxMin) - // #8901
|
|
8859
|
+
Math.min(pxMax, axisLength)) / axisLength;
|
|
8860
|
+
[
|
|
8861
|
+
['min', 'userMin', pxMin],
|
|
8862
|
+
['max', 'userMax', pxMax]
|
|
8863
|
+
].forEach(function (keys) {
|
|
8864
|
+
if (typeof pick(_this.options[keys[0]], _this[keys[1]]) === 'undefined') {
|
|
8865
|
+
_this[keys[0]] += keys[2] / transA;
|
|
8866
|
+
}
|
|
8867
|
+
});
|
|
8868
|
+
}
|
|
8869
|
+
}
|
|
8795
8870
|
/* *
|
|
8796
8871
|
*
|
|
8797
8872
|
* Class
|
|
@@ -8821,14 +8896,24 @@
|
|
|
8821
8896
|
_this.yData = void 0;
|
|
8822
8897
|
_this.zData = void 0;
|
|
8823
8898
|
return _this;
|
|
8824
|
-
/* eslint-enable valid-jsdoc */
|
|
8825
8899
|
}
|
|
8900
|
+
/* *
|
|
8901
|
+
*
|
|
8902
|
+
* Static Functions
|
|
8903
|
+
*
|
|
8904
|
+
* */
|
|
8905
|
+
BubbleSeries.compose = function (AxisClass, ChartClass, LegendClass, SeriesClass) {
|
|
8906
|
+
BubbleLegendComposition.compose(ChartClass, LegendClass, SeriesClass);
|
|
8907
|
+
if (composedClasses.indexOf(AxisClass) === -1) {
|
|
8908
|
+
composedClasses.push(AxisClass);
|
|
8909
|
+
AxisClass.prototype.beforePadding = axisBeforePadding;
|
|
8910
|
+
}
|
|
8911
|
+
};
|
|
8826
8912
|
/* *
|
|
8827
8913
|
*
|
|
8828
8914
|
* Functions
|
|
8829
8915
|
*
|
|
8830
8916
|
* */
|
|
8831
|
-
/* eslint-disable valid-jsdoc */
|
|
8832
8917
|
/**
|
|
8833
8918
|
* Perform animation on the bubbles
|
|
8834
8919
|
* @private
|
|
@@ -8863,11 +8948,11 @@
|
|
|
8863
8948
|
*/
|
|
8864
8949
|
BubbleSeries.prototype.getRadii = function () {
|
|
8865
8950
|
var _this = this;
|
|
8951
|
+
var zData = this.zData,
|
|
8952
|
+
yData = this.yData,
|
|
8953
|
+
radii = [];
|
|
8866
8954
|
var len,
|
|
8867
8955
|
i,
|
|
8868
|
-
zData = this.zData,
|
|
8869
|
-
yData = this.yData,
|
|
8870
|
-
radii = [],
|
|
8871
8956
|
value,
|
|
8872
8957
|
zExtremes = this.chart.bubbleZExtremes;
|
|
8873
8958
|
var _a = this.getPxExtremes(),
|
|
@@ -8914,8 +8999,8 @@
|
|
|
8914
8999
|
BubbleSeries.prototype.getRadius = function (zMin, zMax, minSize, maxSize, value, yValue) {
|
|
8915
9000
|
var options = this.options,
|
|
8916
9001
|
sizeByArea = options.sizeBy !== 'width',
|
|
8917
|
-
zThreshold = options.zThreshold
|
|
8918
|
-
|
|
9002
|
+
zThreshold = options.zThreshold;
|
|
9003
|
+
var zRange = zMax - zMin,
|
|
8919
9004
|
pos = 0.5;
|
|
8920
9005
|
// #8608 - bubble should be visible when z is undefined
|
|
8921
9006
|
if (yValue === null || value === null) {
|
|
@@ -9048,7 +9133,6 @@
|
|
|
9048
9133
|
}
|
|
9049
9134
|
}
|
|
9050
9135
|
};
|
|
9051
|
-
BubbleSeries.compose = BubbleLegendComposition.compose;
|
|
9052
9136
|
/**
|
|
9053
9137
|
* A bubble series is a three dimensional series type where each point
|
|
9054
9138
|
* renders an X, Y and Z value. Each points is drawn as a bubble where the
|
|
@@ -9287,7 +9371,7 @@
|
|
|
9287
9371
|
return BubbleSeries;
|
|
9288
9372
|
}(ScatterSeries));
|
|
9289
9373
|
extend(BubbleSeries.prototype, {
|
|
9290
|
-
alignDataLabel:
|
|
9374
|
+
alignDataLabel: columnProto.alignDataLabel,
|
|
9291
9375
|
applyZones: noop,
|
|
9292
9376
|
bubblePadding: true,
|
|
9293
9377
|
buildKDTree: noop,
|
|
@@ -9304,70 +9388,10 @@
|
|
|
9304
9388
|
addEvent(BubbleSeries, 'updatedData', function (e) {
|
|
9305
9389
|
delete e.target.chart.bubbleZExtremes;
|
|
9306
9390
|
});
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
* */
|
|
9312
|
-
// Add logic to pad each axis with the amount of pixels necessary to avoid the
|
|
9313
|
-
// bubbles to overflow.
|
|
9314
|
-
Axis.prototype.beforePadding = function () {
|
|
9315
|
-
var axis = this,
|
|
9316
|
-
axisLength = this.len,
|
|
9317
|
-
chart = this.chart,
|
|
9318
|
-
pxMin = 0,
|
|
9319
|
-
pxMax = axisLength,
|
|
9320
|
-
isXAxis = this.isXAxis,
|
|
9321
|
-
dataKey = isXAxis ? 'xData' : 'yData',
|
|
9322
|
-
min = this.min,
|
|
9323
|
-
range = this.max - min,
|
|
9324
|
-
transA = axisLength / range,
|
|
9325
|
-
hasActiveSeries;
|
|
9326
|
-
// Handle padding on the second pass, or on redraw
|
|
9327
|
-
this.series.forEach(function (series) {
|
|
9328
|
-
if (series.bubblePadding &&
|
|
9329
|
-
(series.visible || !chart.options.chart.ignoreHiddenSeries)) {
|
|
9330
|
-
// Correction for #1673
|
|
9331
|
-
axis.allowZoomOutside = true;
|
|
9332
|
-
hasActiveSeries = true;
|
|
9333
|
-
var data = series[dataKey];
|
|
9334
|
-
if (isXAxis) {
|
|
9335
|
-
(series.onPoint || series).getRadii(0, 0, series);
|
|
9336
|
-
if (series.onPoint) {
|
|
9337
|
-
series.radii = series.onPoint.radii;
|
|
9338
|
-
}
|
|
9339
|
-
}
|
|
9340
|
-
if (range > 0) {
|
|
9341
|
-
var i = data.length;
|
|
9342
|
-
while (i--) {
|
|
9343
|
-
if (isNumber(data[i]) &&
|
|
9344
|
-
axis.dataMin <= data[i] &&
|
|
9345
|
-
data[i] <= axis.max) {
|
|
9346
|
-
var radius = series.radii && series.radii[i] || 0;
|
|
9347
|
-
pxMin = Math.min(((data[i] - min) * transA) - radius, pxMin);
|
|
9348
|
-
pxMax = Math.max(((data[i] - min) * transA) + radius, pxMax);
|
|
9349
|
-
}
|
|
9350
|
-
}
|
|
9351
|
-
}
|
|
9352
|
-
}
|
|
9353
|
-
});
|
|
9354
|
-
// Apply the padding to the min and max properties
|
|
9355
|
-
if (hasActiveSeries && range > 0 && !this.logarithmic) {
|
|
9356
|
-
pxMax -= axisLength;
|
|
9357
|
-
transA *= (axisLength +
|
|
9358
|
-
Math.max(0, pxMin) - // #8901
|
|
9359
|
-
Math.min(pxMax, axisLength)) / axisLength;
|
|
9360
|
-
[
|
|
9361
|
-
['min', 'userMin', pxMin],
|
|
9362
|
-
['max', 'userMax', pxMax]
|
|
9363
|
-
].forEach(function (keys) {
|
|
9364
|
-
if (typeof pick(axis.options[keys[0]], axis[keys[1]]) === 'undefined') {
|
|
9365
|
-
axis[keys[0]] += keys[2] / transA;
|
|
9366
|
-
}
|
|
9367
|
-
});
|
|
9368
|
-
}
|
|
9369
|
-
/* eslint-enable valid-jsdoc */
|
|
9370
|
-
};
|
|
9391
|
+
// After removing series, delete the chart-level Z extremes cache, #17502.
|
|
9392
|
+
addEvent(BubbleSeries, 'remove', function (e) {
|
|
9393
|
+
delete e.target.chart.bubbleZExtremes;
|
|
9394
|
+
});
|
|
9371
9395
|
SeriesRegistry.registerSeriesType('bubble', BubbleSeries);
|
|
9372
9396
|
/* *
|
|
9373
9397
|
*
|
|
@@ -9475,7 +9499,7 @@
|
|
|
9475
9499
|
|
|
9476
9500
|
return BubbleSeries;
|
|
9477
9501
|
});
|
|
9478
|
-
_registerModule(_modules, 'Series/MapBubble/MapBubblePoint.js', [_modules['Series/
|
|
9502
|
+
_registerModule(_modules, 'Series/MapBubble/MapBubblePoint.js', [_modules['Series/Bubble/BubblePoint.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (BubblePoint, SeriesRegistry, U) {
|
|
9479
9503
|
/* *
|
|
9480
9504
|
*
|
|
9481
9505
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -9506,9 +9530,8 @@
|
|
|
9506
9530
|
* Imports
|
|
9507
9531
|
*
|
|
9508
9532
|
* */
|
|
9509
|
-
var
|
|
9510
|
-
|
|
9511
|
-
MapSeries = _a.map;
|
|
9533
|
+
var mapPointProto = SeriesRegistry.seriesTypes.map.prototype.pointClass.prototype;
|
|
9534
|
+
var extend = U.extend;
|
|
9512
9535
|
/* *
|
|
9513
9536
|
*
|
|
9514
9537
|
* Class
|
|
@@ -9517,27 +9540,22 @@
|
|
|
9517
9540
|
var MapBubblePoint = /** @class */ (function (_super) {
|
|
9518
9541
|
__extends(MapBubblePoint, _super);
|
|
9519
9542
|
function MapBubblePoint() {
|
|
9520
|
-
|
|
9521
|
-
*
|
|
9522
|
-
* Functions
|
|
9523
|
-
*
|
|
9524
|
-
* */
|
|
9525
|
-
var _this = _super !== null && _super.apply(this,
|
|
9526
|
-
arguments) || this;
|
|
9527
|
-
_this.applyOptions = MapSeries.prototype.pointClass.prototype.applyOptions;
|
|
9528
|
-
_this.getProjectedBounds = MapPoint.prototype.getProjectedBounds;
|
|
9529
|
-
return _this;
|
|
9530
|
-
/* eslint-enable valid-jsdoc */
|
|
9543
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
9531
9544
|
}
|
|
9532
|
-
/*
|
|
9533
|
-
|
|
9534
|
-
*
|
|
9535
|
-
|
|
9545
|
+
/* *
|
|
9546
|
+
*
|
|
9547
|
+
* Functions
|
|
9548
|
+
*
|
|
9549
|
+
* */
|
|
9536
9550
|
MapBubblePoint.prototype.isValid = function () {
|
|
9537
9551
|
return typeof this.z === 'number';
|
|
9538
9552
|
};
|
|
9539
9553
|
return MapBubblePoint;
|
|
9540
|
-
}(
|
|
9554
|
+
}(BubblePoint));
|
|
9555
|
+
extend(MapBubblePoint.prototype, {
|
|
9556
|
+
applyOptions: mapPointProto.applyOptions,
|
|
9557
|
+
getProjectedBounds: mapPointProto.getProjectedBounds
|
|
9558
|
+
});
|
|
9541
9559
|
/* *
|
|
9542
9560
|
*
|
|
9543
9561
|
* Default Export
|
|
@@ -9546,7 +9564,7 @@
|
|
|
9546
9564
|
|
|
9547
9565
|
return MapBubblePoint;
|
|
9548
9566
|
});
|
|
9549
|
-
_registerModule(_modules, 'Series/MapBubble/MapBubbleSeries.js', [_modules['Series/Bubble/BubbleSeries.js'], _modules['Series/MapBubble/MapBubblePoint.js'], _modules['
|
|
9567
|
+
_registerModule(_modules, 'Series/MapBubble/MapBubbleSeries.js', [_modules['Series/Bubble/BubbleSeries.js'], _modules['Series/MapBubble/MapBubblePoint.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (BubbleSeries, MapBubblePoint, SeriesRegistry, U) {
|
|
9550
9568
|
/* *
|
|
9551
9569
|
*
|
|
9552
9570
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -9572,7 +9590,9 @@
|
|
|
9572
9590
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9573
9591
|
};
|
|
9574
9592
|
})();
|
|
9575
|
-
var
|
|
9593
|
+
var _a = SeriesRegistry.seriesTypes,
|
|
9594
|
+
mapProto = _a.map.prototype,
|
|
9595
|
+
mapPointProto = _a.mappoint.prototype;
|
|
9576
9596
|
var extend = U.extend,
|
|
9577
9597
|
merge = U.merge;
|
|
9578
9598
|
/* *
|
|
@@ -9586,10 +9606,18 @@
|
|
|
9586
9606
|
* @name Highcharts.seriesTypes.mapbubble
|
|
9587
9607
|
*
|
|
9588
9608
|
* @augments Highcharts.Series
|
|
9609
|
+
*
|
|
9610
|
+
* @requires BubbleSeries
|
|
9611
|
+
* @requires MapPointSeries
|
|
9589
9612
|
*/
|
|
9590
9613
|
var MapBubbleSeries = /** @class */ (function (_super) {
|
|
9591
9614
|
__extends(MapBubbleSeries, _super);
|
|
9592
9615
|
function MapBubbleSeries() {
|
|
9616
|
+
/* *
|
|
9617
|
+
*
|
|
9618
|
+
* Static Properties
|
|
9619
|
+
*
|
|
9620
|
+
* */
|
|
9593
9621
|
var _this = _super !== null && _super.apply(this,
|
|
9594
9622
|
arguments) || this;
|
|
9595
9623
|
/* *
|
|
@@ -9609,16 +9637,10 @@
|
|
|
9609
9637
|
}, compareX, e);
|
|
9610
9638
|
};
|
|
9611
9639
|
MapBubbleSeries.prototype.translate = function () {
|
|
9612
|
-
|
|
9640
|
+
mapPointProto.translate.call(this);
|
|
9613
9641
|
this.getRadii();
|
|
9614
9642
|
this.translateBubble();
|
|
9615
9643
|
};
|
|
9616
|
-
/* *
|
|
9617
|
-
*
|
|
9618
|
-
* Static Properties
|
|
9619
|
-
*
|
|
9620
|
-
* */
|
|
9621
|
-
MapBubbleSeries.compose = BubbleSeries.compose;
|
|
9622
9644
|
/**
|
|
9623
9645
|
* A map bubble series is a bubble series laid out on top of a map
|
|
9624
9646
|
* series, where each bubble is tied to a specific map area.
|
|
@@ -9695,7 +9717,6 @@
|
|
|
9695
9717
|
*
|
|
9696
9718
|
* @product highmaps
|
|
9697
9719
|
* @apioption plotOptions.mapbubble.maxSize
|
|
9698
|
-
|
|
9699
9720
|
*/
|
|
9700
9721
|
/**
|
|
9701
9722
|
* Minimum bubble size. Bubbles will automatically size between the
|
|
@@ -9786,6 +9807,9 @@
|
|
|
9786
9807
|
* @default 0
|
|
9787
9808
|
* @apioption plotOptions.mapbubble.zThreshold
|
|
9788
9809
|
*/
|
|
9810
|
+
/**
|
|
9811
|
+
* @default 500
|
|
9812
|
+
*/
|
|
9789
9813
|
animationLimit: 500,
|
|
9790
9814
|
joinBy: 'hc-key',
|
|
9791
9815
|
tooltip: {
|
|
@@ -9797,16 +9821,16 @@
|
|
|
9797
9821
|
extend(MapBubbleSeries.prototype, {
|
|
9798
9822
|
type: 'mapbubble',
|
|
9799
9823
|
axisTypes: ['colorAxis'],
|
|
9800
|
-
getProjectedBounds:
|
|
9824
|
+
getProjectedBounds: mapProto.getProjectedBounds,
|
|
9801
9825
|
isCartesian: false,
|
|
9802
9826
|
// If one single value is passed, it is interpreted as z
|
|
9803
9827
|
pointArrayMap: ['z'],
|
|
9804
9828
|
pointClass: MapBubblePoint,
|
|
9805
|
-
processData:
|
|
9806
|
-
projectPoint:
|
|
9807
|
-
setData:
|
|
9808
|
-
setOptions:
|
|
9809
|
-
updateData:
|
|
9829
|
+
processData: mapProto.processData,
|
|
9830
|
+
projectPoint: mapPointProto.projectPoint,
|
|
9831
|
+
setData: mapProto.setData,
|
|
9832
|
+
setOptions: mapProto.setOptions,
|
|
9833
|
+
updateData: mapProto.updateData,
|
|
9810
9834
|
useMapGeometry: true,
|
|
9811
9835
|
xyFromShape: true
|
|
9812
9836
|
});
|
|
@@ -10401,7 +10425,11 @@
|
|
|
10401
10425
|
*/
|
|
10402
10426
|
animation: false,
|
|
10403
10427
|
/**
|
|
10404
|
-
* The border radius for each heatmap item.
|
|
10428
|
+
* The border radius for each heatmap item. The border's color and
|
|
10429
|
+
* width can be set in marker options.
|
|
10430
|
+
*
|
|
10431
|
+
* @see [lineColor](#plotOptions.heatmap.marker.lineColor)
|
|
10432
|
+
* @see [lineWidth](#plotOptions.heatmap.marker.lineWidth)
|
|
10405
10433
|
*/
|
|
10406
10434
|
borderRadius: 0,
|
|
10407
10435
|
/**
|
|
@@ -11048,7 +11076,7 @@
|
|
|
11048
11076
|
G.maps = MapChart.maps;
|
|
11049
11077
|
G.Projection = Projection;
|
|
11050
11078
|
ColorAxis.compose(G.Chart, G.Fx, G.Legend, G.Series);
|
|
11051
|
-
MapBubbleSeries.compose(G.Chart, G.Legend, G.Series);
|
|
11079
|
+
MapBubbleSeries.compose(G.Axis, G.Chart, G.Legend, G.Series);
|
|
11052
11080
|
|
|
11053
11081
|
});
|
|
11054
11082
|
}));
|