highcharts 9.3.1 → 9.3.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/annotations/popup.css +1 -1
- package/css/highcharts.css +2 -2
- package/css/highcharts.scss +1 -1
- package/css/stocktools/gui.css +1 -1
- package/css/themes/dark-unica.css +2 -2
- package/css/themes/grid-light.css +2 -2
- package/css/themes/sand-signika.css +2 -2
- package/es-modules/Accessibility/A11yI18n.js +1 -5
- package/es-modules/Accessibility/Accessibility.js +11 -5
- package/es-modules/Accessibility/AccessibilityComponent.js +1 -1
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +9 -5
- package/es-modules/Accessibility/Components/ContainerComponent.js +1 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +8 -19
- package/es-modules/Accessibility/Components/LegendComponent.js +176 -86
- package/es-modules/Accessibility/Components/MenuComponent.js +1 -10
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +10 -13
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +15 -6
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +8 -4
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -41
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +20 -31
- package/es-modules/Accessibility/Components/ZoomComponent.js +135 -57
- package/es-modules/Accessibility/FocusBorder.js +0 -5
- package/es-modules/Accessibility/HighContrastMode.js +2 -1
- package/es-modules/Accessibility/KeyboardNavigation.js +5 -4
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -5
- package/es-modules/Accessibility/Options/LangOptions.js +3 -3
- package/es-modules/Accessibility/ProxyElement.js +12 -6
- package/es-modules/Accessibility/ProxyProvider.js +0 -3
- package/es-modules/Accessibility/Utils/Announcer.js +2 -2
- package/es-modules/Accessibility/Utils/ChartUtilities.js +17 -32
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +0 -12
- package/es-modules/Core/Animation/Fx.js +5 -14
- package/es-modules/Core/Axis/Axis.js +42 -68
- package/es-modules/Core/Axis/Axis3D.js +10 -4
- package/es-modules/Core/Axis/BrokenAxis.js +17 -11
- package/es-modules/Core/Axis/Color/ColorAxis.js +7 -4
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -3
- package/es-modules/Core/Axis/DateTimeAxis.js +3 -14
- package/es-modules/Core/Axis/GridAxis.js +26 -16
- package/es-modules/Core/Axis/NavigatorAxis.js +0 -5
- package/es-modules/Core/Axis/OrdinalAxis.js +83 -79
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +0 -5
- package/es-modules/Core/Axis/RadialAxis.js +7 -28
- package/es-modules/Core/Axis/ScrollbarAxis.js +18 -10
- package/es-modules/Core/Axis/StackingAxis.js +2 -1
- package/es-modules/Core/Axis/Tick.js +2 -4
- package/es-modules/Core/Axis/TreeGridAxis.js +26 -17
- package/es-modules/Core/Axis/TreeGridTick.js +4 -1
- package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
- package/es-modules/Core/Axis/ZAxis.js +1 -1
- package/es-modules/Core/Chart/Chart.js +42 -44
- package/es-modules/Core/Chart/Chart3D.js +23 -10
- package/es-modules/Core/Chart/GanttChart.js +4 -4
- package/es-modules/Core/Chart/MapChart.js +3 -3
- package/es-modules/Core/Chart/StockChart.js +10 -23
- package/es-modules/Core/DefaultOptions.js +3 -2
- package/es-modules/Core/Geometry/CircleUtilities.js +2 -1
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/HttpUtilities.js +5 -4
- package/es-modules/Core/Legend/Legend.js +12 -13
- package/es-modules/Core/Navigator.js +34 -22
- package/es-modules/Core/Pointer.js +13 -9
- package/es-modules/Core/Renderer/HTML/AST.js +27 -14
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +4 -2
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +8 -6
- package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGElement.js +8 -16
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +17 -8
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +5 -12
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +12 -5
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +16 -10
- package/es-modules/Core/Responsive.js +2 -3
- package/es-modules/Core/Scrollbar.js +14 -12
- package/es-modules/Core/Series/DataLabel.js +17 -12
- package/es-modules/Core/Series/Point.js +17 -16
- package/es-modules/Core/Series/Series.js +44 -73
- package/es-modules/Core/Series/SeriesDefaults.js +5 -4
- package/es-modules/Core/Time.js +14 -11
- package/es-modules/Core/Tooltip.js +19 -36
- package/es-modules/Core/Utilities.js +5 -17
- package/es-modules/Data/DataConverter.js +0 -6
- package/es-modules/Data/DataSeriesConverter.js +9 -5
- package/es-modules/Data/DataTable.js +2 -1
- package/es-modules/Data/Modifiers/DataModifier.js +1 -1
- package/es-modules/Data/Parsers/CSVParser.js +3 -2
- package/es-modules/Data/Parsers/GoogleSheetsParser.js +5 -2
- package/es-modules/Data/Stores/CSVStore.js +2 -2
- package/es-modules/Data/Stores/DataStore.js +1 -1
- package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
- package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
- package/es-modules/Extensions/Annotations/Annotations.js +11 -10
- package/es-modules/Extensions/Annotations/ControlPoint.js +0 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +3 -6
- package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +1 -1
- package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +6 -3
- package/es-modules/Extensions/Annotations/Mixins/EventEmitterMixin.js +0 -1
- package/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +5 -4
- package/es-modules/Extensions/Annotations/NavigationBindings.js +34 -29
- package/es-modules/Extensions/Annotations/Popup.js +40 -32
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -2
- package/es-modules/Extensions/Annotations/Types/ElliottWave.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +15 -11
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +2 -1
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +8 -4
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +10 -5
- package/es-modules/Extensions/Boost/BoostOverrides.js +3 -9
- package/es-modules/Extensions/Boost/BoostUtils.js +0 -6
- package/es-modules/Extensions/Boost/WGLRenderer.js +16 -12
- package/es-modules/Extensions/Boost/WGLShader.js +9 -8
- package/es-modules/Extensions/Boost/WGLVBuffer.js +4 -7
- package/es-modules/Extensions/Data.js +4 -48
- package/es-modules/Extensions/DataGrouping.js +22 -15
- package/es-modules/Extensions/DraggablePoints.js +7 -8
- package/es-modules/Extensions/Drilldown.js +9 -4
- package/es-modules/Extensions/ExportData.js +6 -5
- package/es-modules/Extensions/Exporting/Exporting.js +23 -37
- package/es-modules/Extensions/FullScreen.js +4 -3
- package/es-modules/Extensions/GeoJSON.js +3 -3
- package/es-modules/Extensions/MarkerClusters.js +3 -1
- package/es-modules/Extensions/Math3D.js +4 -4
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +23 -24
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +13 -77
- package/es-modules/Extensions/Oldie/VMLAxis3D.js +5 -1
- package/es-modules/Extensions/OverlappingDataLabels.js +10 -6
- package/es-modules/Extensions/Pane.js +6 -6
- package/es-modules/Extensions/ParallelCoordinates.js +5 -3
- package/es-modules/Extensions/PatternFill.js +17 -11
- package/es-modules/Extensions/Polar.js +6 -3
- package/es-modules/Extensions/PriceIndication.js +2 -1
- package/es-modules/Extensions/RangeSelector.js +19 -55
- package/es-modules/Extensions/ScrollablePlotArea.js +2 -2
- package/es-modules/Extensions/SeriesLabel.js +1 -1
- package/es-modules/Extensions/Sonification/ChartSonify.js +32 -26
- package/es-modules/Extensions/Sonification/Instrument.js +12 -15
- package/es-modules/Extensions/Sonification/PointSonify.js +12 -8
- package/es-modules/Extensions/Sonification/SeriesSonify.js +33 -18
- package/es-modules/Extensions/Sonification/SignalHandler.js +4 -6
- package/es-modules/Extensions/Sonification/Sonification.js +1 -1
- package/es-modules/Extensions/Sonification/SonificationUtilities.js +11 -7
- package/es-modules/Extensions/Sonification/Timeline.js +2 -7
- package/es-modules/Extensions/Sonification/TimelineEvent.js +0 -1
- package/es-modules/Extensions/Sonification/TimelinePath.js +8 -8
- package/es-modules/Extensions/Stacking.js +5 -23
- package/es-modules/Extensions/Themes/BrandDark.js +293 -0
- package/es-modules/Extensions/Themes/BrandLight.js +259 -0
- package/es-modules/Extensions/Themes/DarkUnica.js +4 -2
- package/es-modules/Extensions/Themes/Grid.js +4 -2
- package/es-modules/Extensions/Themes/GridLight.js +4 -2
- package/es-modules/Gantt/Connection.js +2 -2
- package/es-modules/Gantt/Pathfinder.js +6 -5
- package/es-modules/Gantt/PathfinderAlgorithms.js +12 -12
- package/es-modules/Maps/MapNavigation.js +6 -7
- package/es-modules/Maps/MapPointer.js +2 -1
- package/es-modules/Maps/MapSymbols.js +23 -3
- package/es-modules/Maps/MapViewOptionsDefault.js +1 -1
- package/es-modules/Series/Area/AreaSeries.js +13 -13
- package/es-modules/Series/Area3DSeries.js +4 -2
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +24 -12
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -1
- package/es-modules/Series/Bubble/BubbleLegendItem.js +2 -12
- package/es-modules/Series/Candlestick/CandlestickSeries.js +0 -1
- package/es-modules/Series/ColorMapMixin.js +84 -0
- package/es-modules/Series/Column/ColumnSeries.js +16 -14
- package/es-modules/Series/Column3D/Column3DComposition.js +1 -2
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +5 -2
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
- package/es-modules/Series/Cylinder/CylinderComposition.js +36 -4
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +1 -1
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +0 -1
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +0 -3
- package/es-modules/Series/Flags/FlagsSymbols.js +2 -2
- package/es-modules/Series/Funnel3D/Funnel3DComposition.js +14 -8
- package/es-modules/Series/Funnel3D/Funnel3DSeries.js +2 -1
- package/es-modules/Series/Gantt/GanttPoint.js +1 -1
- package/es-modules/Series/Gantt/GanttSeries.js +3 -1
- package/es-modules/Series/HLC/HLCSeries.js +1 -6
- package/es-modules/Series/Heatmap/HeatmapPoint.js +10 -10
- package/es-modules/Series/Heatmap/HeatmapSeries.js +9 -10
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +8 -6
- package/es-modules/Series/Histogram/HistogramSeries.js +4 -4
- package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +1 -4
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +19 -20
- package/es-modules/Series/Item/ItemSeries.js +4 -5
- package/es-modules/Series/Map/MapPoint.js +6 -0
- package/es-modules/Series/Map/MapSeries.js +24 -25
- package/es-modules/Series/MapLine/MapLineSeries.js +0 -4
- package/es-modules/Series/Networkgraph/DraggableNodes.js +0 -4
- package/es-modules/Series/Networkgraph/Integrations.js +8 -22
- package/es-modules/Series/Networkgraph/Networkgraph.js +1 -5
- package/es-modules/Series/Networkgraph/QuadTree.js +1 -3
- package/es-modules/Series/NodesComposition.js +2 -1
- package/es-modules/Series/OHLC/OHLCPoint.js +0 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +1 -1
- package/es-modules/Series/Organization/OrganizationSeries.js +4 -2
- package/es-modules/Series/PackedBubble/PackedBubbleComposition.js +1 -0
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +2 -4
- package/es-modules/Series/Pie/PiePoint.js +2 -2
- package/es-modules/Series/Pie/PieSeries.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DComposition.js +2 -1
- package/es-modules/Series/Pie3D/Pie3DPoint.js +2 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +1 -1
- package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +2 -1
- package/es-modules/Series/Sankey/SankeySeries.js +3 -2
- package/es-modules/Series/SolidGauge/SolidGaugeComposition.js +3 -1
- package/es-modules/Series/Spline/SplineSeries.js +0 -8
- package/es-modules/Series/Sunburst/SunburstSeries.js +2 -2
- package/es-modules/Series/Sunburst/SunburstUtilities.js +3 -2
- package/es-modules/Series/Tilemap/TilemapPoint.js +0 -2
- package/es-modules/Series/Tilemap/TilemapShapes.js +0 -7
- package/es-modules/Series/TreeUtilities.js +2 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +18 -21
- package/es-modules/Series/Variwide/VariwideSeries.js +5 -1
- package/es-modules/Series/Venn/VennSeries.js +6 -9
- package/es-modules/Series/Venn/VennUtils.js +8 -7
- package/es-modules/Series/Waterfall/WaterfallSeries.js +6 -3
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +2 -2
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -10
- package/es-modules/Series/XRange/XRangePoint.js +6 -12
- package/es-modules/Series/XRange/XRangeSeries.js +4 -20
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +12 -0
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -0
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +12 -0
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +35 -15
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +9 -5
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +2 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +6 -6
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +12 -0
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -3
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +30 -12
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -1
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +70 -6
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +11 -0
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -1
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +2 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +2 -3
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -1
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -3
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +19 -7
- package/es-modules/Stock/StockToolsBindings.js +13 -6
- package/es-modules/Stock/StockToolsGui.js +34 -23
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +2 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/brand-dark.src.js +14 -0
- package/es-modules/masters/themes/brand-light.src.js +14 -0
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +1 -1
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +65 -35
- package/highcharts-gantt.js +799 -799
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +589 -698
- package/highcharts-more.js +1 -1
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +73 -103
- package/highcharts.d.ts +5586 -1709
- package/highcharts.js +577 -577
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +5586 -1709
- package/highcharts.src.js +391 -486
- package/highmaps.js +723 -723
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +552 -656
- package/highstock.js +782 -782
- package/highstock.js.map +1 -1
- package/highstock.src.js +612 -731
- package/indicators/acceleration-bands.d.ts +17 -1
- package/indicators/acceleration-bands.js +11 -10
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.d.ts +17 -1
- package/indicators/acceleration-bands.src.js +88 -6
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +1 -1
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.d.ts +17 -1
- package/indicators/aroon-oscillator.js +10 -9
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.d.ts +17 -1
- package/indicators/aroon-oscillator.src.js +76 -6
- package/indicators/aroon.d.ts +17 -1
- package/indicators/aroon.js +11 -9
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.d.ts +17 -1
- package/indicators/aroon.src.js +77 -6
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.d.ts +17 -1
- package/indicators/bollinger-bands.js +12 -10
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.d.ts +17 -1
- package/indicators/bollinger-bands.src.js +88 -6
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +36 -16
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +3 -2
- package/indicators/dmi.js +12 -11
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +85 -11
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +7 -7
- package/indicators/indicators-all.d.ts +17 -1
- package/indicators/indicators-all.js +198 -197
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.d.ts +17 -1
- package/indicators/indicators-all.src.js +246 -65
- package/indicators/indicators.js +1 -1
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +3 -4
- package/indicators/keltner-channels.d.ts +17 -1
- package/indicators/keltner-channels.js +11 -10
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.d.ts +17 -1
- package/indicators/keltner-channels.src.js +88 -6
- package/indicators/klinger.js +14 -12
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +84 -9
- package/indicators/macd.js +1 -1
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +2 -2
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +3 -2
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.d.ts +17 -1
- package/indicators/price-channel.js +11 -9
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.d.ts +17 -1
- package/indicators/price-channel.src.js +87 -6
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +31 -13
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +3 -2
- package/indicators/slow-stochastic.js +1 -1
- package/indicators/slow-stochastic.src.js +1 -1
- package/indicators/stochastic.d.ts +17 -1
- package/indicators/stochastic.js +12 -10
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.d.ts +17 -1
- package/indicators/stochastic.src.js +79 -7
- package/indicators/supertrend.js +1 -1
- package/indicators/supertrend.src.js +1 -1
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +1 -1
- package/indicators/volume-by-price.src.js +4 -4
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +20 -8
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.d.ts +0 -35
- package/modules/accessibility.js +225 -222
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.d.ts +0 -35
- package/modules/accessibility.src.js +503 -418
- package/modules/annotations-advanced.js +128 -128
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +152 -124
- package/modules/annotations.js +122 -122
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +112 -100
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +1 -1
- package/modules/boost-canvas.src.js +1 -1
- package/modules/boost.js +1 -1
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +33 -43
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +18 -12
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +1 -1
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +11 -8
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +37 -5
- package/modules/data.d.ts +6 -6
- package/modules/data.js +31 -31
- package/modules/data.js.map +1 -1
- package/modules/data.src.d.ts +6 -6
- package/modules/data.src.js +10 -53
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +23 -16
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.js +3 -3
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +2 -2
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +8 -9
- package/modules/drilldown.js +1 -1
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +10 -5
- package/modules/dumbbell.js +1 -1
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +1 -5
- package/modules/export-data.js +19 -19
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +7 -6
- package/modules/exporting.js +1 -1
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +33 -45
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +5 -4
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +17 -10
- package/modules/gantt.js +1 -1
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +199 -213
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +27 -19
- package/modules/heatmap.js +39 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +88 -112
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.js +9 -7
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +7 -6
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +21 -25
- package/modules/item-series.js +6 -6
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +6 -6
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +2 -0
- package/modules/map.js +144 -144
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +2 -0
- package/modules/map.src.js +162 -171
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +4 -2
- package/modules/networkgraph.js +1 -1
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +13 -36
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/offline-exporting.js +18 -18
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +27 -32
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +2 -2
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +19 -79
- package/modules/organization.js +1 -1
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +5 -3
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +6 -4
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +21 -20
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +18 -12
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.js.map +1 -1
- package/modules/price-indicator.src.js +3 -2
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +3 -2
- package/modules/sankey.js +1 -1
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +8 -6
- package/modules/series-label.js +1 -1
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +2 -2
- package/modules/solid-gauge.js +1 -1
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +17 -2
- package/modules/sonification.js +53 -53
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +121 -103
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +66 -66
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +119 -96
- package/modules/stock.js +3 -3
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +222 -246
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +60 -61
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +83 -113
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +1 -10
- package/modules/timeline.js +1 -1
- package/modules/timeline.src.js +1 -1
- package/modules/treegrid.js +1 -1
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +76 -50
- package/modules/treemap.js +41 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +78 -109
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +7 -3
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +1 -1
- package/modules/venn.js +1 -1
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +17 -18
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +1 -1
- package/modules/wordcloud.js +1 -1
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +9 -13
- package/modules/xrange.js +1 -1
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +11 -33
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/brand-dark.js +15 -0
- package/themes/brand-dark.js.map +1 -0
- package/themes/brand-dark.src.js +328 -0
- package/themes/brand-light.js +15 -0
- package/themes/brand-light.js.map +1 -0
- package/themes/brand-light.src.js +294 -0
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +5 -3
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +5 -3
- package/themes/grid.js +1 -1
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +5 -3
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
- package/es-modules/Series/ColorMapComposition.js +0 -109
package/modules/gantt.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts Gantt JS v9.3.
|
|
2
|
+
* @license Highcharts Gantt JS v9.3.2 (2021-11-29)
|
|
3
3
|
*
|
|
4
4
|
* Gantt series
|
|
5
5
|
*
|
|
@@ -89,14 +89,14 @@
|
|
|
89
89
|
* @private
|
|
90
90
|
* @function getColorByCategory
|
|
91
91
|
*
|
|
92
|
-
* @param {
|
|
93
|
-
*
|
|
92
|
+
* @param {Object} series
|
|
93
|
+
* The series which the point belongs to.
|
|
94
94
|
*
|
|
95
|
-
* @param {
|
|
96
|
-
*
|
|
95
|
+
* @param {Object} point
|
|
96
|
+
* The point to calculate its color for.
|
|
97
97
|
*
|
|
98
|
-
* @return {
|
|
99
|
-
*
|
|
98
|
+
* @return {Object}
|
|
99
|
+
* Returns an object containing the properties color and colorIndex.
|
|
100
100
|
*/
|
|
101
101
|
XRangePoint.getColorByCategory = function (series, point) {
|
|
102
102
|
var colors = series.options.colors || series.chart.options.colors,
|
|
@@ -155,8 +155,6 @@
|
|
|
155
155
|
*
|
|
156
156
|
* @private
|
|
157
157
|
* @function Highcharts.Point#init
|
|
158
|
-
*
|
|
159
|
-
* @return {Highcharts.Point}
|
|
160
158
|
*/
|
|
161
159
|
XRangePoint.prototype.init = function () {
|
|
162
160
|
Point.prototype.init.apply(this, arguments);
|
|
@@ -176,8 +174,6 @@
|
|
|
176
174
|
/**
|
|
177
175
|
* @private
|
|
178
176
|
* @function Highcharts.Point#getLabelConfig
|
|
179
|
-
*
|
|
180
|
-
* @return {Highcharts.PointLabelObject}
|
|
181
177
|
*/
|
|
182
178
|
// Add x2 and yCategory to the available properties for tooltip formats
|
|
183
179
|
XRangePoint.prototype.getLabelConfig = function () {
|
|
@@ -191,8 +187,6 @@
|
|
|
191
187
|
/**
|
|
192
188
|
* @private
|
|
193
189
|
* @function Highcharts.Point#isValid
|
|
194
|
-
*
|
|
195
|
-
* @return {boolean}
|
|
196
190
|
*/
|
|
197
191
|
XRangePoint.prototype.isValid = function () {
|
|
198
192
|
return typeof this.x === 'number' &&
|
|
@@ -356,7 +350,6 @@
|
|
|
356
350
|
/**
|
|
357
351
|
* @private
|
|
358
352
|
* @function Highcarts.seriesTypes.xrange#init
|
|
359
|
-
* @return {void}
|
|
360
353
|
*/
|
|
361
354
|
XRangeSeries.prototype.init = function () {
|
|
362
355
|
ColumnSeries.prototype.init.apply(this, arguments);
|
|
@@ -368,8 +361,6 @@
|
|
|
368
361
|
*
|
|
369
362
|
* @private
|
|
370
363
|
* @function Highcharts.Series#getColumnMetrics
|
|
371
|
-
*
|
|
372
|
-
* @return {Highcharts.ColumnMetricsObject}
|
|
373
364
|
*/
|
|
374
365
|
XRangeSeries.prototype.getColumnMetrics = function () {
|
|
375
366
|
var metrics,
|
|
@@ -395,18 +386,6 @@
|
|
|
395
386
|
*
|
|
396
387
|
* @private
|
|
397
388
|
* @function Highcharts.Series#cropData
|
|
398
|
-
*
|
|
399
|
-
* @param {Array<number>} xData
|
|
400
|
-
*
|
|
401
|
-
* @param {Array<number>} yData
|
|
402
|
-
*
|
|
403
|
-
* @param {number} min
|
|
404
|
-
*
|
|
405
|
-
* @param {number} max
|
|
406
|
-
*
|
|
407
|
-
* @param {number} [cropShoulder]
|
|
408
|
-
*
|
|
409
|
-
* @return {*}
|
|
410
389
|
*/
|
|
411
390
|
XRangeSeries.prototype.cropData = function (xData, yData, min, max) {
|
|
412
391
|
// Replace xData with x2Data to find the appropriate cropStart
|
|
@@ -426,9 +405,10 @@
|
|
|
426
405
|
*
|
|
427
406
|
* @private
|
|
428
407
|
* @function Highcharts.Series#findPointIndex
|
|
429
|
-
* @param {
|
|
430
|
-
*
|
|
431
|
-
*
|
|
408
|
+
* @param {Object} options
|
|
409
|
+
* The options of the point.
|
|
410
|
+
* @return {number|undefined}
|
|
411
|
+
* Returns index of a matching point, or undefined if no match is found.
|
|
432
412
|
*/
|
|
433
413
|
XRangeSeries.prototype.findPointIndex = function (options) {
|
|
434
414
|
var _a = this,
|
|
@@ -714,8 +694,6 @@
|
|
|
714
694
|
*
|
|
715
695
|
* @private
|
|
716
696
|
* @function Highcharts.Series#getAnimationVerb
|
|
717
|
-
*
|
|
718
|
-
* @return {string}
|
|
719
697
|
*/
|
|
720
698
|
XRangeSeries.prototype.getAnimationVerb = function () {
|
|
721
699
|
return (this.chart.pointCount < (this.options.animationLimit || 250) ?
|
|
@@ -1036,7 +1014,7 @@
|
|
|
1036
1014
|
* @private
|
|
1037
1015
|
* @function Highcharts.Point#applyOptions
|
|
1038
1016
|
*
|
|
1039
|
-
* @param {
|
|
1017
|
+
* @param {Object} options
|
|
1040
1018
|
* The point options
|
|
1041
1019
|
*
|
|
1042
1020
|
* @param {number} x
|
|
@@ -1252,8 +1230,11 @@
|
|
|
1252
1230
|
(threshold > brk.from && y < brk.from)) {
|
|
1253
1231
|
eventName = 'pointBreak';
|
|
1254
1232
|
}
|
|
1255
|
-
else if ((threshold < brk.from &&
|
|
1256
|
-
|
|
1233
|
+
else if ((threshold < brk.from &&
|
|
1234
|
+
y > brk.from &&
|
|
1235
|
+
y < brk.to) || (threshold > brk.from &&
|
|
1236
|
+
y > brk.to &&
|
|
1237
|
+
y < brk.from)) {
|
|
1257
1238
|
eventName = 'pointInBreak';
|
|
1258
1239
|
}
|
|
1259
1240
|
if (eventName) {
|
|
@@ -1372,12 +1353,9 @@
|
|
|
1372
1353
|
isNull: true,
|
|
1373
1354
|
x: xRange
|
|
1374
1355
|
});
|
|
1375
|
-
// For stacked chart generate empty stack items,
|
|
1376
|
-
// #6546
|
|
1356
|
+
// For stacked chart generate empty stack items, #6546
|
|
1377
1357
|
if (yAxis.stacking && this.options.stacking) {
|
|
1378
|
-
stack = yAxis.stacking.stacks[this.stackKey][xRange] =
|
|
1379
|
-
new StackItem(yAxis, yAxis.options
|
|
1380
|
-
.stackLabels, false, xRange, this.stack);
|
|
1358
|
+
stack = yAxis.stacking.stacks[this.stackKey][xRange] = new StackItem(yAxis, yAxis.options.stackLabels, false, xRange, this.stack);
|
|
1381
1359
|
stack.total = 0;
|
|
1382
1360
|
}
|
|
1383
1361
|
}
|
|
@@ -1614,10 +1592,12 @@
|
|
|
1614
1592
|
repeat_1 = brk.repeat || Infinity;
|
|
1615
1593
|
if (isNumber(min_1) && isNumber(max_1)) {
|
|
1616
1594
|
if (Additions.isInBreak(brk, min_1)) {
|
|
1617
|
-
min_1 += (brk.to % repeat_1) -
|
|
1595
|
+
min_1 += ((brk.to % repeat_1) -
|
|
1596
|
+
(min_1 % repeat_1));
|
|
1618
1597
|
}
|
|
1619
1598
|
if (Additions.isInBreak(brk, max_1)) {
|
|
1620
|
-
max_1 -= (max_1 % repeat_1) -
|
|
1599
|
+
max_1 -= ((max_1 % repeat_1) -
|
|
1600
|
+
(brk.from % repeat_1));
|
|
1621
1601
|
}
|
|
1622
1602
|
}
|
|
1623
1603
|
});
|
|
@@ -1665,13 +1645,17 @@
|
|
|
1665
1645
|
to: brk.value,
|
|
1666
1646
|
len: brk.value - start_1 - (brk.size || 0)
|
|
1667
1647
|
});
|
|
1668
|
-
length_1 += brk.value -
|
|
1648
|
+
length_1 += (brk.value -
|
|
1649
|
+
start_1 -
|
|
1650
|
+
(brk.size || 0));
|
|
1669
1651
|
}
|
|
1670
1652
|
});
|
|
1671
1653
|
brokenAxis.breakArray = breakArray_1;
|
|
1672
1654
|
// Used with staticScale, and below the actual axis
|
|
1673
1655
|
// length, when breaks are substracted.
|
|
1674
|
-
if (isNumber(min_1) &&
|
|
1656
|
+
if (isNumber(min_1) &&
|
|
1657
|
+
isNumber(max_1) &&
|
|
1658
|
+
isNumber(axis.min)) {
|
|
1675
1659
|
brokenAxis.unitLength = max_1 - min_1 - length_1 +
|
|
1676
1660
|
pointRangePadding;
|
|
1677
1661
|
fireEvent(axis, 'afterBreaks');
|
|
@@ -1877,7 +1861,8 @@
|
|
|
1877
1861
|
this.treeGrid &&
|
|
1878
1862
|
this.treeGrid.mapOfPosToGridNode) {
|
|
1879
1863
|
var treeDepth = this.treeGrid.mapOfPosToGridNode[-1].height || 0;
|
|
1880
|
-
dimensions.width += this.options.labels.indentation *
|
|
1864
|
+
dimensions.width += (this.options.labels.indentation *
|
|
1865
|
+
(treeDepth - 1));
|
|
1881
1866
|
}
|
|
1882
1867
|
return dimensions;
|
|
1883
1868
|
}
|
|
@@ -2043,8 +2028,10 @@
|
|
|
2043
2028
|
axis.left,
|
|
2044
2029
|
startPoint[2] || 0
|
|
2045
2030
|
],
|
|
2046
|
-
upperBorderPath = [
|
|
2047
|
-
|
|
2031
|
+
upperBorderPath = [
|
|
2032
|
+
upperBorderStartPoint,
|
|
2033
|
+
upperBorderEndPoint
|
|
2034
|
+
],
|
|
2048
2035
|
lowerBorderEndPoint = [
|
|
2049
2036
|
'L',
|
|
2050
2037
|
axis.chart.chartWidth - axis.chart.marginRight,
|
|
@@ -2055,8 +2042,10 @@
|
|
|
2055
2042
|
endPoint[1] || 0,
|
|
2056
2043
|
axis.toPixels(max + axis.tickmarkOffset)
|
|
2057
2044
|
],
|
|
2058
|
-
lowerBorderPath = [
|
|
2059
|
-
|
|
2045
|
+
lowerBorderPath = [
|
|
2046
|
+
lowerBorderStartPoint,
|
|
2047
|
+
lowerBorderEndPoint
|
|
2048
|
+
];
|
|
2060
2049
|
if (!axis.grid.upperBorder && min % 1 !== 0) {
|
|
2061
2050
|
axis.grid.upperBorder = axis.grid.renderBorder(upperBorderPath);
|
|
2062
2051
|
}
|
|
@@ -2082,8 +2071,8 @@
|
|
|
2082
2071
|
});
|
|
2083
2072
|
}
|
|
2084
2073
|
}
|
|
2085
|
-
// Render an extra line parallel to the existing axes,
|
|
2086
|
-
//
|
|
2074
|
+
// Render an extra line parallel to the existing axes, to
|
|
2075
|
+
// close the grid.
|
|
2087
2076
|
if (!axis.grid.axisLineExtra) {
|
|
2088
2077
|
axis.grid.axisLineExtra = axis.grid.renderBorder(linePath);
|
|
2089
2078
|
}
|
|
@@ -2096,8 +2085,7 @@
|
|
|
2096
2085
|
d: linePath
|
|
2097
2086
|
});
|
|
2098
2087
|
}
|
|
2099
|
-
// show or hide the line depending on
|
|
2100
|
-
// options.showEmpty
|
|
2088
|
+
// show or hide the line depending on options.showEmpty
|
|
2101
2089
|
axis.axisLine[axis.showAxis ? 'show' : 'hide'](true);
|
|
2102
2090
|
}
|
|
2103
2091
|
}
|
|
@@ -2139,7 +2127,8 @@
|
|
|
2139
2127
|
}
|
|
2140
2128
|
var mark = axis.ticks[lastTick].mark;
|
|
2141
2129
|
if (mark) {
|
|
2142
|
-
if (lastTick - max < tickmarkOffset &&
|
|
2130
|
+
if (lastTick - max < tickmarkOffset &&
|
|
2131
|
+
lastTick - max > 0 && axis.ticks[lastTick].isLast) {
|
|
2143
2132
|
mark.hide();
|
|
2144
2133
|
}
|
|
2145
2134
|
else if (axis.ticks[lastTick - 1]) {
|
|
@@ -2172,7 +2161,8 @@
|
|
|
2172
2161
|
options.dateTimeLabelFormats &&
|
|
2173
2162
|
options.labels &&
|
|
2174
2163
|
!defined(userLabels.align) &&
|
|
2175
|
-
(options.dateTimeLabelFormats[tickInfo.unitName]
|
|
2164
|
+
(options.dateTimeLabelFormats[tickInfo.unitName]
|
|
2165
|
+
.range === false ||
|
|
2176
2166
|
tickInfo.count > 1 // years
|
|
2177
2167
|
)) {
|
|
2178
2168
|
options.labels.align = 'left';
|
|
@@ -2386,7 +2376,8 @@
|
|
|
2386
2376
|
if (gridOptions.enabled && maxLabelDimensions) {
|
|
2387
2377
|
var labelPadding = (Math.abs(defaultLeftAxisOptions.labels.x) * 2);
|
|
2388
2378
|
var distance = horiz ?
|
|
2389
|
-
gridOptions.cellHeight ||
|
|
2379
|
+
(gridOptions.cellHeight ||
|
|
2380
|
+
labelPadding + maxLabelDimensions.height) :
|
|
2390
2381
|
labelPadding + maxLabelDimensions.width;
|
|
2391
2382
|
if (isArray(e.tickSize)) {
|
|
2392
2383
|
e.tickSize[0] = distance;
|
|
@@ -2426,7 +2417,7 @@
|
|
|
2426
2417
|
var userOptions = e.userOptions || {};
|
|
2427
2418
|
var gridOptions = userOptions.grid || {};
|
|
2428
2419
|
if (gridOptions.enabled && defined(gridOptions.borderColor)) {
|
|
2429
|
-
userOptions.tickColor = userOptions.lineColor = gridOptions.borderColor;
|
|
2420
|
+
userOptions.tickColor = userOptions.lineColor = (gridOptions.borderColor);
|
|
2430
2421
|
}
|
|
2431
2422
|
if (!axis.grid) {
|
|
2432
2423
|
axis.grid = new Additions(axis);
|
|
@@ -2673,7 +2664,8 @@
|
|
|
2673
2664
|
var thisIndex = -1,
|
|
2674
2665
|
lastIndex = 0;
|
|
2675
2666
|
chart[axis.coll].forEach(function (otherAxis, index) {
|
|
2676
|
-
if (otherAxis.side === axis.side &&
|
|
2667
|
+
if (otherAxis.side === axis.side &&
|
|
2668
|
+
!otherAxis.options.isInternal) {
|
|
2677
2669
|
lastIndex = index;
|
|
2678
2670
|
if (otherAxis === parentAxis) {
|
|
2679
2671
|
// Get the index of the axis in question
|
|
@@ -2682,17 +2674,17 @@
|
|
|
2682
2674
|
}
|
|
2683
2675
|
});
|
|
2684
2676
|
return (lastIndex === thisIndex &&
|
|
2685
|
-
(isNumber(columnIndex) ?
|
|
2677
|
+
(isNumber(columnIndex) ?
|
|
2678
|
+
columns.length === columnIndex :
|
|
2679
|
+
true));
|
|
2686
2680
|
};
|
|
2687
2681
|
/**
|
|
2688
2682
|
* Add extra border based on the provided path.
|
|
2689
|
-
* *
|
|
2690
2683
|
* @private
|
|
2691
|
-
*
|
|
2692
2684
|
* @param {SVGPath} path
|
|
2693
2685
|
* The path of the border.
|
|
2694
|
-
*
|
|
2695
2686
|
* @return {Highcharts.SVGElement}
|
|
2687
|
+
* Border
|
|
2696
2688
|
*/
|
|
2697
2689
|
Additions.prototype.renderBorder = function (path) {
|
|
2698
2690
|
var axis = this.axis,
|
|
@@ -3161,7 +3153,10 @@
|
|
|
3161
3153
|
node.descendants > 0) {
|
|
3162
3154
|
collapsed = axis.treeGrid.isCollapsed(node);
|
|
3163
3155
|
renderLabelIcon(tick, {
|
|
3164
|
-
color: !styledMode &&
|
|
3156
|
+
color: (!styledMode &&
|
|
3157
|
+
label.styles &&
|
|
3158
|
+
label.styles.color ||
|
|
3159
|
+
''),
|
|
3165
3160
|
collapsed: collapsed,
|
|
3166
3161
|
group: label.parentGroup,
|
|
3167
3162
|
options: symbolOptions,
|
|
@@ -3390,7 +3385,7 @@
|
|
|
3390
3385
|
*
|
|
3391
3386
|
* @private
|
|
3392
3387
|
*
|
|
3393
|
-
* @param {
|
|
3388
|
+
* @param {Object} params
|
|
3394
3389
|
* Object containing parameters.
|
|
3395
3390
|
* - `defaults` Object containing default options. The default options are
|
|
3396
3391
|
* merged with the userOptions to get the final options for a specific
|
|
@@ -3500,7 +3495,7 @@
|
|
|
3500
3495
|
*
|
|
3501
3496
|
* @private
|
|
3502
3497
|
*
|
|
3503
|
-
* @param {
|
|
3498
|
+
* @param {Object} series
|
|
3504
3499
|
* The series to operate on.
|
|
3505
3500
|
*
|
|
3506
3501
|
* @return {string}
|
|
@@ -3636,7 +3631,7 @@
|
|
|
3636
3631
|
*
|
|
3637
3632
|
* @param {number} numberOfSeries
|
|
3638
3633
|
*
|
|
3639
|
-
* @return {
|
|
3634
|
+
* @return {Object}
|
|
3640
3635
|
* Returns an object containing categories, mapOfIdToNode,
|
|
3641
3636
|
* mapOfPosToGridNode, and tree.
|
|
3642
3637
|
*
|
|
@@ -3649,7 +3644,8 @@
|
|
|
3649
3644
|
var categories = [],
|
|
3650
3645
|
collapsedNodes = [],
|
|
3651
3646
|
mapOfIdToNode = {},
|
|
3652
|
-
uniqueNamesEnabled = typeof uniqueNames === 'boolean' ?
|
|
3647
|
+
uniqueNamesEnabled = typeof uniqueNames === 'boolean' ?
|
|
3648
|
+
uniqueNames : false;
|
|
3653
3649
|
var mapOfPosToGridNode = {},
|
|
3654
3650
|
posIterator = -1;
|
|
3655
3651
|
// Build the tree from the series data.
|
|
@@ -3672,7 +3668,9 @@
|
|
|
3672
3668
|
// Before the children has been created.
|
|
3673
3669
|
before: function (node) {
|
|
3674
3670
|
var data = isObject(node.data,
|
|
3675
|
-
true) ?
|
|
3671
|
+
true) ?
|
|
3672
|
+
node.data :
|
|
3673
|
+
{},
|
|
3676
3674
|
name = isString(data.name) ? data.name : '',
|
|
3677
3675
|
parentNode = mapOfIdToNode[node.parent],
|
|
3678
3676
|
parentGridNode = (isObject(parentNode,
|
|
@@ -3781,8 +3779,8 @@
|
|
|
3781
3779
|
/**
|
|
3782
3780
|
* Builds the tree of categories and calculates its positions.
|
|
3783
3781
|
* @private
|
|
3784
|
-
* @param {
|
|
3785
|
-
* @param {
|
|
3782
|
+
* @param {Object} e Event object
|
|
3783
|
+
* @param {Object} e.target The chart instance which the event was fired on.
|
|
3786
3784
|
* @param {object[]} e.target.axes The axes of the chart.
|
|
3787
3785
|
*/
|
|
3788
3786
|
function onBeforeRender(e) {
|
|
@@ -3797,8 +3795,8 @@
|
|
|
3797
3795
|
max = options.max,
|
|
3798
3796
|
// Check whether any of series is rendering for the first
|
|
3799
3797
|
// time, visibility has changed, or its data is dirty, and
|
|
3800
|
-
// only then update. #10570, #10580
|
|
3801
|
-
//
|
|
3798
|
+
// only then update. #10570, #10580. Also check if
|
|
3799
|
+
// mapOfPosToGridNode exists. #10887
|
|
3802
3800
|
isDirty = (!axis.treeGrid.mapOfPosToGridNode ||
|
|
3803
3801
|
axis.series.some(function (series) {
|
|
3804
3802
|
return !series.hasRendered ||
|
|
@@ -3816,13 +3814,15 @@
|
|
|
3816
3814
|
(s.options.data || []).forEach(function (data) {
|
|
3817
3815
|
// For using keys - rebuild the data structure
|
|
3818
3816
|
if (s.options.keys && s.options.keys.length) {
|
|
3819
|
-
data = s.pointClass.prototype
|
|
3817
|
+
data = s.pointClass.prototype
|
|
3818
|
+
.optionsToObject
|
|
3819
|
+
.call({ series: s }, data);
|
|
3820
3820
|
s.pointClass.setGanttPointAliases(data);
|
|
3821
3821
|
}
|
|
3822
3822
|
if (isObject(data, true)) {
|
|
3823
3823
|
// Set series index on data. Removed again
|
|
3824
3824
|
// after use.
|
|
3825
|
-
data.seriesIndex = numberOfSeries;
|
|
3825
|
+
data.seriesIndex = (numberOfSeries);
|
|
3826
3826
|
arr.push(data);
|
|
3827
3827
|
}
|
|
3828
3828
|
});
|
|
@@ -3849,17 +3849,20 @@
|
|
|
3849
3849
|
treeGrid = getTreeGridFromData(data, uniqueNames || false, (uniqueNames === true) ? numberOfSeries : 1);
|
|
3850
3850
|
// Assign values to the axis.
|
|
3851
3851
|
axis.categories = treeGrid.categories;
|
|
3852
|
-
axis.treeGrid.mapOfPosToGridNode = treeGrid.mapOfPosToGridNode;
|
|
3852
|
+
axis.treeGrid.mapOfPosToGridNode = (treeGrid.mapOfPosToGridNode);
|
|
3853
3853
|
axis.hasNames = true;
|
|
3854
3854
|
axis.treeGrid.tree = treeGrid.tree;
|
|
3855
3855
|
// Update yData now that we have calculated the y values
|
|
3856
3856
|
axis.series.forEach(function (series) {
|
|
3857
3857
|
var axisData = (series.options.data || []).map(function (d) {
|
|
3858
|
-
if (isArray(d) &&
|
|
3858
|
+
if (isArray(d) &&
|
|
3859
|
+
series.options.keys &&
|
|
3860
|
+
series.options.keys.length) {
|
|
3859
3861
|
// Get the axisData from the data array used to
|
|
3860
3862
|
// build the treeGrid where has been modified
|
|
3861
3863
|
data.forEach(function (point) {
|
|
3862
|
-
if (d.indexOf(point.x) >= 0 &&
|
|
3864
|
+
if (d.indexOf(point.x) >= 0 &&
|
|
3865
|
+
d.indexOf(point.x2) >= 0) {
|
|
3863
3866
|
d = point;
|
|
3864
3867
|
}
|
|
3865
3868
|
});
|
|
@@ -3969,10 +3972,11 @@
|
|
|
3969
3972
|
axis.brokenAxis.setBreaks(breaks, false);
|
|
3970
3973
|
// remove the node from the axis collapsedNodes
|
|
3971
3974
|
if (axis.treeGrid.collapsedNodes) {
|
|
3972
|
-
axis.treeGrid.collapsedNodes = axis.treeGrid
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3975
|
+
axis.treeGrid.collapsedNodes = axis.treeGrid
|
|
3976
|
+
.collapsedNodes
|
|
3977
|
+
.filter(function (n) { return ((node.collapseStart !==
|
|
3978
|
+
n.collapseStart) ||
|
|
3979
|
+
node.collapseEnd !== n.collapseEnd); });
|
|
3976
3980
|
}
|
|
3977
3981
|
}
|
|
3978
3982
|
});
|
|
@@ -4253,7 +4257,7 @@
|
|
|
4253
4257
|
* @param {Highcharts.Axis} axis
|
|
4254
4258
|
* The axis to check against.
|
|
4255
4259
|
*
|
|
4256
|
-
* @param {
|
|
4260
|
+
* @param {Object} node
|
|
4257
4261
|
* The node to check if is collapsed.
|
|
4258
4262
|
*
|
|
4259
4263
|
* @param {number} pos
|
|
@@ -5461,11 +5465,11 @@
|
|
|
5461
5465
|
* The radius of the marker, to calculate the additional distance to
|
|
5462
5466
|
* the center of the marker.
|
|
5463
5467
|
*
|
|
5464
|
-
* @param {
|
|
5468
|
+
* @param {Object} anchor
|
|
5465
5469
|
* The anchor point of the path and marker as an object with x/y
|
|
5466
5470
|
* properties.
|
|
5467
5471
|
*
|
|
5468
|
-
* @return {
|
|
5472
|
+
* @return {Object}
|
|
5469
5473
|
* The marker vector as an object with x/y properties.
|
|
5470
5474
|
*/
|
|
5471
5475
|
getMarkerVector: function (radians, markerRadius, anchor) {
|
|
@@ -5618,7 +5622,7 @@
|
|
|
5618
5622
|
* @private
|
|
5619
5623
|
* @function pointWithinObstacle
|
|
5620
5624
|
*
|
|
5621
|
-
* @param {
|
|
5625
|
+
* @param {Object} obstacle
|
|
5622
5626
|
* Obstacle to test.
|
|
5623
5627
|
*
|
|
5624
5628
|
* @param {Highcharts.Point} point
|
|
@@ -5690,10 +5694,10 @@
|
|
|
5690
5694
|
* @private
|
|
5691
5695
|
* @function limitObstacleToBounds
|
|
5692
5696
|
*
|
|
5693
|
-
* @param {
|
|
5697
|
+
* @param {Object} obstacle
|
|
5694
5698
|
* Obstacle to limit.
|
|
5695
5699
|
*
|
|
5696
|
-
* @param {
|
|
5700
|
+
* @param {Object} bounds
|
|
5697
5701
|
* Bounds to use as limit.
|
|
5698
5702
|
*
|
|
5699
5703
|
* @return {void}
|
|
@@ -5716,7 +5720,7 @@
|
|
|
5716
5720
|
* @param {Highcharts.PositionObject} end
|
|
5717
5721
|
* Ending coordinate, object with x/y props.
|
|
5718
5722
|
*
|
|
5719
|
-
* @return {
|
|
5723
|
+
* @return {Object}
|
|
5720
5724
|
* An object with the SVG path in Array form as accepted by the SVG
|
|
5721
5725
|
* renderer, as well as an array of new obstacles making up this
|
|
5722
5726
|
* path.
|
|
@@ -5743,14 +5747,14 @@
|
|
|
5743
5747
|
* @param {Highcharts.PositionObject} end
|
|
5744
5748
|
* Ending coordinate, object with x/y props.
|
|
5745
5749
|
*
|
|
5746
|
-
* @param {
|
|
5750
|
+
* @param {Object} options
|
|
5747
5751
|
* Options for the algorithm:
|
|
5748
5752
|
* - chartObstacles: Array of chart obstacles to avoid
|
|
5749
5753
|
* - startDirectionX: Optional. True if starting in the X direction.
|
|
5750
5754
|
* If not provided, the algorithm starts in the direction that is
|
|
5751
5755
|
* the furthest between start/end.
|
|
5752
5756
|
*
|
|
5753
|
-
* @return {
|
|
5757
|
+
* @return {Object}
|
|
5754
5758
|
* An object with the SVG path in Array form as accepted by the SVG
|
|
5755
5759
|
* renderer, as well as an array of new obstacles making up this
|
|
5756
5760
|
* path.
|
|
@@ -5875,7 +5879,7 @@
|
|
|
5875
5879
|
* @param {Highcharts.PositionObject} end
|
|
5876
5880
|
* Ending coordinate, object with x/y props.
|
|
5877
5881
|
*
|
|
5878
|
-
* @param {
|
|
5882
|
+
* @param {Object} options
|
|
5879
5883
|
* Options for the algorithm.
|
|
5880
5884
|
* - chartObstacles: Array of chart obstacles to avoid
|
|
5881
5885
|
* - lineObstacles: Array of line obstacles to jump over
|
|
@@ -5887,7 +5891,7 @@
|
|
|
5887
5891
|
* direction that is the furthest between
|
|
5888
5892
|
* start/end.
|
|
5889
5893
|
*
|
|
5890
|
-
* @return {
|
|
5894
|
+
* @return {Object}
|
|
5891
5895
|
* An object with the SVG path in Array form as accepted by the SVG
|
|
5892
5896
|
* renderer, as well as an array of new obstacles making up this
|
|
5893
5897
|
* path.
|
|
@@ -6022,19 +6026,19 @@
|
|
|
6022
6026
|
* @private
|
|
6023
6027
|
* @function
|
|
6024
6028
|
*
|
|
6025
|
-
* @param {
|
|
6029
|
+
* @param {Object} obstacle
|
|
6026
6030
|
* Obstacle to dodge/escape.
|
|
6027
6031
|
*
|
|
6028
|
-
* @param {
|
|
6032
|
+
* @param {Object} fromPoint
|
|
6029
6033
|
* Point with x/y props that's dodging/escaping.
|
|
6030
6034
|
*
|
|
6031
|
-
* @param {
|
|
6035
|
+
* @param {Object} toPoint
|
|
6032
6036
|
* Goal point.
|
|
6033
6037
|
*
|
|
6034
6038
|
* @param {boolean} dirIsX
|
|
6035
6039
|
* Dodge in X dimension.
|
|
6036
6040
|
*
|
|
6037
|
-
* @param {
|
|
6041
|
+
* @param {Object} bounds
|
|
6038
6042
|
* Hard and soft boundaries.
|
|
6039
6043
|
*
|
|
6040
6044
|
* @return {boolean}
|
|
@@ -6746,7 +6750,8 @@
|
|
|
6746
6750
|
// For Gantt series the connect could be
|
|
6747
6751
|
// defined as a dependency
|
|
6748
6752
|
if (ganttPointOptions && ganttPointOptions.dependency) {
|
|
6749
|
-
ganttPointOptions.connect = ganttPointOptions
|
|
6753
|
+
ganttPointOptions.connect = ganttPointOptions
|
|
6754
|
+
.dependency;
|
|
6750
6755
|
}
|
|
6751
6756
|
var to,
|
|
6752
6757
|
connects = (point.options &&
|
|
@@ -6848,7 +6853,7 @@
|
|
|
6848
6853
|
*
|
|
6849
6854
|
* @function Highcharts.Pathfinder#getChartObstacles
|
|
6850
6855
|
*
|
|
6851
|
-
* @param {
|
|
6856
|
+
* @param {Object} options
|
|
6852
6857
|
* Options for the calculation. Currenlty only
|
|
6853
6858
|
* options.algorithmMargin.
|
|
6854
6859
|
*
|
|
@@ -6907,7 +6912,7 @@
|
|
|
6907
6912
|
* @param {Array<object>} obstacles
|
|
6908
6913
|
* An array of obstacles to inspect.
|
|
6909
6914
|
*
|
|
6910
|
-
* @return {
|
|
6915
|
+
* @return {Object}
|
|
6911
6916
|
* The calculated metrics, as an object with maxHeight and maxWidth
|
|
6912
6917
|
* properties.
|
|
6913
6918
|
*/
|
|
@@ -7037,11 +7042,11 @@
|
|
|
7037
7042
|
* The radius of the marker, to calculate the additional distance to
|
|
7038
7043
|
* the center of the marker.
|
|
7039
7044
|
*
|
|
7040
|
-
* @param {
|
|
7045
|
+
* @param {Object} anchor
|
|
7041
7046
|
* The anchor point of the path and marker as an object with x/y
|
|
7042
7047
|
* properties.
|
|
7043
7048
|
*
|
|
7044
|
-
* @return {
|
|
7049
|
+
* @return {Object}
|
|
7045
7050
|
* The marker vector as an object with x/y properties.
|
|
7046
7051
|
*/
|
|
7047
7052
|
getMarkerVector: function (radians, markerRadius, anchor) {
|
|
@@ -7238,7 +7243,9 @@
|
|
|
7238
7243
|
cutOff = seriesOpts.stacking && !seriesOpts.borderRadius,
|
|
7239
7244
|
diamondShape;
|
|
7240
7245
|
if (point.options.milestone) {
|
|
7241
|
-
if (isNumber(plotY) &&
|
|
7246
|
+
if (isNumber(plotY) &&
|
|
7247
|
+
point.y !== null &&
|
|
7248
|
+
point.visible !== false) {
|
|
7242
7249
|
diamondShape = renderer.symbols.diamond(shapeArgs.x || 0, shapeArgs.y || 0, shapeArgs.width || 0, shapeArgs.height || 0);
|
|
7243
7250
|
if (graphic) {
|
|
7244
7251
|
graphic[verb]({
|
|
@@ -7575,10 +7582,9 @@
|
|
|
7575
7582
|
* Function to run when the chart has loaded and and all external
|
|
7576
7583
|
* images are loaded.
|
|
7577
7584
|
*
|
|
7578
|
-
* @return {void}
|
|
7579
7585
|
*
|
|
7580
|
-
* @
|
|
7581
|
-
* @
|
|
7586
|
+
* @emits Highcharts.GanttChart#event:init
|
|
7587
|
+
* @emits Highcharts.GanttChart#event:afterInit
|
|
7582
7588
|
*/
|
|
7583
7589
|
GanttChart.prototype.init = function (userOptions, callback) {
|
|
7584
7590
|
var defaultOptions = getOptions(),
|
|
@@ -7643,7 +7649,8 @@
|
|
|
7643
7649
|
reversed: true,
|
|
7644
7650
|
// Set default type treegrid, but only if 'categories' is
|
|
7645
7651
|
// undefined
|
|
7646
|
-
type: yAxisOptions.categories ?
|
|
7652
|
+
type: yAxisOptions.categories ?
|
|
7653
|
+
yAxisOptions.type : 'treegrid'
|
|
7647
7654
|
}, yAxisOptions // user options
|
|
7648
7655
|
);
|
|
7649
7656
|
});
|
|
@@ -7787,7 +7794,8 @@
|
|
|
7787
7794
|
from = unitedMin + range * (1 - this.to);
|
|
7788
7795
|
}
|
|
7789
7796
|
if (this.shouldUpdateExtremes(e.DOMType)) {
|
|
7790
|
-
axis.setExtremes(from, to, true, e.DOMType !== 'mousemove' &&
|
|
7797
|
+
axis.setExtremes(from, to, true, (e.DOMType !== 'mousemove' &&
|
|
7798
|
+
e.DOMType !== 'touchmove'), e);
|
|
7791
7799
|
}
|
|
7792
7800
|
else {
|
|
7793
7801
|
// When live redraw is disabled, don't change extremes
|
|
@@ -7804,7 +7812,7 @@
|
|
|
7804
7812
|
scrollMin = _a.scrollMin,
|
|
7805
7813
|
scrollMax = _a.scrollMax,
|
|
7806
7814
|
scrollbar = axis.scrollbar,
|
|
7807
|
-
offset = axis.axisTitleMargin + (axis.titleOffset || 0),
|
|
7815
|
+
offset = (axis.axisTitleMargin + (axis.titleOffset || 0)),
|
|
7808
7816
|
scrollbarsOffsets = axis.chart.scrollbarsOffsets,
|
|
7809
7817
|
axisMargin = axis.options.margin || 0,
|
|
7810
7818
|
offsetsIndex,
|
|
@@ -7816,8 +7824,11 @@
|
|
|
7816
7824
|
if (!axis.opposite) {
|
|
7817
7825
|
scrollbarsOffsets[1] += offset;
|
|
7818
7826
|
}
|
|
7819
|
-
scrollbar.position(axis.left, axis.top +
|
|
7820
|
-
|
|
7827
|
+
scrollbar.position(axis.left, (axis.top +
|
|
7828
|
+
axis.height +
|
|
7829
|
+
2 +
|
|
7830
|
+
scrollbarsOffsets[1] -
|
|
7831
|
+
(axis.opposite ? axisMargin : 0)), axis.width, axis.height);
|
|
7821
7832
|
// Next scrollbar should reserve space for margin (if set)
|
|
7822
7833
|
if (!axis.opposite) {
|
|
7823
7834
|
scrollbarsOffsets[1] += axisMargin;
|
|
@@ -7834,7 +7845,10 @@
|
|
|
7834
7845
|
xPosition = axis.opposite ? 0 : axisMargin;
|
|
7835
7846
|
}
|
|
7836
7847
|
else {
|
|
7837
|
-
xPosition = axis.left +
|
|
7848
|
+
xPosition = axis.left +
|
|
7849
|
+
axis.width +
|
|
7850
|
+
2 +
|
|
7851
|
+
scrollbarsOffsets[0] -
|
|
7838
7852
|
(axis.opposite ? 0 : axisMargin);
|
|
7839
7853
|
}
|
|
7840
7854
|
scrollbar.position(xPosition, axis.top, axis.width, axis.height);
|
|
@@ -7858,10 +7872,10 @@
|
|
|
7858
7872
|
scrollbar.setRange(0, 1);
|
|
7859
7873
|
}
|
|
7860
7874
|
else {
|
|
7861
|
-
from =
|
|
7862
|
-
(
|
|
7863
|
-
to =
|
|
7864
|
-
(
|
|
7875
|
+
from = ((axis.min - scrollMin) /
|
|
7876
|
+
(scrollMax - scrollMin));
|
|
7877
|
+
to = ((axis.max - scrollMin) /
|
|
7878
|
+
(scrollMax - scrollMin));
|
|
7865
7879
|
if ((axis.horiz && !axis.reversed) ||
|
|
7866
7880
|
(!axis.horiz && axis.reversed)) {
|
|
7867
7881
|
scrollbar.setRange(from, to);
|
|
@@ -7880,7 +7894,8 @@
|
|
|
7880
7894
|
index = axis.horiz ? 2 : opposite ? 3 : 1,
|
|
7881
7895
|
scrollbar = axis.scrollbar;
|
|
7882
7896
|
if (scrollbar) {
|
|
7883
|
-
|
|
7897
|
+
// reset scrollbars offsets
|
|
7898
|
+
axis.chart.scrollbarsOffsets = [0, 0];
|
|
7884
7899
|
axis.chart.axisOffset[index] +=
|
|
7885
7900
|
scrollbar.size + scrollbar.options.margin;
|
|
7886
7901
|
}
|
|
@@ -8247,10 +8262,16 @@
|
|
|
8247
8262
|
mouseUpHandler = this.mouseUpHandler.bind(this);
|
|
8248
8263
|
// Mouse events
|
|
8249
8264
|
var _events = [
|
|
8250
|
-
[
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8265
|
+
[
|
|
8266
|
+
buttons[buttonsOrder[0]].element,
|
|
8267
|
+
'click',
|
|
8268
|
+
this.buttonToMinClick.bind(this)
|
|
8269
|
+
],
|
|
8270
|
+
[
|
|
8271
|
+
buttons[buttonsOrder[1]].element,
|
|
8272
|
+
'click',
|
|
8273
|
+
this.buttonToMaxClick.bind(this)
|
|
8274
|
+
],
|
|
8254
8275
|
[track, 'click',
|
|
8255
8276
|
this.trackClick.bind(this)],
|
|
8256
8277
|
[bar, 'mousedown',
|
|
@@ -8272,7 +8293,8 @@
|
|
|
8272
8293
|
};
|
|
8273
8294
|
Scrollbar.prototype.buttonToMaxClick = function (e) {
|
|
8274
8295
|
var scroller = this;
|
|
8275
|
-
var range = (scroller.to - scroller.from) *
|
|
8296
|
+
var range = ((scroller.to - scroller.from) *
|
|
8297
|
+
pick(scroller.options.step, 0.2));
|
|
8276
8298
|
scroller.updatePosition(scroller.from + range, scroller.to + range);
|
|
8277
8299
|
fireEvent(scroller, 'changed', {
|
|
8278
8300
|
from: scroller.from,
|
|
@@ -8325,7 +8347,6 @@
|
|
|
8325
8347
|
*
|
|
8326
8348
|
* @private
|
|
8327
8349
|
* @function Highcharts.Scrollbar#destroy
|
|
8328
|
-
* @return {void}
|
|
8329
8350
|
*/
|
|
8330
8351
|
Scrollbar.prototype.destroy = function () {
|
|
8331
8352
|
var scroller = this,
|
|
@@ -8358,7 +8379,6 @@
|
|
|
8358
8379
|
* @function Highcharts.Scrollbar#drawScrollbarButton
|
|
8359
8380
|
* @param {number} index
|
|
8360
8381
|
* 0 is left, 1 is right
|
|
8361
|
-
* @return {void}
|
|
8362
8382
|
*/
|
|
8363
8383
|
Scrollbar.prototype.drawScrollbarButton = function (index) {
|
|
8364
8384
|
var scroller = this,
|
|
@@ -8451,7 +8471,8 @@
|
|
|
8451
8471
|
var scroller = this,
|
|
8452
8472
|
normalizedEvent = scroller.chart.pointer.normalize(e),
|
|
8453
8473
|
options = scroller.options,
|
|
8454
|
-
direction = options.vertical ?
|
|
8474
|
+
direction = options.vertical ?
|
|
8475
|
+
'chartY' : 'chartX',
|
|
8455
8476
|
initPositions = scroller.initPositions || [];
|
|
8456
8477
|
var scrollPosition,
|
|
8457
8478
|
chartPosition,
|
|
@@ -8512,7 +8533,6 @@
|
|
|
8512
8533
|
* width of the scrollbar
|
|
8513
8534
|
* @param {number} height
|
|
8514
8535
|
* height of the scorllbar
|
|
8515
|
-
* @return {void}
|
|
8516
8536
|
*/
|
|
8517
8537
|
Scrollbar.prototype.position = function (x, y, width, height) {
|
|
8518
8538
|
var scroller = this,
|
|
@@ -8561,7 +8581,6 @@
|
|
|
8561
8581
|
*
|
|
8562
8582
|
* @private
|
|
8563
8583
|
* @function Highcharts.Scrollbar#removeEvents
|
|
8564
|
-
* @return {void}
|
|
8565
8584
|
*/
|
|
8566
8585
|
Scrollbar.prototype.removeEvents = function () {
|
|
8567
8586
|
this._events.forEach(function (args) {
|
|
@@ -8653,7 +8672,6 @@
|
|
|
8653
8672
|
* scale (0-1) where bar should start
|
|
8654
8673
|
* @param {number} to
|
|
8655
8674
|
* scale (0-1) where bar should end
|
|
8656
|
-
* @return {void}
|
|
8657
8675
|
*/
|
|
8658
8676
|
Scrollbar.prototype.setRange = function (from, to) {
|
|
8659
8677
|
var scroller = this,
|
|
@@ -8732,8 +8750,6 @@
|
|
|
8732
8750
|
*
|
|
8733
8751
|
* @private
|
|
8734
8752
|
* @function Highcharts.Scrollbar#shouldUpdateExtremes
|
|
8735
|
-
* @param {string} [eventType]
|
|
8736
|
-
* @return {boolean}
|
|
8737
8753
|
*/
|
|
8738
8754
|
Scrollbar.prototype.shouldUpdateExtremes = function (eventType) {
|
|
8739
8755
|
return (pick(this.options.liveRedraw, H.svg && !H.isTouchDevice && !this.chart.isBoosting) ||
|
|
@@ -8783,7 +8799,6 @@
|
|
|
8783
8799
|
* @function Highcharts.Scrollbar#updatePosition
|
|
8784
8800
|
* @param {number} from
|
|
8785
8801
|
* @param {number} to
|
|
8786
|
-
* @return {void}
|
|
8787
8802
|
*/
|
|
8788
8803
|
Scrollbar.prototype.updatePosition = function (from, to) {
|
|
8789
8804
|
if (to > 1) {
|
|
@@ -9409,7 +9424,6 @@
|
|
|
9409
9424
|
* @param {number} i
|
|
9410
9425
|
* The index of the button
|
|
9411
9426
|
* @param {boolean} [redraw]
|
|
9412
|
-
* @return {void}
|
|
9413
9427
|
*/
|
|
9414
9428
|
RangeSelector.prototype.clickButton = function (i, redraw) {
|
|
9415
9429
|
var rangeSelector = this,
|
|
@@ -9507,7 +9521,8 @@
|
|
|
9507
9521
|
// If the navigator exist and the axis range is declared reset that
|
|
9508
9522
|
// range and from now on only use the range set by a user, #14742.
|
|
9509
9523
|
if (chart.navigator && chart.navigator.baseSeries[0]) {
|
|
9510
|
-
chart.navigator.baseSeries[0].xAxis.options
|
|
9524
|
+
chart.navigator.baseSeries[0].xAxis.options
|
|
9525
|
+
.range = void 0;
|
|
9511
9526
|
}
|
|
9512
9527
|
newMin = dataMin;
|
|
9513
9528
|
newMax = dataMax;
|
|
@@ -9552,7 +9567,6 @@
|
|
|
9552
9567
|
* @private
|
|
9553
9568
|
* @function Highcharts.RangeSelector#setSelected
|
|
9554
9569
|
* @param {number} [selected]
|
|
9555
|
-
* @return {void}
|
|
9556
9570
|
*/
|
|
9557
9571
|
RangeSelector.prototype.setSelected = function (selected) {
|
|
9558
9572
|
this.selected = this.options.selected = selected;
|
|
@@ -9563,12 +9577,11 @@
|
|
|
9563
9577
|
* @private
|
|
9564
9578
|
* @function Highcharts.RangeSelector#init
|
|
9565
9579
|
* @param {Highcharts.Chart} chart
|
|
9566
|
-
* @return {void}
|
|
9567
9580
|
*/
|
|
9568
9581
|
RangeSelector.prototype.init = function (chart) {
|
|
9569
9582
|
var rangeSelector = this,
|
|
9570
9583
|
options = chart.options.rangeSelector,
|
|
9571
|
-
buttonOptions = options.buttons || rangeSelector.defaultButtons.slice(),
|
|
9584
|
+
buttonOptions = (options.buttons || rangeSelector.defaultButtons.slice()),
|
|
9572
9585
|
selectedOption = options.selected,
|
|
9573
9586
|
blurInputs = function () {
|
|
9574
9587
|
var minInput = rangeSelector.minInput,
|
|
@@ -9618,7 +9631,6 @@
|
|
|
9618
9631
|
*
|
|
9619
9632
|
* @private
|
|
9620
9633
|
* @function Highcharts.RangeSelector#updateButtonStates
|
|
9621
|
-
* @return {void}
|
|
9622
9634
|
*/
|
|
9623
9635
|
RangeSelector.prototype.updateButtonStates = function () {
|
|
9624
9636
|
var rangeSelector = this,
|
|
@@ -9724,7 +9736,6 @@
|
|
|
9724
9736
|
* @private
|
|
9725
9737
|
* @function Highcharts.RangeSelector#computeButtonRange
|
|
9726
9738
|
* @param {Highcharts.RangeSelectorButtonsOptions} rangeOptions
|
|
9727
|
-
* @return {void}
|
|
9728
9739
|
*/
|
|
9729
9740
|
RangeSelector.prototype.computeButtonRange = function (rangeOptions) {
|
|
9730
9741
|
var type = rangeOptions.type,
|
|
@@ -9759,12 +9770,11 @@
|
|
|
9759
9770
|
*
|
|
9760
9771
|
* @private
|
|
9761
9772
|
* @function Highcharts.RangeSelector#getInputValue
|
|
9762
|
-
* @param {string} name
|
|
9763
|
-
* @return {number}
|
|
9764
9773
|
*/
|
|
9765
9774
|
RangeSelector.prototype.getInputValue = function (name) {
|
|
9766
9775
|
var input = name === 'min' ? this.minInput : this.maxInput;
|
|
9767
|
-
var options = this.chart.options
|
|
9776
|
+
var options = this.chart.options
|
|
9777
|
+
.rangeSelector;
|
|
9768
9778
|
var time = this.chart.time;
|
|
9769
9779
|
if (input) {
|
|
9770
9780
|
return ((input.type === 'text' && options.inputDateParser) ||
|
|
@@ -9777,9 +9787,6 @@
|
|
|
9777
9787
|
*
|
|
9778
9788
|
* @private
|
|
9779
9789
|
* @function Highcharts.RangeSelector#setInputValue
|
|
9780
|
-
* @param {string} name
|
|
9781
|
-
* @param {number} [inputTime]
|
|
9782
|
-
* @return {void}
|
|
9783
9790
|
*/
|
|
9784
9791
|
RangeSelector.prototype.setInputValue = function (name, inputTime) {
|
|
9785
9792
|
var options = this.options, time = this.chart.time, input = name === 'min' ? this.minInput : this.maxInput, dateBox = name === 'min' ? this.minDateBox : this.maxDateBox;
|
|
@@ -9794,7 +9801,8 @@
|
|
|
9794
9801
|
input.setAttribute('data-hc-time', inputTime);
|
|
9795
9802
|
updatedTime = inputTime;
|
|
9796
9803
|
}
|
|
9797
|
-
input.value = time.dateFormat(this.inputTypeFormats[input.type] ||
|
|
9804
|
+
input.value = time.dateFormat((this.inputTypeFormats[input.type] ||
|
|
9805
|
+
options.inputEditDateFormat), updatedTime);
|
|
9798
9806
|
if (dateBox) {
|
|
9799
9807
|
dateBox.attr({
|
|
9800
9808
|
text: time.dateFormat(options.inputDateFormat, updatedTime)
|
|
@@ -9807,10 +9815,6 @@
|
|
|
9807
9815
|
*
|
|
9808
9816
|
* @private
|
|
9809
9817
|
* @function Highcharts.RangeSelector#setInputExtremes
|
|
9810
|
-
* @param {string} name
|
|
9811
|
-
* @param {number} min
|
|
9812
|
-
* @param {number} max
|
|
9813
|
-
* @return {void}
|
|
9814
9818
|
*/
|
|
9815
9819
|
RangeSelector.prototype.setInputExtremes = function (name, min, max) {
|
|
9816
9820
|
var input = name === 'min' ? this.minInput : this.maxInput;
|
|
@@ -9835,7 +9839,6 @@
|
|
|
9835
9839
|
* @private
|
|
9836
9840
|
* @function Highcharts.RangeSelector#showInput
|
|
9837
9841
|
* @param {string} name
|
|
9838
|
-
* @return {void}
|
|
9839
9842
|
*/
|
|
9840
9843
|
RangeSelector.prototype.showInput = function (name) {
|
|
9841
9844
|
var dateBox = name === 'min' ? this.minDateBox : this.maxDateBox;
|
|
@@ -9847,7 +9850,9 @@
|
|
|
9847
9850
|
translateY = _a.translateY;
|
|
9848
9851
|
var inputBoxWidth = this.options.inputBoxWidth;
|
|
9849
9852
|
css(input, {
|
|
9850
|
-
width: isTextInput ?
|
|
9853
|
+
width: isTextInput ?
|
|
9854
|
+
((dateBox.width + (inputBoxWidth ? -2 : 20)) + 'px') :
|
|
9855
|
+
'auto',
|
|
9851
9856
|
height: isTextInput ? ((dateBox.height - 2) + 'px') : 'auto',
|
|
9852
9857
|
border: '2px solid silver'
|
|
9853
9858
|
});
|
|
@@ -9873,7 +9878,6 @@
|
|
|
9873
9878
|
* @private
|
|
9874
9879
|
* @function Highcharts.RangeSelector#hideInput
|
|
9875
9880
|
* @param {string} name
|
|
9876
|
-
* @return {void}
|
|
9877
9881
|
*/
|
|
9878
9882
|
RangeSelector.prototype.hideInput = function (name) {
|
|
9879
9883
|
var input = name === 'min' ? this.minInput : this.maxInput;
|
|
@@ -9925,8 +9929,6 @@
|
|
|
9925
9929
|
*
|
|
9926
9930
|
* @private
|
|
9927
9931
|
* @function Highcharts.RangeSelector#drawInput
|
|
9928
|
-
* @param {string} name
|
|
9929
|
-
* @return {RangeSelectorInputElements}
|
|
9930
9932
|
*/
|
|
9931
9933
|
RangeSelector.prototype.drawInput = function (name) {
|
|
9932
9934
|
var _a = this,
|
|
@@ -10095,8 +10097,6 @@
|
|
|
10095
10097
|
*
|
|
10096
10098
|
* @private
|
|
10097
10099
|
* @function Highcharts.RangeSelector#getPosition
|
|
10098
|
-
*
|
|
10099
|
-
* @return {Highcharts.Dictionary<number>}
|
|
10100
10100
|
*/
|
|
10101
10101
|
RangeSelector.prototype.getPosition = function () {
|
|
10102
10102
|
var chart = this.chart,
|
|
@@ -10116,13 +10116,8 @@
|
|
|
10116
10116
|
*
|
|
10117
10117
|
* @private
|
|
10118
10118
|
* @function Highcharts.RangeSelector#getYTDExtremes
|
|
10119
|
-
*
|
|
10120
|
-
* @param {number} dataMax
|
|
10121
|
-
*
|
|
10122
|
-
* @param {number} dataMin
|
|
10123
|
-
*
|
|
10124
10119
|
* @return {*}
|
|
10125
|
-
*
|
|
10120
|
+
* Returns min and max for the YTD
|
|
10126
10121
|
*/
|
|
10127
10122
|
RangeSelector.prototype.getYTDExtremes = function (dataMax, dataMin, useUTC) {
|
|
10128
10123
|
var time = this.chart.time,
|
|
@@ -10151,7 +10146,6 @@
|
|
|
10151
10146
|
* X axis minimum
|
|
10152
10147
|
* @param {number} [max]
|
|
10153
10148
|
* X axis maximum
|
|
10154
|
-
* @return {void}
|
|
10155
10149
|
*/
|
|
10156
10150
|
RangeSelector.prototype.render = function (min, max) {
|
|
10157
10151
|
var chart = this.chart,
|
|
@@ -10205,7 +10199,8 @@
|
|
|
10205
10199
|
this.setInputValue('min', min);
|
|
10206
10200
|
this.setInputValue('max', max);
|
|
10207
10201
|
var unionExtremes = (chart.scroller && chart.scroller.getUnionExtremes()) || chart.xAxis[0] || {};
|
|
10208
|
-
if (defined(unionExtremes.dataMin) &&
|
|
10202
|
+
if (defined(unionExtremes.dataMin) &&
|
|
10203
|
+
defined(unionExtremes.dataMax)) {
|
|
10209
10204
|
var minRange = chart.xAxis[0].minRange || 0;
|
|
10210
10205
|
this.setInputExtremes('min', unionExtremes.dataMin, Math.min(unionExtremes.dataMax, this.getInputValue('max')) - minRange);
|
|
10211
10206
|
this.setInputExtremes('max', Math.max(unionExtremes.dataMin, this.getInputValue('min')) + minRange, unionExtremes.dataMax);
|
|
@@ -10238,7 +10233,6 @@
|
|
|
10238
10233
|
*
|
|
10239
10234
|
* @private
|
|
10240
10235
|
* @function Highcharts.RangeSelector#renderButtons
|
|
10241
|
-
* @return {void}
|
|
10242
10236
|
*/
|
|
10243
10237
|
RangeSelector.prototype.renderButtons = function () {
|
|
10244
10238
|
var _this = this;
|
|
@@ -10339,7 +10333,6 @@
|
|
|
10339
10333
|
*
|
|
10340
10334
|
* @private
|
|
10341
10335
|
* @function Highcharts.RangeSelector#alignElements
|
|
10342
|
-
* @return {void}
|
|
10343
10336
|
*/
|
|
10344
10337
|
RangeSelector.prototype.alignElements = function () {
|
|
10345
10338
|
var _this = this;
|
|
@@ -10495,7 +10488,6 @@
|
|
|
10495
10488
|
* @function Highcharts.RangeSelector#alignButtonGroup
|
|
10496
10489
|
* @param {number} xOffsetForExportButton
|
|
10497
10490
|
* @param {number} [width]
|
|
10498
|
-
* @return {void}
|
|
10499
10491
|
*/
|
|
10500
10492
|
RangeSelector.prototype.alignButtonGroup = function (xOffsetForExportButton, width) {
|
|
10501
10493
|
var _a = this,
|
|
@@ -10525,7 +10517,6 @@
|
|
|
10525
10517
|
/**
|
|
10526
10518
|
* @private
|
|
10527
10519
|
* @function Highcharts.RangeSelector#positionButtons
|
|
10528
|
-
* @return {void}
|
|
10529
10520
|
*/
|
|
10530
10521
|
RangeSelector.prototype.positionButtons = function () {
|
|
10531
10522
|
var _a = this,
|
|
@@ -10566,7 +10557,6 @@
|
|
|
10566
10557
|
* @param {number} xOffsetForExportButton
|
|
10567
10558
|
* The X offset of the group required to make room for the
|
|
10568
10559
|
* exporting button
|
|
10569
|
-
* @return {void}
|
|
10570
10560
|
*/
|
|
10571
10561
|
RangeSelector.prototype.handleCollision = function (xOffsetForExportButton) {
|
|
10572
10562
|
var _this = this;
|
|
@@ -10667,7 +10657,6 @@
|
|
|
10667
10657
|
* @private
|
|
10668
10658
|
* @function Highcharts.RangeSelector#collapseButtons
|
|
10669
10659
|
* @param {number} xOffsetForExportButton
|
|
10670
|
-
* @return {void}
|
|
10671
10660
|
*/
|
|
10672
10661
|
RangeSelector.prototype.collapseButtons = function (xOffsetForExportButton) {
|
|
10673
10662
|
var _a = this,
|
|
@@ -10721,7 +10710,6 @@
|
|
|
10721
10710
|
*
|
|
10722
10711
|
* @private
|
|
10723
10712
|
* @function Highcharts.RangeSelector#expandButtons
|
|
10724
|
-
* @return {void}
|
|
10725
10713
|
*/
|
|
10726
10714
|
RangeSelector.prototype.expandButtons = function () {
|
|
10727
10715
|
var _a = this,
|
|
@@ -10753,7 +10741,6 @@
|
|
|
10753
10741
|
*
|
|
10754
10742
|
* @private
|
|
10755
10743
|
* @function Highcharts.RangeSelector#currentButtonIndex
|
|
10756
|
-
* @return {number}
|
|
10757
10744
|
*/
|
|
10758
10745
|
RangeSelector.prototype.currentButtonIndex = function () {
|
|
10759
10746
|
var dropdown = this.dropdown;
|
|
@@ -10767,7 +10754,6 @@
|
|
|
10767
10754
|
*
|
|
10768
10755
|
* @private
|
|
10769
10756
|
* @function Highcharts.RangeSelector#showDropdown
|
|
10770
|
-
* @return {void}
|
|
10771
10757
|
*/
|
|
10772
10758
|
RangeSelector.prototype.showDropdown = function () {
|
|
10773
10759
|
var _a = this,
|
|
@@ -10791,7 +10777,6 @@
|
|
|
10791
10777
|
/**
|
|
10792
10778
|
* @private
|
|
10793
10779
|
* @function Highcharts.RangeSelector#hideDropdown
|
|
10794
|
-
* @return {void}
|
|
10795
10780
|
*/
|
|
10796
10781
|
RangeSelector.prototype.hideDropdown = function () {
|
|
10797
10782
|
var dropdown = this.dropdown;
|
|
@@ -10810,7 +10795,7 @@
|
|
|
10810
10795
|
* @private
|
|
10811
10796
|
* @function Highcharts.RangeSelector#getHeight
|
|
10812
10797
|
* @return {number}
|
|
10813
|
-
*
|
|
10798
|
+
* Returns rangeSelector height
|
|
10814
10799
|
*/
|
|
10815
10800
|
RangeSelector.prototype.getHeight = function () {
|
|
10816
10801
|
var rangeSelector = this,
|
|
@@ -10846,11 +10831,8 @@
|
|
|
10846
10831
|
*
|
|
10847
10832
|
* @private
|
|
10848
10833
|
* @function Highcharts.RangeSelector#titleCollision
|
|
10849
|
-
*
|
|
10850
|
-
* @param {Highcharts.Chart} chart
|
|
10851
|
-
*
|
|
10852
10834
|
* @return {boolean}
|
|
10853
|
-
*
|
|
10835
|
+
* Returns collision status
|
|
10854
10836
|
*/
|
|
10855
10837
|
RangeSelector.prototype.titleCollision = function (chart) {
|
|
10856
10838
|
return !(chart.options.title.text ||
|
|
@@ -10862,7 +10844,6 @@
|
|
|
10862
10844
|
* @private
|
|
10863
10845
|
* @function Highcharts.RangeSelector#update
|
|
10864
10846
|
* @param {Highcharts.RangeSelectorOptions} options
|
|
10865
|
-
* @return {void}
|
|
10866
10847
|
*/
|
|
10867
10848
|
RangeSelector.prototype.update = function (options) {
|
|
10868
10849
|
var chart = this.chart;
|
|
@@ -10958,17 +10939,14 @@
|
|
|
10958
10939
|
*
|
|
10959
10940
|
* @private
|
|
10960
10941
|
* @function preferredInputType
|
|
10961
|
-
* @param {string} format
|
|
10962
|
-
* @return {string}
|
|
10963
10942
|
*/
|
|
10964
10943
|
function preferredInputType(format) {
|
|
10965
10944
|
var ms = format.indexOf('%L') !== -1;
|
|
10966
10945
|
if (ms) {
|
|
10967
10946
|
return 'text';
|
|
10968
10947
|
}
|
|
10969
|
-
var date = ['a', 'A', 'd', 'e', 'w', 'b', 'B', 'm', 'o', 'y', 'Y']
|
|
10970
|
-
return format.indexOf('%' + char) !== -1;
|
|
10971
|
-
});
|
|
10948
|
+
var date = ['a', 'A', 'd', 'e', 'w', 'b', 'B', 'm', 'o', 'y', 'Y']
|
|
10949
|
+
.some(function (char) { return format.indexOf('%' + char) !== -1; });
|
|
10972
10950
|
var time = ['H', 'k', 'I', 'l', 'M', 'S'].some(function (char) {
|
|
10973
10951
|
return format.indexOf('%' + char) !== -1;
|
|
10974
10952
|
});
|
|
@@ -11005,7 +10983,8 @@
|
|
|
11005
10983
|
// Get the true range from a start date
|
|
11006
10984
|
getTrueRange = function (base,
|
|
11007
10985
|
count) {
|
|
11008
|
-
var timeName = type === 'year' ?
|
|
10986
|
+
var timeName = type === 'year' ?
|
|
10987
|
+
'FullYear' : 'Month';
|
|
11009
10988
|
var date = new time.Date(base);
|
|
11010
10989
|
var basePeriod = time.get(timeName,
|
|
11011
10990
|
date);
|
|
@@ -11259,11 +11238,6 @@
|
|
|
11259
11238
|
*
|
|
11260
11239
|
* @private
|
|
11261
11240
|
* @function Highcharts.Axis#toFixedRange
|
|
11262
|
-
* @param {number} [pxMin]
|
|
11263
|
-
* @param {number} [pxMax]
|
|
11264
|
-
* @param {number} [fixedMin]
|
|
11265
|
-
* @param {number} [fixedMax]
|
|
11266
|
-
* @return {*}
|
|
11267
11241
|
*/
|
|
11268
11242
|
NavigatorAxisAdditions.prototype.toFixedRange = function (pxMin, pxMax, fixedMin, fixedMax) {
|
|
11269
11243
|
var navigator = this;
|
|
@@ -12014,17 +11988,32 @@
|
|
|
12014
11988
|
verticalMin = navigatorTop + zoomedMax + outlineCorrection;
|
|
12015
11989
|
zoomedMax = navigatorTop + zoomedMin + outlineCorrection;
|
|
12016
11990
|
path = [
|
|
12017
|
-
[
|
|
11991
|
+
[
|
|
11992
|
+
'M',
|
|
11993
|
+
left + outlineHeight,
|
|
11994
|
+
navigatorTop - scrollbarHeight - outlineCorrection
|
|
11995
|
+
],
|
|
11996
|
+
// top right of zoomed range
|
|
12018
11997
|
['L', left + outlineHeight, verticalMin],
|
|
12019
11998
|
['L', left, verticalMin],
|
|
12020
11999
|
['L', left, zoomedMax],
|
|
12021
12000
|
['L', left + outlineHeight, zoomedMax],
|
|
12022
|
-
[
|
|
12001
|
+
[
|
|
12002
|
+
'L',
|
|
12003
|
+
left + outlineHeight,
|
|
12004
|
+
navigatorTop + navigatorSize + scrollbarHeight
|
|
12005
|
+
]
|
|
12023
12006
|
];
|
|
12024
12007
|
if (maskInside) {
|
|
12025
|
-
path.push(
|
|
12026
|
-
|
|
12027
|
-
|
|
12008
|
+
path.push(
|
|
12009
|
+
// upper left of zoomed range
|
|
12010
|
+
['M', left + outlineHeight, verticalMin - halfOutline],
|
|
12011
|
+
// upper right of z.r.
|
|
12012
|
+
[
|
|
12013
|
+
'L',
|
|
12014
|
+
left + outlineHeight,
|
|
12015
|
+
zoomedMax + halfOutline
|
|
12016
|
+
]);
|
|
12028
12017
|
}
|
|
12029
12018
|
}
|
|
12030
12019
|
else {
|
|
@@ -12032,17 +12021,25 @@
|
|
|
12032
12021
|
zoomedMax += left + scrollbarHeight - outlineCorrection;
|
|
12033
12022
|
navigatorTop += halfOutline;
|
|
12034
12023
|
path = [
|
|
12024
|
+
// left
|
|
12035
12025
|
['M', left, navigatorTop],
|
|
12026
|
+
// upper left of zoomed range
|
|
12036
12027
|
['L', zoomedMin, navigatorTop],
|
|
12028
|
+
// lower left of z.r.
|
|
12037
12029
|
['L', zoomedMin, navigatorTop + outlineHeight],
|
|
12030
|
+
// lower right of z.r.
|
|
12038
12031
|
['L', zoomedMax, navigatorTop + outlineHeight],
|
|
12032
|
+
// upper right of z.r.
|
|
12039
12033
|
['L', zoomedMax, navigatorTop],
|
|
12040
|
-
|
|
12034
|
+
// right
|
|
12035
|
+
['L', left + navigatorSize + scrollbarHeight * 2, navigatorTop]
|
|
12041
12036
|
];
|
|
12042
12037
|
if (maskInside) {
|
|
12043
|
-
path.push(
|
|
12044
|
-
|
|
12045
|
-
|
|
12038
|
+
path.push(
|
|
12039
|
+
// upper left of zoomed range
|
|
12040
|
+
['M', zoomedMin - halfOutline, navigatorTop],
|
|
12041
|
+
// upper right of z.r.
|
|
12042
|
+
['L', zoomedMax + halfOutline, navigatorTop]);
|
|
12046
12043
|
}
|
|
12047
12044
|
}
|
|
12048
12045
|
navigator.outline[verb]({
|
|
@@ -12228,7 +12225,6 @@
|
|
|
12228
12225
|
* Pixel value minimum
|
|
12229
12226
|
* @param {number} [pxMax]
|
|
12230
12227
|
* Pixel value maximum
|
|
12231
|
-
* @return {void}
|
|
12232
12228
|
*/
|
|
12233
12229
|
Navigator.prototype.render = function (min, max, pxMin, pxMax) {
|
|
12234
12230
|
var navigator = this,
|
|
@@ -12505,7 +12501,6 @@
|
|
|
12505
12501
|
* Mouse event
|
|
12506
12502
|
* @param {number} index
|
|
12507
12503
|
* Index of a handle in Navigator.handles array
|
|
12508
|
-
* @return {void}
|
|
12509
12504
|
*/
|
|
12510
12505
|
Navigator.prototype.handlesMousedown = function (e, index) {
|
|
12511
12506
|
e = this.chart.pointer.normalize(e);
|
|
@@ -12601,7 +12596,6 @@
|
|
|
12601
12596
|
* @function Highcharts.Navigator#onMouseUp
|
|
12602
12597
|
* @param {Highcharts.PointerEventObject} e
|
|
12603
12598
|
* Mouse event
|
|
12604
|
-
* @return {void}
|
|
12605
12599
|
*/
|
|
12606
12600
|
Navigator.prototype.onMouseUp = function (e) {
|
|
12607
12601
|
var navigator = this,
|
|
@@ -12688,7 +12682,6 @@
|
|
|
12688
12682
|
*
|
|
12689
12683
|
* @private
|
|
12690
12684
|
* @function Highcharts.Navigator#removeEvents
|
|
12691
|
-
* @return {void}
|
|
12692
12685
|
*/
|
|
12693
12686
|
Navigator.prototype.removeEvents = function () {
|
|
12694
12687
|
if (this.eventsToUnbind) {
|
|
@@ -12704,7 +12697,6 @@
|
|
|
12704
12697
|
*
|
|
12705
12698
|
* @private
|
|
12706
12699
|
* @function Highcharts.Navigator#removeBaseSeriesEvents
|
|
12707
|
-
* @return {void}
|
|
12708
12700
|
*/
|
|
12709
12701
|
Navigator.prototype.removeBaseSeriesEvents = function () {
|
|
12710
12702
|
var baseSeries = this.baseSeries || [];
|
|
@@ -12790,7 +12782,8 @@
|
|
|
12790
12782
|
offset: 0,
|
|
12791
12783
|
index: yAxisIndex,
|
|
12792
12784
|
isInternal: true,
|
|
12793
|
-
reversed: pick((navigatorOptions.yAxis &&
|
|
12785
|
+
reversed: pick((navigatorOptions.yAxis &&
|
|
12786
|
+
navigatorOptions.yAxis.reversed), (chart.yAxis[0] && chart.yAxis[0].reversed), false),
|
|
12794
12787
|
zoomEnabled: false
|
|
12795
12788
|
}, chart.inverted ? {
|
|
12796
12789
|
width: height
|
|
@@ -12872,9 +12865,6 @@
|
|
|
12872
12865
|
*
|
|
12873
12866
|
* @private
|
|
12874
12867
|
* @function Highcharts.Navigator#getUnionExtremes
|
|
12875
|
-
* @param {boolean} [returnFalseOnNoBaseSeries]
|
|
12876
|
-
* as the param says.
|
|
12877
|
-
* @return {Highcharts.Dictionary<(number|undefined)>|undefined}
|
|
12878
12868
|
*/
|
|
12879
12869
|
Navigator.prototype.getUnionExtremes = function (returnFalseOnNoBaseSeries) {
|
|
12880
12870
|
var baseAxis = this.chart.xAxis[0],
|
|
@@ -12902,7 +12892,6 @@
|
|
|
12902
12892
|
* Additional series options for a navigator
|
|
12903
12893
|
* @param {boolean} [redraw]
|
|
12904
12894
|
* Whether to redraw after update.
|
|
12905
|
-
* @return {void}
|
|
12906
12895
|
*/
|
|
12907
12896
|
Navigator.prototype.setBaseSeries = function (baseSeriesOptions, redraw) {
|
|
12908
12897
|
var chart = this.chart,
|
|
@@ -12941,7 +12930,6 @@
|
|
|
12941
12930
|
* @function Highcharts.Navigator.updateNavigatorSeries
|
|
12942
12931
|
* @param {boolean} addEvents
|
|
12943
12932
|
* @param {boolean} [redraw]
|
|
12944
|
-
* @return {void}
|
|
12945
12933
|
*/
|
|
12946
12934
|
Navigator.prototype.updateNavigatorSeries = function (addEvents, redraw) {
|
|
12947
12935
|
var navigator = this,
|
|
@@ -13082,7 +13070,6 @@
|
|
|
13082
13070
|
*
|
|
13083
13071
|
* @private
|
|
13084
13072
|
* @function Highcharts.Navigator#addBaseSeriesEvent
|
|
13085
|
-
* @return {void}
|
|
13086
13073
|
*/
|
|
13087
13074
|
Navigator.prototype.addBaseSeriesEvents = function () {
|
|
13088
13075
|
var navigator = this,
|
|
@@ -13276,7 +13263,6 @@
|
|
|
13276
13263
|
*
|
|
13277
13264
|
* @private
|
|
13278
13265
|
* @function Highcharts.Navigator#addChartEvents
|
|
13279
|
-
* @return {void}
|
|
13280
13266
|
*/
|
|
13281
13267
|
Navigator.prototype.addChartEvents = function () {
|
|
13282
13268
|
if (!this.eventsToUnbind) {
|