highcharts 9.3.3 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +19 -2
- package/css/highcharts.scss +17 -2
- package/css/themes/dark-unica.css +19 -2
- package/css/themes/grid-light.css +19 -2
- package/css/themes/sand-signika.css +19 -2
- package/es-modules/Accessibility/A11yI18n.js +4 -4
- package/es-modules/Accessibility/Accessibility.js +3 -4
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +3 -3
- package/es-modules/Accessibility/Components/ContainerComponent.js +11 -10
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +18 -11
- package/es-modules/Accessibility/Components/LegendComponent.js +34 -26
- package/es-modules/Accessibility/Components/MenuComponent.js +7 -6
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -3
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +7 -6
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -2
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +34 -18
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +96 -39
- package/es-modules/Accessibility/Components/ZoomComponent.js +43 -80
- package/es-modules/Accessibility/FocusBorder.js +6 -5
- package/es-modules/Accessibility/HighContrastMode.js +3 -3
- package/es-modules/Accessibility/KeyboardNavigation.js +113 -98
- package/es-modules/Accessibility/Options/{Options.js → A11yDefaults.js} +72 -4
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -2
- package/es-modules/Accessibility/Options/{LangOptions.js → LangDefaults.js} +46 -31
- package/es-modules/Accessibility/ProxyElement.js +14 -6
- package/es-modules/Accessibility/ProxyProvider.js +10 -2
- package/es-modules/Accessibility/Utils/ChartUtilities.js +10 -5
- package/es-modules/Core/Animation/Fx.js +1 -1
- package/es-modules/Core/Axis/Axis.js +197 -91
- package/es-modules/Core/Axis/AxisDefaults.js +8 -8
- package/es-modules/Core/Axis/Color/ColorAxis.js +26 -7
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +3 -3
- package/es-modules/Core/Axis/DateTimeAxis.js +5 -3
- package/es-modules/Core/Axis/GridAxis.js +821 -821
- package/es-modules/Core/Axis/LogarithmicAxis.js +1 -1
- package/es-modules/Core/Axis/OrdinalAxis.js +26 -3
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -3
- package/es-modules/Core/Axis/StackingAxis.js +0 -1
- package/es-modules/Core/Axis/Tick.js +22 -18
- package/es-modules/Core/Axis/TreeGridTick.js +13 -2
- package/es-modules/Core/Axis/ZAxis.js +3 -1
- package/es-modules/Core/Chart/Chart.js +27 -8
- package/es-modules/Core/Chart/Chart3D.js +1 -11
- package/es-modules/Core/Chart/ChartDefaults.js +46 -14
- package/es-modules/Core/Chart/GanttChart.js +3 -1
- package/es-modules/Core/Chart/MapChart.js +4 -7
- package/es-modules/Core/Chart/StockChart.js +7 -5
- package/es-modules/Core/Color/Color.js +1 -1
- package/es-modules/Core/DefaultOptions.js +19 -15
- package/es-modules/Core/Geometry/PolygonClip.js +84 -0
- package/es-modules/Core/Globals.js +4 -18
- package/es-modules/Core/HttpUtilities.js +46 -39
- package/es-modules/Core/Legend/Legend.js +14 -12
- package/es-modules/Core/MSPointer.js +3 -1
- package/es-modules/Core/Navigator.js +16 -13
- package/es-modules/Core/Pointer.js +16 -12
- package/es-modules/Core/Renderer/HTML/AST.js +68 -8
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +3 -1
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +3 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +54 -70
- package/es-modules/Core/Renderer/SVG/SVGElement3D.js +17 -5
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +3 -1
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +60 -55
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +4 -2
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +12 -10
- package/es-modules/Core/Scrollbar.js +9 -5
- package/es-modules/Core/ScrollbarDefaults.js +8 -8
- package/es-modules/Core/Series/DataLabel.js +67 -38
- package/es-modules/Core/Series/Point.js +11 -2
- package/es-modules/Core/Series/Series.js +57 -27
- package/es-modules/Core/Series/Series3D.js +3 -1
- package/es-modules/Core/Series/SeriesDefaults.js +7 -4
- package/es-modules/Core/Time.js +6 -7
- package/es-modules/Core/Tooltip.js +17 -34
- package/es-modules/Core/Utilities.js +33 -33
- package/es-modules/Data/DataConverter.js +1 -1
- package/es-modules/Data/DataTable.js +12 -10
- package/es-modules/Data/Modifiers/ChainModifier.js +3 -1
- package/es-modules/Data/Modifiers/GroupModifier.js +3 -1
- package/es-modules/Data/Modifiers/InvertModifier.js +9 -7
- package/es-modules/Data/Modifiers/RangeModifier.js +3 -1
- package/es-modules/Data/Modifiers/SeriesPointsModifier.js +3 -1
- package/es-modules/Data/Modifiers/SortModifier.js +3 -1
- package/es-modules/Data/Parsers/CSVParser.js +3 -1
- package/es-modules/Data/Parsers/DataParser.js +1 -1
- package/es-modules/Data/Parsers/GoogleSheetsParser.js +3 -2
- package/es-modules/Data/Parsers/HTMLTableParser.js +3 -1
- package/es-modules/Data/Stores/CSVStore.js +8 -5
- 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 → Annotation.js} +30 -11
- package/es-modules/Extensions/Annotations/AnnotationsDefaults.js +0 -0
- package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +5 -2
- package/es-modules/Extensions/Annotations/MockPoint.js +1 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +16 -5
- package/es-modules/Extensions/Annotations/Popup.js +2 -2
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +18 -12
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -2
- package/es-modules/Extensions/Annotations/Types/ElliottWave.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +5 -3
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +4 -2
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Measure.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +4 -2
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +5 -2
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +4 -2
- package/es-modules/Extensions/Boost/BoostAttach.js +5 -1
- package/es-modules/Extensions/Boost/BoostInit.js +9 -3
- package/es-modules/Extensions/Boost/BoostOptions.js +26 -0
- package/es-modules/Extensions/Boost/Boostables.js +1 -0
- package/es-modules/Extensions/Boost/WGLRenderer.js +48 -37
- package/es-modules/Extensions/Boost/WGLShader.js +4 -3
- package/es-modules/Extensions/BoostCanvas.js +11 -5
- package/es-modules/Extensions/Breadcrumbs.js +898 -0
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +661 -613
- package/es-modules/Extensions/DataGrouping.js +8 -3
- package/es-modules/Extensions/Debugger/ErrorMessages.js +4 -0
- package/es-modules/Extensions/DownloadURL.js +3 -3
- package/es-modules/Extensions/DragPanes.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +9 -7
- package/es-modules/Extensions/Drilldown.js +152 -97
- package/es-modules/Extensions/ExportData.js +58 -9
- package/es-modules/Extensions/Exporting/Exporting.js +34 -23
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +56 -8
- package/es-modules/Extensions/FullScreen.js +121 -54
- package/es-modules/Extensions/GeoJSON.js +149 -125
- package/es-modules/Extensions/MarkerClusters.js +36 -22
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +110 -22
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +2 -2
- package/es-modules/Extensions/OverlappingDataLabels.js +5 -4
- package/es-modules/Extensions/Pane.js +3 -3
- package/es-modules/Extensions/ParallelCoordinates.js +1 -1
- package/es-modules/Extensions/PatternFill.js +14 -2
- package/es-modules/Extensions/RangeSelector.js +29 -18
- package/es-modules/Extensions/ScrollablePlotArea.js +8 -4
- package/es-modules/Extensions/{SeriesLabel.js → SeriesLabel/SeriesLabel.js} +262 -384
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +124 -0
- package/es-modules/Extensions/SeriesLabel/SeriesLabelUtilities.js +67 -0
- package/es-modules/Extensions/Sonification/Earcon.js +1 -1
- package/es-modules/Extensions/Stacking.js +5 -4
- package/es-modules/Extensions/Themes/HighContrastDark.js +10 -10
- package/es-modules/Extensions/Themes/HighContrastLight.js +10 -10
- package/es-modules/Maps/MapNavigation.js +49 -12
- package/es-modules/Maps/MapPointer.js +16 -0
- package/es-modules/Maps/MapUtilities.js +56 -0
- package/es-modules/Maps/MapView.js +619 -137
- package/es-modules/Maps/MapViewInsetsOptionsDefault.js +148 -0
- package/es-modules/Maps/MapViewOptionsDefault.js +60 -20
- package/es-modules/Maps/Projection.js +182 -88
- package/es-modules/Maps/Projections/EqualEarth.js +15 -6
- package/es-modules/Maps/Projections/LambertConformalConic.js +27 -19
- package/es-modules/Maps/Projections/Miller.js +23 -10
- package/es-modules/Maps/Projections/Orthographic.js +21 -10
- package/es-modules/Maps/Projections/WebMercator.js +25 -13
- package/es-modules/Series/ArcDiagram/ArcDiagramPoint.js +79 -0
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +591 -0
- package/es-modules/Series/Area/AreaSeries.js +21 -14
- package/es-modules/Series/AreaRange/AreaRangePoint.js +24 -11
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +154 -147
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +45 -41
- package/es-modules/Series/AreaSplineRange/AreaSplineRangeSeries.js +43 -43
- package/es-modules/Series/Bar/BarSeries.js +3 -1
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +3 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -2
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -1
- package/es-modules/Series/Bubble/BubblePoint.js +3 -1
- package/es-modules/Series/Bubble/BubbleSeries.js +15 -6
- package/es-modules/Series/Bullet/BulletPoint.js +3 -1
- package/es-modules/Series/Bullet/BulletSeries.js +4 -3
- package/es-modules/Series/Candlestick/CandlestickSeries.js +5 -3
- package/es-modules/Series/CenteredUtilities.js +8 -2
- package/es-modules/Series/ColorMapComposition.js +111 -0
- package/es-modules/Series/Column/ColumnSeries.js +10 -7
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +3 -1
- package/es-modules/Series/ColumnRange/ColumnRangePoint.js +17 -13
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +60 -57
- package/es-modules/Series/Cylinder/CylinderPoint.js +3 -1
- package/es-modules/Series/Cylinder/CylinderSeries.js +3 -1
- package/es-modules/Series/DataModifyComposition.js +1 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +3 -1
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +5 -3
- package/es-modules/Series/DotPlot/DotPlotSeries.js +3 -1
- package/es-modules/Series/DrawPointUtilities.js +87 -0
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +3 -1
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +4 -2
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +4 -2
- package/es-modules/Series/Flags/FlagsPoint.js +4 -1
- package/es-modules/Series/Flags/FlagsSeries.js +13 -16
- package/es-modules/Series/Funnel/FunnelSeries.js +5 -3
- package/es-modules/Series/Funnel3D/Funnel3DPoint.js +3 -1
- package/es-modules/Series/Funnel3D/Funnel3DSeries.js +3 -1
- package/es-modules/Series/Gantt/GanttPoint.js +3 -1
- package/es-modules/Series/Gantt/GanttSeries.js +3 -1
- package/es-modules/Series/Gauge/GaugePoint.js +3 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +196 -174
- package/es-modules/Series/HLC/HLCPoint.js +3 -1
- package/es-modules/Series/HLC/HLCSeries.js +4 -2
- package/es-modules/Series/Heatmap/HeatmapPoint.js +7 -5
- package/es-modules/Series/Heatmap/HeatmapSeries.js +29 -33
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +3 -1
- package/es-modules/Series/Histogram/HistogramSeries.js +3 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +3 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +11 -9
- package/es-modules/Series/Item/ItemPoint.js +3 -1
- package/es-modules/Series/Item/ItemSeries.js +3 -1
- package/es-modules/Series/Line/LineSeries.js +4 -2
- package/es-modules/Series/Lollipop/LollipopPoint.js +3 -1
- package/es-modules/Series/Lollipop/LollipopSeries.js +4 -2
- package/es-modules/Series/Map/MapPoint.js +32 -7
- package/es-modules/Series/Map/MapSeries.js +298 -189
- package/es-modules/Series/MapBubble/MapBubblePoint.js +19 -25
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +61 -2
- package/es-modules/Series/MapLine/MapLineSeries.js +18 -1
- package/es-modules/Series/MapPoint/MapPointPoint.js +6 -10
- package/es-modules/Series/MapPoint/MapPointSeries.js +50 -16
- package/es-modules/Series/Networkgraph/Networkgraph.js +3 -1
- package/es-modules/Series/NodesComposition.js +101 -49
- package/es-modules/Series/OHLC/OHLCPoint.js +3 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +10 -1
- package/es-modules/Series/Organization/OrganizationPoint.js +71 -3
- package/es-modules/Series/Organization/OrganizationSeries.js +84 -28
- package/es-modules/Series/PackedBubble/PackedBubbleComposition.js +0 -2
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +3 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -1
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -1
- package/es-modules/Series/Pie/PieDataLabel.js +4 -2
- package/es-modules/Series/Pie/PiePoint.js +15 -6
- package/es-modules/Series/Pie/PieSeries.js +51 -37
- package/es-modules/Series/Pie3D/Pie3DPoint.js +3 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +22 -1
- package/es-modules/Series/PolarComposition.js +819 -0
- package/es-modules/Series/Polygon/PolygonSeries.js +3 -1
- package/es-modules/Series/Pyramid/PyramidSeries.js +3 -1
- package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +3 -1
- package/es-modules/Series/Sankey/SankeyColumnComposition.js +193 -0
- package/es-modules/Series/Sankey/SankeyPoint.js +40 -2
- package/es-modules/Series/Sankey/SankeySeries.js +35 -136
- package/es-modules/Series/Scatter/ScatterSeries.js +11 -6
- package/es-modules/Series/Scatter3D/Scatter3DPoint.js +3 -1
- package/es-modules/Series/Scatter3D/Scatter3DSeries.js +3 -1
- package/es-modules/Series/SeriesOnPointComposition.js +391 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +5 -3
- package/es-modules/Series/Spline/SplineSeries.js +13 -4
- package/es-modules/Series/Streamgraph/StreamgraphSeries.js +3 -1
- package/es-modules/Series/Sunburst/SunburstPoint.js +3 -3
- package/es-modules/Series/Sunburst/SunburstSeries.js +21 -5
- package/es-modules/Series/Tilemap/TilemapPoint.js +3 -1
- package/es-modules/Series/Tilemap/TilemapSeries.js +3 -1
- package/es-modules/Series/Timeline/TimelinePoint.js +3 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +6 -4
- package/es-modules/Series/Treemap/TreemapPoint.js +8 -4
- package/es-modules/Series/Treemap/TreemapSeries.js +97 -87
- package/es-modules/Series/VariablePie/VariablePieSeries.js +3 -1
- package/es-modules/Series/Variwide/VariwidePoint.js +3 -1
- package/es-modules/Series/Variwide/VariwideSeries.js +3 -1
- package/es-modules/Series/Vector/VectorSeries.js +3 -1
- package/es-modules/Series/Venn/VennPoint.js +5 -5
- package/es-modules/Series/Venn/VennSeries.js +9 -6
- package/es-modules/Series/Waterfall/WaterfallPoint.js +3 -1
- package/es-modules/Series/Waterfall/WaterfallSeries.js +16 -12
- package/es-modules/Series/Windbarb/WindbarbPoint.js +3 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -1
- package/es-modules/Series/Wordcloud/WordcloudPoint.js +6 -6
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +11 -8
- package/es-modules/Series/XRange/XRangePoint.js +3 -1
- package/es-modules/Series/XRange/XRangeSeries.js +3 -1
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +3 -1
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +5 -3
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -1
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +3 -1
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +6 -4
- package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +3 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +3 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +3 -1
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +13 -7
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +3 -1
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +3 -1
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +3 -1
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +26 -13
- package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +3 -1
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +85 -95
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +3 -1
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsPoint.js +3 -1
- package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +3 -1
- package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +3 -1
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +3 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +12 -3
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +6 -4
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +3 -1
- package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +3 -1
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -1
- package/es-modules/Stock/Indicators/VBP/VBPPoint.js +3 -1
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +3 -1
- package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +3 -1
- package/es-modules/Stock/StockToolsBindings.js +51 -43
- package/es-modules/Stock/StockToolsGui.js +1 -1
- 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 +4 -4
- 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 +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +2 -2
- package/es-modules/masters/modules/annotations.src.js +2 -2
- package/es-modules/masters/modules/arc-diagram.src.js +14 -0
- 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 +2 -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 +2 -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 +5 -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 +5 -2
- package/es-modules/masters/modules/series-on-point.src.js +16 -0
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +2 -6
- 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 +5 -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 +1 -1
- package/es-modules/masters/themes/brand-light.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +99 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +51 -21
- package/highcharts-gantt.js +811 -801
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +2020 -1607
- package/highcharts-more.d.ts +10 -0
- package/highcharts-more.js +194 -194
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +10 -0
- package/highcharts-more.src.js +3512 -3364
- package/highcharts.d.ts +12336 -965
- package/highcharts.js +595 -586
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +12336 -965
- package/highcharts.src.js +1047 -665
- package/highmaps.js +763 -728
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +4482 -2639
- package/highstock.js +798 -788
- package/highstock.js.map +1 -1
- package/highstock.src.js +1177 -739
- package/indicators/acceleration-bands.d.ts +1 -17
- package/indicators/acceleration-bands.js +11 -11
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.d.ts +1 -17
- package/indicators/acceleration-bands.src.js +99 -100
- package/indicators/accumulation-distribution.js +5 -5
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +11 -2
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +13 -4
- package/indicators/apo.js +5 -5
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +11 -2
- package/indicators/aroon-oscillator.d.ts +1 -17
- package/indicators/aroon-oscillator.js +10 -10
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.d.ts +1 -17
- package/indicators/aroon-oscillator.src.js +99 -100
- package/indicators/aroon.d.ts +1 -17
- package/indicators/aroon.js +11 -11
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.d.ts +1 -17
- package/indicators/aroon.src.js +99 -100
- package/indicators/atr.js +5 -5
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +11 -2
- package/indicators/bollinger-bands.d.ts +1 -17
- package/indicators/bollinger-bands.js +11 -12
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.d.ts +1 -17
- package/indicators/bollinger-bands.src.js +102 -103
- package/indicators/cci.js +5 -5
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +11 -2
- package/indicators/chaikin.js +8 -8
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +11 -2
- package/indicators/cmf.js +6 -6
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +11 -2
- package/indicators/cmo.js +5 -5
- package/indicators/cmo.js.map +1 -1
- package/indicators/cmo.src.js +11 -2
- package/indicators/dema.js +5 -5
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +11 -2
- package/indicators/disparity-index.js +6 -6
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +11 -2
- package/indicators/dmi.js +12 -12
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +109 -106
- package/indicators/dpo.js +5 -5
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +11 -2
- package/indicators/ema.js +2 -1
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +10 -1
- package/indicators/ichimoku-kinko-hyo.js +16 -16
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +11 -2
- package/indicators/indicators-all.d.ts +1 -17
- package/indicators/indicators-all.js +198 -196
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.d.ts +1 -17
- package/indicators/indicators-all.src.js +151 -129
- package/indicators/indicators.js +13 -12
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +21 -5
- package/indicators/keltner-channels.d.ts +1 -17
- package/indicators/keltner-channels.js +11 -11
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.d.ts +1 -17
- package/indicators/keltner-channels.src.js +99 -100
- package/indicators/klinger.js +14 -14
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +99 -100
- package/indicators/macd.js +13 -11
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +35 -14
- package/indicators/mfi.js +6 -6
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +11 -2
- package/indicators/momentum.js +5 -5
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +11 -2
- package/indicators/natr.js +5 -4
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +11 -2
- package/indicators/obv.js +5 -5
- package/indicators/obv.js.map +1 -1
- package/indicators/obv.src.js +11 -2
- package/indicators/pivot-points.js +11 -11
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +11 -2
- package/indicators/ppo.js +5 -5
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +11 -2
- package/indicators/price-channel.d.ts +1 -17
- package/indicators/price-channel.js +11 -11
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.d.ts +1 -17
- package/indicators/price-channel.src.js +99 -100
- package/indicators/price-envelopes.js +8 -8
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +11 -2
- package/indicators/psar.js +7 -6
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +11 -2
- package/indicators/regressions.js +12 -12
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +11 -2
- package/indicators/roc.js +5 -5
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +11 -2
- package/indicators/rsi.js +6 -5
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +11 -2
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +11 -2
- package/indicators/stochastic.d.ts +1 -17
- package/indicators/stochastic.js +12 -12
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.d.ts +1 -17
- package/indicators/stochastic.src.js +99 -100
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +14 -5
- package/indicators/tema.js +6 -6
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +11 -2
- package/indicators/trendline.js +5 -5
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +11 -2
- package/indicators/trix.js +4 -4
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +11 -2
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +11 -2
- package/indicators/vwap.js +5 -5
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +11 -2
- package/indicators/williams-r.js +6 -5
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +11 -2
- package/indicators/wma.js +5 -5
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +11 -2
- package/indicators/zigzag.js +6 -6
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +11 -2
- package/lib/jspdf.js +299 -184
- package/lib/jspdf.src.js +25266 -18067
- package/lib/svg2pdf.js +35 -31
- package/lib/svg2pdf.src.js +5721 -4179
- package/modules/accessibility.js +242 -237
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +599 -390
- package/modules/annotations-advanced.js +192 -192
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +96 -47
- package/modules/annotations.js +126 -126
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +67 -25
- package/modules/arc-diagram.js +25 -0
- package/modules/arc-diagram.js.map +1 -0
- package/modules/arc-diagram.src.js +778 -0
- package/modules/arrow-symbols.js +4 -3
- package/modules/arrow-symbols.js.map +1 -1
- package/modules/arrow-symbols.src.js +11 -2
- package/modules/boost-canvas.js +16 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +22 -7
- package/modules/boost.js +81 -79
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +90 -51
- package/modules/broken-axis.js +13 -13
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +11 -2
- package/modules/bullet.js +9 -9
- package/modules/bullet.js.map +1 -1
- package/modules/bullet.src.js +12 -6
- package/modules/coloraxis.js +24 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +37 -11
- package/modules/current-date-indicator.js +5 -4
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +12 -3
- package/modules/cylinder.js +11 -11
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +11 -2
- package/modules/data.d.ts +12 -12
- package/modules/data.js +33 -33
- package/modules/data.js.map +1 -1
- package/modules/data.src.d.ts +12 -12
- package/modules/data.src.js +906 -846
- package/modules/datagrouping.js +21 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +19 -5
- package/modules/debugger.js +8 -7
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +15 -2
- package/modules/dependency-wheel.js +12 -11
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +14 -5
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +11 -2
- package/modules/drag-panes.js +10 -10
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +12 -3
- package/modules/draggable-points.js +35 -34
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +20 -9
- package/modules/drilldown.d.ts +19 -0
- package/modules/drilldown.js +37 -25
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +19 -0
- package/modules/drilldown.src.js +1124 -108
- package/modules/dumbbell.d.ts +4 -0
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.d.ts +4 -0
- package/modules/dumbbell.src.js +34 -13
- package/modules/export-data.js +24 -21
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +87 -14
- package/modules/exporting.d.ts +8 -8
- package/modules/exporting.js +39 -39
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.d.ts +8 -8
- package/modules/exporting.src.js +270 -135
- package/modules/full-screen.js +8 -7
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +135 -58
- package/modules/funnel.js +12 -12
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +13 -4
- package/modules/funnel3d.js +21 -21
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +11 -2
- package/modules/gantt.js +218 -217
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +983 -943
- package/modules/grid-axis.js +23 -23
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +900 -890
- package/modules/heatmap.js +40 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +160 -113
- package/modules/heikinashi.js +8 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.js +11 -2
- package/modules/histogram-bellcurve.js +13 -13
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +11 -2
- package/modules/hollowcandlestick.js +9 -9
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +19 -10
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +11 -2
- package/modules/lollipop.js +7 -7
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.js +12 -3
- package/modules/map.d.ts +80 -43
- package/modules/map.js +171 -144
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +80 -43
- package/modules/map.src.js +8292 -6822
- package/modules/marker-clusters.js +36 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +48 -28
- package/modules/networkgraph.d.ts +1 -12
- package/modules/networkgraph.js +46 -45
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.d.ts +1 -12
- package/modules/networkgraph.src.js +127 -55
- package/modules/no-data-to-display.js +5 -5
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +12 -3
- package/modules/offline-exporting.js +20 -18
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +129 -28
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +11 -2
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +13 -4
- package/modules/organization.js +16 -14
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +168 -34
- package/modules/overlapping-datalabels.js +3 -2
- package/modules/overlapping-datalabels.js.map +1 -1
- package/modules/overlapping-datalabels.src.js +11 -2
- package/modules/parallel-coordinates.js +11 -11
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +12 -3
- package/modules/pareto.js +7 -7
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +11 -2
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +11 -2
- package/modules/pattern-fill.js +15 -14
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +25 -3
- package/modules/price-indicator.js +5 -5
- package/modules/price-indicator.js.map +1 -1
- package/modules/price-indicator.src.js +11 -2
- package/modules/pyramid3d.js +4 -4
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +11 -2
- package/modules/sankey.d.ts +1 -12
- package/modules/sankey.js +32 -29
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.d.ts +1 -12
- package/modules/sankey.src.js +422 -207
- package/modules/series-label.js +18 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +482 -386
- package/modules/series-on-point.js +18 -0
- package/modules/series-on-point.js.map +1 -0
- package/modules/series-on-point.src.js +464 -0
- package/modules/solid-gauge.js +10 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +15 -6
- package/modules/sonification.js +59 -59
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +13 -8
- package/modules/static-scale.js +5 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +11 -2
- package/modules/stock-tools.js +167 -167
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +118 -67
- package/modules/stock.js +205 -204
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +141 -76
- package/modules/streamgraph.js +5 -4
- package/modules/streamgraph.js.map +1 -1
- package/modules/streamgraph.src.js +11 -2
- package/modules/sunburst.d.ts +3 -0
- package/modules/sunburst.js +73 -60
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.d.ts +3 -0
- package/modules/sunburst.src.js +1391 -406
- package/modules/tilemap.js +17 -17
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +11 -2
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +14 -5
- package/modules/treegrid.js +57 -56
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +913 -892
- package/modules/treemap.d.ts +3 -0
- package/modules/treemap.js +54 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.d.ts +3 -0
- package/modules/treemap.src.js +1229 -255
- package/modules/variable-pie.js +9 -9
- package/modules/variable-pie.js.map +1 -1
- package/modules/variable-pie.src.js +11 -2
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +11 -2
- package/modules/vector.js +8 -7
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +11 -2
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +88 -105
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +11 -2
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +92 -109
- package/modules/xrange.js +16 -16
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +11 -2
- package/package.json +1 -1
- package/themes/avocado.js +4 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +11 -2
- package/themes/brand-dark.js +9 -8
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.js +11 -2
- package/themes/brand-light.js +8 -8
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.js +11 -2
- package/themes/dark-blue.js +9 -8
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +11 -2
- package/themes/dark-green.js +9 -8
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +11 -2
- package/themes/dark-unica.js +8 -7
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +11 -2
- package/themes/gray.js +9 -8
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +11 -2
- package/themes/grid-light.js +5 -4
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +11 -2
- package/themes/grid.js +5 -5
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +11 -2
- package/themes/high-contrast-dark.js +7 -7
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +21 -12
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.js +21 -12
- package/themes/sand-signika.js +5 -5
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +11 -2
- package/themes/skies.js +5 -5
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +11 -2
- package/themes/sunset.js +3 -3
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +11 -2
- package/es-modules/Extensions/Polar.js +0 -740
- package/es-modules/Maps/ProjectionDefinition.js +0 -9
- package/es-modules/Series/ColorMapMixin.js +0 -84
- package/es-modules/Series/DrawPointComposition.js +0 -111
package/modules/gantt.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highcharts Gantt JS
|
|
2
|
+
Highcharts Gantt JS v10.2.0 (2022-07-05)
|
|
3
3
|
|
|
4
4
|
Gantt series
|
|
5
5
|
|
|
@@ -7,220 +7,221 @@
|
|
|
7
7
|
|
|
8
8
|
License: www.highcharts.com/license
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
function(b,
|
|
12
|
-
|
|
13
|
-
arguments);this.y||(this.y=0);return this};
|
|
14
|
-
{ttBelow:!1,tooltipDateKeys:["x","x2"]});return
|
|
15
|
-
b["Core/Utilities.js"],b["Series/XRange/XRangePoint.js"]],function(b,
|
|
16
|
-
|
|
17
|
-
a();return
|
|
18
|
-
d=this.yAxis,
|
|
19
|
-
|
|
20
|
-
E.width/2:p[
|
|
21
|
-
p=
|
|
22
|
-
|
|
23
|
-
this,
|
|
24
|
-
dataLabels:{formatter:function(){var
|
|
25
|
-
getExtremesFromAll:!0,autoIncrement:b.noop,buildKDTree:b.noop,pointClass:
|
|
26
|
-
|
|
27
|
-
return h};
|
|
28
|
-
!1)}function p(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function
|
|
29
|
-
!(null===
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var
|
|
33
|
-
a.val2Lin=function(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
h(
|
|
37
|
-
"afterBreaks"),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
this.grid.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
height:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
[g,a.treeGrid.labelIcon].forEach(function(
|
|
64
|
-
function(
|
|
65
|
-
|
|
66
|
-
b["Core/Utilities.js"]],function(b,
|
|
67
|
-
c;b.childrenTotal=
|
|
68
|
-
"brightness"===
|
|
69
|
-
a
|
|
70
|
-
|
|
71
|
-
q.push(
|
|
72
|
-
|
|
73
|
-
0;if(!
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
(this.min=
|
|
79
|
-
"setTickInterval",
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
v=
|
|
83
|
-
v(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
0,xMax:(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
this.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
c
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
-
if(a.options.milestone)if(
|
|
117
|
-
c.height||0;a.shapeArgs={x:(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
b.
|
|
124
|
-
(
|
|
125
|
-
this.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
.
|
|
131
|
-
(this
|
|
132
|
-
this.
|
|
133
|
-
this.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
b
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
a.prototype.
|
|
154
|
-
(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
0
|
|
169
|
-
|
|
170
|
-
f
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
b){a
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
function(a){var b=this
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
a.
|
|
209
|
-
|
|
210
|
-
a.
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
10
|
+
(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/gantt",["highcharts"],function(F){b(F);b.Highcharts=F;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function F(b,r,y,v){b.hasOwnProperty(r)||(b[r]=v.apply(null,y),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:r,module:b[r]}})))}b=b?b._modules:{};F(b,"Series/XRange/XRangePoint.js",
|
|
11
|
+
[b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,r,y){var v=this&&this.__extends||function(){var b=function(n,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var p in f)f.hasOwnProperty(p)&&(h[p]=f[p])};return b(n,h)};return function(n,h){function t(){this.constructor=n}b(n,h);n.prototype=null===h?Object.create(h):(t.prototype=h.prototype,new t)}}();y=y.extend;r=function(r){function n(){var h=
|
|
12
|
+
null!==r&&r.apply(this,arguments)||this;h.options=void 0;h.series=void 0;return h}v(n,r);n.getColorByCategory=function(h,t){var f=h.options.colors||h.chart.options.colors;h=t.y%(f?f.length:h.chart.options.chart.colorCount);return{colorIndex:h,color:f&&f[h]}};n.prototype.resolveColor=function(){var h=this.series;if(h.options.colorByPoint&&!this.options.color){var t=n.getColorByCategory(h,this);h.chart.styledMode||(this.color=t.color);this.options.colorIndex||(this.colorIndex=t.colorIndex)}else this.color||
|
|
13
|
+
(this.color=h.color)};n.prototype.init=function(){b.prototype.init.apply(this,arguments);this.y||(this.y=0);return this};n.prototype.setState=function(){b.prototype.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};n.prototype.getLabelConfig=function(){var h=b.prototype.getLabelConfig.call(this),t=this.series.yAxis.categories;h.x2=this.x2;h.yCategory=this.yCategory=t&&t[this.y];return h};n.prototype.isValid=function(){return"number"===typeof this.x&&"number"===
|
|
14
|
+
typeof this.x2};return n}(r.seriesTypes.column.prototype.pointClass);y(r.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});return r});F(b,"Series/XRange/XRangeComposition.js",[b["Core/Axis/Axis.js"],b["Core/Utilities.js"]],function(b,r){var y=r.addEvent,v=r.pick;y(b,"afterGetSeriesExtremes",function(){var b=this.series,n;if(this.isXAxis){var h=v(this.dataMax,-Number.MAX_VALUE);b.forEach(function(t){t.x2Data&&t.x2Data.forEach(function(f){f>h&&(h=f,n=!0)})});n&&(this.dataMax=h)}})});F(b,"Series/XRange/XRangeSeries.js",
|
|
15
|
+
[b["Core/Globals.js"],b["Core/Color/Color.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"],b["Series/XRange/XRangePoint.js"]],function(b,r,y,v,Q){var n=this&&this.__extends||function(){var a=function(d,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,a){l.__proto__=a}||function(l,a){for(var x in a)a.hasOwnProperty(x)&&(l[x]=a[x])};return a(d,l)};return function(d,l){function x(){this.constructor=d}a(d,l);d.prototype=null===l?Object.create(l):(x.prototype=l.prototype,
|
|
16
|
+
new x)}}(),h=r.parse,t=y.series,f=y.seriesTypes.column,p=f.prototype,c=v.clamp,B=v.correctFloat,H=v.defined;r=v.extend;var K=v.find,g=v.isNumber,a=v.isObject,d=v.merge,w=v.pick;v=function(C){function J(){var a=null!==C&&C.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}n(J,C);J.prototype.init=function(){f.prototype.init.apply(this,arguments);this.options.stacking=void 0};J.prototype.getColumnMetrics=function(){function a(){x.series.forEach(function(a){var l=a.xAxis;
|
|
17
|
+
a.xAxis=a.yAxis;a.yAxis=l})}var x=this.chart;a();var d=p.getColumnMetrics.call(this);a();return d};J.prototype.cropData=function(a,x,d,g){x=t.prototype.cropData.call(this,this.x2Data,x,d,g);x.xData=a.slice(x.start,x.end);return x};J.prototype.findPointIndex=function(a){var l=this.cropped,d=this.cropStart,w=this.points,c=a.id;if(c)var f=(f=K(w,function(a){return a.id===c}))?f.index:void 0;"undefined"===typeof f&&(f=(f=K(w,function(l){return l.x===a.x&&l.x2===a.x2&&!l.touched}))?f.index:void 0);l&&
|
|
18
|
+
g(f)&&g(d)&&f>=d&&(f-=d);return f};J.prototype.translatePoint=function(l){var x=this.xAxis,G=this.yAxis,f=this.columnMetrics,E=this.options,C=E.minPointLength||0,p=(l.shapeArgs&&l.shapeArgs.width||0)/2,A=this.pointXOffset=f.offset,m=l.plotX,z=w(l.x2,l.x+(l.len||0)),u=x.translate(z,0,0,0,1);z=Math.abs(u-m);var e=this.chart.inverted,k=w(E.borderWidth,1)%2/2,q=f.offset,N=Math.round(f.width);C&&(C-=z,0>C&&(C=0),m-=C/2,u+=C/2);m=Math.max(m,-10);u=c(u,-10,x.len+10);H(l.options.pointWidth)&&(q-=(Math.ceil(l.options.pointWidth)-
|
|
19
|
+
N)/2,N=Math.ceil(l.options.pointWidth));E.pointPlacement&&g(l.plotY)&&G.categories&&(l.plotY=G.translate(l.y,0,1,0,1,E.pointPlacement));E=Math.floor(Math.min(m,u))+k;E={x:E,y:Math.floor(l.plotY+q)+k,width:Math.floor(Math.max(m,u))+k-E,height:N,r:this.options.borderRadius};l.shapeArgs=E;e?l.tooltipPos[1]+=A+p:l.tooltipPos[0]-=p+A-E.width/2;p=E.x;A=p+E.width;0>p||A>x.len?(p=c(p,0,x.len),A=c(A,0,x.len),u=A-p,l.dlBox=d(E,{x:p,width:A-p,centerX:u?u/2:null})):l.dlBox=null;p=l.tooltipPos;A=e?1:0;u=e?0:1;
|
|
20
|
+
f=this.columnMetrics?this.columnMetrics.offset:-f.width/2;p[A]=e?p[A]+E.width/2:p[A]+(x.reversed?-1:0)*E.width;p[u]=c(p[u]+(e?-1:1)*f,0,G.len-1);if(G=l.partialFill)a(G)&&(G=G.amount),g(G)||(G=0),l.partShapeArgs=d(E,{r:this.options.borderRadius}),m=Math.max(Math.round(z*G+l.plotX-m),0),l.clipRectArgs={x:x.reversed?E.x+z-m:E.x,y:E.y,width:m,height:E.height}};J.prototype.translate=function(){p.translate.apply(this,arguments);this.points.forEach(function(a){this.translatePoint(a)},this)};J.prototype.drawPoint=
|
|
21
|
+
function(l,x){var g=this.options,f=this.chart.renderer,c=l.graphic,p=l.shapeType,C=l.shapeArgs,A=l.partShapeArgs,m=l.clipRectArgs,z=l.partialFill,u=g.stacking&&!g.borderRadius,e=l.state,k=g.states[e||"normal"]||{},q="undefined"===typeof e?"attr":x;e=this.pointAttribs(l,e);k=w(this.chart.options.chart.animation,k.animation);if(l.isNull||!1===l.visible)c&&(l.graphic=c.destroy());else{if(c)c.rect[x](C);else l.graphic=c=f.g("point").addClass(l.getClassName()).add(l.group||this.group),c.rect=f[p](d(C)).addClass(l.getClassName()).addClass("highcharts-partfill-original").add(c);
|
|
22
|
+
A&&(c.partRect?(c.partRect[x](d(A)),c.partialClipRect[x](d(m))):(c.partialClipRect=f.clipRect(m.x,m.y,m.width,m.height),c.partRect=f[p](A).addClass("highcharts-partfill-overlay").add(c).clip(c.partialClipRect)));this.chart.styledMode||(c.rect[x](e,k).shadow(g.shadow,null,u),A&&(a(z)||(z={}),a(g.partialFill)&&(z=d(g.partialFill,z)),l=z.fill||h(e.fill).brighten(-.3).get()||h(l.color||this.color).brighten(-.3).get(),e.fill=l,c.partRect[q](e,k).shadow(g.shadow,null,u)))}};J.prototype.drawPoints=function(){var a=
|
|
23
|
+
this,d=a.getAnimationVerb();a.points.forEach(function(l){a.drawPoint(l,d)})};J.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};J.prototype.isPointInside=function(a){var l=a.shapeArgs,d=a.plotX,g=a.plotY;return l?"undefined"!==typeof d&&"undefined"!==typeof g&&0<=g&&g<=this.yAxis.len&&0<=(l.x||0)+(l.width||0)&&d<=this.xAxis.len:C.prototype.isPointInside.apply(this,arguments)};J.defaultOptions=d(f.defaultOptions,{colorByPoint:!0,
|
|
24
|
+
dataLabels:{formatter:function(){var l=this.point.partialFill;a(l)&&(l=l.amount);if(g(l)&&0<l)return B(100*l)+"%"},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0});return J}(f);r(v.prototype,{type:"xrange",parallelArrays:["x","x2","y"],requireSorting:!1,animate:t.prototype.animate,cropShoulder:1,
|
|
25
|
+
getExtremesFromAll:!0,autoIncrement:b.noop,buildKDTree:b.noop,pointClass:Q});y.registerSeriesType("xrange",v);"";return v});F(b,"Series/Gantt/GanttPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,r){var y=this&&this.__extends||function(){var b=function(n,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var p in f)f.hasOwnProperty(p)&&(h[p]=f[p])};return b(n,h)};return function(n,h){function t(){this.constructor=
|
|
26
|
+
n}b(n,h);n.prototype=null===h?Object.create(h):(t.prototype=h.prototype,new t)}}(),v=r.pick;return function(b){function n(){var h=null!==b&&b.apply(this,arguments)||this;h.options=void 0;h.series=void 0;return h}y(n,b);n.setGanttPointAliases=function(h){function b(f,p){"undefined"!==typeof p&&(h[f]=p)}b("x",v(h.start,h.x));b("x2",v(h.end,h.x2));b("partialFill",v(h.completed,h.partialFill))};n.prototype.applyOptions=function(h,t){h=b.prototype.applyOptions.call(this,h,t);n.setGanttPointAliases(h);
|
|
27
|
+
return h};n.prototype.isValid=function(){return("number"===typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return n}(b.seriesTypes.xrange.prototype.pointClass)});F(b,"Core/Axis/BrokenAxis.js",[b["Extensions/Stacking.js"],b["Core/Utilities.js"]],function(b,r){var y=r.addEvent,v=r.find,D=r.fireEvent,n=r.isArray,h=r.isNumber,t=r.pick,f;(function(f){function c(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,
|
|
28
|
+
!1)}function p(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function H(){var a=this.brokenAxis;if(a&&a.hasBreaks){for(var d=this.tickPositions,g=this.tickPositions.info,c=[],w=0;w<d.length;w++)a.isInAnyBreak(d[w])||c.push(d[w]);this.tickPositions=c;this.tickPositions.info=g}}function K(){this.brokenAxis||(this.brokenAxis=new J(this))}function g(){var a=this.options.connectNulls,d=this.points,g=this.xAxis,c=this.yAxis;if(this.isDirty)for(var w=d.length;w--;){var f=d[w],p=
|
|
29
|
+
!(null===f.y&&!1===a)&&(g&&g.brokenAxis&&g.brokenAxis.isInAnyBreak(f.x,!0)||c&&c.brokenAxis&&c.brokenAxis.isInAnyBreak(f.y,!0));f.visible=p?!1:!1!==f.options.visible}}function a(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,t(this.pointArrayMap,["y"]))}function d(a,d){var l=this,g=l.points,x,c,w,A;if(a&&a.brokenAxis&&a.brokenAxis.hasBreaks){var m=a.brokenAxis;d.forEach(function(z){x=m&&m.breakArray||[];c=a.isXAxis?a.min:t(l.options.threshold,a.min);g.forEach(function(m){A=t(m["stack"+
|
|
30
|
+
z.toUpperCase()],m[z]);x.forEach(function(e){if(h(c)&&h(A)){w=!1;if(c<e.from&&A>e.to||c>e.from&&A<e.from)w="pointBreak";else if(c<e.from&&A>e.from&&A<e.to||c>e.from&&A>e.to&&A<e.from)w="pointInBreak";w&&D(a,w,{point:m,brk:e})}})})})}}function w(){var a=this.currentDataGrouping,d=a&&a.gapSize;a=this.points.slice();var g=this.yAxis,c=this.options.gapSize,w=a.length-1,f;if(c&&0<w)for("value"!==this.options.gapUnit&&(c*=this.basePointRange),d&&d>c&&d>=this.basePointRange&&(c=d),f=void 0;w--;)f&&!1!==
|
|
31
|
+
f.visible||(f=a[w+1]),d=a[w],!1!==f.visible&&!1!==d.visible&&(f.x-d.x>c&&(f=(d.x+f.x)/2,a.splice(w+1,0,{isNull:!0,x:f}),g.stacking&&this.options.stacking&&(f=g.stacking.stacks[this.stackKey][f]=new b(g,g.options.stackLabels,!1,f,this.stack),f.total=0)),f=d);return this.getGraphPath(a)}var C=[];f.compose=function(l,f){-1===C.indexOf(l)&&(C.push(l),l.keepProps.push("brokenAxis"),y(l,"init",K),y(l,"afterInit",c),y(l,"afterSetTickPositions",H),y(l,"afterSetOptions",p));if(-1===C.indexOf(f)){C.push(f);
|
|
32
|
+
var x=f.prototype;x.drawBreaks=d;x.gappedPath=w;y(f,"afterGeneratePoints",g);y(f,"afterRender",a)}return l};var J=function(){function a(a){this.hasBreaks=!1;this.axis=a}a.isInBreak=function(a,d){var l=a.repeat||Infinity,g=a.from,c=a.to-a.from;d=d>=g?(d-g)%l:l-(g-d)%l;return a.inclusive?d<=c:d<c&&0!==d};a.lin2Val=function(d){var l=this.brokenAxis;l=l&&l.breakArray;if(!l||!h(d))return d;var g;for(g=0;g<l.length;g++){var c=l[g];if(c.from>=d)break;else c.to<d?d+=c.len:a.isInBreak(c,d)&&(d+=c.len)}return d};
|
|
33
|
+
a.val2Lin=function(d){var l=this.brokenAxis;l=l&&l.breakArray;if(!l||!h(d))return d;var g=d,c;for(c=0;c<l.length;c++){var f=l[c];if(f.to<=d)g-=f.len;else if(f.from>=d)break;else if(a.isInBreak(f,d)){g-=d-f.from;break}}return g};a.prototype.findBreakAt=function(a,d){return v(d,function(d){return d.from<a&&a<d.to})};a.prototype.isInAnyBreak=function(d,l){var g=this.axis,c=g.options.breaks||[],f=c.length,w;if(f&&h(d)){for(;f--;)if(a.isInBreak(c[f],d)){var A=!0;w||(w=t(c[f].showPoints,!g.isXAxis))}var m=
|
|
34
|
+
A&&l?A&&!w:A}return m};a.prototype.setBreaks=function(d,l){var g=this,c=g.axis,f=n(d)&&!!d.length;c.isDirty=g.hasBreaks!==f;g.hasBreaks=f;c.options.breaks=c.userOptions.breaks=d;c.forceRedraw=!0;c.series.forEach(function(a){a.isDirty=!0});f||c.val2lin!==a.val2Lin||(delete c.val2lin,delete c.lin2val);f&&(c.userOptions.ordinal=!1,c.lin2val=a.lin2Val,c.val2lin=a.val2Lin,c.setExtremes=function(a,d,m,z,u){if(g.hasBreaks){for(var e=this.options.breaks||[],k;k=g.findBreakAt(a,e);)a=k.to;for(;k=g.findBreakAt(d,
|
|
35
|
+
e);)d=k.from;d<a&&(d=a)}c.constructor.prototype.setExtremes.call(this,a,d,m,z,u)},c.setAxisTranslation=function(){c.constructor.prototype.setAxisTranslation.call(this);g.unitLength=void 0;if(g.hasBreaks){var d=c.options.breaks||[],l=[],m=[],z=t(c.pointRangePadding,0),u=0,e,k=c.userMin||c.min,q=c.userMax||c.max,f;d.forEach(function(d){e=d.repeat||Infinity;h(k)&&h(q)&&(a.isInBreak(d,k)&&(k+=d.to%e-k%e),a.isInBreak(d,q)&&(q-=q%e-d.from%e))});d.forEach(function(a){P=a.from;e=a.repeat||Infinity;if(h(k)&&
|
|
36
|
+
h(q)){for(;P-e>k;)P-=e;for(;P<k;)P+=e;for(f=P;f<q;f+=e)l.push({value:f,move:"in"}),l.push({value:f+a.to-a.from,move:"out",size:a.breakSize})}});l.sort(function(e,k){return e.value===k.value?("in"===e.move?0:1)-("in"===k.move?0:1):e.value-k.value});var O=0;var P=k;l.forEach(function(e){O+="in"===e.move?1:-1;1===O&&"in"===e.move&&(P=e.value);0===O&&h(P)&&(m.push({from:P,to:e.value,len:e.value-P-(e.size||0)}),u+=e.value-P-(e.size||0))});g.breakArray=m;h(k)&&h(q)&&h(c.min)&&(g.unitLength=q-k-u+z,D(c,
|
|
37
|
+
"afterBreaks"),c.staticScale?c.transA=c.staticScale:g.unitLength&&(c.transA*=(q-c.min+z)/g.unitLength),z&&(c.minPixelPadding=c.transA*(c.minPointOffset||0)),c.min=k,c.max=q)}});t(l,!0)&&c.chart.redraw()};return a}();f.Additions=J})(f||(f={}));return f});F(b,"Core/Axis/GridAxis.js",[b["Core/Axis/Axis.js"],b["Core/Axis/AxisDefaults.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,r,y,v){function D(e,k){var a={width:0,height:0};k.forEach(function(k){k=e[k];if(v.isObject(k,!0)){var d=v.isObject(k.label,
|
|
38
|
+
!0)?k.label:{};k=d.getBBox?d.getBBox().height:0;d.textStr&&!A(d.textPxLength)&&(d.textPxLength=d.getBBox().width);var m=A(d.textPxLength)?Math.round(d.textPxLength):0;d.textStr&&(m=Math.round(d.getBBox().width));a.height=Math.max(k,a.height);a.width=Math.max(m,a.width)}});"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&(a.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||0)-1));return a}function n(){var e=this.grid;(e&&e.columns||
|
|
39
|
+
[]).forEach(function(e){e.getOffset()})}function h(e){if(!0===(this.options.grid||{}).enabled){var a=this.axisTitle,d=this.height,m=this.horiz,u=this.left,O=this.offset,q=this.opposite,c=this.options,l=this.top,g=this.width,f=this.tickSize(),w=a&&a.getBBox().width,A=c.title.x,N=c.title.y,x=z(c.title.margin,m?5:10);a=this.chart.renderer.fontMetrics(c.title.style.fontSize,a).f;f=(m?l+d:u)+(m?1:-1)*(q?-1:1)*(f?f[0]/2:0)+(this.side===k.bottom?a:0);e.titlePosition.x=m?u-(w||0)/2-x+A:f+(q?g:0)+O+A;e.titlePosition.y=
|
|
40
|
+
m?f-(q?d:0)+(q?a:-a)/2+O+N:l-x+N}}function t(){var e=this.chart,k=this.options.grid;k=void 0===k?{}:k;var a=this.userOptions;if(k.enabled){var d=this.options;d.labels.align=z(d.labels.align,"center");this.categories||(d.showLastLabel=!1);this.labelRotation=0;d.labels.rotation=0}if(k.columns){d=this.grid.columns=[];for(var u=this.grid.columnIndex=0;++u<k.columns.length;){var q=m(a,k.columns[k.columns.length-u-1],{linkedTo:0,type:"category",scrollbar:{enabled:!1}});delete q.grid.columns;q=new b(this.chart,
|
|
41
|
+
q);q.grid.isColumn=!0;q.grid.columnIndex=u;E(e.axes,q);E(e[this.coll],q);d.push(q)}}}function f(){var e=this.grid,a=this.options;if(!0===(a.grid||{}).enabled){var d=this.min||0,m=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine){var u=a.lineWidth;if(u){u=this.getLinePath(u);var q=u[0],c=u[1],z=((this.tickSize("tick")||[1])[0]-1)*(this.side===k.top||this.side===
|
|
42
|
+
k.left?-1:1);"M"===q[0]&&"L"===c[0]&&(this.horiz?(q[2]+=z,c[2]+=z):(q[1]+=z,c[1]+=z));!this.horiz&&this.chart.marginRight&&(q=[q,["L",this.left,q[2]||0]],z=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(m+this.tickmarkOffset)],c=[["M",c[1]||0,this.toPixels(m+this.tickmarkOffset)],z],this.grid.upperBorder||0===d%1||(this.grid.upperBorder=this.grid.renderBorder(q)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:a.lineColor,"stroke-width":a.lineWidth}),this.grid.upperBorder.animate({d:q})),
|
|
43
|
+
this.grid.lowerBorder||0===m%1||(this.grid.lowerBorder=this.grid.renderBorder(c)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:a.lineColor,"stroke-width":a.lineWidth}),this.grid.lowerBorder.animate({d:c})));this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:a.lineColor,"stroke-width":a.lineWidth}),this.grid.axisLineExtra.animate({d:u})):this.grid.axisLineExtra=this.grid.renderBorder(u);this.axisLine[this.showAxis?"show":"hide"]()}}(e&&e.columns||[]).forEach(function(e){return e.render()});
|
|
44
|
+
if(!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)){e=this.tickmarkOffset;a=this.tickPositions[this.tickPositions.length-1];u=this.tickPositions[0];for(q=c=void 0;(c=this.hiddenLabels.pop())&&c.element;)c.show();for(;(q=this.hiddenMarks.pop())&&q.element;)q.show();(c=this.ticks[u].label)&&(d-u>e?this.hiddenLabels.push(c.hide()):c.show());(c=this.ticks[a].label)&&(a-m>e?this.hiddenLabels.push(c.hide()):c.show());(d=this.ticks[a].mark)&&a-m<e&&0<
|
|
45
|
+
a-m&&this.ticks[a].isLast&&this.hiddenMarks.push(d.hide())}}}function p(){var e=this.tickPositions&&this.tickPositions.info,k=this.options,a=this.userOptions.labels||{};(k.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(e){e.options.pointRange=0}),e&&k.dateTimeLabelFormats&&k.labels&&!M(a.align)&&(!1===k.dateTimeLabelFormats[e.unitName].range||1<e.count)&&(k.labels.align="left",M(a.x)||(k.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&this.grid.columns&&(this.minPointOffset=
|
|
46
|
+
this.tickInterval))}function c(e){var k=this.options;e=e.userOptions;var a=k&&v.isObject(k.grid,!0)?k.grid:{};if(!0===a.enabled){var d=m(!0,{className:"highcharts-grid-axis "+(e.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0},units:[["millisecond",[1,10,100]],["second",
|
|
47
|
+
[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},e);"xAxis"===this.coll&&(M(e.linkedTo)&&!M(e.tickPixelInterval)&&(d.tickPixelInterval=350),M(e.tickPixelInterval)||!M(e.linkedTo)||M(e.tickPositioner)||M(e.tickInterval)||(d.tickPositioner=function(e,k){var a=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(a){for(var m=d.units||[],q=void 0,c=1,z="year",O=0;O<m.length;O++){var l=m[O];if(l&&l[0]===a.unitName){q=
|
|
48
|
+
O;break}}(m=A(q)&&m[q+1])?(z=m[0]||"year",c=(c=m[1])&&c[0]||1):"year"===a.unitName&&(c=10*a.count);a=u[z];this.tickInterval=a*c;return this.chart.time.getTimeTicks({unitRange:a,count:c,unitName:z},e,k,this.options.startOfWeek)}}));m(!0,this.options,d);this.horiz&&(k.minPadding=z(e.minPadding,0),k.maxPadding=z(e.maxPadding,0));A(k.grid.borderWidth)&&(k.tickWidth=k.lineWidth=a.borderWidth)}}function B(e){e=(e=e.userOptions)&&e.grid||{};var k=e.columns;e.enabled&&k&&m(!0,this.options,k[k.length-1])}
|
|
49
|
+
function H(){(this.grid.columns||[]).forEach(function(e){return e.setScale()})}function K(e){var k=r.defaultLeftAxisOptions,a=this.horiz,d=this.maxLabelDimensions,m=this.options.grid;m=void 0===m?{}:m;m.enabled&&d&&(k=2*Math.abs(k.labels.x),a=a?m.cellHeight||k+d.height:k+d.width,I(e.tickSize)?e.tickSize[0]=a:e.tickSize=[a,0])}function g(){this.axes.forEach(function(e){(e.grid&&e.grid.columns||[]).forEach(function(e){e.setAxisSize();e.setAxisTranslation()})})}function a(e){var k=this.grid;(k.columns||
|
|
50
|
+
[]).forEach(function(k){return k.destroy(e.keepEvents)});k.columns=void 0}function d(e){e=e.userOptions||{};var k=e.grid||{};k.enabled&&M(k.borderColor)&&(e.tickColor=e.lineColor=k.borderColor);this.grid||(this.grid=new N(this));this.hiddenLabels=[];this.hiddenMarks=[]}function w(e){var a=this.label,d=this.axis,m=d.reversed,q=d.chart,c=d.options.grid||{},u=d.options.labels,z=u.align,l=k[d.side],g=e.tickmarkOffset,f=d.tickPositions,O=this.pos-g;f=A(f[e.index+1])?f[e.index+1]-g:(d.max||0)+g;var w=d.tickSize("tick");
|
|
51
|
+
g=w?w[0]:0;w=w?w[1]/2:0;if(!0===c.enabled){if("top"===l){c=d.top+d.offset;var N=c-g}else"bottom"===l?(N=q.chartHeight-d.bottom+d.offset,c=N+g):(c=d.top+d.len-(d.translate(m?f:O)||0),N=d.top+d.len-(d.translate(m?O:f)||0));"right"===l?(l=q.chartWidth-d.right+d.offset,m=l+g):"left"===l?(m=d.left+d.offset,l=m-g):(l=Math.round(d.left+(d.translate(m?f:O)||0))-w,m=Math.min(Math.round(d.left+(d.translate(m?O:f)||0))-w,d.left+d.len));this.slotWidth=m-l;e.pos.x="left"===z?l:"right"===z?m:l+(m-l)/2;e.pos.y=
|
|
52
|
+
N+(c-N)/2;q=q.renderer.fontMetrics(u.style.fontSize,a&&a.element);a=a?a.getBBox().height:0;u.useHTML?e.pos.y+=q.b+-(a/2):(a=Math.round(a/q.h),e.pos.y+=(q.b-(q.h-q.f))/2+-((a-1)*q.h/2));e.pos.x+=d.horiz&&u.x||0}}function C(e){var k=e.axis,a=e.value;if(k.options.grid&&k.options.grid.enabled){var d=k.tickPositions,q=(k.linkedParent||k).series[0],c=a===d[0];d=a===d[d.length-1];var u=q&&L(q.options.data,function(e){return e[k.isXAxis?"x":"y"]===a}),z=void 0;u&&q.is("gantt")&&(z=m(u),y.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(z));
|
|
53
|
+
e.isFirst=c;e.isLast=d;e.point=z}}function J(){var e=this.options,k=this.categories,a=this.tickPositions,d=a[0],m=a[a.length-1],q=this.linkedParent&&this.linkedParent.min||this.min,c=this.linkedParent&&this.linkedParent.max||this.max,u=this.tickInterval;!0!==(e.grid||{}).enabled||k||!this.horiz&&!this.isLinked||(d<q&&d+u>q&&!e.startOnTick&&(a[0]=q),m>c&&m-u<c&&!e.endOnTick&&(a[a.length-1]=c))}function l(e){var k=this.options.grid;return!0===(void 0===k?{}:k).enabled&&this.categories?this.tickInterval:
|
|
54
|
+
e.apply(this,Array.prototype.slice.call(arguments,1))}var x=y.dateFormats,G=v.addEvent,M=v.defined,E=v.erase,L=v.find,I=v.isArray,A=v.isNumber,m=v.merge,z=v.pick,u=v.timeUnits,e=v.wrap,k;(function(e){e[e.top=0]="top";e[e.right=1]="right";e[e.bottom=2]="bottom";e[e.left=3]="left"})(k||(k={}));var q=[],N=function(){function e(e){this.axis=e}e.prototype.isOuterAxis=function(){var e=this.axis,k=e.grid.columnIndex,a=e.linkedParent&&e.linkedParent.grid.columns||e.grid.columns,d=k?e.linkedParent:e,m=-1,
|
|
55
|
+
q=0;(e.chart[e.coll]||[]).forEach(function(k,a){k.side!==e.side||k.options.isInternal||(q=a,k===d&&(m=a))});return q===m&&(A(k)?a.length===k:!0)};e.prototype.renderBorder=function(e){var k=this.axis,a=k.chart.renderer,d=k.options;e=a.path(e).addClass("highcharts-axis-line").add(k.axisBorder);a.styledMode||e.attr({stroke:d.lineColor,"stroke-width":d.lineWidth,zIndex:7});return e};return e}();x.E=function(e){return this.dateFormat("%a",e,!0).charAt(0)};x.W=function(e){var k=this,a=new this.Date(e);
|
|
56
|
+
["Hours","Milliseconds","Minutes","Seconds"].forEach(function(e){k.set(e,a,0)});var d=(this.get("Day",a)+6)%7;e=new this.Date(a.valueOf());this.set("Date",e,this.get("Date",a)-d+3);d=new this.Date(this.get("FullYear",e),0,1);4!==this.get("Day",d)&&(this.set("Month",a,0),this.set("Date",a,1+(11-this.get("Day",d))%7));return(1+Math.floor((e.valueOf()-d.valueOf())/6048E5)).toString()};"";return{compose:function(k,m,u){-1===q.indexOf(k)&&(q.push(k),k.keepProps.push("grid"),k.prototype.getMaxLabelDimensions=
|
|
57
|
+
D,e(k.prototype,"unsquish",l),G(k,"init",d),G(k,"afterGetOffset",n),G(k,"afterGetTitlePosition",h),G(k,"afterInit",t),G(k,"afterRender",f),G(k,"afterSetAxisTranslation",p),G(k,"afterSetOptions",c),G(k,"afterSetOptions",B),G(k,"afterSetScale",H),G(k,"afterTickSize",K),G(k,"trimTicks",J),G(k,"destroy",a));-1===q.indexOf(m)&&G(m,"afterSetChartSize",g);-1===q.indexOf(u)&&(G(u,"afterGetLabelPosition",w),G(u,"labelFormat",C));return k}}});F(b,"Gantt/Tree.js",[b["Core/Utilities.js"]],function(b){var r=b.extend,
|
|
58
|
+
y=b.isNumber,v=b.pick,D=function(b,n){var f=b.reduce(function(f,c){var p=v(c.parent,"");"undefined"===typeof f[p]&&(f[p]=[]);f[p].push(c);return f},{});Object.keys(f).forEach(function(p,c){var b=f[p];""!==p&&-1===n.indexOf(p)&&(b.forEach(function(f){c[""].push(f)}),delete c[p])});return f},n=function(b,t,f,p,c,B){var h=0,K=0,g=B&&B.after,a=B&&B.before;t={data:p,depth:f-1,id:b,level:f,parent:t};var d,w;"function"===typeof a&&a(t,B);a=(c[b]||[]).map(function(a){var g=n(a.id,b,f+1,a,c,B),l=a.start;a=
|
|
59
|
+
!0===a.milestone?l:a.end;d=!y(d)||l<d?l:d;w=!y(w)||a>w?a:w;h=h+1+g.descendants;K=Math.max(g.height+1,K);return g});p&&(p.start=v(p.start,d),p.end=v(p.end,w));r(t,{children:a,descendants:h,height:K});"function"===typeof g&&g(t,B);return t};return{getListOfParents:D,getNode:n,getTree:function(b,t){var f=b.map(function(f){return f.id});b=D(b,f);return n("",null,1,null,b,t)}}});F(b,"Core/Axis/TreeGridTick.js",[b["Core/Utilities.js"]],function(b){var r=b.addEvent,y=b.isObject,v=b.isNumber,D=b.pick,n=b.wrap,
|
|
60
|
+
h;(function(b){function f(){this.treeGrid||(this.treeGrid=new K(this))}function p(c,a){c=c.treeGrid;var d=!c.labelIcon,f=a.renderer,g=a.xy,b=a.options,l=b.width||0,x=b.height||0,p=g.x-l/2-(b.padding||0);g=g.y-x/2;var h=a.collapsed?90:180,B=a.show&&v(g),n=c.labelIcon;n||(c.labelIcon=n=f.path(f.symbols[b.type](b.x||0,b.y||0,l,x)).addClass("highcharts-label-icon").add(a.group));n[B?"show":"hide"]();f.styledMode||n.attr({cursor:"pointer",fill:D(a.color,"#666666"),"stroke-width":1,stroke:b.lineColor,strokeWidth:b.lineWidth||
|
|
61
|
+
0});n[d?"attr":"animate"]({translateX:p,translateY:g,rotation:h})}function c(c,a,d,f,b,p,l,x,h){var g=D(this.options&&this.options.labels,p);p=this.pos;var w=this.axis,C="treegrid"===w.options.type;c=c.apply(this,[a,d,f,b,g,l,x,h]);C&&(a=g&&y(g.symbol,!0)?g.symbol:{},g=g&&v(g.indentation)?g.indentation:0,p=(p=(w=w.treeGrid.mapOfPosToGridNode)&&w[p])&&p.depth||1,c.x+=(a.width||0)+2*(a.padding||0)+(p-1)*g);return c}function h(c){var a=this,d=a.pos,f=a.axis,g=a.label,b=f.treeGrid.mapOfPosToGridNode,
|
|
62
|
+
l=f.options,x=D(a.options&&a.options.labels,l&&l.labels),h=x&&y(x.symbol,!0)?x.symbol:{},B=(b=b&&b[d])&&b.depth;l="treegrid"===l.type;var n=-1<f.tickPositions.indexOf(d);d=f.chart.styledMode;l&&b&&g&&g.element&&g.addClass("highcharts-treegrid-node-level-"+B);c.apply(a,Array.prototype.slice.call(arguments,1));l&&g&&g.element&&b&&b.descendants&&0<b.descendants&&(f=f.treeGrid.isCollapsed(b),p(a,{color:!d&&g.styles&&g.styles.color||"",collapsed:f,group:g.parentGroup,options:h,renderer:g.renderer,show:n,
|
|
63
|
+
xy:g.xy}),h="highcharts-treegrid-node-"+(f?"expanded":"collapsed"),g.addClass("highcharts-treegrid-node-"+(f?"collapsed":"expanded")).removeClass(h),d||g.css({cursor:"pointer"}),[g,a.treeGrid.labelIcon].forEach(function(d){d&&!d.attachedTreeGridEvents&&(r(d.element,"mouseover",function(){g.addClass("highcharts-treegrid-node-active");g.renderer.styledMode||g.css({textDecoration:"underline"})}),r(d.element,"mouseout",function(){var a=y(x.style)?x.style:{};g.removeClass("highcharts-treegrid-node-active");
|
|
64
|
+
g.renderer.styledMode||g.css({textDecoration:a.textDecoration})}),r(d.element,"click",function(){a.treeGrid.toggleCollapse()}),d.attachedTreeGridEvents=!0)}))}var H=!1;b.compose=function(g){H||(r(g,"init",f),n(g.prototype,"getLabelPosition",c),n(g.prototype,"renderLabel",h),g.prototype.collapse=function(a){this.treeGrid.collapse(a)},g.prototype.expand=function(a){this.treeGrid.expand(a)},g.prototype.toggleCollapse=function(a){this.treeGrid.toggleCollapse(a)},H=!0)};var K=function(){function c(a){this.tick=
|
|
65
|
+
a}c.prototype.collapse=function(a){var d=this.tick,c=d.axis,g=c.brokenAxis;g&&c.treeGrid.mapOfPosToGridNode&&(d=c.treeGrid.collapse(c.treeGrid.mapOfPosToGridNode[d.pos]),g.setBreaks(d,D(a,!0)))};c.prototype.destroy=function(){this.labelIcon&&this.labelIcon.destroy()};c.prototype.expand=function(a){var d=this.tick,c=d.axis,g=c.brokenAxis;g&&c.treeGrid.mapOfPosToGridNode&&(d=c.treeGrid.expand(c.treeGrid.mapOfPosToGridNode[d.pos]),g.setBreaks(d,D(a,!0)))};c.prototype.toggleCollapse=function(a){var d=
|
|
66
|
+
this.tick,c=d.axis,g=c.brokenAxis;g&&c.treeGrid.mapOfPosToGridNode&&(d=c.treeGrid.toggleCollapse(c.treeGrid.mapOfPosToGridNode[d.pos]),g.setBreaks(d,D(a,!0)))};return c}();b.Additions=K})(h||(h={}));return h});F(b,"Series/TreeUtilities.js",[b["Core/Color/Color.js"],b["Core/Utilities.js"]],function(b,r){function y(b,c){var p=c.before,h=c.idRoot,n=c.mapIdToNode[h],g=c.points[b.i],a=g&&g.options||{},d=[],w=0;b.levelDynamic=b.level-(!1!==c.levelIsConstant?0:n.level);b.name=f(g&&g.name,"");b.visible=h===
|
|
67
|
+
b.id||!0===c.visible;"function"===typeof p&&(b=p(b,c));b.children.forEach(function(a,g){var f=v({},c);v(f,{index:g,siblings:b.children.length,visible:b.visible});a=y(a,f);d.push(a);a.visible&&(w+=a.val)});p=f(a.value,w);b.visible=0<=p&&(0<w||b.visible);b.children=d;b.childrenTotal=w;b.isLeaf=b.visible&&!w;b.val=p;return b}var v=r.extend,D=r.isArray,n=r.isNumber,h=r.isObject,t=r.merge,f=r.pick;return{getColor:function(p,c){var h=c.index,n=c.mapOptionsToLevel,K=c.parentColor,g=c.parentColorIndex,a=
|
|
68
|
+
c.series,d=c.colors,w=c.siblings,C=a.points,t=a.chart.options.chart,l;if(p){C=C[p.i];p=n[p.level]||{};if(n=C&&p.colorByPoint){var x=C.index%(d?d.length:t.colorCount);var G=d&&d[x]}if(!a.chart.styledMode){d=C&&C.options.color;t=p&&p.color;if(l=K)l=(l=p&&p.colorVariation)&&"brightness"===l.key&&h&&w?b.parse(K).brighten(h/w*l.to).get():K;l=f(d,t,G,l,a.color)}var r=f(C&&C.options.colorIndex,p&&p.colorIndex,x,g,c.colorIndex)}return{color:l,colorIndex:r}},getLevelOptions:function(b){var c=null;if(h(b)){c=
|
|
69
|
+
{};var p=n(b.from)?b.from:1;var H=b.levels;var K={};var g=h(b.defaults)?b.defaults:{};D(H)&&(K=H.reduce(function(a,d){if(h(d)&&n(d.level)){var c=t({},d);var b=f(c.levelIsConstant,g.levelIsConstant);delete c.levelIsConstant;delete c.level;d=d.level+(b?0:p-1);h(a[d])?t(!0,a[d],c):a[d]=c}return a},{}));H=n(b.to)?b.to:1;for(b=0;b<=H;b++)c[b]=t({},g,h(K[b])?K[b]:{})}return c},setTreeValues:y,updateRootId:function(b){if(h(b)){var c=h(b.options)?b.options:{};c=f(b.rootNode,c.rootId,"");h(b.userOptions)&&
|
|
70
|
+
(b.userOptions.rootId=c);b.rootNode=c}return c}}});F(b,"Core/Axis/TreeGridAxis.js",[b["Core/Axis/BrokenAxis.js"],b["Core/Axis/GridAxis.js"],b["Gantt/Tree.js"],b["Core/Axis/TreeGridTick.js"],b["Series/TreeUtilities.js"],b["Core/Utilities.js"]],function(b,r,y,v,Q,n){var h=Q.getLevelOptions,t=n.addEvent,f=n.find,p=n.fireEvent,c=n.isArray,B=n.isObject,H=n.isString,K=n.merge,g=n.pick,a=n.wrap,d;(function(d){function w(a,d){var c=a.collapseEnd||0;a=a.collapseStart||0;c>=d&&(a-=.5);return{from:a,to:c,showPoints:!1}}
|
|
71
|
+
function n(a,d,c){var m=[],u=[],e={},k="boolean"===typeof d?d:!1,q={},g=-1;a=y.getTree(a,{after:function(e){e=q[e.pos];var k=0,a=0;e.children.forEach(function(e){a+=(e.descendants||0)+1;k=Math.max((e.height||0)+1,k)});e.descendants=a;e.height=k;e.collapsed&&u.push(e)},before:function(a){var d=B(a.data,!0)?a.data:{},c=H(d.name)?d.name:"",u=e[a.parent];u=B(u,!0)?q[u.pos]:null;var z=function(e){return e.name===c},l;k&&B(u,!0)&&(l=f(u.children,z))?(z=l.pos,l.nodes.push(a)):z=g++;q[z]||(q[z]=l={depth:u?
|
|
72
|
+
u.depth+1:0,name:c,id:d.id,nodes:[a],children:[],pos:z},-1!==z&&m.push(c),B(u,!0)&&u.children.push(l));H(a.id)&&(e[a.id]=a);l&&!0===d.collapsed&&(l.collapsed=!0);a.pos=z}});q=function(e,k){var a=function(e,d,c){var m=d+(-1===d?0:k-1),q=(m-d)/2,u=d+q;e.nodes.forEach(function(e){var k=e.data;B(k,!0)&&(k.y=d+(k.seriesIndex||0),delete k.seriesIndex);e.pos=u});c[u]=e;e.pos=u;e.tickmarkOffset=q+.5;e.collapseStart=m+.5;e.children.forEach(function(e){a(e,m+1,c);m=(e.collapseEnd||0)-.5});e.collapseEnd=m+.5;
|
|
73
|
+
return c};return a(e["-1"],-1,{})}(q,c);return{categories:m,mapOfIdToNode:e,mapOfPosToGridNode:q,collapsedNodes:u,tree:a}}function l(a){a.target.axes.filter(function(a){return"treegrid"===a.options.type}).forEach(function(d){var m=d.options||{},g=m.labels,u=m.uniqueNames;m=m.max;var e=0;if(!d.treeGrid.mapOfPosToGridNode||d.series.some(function(e){return!e.hasRendered||e.isDirtyData||e.isDirty})){var k=d.series.reduce(function(k,a){a.visible&&((a.options.data||[]).forEach(function(d){a.options.keys&&
|
|
74
|
+
a.options.keys.length&&(d=a.pointClass.prototype.optionsToObject.call({series:a},d),a.pointClass.setGanttPointAliases(d));B(d,!0)&&(d.seriesIndex=e,k.push(d))}),!0===u&&e++);return k},[]);if(m&&k.length<m)for(var q=k.length;q<=m;q++)k.push({name:q+"\u200b"});m=n(k,u||!1,!0===u?e:1);d.categories=m.categories;d.treeGrid.mapOfPosToGridNode=m.mapOfPosToGridNode;d.hasNames=!0;d.treeGrid.tree=m.tree;d.series.forEach(function(e){var a=(e.options.data||[]).map(function(a){c(a)&&e.options.keys&&e.options.keys.length&&
|
|
75
|
+
k.forEach(function(e){0<=a.indexOf(e.x)&&0<=a.indexOf(e.x2)&&(a=e)});return B(a,!0)?K(a):a});e.visible&&e.setData(a,!1)});d.treeGrid.mapOptionsToLevel=h({defaults:g,from:1,levels:g&&g.levels,to:d.treeGrid.tree&&d.treeGrid.tree.height});"beforeRender"===a.type&&(d.treeGrid.collapsedNodes=m.collapsedNodes)}})}function x(a,d){var c=this.treeGrid.mapOptionsToLevel||{},g=this.ticks,u=g[d],e;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var k=this.treeGrid.mapOfPosToGridNode[d];(c=
|
|
76
|
+
c[k.depth])&&(e={labels:c});!u&&E?g[d]=new E(this,d,void 0,void 0,{category:k.name,tickmarkOffset:k.tickmarkOffset,options:e}):(u.parameters.category=k.name,u.options=e,u.addLabel())}else a.apply(this,Array.prototype.slice.call(arguments,1))}function G(a,d,c){var m=this,u="treegrid"===c.type;m.treeGrid||(m.treeGrid=new D(m));u&&(t(d,"beforeRender",l),t(d,"beforeRedraw",l),t(d,"addSeries",function(e){e.options.data&&(e=n(e.options.data,c.uniqueNames||!1,1),m.treeGrid.collapsedNodes=(m.treeGrid.collapsedNodes||
|
|
77
|
+
[]).concat(e.collapsedNodes))}),t(m,"foundExtremes",function(){m.treeGrid.collapsedNodes&&m.treeGrid.collapsedNodes.forEach(function(e){var a=m.treeGrid.collapse(e);m.brokenAxis&&(m.brokenAxis.setBreaks(a,!1),m.treeGrid.collapsedNodes&&(m.treeGrid.collapsedNodes=m.treeGrid.collapsedNodes.filter(function(a){return e.collapseStart!==a.collapseStart||e.collapseEnd!==a.collapseEnd})))})}),t(m,"afterBreaks",function(){"yAxis"===m.coll&&!m.staticScale&&m.chart.options.chart.height&&(m.isDirty=!0)}),c=K({grid:{enabled:!0},
|
|
78
|
+
labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10,padding:5}},uniqueNames:!1},c,{reversed:!0,grid:{columns:void 0}}));a.apply(m,[d,c]);u&&(m.hasNames=!0,m.options.showLastLabel=!0)}function M(a){var d=this.options;"treegrid"===d.type?(this.min=g(this.userMin,d.min,this.dataMin),this.max=g(this.userMax,d.max,this.dataMax),p(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=
|
|
79
|
+
this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):a.apply(this,Array.prototype.slice.call(arguments,1))}var E;d.compose=function(d,c,m,g){-1===d.keepProps.indexOf("treeGrid")&&(d.keepProps.push("treeGrid"),E=g,a(d.prototype,"generateTick",x),a(d.prototype,"init",G),a(d.prototype,"setTickInterval",M),d.prototype.utils={getNode:y.getNode},r.compose(d,c,g),b.compose(d,m),v.compose(g));return d};var D=function(){function a(a){this.axis=a}a.prototype.setCollapsedStatus=function(a){var d=
|
|
80
|
+
this.axis,c=d.chart;d.series.forEach(function(d){var e=d.options.data;if(a.id&&e){var k=c.get(a.id);d=e[d.data.indexOf(k)];k&&d&&(k.collapsed=a.collapsed,d.collapsed=a.collapsed)}})};a.prototype.collapse=function(a){var d=this.axis,c=d.options.breaks||[],u=w(a,d.max);c.push(u);a.collapsed=!0;d.treeGrid.setCollapsedStatus(a);return c};a.prototype.expand=function(a){var d=this.axis,c=d.options.breaks||[],u=w(a,d.max);a.collapsed=!1;d.treeGrid.setCollapsedStatus(a);return c.reduce(function(e,a){a.to===
|
|
81
|
+
u.to&&a.from===u.from||e.push(a);return e},[])};a.prototype.getTickPositions=function(){var a=this.axis,d=Math.floor(a.min/a.tickInterval)*a.tickInterval,c=Math.ceil(a.max/a.tickInterval)*a.tickInterval;return Object.keys(a.treeGrid.mapOfPosToGridNode||{}).reduce(function(m,e){e=+e;!(e>=d&&e<=c)||a.brokenAxis&&a.brokenAxis.isInAnyBreak(e)||m.push(e);return m},[])};a.prototype.isCollapsed=function(a){var d=this.axis,c=d.options.breaks||[],u=w(a,d.max);return c.some(function(e){return e.from===u.from&&
|
|
82
|
+
e.to===u.to})};a.prototype.toggleCollapse=function(a){return this.isCollapsed(a)?this.expand(a):this.collapse(a)};return a}();d.Additions=D})(d||(d={}));return d});F(b,"Extensions/CurrentDateIndication.js",[b["Core/Axis/Axis.js"],b["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],b["Core/Utilities.js"]],function(b,r,y){var v=y.addEvent,D=y.merge;y=y.wrap;var n={color:"#ccd6eb",width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(b,n){return this.axis.chart.time.dateFormat(n||"",b)},rotation:0,
|
|
83
|
+
style:{fontSize:"10px"}}};v(b,"afterSetOptions",function(){var b=this.options,t=b.currentDateIndicator;t&&(t="object"===typeof t?D(n,t):D(n),t.value=Date.now(),t.className="highcharts-current-date-indicator",b.plotLines||(b.plotLines=[]),b.plotLines.push(t))});v(r,"render",function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})});y(r.prototype,"getLabelText",function(b,n){var f=this.options;return f&&f.className&&-1!==f.className.indexOf("highcharts-current-date-indicator")&&
|
|
84
|
+
f.label&&"function"===typeof f.label.formatter?(f.value=Date.now(),f.label.formatter.call(this,f.value,f.label.format)):b.call(this,n)})});F(b,"Extensions/StaticScale.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Utilities.js"]],function(b,r,y){var v=y.addEvent,D=y.defined,n=y.isNumber,h=y.pick;v(b,"afterSetOptions",function(){var b=this.chart.options.chart;!this.horiz&&n(this.options.staticScale)&&(!b.height||b.scrollablePlotArea&&b.scrollablePlotArea.minHeight)&&(this.staticScale=
|
|
85
|
+
this.options.staticScale)});r.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach(function(b){var f=b.chart,n=!!f.initiatedScale&&f.options.animation,c=b.options.staticScale;if(b.staticScale&&D(b.min)){var B=h(b.brokenAxis&&b.brokenAxis.unitLength,b.max+b.tickInterval-b.min)*c;B=Math.max(B,c);c=B-f.plotHeight;!f.scrollablePixelsY&&1<=Math.abs(c)&&(f.plotHeight=B,f.redrawTrigger="adjustHeight",f.setSize(void 0,f.chartHeight+c,n));b.series.forEach(function(c){(c=
|
|
86
|
+
c.sharedClipKey&&f.sharedClips[c.sharedClipKey])&&c.attr(f.inverted?{width:f.plotHeight}:{height:f.plotHeight})})}}),this.initiatedScale=!0);this.redrawTrigger=null};v(r,"render",r.prototype.adjustHeight)});F(b,"Extensions/ArrowSymbols.js",[b["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function r(b,n,h,t){return[["M",b,n+t/2],["L",b+h,n],["L",b,n+t/2],["L",b+h,n+t]]}function y(b,n,h,t){return[["M",b+h,n],["L",b,n+t/2],["L",b+h,n+t],["Z"]]}function v(b,n,h,t){return y(b,n,h/2,t)}b=b.prototype.symbols;
|
|
87
|
+
b.arrow=r;b["arrow-filled"]=y;b["arrow-filled-half"]=v;b["arrow-half"]=function(b,n,h,t){return r(b,n,h/2,t)};b["triangle-left"]=y;b["triangle-left-half"]=v;return b});F(b,"Gantt/Connection.js",[b["Core/Globals.js"],b["Core/DefaultOptions.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,r,y,v){function D(c){var g=c.shapeArgs;return g?{xMin:g.x||0,xMax:(g.x||0)+(g.width||0),yMin:g.y||0,yMax:(g.y||0)+(g.height||0)}:(g=c.graphic&&c.graphic.getBBox())?{xMin:c.plotX-g.width/2,xMax:c.plotX+
|
|
88
|
+
g.width/2,yMin:c.plotY-g.height/2,yMax:c.plotY+g.height/2}:null}"";var n=v.defined,h=v.error,t=v.extend,f=v.merge,p=v.objectEach,c=b.deg2rad,B=Math.max,H=Math.min;t(r.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});r=function(){function b(c,a,d){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(c,a,d)}b.prototype.init=
|
|
89
|
+
function(c,a,d){this.fromPoint=c;this.toPoint=a;this.options=d;this.chart=c.series.chart;this.pathfinder=this.chart.pathfinder};b.prototype.renderPath=function(c,a,d){var b=this.chart,g=b.styledMode,f=b.pathfinder,l=!b.options.chart.forExport&&!1!==d,x=this.graphics&&this.graphics.path;f.group||(f.group=b.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(b.seriesGroup));f.group.translate(b.plotLeft,b.plotTop);x&&x.renderer||(x=b.renderer.path().add(f.group),g||x.attr({opacity:0}));
|
|
90
|
+
x.attr(a);c={d:c};g||(c.opacity=1);x[l?"animate":"attr"](c,d);this.graphics=this.graphics||{};this.graphics.path=x};b.prototype.addMarker=function(b,a,d){var g=this.fromPoint.series.chart,f=g.pathfinder;g=g.renderer;var h="start"===b?this.fromPoint:this.toPoint,l=h.getPathfinderAnchorPoint(a);if(a.enabled&&((d="start"===b?d[1]:d[d.length-2])&&"M"===d[0]||"L"===d[0])){d={x:d[1],y:d[2]};d=h.getRadiansToVector(d,l);l=h.getMarkerVector(d,a.radius,l);d=-d/c;if(a.width&&a.height){var x=a.width;var n=a.height}else x=
|
|
91
|
+
n=2*a.radius;this.graphics=this.graphics||{};l={x:l.x-x/2,y:l.y-n/2,width:x,height:n,rotation:d,rotationOriginX:l.x,rotationOriginY:l.y};this.graphics[b]?this.graphics[b].animate(l):(this.graphics[b]=g.symbol(a.symbol).addClass("highcharts-point-connecting-path-"+b+"-marker").attr(l).add(f.group),g.styledMode||this.graphics[b].attr({fill:a.color||this.fromPoint.color,stroke:a.lineColor,"stroke-width":a.lineWidth,opacity:0}).animate({opacity:1},h.series.options.animation))}};b.prototype.getPath=function(c){var a=
|
|
92
|
+
this.pathfinder,d=this.chart,b=a.algorithms[c.type],g=a.chartObstacles;if("function"!==typeof b)return h('"'+c.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};b.requiresObstacles&&!g&&(g=a.chartObstacles=a.getChartObstacles(c),d.options.connectors.algorithmMargin=c.algorithmMargin,a.chartObstacleMetrics=a.getObstacleMetrics(g));return b(this.fromPoint.getPathfinderAnchorPoint(c.startMarker),this.toPoint.getPathfinderAnchorPoint(c.endMarker),f({chartObstacles:g,lineObstacles:a.lineObstacles||
|
|
93
|
+
[],obstacleMetrics:a.chartObstacleMetrics,hardBounds:{xMin:0,xMax:d.plotWidth,yMin:0,yMax:d.plotHeight},obstacleOptions:{margin:c.algorithmMargin},startDirectionX:a.getAlgorithmStartDirection(c.startMarker)},c))};b.prototype.render=function(){var c=this.fromPoint,a=c.series,d=a.chart,b=d.pathfinder,h=f(d.options.connectors,a.options.connectors,c.options.connectors,this.options),p={};d.styledMode||(p.stroke=h.lineColor||c.color,p["stroke-width"]=h.lineWidth,h.dashStyle&&(p.dashstyle=h.dashStyle));
|
|
94
|
+
p["class"]="highcharts-point-connecting-path highcharts-color-"+c.colorIndex;h=f(p,h);n(h.marker.radius)||(h.marker.radius=H(B(Math.ceil((h.algorithmMargin||8)/2)-1,1),5));c=this.getPath(h);d=c.path;c.obstacles&&(b.lineObstacles=b.lineObstacles||[],b.lineObstacles=b.lineObstacles.concat(c.obstacles));this.renderPath(d,p,a.options.animation);this.addMarker("start",f(h.marker,h.startMarker),d);this.addMarker("end",f(h.marker,h.endMarker),d)};b.prototype.destroy=function(){this.graphics&&(p(this.graphics,
|
|
95
|
+
function(c){c.destroy()}),delete this.graphics)};return b}();b.Connection=r;t(y.prototype,{getPathfinderAnchorPoint:function(c){var b=D(this);switch(c.align){case "right":var a="xMax";break;case "left":a="xMin"}switch(c.verticalAlign){case "top":var d="yMin";break;case "bottom":d="yMax"}return{x:a?b[a]:(b.xMin+b.xMax)/2,y:d?b[d]:(b.yMin+b.yMax)/2}},getRadiansToVector:function(c,b){var a;n(b)||(a=D(this))&&(b={x:(a.xMin+a.xMax)/2,y:(a.yMin+a.yMax)/2});return Math.atan2(b.y-c.y,c.x-b.x)},getMarkerVector:function(c,
|
|
96
|
+
b,a){var d=2*Math.PI,f=D(this),g=f.xMax-f.xMin,h=f.yMax-f.yMin,l=Math.atan2(h,g),x=!1;g/=2;var n=h/2,p=f.xMin+g;f=f.yMin+n;for(var B=p,H=f,t=1,A=1;c<-Math.PI;)c+=d;for(;c>Math.PI;)c-=d;d=Math.tan(c);c>-l&&c<=l?(A=-1,x=!0):c>l&&c<=Math.PI-l?A=-1:c>Math.PI-l||c<=-(Math.PI-l)?(t=-1,x=!0):t=-1;x?(B+=t*g,H+=A*g*d):(B+=h/(2*d)*t,H+=A*n);a.x!==p&&(B=a.x);a.y!==f&&(H=a.y);return{x:B+b*Math.cos(c),y:H-b*Math.sin(c)}}});return r});F(b,"Gantt/PathfinderAlgorithms.js",[b["Core/Utilities.js"]],function(b){function r(c,
|
|
97
|
+
b,f){f=f||0;var h=c.length-1;b-=1e-7;for(var g,a;f<=h;)if(g=h+f>>1,a=b-c[g].xMin,0<a)f=g+1;else if(0>a)h=g-1;else return g;return 0<f?f-1:0}function y(c,b){for(var f=r(c,b.x+1)+1;f--;){var h;if(h=c[f].xMax>=b.x)h=c[f],h=b.x<=h.xMax&&b.x>=h.xMin&&b.y<=h.yMax&&b.y>=h.yMin;if(h)return f}return-1}function v(c){var b=[];if(c.length){b.push(["M",c[0].start.x,c[0].start.y]);for(var f=0;f<c.length;++f)b.push(["L",c[f].end.x,c[f].end.y])}return b}function D(c,b){c.yMin=t(c.yMin,b.yMin);c.yMax=h(c.yMax,b.yMax);
|
|
98
|
+
c.xMin=t(c.xMin,b.xMin);c.xMax=h(c.xMax,b.xMax)}var n=b.pick,h=Math.min,t=Math.max,f=Math.abs;b=function(c,b,h){function p(a,d,c,b,f){a={x:a.x,y:a.y};a[d]=c[b||d]+(f||0);return a}function g(a,d,c){var b=f(d[c]-a[c+"Min"])>f(d[c]-a[c+"Max"]);return p(d,c,a,c+(b?"Max":"Min"),b?1:-1)}var a=[],d=n(h.startDirectionX,f(b.x-c.x)>f(b.y-c.y))?"x":"y",w=h.chartObstacles,t=y(w,c);h=y(w,b);if(-1<h){var B=w[h];h=g(B,b,d);B={start:h,end:b};var l=h}else l=b;-1<t&&(w=w[t],h=g(w,c,d),a.push({start:c,end:h}),h[d]>=
|
|
99
|
+
c[d]===h[d]>=l[d]&&(d="y"===d?"x":"y",b=c[d]<b[d],a.push({start:h,end:p(h,d,w,d+(b?"Max":"Min"),b?1:-1)}),d="y"===d?"x":"y"));c=a.length?a[a.length-1].end:c;h=p(c,d,l);a.push({start:c,end:h});d=p(h,"y"===d?"x":"y",l);a.push({start:h,end:d});a.push(B);return{path:v(a),obstacles:a}};b.requiresObstacles=!0;var p=function(c,b,p){function B(a,d,e){var k,c=a.x<d.x?1:-1;if(a.x<d.x){var b=a;var m=d}else b=d,m=a;if(a.y<d.y){var f=a;var u=d}else f=d,u=a;for(k=0>c?h(r(I,m.x),I.length-1):0;I[k]&&(0<c&&I[k].xMin<=
|
|
100
|
+
m.x||0>c&&I[k].xMax>=b.x);){if(I[k].xMin<=m.x&&I[k].xMax>=b.x&&I[k].yMin<=u.y&&I[k].yMax>=f.y)return e?{y:a.y,x:a.x<d.x?I[k].xMin-1:I[k].xMax+1,obstacle:I[k]}:{x:a.x,y:a.y<d.y?I[k].yMin-1:I[k].yMax+1,obstacle:I[k]};k+=c}return d}function g(a,d,e,k,c){var b=c.soft,m=c.hard,q=k?"x":"y",u={x:d.x,y:d.y},l={x:d.x,y:d.y};c=a[q+"Max"]>=b[q+"Max"];b=a[q+"Min"]<=b[q+"Min"];var g=a[q+"Max"]>=m[q+"Max"];m=a[q+"Min"]<=m[q+"Min"];var z=f(a[q+"Min"]-d[q]),h=f(a[q+"Max"]-d[q]);e=10>f(z-h)?d[q]<e[q]:h<z;l[q]=a[q+
|
|
101
|
+
"Min"];u[q]=a[q+"Max"];a=B(d,l,k)[q]!==l[q];d=B(d,u,k)[q]!==u[q];e=a?d?e:!0:d?!1:e;e=b?c?e:!0:c?!1:e;return m?g?e:!0:g?!1:e}function a(d,c,e){if(d.x===c.x&&d.y===c.y)return[];var k=e?"x":"y",b=p.obstacleOptions.margin;var m={soft:{xMin:G,xMax:H,yMin:E,yMax:L},hard:p.hardBounds};var f=y(I,d);if(-1<f){f=I[f];m=g(f,d,c,e,m);D(f,p.hardBounds);var u=e?{y:d.y,x:f[m?"xMax":"xMin"]+(m?1:-1)}:{x:d.x,y:f[m?"yMax":"yMin"]+(m?1:-1)};var z=y(I,u);-1<z&&(z=I[z],D(z,p.hardBounds),u[k]=m?t(f[k+"Max"]-b+1,(z[k+"Min"]+
|
|
102
|
+
f[k+"Max"])/2):h(f[k+"Min"]+b-1,(z[k+"Max"]+f[k+"Min"])/2),d.x===u.x&&d.y===u.y?(l&&(u[k]=m?t(f[k+"Max"],z[k+"Max"])+1:h(f[k+"Min"],z[k+"Min"])-1),l=!l):l=!1);d=[{start:d,end:u}]}else k=B(d,{x:e?c.x:d.x,y:e?d.y:c.y},e),d=[{start:d,end:{x:k.x,y:k.y}}],k[e?"x":"y"]!==c[e?"x":"y"]&&(m=g(k.obstacle,k,c,!e,m),D(k.obstacle,p.hardBounds),m={x:e?k.x:k.obstacle[m?"xMax":"xMin"]+(m?1:-1),y:e?k.obstacle[m?"yMax":"yMin"]+(m?1:-1):k.y},e=!e,d=d.concat(a({x:k.x,y:k.y},m,e)));return d=d.concat(a(d[d.length-1].end,
|
|
103
|
+
c,!e))}function d(a,d,e){var k=h(a.xMax-d.x,d.x-a.xMin)<h(a.yMax-d.y,d.y-a.yMin);e=g(a,d,e,k,{soft:p.hardBounds,hard:p.hardBounds});return k?{y:d.y,x:a[e?"xMax":"xMin"]+(e?1:-1)}:{x:d.x,y:a[e?"yMax":"yMin"]+(e?1:-1)}}var w=n(p.startDirectionX,f(b.x-c.x)>f(b.y-c.y)),C=w?"x":"y",J=[],l=!1,x=p.obstacleMetrics,G=h(c.x,b.x)-x.maxWidth-10,H=t(c.x,b.x)+x.maxWidth+10,E=h(c.y,b.y)-x.maxHeight-10,L=t(c.y,b.y)+x.maxHeight+10,I=p.chartObstacles;var A=r(I,G);x=r(I,H);I=I.slice(A,x+1);if(-1<(x=y(I,b))){var m=d(I[x],
|
|
104
|
+
b,c);J.push({end:b,start:m});b=m}for(;-1<(x=y(I,b));)A=0>b[C]-c[C],m={x:b.x,y:b.y},m[C]=I[x][A?C+"Max":C+"Min"]+(A?1:-1),J.push({end:b,start:m}),b=m;c=a(c,b,w);c=c.concat(J.reverse());return{path:v(c),obstacles:c}};p.requiresObstacles=!0;return{fastAvoid:p,straight:function(c,b){return{path:[["M",c.x,c.y],["L",b.x,b.y]],obstacles:[{start:c,end:b}]}},simpleConnect:b}});F(b,"Gantt/Pathfinder.js",[b["Gantt/Connection.js"],b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/DefaultOptions.js"],b["Core/Series/Point.js"],
|
|
105
|
+
b["Core/Utilities.js"],b["Gantt/PathfinderAlgorithms.js"]],function(b,r,y,v,Q,n,h){function t(a){var d=a.shapeArgs;return d?{xMin:d.x||0,xMax:(d.x||0)+(d.width||0),yMin:d.y||0,yMax:(d.y||0)+(d.height||0)}:(d=a.graphic&&a.graphic.getBBox())?{xMin:a.plotX-d.width/2,xMax:a.plotX+d.width/2,yMin:a.plotY-d.height/2,yMax:a.plotY+d.height/2}:null}function f(d){for(var c=d.length,b=0,f,g,l=[],h=function(d,c,b){b=a(b,10);var m=d.yMax+b>c.yMin-b&&d.yMin-b<c.yMax+b,e=d.xMax+b>c.xMin-b&&d.xMin-b<c.xMax+b,k=m?
|
|
106
|
+
d.xMin>c.xMax?d.xMin-c.xMax:c.xMin-d.xMax:Infinity,f=e?d.yMin>c.yMax?d.yMin-c.yMax:c.yMin-d.yMax:Infinity;return e&&m?b?h(d,c,Math.floor(b/2)):Infinity:C(k,f)};b<c;++b)for(f=b+1;f<c;++f)g=h(d[b],d[f]),80>g&&l.push(g);l.push(80);return w(Math.floor(l.sort(function(a,d){return a-d})[Math.floor(l.length/10)]/2-1),1)}function p(a){if(a.options.pathfinder||a.series.reduce(function(a,d){d.options&&g(!0,d.options.connectors=d.options.connectors||{},d.options.pathfinder);return a||d.options&&d.options.pathfinder},
|
|
107
|
+
!1))g(!0,a.options.connectors=a.options.connectors||{},a.options.pathfinder),H('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}"";var c=n.addEvent,B=n.defined,H=n.error,K=n.extend,g=n.merge,a=n.pick,d=n.splat,w=Math.max,C=Math.min;K(v.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var J=
|
|
108
|
+
function(){function g(a){this.lineObstacles=this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(a)}g.prototype.init=function(a){this.chart=a;this.connections=[];c(a,"redraw",function(){this.pathfinder.update()})};g.prototype.update=function(a){var c=this.chart,f=this,g=f.connections;f.connections=[];c.series.forEach(function(a){a.visible&&!a.options.isInternal&&a.points.forEach(function(e){var a=e.options;a&&a.dependency&&(a.connect=a.dependency);
|
|
109
|
+
var m;a=e.options&&e.options.connect&&d(e.options.connect);e.visible&&!1!==e.isInside&&a&&a.forEach(function(a){m=c.get("string"===typeof a?a:a.to);m instanceof Q&&m.series.visible&&m.visible&&!1!==m.isInside&&f.connections.push(new b(e,m,"string"===typeof a?{}:a))})})});for(var l=0,h=void 0,w=void 0,m=g.length,z=f.connections.length;l<m;++l){w=!1;for(h=0;h<z;++h)if(g[l].fromPoint===f.connections[h].fromPoint&&g[l].toPoint===f.connections[h].toPoint){f.connections[h].graphics=g[l].graphics;w=!0;break}w||
|
|
110
|
+
g[l].destroy()}delete this.chartObstacles;delete this.lineObstacles;f.renderConnections(a)};g.prototype.renderConnections=function(a){a?this.chart.series.forEach(function(a){var d=function(){var d=a.chart.pathfinder;(d&&d.connections||[]).forEach(function(d){d.fromPoint&&d.fromPoint.series===a&&d.render()});a.pathfinderRemoveRenderEvent&&(a.pathfinderRemoveRenderEvent(),delete a.pathfinderRemoveRenderEvent)};!1===a.options.animation?d():a.pathfinderRemoveRenderEvent=c(a,"afterAnimate",d)}):this.connections.forEach(function(a){a.render()})};
|
|
111
|
+
g.prototype.getChartObstacles=function(d){for(var c=[],b=this.chart.series,g=a(d.algorithmMargin,0),l,h=0,w=b.length;h<w;++h)if(b[h].visible&&!b[h].options.isInternal){var m=0,z=b[h].points.length,u=void 0;for(u=void 0;m<z;++m)u=b[h].points[m],u.visible&&(u=t(u))&&c.push({xMin:u.xMin-g,xMax:u.xMax+g,yMin:u.yMin-g,yMax:u.yMax+g})}c=c.sort(function(e,a){return e.xMin-a.xMin});B(d.algorithmMargin)||(l=d.algorithmMargin=f(c),c.forEach(function(e){e.xMin-=l;e.xMax+=l;e.yMin-=l;e.yMax+=l}));return c};g.prototype.getObstacleMetrics=
|
|
112
|
+
function(a){for(var d=0,c=0,b,f,g=a.length;g--;)b=a[g].xMax-a[g].xMin,f=a[g].yMax-a[g].yMin,d<b&&(d=b),c<f&&(c=f);return{maxHeight:c,maxWidth:d}};g.prototype.getAlgorithmStartDirection=function(a){var d="top"!==a.verticalAlign&&"bottom"!==a.verticalAlign;return"left"!==a.align&&"right"!==a.align?d?void 0:!1:d?!0:void 0};return g}();J.prototype.algorithms=h;y.Pathfinder=J;K(Q.prototype,{getPathfinderAnchorPoint:function(a){var d=t(this);switch(a.align){case "right":var c="xMax";break;case "left":c=
|
|
113
|
+
"xMin"}switch(a.verticalAlign){case "top":var b="yMin";break;case "bottom":b="yMax"}return{x:c?d[c]:(d.xMin+d.xMax)/2,y:b?d[b]:(d.yMin+d.yMax)/2}},getRadiansToVector:function(a,d){var c;B(d)||(c=t(this))&&(d={x:(c.xMin+c.xMax)/2,y:(c.yMin+c.yMax)/2});return Math.atan2(d.y-a.y,a.x-d.x)},getMarkerVector:function(a,d,c){var b=2*Math.PI,f=t(this),g=f.xMax-f.xMin,l=f.yMax-f.yMin,h=Math.atan2(l,g),m=!1;g/=2;var z=l/2,u=f.xMin+g;f=f.yMin+z;for(var e=u,k=f,q=1,w=1;a<-Math.PI;)a+=b;for(;a>Math.PI;)a-=b;b=
|
|
114
|
+
Math.tan(a);a>-h&&a<=h?(w=-1,m=!0):a>h&&a<=Math.PI-h?w=-1:a>Math.PI-h||a<=-(Math.PI-h)?(q=-1,m=!0):q=-1;m?(e+=q*g,k+=w*g*b):(e+=l/(2*b)*q,k+=w*z);c.x!==u&&(e=c.x);c.y!==f&&(k=c.y);return{x:e+d*Math.cos(a),y:k-d*Math.sin(a)}}});r.prototype.callbacks.push(function(a){!1!==a.options.connectors.enabled&&(p(a),this.pathfinder=new J(this),this.pathfinder.update(!0))});return J});F(b,"Series/Gantt/GanttSeries.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Series/Gantt/GanttPoint.js"],b["Core/Series/SeriesRegistry.js"],
|
|
115
|
+
b["Core/Axis/Tick.js"],b["Core/Utilities.js"],b["Core/Axis/TreeGridAxis.js"]],function(b,r,y,v,Q,n,h){var t=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return c(b,a)};return function(b,a){function d(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),f=v.series,p=v.seriesTypes.xrange,c=n.extend,
|
|
116
|
+
B=n.isNumber,H=n.merge;h.compose(b,r,f,Q);b=function(c){function b(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}t(b,c);b.prototype.drawPoint=function(a,d){var c=this.options,b=this.chart.renderer,f=a.shapeArgs,g=a.plotY,h=a.graphic,n=a.selected&&"select",t=c.stacking&&!c.borderRadius;if(a.options.milestone)if(B(g)&&null!==a.y&&!1!==a.visible){f=b.symbols.diamond(f.x||0,f.y||0,f.width||0,f.height||0);if(h)h[d]({d:f});else a.graphic=b.path(f).addClass(a.getClassName(),
|
|
117
|
+
!0).add(a.group||this.group);this.chart.styledMode||a.graphic.attr(this.pointAttribs(a,n)).shadow(c.shadow,null,t)}else h&&(a.graphic=h.destroy());else p.prototype.drawPoint.call(this,a,d)};b.prototype.translatePoint=function(a){p.prototype.translatePoint.call(this,a);if(a.options.milestone){var d=a.shapeArgs;var c=d.height||0;a.shapeArgs={x:(d.x||0)-c/2,y:d.y,width:c,height:c}}};b.defaultOptions=H(p.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',
|
|
118
|
+
pointFormat:null,pointFormatter:function(){var a=this.series,d=a.xAxis,c=a.tooltipOptions.dateTimeLabelFormats,b=d.options.startOfWeek,f=a.tooltipOptions,g=f.xDateFormat,h=this.options.milestone,p="<b>"+(this.name||this.yCategory)+"</b>";if(f.pointFormat)return this.tooltipFormatter(f.pointFormat);!g&&B(this.start)&&(g=a.chart.time.getDateFormat(d.closestPointRange,this.start,b,c||{}));d=a.chart.time.dateFormat(g,this.start);a=a.chart.time.dateFormat(g,this.end);p+="<br/>";return h?p+(d+"<br/>"):
|
|
119
|
+
p+("Start: "+d+"<br/>End: ")+(a+"<br/>")}},connectors:{type:"simpleConnect",animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}});return b}(p);c(b.prototype,{pointArrayMap:["start","end","y"],pointClass:y,setData:f.prototype.setData});v.registerSeriesType("gantt",b);"";return b});F(b,"Core/Chart/GanttChart.js",[b["Core/Chart/Chart.js"],b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,r,y){var v=
|
|
120
|
+
this&&this.__extends||function(){var b=function(f,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var f in b)b.hasOwnProperty(f)&&(c[f]=b[f])};return b(f,c)};return function(f,c){function h(){this.constructor=f}b(f,c);f.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)}}(),D=r.getOptions,n=y.isArray,h=y.merge,t=y.splat;b=function(b){function f(){return null!==b&&b.apply(this,arguments)||this}v(f,b);f.prototype.init=function(c,
|
|
121
|
+
f){var p=D(),r=c.xAxis,g=c.yAxis,a;c.xAxis=c.yAxis=void 0;var d=h(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},c,{isGantt:!0});c.xAxis=r;c.yAxis=g;d.xAxis=(n(c.xAxis)?c.xAxis:[c.xAxis||{},{}]).map(function(d,c){1===c&&(a=0);return h(p.xAxis,{grid:{enabled:!0},opposite:!0,linkedTo:a},d,{type:"datetime"})});d.yAxis=t(c.yAxis||{}).map(function(a){return h(p.yAxis,{grid:{enabled:!0},staticScale:50,reversed:!0,type:a.categories?
|
|
122
|
+
a.type:"treegrid"},a)});b.prototype.init.call(this,d,f)};return f}(b);(function(b){b.ganttChart=function(f,c,h){return new b(f,c,h)}})(b||(b={}));return b});F(b,"Core/Axis/ScrollbarAxis.js",[b["Core/Utilities.js"]],function(b){var r=b.addEvent,y=b.defined,v=b.pick;return function(){function b(){}b.compose=function(n,h){if(-1===b.composed.indexOf(n))b.composed.push(n);else return n;var t=function(b){var f=v(b.options&&b.options.min,b.min),c=v(b.options&&b.options.max,b.max);return{axisMin:f,axisMax:c,
|
|
123
|
+
scrollMin:y(b.dataMin)?Math.min(f,b.min,b.dataMin,v(b.threshold,Infinity)):f,scrollMax:y(b.dataMax)?Math.max(c,b.max,b.dataMax,v(b.threshold,-Infinity)):c}};r(n,"afterInit",function(){var b=this;b.options&&b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new h(b.chart.renderer,b.options.scrollbar,b.chart),r(b.scrollbar,"changed",function(f){var c=t(b),h=c.axisMax,n=c.scrollMin,p=c.scrollMax-n;y(c.axisMin)&&
|
|
124
|
+
y(h)&&(b.horiz&&!b.reversed||!b.horiz&&b.reversed?(c=n+p*this.to,n+=p*this.from):(c=n+p*(1-this.from),n+=p*(1-this.to)),this.shouldUpdateExtremes(f.DOMType)?b.setExtremes(n,c,!0,"mousemove"!==f.DOMType&&"touchmove"!==f.DOMType,f):this.setRange(this.from,this.to))}))});r(n,"afterRender",function(){var b=t(this),h=b.scrollMin,c=b.scrollMax;b=this.scrollbar;var n=this.axisTitleMargin+(this.titleOffset||0),r=this.chart.scrollbarsOffsets,v=this.options.margin||0;b&&(this.horiz?(this.opposite||(r[1]+=n),
|
|
125
|
+
b.position(this.left,this.top+this.height+2+r[1]-(this.opposite?v:0),this.width,this.height),this.opposite||(r[1]+=v),n=1):(this.opposite&&(r[0]+=n),b.position(b.options.opposite?this.left+this.width+2+r[0]-(this.opposite?0:v):this.opposite?0:v,this.top,this.width,this.height),this.opposite&&(r[0]+=v),n=0),r[n]+=b.size+b.options.margin,isNaN(h)||isNaN(c)||!y(this.min)||!y(this.max)||this.min===this.max?b.setRange(0,1):(r=(this.min-h)/(c-h),h=(this.max-h)/(c-h),this.horiz&&!this.reversed||!this.horiz&&
|
|
126
|
+
this.reversed?b.setRange(r,h):b.setRange(1-h,1-r)))});r(n,"afterGetOffset",function(){var b=this.scrollbar&&!this.scrollbar.options.opposite;b=this.horiz?2:b?3:1;var h=this.scrollbar;h&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=h.size+h.options.margin)});return n};b.composed=[];return b}()});F(b,"Core/ScrollbarDefaults.js",[b["Core/Globals.js"]],function(b){return{height:b.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,
|
|
127
|
+
step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}});F(b,"Core/Scrollbar.js",[b["Core/DefaultOptions.js"],b["Core/Globals.js"],b["Core/Axis/ScrollbarAxis.js"],b["Core/ScrollbarDefaults.js"],b["Core/Utilities.js"]],function(b,r,y,v,F){var n=b.defaultOptions,h=
|
|
128
|
+
F.addEvent,t=F.correctFloat,f=F.defined,p=F.destroyObjectProperties,c=F.fireEvent,B=F.merge,H=F.pick,D=F.removeEvent;b=function(){function b(a,d,b){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=
|
|
129
|
+
void 0;this.y=this.x=0;this.init(a,d,b)}b.compose=function(a){y.compose(a,b)};b.swapXY=function(a,d){d&&a.forEach(function(a){for(var d=a.length,b,c=0;c<d;c+=2)b=a[c+1],"number"===typeof b&&(a[c+1]=a[c+2],a[c+2]=b)});return a};b.prototype.addEvents=function(){var a=this.options.inverted?[1,0]:[0,1],d=this.scrollbarButtons,b=this.scrollbarGroup.element,c=this.track.element,f=this.mouseDownHandler.bind(this),g=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this);a=[[d[a[0]].element,"click",
|
|
130
|
+
this.buttonToMinClick.bind(this)],[d[a[1]].element,"click",this.buttonToMaxClick.bind(this)],[c,"click",this.trackClick.bind(this)],[b,"mousedown",f],[b.ownerDocument,"mousemove",g],[b.ownerDocument,"mouseup",n]];r.hasTouch&&a.push([b,"touchstart",f],[b.ownerDocument,"touchmove",g],[b.ownerDocument,"touchend",n]);a.forEach(function(a){h.apply(null,a)});this._events=a};b.prototype.buttonToMaxClick=function(a){var d=(this.to-this.from)*H(this.options.step,.2);this.updatePosition(this.from+d,this.to+
|
|
131
|
+
d);c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};b.prototype.buttonToMinClick=function(a){var d=t(this.to-this.from)*H(this.options.step,.2);this.updatePosition(t(this.from-d),t(this.to-d));c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};b.prototype.cursorToScrollbarPosition=function(a){var d=this.options;d=d.minWidth>this.calculatedWidth?d.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-d),chartY:(a.chartY-this.y-
|
|
132
|
+
this.yOffset)/(this.barWidth-d)}};b.prototype.destroy=function(){var a=this,d=a.chart.scroller;a.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(d){a[d]&&a[d].destroy&&(a[d]=a[d].destroy())});d&&a===d.scrollbar&&(d.scrollbar=null,p(d.scrollbarButtons))};b.prototype.drawScrollbarButton=function(a){var d=this.renderer,c=this.scrollbarButtons,f=this.options,g=this.size,h=d.g().add(this.group);c.push(h);h=d.rect().addClass("highcharts-scrollbar-button").add(h);
|
|
133
|
+
this.chart.styledMode||h.attr({stroke:f.buttonBorderColor,"stroke-width":f.buttonBorderWidth,fill:f.buttonBackgroundColor});h.attr(h.crisp({x:-.5,y:-.5,width:g+1,height:g+1,r:f.buttonBorderRadius},h.strokeWidth()));h=d.path(b.swapXY([["M",g/2+(a?-1:1),g/2-3],["L",g/2+(a?-1:1),g/2+3],["L",g/2+(a?2:-2),g/2]],f.vertical)).addClass("highcharts-scrollbar-arrow").add(c[a]);this.chart.styledMode||h.attr({fill:f.buttonArrowColor})};b.prototype.init=function(a,d,b){this.scrollbarButtons=[];this.renderer=a;
|
|
134
|
+
this.userOptions=d;this.options=B(v,n.scrollbar,d);this.chart=b;this.size=H(this.options.size,this.options.height);d.enabled&&(this.render(),this.addEvents())};b.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};b.prototype.mouseMoveHandler=function(a){var d=this.chart.pointer.normalize(a),b=this.options.vertical?"chartY":"chartX",f=this.initPositions||
|
|
135
|
+
[];!this.grabbedCenter||a.touches&&0===a.touches[0][b]||(d=this.cursorToScrollbarPosition(d)[b],b=this[b],b=d-b,this.hasDragged=!0,this.updatePosition(f[0]+b,f[1]+b),this.hasDragged&&c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};b.prototype.mouseUpHandler=function(a){this.hasDragged&&c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};b.prototype.position=
|
|
136
|
+
function(a,d,b,c){var f=this.options.vertical,g=this.rendered?"animate":"attr",h=c,n=0;this.group.show();this.x=a;this.y=d+this.trackBorderWidth;this.width=b;this.height=c;this.xOffset=h;this.yOffset=n;f?(this.width=this.yOffset=b=n=this.size,this.xOffset=h=0,this.barWidth=c-2*b,this.x=a+=this.options.margin):(this.height=this.xOffset=c=h=this.size,this.barWidth=b-2*c,this.y+=this.options.margin);this.group[g]({translateX:a,translateY:this.y});this.track[g]({width:b,height:c});this.scrollbarButtons[1][g]({translateX:f?
|
|
137
|
+
0:b-h,translateY:f?c-n:0})};b.prototype.removeEvents=function(){this._events.forEach(function(a){D.apply(null,a)});this._events.length=0};b.prototype.render=function(){var a=this.renderer,d=this.options,c=this.size,f=this.chart.styledMode,g=a.g("scrollbar").attr({zIndex:d.zIndex}).hide().add();this.group=g;this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:d.trackBorderRadius||0,height:c,width:c}).add(g);f||this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,
|
|
138
|
+
"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(g);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:c,width:c,r:d.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a.path(b.swapXY([["M",-3,c/4],["L",-3,2*c/3],["M",0,c/4],["L",0,2*c/3],["M",3,c/4],["L",3,2*c/3]],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);f||(this.scrollbar.attr({fill:d.barBackgroundColor,
|
|
139
|
+
stroke:d.barBorderColor,"stroke-width":d.barBorderWidth}),this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};b.prototype.setRange=function(a,d){var b=this.options,c=b.vertical,g=b.minWidth,h=this.barWidth,n=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?
|
|
140
|
+
"attr":"animate";if(f(h)){var p=h*Math.min(d,1);a=Math.max(a,0);var r=Math.ceil(h*a);this.calculatedWidth=p=t(p-r);p<g&&(r=(h-g+p)*a,p=g);g=Math.floor(r+this.xOffset+this.yOffset);h=p/2-.5;this.from=a;this.to=d;c?(this.scrollbarGroup[n]({translateY:g}),this.scrollbar[n]({height:p}),this.scrollbarRifles[n]({translateY:h}),this.scrollbarTop=g,this.scrollbarLeft=0):(this.scrollbarGroup[n]({translateX:g}),this.scrollbar[n]({width:p}),this.scrollbarRifles[n]({translateX:h}),this.scrollbarLeft=g,this.scrollbarTop=
|
|
141
|
+
0);12>=p?this.scrollbarRifles.hide():this.scrollbarRifles.show();!1===b.showFull&&(0>=a&&1<=d?this.group.hide():this.group.show());this.rendered=!0}};b.prototype.shouldUpdateExtremes=function(a){return H(this.options.liveRedraw,r.svg&&!r.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===a||"touchend"===a||!f(a)};b.prototype.trackClick=function(a){var b=this.chart.pointer.normalize(a),f=this.to-this.from,g=this.y+this.scrollbarTop,h=this.x+this.scrollbarLeft;this.options.vertical&&b.chartY>g||!this.options.vertical&&
|
|
142
|
+
b.chartX>h?this.updatePosition(this.from+f,this.to+f):this.updatePosition(this.from-f,this.to-f);c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};b.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,B(!0,this.options,a),this.chart)};b.prototype.updatePosition=function(a,b){1<b&&(a=t(1-t(b-a)),b=1);0>a&&(b=t(b-a),a=0);this.from=a;this.to=b};b.defaultOptions=v;return b}();n.scrollbar=B(!0,b.defaultOptions,n.scrollbar);return b});F(b,"Extensions/RangeSelector.js",
|
|
143
|
+
[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/DefaultOptions.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,r,y,v,F,n){function h(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),d="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&d?"datetime-local":b?"date":d?"time":"text"}var t=v.defaultOptions,f=n.addEvent,p=n.createElement,c=n.css,B=n.defined,
|
|
144
|
+
H=n.destroyObjectProperties,D=n.discardElement,g=n.extend,a=n.find,d=n.fireEvent,w=n.isNumber,C=n.merge,J=n.objectEach,l=n.pad,x=n.pick,G=n.pInt,M=n.splat;g(t,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",
|
|
145
|
+
inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}});g(t.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var E=function(){function a(b){this.buttons=void 0;this.buttonOptions=a.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=b;this.init(b)}a.prototype.clickButton=function(a,c){var m=
|
|
146
|
+
this.chart,e=this.buttonOptions[a],k=m.xAxis[0],q=m.scroller&&m.scroller.getUnionExtremes()||k||{},g=q.dataMin,h=q.dataMax,l=k&&Math.round(Math.min(k.max,x(h,k.max))),z=e.type;q=e._range;var n,p=e.dataGrouping;var r=!0;if(null!==g&&null!==h){m.fixedRange=q;this.setSelected(a);p&&(this.forcedDataGrouping=!0,b.prototype.setDataGrouping.call(k||{chart:this.chart},p,!1),this.frozenStates=e.preserveDataGrouping);if("month"===z||"year"===z)if(k){r={range:e,max:l,chart:m,dataMin:g,dataMax:h};var t=k.minFromRange.call(r);
|
|
147
|
+
w(r.newMax)&&(l=r.newMax);r=!1}else q=e;else if(q)t=Math.max(l-q,g),l=Math.min(t+q,h),r=!1;else if("ytd"===z)if(k){if("undefined"===typeof h||"undefined"===typeof g)g=Number.MAX_VALUE,h=Number.MIN_VALUE,m.series.forEach(function(a){if(a=a.xData)g=Math.min(a[0],g),h=Math.max(a[a.length-1],h)}),c=!1;l=this.getYTDExtremes(h,g,m.time.useUTC);t=n=l.min;l=l.max}else{this.deferredYTDClick=a;return}else"all"===z&&k&&(m.navigator&&m.navigator.baseSeries[0]&&(m.navigator.baseSeries[0].xAxis.options.range=void 0),
|
|
148
|
+
t=g,l=h);r&&e._offsetMin&&B(t)&&(t+=e._offsetMin);e._offsetMax&&B(l)&&(l+=e._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=a+1);if(k)k.setExtremes(t,l,x(c,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:e});else{var A=M(m.options.xAxis)[0];var v=A.range;A.range=q;var y=A.min;A.min=n;f(m,"load",function(){A.range=v;A.min=y})}d(this,"afterBtnClick")}};a.prototype.setSelected=function(a){this.selected=this.options.selected=a};a.prototype.init=function(a){var b=this,c=a.options.rangeSelector,
|
|
149
|
+
e=c.buttons||b.defaultButtons.slice(),k=c.selected,m=function(){var a=b.minInput,e=b.maxInput;a&&a.blur&&d(a,"blur");e&&e.blur&&d(e,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=e;this.eventsToUnbind=[];this.eventsToUnbind.push(f(a.container,"mousedown",m));this.eventsToUnbind.push(f(a,"resize",m));e.forEach(b.computeButtonRange);"undefined"!==typeof k&&e[k]&&this.clickButton(k,!1);this.eventsToUnbind.push(f(a,"load",function(){a.xAxis&&a.xAxis[0]&&f(a.xAxis[0],"setExtremes",function(e){this.max-
|
|
150
|
+
this.min!==a.fixedRange&&"rangeSelectorButton"!==e.trigger&&"updatedData"!==e.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};a.prototype.updateButtonStates=function(){var a=this,b=this.chart,d=this.dropdown,e=b.xAxis[0],c=Math.round(e.max-e.min),f=!e.hasVisibleSeries,g=b.scroller&&b.scroller.getUnionExtremes()||e,h=g.dataMin,l=g.dataMax;b=a.getYTDExtremes(l,h,b.time.useUTC);var n=b.min,p=b.max,r=a.selected,t=w(r),A=a.options.allButtonsEnabled,v=a.buttons;a.buttonOptions.forEach(function(b,
|
|
151
|
+
k){var m=b._range,q=b.type,g=b.count||1,u=v[k],z=0,N=b._offsetMax-b._offsetMin;b=k===r;var R=m>l-h,O=m<e.minRange,P=!1,w=!1;m=m===c;("month"===q||"year"===q)&&c+36E5>=864E5*{month:28,year:365}[q]*g-N&&c-36E5<=864E5*{month:31,year:366}[q]*g+N?m=!0:"ytd"===q?(m=p-n+N===c,P=!b):"all"===q&&(m=e.max-e.min>=l-h,w=!b&&t&&m);q=!A&&(R||O||w||f);g=b&&m||m&&!t&&!P||b&&a.frozenStates;q?z=3:g&&(t=!0,z=2);u.state!==z&&(u.setState(z),d&&(d.options[k+1].disabled=q,2===z&&(d.selectedIndex=k+1)),0===z&&r===k&&a.setSelected())})};
|
|
152
|
+
a.prototype.computeButtonRange=function(a){var b=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*d;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*d;a._offsetMin=x(a.offsetMin,0);a._offsetMax=x(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};a.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,d=this.chart.time;return a?("text"===a.type&&b.inputDateParser||
|
|
153
|
+
this.defaultInputDateParser)(a.value,d.useUTC,d):0};a.prototype.setInputValue=function(a,b){var d=this.options,e=this.chart.time,c="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(c){var f=c.getAttribute("data-hc-time");f=B(f)?Number(f):void 0;B(b)&&(B(f)&&c.setAttribute("data-hc-time-previous",f),c.setAttribute("data-hc-time",b),f=b);c.value=e.dateFormat(this.inputTypeFormats[c.type]||d.inputEditDateFormat,f);a&&a.attr({text:e.dateFormat(d.inputDateFormat,f)})}};
|
|
154
|
+
a.prototype.setInputExtremes=function(a,b,d){if(a="min"===a?this.minInput:this.maxInput){var e=this.inputTypeFormats[a.type],c=this.chart.time;e&&(b=c.dateFormat(e,b),a.min!==b&&(a.min=b),d=c.dateFormat(e,d),a.max!==d&&(a.max=d))}};a.prototype.showInput=function(a){var b="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var d="text"===a.type,e=this.inputGroup,k=e.translateX;e=e.translateY;var f=this.options.inputBoxWidth;c(a,{width:d?b.width+
|
|
155
|
+
(f?-2:20)+"px":"auto",height:d?b.height-2+"px":"auto",border:"2px solid silver"});d&&f?c(a,{left:k+b.x+"px",top:e+"px"}):c(a,{left:Math.min(Math.round(b.x+k-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:e-(a.offsetHeight-b.height)/2+"px"})}};a.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&c(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};a.prototype.defaultInputDateParser=function(a,b,d){var e=a.split("/").join("-").split(" ").join("T");
|
|
156
|
+
-1===e.indexOf("T")&&(e+="T00:00");if(b)e+="Z";else{var c;if(c=y.isSafari)c=e,c=!(6<c.length&&(c.lastIndexOf("-")===c.length-6||c.lastIndexOf("+")===c.length-6));c&&(c=(new Date(e)).getTimezoneOffset()/60,e+=0>=c?"+".concat(l(-c),":00"):"-".concat(l(c),":00"))}e=Date.parse(e);w(e)||(a=a.split("-"),e=Date.UTC(G(a[0]),G(a[1])-1,G(a[2])));d&&b&&w(e)&&(e+=d.getTimezoneOffset(e));return e};a.prototype.drawInput=function(a){function b(){var b=f.getInputValue(a),e=d.xAxis[0],c=d.scroller&&d.scroller.xAxis?
|
|
157
|
+
d.scroller.xAxis:e,k=c.dataMin;c=c.dataMax;var g=f.maxInput,q=f.minInput;b!==Number(A.getAttribute("data-hc-time-previous"))&&w(b)&&(A.setAttribute("data-hc-time-previous",b),r&&g&&w(k)?b>Number(g.getAttribute("data-hc-time"))?b=void 0:b<k&&(b=k):q&&w(c)&&(b<Number(q.getAttribute("data-hc-time"))?b=void 0:b>c&&(b=c)),"undefined"!==typeof b&&e.setExtremes(r?b:e.min,r?e.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var d=this.chart,e=this.div,k=this.inputGroup,f=this,m=d.renderer.style||{},l=
|
|
158
|
+
d.renderer,n=d.options.rangeSelector,r="min"===a,R=t.lang[r?"rangeSelectorFrom":"rangeSelectorTo"]||"";R=l.label(R,0).addClass("highcharts-range-label").attr({padding:R?2:0,height:R?n.inputBoxHeight:0}).add(k);l=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:n.inputBoxWidth,height:n.inputBoxHeight,"text-align":"center"}).on("click",function(){f.showInput(a);f[a+"Input"].focus()});d.styledMode||l.attr({stroke:n.inputBoxBorderColor,"stroke-width":1});l.add(k);var A=p("input",
|
|
159
|
+
{name:a,className:"highcharts-range-selector"},void 0,e);A.setAttribute("type",h(n.inputDateFormat||"%b %e, %Y"));d.styledMode||(R.css(C(m,n.labelStyle)),l.css(C({color:"#333333"},m,n.inputStyle)),c(A,g({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:m.fontSize,fontFamily:m.fontFamily,top:"-9999em"},n.inputStyle)));A.onfocus=function(){f.showInput(a)};A.onblur=function(){A===y.doc.activeElement&&b();f.hideInput(a);f.setInputValue(a);
|
|
160
|
+
A.blur()};var v=!1;A.onchange=function(){v||(b(),f.hideInput(a),A.blur())};A.onkeypress=function(a){13===a.keyCode&&b()};A.onkeydown=function(a){v=!0;38!==a.keyCode&&40!==a.keyCode||b()};A.onkeyup=function(){v=!1};return{dateBox:l,input:A,label:R}};a.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}};a.prototype.getYTDExtremes=function(a,b,d){var e=
|
|
161
|
+
this.chart.time,c=new e.Date(a),f=e.get("FullYear",c);d=d?e.Date.UTC(f,0,1):+new e.Date(f,0,1);b=Math.max(b,d);c=c.getTime();return{max:Math.min(a||c,c),min:b}};a.prototype.render=function(a,b){var d=this.chart,e=d.renderer,c=d.container,f=d.options,g=f.rangeSelector,m=x(f.chart.style&&f.chart.style.zIndex,0)+1;f=g.inputEnabled;if(!1!==g.enabled){this.rendered||(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=p("div",void 0,{position:"relative",height:0,zIndex:m}),this.buttonOptions.length&&
|
|
162
|
+
this.renderButtons(),c.parentNode&&c.parentNode.insertBefore(this.div,c),f&&(this.inputGroup=e.g("input-group").add(this.group),e=this.drawInput("min"),this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input,e=this.drawInput("max"),this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input));if(f&&(this.setInputValue("min",a),this.setInputValue("max",b),a=d.scroller&&d.scroller.getUnionExtremes()||d.xAxis[0]||{},B(a.dataMin)&&B(a.dataMax)&&(d=d.xAxis[0].minRange||0,this.setInputExtremes("min",
|
|
163
|
+
a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-d),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+d,a.dataMax)),this.inputGroup)){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:h}),h+=b+g.inputSpacing)}})}this.alignElements();this.rendered=!0}};a.prototype.renderButtons=function(){var a=this,b=this.buttons,c=this.options,e=t.lang,k=this.chart.renderer,g=C(c.buttonTheme),h=g&&g.states,
|
|
164
|
+
l=g.width||28;delete g.width;delete g.states;this.buttonGroup=k.g("range-selector-buttons").add(this.group);var n=this.dropdown=p("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);f(n,"touchstart",function(){n.style.fontSize="16px"});[[y.isMS?"mouseover":"mouseenter"],[y.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(e){var c=e[0],k=e[1];f(n,c,function(){var e=b[a.currentButtonIndex()];e&&d(e.element,
|
|
165
|
+
k||c)})});this.zoomText=k.label(e&&e.rangeSelectorZoom||"",0).attr({padding:c.buttonTheme.padding,height:c.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(c.labelStyle),g["stroke-width"]=x(g["stroke-width"],0));p("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,n);this.buttonOptions.forEach(function(e,d){p("option",{textContent:e.title||e.text},void 0,n);b[d]=k.button(e.text,0,0,function(b){var c=e.events&&e.events.click,
|
|
166
|
+
k;c&&(k=c.call(e,b));!1!==k&&a.clickButton(d);a.isActive=!0},g,h&&h.hover,h&&h.select,h&&h.disabled).attr({"text-align":"center",width:l}).add(a.buttonGroup);e.title&&b[d].attr("title",e.title)})};a.prototype.alignElements=function(){var a=this,b=this.buttonGroup,d=this.buttons,e=this.chart,c=this.group,f=this.inputGroup,g=this.options,h=this.zoomText,l=e.options,n=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=g.buttonPosition;var p=g.inputPosition,r=g.verticalAlign,
|
|
167
|
+
t=function(b,d){return n&&a.titleCollision(e)&&"top"===r&&"right"===d.align&&d.y-b.getBBox().height-12<(n.y||0)+(n.height||0)+e.spacing[0]?-40:0},A=e.plotLeft;if(c&&l&&p){var w=l.x-e.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var v=0;h&&(v+=h.getBBox().width+5);d.forEach(function(a,b){v+=a.width;b!==d.length-1&&(v+=g.buttonSpacing)});this.initialButtonGroupWidth=v}A-=e.spacing[3];this.updateButtonStates();h=t(b,l);this.alignButtonGroup(h);c.placed=b.placed=e.hasLoaded}b=
|
|
168
|
+
0;f&&(b=t(f,p),"left"===p.align?w=A:"right"===p.align&&(w=-Math.max(e.axisOffset[1],-b)),f.align({y:p.y,width:f.getBBox().width,align:p.align,x:p.x+w-2},!0,e.spacingBox),f.placed=e.hasLoaded);this.handleCollision(b);c.align({verticalAlign:r},!0,e.spacingBox);f=c.alignAttr.translateY;b=c.getBBox().height+20;t=0;"bottom"===r&&(t=(t=e.legend&&e.legend.options)&&"bottom"===t.verticalAlign&&t.enabled&&!t.floating?e.legend.legendHeight+x(t.margin,10):0,b=b+t-20,t=f-b-(g.floating?0:g.y)-(e.titleOffset?e.titleOffset[2]:
|
|
169
|
+
0)-10);if("top"===r)g.floating&&(t=0),e.titleOffset&&e.titleOffset[0]&&(t=e.titleOffset[0]),t+=e.margin[0]-e.spacing[0]||0;else if("middle"===r)if(p.y===l.y)t=f;else if(p.y||l.y)t=0>p.y||0>l.y?t-Math.min(p.y,l.y):f-b;c.translate(g.x,g.y+Math.floor(t));l=this.minInput;p=this.maxInput;f=this.dropdown;g.inputEnabled&&l&&p&&(l.style.marginTop=c.translateY+"px",p.style.marginTop=c.translateY+"px");f&&(f.style.marginTop=c.translateY+"px")}};a.prototype.alignButtonGroup=function(a,b){var d=this.chart,e=
|
|
170
|
+
this.buttonGroup,c=this.options.buttonPosition,f=d.plotLeft-d.spacing[3],g=c.x-d.spacing[3];"right"===c.align?g+=a-f:"center"===c.align&&(g-=f/2);e&&e.align({y:c.y,width:x(b,this.initialButtonGroupWidth),align:c.align,x:g},!0,d.spacingBox)};a.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,d=this.options,e=this.zoomText,c=b.hasLoaded?"animate":"attr",f=d.buttonPosition,g=b.plotLeft,h=g;e&&"hidden"!==e.visibility&&(e[c]({x:x(g+f.x,g)}),h+=f.x+e.getBBox().width+5);this.buttonOptions.forEach(function(b,
|
|
171
|
+
e){if("hidden"!==a[e].visibility)a[e][c]({x:h}),h+=a[e].width+d.buttonSpacing;else a[e][c]({x:g})})};a.prototype.handleCollision=function(a){var b=this,d=this.chart,e=this.buttonGroup,c=this.inputGroup,f=this.options,g=f.buttonPosition,h=f.dropdown,m=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var l=function(b){if(c&&e){var d=c.alignAttr.translateX+c.alignOptions.x-a+c.getBBox().x+2,k=c.alignOptions.width,f=e.alignAttr.translateX+
|
|
172
|
+
e.getBBox().x;return f+b>d&&d+k>f&&g.y<m.y+c.getBBox().height}return!1},n=function(){c&&e&&c.attr({translateX:c.alignAttr.translateX+(d.axisOffset[1]>=-a?0:-a),translateY:c.alignAttr.translateY+e.getBBox().height+10})};if(e){if("always"===h){this.collapseButtons(a);l(f())&&n();return}"never"===h&&this.expandButtons()}c&&e?m.align===g.align||l(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(a),l(f())&&n()):n():"responsive"===h&&this.expandButtons():e&&"responsive"===h&&(this.initialButtonGroupWidth>
|
|
173
|
+
d.plotWidth?this.collapseButtons(a):this.expandButtons())};a.prototype.collapseButtons=function(a){var b=this.buttons,d=this.buttonOptions,e=this.chart,c=this.dropdown,f=this.options,g=this.zoomText,h=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},m=function(a){return{text:a?""+a+" \u25be":"\u25be",width:"auto",paddingLeft:x(f.buttonTheme.paddingLeft,h.padding,8),paddingRight:x(f.buttonTheme.paddingRight,h.padding,8)}};g&&g.hide();var l=!1;d.forEach(function(a,e){e=b[e];
|
|
174
|
+
2!==e.state?e.hide():(e.show(),e.attr(m(a.text)),l=!0)});l||(c&&(c.selectedIndex=0),b[0].show(),b[0].attr(m(this.zoomText&&this.zoomText.textStr)));d=f.buttonPosition.align;this.positionButtons();"right"!==d&&"center"!==d||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};a.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,d=this.options,e=this.zoomText;this.hideDropdown();e&&e.show();b.forEach(function(b,e){e=a[e];e.show();e.attr({text:b.text,
|
|
175
|
+
width:d.buttonTheme.width||28,paddingLeft:x(d.buttonTheme.paddingLeft,"unset"),paddingRight:x(d.buttonTheme.paddingRight,"unset")});2>e.state&&e.setState(0)});this.positionButtons()};a.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};a.prototype.showDropdown=function(){var a=this.buttonGroup,b=this.buttons,d=this.chart,e=this.dropdown;if(a&&e){var k=a.translateX;a=a.translateY;b=b[this.currentButtonIndex()].getBBox();c(e,{left:d.plotLeft+
|
|
176
|
+
k+"px",top:a+.5+"px",width:b.width+"px",height:b.height+"px"});this.hasVisibleDropdown=!0}};a.prototype.hideDropdown=function(){var a=this.dropdown;a&&(c(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};a.prototype.getHeight=function(){var a=this.options,b=this.group,d=a.y,e=a.buttonPosition.y,c=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=b?b.getBBox(!0).height+13+d:0;b=Math.min(c,e);if(0>c&&0>e||0<c&&0<e)a+=Math.abs(b);return a};a.prototype.titleCollision=
|
|
177
|
+
function(a){return!(a.options.title.text||a.options.subtitle.text)};a.prototype.update=function(a){var b=this.chart;C(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};a.prototype.destroy=function(){var b=this,d=b.minInput,c=b.maxInput;b.eventsToUnbind&&(b.eventsToUnbind.forEach(function(a){return a()}),b.eventsToUnbind=void 0);H(b.buttons);d&&(d.onfocus=d.onblur=d.onchange=null);c&&(c.onfocus=c.onblur=c.onchange=null);J(b,function(e,d){e&&"chart"!==d&&(e instanceof F?e.destroy():
|
|
178
|
+
e instanceof window.HTMLElement&&D(e));e!==a.prototype[d]&&(b[d]=null)},this)};return a}();E.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}];E.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",
|
|
179
|
+
time:"%H:%M:%S"};b.prototype.minFromRange=function(){var a=this.range,b=a.type,d=this.max,c=this.chart.time,e=function(a,e){var d="year"===b?"FullYear":"Month",k=new c.Date(a),f=c.get(d,k);c.set(d,k,f+e);f===c.get(d,k)&&c.set("Date",k,0);return k.getTime()-a};if(w(a)){var k=d-a;var f=a}else a&&(k=d+e(d,-(a.count||1)),this.chart&&(this.chart.fixedRange=d-k));var g=x(this.dataMin,Number.MIN_VALUE);w(k)||(k=g);k<=g&&(k=g,"undefined"===typeof f&&(f=e(k,a.count)),this.newMax=Math.min(k+f,x(this.dataMax,
|
|
180
|
+
Number.MAX_VALUE)));w(d)?!w(a)&&a&&a._offsetMin&&(k+=a._offsetMin):k=void 0;return k};if(!y.RangeSelector){var L=[],I=function(b){function d(){g&&(c=b.xAxis[0].getExtremes(),e=b.legend,h=g&&g.options.verticalAlign,w(c.min)&&g.render(c.min,c.max),e.display&&"top"===h&&h===e.options.verticalAlign&&(k=C(b.spacingBox),k.y="vertical"===e.options.layout?b.plotTop:k.y+g.getHeight(),e.group.placed=!1,e.align(k)))}var c,g=b.rangeSelector,e,k,h;g&&(a(L,function(a){return a[0]===b})||L.push([b,[f(b.xAxis[0],
|
|
181
|
+
"afterSetExtremes",function(a){g&&g.render(a.min,a.max)}),f(b,"redraw",d)]]),d())};f(r,"afterGetContainer",function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new E(this))});f(r,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(w(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||
|
|
182
|
+
("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))});f(r,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var d=this.extraBottomMargin,c=this.extraTopMargin;b&&b.enabled&&!B(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new E(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(I(this),b=b&&b.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=
|
|
183
|
+
!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==d||this.extraTopMargin!==c)&&(this.isDirtyBox=!0)});f(r,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});f(r,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});r.prototype.callbacks.push(I);
|
|
184
|
+
f(r,"destroy",function(){for(var a=0;a<L.length;a++){var b=L[a];if(b[0]===this){b[1].forEach(function(a){return a()});L.splice(a,1);break}}});y.RangeSelector=E}return E});F(b,"Core/Axis/NavigatorAxis.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,r){var y=b.isTouchDevice,v=r.addEvent,D=r.correctFloat,n=r.defined,h=r.isNumber,t=r.pick,f=function(){function b(b){this.axis=b}b.prototype.destroy=function(){this.axis=void 0};b.prototype.toFixedRange=function(b,f,p,r){var c=this.axis,a=c.chart;
|
|
185
|
+
a=a&&a.fixedRange;var d=(c.pointRange||0)/2;b=t(p,c.translate(b,!0,!c.horiz));f=t(r,c.translate(f,!0,!c.horiz));c=a&&(f-b)/a;n(p)||(b=D(b+d));n(r)||(f=D(f-d));.7<c&&1.3>c&&(r?b=f-a:f=b+a);h(b)&&h(f)||(b=f=void 0);return{min:b,max:f}};return b}();return function(){function b(){}b.compose=function(b){b.keepProps.push("navigatorAxis");v(b,"init",function(){this.navigatorAxis||(this.navigatorAxis=new f(this))});v(b,"zoom",function(b){var c=this.chart.options,f=c.navigator,g=this.navigatorAxis,a=c.chart.pinchType,
|
|
186
|
+
d=c.rangeSelector;c=c.chart.zoomType;this.isXAxis&&(f&&f.enabled||d&&d.enabled)&&("y"===c?b.zoomed=!1:(!y&&"xy"===c||y&&"xy"===a)&&this.options.range&&(f=g.previousZoom,n(b.newMin)?g.previousZoom=[this.min,this.max]:f&&(b.newMin=f[0],b.newMax=f[1],g.previousZoom=void 0)));"undefined"!==typeof b.zoomed&&b.preventDefault()})};b.AdditionsClass=f;return b}()});F(b,"Core/Navigator.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Axis/NavigatorAxis.js"],
|
|
187
|
+
b["Core/DefaultOptions.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Scrollbar.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,r,y,v,F,n,h,t,f,p,c){y=y.parse;var B=v.hasTouch,D=v.isTouchDevice,K=n.defaultOptions,g=c.addEvent,a=c.clamp,d=c.correctFloat,w=c.defined,C=c.destroyObjectProperties,J=c.erase,l=c.extend,x=c.find,G=c.isArray,M=c.isNumber,E=c.merge,L=c.pick,I=c.removeEvent,A=c.splat,m=function(a){for(var b=[],d=1;d<arguments.length;d++)b[d-
|
|
188
|
+
1]=arguments[d];b=[].filter.call(b,M);if(b.length)return Math[a].apply(0,b)};n="undefined"===typeof p.seriesTypes.areaspline?"line":"areaspline";l(K,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:y("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:n,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",
|
|
189
|
+
enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",
|
|
190
|
+
tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});h.getRendererType().prototype.symbols["navigator-handle"]=function(a,b,d,c,f){a=(f&&f.width||0)/2;b=Math.round(a/3)+.5;f=f&&f.height||0;return[["M",
|
|
191
|
+
-a-1,.5],["L",a,.5],["L",a,f+.5],["L",-a-1,f+.5],["L",-a-1,.5],["M",-b,4],["L",-b,f-3],["M",b-1,4],["L",b-1,f-3]]};var z=function(){function c(a){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(a)}c.prototype.drawHandle=
|
|
192
|
+
function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})};c.prototype.drawOutline=function(a,b,c,d){var e=this.navigatorOptions.maskInside,f=this.outline.strokeWidth(),k=f/2,g=f%2/2;f=this.outlineHeight;var h=this.scrollbarHeight||0,l=this.size,q=this.left-h,m=this.top;c?
|
|
193
|
+
(q-=k,c=m+b+g,b=m+a+g,g=[["M",q+f,m-h-g],["L",q+f,c],["L",q,c],["L",q,b],["L",q+f,b],["L",q+f,m+l+h]],e&&g.push(["M",q+f,c-k],["L",q+f,b+k])):(a+=q+h-g,b+=q+h-g,m+=k,g=[["M",q,m],["L",a,m],["L",a,m+f],["L",b,m+f],["L",b,m],["L",q+l+2*h,m]],e&&g.push(["M",a-k,m],["L",b+k,m]));this.outline[d]({d:g})};c.prototype.drawMasks=function(a,b,c,d){var e=this.left,f=this.top,k=this.height;if(c){var g=[e,e,e];var h=[f,f+a,f+b];var l=[k,k,k];var q=[a,b-a,this.size-b]}else g=[e,e+a,e+b],h=[f,f,f],l=[a,b-a,this.size-
|
|
194
|
+
b],q=[k,k,k];this.shades.forEach(function(a,b){a[d]({x:g[b],y:h[b],width:l[b],height:q[b]})})};c.prototype.renderElements=function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,f=d.renderer,g,h={cursor:d.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=g=f.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,e){var k=f.rect().addClass("highcharts-navigator-mask"+(1===e?"-inside":"-outside")).add(g);d.styledMode||(k.attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}),
|
|
195
|
+
1===e&&k.css(h));a.shades[e]=k});a.outline=f.path().addClass("highcharts-navigator-outline").add(g);d.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(g);if(!d.styledMode){var e=
|
|
196
|
+
b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,"stroke-width":e.lineWidth}).css(h)}})};c.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();E(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};c.prototype.render=function(b,c,f,g){var e=this.chart,k=this.scrollbarHeight,h,l=this.xAxis,q=l.pointRange||0;var m=l.navigatorAxis.fake?e.xAxis[0]:l;var n=this.navigatorEnabled,p,
|
|
197
|
+
r=this.rendered;var t=e.inverted;var u=e.xAxis[0].minRange,v=e.xAxis[0].options.maxRange;if(!this.hasDragged||w(f)){b=d(b-q/2);c=d(c+q/2);if(!M(b)||!M(c))if(r)f=0,g=L(l.width,m.width);else return;this.left=L(l.left,e.plotLeft+k+(t?e.plotWidth:0));this.size=p=h=L(l.len,(t?e.plotHeight:e.plotWidth)-2*k);e=t?k:h+2*k;f=L(f,l.toPixels(b,!0));g=L(g,l.toPixels(c,!0));M(f)&&Infinity!==Math.abs(f)||(f=0,g=e);b=l.toValue(f,!0);c=l.toValue(g,!0);var x=Math.abs(d(c-b));x<u?this.grabbedLeft?f=l.toPixels(c-u-q,
|
|
198
|
+
!0):this.grabbedRight&&(g=l.toPixels(b+u+q,!0)):w(v)&&d(x-q)>v&&(this.grabbedLeft?f=l.toPixels(c-v-q,!0):this.grabbedRight&&(g=l.toPixels(b+v+q,!0)));this.zoomedMax=a(Math.max(f,g),0,p);this.zoomedMin=a(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(f,g),0,p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);f=Math.round(this.zoomedMin);n&&(this.navigatorGroup.attr({visibility:"inherit"}),r=r&&!this.hasDragged?"animate":"attr",this.drawMasks(f,p,t,r),this.drawOutline(f,
|
|
199
|
+
p,t,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(f,0,t,r),this.drawHandle(p,1,t,r)));this.scrollbar&&(t?(t=this.top-k,m=this.left-k+(n||!m.opposite?0:(m.titleOffset||0)+m.axisTitleMargin),k=h+2*k):(t=this.top+(n?this.height:-k),m=this.left-k),this.scrollbar.position(m,t,e,k),this.scrollbar.setRange(this.zoomedMin/(h||1),this.zoomedMax/(h||1)));this.rendered=!0}};c.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,d=[],f,h;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};
|
|
200
|
+
a.mouseUpHandler=h=function(b){a.onMouseUp(b)};d=a.getPartsEvents("mousedown");d.push(g(b.renderTo,"mousemove",f),g(c.ownerDocument,"mouseup",h));B&&(d.push(g(b.renderTo,"touchmove",f),g(c.ownerDocument,"touchend",h)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(g(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};c.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(d){b[d].forEach(function(e,
|
|
201
|
+
f){c.push(g(e.element,a,function(a){b[d+"Mousedown"](a,f)}))})});return c};c.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,k=this.size,g=this.range,h=a.chartX;c.inverted&&(h=a.chartY,f=this.top);if(1===b)this.grabbedCenter=h,this.fixedWidth=g,this.dragOffset=h-e;else{a=h-f-g/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+g>=k)if(a=k-g,this.reversedExtremes){a-=g;var l=this.getUnionExtremes().dataMin}else var m=this.getUnionExtremes().dataMax;
|
|
202
|
+
a!==e&&(this.fixedWidth=g,b=d.navigatorAxis.toFixedRange(a,a+g,l,m),w(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};c.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=
|
|
203
|
+
null};c.prototype.onMouseMove=function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,h&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-d)):b.grabbedCenter&&(b.hasDragged=!0,c<g?c=g:c>e+g-f&&(c=e+g-f),b.render(0,0,c-g,c-g+f)),b.hasDragged&&b.scrollbar&&L(b.scrollbar.options.liveRedraw,
|
|
204
|
+
v.svg&&!D&&!this.chart.isBoosting)&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};c.prototype.onMouseUp=function(a){var b=this.chart,c=this.xAxis,d=this.scrollbar,e=a.DOMEvent||a,f=b.inverted,g=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===a.trigger){d=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var h=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var l=this.fixedExtreme;this.zoomedMax===
|
|
205
|
+
this.size&&(l=this.reversedExtremes?d.dataMin:d.dataMax);0===this.zoomedMin&&(h=this.reversedExtremes?d.dataMax:d.dataMin);c=c.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,h,l);w(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:e})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=
|
|
206
|
+
this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&M(this.zoomedMin)&&M(this.zoomedMax)&&(b=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(b,a,f,g),this.outline&&this.drawOutline(b,a,f,g),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,f,g),this.drawHandle(a,1,f,g)))};c.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=
|
|
207
|
+
void 0);this.removeBaseSeriesEvents()};c.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){I(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&I(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};c.prototype.init=function(a){var c=a.options,d=c.navigator,e=d.enabled,f=c.scrollbar,h=f.enabled;c=e?d.height:0;var l=h?f.height:0;this.handles=[];this.shades=[];this.chart=
|
|
208
|
+
a;this.setBaseSeries();this.height=c;this.scrollbarHeight=l;this.scrollbarEnabled=h;this.navigatorEnabled=e;this.navigatorOptions=d;this.scrollbarOptions=f;this.outlineHeight=c+l;this.opposite=L(d.opposite,!(e||!a.inverted));var n=this;e=n.baseSeries;f=a.xAxis.length;h=a.yAxis.length;var p=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;n.navigatorEnabled?(n.xAxis=new b(a,E({breaks:p.options.breaks,ordinal:p.options.ordinal},d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,
|
|
209
|
+
type:"datetime",index:f,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[l,0,-l,0],width:c}:{offsets:[0,-l,0,l],height:c})),n.yAxis=new b(a,E(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:h,isInternal:!0,reversed:L(d.yAxis&&d.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:c}:{height:c})),e||d.series.data?n.updateNavigatorSeries(!1):0===a.series.length&&(n.unbindRedraw=
|
|
210
|
+
g(a,"beforeRedraw",function(){0<a.series.length&&!n.series&&(n.setBaseSeries(),n.unbindRedraw())})),n.reversedExtremes=a.inverted&&!n.xAxis.reversed||!a.inverted&&n.xAxis.reversed,n.renderElements(),n.addMouseEvents()):(n.xAxis={chart:a,navigatorAxis:{fake:!0},translate:function(b,c){var d=a.xAxis[0],e=d.getExtremes(),f=d.len-2*l,g=m("min",d.options.min,e.dataMin);d=m("max",d.options.max,e.dataMax)-g;return c?b*d/f+g:f*(b-g)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,
|
|
211
|
+
!0)}},n.xAxis.navigatorAxis.axis=n.xAxis,n.xAxis.navigatorAxis.toFixedRange=F.AdditionsClass.prototype.toFixedRange.bind(n.xAxis.navigatorAxis));a.options.scrollbar.enabled&&(a.scrollbar=n.scrollbar=new t(a.renderer,E(a.options.scrollbar,{margin:n.navigatorEnabled?0:10,vertical:a.inverted}),a),g(n.scrollbar,"changed",function(a){var b=n.size,c=b*this.to;b*=this.from;n.hasDragged=n.scrollbar.hasDragged;n.render(0,0,b,c);this.shouldUpdateExtremes(a.DOMType)&&setTimeout(function(){n.onMouseUp(a)})}));
|
|
212
|
+
n.addBaseSeriesEvents();n.addChartEvents()};c.prototype.getUnionExtremes=function(a){var b=this.chart.xAxis[0],c=this.xAxis,d=c.options,e=b.options,f;a&&null===b.dataMin||(f={dataMin:L(d&&d.min,m("min",e.min,b.dataMin,c.dataMin,c.min)),dataMax:L(d&&d.max,m("max",e.max,b.dataMax,c.dataMax,c.max))});return f};c.prototype.setBaseSeries=function(a,b){var c=this.chart,d=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?x(c.series,function(a){return!a.options.isInternal}).index:
|
|
213
|
+
0);(c.series||[]).forEach(function(b,c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||d.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};c.prototype.updateNavigatorSeries=function(a,b){var c=this,d=c.chart,e=c.baseSeries,f,g,h=c.navigatorOptions.series,k,m={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,
|
|
214
|
+
isInternal:!0,states:{inactive:{opacity:1}}},n=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>e.indexOf(b)?(b&&(I(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});e&&e.length&&e.forEach(function(a){var q=a.navigatorSeries,p=l({color:a.color,visible:a.visible},G(h)?K.navigator.series:h);q&&!1===c.navigatorOptions.adaptToUpdatedData||(m.name="Navigator "+e.length,f=a.options||{},k=f.navigatorOptions||{},p.dataLabels=A(p.dataLabels),
|
|
215
|
+
g=E(f,m,p,k),g.pointRange=L(p.pointRange,k.pointRange,K.plotOptions[g.type||"line"].pointRange),p=k.data||p.data,c.hasNavigatorData=c.hasNavigatorData||!!p,g.data=p||f.data&&f.data.slice(0),q&&q.options?q.update(g,b):(a.navigatorSeries=d.initSeries(g),a.navigatorSeries.baseSeries=a,n.push(a.navigatorSeries)))});if(h.data&&(!e||!e.length)||G(h))c.hasNavigatorData=!1,h=A(h),h.forEach(function(a,b){m.name="Navigator "+(n.length+1);g=E(K.navigator.series,{color:d.series[b]&&!d.series[b].options.isInternal&&
|
|
216
|
+
d.series[b].color||d.options.colors[b]||d.options.colors[0]},m,a);g.data=a.data;g.data&&(c.hasNavigatorData=!0,n.push(d.initSeries(g)))});a&&this.addBaseSeriesEvents()};c.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(g(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(g(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));b.eventsToUnbind.push(g(b,"hide",
|
|
217
|
+
function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(g(b,"updatedData",this.updatedDataHandler));b.eventsToUnbind.push(g(b,"remove",function(){this.navigatorSeries&&(J(a.series,this.navigatorSeries),w(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};c.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,
|
|
218
|
+
b.xData&&b.xData.length?b.xData[0]:a)},a)};c.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};c.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,d=b.dataMax;b=b.max-b.min;var f=a.stickToMin,g=a.stickToMax,h=L(this.options.overscroll,0),l=a.series&&a.series[0],m=!!this.setExtremes;if(!this.eventArgs||
|
|
219
|
+
"rangeSelectorButton"!==this.eventArgs.trigger){if(f){var n=c;var p=n+b}g&&(p=d+h,f||(n=Math.max(c,p-b,a.getBaseSeriesMin(l&&l.xData?l.xData[0]:-Number.MAX_VALUE))));m&&(f||g)&&M(n)&&(this.min=this.userMin=n,this.max=this.userMax=p)}a.stickToMin=a.stickToMax=null};c.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=a.shouldStickToMin(this,a);
|
|
220
|
+
b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};c.prototype.shouldStickToMin=function(a,b){b=b.getBaseSeriesMin(a.xData[0]);var c=a.xAxis;a=c.max;var d=c.min;c=c.options.range;return M(a)&&M(d)?c&&0<a-b?a-b<c:d<=b:!1};c.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(g(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);
|
|
221
|
+
b&&a.render(b.min,b.max)}),g(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};c.prototype.destroy=function(){this.removeEvents();this.xAxis&&(J(this.chart.xAxis,this.xAxis),J(this.chart.axes,this.xAxis));this.yAxis&&(J(this.chart.yAxis,this.yAxis),J(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&
|
|
222
|
+
a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){C(a)},this)};return c}();v.Navigator||(v.Navigator=z,F.compose(b),g(r,"beforeShowResetZoom",function(){var a=this.options,b=a.navigator,c=a.rangeSelector;if((b&&b.enabled||c&&c.enabled)&&(!D&&"x"===a.chart.zoomType||D&&"x"===a.chart.pinchType))return!1}),
|
|
223
|
+
g(r,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new z(this)}),g(r,"afterSetChartSize",function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var f=b.yAxis;var g=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-g-b.height:this.spacing[3]+g,b.top=this.plotTop+g):(b.left=L(d.left,this.plotLeft+g),b.top=b.navigatorOptions.top||this.chartHeight-b.height-g-this.spacing[2]-(this.rangeSelector&&
|
|
224
|
+
this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&"proximate"!==c.layout&&c.enabled&&!c.floating?a.legendHeight+L(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));d&&f&&(this.inverted?d.options.left=f.options.left=b.left:d.options.top=f.options.top=b.top,d.setAxisSize(),f.setAxisSize())}}),g(r,"update",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(E(!0,this.options.navigator,
|
|
225
|
+
b),E(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)}),g(r,"afterUpdate",function(a){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new z(this),L(a.redraw,!0)&&this.redraw(a.animation))}),g(r,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),g(f,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,
|
|
226
|
+
!1)}),r.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));v.Navigator=z;return v.Navigator});F(b,"masters/modules/gantt.src.js",[b["Core/Globals.js"],b["Core/Chart/GanttChart.js"],b["Core/Scrollbar.js"]],function(b,r,y){b.Scrollbar=y;b.GanttChart=r;b.ganttChart=r.ganttChart;y.compose(b.Axis)})});
|
|
226
227
|
//# sourceMappingURL=gantt.js.map
|