highcharts 8.1.0 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +12 -0
- package/css/highcharts.scss +12 -0
- package/css/themes/dark-unica.css +12 -0
- package/css/themes/grid-light.css +12 -0
- package/css/themes/sand-signika.css +12 -0
- package/es-modules/{modules/accessibility/a11y-i18n.js → Accessibility/A11yI18n.js} +2 -2
- package/es-modules/{modules/accessibility/accessibility.js → Accessibility/Accessibility.js} +24 -21
- package/es-modules/{modules/accessibility → Accessibility}/AccessibilityComponent.js +73 -17
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/AnnotationsA11y.js +2 -4
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/ContainerComponent.js +8 -9
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/InfoRegionsComponent.js +9 -12
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/LegendComponent.js +60 -22
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/MenuComponent.js +4 -11
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/RangeSelectorComponent.js +8 -7
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +171 -0
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/NewDataAnnouncer.js +8 -7
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/SeriesComponent.js +5 -5
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/SeriesDescriber.js +6 -6
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/SeriesKeyboardNavigation.js +22 -20
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/ZoomComponent.js +9 -8
- package/es-modules/{modules/accessibility/focusBorder.js → Accessibility/FocusBorder.js} +13 -10
- package/es-modules/{modules/accessibility/high-contrast-mode.js → Accessibility/HighContrastMode.js} +3 -2
- package/es-modules/{modules/accessibility/high-contrast-theme.js → Accessibility/HighContrastTheme.js} +0 -0
- package/es-modules/{modules/accessibility → Accessibility}/KeyboardNavigation.js +35 -22
- package/es-modules/{modules/accessibility → Accessibility}/KeyboardNavigationHandler.js +1 -1
- package/es-modules/{modules/accessibility/options/deprecatedOptions.js → Accessibility/Options/DeprecatedOptions.js} +10 -20
- package/es-modules/{modules/accessibility/options/langOptions.js → Accessibility/Options/LangOptions.js} +1 -1
- package/es-modules/{modules/accessibility/options/options.js → Accessibility/Options/Options.js} +1 -2
- package/es-modules/{modules/accessibility/utils → Accessibility/Utils}/Announcer.js +2 -2
- package/es-modules/{modules/accessibility/utils/chartUtilities.js → Accessibility/Utils/ChartUtilities.js} +8 -9
- package/es-modules/{modules/accessibility/utils → Accessibility/Utils}/DOMElementProvider.js +5 -5
- package/es-modules/{modules/accessibility/utils → Accessibility/Utils}/EventProvider.js +2 -2
- package/es-modules/{modules/accessibility/utils/htmlUtilities.js → Accessibility/Utils/HTMLUtilities.js} +3 -4
- package/es-modules/Core/Animation/AnimationUtilities.js +193 -0
- package/es-modules/Core/Animation/Fx.js +378 -0
- package/es-modules/{parts → Core/Axis}/Axis.js +153 -89
- package/es-modules/{parts-3d → Core/Axis}/Axis3D.js +12 -7
- package/es-modules/{modules/broken-axis.src.js → Core/Axis/BrokenAxis.js} +6 -8
- package/es-modules/{parts-map → Core/Axis}/ColorAxis.js +28 -31
- package/es-modules/{parts → Core/Axis}/DateTimeAxis.js +1 -1
- package/es-modules/{parts-gantt → Core/Axis}/GridAxis.js +136 -39
- package/es-modules/{parts-more → Core/Axis}/HiddenAxis.js +0 -0
- package/es-modules/{parts → Core/Axis}/LogarithmicAxis.js +1 -1
- package/es-modules/{parts-map → Core/Axis}/MapAxis.js +2 -2
- package/es-modules/{parts → Core/Axis}/NavigatorAxis.js +2 -2
- package/es-modules/{parts → Core/Axis}/OrdinalAxis.js +241 -224
- package/es-modules/{parts → Core/Axis}/PlotLineOrBand.js +24 -15
- package/es-modules/{parts-more → Core/Axis}/RadialAxis.js +34 -27
- package/es-modules/{parts → Core/Axis}/ScrollbarAxis.js +2 -2
- package/es-modules/{parts → Core/Axis}/StackingAxis.js +11 -2
- package/es-modules/{parts → Core/Axis}/Tick.js +14 -14
- package/es-modules/{parts-3d → Core/Axis}/Tick3D.js +1 -1
- package/es-modules/{parts-gantt → Core/Axis}/TreeGridAxis.js +81 -15
- package/es-modules/{parts-gantt → Core/Axis}/TreeGridTick.js +1 -1
- package/es-modules/{parts-3d → Core/Axis}/ZAxis.js +2 -2
- package/es-modules/{parts → Core/Chart}/Chart.js +225 -227
- package/es-modules/Core/Chart/Chart3D.js +1674 -0
- package/es-modules/{parts-gantt → Core/Chart}/GanttChart.js +13 -12
- package/es-modules/{parts → Core/Chart}/StockChart.js +26 -25
- package/es-modules/Core/Color/Color.js +419 -0
- package/es-modules/Core/Color/ColorType.js +9 -0
- package/es-modules/{parts → Core}/Color.js +1 -1
- package/es-modules/{parts → Core}/Dynamics.js +91 -61
- package/es-modules/{parts → Core}/Globals.js +9 -1
- package/es-modules/{parts → Core}/Interaction.js +27 -20
- package/es-modules/{parts → Core}/Legend.js +26 -11
- package/es-modules/{parts → Core}/MSPointer.js +2 -2
- package/es-modules/{parts → Core}/Navigator.js +24 -14
- package/es-modules/{parts → Core}/Options.js +157 -69
- package/es-modules/{parts → Core}/Pointer.js +50 -27
- package/es-modules/Core/Renderer/DOMElementType.js +9 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +220 -0
- package/es-modules/{parts/Html.js → Core/Renderer/HTML/HTMLRenderer.js} +16 -207
- package/es-modules/{parts → Core/Renderer/SVG}/SVGElement.js +186 -32
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +410 -0
- package/es-modules/{parts/SvgRenderer.js → Core/Renderer/SVG/SVGRenderer.js} +426 -886
- package/es-modules/{parts-3d/SVGRenderer.js → Core/Renderer/SVG/SVGRenderer3D.js} +31 -23
- package/es-modules/{parts → Core}/Responsive.js +24 -14
- package/es-modules/{parts → Core}/Scrollbar.js +5 -4
- package/es-modules/Core/Series/BaseSeries.js +157 -0
- package/es-modules/{parts/Series.js → Core/Series/CartesianSeries.js} +119 -55
- package/es-modules/{parts → Core/Series}/DataLabels.js +40 -36
- package/es-modules/{parts → Core/Series}/Point.js +8 -10
- package/es-modules/Core/Series/Series.js +158 -0
- package/es-modules/{parts-3d/Series.js → Core/Series/Series3D.js} +5 -3
- package/es-modules/{parts → Core}/Time.js +11 -133
- package/es-modules/{parts → Core}/Tooltip.js +30 -27
- package/es-modules/{parts → Core}/Utilities.js +103 -562
- package/es-modules/{mixins/ajax.js → Extensions/Ajax.js} +9 -4
- package/es-modules/{annotations/annotations.src.js → Extensions/Annotations/Annotations.js} +901 -709
- package/es-modules/{annotations → Extensions/Annotations}/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +117 -0
- package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +111 -0
- package/es-modules/{annotations/controllable → Extensions/Annotations/Controllables}/ControllableLabel.js +186 -146
- package/es-modules/{annotations/controllable → Extensions/Annotations/Controllables}/ControllablePath.js +81 -42
- package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +121 -0
- package/es-modules/{annotations/controllable/controllableMixin.js → Extensions/Annotations/Mixins/ControllableMixin.js} +8 -9
- package/es-modules/{annotations/eventEmitterMixin.js → Extensions/Annotations/Mixins/EventEmitterMixin.js} +7 -7
- package/es-modules/{annotations/controllable/markerMixin.js → Extensions/Annotations/Mixins/MarkerMixin.js} +10 -8
- package/es-modules/{annotations → Extensions/Annotations}/MockPoint.js +6 -6
- package/es-modules/{annotations/navigationBindings.js → Extensions/Annotations/NavigationBindings.js} +27 -16
- package/es-modules/{annotations/popup.js → Extensions/Annotations/Popup.js} +9 -9
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/BasicAnnotation.js +68 -20
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/CrookedLine.js +46 -19
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/ElliottWave.js +33 -12
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Fibonacci.js +54 -22
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +147 -0
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Measure.js +82 -52
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Pitchfork.js +69 -32
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Tunnel.js +58 -30
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/VerticalLine.js +64 -33
- package/es-modules/{parts-gantt → Extensions}/ArrowSymbols.js +9 -11
- package/es-modules/{modules/boost/boost.js → Extensions/Boost/Boost.js} +8 -8
- package/es-modules/{modules/boost/boost-attach.js → Extensions/Boost/BoostAttach.js} +10 -8
- package/es-modules/{modules/boost/boost-init.js → Extensions/Boost/BoostInit.js} +7 -6
- package/es-modules/{modules/boost/boost-options.js → Extensions/Boost/BoostOptions.js} +1 -1
- package/es-modules/{modules/boost/boost-overrides.js → Extensions/Boost/BoostOverrides.js} +14 -11
- package/es-modules/{modules/boost/boost-utils.js → Extensions/Boost/BoostUtils.js} +6 -6
- package/es-modules/{modules/boost/boostable-map.js → Extensions/Boost/BoostableMap.js} +1 -1
- package/es-modules/{modules/boost/boostables.js → Extensions/Boost/Boostables.js} +0 -0
- package/es-modules/{modules/boost/named-colors.js → Extensions/Boost/NamedColors.js} +1 -1
- package/es-modules/{modules/boost/wgl-renderer.js → Extensions/Boost/WGLRenderer.js} +9 -9
- package/es-modules/{modules/boost/wgl-shader.js → Extensions/Boost/WGLShader.js} +3 -4
- package/es-modules/{modules/boost/wgl-vbuffer.js → Extensions/Boost/WGLVBuffer.js} +0 -0
- package/es-modules/{modules/boost-canvas.src.js → Extensions/BoostCanvas.js} +13 -9
- package/es-modules/{parts-gantt/CurrentDateIndicator.js → Extensions/CurrentDateIndication.js} +5 -7
- package/es-modules/{modules/data.src.js → Extensions/Data.js} +14 -16
- package/es-modules/{parts → Extensions}/DataGrouping.js +12 -9
- package/es-modules/{modules/debugger.src.js → Extensions/Debugger.js} +6 -6
- package/es-modules/{mixins/download-url.js → Extensions/DownloadURL.js} +15 -7
- package/es-modules/{modules/drag-panes.src.js → Extensions/DragPanes.js} +6 -6
- package/es-modules/{modules/draggable-points.src.js → Extensions/DraggablePoints.js} +21 -32
- package/es-modules/{modules/drilldown.src.js → Extensions/Drilldown.js} +64 -43
- package/es-modules/{modules/export-data.src.js → Extensions/ExportData.js} +126 -26
- package/es-modules/{modules/exporting.src.js → Extensions/Exporting.js} +26 -12
- package/es-modules/{modules/full-screen.src.js → Extensions/FullScreen.js} +5 -3
- package/es-modules/{parts-map → Extensions}/GeoJSON.js +112 -7
- package/es-modules/{modules/marker-clusters.src.js → Extensions/MarkerClusters.js} +29 -39
- package/es-modules/{parts-3d/Math.js → Extensions/Math3D.js} +17 -9
- package/es-modules/{modules/no-data-to-display.src.js → Extensions/NoDataToDisplay.js} +14 -15
- package/es-modules/{modules/offline-exporting.src.js → Extensions/OfflineExporting.js} +39 -35
- package/es-modules/{modules/oldie.src.js → Extensions/Oldie/Oldie.js} +19 -12
- package/es-modules/{parts-3d → Extensions/Oldie}/VMLAxis3D.js +1 -1
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +46 -0
- package/es-modules/{modules/oldie-polyfills.src.js → Extensions/OldiePolyfills.js} +5 -0
- package/es-modules/{modules/overlapping-datalabels.src.js → Extensions/OverlappingDataLabels.js} +14 -13
- package/es-modules/{parts-more → Extensions}/Pane.js +13 -12
- package/es-modules/{modules/parallel-coordinates.src.js → Extensions/ParallelCoordinates.js} +140 -138
- package/es-modules/{modules/pattern-fill.src.js → Extensions/PatternFill.js} +23 -15
- package/es-modules/{parts-more → Extensions}/Polar.js +15 -12
- package/es-modules/{modules/price-indicator.src.js → Extensions/PriceIndication.js} +5 -3
- package/es-modules/{parts → Extensions}/RangeSelector.js +112 -79
- package/es-modules/{parts → Extensions}/ScrollablePlotArea.js +19 -9
- package/es-modules/{modules/series-label.src.js → Extensions/SeriesLabel.js} +14 -10
- package/es-modules/{modules/sonification/chartSonify.js → Extensions/Sonification/ChartSonify.js} +212 -41
- package/es-modules/{modules/sonification → Extensions/Sonification}/Earcon.js +3 -7
- package/es-modules/{modules/sonification → Extensions/Sonification}/Instrument.js +35 -11
- package/es-modules/{modules/sonification/instrumentDefinitions.js → Extensions/Sonification/InstrumentDefinitions.js} +1 -1
- package/es-modules/{modules/sonification/musicalFrequencies.js → Extensions/Sonification/MusicalFrequencies.js} +0 -0
- package/es-modules/Extensions/Sonification/Options.js +34 -0
- package/es-modules/{modules/sonification/pointSonify.js → Extensions/Sonification/PointSonify.js} +43 -28
- package/es-modules/{modules/sonification/sonification.js → Extensions/Sonification/Sonification.js} +16 -12
- package/es-modules/{modules/sonification → Extensions/Sonification}/Timeline.js +25 -6
- package/es-modules/{modules/sonification/utilities.js → Extensions/Sonification/Utilities.js} +8 -5
- package/es-modules/{parts → Extensions}/Stacking.js +57 -18
- package/es-modules/{modules/static-scale.src.js → Extensions/StaticScale.js} +4 -4
- package/es-modules/{themes/avocado.js → Extensions/Themes/Avocado.js} +5 -4
- package/es-modules/{themes/dark-blue.js → Extensions/Themes/DarkBlue.js} +4 -2
- package/es-modules/{themes/dark-green.js → Extensions/Themes/DarkGreen.js} +4 -2
- package/es-modules/{themes/dark-unica.js → Extensions/Themes/DarkUnica.js} +6 -6
- package/es-modules/{themes/gray.js → Extensions/Themes/Gray.js} +5 -4
- package/es-modules/{themes/grid.js → Extensions/Themes/Grid.js} +4 -2
- package/es-modules/{themes/grid-light.js → Extensions/Themes/GridLight.js} +4 -2
- package/es-modules/{themes/high-contrast-dark.js → Extensions/Themes/HighContrastDark.js} +5 -4
- package/es-modules/{themes/high-contrast-light.js → Extensions/Themes/HighContrastLight.js} +4 -2
- package/es-modules/{themes/sand-signika.js → Extensions/Themes/SandSignika.js} +4 -2
- package/es-modules/{themes/skies.js → Extensions/Themes/Skies.js} +5 -3
- package/es-modules/{themes/sunset.js → Extensions/Themes/Sunset.js} +5 -4
- package/es-modules/{parts-gantt/Pathfinder.js → Gantt/Connection.js} +41 -284
- package/es-modules/Gantt/Pathfinder.js +816 -0
- package/es-modules/Gantt/PathfinderAlgorithms.js +659 -0
- package/es-modules/{parts-gantt → Gantt}/Tree.js +1 -1
- package/es-modules/{parts-map → Maps}/Map.js +24 -15
- package/es-modules/{parts-map → Maps}/MapNavigation.js +4 -5
- package/es-modules/{parts-map → Maps}/MapPointer.js +2 -4
- package/es-modules/{mixins/centered-series.js → Mixins/CenteredSeries.js} +7 -5
- package/es-modules/{parts-map/ColorMapSeriesMixin.js → Mixins/ColorMapSeries.js} +10 -6
- package/es-modules/{parts-map/ColorSeriesMixin.js → Mixins/ColorSeries.js} +12 -4
- package/es-modules/{mixins/derived-series.js → Mixins/DerivedSeries.js} +3 -3
- package/es-modules/{mixins/draw-point.js → Mixins/DrawPoint.js} +6 -1
- package/es-modules/{mixins/geometry.js → Mixins/Geometry.js} +0 -0
- package/es-modules/{mixins/geometry-circles.js → Mixins/GeometryCircles.js} +2 -2
- package/es-modules/{mixins/indicator-required.js → Mixins/IndicatorRequired.js} +1 -1
- package/es-modules/{mixins/legend-symbol.js → Mixins/LegendSymbol.js} +6 -10
- package/es-modules/{mixins/multipe-lines.js → Mixins/MultipleLines.js} +2 -2
- package/es-modules/{mixins/navigation.js → Mixins/Navigation.js} +0 -0
- package/es-modules/{mixins/nelder-mead.js → Mixins/NelderMead.js} +2 -2
- package/es-modules/{mixins/nodes.js → Mixins/Nodes.js} +7 -5
- package/es-modules/{mixins/on-series.js → Mixins/OnSeries.js} +3 -2
- package/es-modules/{mixins/polygon.js → Mixins/Polygon.js} +2 -2
- package/es-modules/{mixins/reduce-array.js → Mixins/ReduceArray.js} +1 -1
- package/es-modules/{mixins/tree-series.js → Mixins/TreeSeries.js} +2 -2
- package/es-modules/{parts-more → Series}/AreaRangeSeries.js +75 -38
- package/es-modules/{parts → Series}/AreaSeries.js +43 -25
- package/es-modules/{parts-more → Series}/AreaSplineRangeSeries.js +47 -10
- package/es-modules/{parts → Series}/AreaSplineSeries.js +49 -10
- package/es-modules/{parts → Series}/BarSeries.js +2 -5
- package/es-modules/{modules/bellcurve.src.js → Series/BellcurveSeries.js} +47 -7
- package/es-modules/{parts-more → Series}/BoxPlotSeries.js +18 -13
- package/es-modules/{parts-more → Series/Bubble}/BubbleLegend.js +11 -9
- package/es-modules/{parts-more → Series/Bubble}/BubbleSeries.js +25 -27
- package/es-modules/{modules/bullet.src.js → Series/BulletSeries.js} +9 -8
- package/es-modules/{parts → Series}/CandlestickSeries.js +11 -8
- package/es-modules/{parts-3d/Column.js → Series/Column3DSeries.js} +108 -28
- package/es-modules/{parts-more → Series}/ColumnPyramidSeries.js +9 -9
- package/es-modules/{parts-more → Series}/ColumnRangeSeries.js +21 -18
- package/es-modules/{parts → Series}/ColumnSeries.js +119 -41
- package/es-modules/{modules/cylinder.src.js → Series/CylinderSeries.js} +14 -14
- package/es-modules/{modules/dependency-wheel.src.js → Series/DependencyWheelSeries.js} +14 -12
- package/es-modules/{modules/dotplot.src.js → Series/DotplotSeries.js} +7 -15
- package/es-modules/{modules/dumbbell.src.js → Series/DumbbellSeries.js} +16 -10
- package/es-modules/{parts-more → Series}/ErrorBarSeries.js +8 -8
- package/es-modules/{parts → Series}/FlagsSeries.js +18 -12
- package/es-modules/{modules/funnel3d.src.js → Series/Funnel3DSeries.js} +14 -16
- package/es-modules/{modules/funnel.src.js → Series/FunnelSeries.js} +16 -14
- package/es-modules/{parts-gantt → Series}/GanttSeries.js +21 -20
- package/es-modules/{parts-more → Series}/GaugeSeries.js +14 -12
- package/es-modules/{parts-map → Series}/HeatmapSeries.js +23 -16
- package/es-modules/{modules/histogram.src.js → Series/HistogramSeries.js} +13 -9
- package/es-modules/{modules/item-series.src.js → Series/ItemSeries.js} +22 -14
- package/es-modules/Series/LineSeries.js +13 -0
- package/es-modules/{modules/lollipop.src.js → Series/LollipopSeries.js} +34 -10
- package/es-modules/{parts-map → Series}/MapBubbleSeries.js +8 -9
- package/es-modules/{parts-map → Series}/MapLineSeries.js +5 -7
- package/es-modules/{parts-map → Series}/MapPointSeries.js +9 -8
- package/es-modules/{parts-map → Series}/MapSeries.js +22 -18
- package/es-modules/{modules/networkgraph/draggable-nodes.js → Series/Networkgraph/DraggableNodes.js} +15 -30
- package/es-modules/{modules/networkgraph/integrations.js → Series/Networkgraph/Integrations.js} +1 -1
- package/es-modules/{modules/networkgraph/layouts.js → Series/Networkgraph/Layouts.js} +43 -13
- package/es-modules/{modules/networkgraph/networkgraph.src.js → Series/Networkgraph/Networkgraph.js} +29 -23
- package/es-modules/{modules/networkgraph → Series/Networkgraph}/QuadTree.js +2 -2
- package/es-modules/{parts → Series}/OHLCSeries.js +5 -7
- package/es-modules/{modules/organization.src.js → Series/OrganizationSeries.js} +10 -7
- package/es-modules/{parts-more → Series}/PackedBubbleSeries.js +104 -28
- package/es-modules/{modules/pareto.src.js → Series/ParetoSeries.js} +10 -9
- package/es-modules/{parts-3d/Pie.js → Series/Pie3DSeries.js} +5 -4
- package/es-modules/{parts → Series}/PieSeries.js +66 -31
- package/es-modules/{parts-more → Series}/PolygonSeries.js +13 -13
- package/es-modules/{modules/pyramid3d.src.js → Series/Pyramid3DSeries.js} +5 -7
- package/es-modules/{modules/sankey.src.js → Series/SankeySeries.js} +23 -21
- package/es-modules/{parts-3d/Scatter.js → Series/Scatter3DSeries.js} +10 -9
- package/es-modules/{parts → Series}/ScatterSeries.js +15 -10
- package/es-modules/{modules/solid-gauge.src.js → Series/SolidGaugeSeries.js} +112 -78
- package/es-modules/{parts → Series}/SplineSeries.js +9 -7
- package/es-modules/{modules/streamgraph.src.js → Series/StreamgraphSeries.js} +42 -6
- package/es-modules/{modules/sunburst.src.js → Series/SunburstSeries.js} +20 -13
- package/es-modules/{modules/tilemap.src.js → Series/TilemapSeries.js} +12 -9
- package/es-modules/{modules/timeline.src.js → Series/TimelineSeries.js} +16 -11
- package/es-modules/{modules/treemap.src.js → Series/TreemapSeries.js} +47 -40
- package/es-modules/{modules/variable-pie.src.js → Series/VariablePieSeries.js} +11 -8
- package/es-modules/{modules/variwide.src.js → Series/VariwideSeries.js} +12 -10
- package/es-modules/{modules/vector.src.js → Series/VectorSeries.js} +11 -7
- package/es-modules/{modules/venn.src.js → Series/VennSeries.js} +29 -20
- package/es-modules/{parts-more → Series}/WaterfallSeries.js +145 -66
- package/es-modules/{modules/windbarb.src.js → Series/WindbarbSeries.js} +13 -9
- package/es-modules/{modules/wordcloud.src.js → Series/WordcloudSeries.js} +17 -13
- package/es-modules/{modules/xrange.src.js → Series/XRangeSeries.js} +16 -12
- package/es-modules/{indicators/acceleration-bands.src.js → Stock/Indicators/ABIndicator.js} +8 -8
- package/es-modules/{indicators/accumulation-distribution.src.js → Stock/Indicators/ADIndicator.js} +5 -4
- package/es-modules/{indicators/ao.src.js → Stock/Indicators/AOIndicator.js} +6 -5
- package/es-modules/{indicators/apo.src.js → Stock/Indicators/APOIndicator.js} +8 -8
- package/es-modules/{indicators/atr.src.js → Stock/Indicators/ATRIndicator.js} +6 -6
- package/es-modules/{indicators/aroon.src.js → Stock/Indicators/AroonIndicator.js} +7 -6
- package/es-modules/{indicators/aroon-oscillator.src.js → Stock/Indicators/AroonOscillatorIndicator.js} +8 -8
- package/es-modules/{indicators/bollinger-bands.src.js → Stock/Indicators/BBIndicator.js} +8 -8
- package/es-modules/{indicators/cci.src.js → Stock/Indicators/CCIIndicator.js} +5 -4
- package/es-modules/{indicators/cmf.src.js → Stock/Indicators/CMFIndicator.js} +3 -4
- package/es-modules/{indicators/chaikin.src.js → Stock/Indicators/ChaikinIndicator.js} +10 -9
- package/es-modules/{indicators/dema.src.js → Stock/Indicators/DEMAIndicator.js} +8 -8
- package/es-modules/{indicators/dpo.src.js → Stock/Indicators/DPOIndicator.js} +5 -4
- package/es-modules/{indicators/ema.src.js → Stock/Indicators/EMAIndicator.js} +4 -4
- package/es-modules/{indicators/ichimoku-kinko-hyo.src.js → Stock/Indicators/IKHIndicator.js} +23 -20
- package/es-modules/{indicators/keltner-channels.src.js → Stock/Indicators/KeltnerChannelsIndicator.js} +11 -8
- package/es-modules/{indicators/macd.src.js → Stock/Indicators/MACDIndicator.js} +9 -6
- package/es-modules/{indicators/mfi.src.js → Stock/Indicators/MFIIndicator.js} +5 -4
- package/es-modules/{indicators/momentum.src.js → Stock/Indicators/MomentumIndicator.js} +5 -4
- package/es-modules/{indicators/natr.src.js → Stock/Indicators/NATRIndicator.js} +4 -6
- package/es-modules/{indicators/price-channel.src.js → Stock/Indicators/PCIndicator.js} +9 -8
- package/es-modules/{indicators/ppo.src.js → Stock/Indicators/PPOIndicator.js} +8 -8
- package/es-modules/{indicators/psar.src.js → Stock/Indicators/PSARIndicator.js} +3 -4
- package/es-modules/{indicators/pivot-points.src.js → Stock/Indicators/PivotPointsIndicator.js} +6 -6
- package/es-modules/{indicators/price-envelopes.src.js → Stock/Indicators/PriceEnvelopesIndicator.js} +6 -6
- package/es-modules/{indicators/roc.src.js → Stock/Indicators/ROCIndicator.js} +5 -4
- package/es-modules/{indicators/rsi.src.js → Stock/Indicators/RSIIndicator.js} +5 -4
- package/es-modules/{indicators/regressions.src.js → Stock/Indicators/RegressionIndicators.js} +8 -7
- package/es-modules/{indicators/indicators.src.js → Stock/Indicators/SMAIndicator.js} +12 -8
- package/es-modules/{indicators/slow-stochastic.src.js → Stock/Indicators/SlowStochasticIndicator.js} +6 -8
- package/es-modules/{indicators/stochastic.src.js → Stock/Indicators/StochasticIndicator.js} +9 -9
- package/es-modules/{indicators/supertrend.src.js → Stock/Indicators/SupertrendIndicator.js} +8 -7
- package/es-modules/{indicators/tema.src.js → Stock/Indicators/TEMAIndicator.js} +8 -8
- package/es-modules/{indicators/trix.src.js → Stock/Indicators/TRIXIndicator.js} +8 -8
- package/es-modules/{indicators/trendline.src.js → Stock/Indicators/TrendLineIndicator.js} +5 -4
- package/es-modules/{indicators/volume-by-price.src.js → Stock/Indicators/VBPIndicator.js} +10 -7
- package/es-modules/{indicators/vwap.src.js → Stock/Indicators/VWAPIndicator.js} +5 -4
- package/es-modules/{indicators/wma.src.js → Stock/Indicators/WMAIndicator.js} +5 -4
- package/es-modules/{indicators/williams-r.src.js → Stock/Indicators/WilliamsRIndicator.js} +7 -6
- package/es-modules/{indicators/zigzag.src.js → Stock/Indicators/ZigzagIndicator.js} +5 -7
- package/es-modules/{modules/stock-tools-bindings.js → Stock/StockToolsBindings.js} +22 -7
- package/es-modules/{modules/stock-tools-gui.js → Stock/StockToolsGui.js} +17 -17
- package/es-modules/error-messages.js +7 -2
- package/es-modules/highcharts.src.js +19853 -0
- package/es-modules/masters/highcharts-3d.src.js +11 -12
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +15 -15
- package/es-modules/masters/highcharts.src.js +28 -27
- 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 +2 -2
- package/es-modules/masters/indicators/accumulation-distribution.src.js +2 -2
- package/es-modules/masters/indicators/ao.src.js +2 -2
- package/es-modules/masters/indicators/apo.src.js +2 -2
- package/es-modules/masters/indicators/aroon-oscillator.src.js +2 -2
- package/es-modules/masters/indicators/aroon.src.js +2 -2
- package/es-modules/masters/indicators/atr.src.js +2 -2
- package/es-modules/masters/indicators/bollinger-bands.src.js +2 -2
- package/es-modules/masters/indicators/cci.src.js +2 -2
- package/es-modules/masters/indicators/chaikin.src.js +2 -2
- package/es-modules/masters/indicators/cmf.src.js +2 -2
- package/es-modules/masters/indicators/dema.src.js +2 -2
- package/es-modules/masters/indicators/dpo.src.js +2 -2
- package/es-modules/masters/indicators/ema.src.js +2 -2
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +2 -2
- package/es-modules/masters/indicators/indicators-all.src.js +41 -41
- package/es-modules/masters/indicators/indicators.src.js +2 -2
- package/es-modules/masters/indicators/keltner-channels.src.js +2 -2
- package/es-modules/masters/indicators/macd.src.js +2 -2
- package/es-modules/masters/indicators/mfi.src.js +2 -2
- package/es-modules/masters/indicators/momentum.src.js +2 -2
- package/es-modules/masters/indicators/natr.src.js +2 -2
- package/es-modules/masters/indicators/pivot-points.src.js +2 -2
- package/es-modules/masters/indicators/ppo.src.js +2 -2
- package/es-modules/masters/indicators/price-channel.src.js +2 -2
- package/es-modules/masters/indicators/price-envelopes.src.js +2 -2
- package/es-modules/masters/indicators/psar.src.js +2 -2
- package/es-modules/masters/indicators/regressions.src.js +2 -2
- package/es-modules/masters/indicators/roc.src.js +2 -2
- package/es-modules/masters/indicators/rsi.src.js +2 -2
- package/es-modules/masters/indicators/slow-stochastic.src.js +2 -2
- package/es-modules/masters/indicators/stochastic.src.js +2 -2
- package/es-modules/masters/indicators/supertrend.src.js +2 -2
- package/es-modules/masters/indicators/tema.src.js +2 -2
- package/es-modules/masters/indicators/trendline.src.js +2 -2
- package/es-modules/masters/indicators/trix.src.js +2 -2
- package/es-modules/masters/indicators/volume-by-price.src.js +2 -2
- package/es-modules/masters/indicators/vwap.src.js +2 -2
- package/es-modules/masters/indicators/williams-r.src.js +2 -2
- package/es-modules/masters/indicators/wma.src.js +2 -2
- package/es-modules/masters/indicators/zigzag.src.js +2 -2
- package/es-modules/masters/modules/accessibility.src.js +2 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +13 -13
- package/es-modules/masters/modules/annotations.src.js +4 -4
- package/es-modules/masters/modules/arrow-symbols.src.js +2 -2
- package/es-modules/masters/modules/boost-canvas.src.js +2 -2
- package/es-modules/masters/modules/boost.src.js +2 -2
- package/es-modules/masters/modules/broken-axis.src.js +2 -2
- package/es-modules/masters/modules/bullet.src.js +2 -2
- package/es-modules/masters/modules/coloraxis.src.js +2 -2
- package/es-modules/masters/modules/current-date-indicator.src.js +2 -2
- package/es-modules/masters/modules/cylinder.src.js +2 -2
- package/es-modules/masters/modules/data.src.js +2 -2
- package/es-modules/masters/modules/datagrouping.src.js +2 -2
- package/es-modules/masters/modules/debugger.src.js +2 -2
- package/es-modules/masters/modules/dependency-wheel.src.js +2 -2
- package/es-modules/masters/modules/dotplot.src.js +2 -2
- package/es-modules/masters/modules/drag-panes.src.js +2 -2
- package/es-modules/masters/modules/draggable-points.src.js +2 -2
- package/es-modules/masters/modules/drilldown.src.js +2 -2
- package/es-modules/masters/modules/dumbbell.src.js +2 -2
- package/es-modules/masters/modules/export-data.src.js +2 -2
- package/es-modules/masters/modules/exporting.src.js +3 -3
- package/es-modules/masters/modules/full-screen.src.js +2 -2
- package/es-modules/masters/modules/funnel.src.js +2 -2
- package/es-modules/masters/modules/funnel3d.src.js +2 -2
- package/es-modules/masters/modules/gantt.src.js +6 -6
- package/es-modules/masters/modules/grid-axis.src.js +2 -2
- package/es-modules/masters/modules/heatmap.src.js +4 -4
- package/es-modules/masters/modules/histogram-bellcurve.src.js +3 -3
- package/es-modules/masters/modules/item-series.src.js +2 -2
- package/es-modules/masters/modules/lollipop.src.js +2 -2
- package/es-modules/masters/modules/map.src.js +13 -13
- package/es-modules/masters/modules/marker-clusters.src.js +2 -2
- package/es-modules/masters/modules/networkgraph.src.js +2 -2
- package/es-modules/masters/modules/no-data-to-display.src.js +2 -2
- package/es-modules/masters/modules/offline-exporting.src.js +2 -2
- package/es-modules/masters/modules/oldie-polyfills.src.js +2 -2
- package/es-modules/masters/modules/oldie.src.js +2 -2
- package/es-modules/masters/modules/organization.src.js +2 -2
- package/es-modules/masters/modules/overlapping-datalabels.src.js +2 -2
- package/es-modules/masters/modules/parallel-coordinates.src.js +2 -2
- package/es-modules/masters/modules/pareto.src.js +2 -2
- package/es-modules/masters/modules/pathfinder.src.js +2 -2
- package/es-modules/masters/modules/pattern-fill.src.js +2 -2
- package/es-modules/masters/modules/price-indicator.src.js +2 -2
- package/es-modules/masters/modules/pyramid3d.src.js +2 -2
- package/es-modules/masters/modules/sankey.src.js +2 -2
- package/es-modules/masters/modules/series-label.src.js +2 -2
- package/es-modules/masters/modules/solid-gauge.src.js +2 -2
- package/es-modules/masters/modules/sonification.src.js +2 -2
- package/es-modules/masters/modules/static-scale.src.js +2 -2
- package/es-modules/masters/modules/stock-tools.src.js +3 -3
- package/es-modules/masters/modules/stock.src.js +10 -10
- package/es-modules/masters/modules/streamgraph.src.js +2 -2
- package/es-modules/masters/modules/sunburst.src.js +2 -2
- package/es-modules/masters/modules/tilemap.src.js +2 -2
- package/es-modules/masters/modules/timeline.src.js +2 -2
- package/es-modules/masters/modules/treegrid.src.js +2 -2
- package/es-modules/masters/modules/treemap.src.js +2 -2
- package/es-modules/masters/modules/variable-pie.src.js +2 -2
- package/es-modules/masters/modules/variwide.src.js +2 -2
- package/es-modules/masters/modules/vector.src.js +2 -2
- package/es-modules/masters/modules/venn.src.js +2 -2
- package/es-modules/masters/modules/windbarb.src.js +2 -2
- package/es-modules/masters/modules/wordcloud.src.js +2 -2
- package/es-modules/masters/modules/xrange.src.js +2 -2
- package/es-modules/masters/themes/avocado.src.js +2 -2
- package/es-modules/masters/themes/dark-blue.src.js +2 -2
- package/es-modules/masters/themes/dark-green.src.js +2 -2
- package/es-modules/masters/themes/dark-unica.src.js +2 -2
- package/es-modules/masters/themes/gray.src.js +2 -2
- package/es-modules/masters/themes/grid-light.src.js +2 -2
- package/es-modules/masters/themes/grid.src.js +2 -2
- package/es-modules/masters/themes/high-contrast-dark.src.js +2 -2
- package/es-modules/masters/themes/high-contrast-light.src.js +2 -2
- package/es-modules/masters/themes/sand-signika.src.js +2 -2
- package/es-modules/masters/themes/skies.src.js +2 -2
- package/es-modules/masters/themes/sunset.src.js +2 -2
- package/highcharts-3d.js +86 -88
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +1713 -1615
- package/highcharts-gantt.js +730 -697
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +11747 -10110
- package/highcharts-more.js +164 -161
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +766 -523
- package/highcharts.d.ts +7728 -1337
- package/highcharts.js +538 -515
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +7728 -1337
- package/highcharts.src.js +8517 -7691
- package/highmaps.js +636 -612
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +9151 -8209
- package/highstock.js +697 -671
- package/highstock.js.map +1 -1
- package/highstock.src.js +8919 -8049
- package/indicators/acceleration-bands.js +8 -8
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +8 -8
- package/indicators/accumulation-distribution.js +4 -4
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +5 -5
- package/indicators/ao.js +5 -5
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +6 -6
- package/indicators/apo.js +5 -5
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +8 -9
- package/indicators/aroon-oscillator.js +8 -8
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +8 -9
- package/indicators/aroon.js +7 -7
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +7 -7
- package/indicators/atr.js +4 -4
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +6 -14
- package/indicators/bollinger-bands.js +8 -8
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +8 -8
- package/indicators/cci.js +4 -4
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +5 -5
- package/indicators/chaikin.js +6 -6
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +75 -75
- package/indicators/cmf.js +4 -4
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +4 -4
- package/indicators/dema.js +5 -5
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +8 -9
- package/indicators/dpo.js +4 -4
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +5 -5
- package/indicators/ema.js +4 -4
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +4 -5
- package/indicators/ichimoku-kinko-hyo.js +13 -13
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +21 -20
- package/indicators/indicators-all.js +119 -118
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +231 -240
- package/indicators/indicators.js +9 -9
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +9 -9
- package/indicators/keltner-channels.js +8 -8
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +13 -10
- package/indicators/macd.js +10 -10
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +8 -7
- package/indicators/mfi.js +4 -4
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +5 -5
- package/indicators/momentum.js +4 -4
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +5 -5
- package/indicators/natr.js +3 -3
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +5 -5
- package/indicators/pivot-points.js +8 -8
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +6 -6
- package/indicators/ppo.js +5 -5
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +8 -9
- package/indicators/price-channel.js +8 -8
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +66 -66
- package/indicators/price-envelopes.js +6 -6
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +6 -6
- package/indicators/psar.js +3 -3
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +4 -4
- package/indicators/regressions.js +6 -6
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +8 -8
- package/indicators/roc.js +3 -3
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +5 -5
- package/indicators/rsi.js +4 -4
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +5 -5
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +7 -7
- package/indicators/stochastic.js +9 -9
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +67 -67
- package/indicators/supertrend.js +9 -9
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +9 -7
- package/indicators/tema.js +6 -6
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +8 -9
- package/indicators/trendline.js +3 -3
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +5 -5
- package/indicators/trix.js +4 -4
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +8 -8
- package/indicators/volume-by-price.js +13 -13
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +7 -8
- package/indicators/vwap.js +4 -4
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +5 -5
- package/indicators/williams-r.js +4 -4
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +7 -7
- package/indicators/wma.js +4 -4
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +5 -5
- package/indicators/zigzag.js +4 -4
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +6 -7
- package/modules/accessibility.d.ts +0 -35
- package/modules/accessibility.js +171 -168
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.d.ts +0 -35
- package/modules/accessibility.src.js +369 -252
- package/modules/annotations-advanced.js +158 -136
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +1929 -1263
- package/modules/annotations.js +105 -94
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +1485 -1101
- package/modules/arrow-symbols.js +4 -4
- package/modules/arrow-symbols.js.map +1 -1
- package/modules/arrow-symbols.src.js +10 -12
- package/modules/boost-canvas.js +15 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +17 -17
- package/modules/boost.d.ts +4 -0
- package/modules/boost.js +77 -64
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.d.ts +4 -0
- package/modules/boost.src.js +581 -33
- package/modules/broken-axis.js +10 -10
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +4 -5
- package/modules/bullet.js +6 -6
- package/modules/bullet.js.map +1 -1
- package/modules/bullet.src.js +8 -8
- package/modules/coloraxis.js +22 -21
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +67 -59
- package/modules/current-date-indicator.js +3 -3
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +4 -5
- package/modules/cylinder.js +8 -8
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +21 -23
- package/modules/data.d.ts +2 -2
- package/modules/data.js +32 -32
- package/modules/data.js.map +1 -1
- package/modules/data.src.d.ts +2 -2
- package/modules/data.src.js +26 -25
- package/modules/datagrouping.js +17 -17
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +6 -7
- package/modules/debugger.js +5 -5
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +13 -8
- package/modules/dependency-wheel.js +8 -8
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +10 -10
- package/modules/dotplot.js +5 -5
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +6 -14
- package/modules/drag-panes.js +10 -10
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +4 -6
- package/modules/draggable-points.js +33 -33
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +22 -35
- package/modules/drilldown.d.ts +1 -1
- package/modules/drilldown.js +23 -22
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +1 -1
- package/modules/drilldown.src.js +66 -53
- package/modules/dumbbell.d.ts +4 -0
- package/modules/dumbbell.js +24 -9
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.d.ts +4 -0
- package/modules/dumbbell.src.js +1029 -104
- package/modules/export-data.d.ts +4 -29
- package/modules/export-data.js +21 -21
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.d.ts +4 -29
- package/modules/export-data.src.js +155 -189
- package/modules/exporting.d.ts +2 -0
- package/modules/exporting.js +33 -33
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.d.ts +2 -0
- package/modules/exporting.src.js +40 -30
- package/modules/full-screen.js +7 -7
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +4 -3
- package/modules/funnel.js +9 -9
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +14 -15
- package/modules/funnel3d.js +17 -17
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +12 -14
- package/modules/gantt.js +194 -183
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +2071 -1260
- package/modules/grid-axis.js +22 -19
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +149 -43
- package/modules/heatmap.js +33 -32
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +130 -114
- package/modules/histogram-bellcurve.js +10 -10
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +57 -16
- package/modules/item-series.js +9 -9
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +20 -13
- package/modules/lollipop.d.ts +20 -1
- package/modules/lollipop.js +26 -4
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.d.ts +20 -1
- package/modules/lollipop.src.js +1452 -10
- package/modules/map.d.ts +2 -2
- package/modules/map.js +99 -98
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +2 -2
- package/modules/map.src.js +1442 -1326
- package/modules/marker-clusters.js +35 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +31 -51
- package/modules/networkgraph.js +47 -46
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +98 -81
- 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 +17 -13
- package/modules/offline-exporting.js +15 -15
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +63 -46
- package/modules/oldie-polyfills.js +6 -6
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +7 -2
- package/modules/oldie.js +52 -26
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +1411 -34
- package/modules/organization.js +11 -11
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +7 -6
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +11 -11
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +144 -136
- package/modules/pareto.js +5 -5
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +8 -9
- package/modules/pathfinder.js +31 -27
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +1589 -985
- package/modules/pattern-fill.js +13 -13
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +25 -21
- package/modules/price-indicator.js +4 -4
- package/modules/price-indicator.js.map +1 -1
- package/modules/price-indicator.src.js +5 -3
- package/modules/pyramid3d.js +3 -3
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +4 -5
- package/modules/sankey.js +25 -26
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +39 -36
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +17 -17
- package/modules/solid-gauge.js +8 -8
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +123 -91
- package/modules/sonification.d.ts +33 -16
- package/modules/sonification.js +55 -49
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.d.ts +33 -16
- package/modules/sonification.src.js +361 -115
- package/modules/static-scale.js +4 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +3 -4
- package/modules/stock-tools.d.ts +23 -1
- package/modules/stock-tools.js +150 -84
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.d.ts +23 -1
- package/modules/stock-tools.src.js +3792 -44
- package/modules/stock.js +161 -158
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +456 -412
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.js.map +1 -1
- package/modules/streamgraph.src.js +42 -5
- package/modules/sunburst.js +51 -49
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +152 -52
- package/modules/tilemap.js +14 -14
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +12 -11
- package/modules/timeline.js +14 -14
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +19 -18
- package/modules/treegrid.js +57 -52
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +236 -60
- package/modules/treemap.js +35 -34
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +213 -118
- package/modules/variable-pie.js +8 -8
- package/modules/variable-pie.js.map +1 -1
- package/modules/variable-pie.src.js +12 -10
- package/modules/variwide.js +8 -8
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +8 -8
- package/modules/vector.js +6 -6
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +9 -9
- package/modules/venn.js +26 -26
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +49 -37
- package/modules/windbarb.js +11 -11
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +11 -12
- package/modules/wordcloud.js +19 -19
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +26 -18
- package/modules/xrange.js +12 -12
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +19 -20
- package/package.json +1 -1
- package/themes/avocado.js +3 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +5 -4
- package/themes/dark-blue.js +3 -3
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +4 -3
- package/themes/dark-green.js +3 -3
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +4 -3
- package/themes/dark-unica.js +7 -7
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +6 -6
- package/themes/gray.js +3 -3
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +5 -4
- package/themes/grid-light.js +4 -4
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +4 -3
- package/themes/grid.js +3 -3
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +4 -3
- package/themes/high-contrast-dark.js +6 -6
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +5 -4
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.js +4 -3
- package/themes/sand-signika.js +5 -5
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +4 -3
- package/themes/skies.js +4 -4
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +5 -4
- package/themes/sunset.js +3 -3
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +5 -4
- package/es-modules/annotations/controllable/ControllableCircle.js +0 -79
- package/es-modules/annotations/controllable/ControllableImage.js +0 -79
- package/es-modules/annotations/controllable/ControllableRect.js +0 -82
- package/es-modules/annotations/types/InfinityLine.js +0 -110
- package/es-modules/masters/modules/map-parser.src.js +0 -12
- package/es-modules/modules/accessibility/components/InfoRegionsComponent/AnnotationsA11y.js +0 -80
- package/es-modules/modules/accessibility/components/InfoRegionsComponent/InfoRegionsComponent.js +0 -499
- package/es-modules/modules/accessibility/components/SeriesComponent/forcedMarkers.js +0 -147
- package/es-modules/modules/map-parser.src.js +0 -365
- package/es-modules/modules/sonification/options.js +0 -36
- package/es-modules/parts-3d/Chart.js +0 -1577
- package/es-modules/parts-3d/VMLRenderer.js +0 -35
- package/es-modules/parts-gantt/PathfinderAlgorithms.js +0 -656
- package/modules/map-parser.d.ts +0 -17
- package/modules/map-parser.js +0 -17
- package/modules/map-parser.js.map +0 -1
- package/modules/map-parser.src.d.ts +0 -17
- package/modules/map-parser.src.js +0 -421
|
@@ -8,7 +8,20 @@
|
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
|
-
import
|
|
11
|
+
import A from '../Animation/AnimationUtilities.js';
|
|
12
|
+
var animate = A.animate, animObject = A.animObject, setAnimation = A.setAnimation;
|
|
13
|
+
import Axis from '../Axis/Axis.js';
|
|
14
|
+
import BaseSeries from '../Series/Series.js';
|
|
15
|
+
import H from '../Globals.js';
|
|
16
|
+
var charts = H.charts, doc = H.doc, win = H.win;
|
|
17
|
+
import Legend from '../Legend.js';
|
|
18
|
+
import MSPointer from '../MSPointer.js';
|
|
19
|
+
import O from '../Options.js';
|
|
20
|
+
var defaultOptions = O.defaultOptions;
|
|
21
|
+
import Pointer from '../Pointer.js';
|
|
22
|
+
import Time from '../Time.js';
|
|
23
|
+
import U from '../Utilities.js';
|
|
24
|
+
var addEvent = U.addEvent, attr = U.attr, createElement = U.createElement, css = U.css, defined = U.defined, discardElement = U.discardElement, erase = U.erase, error = U.error, extend = U.extend, find = U.find, fireEvent = U.fireEvent, getStyle = U.getStyle, isArray = U.isArray, isFunction = U.isFunction, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, merge = U.merge, numberFormat = U.numberFormat, objectEach = U.objectEach, pick = U.pick, pInt = U.pInt, relativeLength = U.relativeLength, removeEvent = U.removeEvent, splat = U.splat, syncTimeout = U.syncTimeout, uniqueKey = U.uniqueKey;
|
|
12
25
|
/**
|
|
13
26
|
* Callback for chart constructors.
|
|
14
27
|
*
|
|
@@ -98,17 +111,7 @@ import H from './Globals.js';
|
|
|
98
111
|
* more operations on the chart, it is a good idea to set redraw to false
|
|
99
112
|
* and call {@link Chart#redraw} after.
|
|
100
113
|
*/
|
|
101
|
-
|
|
102
|
-
import MSPointer from './MSPointer.js';
|
|
103
|
-
import Pointer from './Pointer.js';
|
|
104
|
-
import Time from './Time.js';
|
|
105
|
-
import U from './Utilities.js';
|
|
106
|
-
var addEvent = U.addEvent, animate = U.animate, animObject = U.animObject, attr = U.attr, createElement = U.createElement, css = U.css, defined = U.defined, discardElement = U.discardElement, erase = U.erase, error = U.error, extend = U.extend, find = U.find, fireEvent = U.fireEvent, getStyle = U.getStyle, isArray = U.isArray, isFunction = U.isFunction, isNumber = U.isNumber, isObject = U.isObject, isString = U.isString, merge = U.merge, numberFormat = U.numberFormat, objectEach = U.objectEach, pick = U.pick, pInt = U.pInt, relativeLength = U.relativeLength, removeEvent = U.removeEvent, setAnimation = U.setAnimation, splat = U.splat, syncTimeout = U.syncTimeout, uniqueKey = U.uniqueKey;
|
|
107
|
-
import './Axis.js';
|
|
108
|
-
import './Options.js';
|
|
109
|
-
import './Pointer.js';
|
|
110
|
-
var doc = H.doc, Axis = H.Axis, // @todo add as requirement
|
|
111
|
-
defaultOptions = H.defaultOptions, charts = H.charts, marginNames = H.marginNames, seriesTypes = H.seriesTypes, win = H.win;
|
|
114
|
+
var marginNames = H.marginNames;
|
|
112
115
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
113
116
|
/**
|
|
114
117
|
* The Chart class. The recommended constructor is {@link Highcharts#chart}.
|
|
@@ -138,46 +141,48 @@ defaultOptions = H.defaultOptions, charts = H.charts, marginNames = H.marginName
|
|
|
138
141
|
* [chart.events.load](https://api.highcharts.com/highcharts/chart.events.load)
|
|
139
142
|
* handler is equivalent.
|
|
140
143
|
*/
|
|
141
|
-
var Chart =
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
144
|
+
var Chart = /** @class */ (function () {
|
|
145
|
+
function Chart(a, b, c) {
|
|
146
|
+
this.axes = void 0;
|
|
147
|
+
this.axisOffset = void 0;
|
|
148
|
+
this.bounds = void 0;
|
|
149
|
+
this.chartHeight = void 0;
|
|
150
|
+
this.chartWidth = void 0;
|
|
151
|
+
this.clipBox = void 0;
|
|
152
|
+
this.colorCounter = void 0;
|
|
153
|
+
this.container = void 0;
|
|
154
|
+
this.index = void 0;
|
|
155
|
+
this.isResizing = void 0;
|
|
156
|
+
this.labelCollectors = void 0;
|
|
157
|
+
this.legend = void 0;
|
|
158
|
+
this.margin = void 0;
|
|
159
|
+
this.numberFormatter = void 0;
|
|
160
|
+
this.options = void 0;
|
|
161
|
+
this.plotBox = void 0;
|
|
162
|
+
this.plotHeight = void 0;
|
|
163
|
+
this.plotLeft = void 0;
|
|
164
|
+
this.plotTop = void 0;
|
|
165
|
+
this.plotWidth = void 0;
|
|
166
|
+
this.pointCount = void 0;
|
|
167
|
+
this.pointer = void 0;
|
|
168
|
+
this.renderer = void 0;
|
|
169
|
+
this.renderTo = void 0;
|
|
170
|
+
this.series = void 0;
|
|
171
|
+
this.spacing = void 0;
|
|
172
|
+
this.spacingBox = void 0;
|
|
173
|
+
this.symbolCounter = void 0;
|
|
174
|
+
this.time = void 0;
|
|
175
|
+
this.titleOffset = void 0;
|
|
176
|
+
this.userOptions = void 0;
|
|
177
|
+
this.xAxis = void 0;
|
|
178
|
+
this.yAxis = void 0;
|
|
179
|
+
this.getArgs(a, b, c);
|
|
180
|
+
}
|
|
181
|
+
/* *
|
|
182
|
+
*
|
|
183
|
+
* Functions
|
|
184
|
+
*
|
|
185
|
+
* */
|
|
181
186
|
/**
|
|
182
187
|
* Handle the arguments passed to the constructor.
|
|
183
188
|
*
|
|
@@ -185,23 +190,22 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
185
190
|
* @function Highcharts.Chart#getArgs
|
|
186
191
|
*
|
|
187
192
|
* @param {...Array<*>} arguments
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* @return {Array<*>}
|
|
191
|
-
* Passed arguments without renderTo.
|
|
193
|
+
* All arguments for the constructor.
|
|
192
194
|
*
|
|
193
195
|
* @fires Highcharts.Chart#event:init
|
|
194
196
|
* @fires Highcharts.Chart#event:afterInit
|
|
195
197
|
*/
|
|
196
|
-
getArgs
|
|
197
|
-
var args = [].slice.call(arguments);
|
|
198
|
+
Chart.prototype.getArgs = function (a, b, c) {
|
|
198
199
|
// Remove the optional first argument, renderTo, and
|
|
199
200
|
// set it on this.
|
|
200
|
-
if (isString(
|
|
201
|
-
this.renderTo =
|
|
201
|
+
if (isString(a) || a.nodeName) {
|
|
202
|
+
this.renderTo = a;
|
|
203
|
+
this.init(b, c);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
this.init(a, b);
|
|
202
207
|
}
|
|
203
|
-
|
|
204
|
-
},
|
|
208
|
+
};
|
|
205
209
|
/**
|
|
206
210
|
* Overridable function that initializes the chart. The constructor's
|
|
207
211
|
* arguments are passed on directly.
|
|
@@ -220,7 +224,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
220
224
|
* @fires Highcharts.Chart#event:init
|
|
221
225
|
* @fires Highcharts.Chart#event:afterInit
|
|
222
226
|
*/
|
|
223
|
-
init
|
|
227
|
+
Chart.prototype.init = function (userOptions, callback) {
|
|
224
228
|
// Handle regular options
|
|
225
229
|
var options,
|
|
226
230
|
// skip merging data points to increase performance
|
|
@@ -363,64 +367,57 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
363
367
|
fireEvent(chart, 'afterInit');
|
|
364
368
|
chart.firstRender();
|
|
365
369
|
});
|
|
366
|
-
}
|
|
370
|
+
};
|
|
367
371
|
/**
|
|
368
372
|
* Internal function to unitialize an individual series.
|
|
369
373
|
*
|
|
370
374
|
* @private
|
|
371
375
|
* @function Highcharts.Chart#initSeries
|
|
372
|
-
*
|
|
373
|
-
* @param {Highcharts.SeriesOptions} options
|
|
374
|
-
*
|
|
375
|
-
* @return {Highcharts.Series}
|
|
376
376
|
*/
|
|
377
|
-
initSeries
|
|
377
|
+
Chart.prototype.initSeries = function (options) {
|
|
378
378
|
var chart = this, optionsChart = chart.options.chart, type = (options.type ||
|
|
379
379
|
optionsChart.type ||
|
|
380
|
-
optionsChart.defaultSeriesType), series, Constr = seriesTypes[type];
|
|
380
|
+
optionsChart.defaultSeriesType), series, Constr = BaseSeries.seriesTypes[type];
|
|
381
381
|
// No such series type
|
|
382
382
|
if (!Constr) {
|
|
383
383
|
error(17, true, chart, { missingModuleFor: type });
|
|
384
384
|
}
|
|
385
|
-
series = new Constr();
|
|
386
|
-
series.init
|
|
385
|
+
series = new Constr(chart, options);
|
|
386
|
+
if (typeof series.init === 'function') {
|
|
387
|
+
series.init(this, options);
|
|
388
|
+
}
|
|
387
389
|
return series;
|
|
388
|
-
}
|
|
390
|
+
};
|
|
389
391
|
/**
|
|
390
392
|
* Internal function to set data for all series with enabled sorting.
|
|
391
393
|
*
|
|
392
394
|
* @private
|
|
393
395
|
* @function Highcharts.Chart#setSeriesData
|
|
394
|
-
*
|
|
395
|
-
* @param {Highcharts.SeriesOptions} options
|
|
396
|
-
*
|
|
397
|
-
* @return {void}
|
|
398
396
|
*/
|
|
399
|
-
setSeriesData
|
|
397
|
+
Chart.prototype.setSeriesData = function () {
|
|
400
398
|
this.getSeriesOrderByLinks().forEach(function (series) {
|
|
401
399
|
// We need to set data for series with sorting after series init
|
|
402
400
|
if (!series.points && !series.data && series.enabledDataSorting) {
|
|
403
401
|
series.setData(series.options.data, false);
|
|
404
402
|
}
|
|
405
403
|
});
|
|
406
|
-
}
|
|
404
|
+
};
|
|
407
405
|
/**
|
|
408
406
|
* Sort and return chart series in order depending on the number of linked
|
|
409
407
|
* series.
|
|
410
408
|
*
|
|
411
409
|
* @private
|
|
412
410
|
* @function Highcharts.Series#getSeriesOrderByLinks
|
|
413
|
-
*
|
|
414
411
|
* @return {Array<Highcharts.Series>}
|
|
415
412
|
*/
|
|
416
|
-
getSeriesOrderByLinks
|
|
413
|
+
Chart.prototype.getSeriesOrderByLinks = function () {
|
|
417
414
|
return this.series.concat().sort(function (a, b) {
|
|
418
415
|
if (a.linkedSeries.length || b.linkedSeries.length) {
|
|
419
416
|
return b.linkedSeries.length - a.linkedSeries.length;
|
|
420
417
|
}
|
|
421
418
|
return 0;
|
|
422
419
|
});
|
|
423
|
-
}
|
|
420
|
+
};
|
|
424
421
|
/**
|
|
425
422
|
* Order all series above a given index. When series are added and ordered
|
|
426
423
|
* by configuration, only the last series is handled (#248, #1123, #2456,
|
|
@@ -429,10 +426,9 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
429
426
|
* @private
|
|
430
427
|
* @function Highcharts.Series#orderSeries
|
|
431
428
|
* @param {number} [fromIndex]
|
|
432
|
-
*
|
|
433
|
-
* @return {void}
|
|
429
|
+
* If this is given, only the series above this index are handled.
|
|
434
430
|
*/
|
|
435
|
-
orderSeries
|
|
431
|
+
Chart.prototype.orderSeries = function (fromIndex) {
|
|
436
432
|
var series = this.series, i = fromIndex || 0;
|
|
437
433
|
for (; i < series.length; i++) {
|
|
438
434
|
if (series[i]) {
|
|
@@ -447,25 +443,25 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
447
443
|
series[i].name = series[i].getName();
|
|
448
444
|
}
|
|
449
445
|
}
|
|
450
|
-
}
|
|
446
|
+
};
|
|
451
447
|
/**
|
|
452
448
|
* Check whether a given point is within the plot area.
|
|
453
449
|
*
|
|
454
450
|
* @function Highcharts.Chart#isInsidePlot
|
|
455
451
|
*
|
|
456
452
|
* @param {number} plotX
|
|
457
|
-
*
|
|
453
|
+
* Pixel x relative to the plot area.
|
|
458
454
|
*
|
|
459
455
|
* @param {number} plotY
|
|
460
|
-
*
|
|
456
|
+
* Pixel y relative to the plot area.
|
|
461
457
|
*
|
|
462
458
|
* @param {boolean} [inverted]
|
|
463
|
-
*
|
|
459
|
+
* Whether the chart is inverted.
|
|
464
460
|
*
|
|
465
461
|
* @return {boolean}
|
|
466
|
-
*
|
|
462
|
+
* Returns true if the given point is inside the plot area.
|
|
467
463
|
*/
|
|
468
|
-
isInsidePlot
|
|
464
|
+
Chart.prototype.isInsidePlot = function (plotX, plotY, inverted) {
|
|
469
465
|
var x = inverted ? plotY : plotX, y = inverted ? plotX : plotY, e = {
|
|
470
466
|
x: x,
|
|
471
467
|
y: y,
|
|
@@ -476,7 +472,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
476
472
|
};
|
|
477
473
|
fireEvent(this, 'afterIsInsidePlot', e);
|
|
478
474
|
return e.isInsidePlot;
|
|
479
|
-
}
|
|
475
|
+
};
|
|
480
476
|
/**
|
|
481
477
|
* Redraw the chart after changes have been done to the data, axis extremes
|
|
482
478
|
* chart size or chart elements. All methods for updating axes, series or
|
|
@@ -488,10 +484,8 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
488
484
|
*
|
|
489
485
|
* @function Highcharts.Chart#redraw
|
|
490
486
|
*
|
|
491
|
-
* @param {boolean|Highcharts.AnimationOptionsObject} [animation]
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
* @return {void}
|
|
487
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
488
|
+
* If or how to apply animation to the redraw.
|
|
495
489
|
*
|
|
496
490
|
* @fires Highcharts.Chart#event:afterSetExtremes
|
|
497
491
|
* @fires Highcharts.Chart#event:beforeRedraw
|
|
@@ -500,7 +494,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
500
494
|
* @fires Highcharts.Chart#event:render
|
|
501
495
|
* @fires Highcharts.Chart#event:updatedData
|
|
502
496
|
*/
|
|
503
|
-
redraw
|
|
497
|
+
Chart.prototype.redraw = function (animation) {
|
|
504
498
|
fireEvent(this, 'beforeRedraw');
|
|
505
499
|
var chart = this, axes = chart.axes, series = chart.series, pointer = chart.pointer, legend = chart.legend, legendUserOptions = chart.userOptions.legend, redrawLegend = chart.isDirtyLegend, hasStackedSeries, hasDirtyStacks, hasCartesianSeries = chart.hasCartesianSeries, isDirtyBox = chart.isDirtyBox, i, serie, renderer = chart.renderer, isHiddenChart = renderer.isHidden(), afterRedraw = [];
|
|
506
500
|
// Handle responsive rules, not only on resize (#6130)
|
|
@@ -541,7 +535,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
541
535
|
series.forEach(function (serie) {
|
|
542
536
|
if (serie.isDirty) {
|
|
543
537
|
if (serie.options.legendType === 'point') {
|
|
544
|
-
if (serie.updateTotals) {
|
|
538
|
+
if (typeof serie.updateTotals === 'function') {
|
|
545
539
|
serie.updateTotals();
|
|
546
540
|
}
|
|
547
541
|
redrawLegend = true;
|
|
@@ -569,8 +563,13 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
569
563
|
if (hasCartesianSeries) {
|
|
570
564
|
// set axes scales
|
|
571
565
|
axes.forEach(function (axis) {
|
|
572
|
-
|
|
573
|
-
|
|
566
|
+
// Don't do setScale again if we're only resizing. Regression
|
|
567
|
+
// #13507. But we need it after chart.update (responsive), as
|
|
568
|
+
// axis is initialized again (#12137).
|
|
569
|
+
if (!chart.isResizing || !isNumber(axis.min)) {
|
|
570
|
+
axis.updateNames();
|
|
571
|
+
axis.setScale();
|
|
572
|
+
}
|
|
574
573
|
});
|
|
575
574
|
}
|
|
576
575
|
chart.getMargins(); // #3098
|
|
@@ -630,7 +629,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
630
629
|
afterRedraw.forEach(function (callback) {
|
|
631
630
|
callback.call();
|
|
632
631
|
});
|
|
633
|
-
}
|
|
632
|
+
};
|
|
634
633
|
/**
|
|
635
634
|
* Get an axis, series or point object by `id` as given in the configuration
|
|
636
635
|
* options. Returns `undefined` if no item is found.
|
|
@@ -641,12 +640,12 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
641
640
|
* @function Highcharts.Chart#get
|
|
642
641
|
*
|
|
643
642
|
* @param {string} id
|
|
644
|
-
*
|
|
643
|
+
* The id as given in the configuration options.
|
|
645
644
|
*
|
|
646
645
|
* @return {Highcharts.Axis|Highcharts.Series|Highcharts.Point|undefined}
|
|
647
|
-
*
|
|
646
|
+
* The retrieved item.
|
|
648
647
|
*/
|
|
649
|
-
get
|
|
648
|
+
Chart.prototype.get = function (id) {
|
|
650
649
|
var ret, series = this.series, i;
|
|
651
650
|
/**
|
|
652
651
|
* @private
|
|
@@ -667,19 +666,16 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
667
666
|
ret = find(series[i].points || [], itemById);
|
|
668
667
|
}
|
|
669
668
|
return ret;
|
|
670
|
-
}
|
|
669
|
+
};
|
|
671
670
|
/**
|
|
672
671
|
* Create the Axis instances based on the config options.
|
|
673
672
|
*
|
|
674
673
|
* @private
|
|
675
674
|
* @function Highcharts.Chart#getAxes
|
|
676
|
-
*
|
|
677
|
-
* @return {void}
|
|
678
|
-
*
|
|
679
675
|
* @fires Highcharts.Chart#event:afterGetAxes
|
|
680
676
|
* @fires Highcharts.Chart#event:getAxes
|
|
681
677
|
*/
|
|
682
|
-
getAxes
|
|
678
|
+
Chart.prototype.getAxes = function () {
|
|
683
679
|
var chart = this, options = this.options, xAxisOptions = options.xAxis = splat(options.xAxis || {}), yAxisOptions = options.yAxis = splat(options.yAxis || {}), optionsArray;
|
|
684
680
|
fireEvent(this, 'getAxes');
|
|
685
681
|
// make sure the options are arrays and add some members
|
|
@@ -696,7 +692,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
696
692
|
new Axis(chart, axisOptions); // eslint-disable-line no-new
|
|
697
693
|
});
|
|
698
694
|
fireEvent(this, 'afterGetAxes');
|
|
699
|
-
}
|
|
695
|
+
};
|
|
700
696
|
/**
|
|
701
697
|
* Returns an array of all currently selected points in the chart. Points
|
|
702
698
|
* can be selected by clicking or programmatically by the
|
|
@@ -711,7 +707,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
711
707
|
* @return {Array<Highcharts.Point>}
|
|
712
708
|
* The currently selected points.
|
|
713
709
|
*/
|
|
714
|
-
getSelectedPoints
|
|
710
|
+
Chart.prototype.getSelectedPoints = function () {
|
|
715
711
|
var points = [];
|
|
716
712
|
this.series.forEach(function (serie) {
|
|
717
713
|
// For one-to-one points inspect series.data in order to retrieve
|
|
@@ -722,7 +718,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
722
718
|
}));
|
|
723
719
|
});
|
|
724
720
|
return points;
|
|
725
|
-
}
|
|
721
|
+
};
|
|
726
722
|
/**
|
|
727
723
|
* Returns an array of all currently selected series in the chart. Series
|
|
728
724
|
* can be selected either programmatically by the
|
|
@@ -739,11 +735,11 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
739
735
|
* @return {Array<Highcharts.Series>}
|
|
740
736
|
* The currently selected series.
|
|
741
737
|
*/
|
|
742
|
-
getSelectedSeries
|
|
738
|
+
Chart.prototype.getSelectedSeries = function () {
|
|
743
739
|
return this.series.filter(function (serie) {
|
|
744
740
|
return serie.selected;
|
|
745
741
|
});
|
|
746
|
-
}
|
|
742
|
+
};
|
|
747
743
|
/**
|
|
748
744
|
* Set a new title or subtitle for the chart.
|
|
749
745
|
*
|
|
@@ -763,31 +759,26 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
763
759
|
* @param {boolean} [redraw]
|
|
764
760
|
* Whether to redraw the chart or wait for a later call to
|
|
765
761
|
* `chart.redraw()`.
|
|
766
|
-
*
|
|
767
|
-
* @return {void}
|
|
768
762
|
*/
|
|
769
|
-
setTitle
|
|
763
|
+
Chart.prototype.setTitle = function (titleOptions, subtitleOptions, redraw) {
|
|
770
764
|
this.applyDescription('title', titleOptions);
|
|
771
765
|
this.applyDescription('subtitle', subtitleOptions);
|
|
772
766
|
// The initial call also adds the caption. On update, chart.update will
|
|
773
767
|
// relay to Chart.setCaption.
|
|
774
768
|
this.applyDescription('caption', void 0);
|
|
775
769
|
this.layOutTitles(redraw);
|
|
776
|
-
}
|
|
770
|
+
};
|
|
777
771
|
/**
|
|
778
772
|
* Apply a title, subtitle or caption for the chart
|
|
779
773
|
*
|
|
780
774
|
* @private
|
|
781
775
|
* @function Highcharts.Chart#applyDescription
|
|
782
|
-
*
|
|
783
776
|
* @param name {string}
|
|
784
|
-
*
|
|
777
|
+
* Either title, subtitle or caption
|
|
785
778
|
* @param {Highcharts.TitleOptions|Highcharts.SubtitleOptions|Highcharts.CaptionOptions|undefined} explicitOptions
|
|
786
|
-
*
|
|
787
|
-
*
|
|
788
|
-
* @return {void}
|
|
779
|
+
* The options to set, will be merged with default options.
|
|
789
780
|
*/
|
|
790
|
-
applyDescription
|
|
781
|
+
Chart.prototype.applyDescription = function (name, explicitOptions) {
|
|
791
782
|
var chart = this;
|
|
792
783
|
// Default style
|
|
793
784
|
var style = name === 'title' ? {
|
|
@@ -847,7 +838,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
847
838
|
*/
|
|
848
839
|
this[name] = elem;
|
|
849
840
|
}
|
|
850
|
-
}
|
|
841
|
+
};
|
|
851
842
|
/**
|
|
852
843
|
* Internal function to lay out the chart title, subtitle and caption, and
|
|
853
844
|
* cache the full offset height for use in `getMargins`. The result is
|
|
@@ -857,12 +848,9 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
857
848
|
* @function Highcharts.Chart#layOutTitles
|
|
858
849
|
*
|
|
859
850
|
* @param {boolean} [redraw=true]
|
|
860
|
-
*
|
|
861
|
-
* @return {void}
|
|
862
|
-
*
|
|
863
851
|
* @fires Highcharts.Chart#event:afterLayOutTitles
|
|
864
852
|
*/
|
|
865
|
-
layOutTitles
|
|
853
|
+
Chart.prototype.layOutTitles = function (redraw) {
|
|
866
854
|
var titleOffset = [0, 0, 0], requiresDirtyBox, renderer = this.renderer, spacingBox = this.spacingBox;
|
|
867
855
|
// Lay out the title and the subtitle respectively
|
|
868
856
|
['title', 'subtitle', 'caption'].forEach(function (key) {
|
|
@@ -920,7 +908,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
920
908
|
this.redraw();
|
|
921
909
|
}
|
|
922
910
|
}
|
|
923
|
-
}
|
|
911
|
+
};
|
|
924
912
|
/**
|
|
925
913
|
* Internal function to get the chart width and height according to options
|
|
926
914
|
* and container size. Sets {@link Chart.chartWidth} and
|
|
@@ -928,10 +916,8 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
928
916
|
*
|
|
929
917
|
* @private
|
|
930
918
|
* @function Highcharts.Chart#getChartSize
|
|
931
|
-
*
|
|
932
|
-
* @return {void}
|
|
933
919
|
*/
|
|
934
|
-
getChartSize
|
|
920
|
+
Chart.prototype.getChartSize = function () {
|
|
935
921
|
var chart = this, optionsChart = chart.options.chart, widthOption = optionsChart.width, heightOption = optionsChart.height, renderTo = chart.renderTo;
|
|
936
922
|
// Get inner width and height
|
|
937
923
|
if (!defined(widthOption)) {
|
|
@@ -959,7 +945,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
959
945
|
(chart.containerHeight > 1 ?
|
|
960
946
|
chart.containerHeight :
|
|
961
947
|
400));
|
|
962
|
-
}
|
|
948
|
+
};
|
|
963
949
|
/**
|
|
964
950
|
* If the renderTo element has no offsetWidth, most likely one or more of
|
|
965
951
|
* its parents are hidden. Loop up the DOM tree to temporarily display the
|
|
@@ -970,11 +956,9 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
970
956
|
* @function Highcharts.Chart#temporaryDisplay
|
|
971
957
|
*
|
|
972
958
|
* @param {boolean} [revert]
|
|
973
|
-
*
|
|
974
|
-
*
|
|
975
|
-
* @return {void}
|
|
959
|
+
* Revert to the saved original styles.
|
|
976
960
|
*/
|
|
977
|
-
temporaryDisplay
|
|
961
|
+
Chart.prototype.temporaryDisplay = function (revert) {
|
|
978
962
|
var node = this.renderTo, tempStyle;
|
|
979
963
|
if (!revert) {
|
|
980
964
|
while (node && node.style) {
|
|
@@ -1026,7 +1010,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1026
1010
|
node = node.parentNode;
|
|
1027
1011
|
}
|
|
1028
1012
|
}
|
|
1029
|
-
}
|
|
1013
|
+
};
|
|
1030
1014
|
/**
|
|
1031
1015
|
* Set the {@link Chart.container|chart container's} class name, in
|
|
1032
1016
|
* addition to `highcharts-container`.
|
|
@@ -1034,24 +1018,20 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1034
1018
|
* @function Highcharts.Chart#setClassName
|
|
1035
1019
|
*
|
|
1036
1020
|
* @param {string} [className]
|
|
1037
|
-
*
|
|
1038
|
-
* @return {void}
|
|
1021
|
+
* The additional class name.
|
|
1039
1022
|
*/
|
|
1040
|
-
setClassName
|
|
1023
|
+
Chart.prototype.setClassName = function (className) {
|
|
1041
1024
|
this.container.className = 'highcharts-container ' + (className || '');
|
|
1042
|
-
}
|
|
1025
|
+
};
|
|
1043
1026
|
/**
|
|
1044
1027
|
* Get the containing element, determine the size and create the inner
|
|
1045
1028
|
* container div to hold the chart.
|
|
1046
1029
|
*
|
|
1047
1030
|
* @private
|
|
1048
1031
|
* @function Highcharts.Chart#afterGetContainer
|
|
1049
|
-
*
|
|
1050
|
-
* @return {void}
|
|
1051
|
-
*
|
|
1052
1032
|
* @fires Highcharts.Chart#event:afterGetContainer
|
|
1053
1033
|
*/
|
|
1054
|
-
getContainer
|
|
1034
|
+
Chart.prototype.getContainer = function () {
|
|
1055
1035
|
var chart = this, container, options = chart.options, optionsChart = options.chart, chartWidth, chartHeight, renderTo = chart.renderTo, indexAttrName = 'data-highcharts-chart', oldChartIndex, Ren, containerId = uniqueKey(), containerStyle, key;
|
|
1056
1036
|
if (!renderTo) {
|
|
1057
1037
|
chart.renderTo = renderTo =
|
|
@@ -1107,7 +1087,8 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1107
1087
|
textAlign: 'left',
|
|
1108
1088
|
lineHeight: 'normal',
|
|
1109
1089
|
zIndex: 0,
|
|
1110
|
-
'-webkit-tap-highlight-color': 'rgba(0,0,0,0)'
|
|
1090
|
+
'-webkit-tap-highlight-color': 'rgba(0,0,0,0)',
|
|
1091
|
+
userSelect: 'none' // #13503
|
|
1111
1092
|
}, optionsChart.style);
|
|
1112
1093
|
}
|
|
1113
1094
|
/**
|
|
@@ -1149,7 +1130,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1149
1130
|
// Add a reference to the charts index
|
|
1150
1131
|
chart.renderer.chartIndex = chart.index;
|
|
1151
1132
|
fireEvent(this, 'afterGetContainer');
|
|
1152
|
-
}
|
|
1133
|
+
};
|
|
1153
1134
|
/**
|
|
1154
1135
|
* Calculate margins by rendering axis labels in a preliminary position.
|
|
1155
1136
|
* Title, subtitle and legend have already been rendered at this stage, but
|
|
@@ -1157,11 +1138,9 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1157
1138
|
*
|
|
1158
1139
|
* @private
|
|
1159
1140
|
* @function Highcharts.Chart#getMargins
|
|
1160
|
-
* @param {boolean} skipAxes
|
|
1161
|
-
* @return {void}
|
|
1162
1141
|
* @fires Highcharts.Chart#event:getMargins
|
|
1163
1142
|
*/
|
|
1164
|
-
getMargins
|
|
1143
|
+
Chart.prototype.getMargins = function (skipAxes) {
|
|
1165
1144
|
var _a = this, spacing = _a.spacing, margin = _a.margin, titleOffset = _a.titleOffset;
|
|
1166
1145
|
this.resetMargins();
|
|
1167
1146
|
// Adjust for title and subtitle
|
|
@@ -1179,13 +1158,12 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1179
1158
|
if (!skipAxes) {
|
|
1180
1159
|
this.getAxisMargins();
|
|
1181
1160
|
}
|
|
1182
|
-
}
|
|
1161
|
+
};
|
|
1183
1162
|
/**
|
|
1184
1163
|
* @private
|
|
1185
1164
|
* @function Highcharts.Chart#getAxisMargins
|
|
1186
|
-
* @return {void}
|
|
1187
1165
|
*/
|
|
1188
|
-
getAxisMargins
|
|
1166
|
+
Chart.prototype.getAxisMargins = function () {
|
|
1189
1167
|
var chart = this,
|
|
1190
1168
|
// [top, right, bottom, left]
|
|
1191
1169
|
axisOffset = chart.axisOffset = [0, 0, 0, 0], colorAxis = chart.colorAxis, margin = chart.margin, getOffset = function (axes) {
|
|
@@ -1209,7 +1187,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1209
1187
|
}
|
|
1210
1188
|
});
|
|
1211
1189
|
chart.setChartSize();
|
|
1212
|
-
}
|
|
1190
|
+
};
|
|
1213
1191
|
/**
|
|
1214
1192
|
* Reflows the chart to its container. By default, the chart reflows
|
|
1215
1193
|
* automatically to its container following a `window.resize` event, as per
|
|
@@ -1229,7 +1207,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1229
1207
|
* Event arguments. Used primarily when the function is called
|
|
1230
1208
|
* internally as a response to window resize.
|
|
1231
1209
|
*/
|
|
1232
|
-
reflow
|
|
1210
|
+
Chart.prototype.reflow = function (e) {
|
|
1233
1211
|
var chart = this, optionsChart = chart.options.chart, renderTo = chart.renderTo, hasUserSize = (defined(optionsChart.width) &&
|
|
1234
1212
|
defined(optionsChart.height)), width = optionsChart.width || getStyle(renderTo, 'width'), height = optionsChart.height || getStyle(renderTo, 'height'), target = e ? e.target : win;
|
|
1235
1213
|
// Width and height checks for display:none. Target is doc in IE8 and
|
|
@@ -1255,17 +1233,15 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1255
1233
|
chart.containerWidth = width;
|
|
1256
1234
|
chart.containerHeight = height;
|
|
1257
1235
|
}
|
|
1258
|
-
}
|
|
1236
|
+
};
|
|
1259
1237
|
/**
|
|
1260
1238
|
* Toggle the event handlers necessary for auto resizing, depending on the
|
|
1261
1239
|
* `chart.reflow` option.
|
|
1262
1240
|
*
|
|
1263
1241
|
* @private
|
|
1264
1242
|
* @function Highcharts.Chart#setReflow
|
|
1265
|
-
* @param {boolean} [reflow]
|
|
1266
|
-
* @return {void}
|
|
1267
1243
|
*/
|
|
1268
|
-
setReflow
|
|
1244
|
+
Chart.prototype.setReflow = function (reflow) {
|
|
1269
1245
|
var chart = this;
|
|
1270
1246
|
if (reflow !== false && !this.unbindReflow) {
|
|
1271
1247
|
this.unbindReflow = addEvent(win, 'resize', function (e) {
|
|
@@ -1292,7 +1268,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1292
1268
|
});
|
|
1293
1269
|
}
|
|
1294
1270
|
//*/
|
|
1295
|
-
}
|
|
1271
|
+
};
|
|
1296
1272
|
/**
|
|
1297
1273
|
* Resize the chart to a given width and height. In order to set the width
|
|
1298
1274
|
* only, the height argument may be skipped. To set the height only, pass
|
|
@@ -1318,7 +1294,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1318
1294
|
* be `undefined` in order to preserve the current value, or `null`
|
|
1319
1295
|
* in order to adapt to the height of the containing element.
|
|
1320
1296
|
*
|
|
1321
|
-
* @param {boolean|Highcharts.AnimationOptionsObject} [animation=true]
|
|
1297
|
+
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation=true]
|
|
1322
1298
|
* Whether and how to apply animation.
|
|
1323
1299
|
*
|
|
1324
1300
|
* @return {void}
|
|
@@ -1326,7 +1302,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1326
1302
|
* @fires Highcharts.Chart#event:endResize
|
|
1327
1303
|
* @fires Highcharts.Chart#event:resize
|
|
1328
1304
|
*/
|
|
1329
|
-
setSize
|
|
1305
|
+
Chart.prototype.setSize = function (width, height, animation) {
|
|
1330
1306
|
var chart = this, renderer = chart.renderer, globalAnimation;
|
|
1331
1307
|
// Handle the isResizing counter
|
|
1332
1308
|
chart.isResizing += 1;
|
|
@@ -1372,22 +1348,17 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1372
1348
|
chart.isResizing -= 1;
|
|
1373
1349
|
});
|
|
1374
1350
|
}
|
|
1375
|
-
}, animObject(globalAnimation).duration
|
|
1376
|
-
}
|
|
1351
|
+
}, animObject(globalAnimation).duration);
|
|
1352
|
+
};
|
|
1377
1353
|
/**
|
|
1378
1354
|
* Set the public chart properties. This is done before and after the
|
|
1379
1355
|
* pre-render to determine margin sizes.
|
|
1380
1356
|
*
|
|
1381
1357
|
* @private
|
|
1382
1358
|
* @function Highcharts.Chart#setChartSize
|
|
1383
|
-
*
|
|
1384
|
-
* @param {boolean} skipAxes
|
|
1385
|
-
*
|
|
1386
|
-
* @return {void}
|
|
1387
|
-
*
|
|
1388
1359
|
* @fires Highcharts.Chart#event:afterSetChartSize
|
|
1389
1360
|
*/
|
|
1390
|
-
setChartSize
|
|
1361
|
+
Chart.prototype.setChartSize = function (skipAxes) {
|
|
1391
1362
|
var chart = this, inverted = chart.inverted, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, optionsChart = chart.options.chart, spacing = chart.spacing, clipOffset = chart.clipOffset, clipX, clipY, plotLeft, plotTop, plotWidth, plotHeight, plotBorderWidth;
|
|
1392
1363
|
/**
|
|
1393
1364
|
* The current left position of the plot area in pixels.
|
|
@@ -1453,15 +1424,14 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1453
1424
|
});
|
|
1454
1425
|
}
|
|
1455
1426
|
fireEvent(chart, 'afterSetChartSize', { skipAxes: skipAxes });
|
|
1456
|
-
}
|
|
1427
|
+
};
|
|
1457
1428
|
/**
|
|
1458
1429
|
* Initial margins before auto size margins are applied.
|
|
1459
1430
|
*
|
|
1460
1431
|
* @private
|
|
1461
1432
|
* @function Highcharts.Chart#resetMargins
|
|
1462
|
-
* @return {void}
|
|
1463
1433
|
*/
|
|
1464
|
-
resetMargins
|
|
1434
|
+
Chart.prototype.resetMargins = function () {
|
|
1465
1435
|
fireEvent(this, 'resetMargins');
|
|
1466
1436
|
var chart = this, chartOptions = chart.options.chart;
|
|
1467
1437
|
// Create margin and spacing array
|
|
@@ -1483,17 +1453,16 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1483
1453
|
});
|
|
1484
1454
|
chart.axisOffset = [0, 0, 0, 0]; // top, right, bottom, left
|
|
1485
1455
|
chart.clipOffset = [0, 0, 0, 0];
|
|
1486
|
-
}
|
|
1456
|
+
};
|
|
1487
1457
|
/**
|
|
1488
1458
|
* Internal function to draw or redraw the borders and backgrounds for chart
|
|
1489
1459
|
* and plot area.
|
|
1490
1460
|
*
|
|
1491
1461
|
* @private
|
|
1492
1462
|
* @function Highcharts.Chart#drawChartBox
|
|
1493
|
-
* @return {void}
|
|
1494
1463
|
* @fires Highcharts.Chart#event:afterDrawChartBox
|
|
1495
1464
|
*/
|
|
1496
|
-
drawChartBox
|
|
1465
|
+
Chart.prototype.drawChartBox = function () {
|
|
1497
1466
|
var chart = this, optionsChart = chart.options.chart, renderer = chart.renderer, chartWidth = chart.chartWidth, chartHeight = chart.chartHeight, chartBackground = chart.chartBackground, plotBackground = chart.plotBackground, plotBorder = chart.plotBorder, chartBorderWidth, styledMode = chart.styledMode, plotBGImage = chart.plotBGImage, chartBackgroundColor = optionsChart.backgroundColor, plotBackgroundColor = optionsChart.plotBackgroundColor, plotBackgroundImage = optionsChart.plotBackgroundImage, mgn, bgAttr, plotLeft = chart.plotLeft, plotTop = chart.plotTop, plotWidth = chart.plotWidth, plotHeight = chart.plotHeight, plotBox = chart.plotBox, clipRect = chart.clipRect, clipBox = chart.clipBox, verb = 'animate';
|
|
1498
1467
|
// Chart area
|
|
1499
1468
|
if (!chartBackground) {
|
|
@@ -1594,7 +1563,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1594
1563
|
// reset
|
|
1595
1564
|
chart.isDirtyBox = false;
|
|
1596
1565
|
fireEvent(this, 'afterDrawChartBox');
|
|
1597
|
-
}
|
|
1566
|
+
};
|
|
1598
1567
|
/**
|
|
1599
1568
|
* Detect whether a certain chart property is needed based on inspecting its
|
|
1600
1569
|
* options and series. This mainly applies to the chart.inverted property,
|
|
@@ -1604,7 +1573,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1604
1573
|
* @function Highcharts.Chart#propFromSeries
|
|
1605
1574
|
* @return {void}
|
|
1606
1575
|
*/
|
|
1607
|
-
propFromSeries
|
|
1576
|
+
Chart.prototype.propFromSeries = function () {
|
|
1608
1577
|
var chart = this, optionsChart = chart.options.chart, klass, seriesOptions = chart.options.series, i, value;
|
|
1609
1578
|
/**
|
|
1610
1579
|
* The flag is set to `true` if a series of the chart is inverted.
|
|
@@ -1614,7 +1583,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1614
1583
|
*/
|
|
1615
1584
|
['inverted', 'angular', 'polar'].forEach(function (key) {
|
|
1616
1585
|
// The default series type's class
|
|
1617
|
-
klass = seriesTypes[(optionsChart.type ||
|
|
1586
|
+
klass = BaseSeries.seriesTypes[(optionsChart.type ||
|
|
1618
1587
|
optionsChart.defaultSeriesType)];
|
|
1619
1588
|
// Get the value from available chart-wide properties
|
|
1620
1589
|
value =
|
|
@@ -1626,7 +1595,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1626
1595
|
// 4. Check if any the chart's series require it
|
|
1627
1596
|
i = seriesOptions && seriesOptions.length;
|
|
1628
1597
|
while (!value && i--) {
|
|
1629
|
-
klass = seriesTypes[seriesOptions[i].type];
|
|
1598
|
+
klass = BaseSeries.seriesTypes[seriesOptions[i].type];
|
|
1630
1599
|
if (klass && klass.prototype[key]) {
|
|
1631
1600
|
value = true;
|
|
1632
1601
|
}
|
|
@@ -1634,7 +1603,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1634
1603
|
// Set the chart property
|
|
1635
1604
|
chart[key] = value;
|
|
1636
1605
|
});
|
|
1637
|
-
}
|
|
1606
|
+
};
|
|
1638
1607
|
/**
|
|
1639
1608
|
* Internal function to link two or more series together, based on the
|
|
1640
1609
|
* `linkedTo` option. This is done from `Chart.render`, and after
|
|
@@ -1642,10 +1611,9 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1642
1611
|
*
|
|
1643
1612
|
* @private
|
|
1644
1613
|
* @function Highcharts.Chart#linkSeries
|
|
1645
|
-
* @return {void}
|
|
1646
1614
|
* @fires Highcharts.Chart#event:afterLinkSeries
|
|
1647
1615
|
*/
|
|
1648
|
-
linkSeries
|
|
1616
|
+
Chart.prototype.linkSeries = function () {
|
|
1649
1617
|
var chart = this, chartSeries = chart.series;
|
|
1650
1618
|
// Reset links
|
|
1651
1619
|
chartSeries.forEach(function (series) {
|
|
@@ -1673,28 +1641,26 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1673
1641
|
}
|
|
1674
1642
|
});
|
|
1675
1643
|
fireEvent(this, 'afterLinkSeries');
|
|
1676
|
-
}
|
|
1644
|
+
};
|
|
1677
1645
|
/**
|
|
1678
1646
|
* Render series for the chart.
|
|
1679
1647
|
*
|
|
1680
1648
|
* @private
|
|
1681
1649
|
* @function Highcharts.Chart#renderSeries
|
|
1682
|
-
* @return {void}
|
|
1683
1650
|
*/
|
|
1684
|
-
renderSeries
|
|
1651
|
+
Chart.prototype.renderSeries = function () {
|
|
1685
1652
|
this.series.forEach(function (serie) {
|
|
1686
1653
|
serie.translate();
|
|
1687
1654
|
serie.render();
|
|
1688
1655
|
});
|
|
1689
|
-
}
|
|
1656
|
+
};
|
|
1690
1657
|
/**
|
|
1691
1658
|
* Render labels for the chart.
|
|
1692
1659
|
*
|
|
1693
1660
|
* @private
|
|
1694
1661
|
* @function Highcharts.Chart#renderLabels
|
|
1695
|
-
* @return {void}
|
|
1696
1662
|
*/
|
|
1697
|
-
renderLabels
|
|
1663
|
+
Chart.prototype.renderLabels = function () {
|
|
1698
1664
|
var chart = this, labels = chart.options.labels;
|
|
1699
1665
|
if (labels.items) {
|
|
1700
1666
|
labels.items.forEach(function (label) {
|
|
@@ -1708,15 +1674,14 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1708
1674
|
.add();
|
|
1709
1675
|
});
|
|
1710
1676
|
}
|
|
1711
|
-
}
|
|
1677
|
+
};
|
|
1712
1678
|
/**
|
|
1713
1679
|
* Render all graphics for the chart. Runs internally on initialization.
|
|
1714
1680
|
*
|
|
1715
1681
|
* @private
|
|
1716
1682
|
* @function Highcharts.Chart#render
|
|
1717
|
-
* @return {void}
|
|
1718
1683
|
*/
|
|
1719
|
-
render
|
|
1684
|
+
Chart.prototype.render = function () {
|
|
1720
1685
|
var chart = this, axes = chart.axes, colorAxis = chart.colorAxis, renderer = chart.renderer, options = chart.options, correction = 0, // correction for X axis labels
|
|
1721
1686
|
tempWidth, tempHeight, redoHorizontal, redoVertical, renderAxes = function (axes) {
|
|
1722
1687
|
axes.forEach(function (axis) {
|
|
@@ -1804,7 +1769,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1804
1769
|
chart.updateContainerScaling();
|
|
1805
1770
|
// Set flag
|
|
1806
1771
|
chart.hasRendered = true;
|
|
1807
|
-
}
|
|
1772
|
+
};
|
|
1808
1773
|
/**
|
|
1809
1774
|
* Set a new credits label for the chart.
|
|
1810
1775
|
*
|
|
@@ -1813,15 +1778,12 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1813
1778
|
*
|
|
1814
1779
|
* @function Highcharts.Chart#addCredits
|
|
1815
1780
|
*
|
|
1816
|
-
* @param {Highcharts.CreditsOptions} credits
|
|
1817
|
-
*
|
|
1818
|
-
*
|
|
1819
|
-
* @return {void}
|
|
1781
|
+
* @param {Highcharts.CreditsOptions} [credits]
|
|
1782
|
+
* A configuration object for the new credits.
|
|
1820
1783
|
*/
|
|
1821
|
-
addCredits
|
|
1822
|
-
var chart = this;
|
|
1823
|
-
|
|
1824
|
-
if (credits.enabled && !this.credits) {
|
|
1784
|
+
Chart.prototype.addCredits = function (credits) {
|
|
1785
|
+
var chart = this, creds = merge(true, this.options.credits, credits);
|
|
1786
|
+
if (creds.enabled && !this.credits) {
|
|
1825
1787
|
/**
|
|
1826
1788
|
* The chart's credits label. The label has an `update` method that
|
|
1827
1789
|
* allows setting new options as per the
|
|
@@ -1830,30 +1792,30 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1830
1792
|
* @name Highcharts.Chart#credits
|
|
1831
1793
|
* @type {Highcharts.SVGElement}
|
|
1832
1794
|
*/
|
|
1833
|
-
this.credits = this.renderer.text(
|
|
1795
|
+
this.credits = this.renderer.text(creds.text + (this.mapCredits || ''), 0, 0)
|
|
1834
1796
|
.addClass('highcharts-credits')
|
|
1835
1797
|
.on('click', function () {
|
|
1836
|
-
if (
|
|
1837
|
-
win.location.href =
|
|
1798
|
+
if (creds.href) {
|
|
1799
|
+
win.location.href = creds.href;
|
|
1838
1800
|
}
|
|
1839
1801
|
})
|
|
1840
1802
|
.attr({
|
|
1841
|
-
align:
|
|
1803
|
+
align: creds.position.align,
|
|
1842
1804
|
zIndex: 8
|
|
1843
1805
|
});
|
|
1844
1806
|
if (!chart.styledMode) {
|
|
1845
|
-
this.credits.css(
|
|
1807
|
+
this.credits.css(creds.style);
|
|
1846
1808
|
}
|
|
1847
1809
|
this.credits
|
|
1848
1810
|
.add()
|
|
1849
|
-
.align(
|
|
1811
|
+
.align(creds.position);
|
|
1850
1812
|
// Dynamically update
|
|
1851
1813
|
this.credits.update = function (options) {
|
|
1852
1814
|
chart.credits = chart.credits.destroy();
|
|
1853
1815
|
chart.addCredits(options);
|
|
1854
1816
|
};
|
|
1855
1817
|
}
|
|
1856
|
-
}
|
|
1818
|
+
};
|
|
1857
1819
|
/**
|
|
1858
1820
|
* Handle scaling, #11329 - when there is scaling/transform on the container
|
|
1859
1821
|
* or on a parent element, we need to take this into account. We calculate
|
|
@@ -1862,12 +1824,13 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1862
1824
|
*
|
|
1863
1825
|
* @private
|
|
1864
1826
|
* @function Highcharts.Chart#updateContainerScaling
|
|
1865
|
-
* @return {void}
|
|
1866
1827
|
*/
|
|
1867
|
-
updateContainerScaling
|
|
1828
|
+
Chart.prototype.updateContainerScaling = function () {
|
|
1868
1829
|
var container = this.container;
|
|
1869
|
-
|
|
1870
|
-
|
|
1830
|
+
// #13342 - tooltip was not visible in Chrome, when chart
|
|
1831
|
+
// updates height.
|
|
1832
|
+
if (container.offsetWidth > 2 && // #13342
|
|
1833
|
+
container.offsetHeight > 2 && // #13342
|
|
1871
1834
|
container.getBoundingClientRect) {
|
|
1872
1835
|
var bb = container.getBoundingClientRect(), scaleX = bb.width / container.offsetWidth, scaleY = bb.height / container.offsetHeight;
|
|
1873
1836
|
if (scaleX !== 1 || scaleY !== 1) {
|
|
@@ -1877,7 +1840,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1877
1840
|
delete this.containerScaling;
|
|
1878
1841
|
}
|
|
1879
1842
|
}
|
|
1880
|
-
}
|
|
1843
|
+
};
|
|
1881
1844
|
/**
|
|
1882
1845
|
* Remove the chart and purge memory. This method is called internally
|
|
1883
1846
|
* before adding a second chart into the same container, as well as on
|
|
@@ -1890,11 +1853,9 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1890
1853
|
*
|
|
1891
1854
|
* @function Highcharts.Chart#destroy
|
|
1892
1855
|
*
|
|
1893
|
-
* @return {void}
|
|
1894
|
-
*
|
|
1895
1856
|
* @fires Highcharts.Chart#event:destroy
|
|
1896
1857
|
*/
|
|
1897
|
-
destroy
|
|
1858
|
+
Chart.prototype.destroy = function () {
|
|
1898
1859
|
var chart = this, axes = chart.axes, series = chart.series, container = chart.container, i, parentNode = container && container.parentNode;
|
|
1899
1860
|
// fire the chart.destoy event
|
|
1900
1861
|
fireEvent(chart, 'destroy');
|
|
@@ -1949,17 +1910,15 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
1949
1910
|
objectEach(chart, function (val, key) {
|
|
1950
1911
|
delete chart[key];
|
|
1951
1912
|
});
|
|
1952
|
-
}
|
|
1913
|
+
};
|
|
1953
1914
|
/**
|
|
1954
1915
|
* Prepare for first rendering after all data are loaded.
|
|
1955
1916
|
*
|
|
1956
1917
|
* @private
|
|
1957
1918
|
* @function Highcharts.Chart#firstRender
|
|
1958
|
-
* @return {void}
|
|
1959
|
-
*
|
|
1960
1919
|
* @fires Highcharts.Chart#event:beforeRender
|
|
1961
1920
|
*/
|
|
1962
|
-
firstRender
|
|
1921
|
+
Chart.prototype.firstRender = function () {
|
|
1963
1922
|
var chart = this, options = chart.options;
|
|
1964
1923
|
// Hook for oldIE to check whether the chart is ready to render
|
|
1965
1924
|
if (chart.isReadyToRender && !chart.isReadyToRender()) {
|
|
@@ -2011,7 +1970,7 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
2011
1970
|
// If the chart was rendered outside the top container, put it back in
|
|
2012
1971
|
// (#3679)
|
|
2013
1972
|
chart.temporaryDisplay(true);
|
|
2014
|
-
}
|
|
1973
|
+
};
|
|
2015
1974
|
/**
|
|
2016
1975
|
* Internal function that runs on chart load, async if any images are loaded
|
|
2017
1976
|
* in the chart. Runs the callbacks and triggers the `load` and `render`
|
|
@@ -2019,11 +1978,10 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
2019
1978
|
*
|
|
2020
1979
|
* @private
|
|
2021
1980
|
* @function Highcharts.Chart#onload
|
|
2022
|
-
* @return {void}
|
|
2023
1981
|
* @fires Highcharts.Chart#event:load
|
|
2024
1982
|
* @fires Highcharts.Chart#event:render
|
|
2025
1983
|
*/
|
|
2026
|
-
onload
|
|
1984
|
+
Chart.prototype.onload = function () {
|
|
2027
1985
|
// Run callbacks, first the ones registered by modules, then user's one
|
|
2028
1986
|
this.callbacks.concat([this.callback]).forEach(function (fn) {
|
|
2029
1987
|
// Chart destroyed in its own callback (#3600)
|
|
@@ -2039,5 +1997,45 @@ extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
|
|
|
2039
1997
|
}
|
|
2040
1998
|
// Don't run again
|
|
2041
1999
|
this.hasLoaded = true;
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2000
|
+
};
|
|
2001
|
+
return Chart;
|
|
2002
|
+
}());
|
|
2003
|
+
// Hook for adding callbacks in modules
|
|
2004
|
+
Chart.prototype.callbacks = [];
|
|
2005
|
+
/**
|
|
2006
|
+
* Factory function for basic charts.
|
|
2007
|
+
*
|
|
2008
|
+
* @example
|
|
2009
|
+
* // Render a chart in to div#container
|
|
2010
|
+
* var chart = Highcharts.chart('container', {
|
|
2011
|
+
* title: {
|
|
2012
|
+
* text: 'My chart'
|
|
2013
|
+
* },
|
|
2014
|
+
* series: [{
|
|
2015
|
+
* data: [1, 3, 2, 4]
|
|
2016
|
+
* }]
|
|
2017
|
+
* });
|
|
2018
|
+
*
|
|
2019
|
+
* @function Highcharts.chart
|
|
2020
|
+
*
|
|
2021
|
+
* @param {string|Highcharts.HTMLDOMElement} [renderTo]
|
|
2022
|
+
* The DOM element to render to, or its id.
|
|
2023
|
+
*
|
|
2024
|
+
* @param {Highcharts.Options} options
|
|
2025
|
+
* The chart options structure.
|
|
2026
|
+
*
|
|
2027
|
+
* @param {Highcharts.ChartCallbackFunction} [callback]
|
|
2028
|
+
* Function to run when the chart has loaded and and all external images
|
|
2029
|
+
* are loaded. Defining a
|
|
2030
|
+
* [chart.events.load](https://api.highcharts.com/highcharts/chart.events.load)
|
|
2031
|
+
* handler is equivalent.
|
|
2032
|
+
*
|
|
2033
|
+
* @return {Highcharts.Chart}
|
|
2034
|
+
* Returns the Chart object.
|
|
2035
|
+
*/
|
|
2036
|
+
function chart(a, b, c) {
|
|
2037
|
+
return new Chart(a, b, c);
|
|
2038
|
+
}
|
|
2039
|
+
H.chart = chart;
|
|
2040
|
+
H.Chart = Chart;
|
|
2041
|
+
export default Chart;
|