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
|
@@ -24,11 +24,65 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
24
24
|
};
|
|
25
25
|
})();
|
|
26
26
|
import HeikinAshiPoint from './HeikinAshiPoint.js';
|
|
27
|
+
import HeikinAshiSeriesDefaults from './HeikinAshiSeriesDefaults.js';
|
|
27
28
|
import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
|
|
28
|
-
import U from '../../Core/Utilities.js';
|
|
29
|
-
import Axis from '../../Core/Axis/Axis.js';
|
|
30
29
|
var CandlestickSeries = SeriesRegistry.seriesTypes.candlestick;
|
|
30
|
+
import U from '../../Core/Utilities.js';
|
|
31
31
|
var addEvent = U.addEvent, merge = U.merge;
|
|
32
|
+
/* *
|
|
33
|
+
*
|
|
34
|
+
* Constants
|
|
35
|
+
*
|
|
36
|
+
* */
|
|
37
|
+
var composedMembers = [];
|
|
38
|
+
/* *
|
|
39
|
+
*
|
|
40
|
+
* Functions
|
|
41
|
+
*
|
|
42
|
+
* */
|
|
43
|
+
/**
|
|
44
|
+
* After processing and grouping the data, calculate how the heikeinashi data
|
|
45
|
+
* set should look like.
|
|
46
|
+
* @private
|
|
47
|
+
*/
|
|
48
|
+
function onAxisPostProcessData() {
|
|
49
|
+
var series = this.series;
|
|
50
|
+
series.forEach(function (series) {
|
|
51
|
+
if (series.is('heikinashi')) {
|
|
52
|
+
var heikinashiSeries = series;
|
|
53
|
+
heikinashiSeries.heikiashiData.length = 0;
|
|
54
|
+
heikinashiSeries.getHeikinashiData();
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Assign heikinashi data into the points.
|
|
60
|
+
* @private
|
|
61
|
+
* @todo move to HeikinAshiPoint class
|
|
62
|
+
*/
|
|
63
|
+
function onHeikinAshiSeriesAfterTranslate() {
|
|
64
|
+
var series = this, points = series.points, heikiashiData = series.heikiashiData, cropStart = series.cropStart || 0;
|
|
65
|
+
// Reset the proccesed data.
|
|
66
|
+
series.processedYData.length = 0;
|
|
67
|
+
// Modify points.
|
|
68
|
+
for (var i = 0; i < points.length; i++) {
|
|
69
|
+
var point = points[i], heikiashiDataPoint = heikiashiData[i + cropStart];
|
|
70
|
+
point.open = heikiashiDataPoint[0];
|
|
71
|
+
point.high = heikiashiDataPoint[1];
|
|
72
|
+
point.low = heikiashiDataPoint[2];
|
|
73
|
+
point.close = heikiashiDataPoint[3];
|
|
74
|
+
series.processedYData.push([point.open, point.high, point.low, point.close]);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Force to recalculate the heikinashi data set after updating data.
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
81
|
+
function onHeikinAshiSeriesUpdatedData() {
|
|
82
|
+
if (this.heikiashiData.length) {
|
|
83
|
+
this.heikiashiData.length = 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
32
86
|
/* *
|
|
33
87
|
*
|
|
34
88
|
* Class
|
|
@@ -64,21 +118,36 @@ var HeikinAshiSeries = /** @class */ (function (_super) {
|
|
|
64
118
|
_this.yData = void 0;
|
|
65
119
|
_this.processedYData = void 0;
|
|
66
120
|
return _this;
|
|
67
|
-
/* eslint-enable valid-jsdoc */
|
|
68
121
|
}
|
|
122
|
+
/* *
|
|
123
|
+
*
|
|
124
|
+
* Static Functions
|
|
125
|
+
*
|
|
126
|
+
* */
|
|
127
|
+
HeikinAshiSeries.compose = function (SeriesClass, AxisClass) {
|
|
128
|
+
var _args = [];
|
|
129
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
130
|
+
_args[_i - 2] = arguments[_i];
|
|
131
|
+
}
|
|
132
|
+
CandlestickSeries.compose(SeriesClass);
|
|
133
|
+
if (composedMembers.indexOf(AxisClass) === -1) {
|
|
134
|
+
composedMembers.push(AxisClass);
|
|
135
|
+
addEvent(AxisClass, 'postProcessData', onAxisPostProcessData);
|
|
136
|
+
}
|
|
137
|
+
if (composedMembers.indexOf(HeikinAshiSeries) === -1) {
|
|
138
|
+
composedMembers.push(HeikinAshiSeries);
|
|
139
|
+
addEvent(HeikinAshiSeries, 'afterTranslate', onHeikinAshiSeriesAfterTranslate);
|
|
140
|
+
addEvent(HeikinAshiSeries, 'updatedData', onHeikinAshiSeriesUpdatedData);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
69
143
|
/* *
|
|
70
144
|
*
|
|
71
145
|
* Functions
|
|
72
146
|
*
|
|
73
147
|
* */
|
|
74
|
-
/* eslint-disable valid-jsdoc */
|
|
75
148
|
/**
|
|
76
149
|
* Calculate data set for the heikinashi series before creating the points.
|
|
77
150
|
* @private
|
|
78
|
-
*
|
|
79
|
-
* @function Highcharts.seriesTypes.heikinashi#getHeikinashiData
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
151
|
*/
|
|
83
152
|
HeikinAshiSeries.prototype.getHeikinashiData = function () {
|
|
84
153
|
var series = this, processedYData = series.allGroupedData || series.yData, heikiashiData = series.heikiashiData;
|
|
@@ -98,7 +167,6 @@ var HeikinAshiSeries = /** @class */ (function (_super) {
|
|
|
98
167
|
};
|
|
99
168
|
/**
|
|
100
169
|
* @private
|
|
101
|
-
* @function Highcarts.seriesTypes.heikinashi#init
|
|
102
170
|
*/
|
|
103
171
|
HeikinAshiSeries.prototype.init = function () {
|
|
104
172
|
_super.prototype.init.apply(this, arguments);
|
|
@@ -107,13 +175,8 @@ var HeikinAshiSeries = /** @class */ (function (_super) {
|
|
|
107
175
|
/**
|
|
108
176
|
* Calculate and modify the first data point value.
|
|
109
177
|
* @private
|
|
110
|
-
*
|
|
111
|
-
* @function Highcharts.seriesTypes.heikinashi#modifyFirstPointValue
|
|
112
|
-
*
|
|
113
178
|
* @param {Array<(number)>} dataPoint
|
|
114
179
|
* Current data point.
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
180
|
*/
|
|
118
181
|
HeikinAshiSeries.prototype.modifyFirstPointValue = function (dataPoint) {
|
|
119
182
|
var open = (dataPoint[0] +
|
|
@@ -125,16 +188,10 @@ var HeikinAshiSeries = /** @class */ (function (_super) {
|
|
|
125
188
|
/**
|
|
126
189
|
* Calculate and modify the data point's value.
|
|
127
190
|
* @private
|
|
128
|
-
*
|
|
129
|
-
* @function Highcharts.seriesTypes.heikinashi#modifyDataPoint
|
|
130
|
-
*
|
|
131
191
|
* @param {Array<(number)>} dataPoint
|
|
132
192
|
* Current data point.
|
|
133
|
-
*
|
|
134
193
|
* @param {Array<(number)>} previousDataPoint
|
|
135
194
|
* Previous data point.
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
195
|
*/
|
|
139
196
|
HeikinAshiSeries.prototype.modifyDataPoint = function (dataPoint, previousDataPoint) {
|
|
140
197
|
var newOpen = (previousDataPoint[0] + previousDataPoint[3]) / 2, newClose = (dataPoint[0] +
|
|
@@ -144,59 +201,9 @@ var HeikinAshiSeries = /** @class */ (function (_super) {
|
|
|
144
201
|
// Add new points to the array in order to properly calculate extremes.
|
|
145
202
|
this.heikiashiData.push([newOpen, newHigh, newLow, newClose]);
|
|
146
203
|
};
|
|
147
|
-
|
|
148
|
-
* An HeikinAshi series is a style of financial chart used to describe price
|
|
149
|
-
* movements over time. It displays open, high, low and close values per
|
|
150
|
-
* data point.
|
|
151
|
-
*
|
|
152
|
-
* @sample stock/demo/heikinashi/
|
|
153
|
-
* Heikin Ashi series
|
|
154
|
-
*
|
|
155
|
-
* @extends plotOptions.candlestick
|
|
156
|
-
* @product highstock
|
|
157
|
-
* @requires modules/heikinashi
|
|
158
|
-
* @optionparent plotOptions.heikinashi
|
|
159
|
-
*/
|
|
160
|
-
HeikinAshiSeries.defaultOptions = merge(CandlestickSeries.defaultOptions, {
|
|
161
|
-
dataGrouping: {
|
|
162
|
-
groupAll: true
|
|
163
|
-
}
|
|
164
|
-
});
|
|
204
|
+
HeikinAshiSeries.defaultOptions = merge(CandlestickSeries.defaultOptions, HeikinAshiSeriesDefaults);
|
|
165
205
|
return HeikinAshiSeries;
|
|
166
206
|
}(CandlestickSeries));
|
|
167
|
-
// Assign haikinashi data into the points.
|
|
168
|
-
addEvent(HeikinAshiSeries, 'afterTranslate', function () {
|
|
169
|
-
var series = this, points = series.points, heikiashiData = series.heikiashiData, cropStart = series.cropStart || 0;
|
|
170
|
-
// Reset the proccesed data.
|
|
171
|
-
series.processedYData.length = 0;
|
|
172
|
-
// Modify points.
|
|
173
|
-
for (var i = 0; i < points.length; i++) {
|
|
174
|
-
var point = points[i], heikiashiDataPoint = heikiashiData[i + cropStart];
|
|
175
|
-
point.open = heikiashiDataPoint[0];
|
|
176
|
-
point.high = heikiashiDataPoint[1];
|
|
177
|
-
point.low = heikiashiDataPoint[2];
|
|
178
|
-
point.close = heikiashiDataPoint[3];
|
|
179
|
-
series.processedYData.push([point.open, point.high, point.low, point.close]);
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
// Force to recalculate the heikinashi data set after updating data.
|
|
183
|
-
addEvent(HeikinAshiSeries, 'updatedData', function () {
|
|
184
|
-
if (this.heikiashiData.length) {
|
|
185
|
-
this.heikiashiData.length = 0;
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
// After processing and grouping the data,
|
|
189
|
-
// calculate how the heikeinashi data set should look like.
|
|
190
|
-
addEvent(Axis, 'postProcessData', function () {
|
|
191
|
-
var series = this.series;
|
|
192
|
-
series.forEach(function (series) {
|
|
193
|
-
if (series.is('heikinashi')) {
|
|
194
|
-
var heikinashiSeries = series;
|
|
195
|
-
heikinashiSeries.heikiashiData.length = 0;
|
|
196
|
-
heikinashiSeries.getHeikinashiData();
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
});
|
|
200
207
|
/* *
|
|
201
208
|
*
|
|
202
209
|
* Class Prototype
|
|
@@ -210,71 +217,3 @@ SeriesRegistry.registerSeriesType('heikinashi', HeikinAshiSeries);
|
|
|
210
217
|
*
|
|
211
218
|
* */
|
|
212
219
|
export default HeikinAshiSeries;
|
|
213
|
-
/* *
|
|
214
|
-
*
|
|
215
|
-
* API Options
|
|
216
|
-
*
|
|
217
|
-
* */
|
|
218
|
-
/**
|
|
219
|
-
* A `heikinashi` series. If the [type](#series.heikinashi.type)
|
|
220
|
-
* option is not specified, it is inherited from [chart.type](
|
|
221
|
-
* #chart.type).
|
|
222
|
-
*
|
|
223
|
-
* @type {*}
|
|
224
|
-
* @extends series,plotOptions.heikinashi
|
|
225
|
-
* @excluding dataParser, dataURL, marker
|
|
226
|
-
* @product highstock
|
|
227
|
-
* @requires modules/heikinashi
|
|
228
|
-
* @apioption series.heikinashi
|
|
229
|
-
*/
|
|
230
|
-
/**
|
|
231
|
-
* An array of data points for the series. For the `heikinashi` series
|
|
232
|
-
* type, points can be given in the following ways:
|
|
233
|
-
*
|
|
234
|
-
* 1. An array of arrays with 5 or 4 values. In this case, the values correspond
|
|
235
|
-
* to `x,open,high,low,close`. If the first value is a string, it is applied
|
|
236
|
-
* as the name of the point, and the `x` value is inferred. The `x` value can
|
|
237
|
-
* also be omitted, in which case the inner arrays should be of length 4.
|
|
238
|
-
* Then the `x` value is automatically calculated, either starting at 0 and
|
|
239
|
-
* incremented by 1, or from `pointStart` and `pointInterval` given in the
|
|
240
|
-
* series options.
|
|
241
|
-
* ```js
|
|
242
|
-
* data: [
|
|
243
|
-
* [0, 7, 2, 0, 4],
|
|
244
|
-
* [1, 1, 4, 2, 8],
|
|
245
|
-
* [2, 3, 3, 9, 3]
|
|
246
|
-
* ]
|
|
247
|
-
* ```
|
|
248
|
-
*
|
|
249
|
-
* 2. An array of objects with named values. The following snippet shows only a
|
|
250
|
-
* few settings, see the complete options set below. If the total number of
|
|
251
|
-
* data points exceeds the series'
|
|
252
|
-
* [turboThreshold](#series.heikinashi.turboThreshold), this option is not
|
|
253
|
-
* available.
|
|
254
|
-
* ```js
|
|
255
|
-
* data: [{
|
|
256
|
-
* x: 1,
|
|
257
|
-
* open: 9,
|
|
258
|
-
* high: 2,
|
|
259
|
-
* low: 4,
|
|
260
|
-
* close: 6,
|
|
261
|
-
* name: "Point2",
|
|
262
|
-
* color: "#00FF00"
|
|
263
|
-
* }, {
|
|
264
|
-
* x: 1,
|
|
265
|
-
* open: 1,
|
|
266
|
-
* high: 4,
|
|
267
|
-
* low: 7,
|
|
268
|
-
* close: 7,
|
|
269
|
-
* name: "Point1",
|
|
270
|
-
* color: "#FF00FF"
|
|
271
|
-
* }]
|
|
272
|
-
* ```
|
|
273
|
-
*
|
|
274
|
-
* @type {Array<Array<(number|string),number,number,number>|Array<(number|string),number,number,number,number>|*>}
|
|
275
|
-
* @extends series.candlestick.data
|
|
276
|
-
* @excluding y
|
|
277
|
-
* @product highstock
|
|
278
|
-
* @apioption series.heikinashi.data
|
|
279
|
-
*/
|
|
280
|
-
''; // adds doclets above to transpilat
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2021 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
'use strict';
|
|
11
|
+
/* *
|
|
12
|
+
*
|
|
13
|
+
* API Options
|
|
14
|
+
*
|
|
15
|
+
* */
|
|
16
|
+
/**
|
|
17
|
+
* An HeikinAshi series is a style of financial chart used to describe price
|
|
18
|
+
* movements over time. It displays open, high, low and close values per
|
|
19
|
+
* data point.
|
|
20
|
+
*
|
|
21
|
+
* @sample stock/demo/heikinashi/
|
|
22
|
+
* Heikin Ashi series
|
|
23
|
+
*
|
|
24
|
+
* @extends plotOptions.candlestick
|
|
25
|
+
* @product highstock
|
|
26
|
+
* @requires modules/heikinashi
|
|
27
|
+
* @optionparent plotOptions.heikinashi
|
|
28
|
+
*/
|
|
29
|
+
var HeikinAshiDefaults = {
|
|
30
|
+
dataGrouping: {
|
|
31
|
+
groupAll: true
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* A `heikinashi` series. If the [type](#series.heikinashi.type)
|
|
36
|
+
* option is not specified, it is inherited from [chart.type](
|
|
37
|
+
* #chart.type).
|
|
38
|
+
*
|
|
39
|
+
* @type {*}
|
|
40
|
+
* @extends series,plotOptions.heikinashi
|
|
41
|
+
* @excluding dataParser, dataURL, marker
|
|
42
|
+
* @product highstock
|
|
43
|
+
* @requires modules/heikinashi
|
|
44
|
+
* @apioption series.heikinashi
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* An array of data points for the series. For the `heikinashi` series
|
|
48
|
+
* type, points can be given in the following ways:
|
|
49
|
+
*
|
|
50
|
+
* 1. An array of arrays with 5 or 4 values. In this case, the values correspond
|
|
51
|
+
* to `x,open,high,low,close`. If the first value is a string, it is applied
|
|
52
|
+
* as the name of the point, and the `x` value is inferred. The `x` value can
|
|
53
|
+
* also be omitted, in which case the inner arrays should be of length 4.
|
|
54
|
+
* Then the `x` value is automatically calculated, either starting at 0 and
|
|
55
|
+
* incremented by 1, or from `pointStart` and `pointInterval` given in the
|
|
56
|
+
* series options.
|
|
57
|
+
* ```js
|
|
58
|
+
* data: [
|
|
59
|
+
* [0, 7, 2, 0, 4],
|
|
60
|
+
* [1, 1, 4, 2, 8],
|
|
61
|
+
* [2, 3, 3, 9, 3]
|
|
62
|
+
* ]
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* 2. An array of objects with named values. The following snippet shows only a
|
|
66
|
+
* few settings, see the complete options set below. If the total number of
|
|
67
|
+
* data points exceeds the series'
|
|
68
|
+
* [turboThreshold](#series.heikinashi.turboThreshold), this option is not
|
|
69
|
+
* available.
|
|
70
|
+
* ```js
|
|
71
|
+
* data: [{
|
|
72
|
+
* x: 1,
|
|
73
|
+
* open: 9,
|
|
74
|
+
* high: 2,
|
|
75
|
+
* low: 4,
|
|
76
|
+
* close: 6,
|
|
77
|
+
* name: "Point2",
|
|
78
|
+
* color: "#00FF00"
|
|
79
|
+
* }, {
|
|
80
|
+
* x: 1,
|
|
81
|
+
* open: 1,
|
|
82
|
+
* high: 4,
|
|
83
|
+
* low: 7,
|
|
84
|
+
* close: 7,
|
|
85
|
+
* name: "Point1",
|
|
86
|
+
* color: "#FF00FF"
|
|
87
|
+
* }]
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @type {Array<Array<(number|string),number,number,number>|Array<(number|string),number,number,number,number>|*>}
|
|
91
|
+
* @extends series.candlestick.data
|
|
92
|
+
* @excluding y
|
|
93
|
+
* @product highstock
|
|
94
|
+
* @apioption series.heikinashi.data
|
|
95
|
+
*/
|
|
96
|
+
''; // adds doclets above to transpilat
|
|
97
|
+
/* *
|
|
98
|
+
*
|
|
99
|
+
* Default Export
|
|
100
|
+
*
|
|
101
|
+
* */
|
|
102
|
+
export default HeikinAshiDefaults;
|
|
@@ -27,7 +27,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
27
27
|
})();
|
|
28
28
|
import H from '../../Core/Globals.js';
|
|
29
29
|
import ItemPoint from './ItemPoint.js';
|
|
30
|
-
import D from '../../Core/
|
|
30
|
+
import D from '../../Core/Defaults.js';
|
|
31
31
|
var defaultOptions = D.defaultOptions;
|
|
32
32
|
import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
|
|
33
33
|
var PieSeries = SeriesRegistry.seriesTypes.pie;
|
|
@@ -114,7 +114,7 @@ var ItemSeries = /** @class */ (function (_super) {
|
|
|
114
114
|
this.points.forEach(function (point) {
|
|
115
115
|
var attr, graphics, pointAttr, pointMarkerOptions = point.marker || {}, symbol = (pointMarkerOptions.symbol ||
|
|
116
116
|
seriesMarkerOptions.symbol), r = pick(pointMarkerOptions.radius, seriesMarkerOptions.radius), size = defined(r) ? 2 * r : itemSize, padding = size * options.itemPadding, x, y, width, height;
|
|
117
|
-
point.graphics = graphics = point.graphics ||
|
|
117
|
+
point.graphics = graphics = point.graphics || [];
|
|
118
118
|
if (!series.chart.styledMode) {
|
|
119
119
|
pointAttr = series.pointAttribs(point, point.selected && 'select');
|
|
120
120
|
}
|
|
@@ -123,7 +123,7 @@ var ItemSeries = /** @class */ (function (_super) {
|
|
|
123
123
|
point.graphic = renderer.g('point')
|
|
124
124
|
.add(series.group);
|
|
125
125
|
}
|
|
126
|
-
for (var val = 0; val < point.y; val++) {
|
|
126
|
+
for (var val = 0; val < (point.y || 0); val++) {
|
|
127
127
|
// Semi-circle
|
|
128
128
|
if (series.center && series.slots) {
|
|
129
129
|
// Fill up the slots from left to right
|
|
@@ -160,21 +160,24 @@ var ItemSeries = /** @class */ (function (_super) {
|
|
|
160
160
|
graphics[val].animate(attr);
|
|
161
161
|
}
|
|
162
162
|
else {
|
|
163
|
+
if (pointAttr) {
|
|
164
|
+
extend(attr, pointAttr);
|
|
165
|
+
}
|
|
163
166
|
graphics[val] = renderer
|
|
164
|
-
.symbol(symbol,
|
|
167
|
+
.symbol(symbol, void 0, void 0, void 0, void 0, {
|
|
165
168
|
backgroundSize: 'within'
|
|
166
169
|
})
|
|
167
|
-
.attr(
|
|
170
|
+
.attr(attr)
|
|
168
171
|
.add(point.graphic);
|
|
169
172
|
}
|
|
170
173
|
graphics[val].isActive = true;
|
|
171
174
|
i++;
|
|
172
175
|
}
|
|
173
176
|
}
|
|
174
|
-
|
|
177
|
+
graphics.forEach(function (graphic, i) {
|
|
175
178
|
if (!graphic.isActive) {
|
|
176
179
|
graphic.destroy();
|
|
177
|
-
|
|
180
|
+
graphics.splice(i, 1);
|
|
178
181
|
}
|
|
179
182
|
else {
|
|
180
183
|
graphic.isActive = false;
|
|
@@ -320,7 +323,9 @@ var ItemSeries = /** @class */ (function (_super) {
|
|
|
320
323
|
};
|
|
321
324
|
ItemSeries.prototype.translate = function (_positions) {
|
|
322
325
|
// Initialize chart without setting data, #13379.
|
|
323
|
-
if (this.total === 0)
|
|
326
|
+
if (this.total === 0 && // check if that is a (semi-)circle
|
|
327
|
+
isNumber(this.options.startAngle) &&
|
|
328
|
+
isNumber(this.options.endAngle)) {
|
|
324
329
|
this.center = this.getCenter();
|
|
325
330
|
}
|
|
326
331
|
if (!this.slots) {
|
|
@@ -281,12 +281,13 @@ var LineSeries = /** @class */ (function (_super) {
|
|
|
281
281
|
}, this);
|
|
282
282
|
return props;
|
|
283
283
|
};
|
|
284
|
+
LineSeries.defaultOptions = merge(Series.defaultOptions,
|
|
284
285
|
/**
|
|
285
286
|
* General options for all series types.
|
|
286
287
|
*
|
|
287
288
|
* @optionparent plotOptions.series
|
|
288
289
|
*/
|
|
289
|
-
|
|
290
|
+
{
|
|
290
291
|
// nothing here yet
|
|
291
292
|
});
|
|
292
293
|
return LineSeries;
|
|
@@ -429,9 +430,12 @@ export default LineSeries;
|
|
|
429
430
|
/**
|
|
430
431
|
* A specific color index to use for the point, so its graphic representations
|
|
431
432
|
* are given the class name `highcharts-color-{n}`. In styled mode this will
|
|
432
|
-
* change the color of the graphic. In non-styled mode, the color
|
|
433
|
-
*
|
|
434
|
-
*
|
|
433
|
+
* change the color of the graphic. In non-styled mode, the color is set by the
|
|
434
|
+
* `fill` attribute, so the change in class name won't have a visual effect by
|
|
435
|
+
* default.
|
|
436
|
+
*
|
|
437
|
+
* @sample {highcharts} highcharts/css/colorindex/
|
|
438
|
+
* Series and point color index
|
|
435
439
|
*
|
|
436
440
|
* @type {number}
|
|
437
441
|
* @since 5.0.0
|
|
@@ -119,7 +119,11 @@ var MapPoint = /** @class */ (function (_super) {
|
|
|
119
119
|
*/
|
|
120
120
|
MapPoint.prototype.onMouseOver = function (e) {
|
|
121
121
|
U.clearTimeout(this.colorInterval);
|
|
122
|
-
if (
|
|
122
|
+
if (
|
|
123
|
+
// Valid...
|
|
124
|
+
(!this.isNull && this.visible) ||
|
|
125
|
+
// ... or interact anyway
|
|
126
|
+
this.series.options.nullInteraction) {
|
|
123
127
|
_super.prototype.onMouseOver.call(this, e);
|
|
124
128
|
}
|
|
125
129
|
else {
|
|
@@ -127,6 +131,20 @@ var MapPoint = /** @class */ (function (_super) {
|
|
|
127
131
|
this.series.onMouseOut(e);
|
|
128
132
|
}
|
|
129
133
|
};
|
|
134
|
+
MapPoint.prototype.setVisible = function (vis) {
|
|
135
|
+
var method = vis ? 'show' : 'hide';
|
|
136
|
+
this.visible = this.options.visible = !!vis;
|
|
137
|
+
// Show and hide associated elements
|
|
138
|
+
if (this.dataLabel) {
|
|
139
|
+
this.dataLabel[method]();
|
|
140
|
+
}
|
|
141
|
+
// For invisible map points, render them as null points rather than
|
|
142
|
+
// fully removing them. Makes more sense for color axes with data
|
|
143
|
+
// classes.
|
|
144
|
+
if (this.graphic) {
|
|
145
|
+
this.graphic.attr(this.series.pointAttribs(this));
|
|
146
|
+
}
|
|
147
|
+
};
|
|
130
148
|
/**
|
|
131
149
|
* Highmaps only. Zoom in on the point using the global animation.
|
|
132
150
|
*
|
|
@@ -457,6 +457,13 @@ var MapSeries = /** @class */ (function (_super) {
|
|
|
457
457
|
isNumber(seriesStrokeWidth)) {
|
|
458
458
|
pointStrokeWidth = seriesStrokeWidth / mapView.getScale();
|
|
459
459
|
}
|
|
460
|
+
// Invisible map points means that the data value is removed from the
|
|
461
|
+
// map, but not the map area shape itself. Instead it is rendered like a
|
|
462
|
+
// null point. To fully remove a map area, it should be removed from the
|
|
463
|
+
// mapData.
|
|
464
|
+
if (!point.visible) {
|
|
465
|
+
attr.fill = this.options.nullColor;
|
|
466
|
+
}
|
|
460
467
|
attr['stroke-width'] = pick(pointStrokeWidth,
|
|
461
468
|
// By default set the stroke-width on the group element and let all
|
|
462
469
|
// point graphics inherit. That way we don't have to iterate over
|
|
@@ -939,9 +946,6 @@ var MapSeries = /** @class */ (function (_super) {
|
|
|
939
946
|
* @apioption plotOptions.series.states.select.color
|
|
940
947
|
*/
|
|
941
948
|
color: "#cccccc" /* Palette.neutralColor20 */
|
|
942
|
-
},
|
|
943
|
-
inactive: {
|
|
944
|
-
opacity: 1
|
|
945
949
|
}
|
|
946
950
|
}
|
|
947
951
|
});
|
|
@@ -61,6 +61,7 @@ var MapBubbleSeries = /** @class */ (function (_super) {
|
|
|
61
61
|
_this.data = void 0;
|
|
62
62
|
_this.options = void 0;
|
|
63
63
|
_this.points = void 0;
|
|
64
|
+
_this.clearBounds = mapProto.clearBounds;
|
|
64
65
|
return _this;
|
|
65
66
|
}
|
|
66
67
|
MapBubbleSeries.prototype.searchPoint = function (e, compareX) {
|
|
@@ -244,6 +245,9 @@ var MapBubbleSeries = /** @class */ (function (_super) {
|
|
|
244
245
|
* @default 500
|
|
245
246
|
*/
|
|
246
247
|
animationLimit: 500,
|
|
248
|
+
/**
|
|
249
|
+
* @type {string|Array<string>}
|
|
250
|
+
*/
|
|
247
251
|
joinBy: 'hc-key',
|
|
248
252
|
tooltip: {
|
|
249
253
|
pointFormat: '{point.name}: {point.z}'
|
|
@@ -35,11 +35,6 @@ var isNumber = U.isNumber;
|
|
|
35
35
|
var MapPointPoint = /** @class */ (function (_super) {
|
|
36
36
|
__extends(MapPointPoint, _super);
|
|
37
37
|
function MapPointPoint() {
|
|
38
|
-
/* *
|
|
39
|
-
*
|
|
40
|
-
* Properties
|
|
41
|
-
*
|
|
42
|
-
* */
|
|
43
38
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
44
39
|
_this.options = void 0;
|
|
45
40
|
_this.series = void 0;
|
|
@@ -27,10 +27,10 @@ import H from '../../Core/Globals.js';
|
|
|
27
27
|
var noop = H.noop;
|
|
28
28
|
import MapPointPoint from './MapPointPoint.js';
|
|
29
29
|
import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
|
|
30
|
-
var
|
|
30
|
+
var _a = SeriesRegistry.seriesTypes, MapSeries = _a.map, ScatterSeries = _a.scatter;
|
|
31
31
|
import U from '../../Core/Utilities.js';
|
|
32
32
|
var extend = U.extend, fireEvent = U.fireEvent, isNumber = U.isNumber, merge = U.merge;
|
|
33
|
-
import '../../Core/
|
|
33
|
+
import '../../Core/Defaults.js';
|
|
34
34
|
import '../Scatter/ScatterSeries.js';
|
|
35
35
|
/* *
|
|
36
36
|
*
|
|
@@ -62,6 +62,7 @@ var MapPointSeries = /** @class */ (function (_super) {
|
|
|
62
62
|
_this.data = void 0;
|
|
63
63
|
_this.options = void 0;
|
|
64
64
|
_this.points = void 0;
|
|
65
|
+
_this.clearBounds = MapSeries.prototype.clearBounds;
|
|
65
66
|
return _this;
|
|
66
67
|
/* eslint-enable valid-jsdoc */
|
|
67
68
|
}
|
|
@@ -114,10 +115,15 @@ var MapPointSeries = /** @class */ (function (_super) {
|
|
|
114
115
|
}
|
|
115
116
|
// Create map based translation
|
|
116
117
|
if (mapView) {
|
|
117
|
-
var hasCoordinates_1 = mapView.projection.hasCoordinates;
|
|
118
|
+
var mainSvgTransform_1 = mapView.getSVGTransform(), hasCoordinates_1 = mapView.projection.hasCoordinates;
|
|
118
119
|
this.points.forEach(function (p) {
|
|
119
120
|
var _a = p.x, x = _a === void 0 ? void 0 : _a, _b = p.y, y = _b === void 0 ? void 0 : _b;
|
|
120
|
-
var
|
|
121
|
+
var svgTransform = (isNumber(p.insetIndex) &&
|
|
122
|
+
mapView.insets[p.insetIndex].getSVGTransform()) || mainSvgTransform_1;
|
|
123
|
+
var xy = (_this.projectPoint(p.options) ||
|
|
124
|
+
(p.properties &&
|
|
125
|
+
_this.projectPoint(p.properties)));
|
|
126
|
+
var didBounds;
|
|
121
127
|
if (xy) {
|
|
122
128
|
x = xy.x;
|
|
123
129
|
y = xy.y;
|
|
@@ -126,14 +132,23 @@ var MapPointSeries = /** @class */ (function (_super) {
|
|
|
126
132
|
else if (p.bounds) {
|
|
127
133
|
x = p.bounds.midX;
|
|
128
134
|
y = p.bounds.midY;
|
|
135
|
+
if (svgTransform && isNumber(x) && isNumber(y)) {
|
|
136
|
+
p.plotX = x * svgTransform.scaleX +
|
|
137
|
+
svgTransform.translateX;
|
|
138
|
+
p.plotY = y * svgTransform.scaleY +
|
|
139
|
+
svgTransform.translateY;
|
|
140
|
+
didBounds = true;
|
|
141
|
+
}
|
|
129
142
|
}
|
|
130
143
|
if (isNumber(x) && isNumber(y)) {
|
|
131
144
|
// Establish plotX and plotY
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
145
|
+
if (!didBounds) {
|
|
146
|
+
var plotCoords = mapView.projectedUnitsToPixels({ x: x, y: y });
|
|
147
|
+
p.plotX = plotCoords.x;
|
|
148
|
+
p.plotY = hasCoordinates_1 ?
|
|
149
|
+
plotCoords.y :
|
|
150
|
+
_this.chart.plotHeight - plotCoords.y;
|
|
151
|
+
}
|
|
137
152
|
}
|
|
138
153
|
else {
|
|
139
154
|
p.y = p.plotX = p.plotY = void 0;
|
|
@@ -137,14 +137,11 @@ var NetworkgraphSeries = /** @class */ (function (_super) {
|
|
|
137
137
|
NetworkgraphSeries.prototype.drawDataLabels = function () {
|
|
138
138
|
var textPath = this.options.dataLabels.textPath;
|
|
139
139
|
// Render node labels:
|
|
140
|
-
Series.prototype.drawDataLabels.
|
|
140
|
+
Series.prototype.drawDataLabels.call(this, this.nodes);
|
|
141
141
|
// Render link labels:
|
|
142
|
-
this.points = this.data;
|
|
143
142
|
this.options.dataLabels.textPath =
|
|
144
143
|
this.options.dataLabels.linkTextPath;
|
|
145
|
-
Series.prototype.drawDataLabels.
|
|
146
|
-
// Restore nodes
|
|
147
|
-
this.points = this.nodes;
|
|
144
|
+
Series.prototype.drawDataLabels.call(this, this.data);
|
|
148
145
|
this.options.dataLabels.textPath = textPath;
|
|
149
146
|
};
|
|
150
147
|
/**
|