highcharts 11.3.0 → 11.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bower.json +1 -1
- package/css/annotations/popup.css +27 -19
- package/css/stocktools/gui.css +19 -7
- package/es-modules/Accessibility/A11yI18n.js +4 -6
- package/es-modules/Accessibility/Accessibility.js +8 -6
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +11 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +4 -4
- package/es-modules/Accessibility/Components/MenuComponent.js +3 -6
- package/es-modules/Accessibility/Components/NavigatorComponent.js +6 -3
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +4 -7
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +18 -3
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +5 -3
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +4 -4
- package/es-modules/Accessibility/FocusBorder.js +5 -5
- package/es-modules/Accessibility/HighContrastMode.js +22 -13
- package/es-modules/Accessibility/HighContrastTheme.js +2 -6
- package/es-modules/Accessibility/KeyboardNavigation.js +17 -8
- package/es-modules/Accessibility/Options/A11yDefaults.js +11 -1
- package/es-modules/Accessibility/ProxyElement.js +4 -4
- package/es-modules/Accessibility/ProxyProvider.js +8 -2
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +8 -0
- package/es-modules/Accessibility/Utils/EventProvider.js +9 -0
- package/es-modules/Core/Animation/Fx.js +3 -3
- package/es-modules/Core/Axis/Axis.js +43 -97
- package/es-modules/Core/Axis/Axis3DComposition.js +5 -5
- package/es-modules/Core/Axis/Axis3DDefaults.js +1 -1
- package/es-modules/Core/Axis/AxisDefaults.js +18 -7
- package/es-modules/Core/Axis/BrokenAxis.js +4 -6
- package/es-modules/Core/Axis/Color/ColorAxis.js +2 -1
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -5
- package/es-modules/Core/Axis/DateTimeAxis.js +3 -5
- package/es-modules/Core/Axis/GridAxis.js +7 -7
- package/es-modules/Core/Axis/LogarithmicAxis.js +2 -4
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +26 -22
- package/es-modules/Core/Axis/OrdinalAxis.js +97 -53
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -3
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +4 -5
- package/es-modules/Core/Axis/RadialAxis.js +5 -5
- package/es-modules/Core/Axis/ScrollbarAxis.js +2 -2
- package/es-modules/Core/Axis/Stacking/StackItem.js +8 -4
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +3 -5
- package/es-modules/Core/Axis/Tick.js +16 -7
- package/es-modules/Core/Axis/Tick3DComposition.js +2 -2
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +4 -8
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +3 -6
- package/es-modules/Core/Axis/WaterfallAxis.js +3 -3
- package/es-modules/Core/Axis/ZAxis.js +6 -11
- package/es-modules/Core/Chart/Chart.js +201 -176
- package/es-modules/Core/Chart/Chart3D.js +1 -1
- package/es-modules/Core/Chart/ChartDefaults.js +7 -0
- package/es-modules/Core/Chart/GanttChart.js +2 -2
- package/es-modules/Core/Chart/MapChart.js +12 -2
- package/es-modules/Core/Chart/StockChart.js +12 -11
- package/es-modules/Core/Color/Color.js +3 -3
- package/es-modules/Core/Color/Palettes.js +2 -2
- package/es-modules/Core/Defaults.js +18 -15
- package/es-modules/Core/Geometry/CircleUtilities.js +3 -3
- package/es-modules/Core/Globals.js +2 -2
- package/es-modules/Core/HttpUtilities.js +4 -4
- package/es-modules/Core/Legend/Legend.js +6 -6
- package/es-modules/Core/MSPointer.js +7 -7
- package/es-modules/Core/Pointer.js +230 -245
- package/es-modules/Core/Renderer/HTML/AST.js +1 -1
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +213 -26
- package/es-modules/Core/Renderer/RendererUtilities.js +1 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +85 -52
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +14 -11
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +17 -14
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +8 -7
- package/es-modules/Core/Renderer/SVG/Symbols.js +1 -1
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +2 -2
- package/es-modules/Core/Responsive.js +5 -6
- package/es-modules/Core/Series/DataLabel.js +70 -90
- package/es-modules/Core/Series/DataSeriesComposition.js +1 -1
- package/es-modules/Core/Series/DataSeriesConverter.js +2 -2
- package/es-modules/Core/Series/Point.js +48 -40
- package/es-modules/Core/Series/Series.js +61 -51
- package/es-modules/Core/Series/Series3D.js +2 -2
- package/es-modules/Core/Series/SeriesRegistry.js +10 -2
- package/es-modules/Core/Templating.js +1 -1
- package/es-modules/Core/Time.js +12 -7
- package/es-modules/Core/Tooltip.js +19 -17
- package/es-modules/Core/Utilities.js +54 -26
- package/es-modules/Data/Connectors/CSVConnector.js +2 -2
- package/es-modules/Data/Connectors/DataConnector.js +4 -2
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +2 -2
- package/es-modules/Data/Connectors/HTMLTableConnector.js +2 -2
- package/es-modules/Data/Connectors/JSONConnector.js +3 -5
- package/es-modules/Data/Converters/CSVConverter.js +1 -3
- package/es-modules/Data/Converters/DataConverter.js +8 -2
- package/es-modules/Data/Converters/HTMLTableConverter.js +1 -3
- package/es-modules/Data/Converters/JSONConverter.js +1 -0
- package/es-modules/Data/DataTable.js +1 -2
- package/es-modules/Data/Formula/FormulaProcessor.js +4 -2
- package/es-modules/Data/Modifiers/DataModifier.js +15 -3
- package/es-modules/Extensions/Annotations/Annotation.js +6 -7
- package/es-modules/Extensions/Annotations/AnnotationChart.js +4 -5
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +4 -4
- package/es-modules/Extensions/Annotations/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/ControlTarget.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/Controllable.js +7 -3
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +3 -3
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +8 -9
- package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -4
- package/es-modules/Extensions/Annotations/EventEmitter.js +6 -6
- package/es-modules/Extensions/Annotations/NavigationBindings.js +29 -18
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +6 -6
- package/es-modules/Extensions/Annotations/Popup/Popup.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +10 -6
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupIndicators.js +31 -31
- package/es-modules/Extensions/Annotations/Popup/PopupTabs.js +1 -1
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +14 -11
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +1 -1
- package/es-modules/Extensions/ArrowSymbols.js +7 -13
- package/es-modules/Extensions/Boost/Boost.js +39 -7
- package/es-modules/Extensions/Boost/BoostChart.js +4 -4
- package/es-modules/Extensions/Boost/BoostSeries.js +58 -13
- package/es-modules/Extensions/Boost/WGLRenderer.js +3 -3
- package/es-modules/Extensions/Boost/WGLVertexBuffer.js +1 -1
- package/es-modules/Extensions/BoostCanvas.js +5 -4
- package/es-modules/Extensions/BorderRadius.js +5 -4
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +9 -9
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +11 -11
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +1 -1
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +8 -9
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +1 -1
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +6 -7
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/Debugger/ErrorMessages.js +2 -2
- package/es-modules/Extensions/DragPanes/AxisResizer.js +13 -16
- package/es-modules/Extensions/DragPanes/DragPanes.js +2 -4
- package/es-modules/Extensions/DraggablePoints/DragDropDefaults.js +2 -1
- package/es-modules/Extensions/DraggablePoints/DragDropUtilities.js +1 -1
- package/es-modules/Extensions/DraggablePoints/DraggableChart.js +4 -4
- package/es-modules/Extensions/DraggablePoints/DraggablePoints.js +8 -9
- package/es-modules/Extensions/Drilldown/Drilldown.js +11 -9
- package/es-modules/Extensions/Drilldown/DrilldownSeries.js +5 -6
- package/es-modules/Extensions/ExportData/ExportData.js +27 -18
- package/es-modules/Extensions/Exporting/Exporting.js +25 -20
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +1 -1
- package/es-modules/Extensions/Exporting/Fullscreen.js +5 -10
- package/es-modules/Extensions/MarkerClusters/MarkerClusterScatter.js +26 -21
- package/es-modules/Extensions/MarkerClusters/MarkerClusterSymbols.js +2 -12
- package/es-modules/Extensions/MarkerClusters/MarkerClusters.js +3 -3
- package/es-modules/Extensions/MouseWheelZoom/MouseWheelZoom.js +51 -161
- package/es-modules/Extensions/NoDataToDisplay/NoDataToDisplay.js +3 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -6
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/OverlappingDataLabels.js +21 -49
- package/es-modules/Extensions/Pane/PaneComposition.js +3 -5
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +2 -4
- package/es-modules/Extensions/ParallelCoordinates/ParallelCoordinates.js +5 -6
- package/es-modules/Extensions/ParallelCoordinates/ParallelSeries.js +1 -1
- package/es-modules/Extensions/PatternFill.js +19 -22
- package/es-modules/Extensions/PriceIndication.js +1 -1
- package/es-modules/Extensions/ScrollablePlotArea.js +218 -292
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +26 -18
- package/es-modules/Extensions/Sonification/Options.js +1 -0
- package/es-modules/Extensions/Sonification/SonificationSpeaker.js +2 -2
- package/es-modules/Extensions/Sonification/SynthPatch.js +3 -3
- package/es-modules/Extensions/StaticScale.js +3 -5
- package/es-modules/Gantt/Legacy.js +1 -1
- package/es-modules/Gantt/Pathfinder.js +2 -2
- package/es-modules/Gantt/PathfinderComposition.js +3 -5
- package/es-modules/Gantt/Tree.js +3 -3
- package/es-modules/Maps/GeoJSONComposition.js +20 -13
- package/es-modules/Maps/MapNavigation.js +2 -2
- package/es-modules/Maps/MapPointer.js +3 -19
- package/es-modules/Maps/MapSymbols.js +3 -9
- package/es-modules/Maps/MapView.js +134 -74
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +5 -4
- package/es-modules/Series/Area/AreaSeries.js +2 -4
- package/es-modules/Series/Area3D/Area3DSeries.js +1 -1
- package/es-modules/Series/AreaRange/AreaRangePoint.js +2 -2
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +2 -3
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +1 -1
- package/es-modules/Series/Bar/BarSeries.js +1 -1
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +1 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +4 -0
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +1 -1
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +2 -2
- package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
- package/es-modules/Series/Bubble/BubbleSeries.js +1 -1
- package/es-modules/Series/Bullet/BulletSeriesDefaults.js +2 -2
- package/es-modules/Series/Candlestick/CandlestickSeries.js +2 -2
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +1 -5
- package/es-modules/Series/ColorMapComposition.js +1 -1
- package/es-modules/Series/Column/ColumnDataLabel.js +2 -2
- package/es-modules/Series/Column/ColumnSeries.js +20 -22
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +1 -1
- package/es-modules/Series/Column3D/Column3DComposition.js +1 -1
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
- package/es-modules/Series/Cylinder/CylinderComposition.js +9 -9
- package/es-modules/Series/DataModifyComposition.js +5 -5
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +3 -2
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +1 -1
- package/es-modules/Series/DragNodesComposition.js +7 -7
- package/es-modules/Series/DrawPointUtilities.js +0 -2
- package/es-modules/Series/Dumbbell/DumbbellSeriesDefaults.js +1 -1
- package/es-modules/Series/Funnel/FunnelSeries.js +1 -1
- package/es-modules/Series/Funnel3D/Funnel3DComposition.js +6 -6
- package/es-modules/Series/Funnel3D/Funnel3DSeriesDefaults.js +2 -2
- package/es-modules/Series/Funnel3D/SVGElement3DFunnel.js +1 -1
- package/es-modules/Series/Gantt/GanttSeries.js +0 -1
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +5 -5
- package/es-modules/Series/GraphLayoutComposition.js +1 -1
- package/es-modules/Series/Heatmap/HeatmapSeries.js +2 -2
- package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +1 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +3 -3
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +1 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +2 -2
- package/es-modules/Series/Item/ItemSeries.js +1 -1
- package/es-modules/Series/Line/LineSeries.js +1 -1
- package/es-modules/Series/Lollipop/LollipopSeries.js +3 -1
- package/es-modules/Series/Map/MapPoint.js +5 -1
- package/es-modules/Series/Map/MapSeries.js +32 -7
- package/es-modules/Series/Map/MapSeriesDefaults.js +5 -3
- package/es-modules/Series/Networkgraph/EulerIntegration.js +5 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +4 -4
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +5 -5
- package/es-modules/Series/Networkgraph/QuadTree.js +1 -1
- package/es-modules/Series/Networkgraph/QuadTreeNode.js +1 -1
- package/es-modules/Series/Networkgraph/VerletIntegration.js +9 -9
- package/es-modules/Series/NodesComposition.js +1 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +1 -1
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +1 -1
- package/es-modules/Series/OnSeriesComposition.js +1 -1
- package/es-modules/Series/Organization/OrganizationPoint.js +1 -1
- package/es-modules/Series/Organization/OrganizationSeries.js +22 -10
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +15 -2
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +3 -5
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +6 -10
- package/es-modules/Series/Pictorial/PictorialSeries.js +2 -2
- package/es-modules/Series/Pie/PieDataLabel.js +2 -2
- package/es-modules/Series/Pie/PiePoint.js +1 -1
- package/es-modules/Series/Pie/PieSeries.js +10 -1
- package/es-modules/Series/Pie/PieSeriesDefaults.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +2 -2
- package/es-modules/Series/PolarComposition.js +22 -20
- package/es-modules/Series/Sankey/SankeyColumnComposition.js +1 -1
- package/es-modules/Series/Sankey/SankeySeries.js +8 -8
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +57 -13
- package/es-modules/Series/SeriesOnPointComposition.js +3 -3
- package/es-modules/Series/Spline/SplineSeries.js +1 -1
- package/es-modules/Series/Sunburst/SunburstPoint.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +2 -7
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +3 -3
- package/es-modules/Series/Sunburst/SunburstUtilities.js +1 -1
- package/es-modules/Series/TiledWebMap/TiledWebMapSeries.js +23 -25
- package/es-modules/Series/Tilemap/TilemapSeries.js +2 -2
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -2
- package/es-modules/Series/TreeUtilities.js +23 -1
- package/es-modules/Series/Treegraph/TreegraphLayout.js +7 -11
- package/es-modules/Series/Treegraph/TreegraphPoint.js +1 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +8 -8
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +39 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +4 -2
- package/es-modules/Series/Treemap/TreemapUtilities.js +0 -7
- package/es-modules/Series/Variwide/VariwideComposition.js +6 -2
- package/es-modules/Series/Variwide/VariwideSeries.js +1 -1
- package/es-modules/Series/Venn/VennSeries.js +4 -4
- package/es-modules/Series/Venn/VennUtils.js +5 -6
- package/es-modules/Series/Waterfall/WaterfallSeriesDefaults.js +1 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +1 -1
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -4
- package/es-modules/Series/XRange/XRangePoint.js +2 -2
- package/es-modules/Series/XRange/XRangeSeries.js +1 -1
- package/es-modules/Shared/BaseForm.js +1 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +3 -1
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +1 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +2 -2
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegressionIndicator.js +7 -7
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +9 -9
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -2
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +16 -17
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +4 -5
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +5 -5
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +188 -0
- package/es-modules/Stock/Navigator/Navigator.js +42 -27
- package/es-modules/Stock/Navigator/NavigatorComposition.js +10 -149
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +16 -2
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +334 -0
- package/es-modules/Stock/Navigator/StandaloneNavigatorDefaults.js +64 -0
- package/es-modules/Stock/RangeSelector/RangeSelector.js +28 -16
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +2 -2
- package/es-modules/Stock/Scrollbar/Scrollbar.js +10 -10
- package/es-modules/Stock/Scrollbar/ScrollbarDefaults.js +1 -3
- package/es-modules/Stock/StockTools/StockToolbar.js +6 -5
- package/es-modules/Stock/StockTools/StockTools.js +10 -13
- package/es-modules/Stock/StockTools/StockToolsBindings.js +35 -35
- package/es-modules/Stock/StockTools/StockToolsDefaults.js +2 -1
- package/es-modules/Stock/StockTools/StockToolsGui.js +7 -8
- package/es-modules/Stock/StockTools/StockToolsUtilities.js +8 -9
- package/es-modules/Stock/Utilities/StockUtilities.js +41 -0
- package/es-modules/masters/highcharts-3d.src.js +2 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +2 -1
- package/es-modules/masters/highcharts.src.js +41 -40
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +3 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +3 -1
- package/es-modules/masters/indicators/ao.src.js +3 -1
- package/es-modules/masters/indicators/apo.src.js +3 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +3 -1
- package/es-modules/masters/indicators/aroon.src.js +3 -1
- package/es-modules/masters/indicators/atr.src.js +3 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +3 -1
- package/es-modules/masters/indicators/cci.src.js +3 -1
- package/es-modules/masters/indicators/chaikin.src.js +3 -1
- package/es-modules/masters/indicators/cmf.src.js +3 -1
- package/es-modules/masters/indicators/cmo.src.js +3 -1
- package/es-modules/masters/indicators/dema.src.js +3 -1
- package/es-modules/masters/indicators/disparity-index.src.js +3 -1
- package/es-modules/masters/indicators/dmi.src.js +3 -1
- package/es-modules/masters/indicators/dpo.src.js +3 -1
- package/es-modules/masters/indicators/ema.src.js +2 -0
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +3 -1
- package/es-modules/masters/indicators/indicators-all.src.js +3 -1
- package/es-modules/masters/indicators/indicators.src.js +7 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +3 -1
- package/es-modules/masters/indicators/klinger.src.js +3 -1
- package/es-modules/masters/indicators/macd.src.js +3 -1
- package/es-modules/masters/indicators/mfi.src.js +3 -1
- package/es-modules/masters/indicators/momentum.src.js +3 -1
- package/es-modules/masters/indicators/natr.src.js +3 -1
- package/es-modules/masters/indicators/obv.src.js +3 -1
- package/es-modules/masters/indicators/pivot-points.src.js +3 -1
- package/es-modules/masters/indicators/ppo.src.js +3 -1
- package/es-modules/masters/indicators/price-channel.src.js +3 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +3 -1
- package/es-modules/masters/indicators/psar.src.js +3 -1
- package/es-modules/masters/indicators/regressions.src.js +3 -1
- package/es-modules/masters/indicators/roc.src.js +3 -1
- package/es-modules/masters/indicators/rsi.src.js +3 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +3 -1
- package/es-modules/masters/indicators/stochastic.src.js +3 -1
- package/es-modules/masters/indicators/supertrend.src.js +3 -1
- package/es-modules/masters/indicators/tema.src.js +3 -1
- package/es-modules/masters/indicators/trendline.src.js +3 -1
- package/es-modules/masters/indicators/trix.src.js +3 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +3 -1
- package/es-modules/masters/indicators/vwap.src.js +3 -1
- package/es-modules/masters/indicators/williams-r.src.js +3 -1
- package/es-modules/masters/indicators/wma.src.js +3 -1
- package/es-modules/masters/indicators/zigzag.src.js +3 -1
- package/es-modules/masters/modules/accessibility.src.js +4 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +3 -5
- package/es-modules/masters/modules/annotations.src.js +6 -3
- package/es-modules/masters/modules/arc-diagram.src.js +3 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +2 -1
- package/es-modules/masters/modules/boost-canvas.src.js +2 -1
- package/es-modules/masters/modules/boost.src.js +3 -2
- package/es-modules/masters/modules/broken-axis.src.js +4 -3
- package/es-modules/masters/modules/bullet.src.js +3 -1
- package/es-modules/masters/modules/coloraxis.src.js +4 -3
- package/es-modules/masters/modules/current-date-indicator.src.js +2 -1
- package/es-modules/masters/modules/cylinder.src.js +3 -1
- package/es-modules/masters/modules/data-tools.src.js +9 -8
- package/es-modules/masters/modules/data.src.js +9 -8
- package/es-modules/masters/modules/datagrouping.src.js +7 -5
- package/es-modules/masters/modules/debugger.src.js +3 -2
- package/es-modules/masters/modules/dependency-wheel.src.js +3 -1
- package/es-modules/masters/modules/dotplot.src.js +3 -1
- package/es-modules/masters/modules/drag-panes.src.js +2 -1
- package/es-modules/masters/modules/draggable-points.src.js +2 -1
- package/es-modules/masters/modules/drilldown.src.js +3 -2
- package/es-modules/masters/modules/dumbbell.src.js +3 -1
- package/es-modules/masters/modules/export-data.src.js +5 -4
- package/es-modules/masters/modules/exporting.src.js +6 -5
- package/es-modules/masters/modules/flowmap.src.js +3 -1
- package/es-modules/masters/modules/full-screen.src.js +4 -3
- package/es-modules/masters/modules/funnel.src.js +2 -1
- package/es-modules/masters/modules/funnel3d.src.js +4 -3
- package/es-modules/masters/modules/gantt.src.js +15 -17
- package/es-modules/masters/modules/geoheatmap.src.js +3 -1
- package/es-modules/masters/modules/grid-axis.src.js +2 -1
- package/es-modules/masters/modules/heatmap.src.js +3 -5
- package/es-modules/masters/modules/heikinashi.src.js +2 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +3 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +3 -1
- package/es-modules/masters/modules/item-series.src.js +3 -1
- package/es-modules/masters/modules/lollipop.src.js +3 -1
- package/es-modules/masters/modules/map.src.js +15 -10
- package/es-modules/masters/modules/marker-clusters.src.js +2 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +4 -2
- package/es-modules/masters/modules/navigator.src.d.ts +1 -0
- package/es-modules/masters/modules/navigator.src.js +19 -0
- package/es-modules/masters/modules/networkgraph.src.js +2 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +2 -1
- package/es-modules/masters/modules/offline-exporting.src.js +4 -3
- package/es-modules/masters/modules/organization.src.js +3 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +4 -2
- package/es-modules/masters/modules/parallel-coordinates.src.js +2 -1
- package/es-modules/masters/modules/pareto.src.js +3 -1
- package/es-modules/masters/modules/pathfinder.src.js +4 -3
- package/es-modules/masters/modules/pattern-fill.src.js +2 -1
- package/es-modules/masters/modules/pictorial.src.js +3 -1
- package/es-modules/masters/modules/price-indicator.src.js +2 -1
- package/es-modules/masters/modules/pyramid3d.src.js +3 -1
- package/es-modules/masters/modules/sankey.src.js +3 -1
- package/es-modules/masters/modules/series-label.src.js +2 -1
- package/es-modules/masters/modules/series-on-point.src.js +2 -1
- package/es-modules/masters/modules/solid-gauge.src.js +3 -1
- package/es-modules/masters/modules/sonification.src.js +2 -1
- package/es-modules/masters/modules/static-scale.src.js +2 -1
- package/es-modules/masters/modules/stock-tools.src.js +5 -3
- package/es-modules/masters/modules/stock.src.js +20 -15
- package/es-modules/masters/modules/streamgraph.src.js +3 -1
- package/es-modules/masters/modules/sunburst.src.js +4 -3
- package/es-modules/masters/modules/tiledwebmap.src.js +5 -4
- package/es-modules/masters/modules/tilemap.src.js +2 -1
- package/es-modules/masters/modules/timeline.src.js +3 -1
- package/es-modules/masters/modules/treegraph.src.js +3 -1
- package/es-modules/masters/modules/treegrid.src.js +2 -2
- package/es-modules/masters/modules/treemap.src.js +5 -4
- package/es-modules/masters/modules/variable-pie.src.js +3 -1
- package/es-modules/masters/modules/variwide.src.js +2 -1
- package/es-modules/masters/modules/vector.src.js +3 -1
- package/es-modules/masters/modules/venn.src.js +3 -1
- package/es-modules/masters/modules/windbarb.src.js +3 -1
- package/es-modules/masters/modules/wordcloud.src.js +3 -1
- package/es-modules/masters/modules/xrange.src.js +2 -1
- package/es-modules/masters/standalone-navigator.src.js +13 -0
- package/es-modules/masters/themes/avocado.src.js +2 -1
- package/es-modules/masters/themes/brand-dark.src.js +2 -1
- package/es-modules/masters/themes/brand-light.src.js +2 -1
- package/es-modules/masters/themes/dark-blue.src.js +2 -1
- package/es-modules/masters/themes/dark-green.src.js +2 -1
- package/es-modules/masters/themes/dark-unica.src.js +2 -1
- package/es-modules/masters/themes/gray.src.js +2 -1
- package/es-modules/masters/themes/grid-light.src.js +2 -1
- package/es-modules/masters/themes/grid.src.js +2 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +2 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +2 -1
- package/es-modules/masters/themes/sand-signika.src.js +2 -1
- package/es-modules/masters/themes/skies.src.js +2 -1
- package/es-modules/masters/themes/sunset.src.js +2 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -0
- package/globals.d.ts +9 -0
- package/globals.src.d.ts +9 -0
- package/highcharts-3d.js +3 -3
- package/highcharts-3d.src.js +32 -33
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +5703 -5639
- package/highcharts-more.d.ts +4 -0
- package/highcharts-more.js +3 -3
- package/highcharts-more.src.d.ts +4 -0
- package/highcharts-more.src.js +88 -87
- package/highcharts.d.ts +834 -5365
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +834 -5365
- package/highcharts.src.js +1583 -1682
- package/highmaps.js +4 -4
- package/highmaps.src.js +1837 -1835
- package/highstock.js +4 -4
- package/highstock.src.js +12488 -12510
- package/indicators/acceleration-bands.js +3 -3
- package/indicators/acceleration-bands.src.js +12 -11
- package/indicators/accumulation-distribution.js +3 -3
- package/indicators/accumulation-distribution.src.js +6 -3
- package/indicators/ao.js +3 -3
- package/indicators/ao.src.js +3 -2
- package/indicators/apo.js +3 -3
- package/indicators/apo.src.js +4 -3
- package/indicators/aroon-oscillator.js +3 -3
- package/indicators/aroon-oscillator.src.js +12 -11
- package/indicators/aroon.js +3 -3
- package/indicators/aroon.src.js +13 -12
- package/indicators/atr.js +3 -3
- package/indicators/atr.src.js +3 -2
- package/indicators/bollinger-bands.js +3 -3
- package/indicators/bollinger-bands.src.js +12 -11
- package/indicators/cci.js +3 -3
- package/indicators/cci.src.js +3 -2
- package/indicators/chaikin.js +3 -3
- package/indicators/chaikin.src.js +7 -4
- package/indicators/cmf.js +3 -3
- package/indicators/cmf.src.js +4 -3
- package/indicators/cmo.js +3 -3
- package/indicators/cmo.src.js +5 -4
- package/indicators/dema.js +3 -3
- package/indicators/dema.src.js +3 -2
- package/indicators/disparity-index.js +3 -3
- package/indicators/disparity-index.src.js +3 -2
- package/indicators/dmi.js +3 -3
- package/indicators/dmi.src.js +12 -11
- package/indicators/dpo.js +3 -3
- package/indicators/dpo.src.js +4 -3
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +2 -1
- package/indicators/ichimoku-kinko-hyo.js +3 -3
- package/indicators/ichimoku-kinko-hyo.src.js +3 -2
- package/indicators/indicators-all.js +3 -3
- package/indicators/indicators-all.src.js +63 -60
- package/indicators/indicators.js +3 -3
- package/indicators/indicators.src.js +286 -3
- package/indicators/keltner-channels.js +3 -3
- package/indicators/keltner-channels.src.js +12 -11
- package/indicators/klinger.js +3 -3
- package/indicators/klinger.src.js +13 -12
- package/indicators/macd.js +3 -3
- package/indicators/macd.src.js +3 -2
- package/indicators/mfi.js +3 -3
- package/indicators/mfi.src.js +3 -2
- package/indicators/momentum.js +3 -3
- package/indicators/momentum.src.js +3 -2
- package/indicators/natr.js +3 -3
- package/indicators/natr.src.js +3 -2
- package/indicators/obv.js +3 -3
- package/indicators/obv.src.js +4 -3
- package/indicators/pivot-points.js +3 -3
- package/indicators/pivot-points.src.js +5 -4
- package/indicators/ppo.js +3 -3
- package/indicators/ppo.src.js +4 -3
- package/indicators/price-channel.js +3 -3
- package/indicators/price-channel.src.js +12 -11
- package/indicators/price-envelopes.js +3 -3
- package/indicators/price-envelopes.src.js +12 -11
- package/indicators/psar.js +3 -3
- package/indicators/psar.src.js +3 -2
- package/indicators/regressions.js +3 -3
- package/indicators/regressions.src.js +10 -9
- package/indicators/roc.js +3 -3
- package/indicators/roc.src.js +3 -2
- package/indicators/rsi.js +3 -3
- package/indicators/rsi.src.js +3 -2
- package/indicators/slow-stochastic.js +3 -3
- package/indicators/slow-stochastic.src.js +3 -2
- package/indicators/stochastic.js +3 -3
- package/indicators/stochastic.src.js +12 -11
- package/indicators/supertrend.js +3 -3
- package/indicators/supertrend.src.js +20 -19
- package/indicators/tema.js +3 -3
- package/indicators/tema.src.js +3 -2
- package/indicators/trendline.js +3 -3
- package/indicators/trendline.src.js +3 -2
- package/indicators/trix.js +3 -3
- package/indicators/trix.src.js +3 -2
- package/indicators/volume-by-price.js +3 -3
- package/indicators/volume-by-price.src.js +8 -7
- package/indicators/vwap.js +3 -3
- package/indicators/vwap.src.js +3 -2
- package/indicators/williams-r.js +3 -3
- package/indicators/williams-r.src.js +4 -3
- package/indicators/wma.js +3 -3
- package/indicators/wma.src.js +3 -2
- package/indicators/zigzag.js +3 -3
- package/indicators/zigzag.src.js +8 -7
- package/lib/svg2pdf.js +7 -7
- package/lib/svg2pdf.src.js +185 -150
- package/modules/accessibility.js +3 -3
- package/modules/accessibility.src.js +664 -2793
- package/modules/annotations-advanced.d.ts +3 -0
- package/modules/annotations-advanced.js +3 -3
- package/modules/annotations-advanced.src.d.ts +3 -0
- package/modules/annotations-advanced.src.js +2949 -2920
- package/modules/annotations.d.ts +0 -3
- package/modules/annotations.js +3 -3
- package/modules/annotations.src.d.ts +0 -3
- package/modules/annotations.src.js +2926 -2905
- package/modules/arc-diagram.js +3 -3
- package/modules/arc-diagram.src.js +8 -6
- package/modules/arrow-symbols.js +3 -3
- package/modules/arrow-symbols.src.js +10 -13
- package/modules/boost-canvas.js +3 -3
- package/modules/boost-canvas.src.js +73 -26
- package/modules/boost.js +3 -3
- package/modules/boost.src.js +108 -30
- package/modules/broken-axis.js +3 -3
- package/modules/broken-axis.src.js +9 -9
- package/modules/bullet.js +3 -3
- package/modules/bullet.src.js +5 -4
- package/modules/coloraxis.js +3 -3
- package/modules/coloraxis.src.js +10 -9
- package/modules/current-date-indicator.js +3 -3
- package/modules/current-date-indicator.src.js +3 -2
- package/modules/cylinder.js +3 -3
- package/modules/cylinder.src.js +12 -11
- package/modules/data-tools.js +3 -3
- package/modules/data-tools.src.js +53 -36
- package/modules/data.d.ts +2 -2
- package/modules/data.js +3 -3
- package/modules/data.src.d.ts +2 -2
- package/modules/data.src.js +24 -23
- package/modules/datagrouping.js +3 -3
- package/modules/datagrouping.src.js +25 -23
- package/modules/debugger.js +3 -3
- package/modules/debugger.src.js +6 -5
- package/modules/dependency-wheel.js +3 -3
- package/modules/dependency-wheel.src.js +7 -5
- package/modules/dotplot.js +3 -3
- package/modules/dotplot.src.js +3 -2
- package/modules/drag-panes.js +3 -3
- package/modules/drag-panes.src.js +19 -21
- package/modules/draggable-points.js +3 -3
- package/modules/draggable-points.src.js +18 -16
- package/modules/drilldown.js +3 -3
- package/modules/drilldown.src.js +29 -26
- package/modules/dumbbell.js +3 -3
- package/modules/dumbbell.src.js +5 -4
- package/modules/export-data.js +3 -3
- package/modules/export-data.src.js +33 -22
- package/modules/exporting.d.ts +1 -1
- package/modules/exporting.js +3 -3
- package/modules/exporting.src.d.ts +1 -1
- package/modules/exporting.src.js +40 -39
- package/modules/flowmap.js +3 -3
- package/modules/flowmap.src.js +3 -2
- package/modules/full-screen.js +3 -3
- package/modules/full-screen.src.js +9 -13
- package/modules/funnel.js +3 -3
- package/modules/funnel.src.js +3 -2
- package/modules/funnel3d.js +3 -3
- package/modules/funnel3d.src.js +12 -12
- package/modules/gantt.d.ts +3 -4
- package/modules/gantt.js +3 -3
- package/modules/gantt.src.d.ts +3 -4
- package/modules/gantt.src.js +4165 -4002
- package/modules/geoheatmap.js +3 -3
- package/modules/geoheatmap.src.js +8 -7
- package/modules/grid-axis.js +3 -3
- package/modules/grid-axis.src.js +9 -8
- package/modules/heatmap.d.ts +2 -2
- package/modules/heatmap.js +3 -3
- package/modules/heatmap.src.d.ts +2 -2
- package/modules/heatmap.src.js +21 -15
- package/modules/heikinashi.js +3 -3
- package/modules/heikinashi.src.js +9 -6
- package/modules/histogram-bellcurve.js +3 -3
- package/modules/histogram-bellcurve.src.js +4 -3
- package/modules/hollowcandlestick.js +3 -3
- package/modules/hollowcandlestick.src.js +5 -4
- package/modules/item-series.js +3 -3
- package/modules/item-series.src.js +4 -3
- package/modules/lollipop.js +3 -3
- package/modules/lollipop.src.js +6 -3
- package/modules/map.d.ts +22 -1
- package/modules/map.js +3 -3
- package/modules/map.src.d.ts +22 -1
- package/modules/map.src.js +256 -155
- package/modules/marker-clusters.js +3 -3
- package/modules/marker-clusters.src.js +35 -37
- package/modules/mouse-wheel-zoom.js +3 -3
- package/modules/mouse-wheel-zoom.src.js +55 -163
- package/modules/navigator.d.ts +148 -0
- package/modules/navigator.js +9 -0
- package/modules/navigator.src.d.ts +148 -0
- package/modules/navigator.src.js +3921 -0
- package/modules/networkgraph.d.ts +2 -2
- package/modules/networkgraph.js +3 -3
- package/modules/networkgraph.src.d.ts +2 -2
- package/modules/networkgraph.src.js +36 -35
- package/modules/no-data-to-display.js +3 -3
- package/modules/no-data-to-display.src.js +6 -6
- package/modules/offline-exporting.js +3 -3
- package/modules/offline-exporting.src.js +10 -10
- package/modules/organization.js +3 -3
- package/modules/organization.src.js +41 -15
- package/modules/overlapping-datalabels.js +3 -3
- package/modules/overlapping-datalabels.src.js +4 -2
- package/modules/parallel-coordinates.js +3 -3
- package/modules/parallel-coordinates.src.js +12 -12
- package/modules/pareto.js +3 -3
- package/modules/pareto.src.js +3 -2
- package/modules/pathfinder.js +3 -3
- package/modules/pathfinder.src.js +18 -22
- package/modules/pattern-fill.js +3 -3
- package/modules/pattern-fill.src.js +22 -23
- package/modules/pictorial.js +3 -3
- package/modules/pictorial.src.js +25 -26
- package/modules/price-indicator.js +3 -3
- package/modules/price-indicator.src.js +3 -2
- package/modules/pyramid3d.js +3 -3
- package/modules/pyramid3d.src.js +3 -2
- package/modules/sankey.js +3 -3
- package/modules/sankey.src.js +93 -26
- package/modules/series-label.js +3 -3
- package/modules/series-label.src.js +28 -19
- package/modules/series-on-point.js +3 -3
- package/modules/series-on-point.src.js +5 -4
- package/modules/solid-gauge.js +3 -3
- package/modules/solid-gauge.src.js +3 -2
- package/modules/sonification.d.ts +2 -2
- package/modules/sonification.js +3 -3
- package/modules/sonification.src.d.ts +2 -2
- package/modules/sonification.src.js +8 -6
- package/modules/static-scale.js +3 -3
- package/modules/static-scale.src.js +6 -6
- package/modules/stock-tools.js +3 -3
- package/modules/stock-tools.src.js +109 -96
- package/modules/stock.d.ts +1 -1
- package/modules/stock.js +3 -3
- package/modules/stock.src.d.ts +1 -1
- package/modules/stock.src.js +10762 -10685
- package/modules/streamgraph.js +3 -3
- package/modules/streamgraph.src.js +3 -2
- package/modules/sunburst.js +3 -3
- package/modules/sunburst.src.js +50 -37
- package/modules/tiledwebmap.js +4 -4
- package/modules/tiledwebmap.src.js +28 -29
- package/modules/tilemap.js +3 -3
- package/modules/tilemap.src.js +4 -3
- package/modules/timeline.js +3 -3
- package/modules/timeline.src.js +5 -4
- package/modules/treegraph.js +3 -3
- package/modules/treegraph.src.js +58 -23
- package/modules/treegrid.js +3 -3
- package/modules/treegrid.src.js +49 -33
- package/modules/treemap.js +3 -3
- package/modules/treemap.src.js +44 -26
- package/modules/variable-pie.js +3 -3
- package/modules/variable-pie.src.js +3 -2
- package/modules/variwide.js +3 -3
- package/modules/variwide.src.js +9 -4
- package/modules/vector.js +3 -3
- package/modules/vector.src.js +3 -2
- package/modules/venn.js +3 -3
- package/modules/venn.src.js +16 -17
- package/modules/windbarb.js +3 -3
- package/modules/windbarb.src.js +5 -4
- package/modules/wordcloud.js +3 -3
- package/modules/wordcloud.src.js +10 -8
- package/modules/xrange.js +3 -3
- package/modules/xrange.src.js +5 -4
- package/package.json +1 -1
- package/standalone-navigator.js +2 -0
- package/standalone-navigator.src.js +49402 -0
- package/themes/avocado.js +3 -3
- package/themes/avocado.src.js +2 -1
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.src.js +2 -1
- package/themes/brand-light.js +3 -3
- package/themes/brand-light.src.js +2 -1
- package/themes/dark-blue.js +3 -3
- package/themes/dark-blue.src.js +2 -1
- package/themes/dark-green.js +3 -3
- package/themes/dark-green.src.js +2 -1
- package/themes/dark-unica.js +3 -3
- package/themes/dark-unica.src.js +2 -1
- package/themes/gray.js +3 -3
- package/themes/gray.src.js +2 -1
- package/themes/grid-light.js +3 -3
- package/themes/grid-light.src.js +2 -1
- package/themes/grid.js +3 -3
- package/themes/grid.src.js +2 -1
- package/themes/high-contrast-dark.js +3 -3
- package/themes/high-contrast-dark.src.js +2 -1
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.src.js +2 -1
- package/themes/sand-signika.js +3 -3
- package/themes/sand-signika.src.js +2 -1
- package/themes/skies.js +3 -3
- package/themes/skies.src.js +2 -1
- package/themes/sunset.js +3 -3
- package/themes/sunset.src.js +2 -1
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +0 -259
- package/lib/canvg.js +0 -8
|
@@ -41,7 +41,7 @@ class Tooltip {
|
|
|
41
41
|
* Constructors
|
|
42
42
|
*
|
|
43
43
|
* */
|
|
44
|
-
constructor(chart, options) {
|
|
44
|
+
constructor(chart, options, pointer) {
|
|
45
45
|
/* *
|
|
46
46
|
*
|
|
47
47
|
* Properties
|
|
@@ -57,6 +57,7 @@ class Tooltip {
|
|
|
57
57
|
this.outside = false;
|
|
58
58
|
this.chart = chart;
|
|
59
59
|
this.init(chart, options);
|
|
60
|
+
this.pointer = pointer;
|
|
60
61
|
}
|
|
61
62
|
/* *
|
|
62
63
|
*
|
|
@@ -155,7 +156,7 @@ class Tooltip {
|
|
|
155
156
|
* @function Highcharts.Tooltip#getAnchor
|
|
156
157
|
*/
|
|
157
158
|
getAnchor(points, mouseEvent) {
|
|
158
|
-
const
|
|
159
|
+
const { chart, pointer } = this, inverted = chart.inverted, plotTop = chart.plotTop, plotLeft = chart.plotLeft;
|
|
159
160
|
let ret;
|
|
160
161
|
points = splat(points);
|
|
161
162
|
// If reversedStacks are false the tooltip position should be taken from
|
|
@@ -339,7 +340,7 @@ class Tooltip {
|
|
|
339
340
|
const { body, documentElement } = doc, { chart, distance, outside } = this;
|
|
340
341
|
return {
|
|
341
342
|
width: outside ?
|
|
342
|
-
//
|
|
343
|
+
// Subtract distance to prevent scrollbars
|
|
343
344
|
Math.max(body.scrollWidth, documentElement.scrollWidth, body.offsetWidth, documentElement.offsetWidth, documentElement.clientWidth) - 2 * distance :
|
|
344
345
|
chart.chartWidth,
|
|
345
346
|
height: outside ?
|
|
@@ -366,10 +367,10 @@ class Tooltip {
|
|
|
366
367
|
* Recommended position of the tooltip.
|
|
367
368
|
*/
|
|
368
369
|
getPosition(boxWidth, boxHeight, point) {
|
|
369
|
-
const { distance, chart, outside } = this, { inverted, plotLeft, plotTop, polar } = chart, { plotX = 0, plotY = 0 } = point, ret = {},
|
|
370
|
+
const { distance, chart, outside, pointer } = this, { inverted, plotLeft, plotTop, polar } = chart, { plotX = 0, plotY = 0 } = point, ret = {},
|
|
370
371
|
// Don't use h if chart isn't inverted (#7242) ???
|
|
371
372
|
h = (inverted && point.h) || 0, // #4117 ???
|
|
372
|
-
{ height: outerHeight, width: outerWidth } = this.getPlayingField(), chartPosition =
|
|
373
|
+
{ height: outerHeight, width: outerWidth } = this.getPlayingField(), chartPosition = pointer.getChartPosition(), scaleX = (val) => (val * chartPosition.scaleX), scaleY = (val) => (val * chartPosition.scaleY),
|
|
373
374
|
// Build parameter arrays for firstDimension()/secondDimension()
|
|
374
375
|
buildDimensionArray = (dim) => {
|
|
375
376
|
const isX = dim === 'x';
|
|
@@ -624,7 +625,7 @@ class Tooltip {
|
|
|
624
625
|
shouldStickOnContact(pointerEvent) {
|
|
625
626
|
return !!(!this.followPointer &&
|
|
626
627
|
this.options.stickOnContact &&
|
|
627
|
-
(!pointerEvent || this.
|
|
628
|
+
(!pointerEvent || this.pointer.inClass(pointerEvent.target, 'highcharts-tooltip')));
|
|
628
629
|
}
|
|
629
630
|
/**
|
|
630
631
|
* Moves the tooltip with a soft animation to a new position.
|
|
@@ -687,7 +688,7 @@ class Tooltip {
|
|
|
687
688
|
* used for the tooltip update.
|
|
688
689
|
*/
|
|
689
690
|
refresh(pointOrPoints, mouseEvent) {
|
|
690
|
-
const tooltip = this,
|
|
691
|
+
const tooltip = this, { chart, options, pointer, shared } = this, points = splat(pointOrPoints), point = points[0], pointConfig = [], formatString = options.format, formatter = options.formatter || tooltip.defaultFormatter, styledMode = chart.styledMode;
|
|
691
692
|
let formatterContext = {};
|
|
692
693
|
if (!options.enabled || !point.series) { // #16820
|
|
693
694
|
return;
|
|
@@ -704,7 +705,7 @@ class Tooltip {
|
|
|
704
705
|
// shared tooltip, array is sent over
|
|
705
706
|
if (shared && tooltip.allowShared) {
|
|
706
707
|
pointer.applyInactiveState(points);
|
|
707
|
-
// Now set hover state for the
|
|
708
|
+
// Now set hover state for the chosen ones:
|
|
708
709
|
points.forEach(function (item) {
|
|
709
710
|
item.setState('hover');
|
|
710
711
|
pointConfig.push(item.getLabelConfig());
|
|
@@ -807,7 +808,8 @@ class Tooltip {
|
|
|
807
808
|
*/
|
|
808
809
|
renderSplit(labels, points) {
|
|
809
810
|
const tooltip = this;
|
|
810
|
-
const { chart, chart: { chartWidth, chartHeight, plotHeight, plotLeft, plotTop,
|
|
811
|
+
const { chart, chart: { chartWidth, chartHeight, plotHeight, plotLeft, plotTop, scrollablePixelsY = 0, scrollablePixelsX, styledMode }, distance, options, options: { positioner }, pointer } = tooltip;
|
|
812
|
+
const { scrollLeft = 0, scrollTop = 0 } = chart.scrollablePlotArea?.scrollingContainer || {};
|
|
811
813
|
// The area which the tooltip should be limited to. Limit to scrollable
|
|
812
814
|
// plot area if enabled, otherwise limit to the chart container. If
|
|
813
815
|
// outside is true it should be the whole viewport
|
|
@@ -956,7 +958,7 @@ class Tooltip {
|
|
|
956
958
|
series: {}
|
|
957
959
|
});
|
|
958
960
|
const isHeader = point.isHeader;
|
|
959
|
-
// Store the tooltip label
|
|
961
|
+
// Store the tooltip label reference on the series
|
|
960
962
|
const owner = isHeader ? tooltip : point.series;
|
|
961
963
|
const tt = owner.tt = updatePartialTooltip(owner.tt, point, str.toString());
|
|
962
964
|
// Get X position now, so we can move all to the other side in
|
|
@@ -999,7 +1001,7 @@ class Tooltip {
|
|
|
999
1001
|
return boxes;
|
|
1000
1002
|
}, []);
|
|
1001
1003
|
// Realign the tooltips towards the right if there is not enough space
|
|
1002
|
-
// to the left and there is space to
|
|
1004
|
+
// to the left and there is space to the right
|
|
1003
1005
|
if (!positioner && boxes.some((box) => {
|
|
1004
1006
|
// Always realign if the beginning of a label is outside bounds
|
|
1005
1007
|
const { outside } = tooltip;
|
|
@@ -1074,7 +1076,7 @@ class Tooltip {
|
|
|
1074
1076
|
// Put the label in place
|
|
1075
1077
|
box.tt.attr(attributes);
|
|
1076
1078
|
});
|
|
1077
|
-
/* If we have a
|
|
1079
|
+
/* If we have a separate tooltip container, then update the necessary
|
|
1078
1080
|
* container properties.
|
|
1079
1081
|
* Test that tooltip has its own container and renderer before executing
|
|
1080
1082
|
* the operation.
|
|
@@ -1093,7 +1095,7 @@ class Tooltip {
|
|
|
1093
1095
|
// can remove this.
|
|
1094
1096
|
if (isSafari) {
|
|
1095
1097
|
tooltipLabel.attr({
|
|
1096
|
-
// Force a redraw of the whole group by
|
|
1098
|
+
// Force a redraw of the whole group by chaining the opacity
|
|
1097
1099
|
// slightly
|
|
1098
1100
|
opacity: tooltipLabel.opacity === 1 ? 0.999 : 1
|
|
1099
1101
|
});
|
|
@@ -1223,7 +1225,7 @@ class Tooltip {
|
|
|
1223
1225
|
* @param {Highcharts.Point} point
|
|
1224
1226
|
*/
|
|
1225
1227
|
updatePosition(point) {
|
|
1226
|
-
const { chart, container, distance, options, renderer } = this, { height = 0, width = 0 } = this.getLabel(),
|
|
1228
|
+
const { chart, container, distance, options, pointer, renderer } = this, { height = 0, width = 0 } = this.getLabel(),
|
|
1227
1229
|
// Needed for outside: true (#11688)
|
|
1228
1230
|
{ left, top, scaleX, scaleY } = pointer.getChartPosition(), pos = (options.positioner || this.getPosition).call(this, width, height, point);
|
|
1229
1231
|
let anchorX = (point.plotX || 0) + chart.plotLeft, anchorY = (point.plotY || 0) + chart.plotTop, pad;
|
|
@@ -1276,7 +1278,7 @@ class Tooltip {
|
|
|
1276
1278
|
* @private
|
|
1277
1279
|
*/
|
|
1278
1280
|
function compose(PointerClass) {
|
|
1279
|
-
if (pushUnique(composed,
|
|
1281
|
+
if (pushUnique(composed, 'Core.Tooltip')) {
|
|
1280
1282
|
addEvent(PointerClass, 'afterInit', function () {
|
|
1281
1283
|
const chart = this.chart;
|
|
1282
1284
|
if (chart.options.tooltip) {
|
|
@@ -1286,7 +1288,7 @@ class Tooltip {
|
|
|
1286
1288
|
* @name Highcharts.Chart#tooltip
|
|
1287
1289
|
* @type {Highcharts.Tooltip}
|
|
1288
1290
|
*/
|
|
1289
|
-
chart.tooltip = new Tooltip(chart, chart.options.tooltip);
|
|
1291
|
+
chart.tooltip = new Tooltip(chart, chart.options.tooltip, this);
|
|
1290
1292
|
}
|
|
1291
1293
|
});
|
|
1292
1294
|
}
|
|
@@ -1307,7 +1309,7 @@ export default Tooltip;
|
|
|
1307
1309
|
/**
|
|
1308
1310
|
* Callback function to format the text of the tooltip from scratch.
|
|
1309
1311
|
*
|
|
1310
|
-
* In case of single or shared tooltips, a string should be
|
|
1312
|
+
* In case of single or shared tooltips, a string should be returned. In case
|
|
1311
1313
|
* of splitted tooltips, it should return an array where the first item is the
|
|
1312
1314
|
* header, and subsequent items are mapped to the points. Return `false` to
|
|
1313
1315
|
* disable tooltip for a specific point on series.
|
|
@@ -234,7 +234,9 @@ function diffObjects(newer, older, keepOlder, collectionsWithUpdate) {
|
|
|
234
234
|
else if (newer[key] !== older[key] ||
|
|
235
235
|
// If the newer key is explicitly undefined, keep it (#10525)
|
|
236
236
|
(key in newer && !(key in older))) {
|
|
237
|
-
|
|
237
|
+
if (key !== '__proto__' && key !== 'constructor') {
|
|
238
|
+
ret[key] = keeper[key];
|
|
239
|
+
}
|
|
238
240
|
}
|
|
239
241
|
});
|
|
240
242
|
}
|
|
@@ -613,11 +615,6 @@ function pick() {
|
|
|
613
615
|
* @return {void}
|
|
614
616
|
*/
|
|
615
617
|
function css(el, styles) {
|
|
616
|
-
if (H.isMS && !H.svg) { // #2686
|
|
617
|
-
if (styles && defined(styles.opacity)) {
|
|
618
|
-
styles.filter = `alpha(opacity=${styles.opacity * 100})`;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
618
|
extend(el.style, styles);
|
|
622
619
|
}
|
|
623
620
|
/**
|
|
@@ -729,6 +726,32 @@ function relativeLength(value, base, offset) {
|
|
|
729
726
|
(base * parseFloat(value) / 100) + (offset || 0) :
|
|
730
727
|
parseFloat(value);
|
|
731
728
|
}
|
|
729
|
+
/**
|
|
730
|
+
* Replaces text in a string with a given replacement in a loop to catch nested
|
|
731
|
+
* matches after previous replacements.
|
|
732
|
+
*
|
|
733
|
+
* @function Highcharts.replaceNested
|
|
734
|
+
*
|
|
735
|
+
* @param {string} text
|
|
736
|
+
* Text to search and modify.
|
|
737
|
+
*
|
|
738
|
+
* @param {...Array<(RegExp|string)>} replacements
|
|
739
|
+
* One or multiple tuples with search pattern (`[0]: (string|RegExp)`) and
|
|
740
|
+
* replacement (`[1]: string`) for matching text.
|
|
741
|
+
*
|
|
742
|
+
* @return {string}
|
|
743
|
+
* Text with replacements.
|
|
744
|
+
*/
|
|
745
|
+
function replaceNested(text, ...replacements) {
|
|
746
|
+
let previous, replacement;
|
|
747
|
+
do {
|
|
748
|
+
previous = text;
|
|
749
|
+
for (replacement of replacements) {
|
|
750
|
+
text = text.replace(replacement[0], replacement[1]);
|
|
751
|
+
}
|
|
752
|
+
} while (text !== previous);
|
|
753
|
+
return text;
|
|
754
|
+
}
|
|
732
755
|
/**
|
|
733
756
|
* Wrap a method with extended functionality, preserving the original function.
|
|
734
757
|
*
|
|
@@ -931,15 +954,17 @@ function arrayMax(data) {
|
|
|
931
954
|
* @param {*} [except]
|
|
932
955
|
* Exception, do not destroy this property, only delete it.
|
|
933
956
|
*/
|
|
934
|
-
function destroyObjectProperties(obj, except) {
|
|
957
|
+
function destroyObjectProperties(obj, except, destructablesOnly) {
|
|
935
958
|
objectEach(obj, function (val, n) {
|
|
936
959
|
// If the object is non-null and destroy is defined
|
|
937
|
-
if (val
|
|
960
|
+
if (val !== except && val?.destroy) {
|
|
938
961
|
// Invoke the destroy
|
|
939
962
|
val.destroy();
|
|
940
963
|
}
|
|
941
|
-
// Delete the property from the object
|
|
942
|
-
|
|
964
|
+
// Delete the property from the object
|
|
965
|
+
if (val?.destroy || !destructablesOnly) {
|
|
966
|
+
delete obj[n];
|
|
967
|
+
}
|
|
943
968
|
});
|
|
944
969
|
}
|
|
945
970
|
/**
|
|
@@ -1337,7 +1362,7 @@ function objectEach(obj, fn, ctx) {
|
|
|
1337
1362
|
* The array to test
|
|
1338
1363
|
*
|
|
1339
1364
|
* @param {Function} fn
|
|
1340
|
-
* The function to run on each item. Return
|
|
1365
|
+
* The function to run on each item. Return truthy to pass the test.
|
|
1341
1366
|
* Receives arguments `currentValue`, `index` and `array`.
|
|
1342
1367
|
*
|
|
1343
1368
|
* @param {*} ctx
|
|
@@ -1363,18 +1388,21 @@ objectEach({
|
|
|
1363
1388
|
*
|
|
1364
1389
|
* @function Highcharts.addEvent<T>
|
|
1365
1390
|
*
|
|
1366
|
-
* @param
|
|
1367
|
-
*
|
|
1368
|
-
*
|
|
1391
|
+
* @param {Highcharts.Class<T>|T} el
|
|
1392
|
+
* The element or object to add a listener to. It can be a
|
|
1393
|
+
* {@link HTMLDOMElement}, an {@link SVGElement} or any other object.
|
|
1369
1394
|
*
|
|
1370
|
-
* @param
|
|
1371
|
-
*
|
|
1395
|
+
* @param {string} type
|
|
1396
|
+
* The event type.
|
|
1397
|
+
*
|
|
1398
|
+
* @param {Highcharts.EventCallbackFunction<T>|Function} fn
|
|
1399
|
+
* The function callback to execute when the event is fired.
|
|
1372
1400
|
*
|
|
1373
|
-
* @param
|
|
1374
|
-
*
|
|
1401
|
+
* @param {Highcharts.EventOptionsObject} [options]
|
|
1402
|
+
* Options for adding the event.
|
|
1375
1403
|
*
|
|
1376
|
-
* @
|
|
1377
|
-
*
|
|
1404
|
+
* @sample highcharts/members/addevent
|
|
1405
|
+
* Use a general `render` event to draw shapes on a chart
|
|
1378
1406
|
*
|
|
1379
1407
|
* @return {Function}
|
|
1380
1408
|
* A callback function to remove the added event.
|
|
@@ -1525,14 +1553,13 @@ function removeEvent(el, type, fn) {
|
|
|
1525
1553
|
*/
|
|
1526
1554
|
function fireEvent(el, type, eventArguments, defaultFunction) {
|
|
1527
1555
|
/* eslint-enable valid-jsdoc */
|
|
1528
|
-
let e, i;
|
|
1529
1556
|
eventArguments = eventArguments || {};
|
|
1530
1557
|
if (doc.createEvent &&
|
|
1531
1558
|
(el.dispatchEvent ||
|
|
1532
1559
|
(el.fireEvent &&
|
|
1533
1560
|
// Enable firing events on Highcharts instance.
|
|
1534
1561
|
el !== H))) {
|
|
1535
|
-
e = doc.createEvent('Events');
|
|
1562
|
+
const e = doc.createEvent('Events');
|
|
1536
1563
|
e.initEvent(type, true, true);
|
|
1537
1564
|
eventArguments = extend(e, eventArguments);
|
|
1538
1565
|
if (el.dispatchEvent) {
|
|
@@ -1675,7 +1702,7 @@ if (win.jQuery) {
|
|
|
1675
1702
|
* The chart options structure.
|
|
1676
1703
|
*
|
|
1677
1704
|
* @param {Highcharts.ChartCallbackFunction} [callback]
|
|
1678
|
-
* Function to run when the chart has loaded and
|
|
1705
|
+
* Function to run when the chart has loaded and all external
|
|
1679
1706
|
* images are loaded. Defining a
|
|
1680
1707
|
* [chart.events.load](https://api.highcharts.com/highcharts/chart.events.load)
|
|
1681
1708
|
* handler is equivalent.
|
|
@@ -1749,6 +1776,7 @@ const Utilities = {
|
|
|
1749
1776
|
pushUnique,
|
|
1750
1777
|
relativeLength,
|
|
1751
1778
|
removeEvent,
|
|
1779
|
+
replaceNested,
|
|
1752
1780
|
splat,
|
|
1753
1781
|
stableSort,
|
|
1754
1782
|
syncTimeout,
|
|
@@ -1770,7 +1798,7 @@ export default Utilities;
|
|
|
1770
1798
|
*
|
|
1771
1799
|
* @interface Highcharts.AnimationOptionsObject
|
|
1772
1800
|
*/ /**
|
|
1773
|
-
* A callback function to
|
|
1801
|
+
* A callback function to execute when the animation finishes.
|
|
1774
1802
|
* @name Highcharts.AnimationOptionsObject#complete
|
|
1775
1803
|
* @type {Function|undefined}
|
|
1776
1804
|
*/ /**
|
|
@@ -1808,7 +1836,7 @@ export default Utilities;
|
|
|
1808
1836
|
* @interface Highcharts.Class<T>
|
|
1809
1837
|
* @extends Function
|
|
1810
1838
|
*/ /**
|
|
1811
|
-
* Class
|
|
1839
|
+
* Class constructor.
|
|
1812
1840
|
* @function Highcharts.Class<T>#new
|
|
1813
1841
|
* @param {...Array<*>} args
|
|
1814
1842
|
* Constructor arguments.
|
|
@@ -1978,7 +2006,7 @@ export default Utilities;
|
|
|
1978
2006
|
* @type boolean
|
|
1979
2007
|
*/
|
|
1980
2008
|
/**
|
|
1981
|
-
* Formats data as a string. Usually the data is accessible
|
|
2009
|
+
* Formats data as a string. Usually the data is accessible through the `this`
|
|
1982
2010
|
* keyword.
|
|
1983
2011
|
*
|
|
1984
2012
|
* @callback Highcharts.FormatterCallbackFunction<T>
|
|
@@ -71,14 +71,14 @@ class CSVConnector extends DataConnector {
|
|
|
71
71
|
detail: eventDetail,
|
|
72
72
|
table
|
|
73
73
|
});
|
|
74
|
-
// If already loaded, clear the current rows
|
|
75
|
-
table.deleteRows();
|
|
76
74
|
return Promise
|
|
77
75
|
.resolve(csvURL ?
|
|
78
76
|
fetch(csvURL).then((response) => response.text()) :
|
|
79
77
|
csv || '')
|
|
80
78
|
.then((csv) => {
|
|
81
79
|
if (csv) {
|
|
80
|
+
// If already loaded, clear the current rows
|
|
81
|
+
table.deleteColumns();
|
|
82
82
|
converter.parse({ csv });
|
|
83
83
|
table.setColumns(converter.getTable().getColumns());
|
|
84
84
|
}
|
|
@@ -99,14 +99,16 @@ class DataConnector {
|
|
|
99
99
|
* @return {Array<string>|undefined}
|
|
100
100
|
* Order of columns.
|
|
101
101
|
*/
|
|
102
|
-
getColumnOrder(
|
|
102
|
+
getColumnOrder(
|
|
103
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
104
|
+
usePresentationState) {
|
|
103
105
|
const connector = this, columns = connector.metadata.columns, names = Object.keys(columns || {});
|
|
104
106
|
if (names.length) {
|
|
105
107
|
return names.sort((a, b) => (pick(columns[a].index, 0) - pick(columns[b].index, 0)));
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
/**
|
|
109
|
-
* Retrieves the columns of the
|
|
111
|
+
* Retrieves the columns of the dataTable,
|
|
110
112
|
* applies column order from meta.
|
|
111
113
|
*
|
|
112
114
|
* @param {boolean} [usePresentationOrder]
|
|
@@ -83,8 +83,6 @@ class GoogleSheetsConnector extends DataConnector {
|
|
|
83
83
|
table,
|
|
84
84
|
url
|
|
85
85
|
});
|
|
86
|
-
// If already loaded, clear the current table
|
|
87
|
-
table.deleteColumns();
|
|
88
86
|
return fetch(url)
|
|
89
87
|
.then((response) => (response.json()))
|
|
90
88
|
.then((json) => {
|
|
@@ -95,6 +93,8 @@ class GoogleSheetsConnector extends DataConnector {
|
|
|
95
93
|
firstRowAsNames,
|
|
96
94
|
json
|
|
97
95
|
});
|
|
96
|
+
// If already loaded, clear the current table
|
|
97
|
+
table.deleteColumns();
|
|
98
98
|
table.setColumns(converter.getTable().getColumns());
|
|
99
99
|
return connector.setModifierOptions(dataModifier);
|
|
100
100
|
})
|
|
@@ -66,8 +66,6 @@ class HTMLTableConnector extends DataConnector {
|
|
|
66
66
|
table,
|
|
67
67
|
tableElement: connector.tableElement
|
|
68
68
|
});
|
|
69
|
-
// If already loaded, clear the current rows
|
|
70
|
-
table.deleteColumns();
|
|
71
69
|
let tableElement;
|
|
72
70
|
if (typeof tableHTML === 'string') {
|
|
73
71
|
connector.tableID = tableHTML;
|
|
@@ -89,6 +87,8 @@ class HTMLTableConnector extends DataConnector {
|
|
|
89
87
|
return Promise.reject(new Error(error));
|
|
90
88
|
}
|
|
91
89
|
converter.parse(merge({ tableElement: connector.tableElement }, connector.options), eventDetail);
|
|
90
|
+
// If already loaded, clear the current rows
|
|
91
|
+
table.deleteColumns();
|
|
92
92
|
table.setColumns(converter.getTable().getColumns());
|
|
93
93
|
return connector
|
|
94
94
|
.setModifierOptions(dataModifier)
|
|
@@ -68,20 +68,18 @@ class JSONConnector extends DataConnector {
|
|
|
68
68
|
detail: eventDetail,
|
|
69
69
|
table
|
|
70
70
|
});
|
|
71
|
-
// If already loaded, clear the current rows
|
|
72
|
-
table.deleteRows();
|
|
73
71
|
return Promise
|
|
74
72
|
.resolve(dataUrl ?
|
|
75
73
|
fetch(dataUrl).then((json) => json.json()) :
|
|
76
74
|
data || [])
|
|
77
75
|
.then((data) => {
|
|
78
76
|
if (data) {
|
|
77
|
+
// If already loaded, clear the current rows
|
|
78
|
+
table.deleteColumns();
|
|
79
79
|
converter.parse({ data });
|
|
80
80
|
table.setColumns(converter.getTable().getColumns());
|
|
81
81
|
}
|
|
82
|
-
return connector
|
|
83
|
-
.setModifierOptions(dataModifier)
|
|
84
|
-
.then(() => data);
|
|
82
|
+
return connector.setModifierOptions(dataModifier).then(() => data);
|
|
85
83
|
})
|
|
86
84
|
.then((data) => {
|
|
87
85
|
connector.emit({
|
|
@@ -226,11 +226,9 @@ class CSVConverter extends DataConverter {
|
|
|
226
226
|
if (!decimalPoint || decimalPoint === itemDelimiter) {
|
|
227
227
|
decimalPoint = converter.guessedDecimalPoint || '.';
|
|
228
228
|
}
|
|
229
|
-
let i = 0, c = '',
|
|
229
|
+
let i = 0, c = '', token = '', actualColumn = 0, column = 0;
|
|
230
230
|
const read = (j) => {
|
|
231
231
|
c = columnStr[j];
|
|
232
|
-
cl = columnStr[j - 1];
|
|
233
|
-
cn = columnStr[j + 1];
|
|
234
232
|
};
|
|
235
233
|
const pushType = (type) => {
|
|
236
234
|
if (dataTypes.length < column + 1) {
|
|
@@ -347,7 +347,11 @@ class DataConverter {
|
|
|
347
347
|
* @param {DataConverter.Options} [options]
|
|
348
348
|
* Options for the export.
|
|
349
349
|
*/
|
|
350
|
-
export(
|
|
350
|
+
export(
|
|
351
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
352
|
+
connector, options
|
|
353
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
354
|
+
) {
|
|
351
355
|
this.emit({
|
|
352
356
|
type: 'exportError',
|
|
353
357
|
columns: [],
|
|
@@ -422,7 +426,9 @@ class DataConverter {
|
|
|
422
426
|
* @param {DataConverter.UserOptions} options
|
|
423
427
|
* Options of the DataConverter.
|
|
424
428
|
*/
|
|
425
|
-
parse(
|
|
429
|
+
parse(
|
|
430
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
431
|
+
options) {
|
|
426
432
|
this.emit({
|
|
427
433
|
type: 'parseError',
|
|
428
434
|
columns: [],
|
|
@@ -176,9 +176,7 @@ class HTMLTableConverter extends DataConverter {
|
|
|
176
176
|
* Get table header markup from row data.
|
|
177
177
|
*/
|
|
178
178
|
getTableHeaderHTML(topheaders = [], subheaders = [], options = this.options) {
|
|
179
|
-
const { useMultiLevelHeaders, useRowspanHeaders } = options
|
|
180
|
-
(1.1).toLocaleString()[1] :
|
|
181
|
-
'.');
|
|
179
|
+
const { useMultiLevelHeaders, useRowspanHeaders } = options;
|
|
182
180
|
let html = '<thead>', i = 0, len = subheaders && subheaders.length, next, cur, curColspan = 0, rowspan;
|
|
183
181
|
// Clean up multiple table headers. Chart.getDataRows() returns two
|
|
184
182
|
// levels of headers when using multilevel, not merged. We need to
|
|
@@ -24,7 +24,6 @@ const { addEvent, fireEvent, uniqueKey } = U;
|
|
|
24
24
|
* to add, remove, and manipulate columns and rows, as well as to retrieve data
|
|
25
25
|
* from specific cells.
|
|
26
26
|
*
|
|
27
|
-
* @private
|
|
28
27
|
* @class
|
|
29
28
|
* @name Highcharts.DataTable
|
|
30
29
|
*
|
|
@@ -890,7 +889,7 @@ class DataTable {
|
|
|
890
889
|
* @emits #afterSetColumns
|
|
891
890
|
*/
|
|
892
891
|
setColumns(columns, rowIndex, eventDetail) {
|
|
893
|
-
const table = this, tableColumns = table.columns, tableModifier = table.modifier,
|
|
892
|
+
const table = this, tableColumns = table.columns, tableModifier = table.modifier, reset = (typeof rowIndex === 'undefined'), columnNames = Object.keys(columns);
|
|
894
893
|
table.emit({
|
|
895
894
|
type: 'setColumns',
|
|
896
895
|
columns,
|
|
@@ -356,7 +356,7 @@ function processFormula(formula, table) {
|
|
|
356
356
|
return isValue(x) ? x : NaN;
|
|
357
357
|
}
|
|
358
358
|
/**
|
|
359
|
-
* Process a function
|
|
359
|
+
* Process a function on the given table. If the arguments do not contain
|
|
360
360
|
* references or ranges, then no table has to be provided.
|
|
361
361
|
*
|
|
362
362
|
* @private
|
|
@@ -373,7 +373,9 @@ function processFormula(formula, table) {
|
|
|
373
373
|
* @return {Highcharts.FormulaValue|Array<Highcharts.FormulaValue>}
|
|
374
374
|
* Result value (or values) of the process. `NaN` indicates an error.
|
|
375
375
|
*/
|
|
376
|
-
function processFunction(formulaFunction, table,
|
|
376
|
+
function processFunction(formulaFunction, table,
|
|
377
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
378
|
+
reference // @todo
|
|
377
379
|
) {
|
|
378
380
|
const processor = processorFunctions[formulaFunction.name];
|
|
379
381
|
if (processor) {
|
|
@@ -146,7 +146,11 @@ class DataModifier {
|
|
|
146
146
|
* @return {Highcharts.DataTable}
|
|
147
147
|
* Table with `modified` property as a reference.
|
|
148
148
|
*/
|
|
149
|
-
modifyCell(table,
|
|
149
|
+
modifyCell(table,
|
|
150
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
151
|
+
columnName, rowIndex, cellValue, eventDetail
|
|
152
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
153
|
+
) {
|
|
150
154
|
return this.modifyTable(table);
|
|
151
155
|
}
|
|
152
156
|
/**
|
|
@@ -168,7 +172,11 @@ class DataModifier {
|
|
|
168
172
|
* @return {Highcharts.DataTable}
|
|
169
173
|
* Table with `modified` property as a reference.
|
|
170
174
|
*/
|
|
171
|
-
modifyColumns(table,
|
|
175
|
+
modifyColumns(table,
|
|
176
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
177
|
+
columns, rowIndex, eventDetail
|
|
178
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
179
|
+
) {
|
|
172
180
|
return this.modifyTable(table);
|
|
173
181
|
}
|
|
174
182
|
/**
|
|
@@ -190,7 +198,11 @@ class DataModifier {
|
|
|
190
198
|
* @return {Highcharts.DataTable}
|
|
191
199
|
* Table with `modified` property as a reference.
|
|
192
200
|
*/
|
|
193
|
-
modifyRows(table,
|
|
201
|
+
modifyRows(table,
|
|
202
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
203
|
+
rows, rowIndex, eventDetail
|
|
204
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
205
|
+
) {
|
|
194
206
|
return this.modifyTable(table);
|
|
195
207
|
}
|
|
196
208
|
/**
|
|
@@ -22,7 +22,6 @@ import ControlPoint from './ControlPoint.js';
|
|
|
22
22
|
import ControlTarget from './ControlTarget.js';
|
|
23
23
|
import EventEmitter from './EventEmitter.js';
|
|
24
24
|
import MockPoint from './MockPoint.js';
|
|
25
|
-
import NavigationBindings from './NavigationBindings.js';
|
|
26
25
|
import PopupComposition from './Popup/PopupComposition.js';
|
|
27
26
|
import U from '../../Core/Utilities.js';
|
|
28
27
|
const { destroyObjectProperties, erase, fireEvent, merge, pick, splat } = U;
|
|
@@ -32,7 +31,7 @@ const { destroyObjectProperties, erase, fireEvent, merge, pick, splat } = U;
|
|
|
32
31
|
*
|
|
33
32
|
* */
|
|
34
33
|
/**
|
|
35
|
-
* Hide or show
|
|
34
|
+
* Hide or show annotation attached to points.
|
|
36
35
|
* @private
|
|
37
36
|
*/
|
|
38
37
|
function adjustVisibility(item) {
|
|
@@ -94,12 +93,12 @@ class Annotation extends EventEmitter {
|
|
|
94
93
|
/**
|
|
95
94
|
* @private
|
|
96
95
|
*/
|
|
97
|
-
static compose(ChartClass, PointerClass, SVGRendererClass) {
|
|
96
|
+
static compose(ChartClass, NavigationBindingsClass, PointerClass, SVGRendererClass) {
|
|
98
97
|
AnnotationChart.compose(Annotation, ChartClass, PointerClass);
|
|
99
98
|
ControllableLabel.compose(SVGRendererClass);
|
|
100
99
|
ControllablePath.compose(ChartClass, SVGRendererClass);
|
|
101
|
-
|
|
102
|
-
PopupComposition.compose(
|
|
100
|
+
NavigationBindingsClass.compose(Annotation, ChartClass);
|
|
101
|
+
PopupComposition.compose(NavigationBindingsClass, PointerClass);
|
|
103
102
|
}
|
|
104
103
|
/* *
|
|
105
104
|
*
|
|
@@ -318,7 +317,7 @@ class Annotation extends EventEmitter {
|
|
|
318
317
|
* Initialisation of a single shape
|
|
319
318
|
* @private
|
|
320
319
|
* @param {Object} shapeOptions
|
|
321
|
-
* a
|
|
320
|
+
* a config object for a single shape
|
|
322
321
|
* @param {number} index
|
|
323
322
|
* annotation may have many shapes, this is the shape's index saved in
|
|
324
323
|
* shapes.index.
|
|
@@ -382,7 +381,7 @@ class Annotation extends EventEmitter {
|
|
|
382
381
|
* @private
|
|
383
382
|
*/
|
|
384
383
|
remove() {
|
|
385
|
-
// Let chart.update() remove
|
|
384
|
+
// Let chart.update() remove annotations on demand
|
|
386
385
|
return this.chart.removeAnnotation(this);
|
|
387
386
|
}
|
|
388
387
|
/**
|
|
@@ -8,10 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
|
-
import H from '../../Core/Globals.js';
|
|
12
|
-
const { composed } = H;
|
|
13
11
|
import U from '../../Core/Utilities.js';
|
|
14
|
-
const { addEvent, erase, find, fireEvent, pick,
|
|
12
|
+
const { addEvent, erase, find, fireEvent, pick, wrap } = U;
|
|
15
13
|
/* *
|
|
16
14
|
*
|
|
17
15
|
* Functions
|
|
@@ -252,8 +250,9 @@ var AnnotationChart;
|
|
|
252
250
|
* @private
|
|
253
251
|
*/
|
|
254
252
|
function compose(AnnotationClass, ChartClass, PointerClass) {
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
const chartProto = ChartClass.prototype;
|
|
254
|
+
if (!chartProto.addAnnotation) {
|
|
255
|
+
const pointerProto = PointerClass.prototype;
|
|
257
256
|
addEvent(ChartClass, 'afterInit', onChartAfterInit);
|
|
258
257
|
chartProto.addAnnotation = chartAddAnnotation;
|
|
259
258
|
chartProto.callbacks.push(chartCallback);
|