highcharts 9.1.1 → 9.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/annotations/popup.css +29 -28
- package/css/annotations/popup.scss +29 -27
- package/css/highcharts.css +15 -0
- package/css/highcharts.scss +12 -0
- package/css/stocktools/gui.css +1 -0
- package/css/stocktools/gui.scss +1 -0
- package/css/themes/dark-unica.css +15 -0
- package/css/themes/grid-light.css +15 -0
- package/css/themes/sand-signika.css +15 -0
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +8 -2
- package/es-modules/Accessibility/Components/LegendComponent.js +19 -8
- package/es-modules/Accessibility/Components/MenuComponent.js +19 -13
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +4 -8
- package/es-modules/Accessibility/FocusBorder.js +1 -3
- package/es-modules/Accessibility/Options/LangOptions.js +3 -3
- package/es-modules/Accessibility/Utils/Announcer.js +22 -5
- package/es-modules/Accessibility/Utils/ChartUtilities.js +6 -1
- package/es-modules/Core/Animation/AnimationUtilities.js +12 -4
- package/es-modules/Core/Animation/Fx.js +15 -12
- package/es-modules/Core/Axis/Axis.js +25 -13
- package/es-modules/Core/Axis/AxisDefaults.js +0 -1
- package/es-modules/Core/Axis/BrokenAxis.js +32 -15
- package/es-modules/Core/Axis/Color/ColorAxis.js +665 -0
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +237 -0
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +434 -0
- package/es-modules/Core/Axis/DateTimeAxis.js +163 -133
- package/es-modules/Core/Axis/GridAxis.js +8 -3
- package/es-modules/Core/Axis/LogarithmicAxis.js +159 -117
- package/es-modules/Core/Axis/OrdinalAxis.js +666 -460
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +874 -0
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +292 -0
- package/es-modules/Core/Axis/RadialAxis.js +858 -745
- package/es-modules/Core/Axis/ScrollbarAxis.js +7 -0
- package/es-modules/Core/Axis/StackingAxis.js +159 -140
- package/es-modules/Core/Axis/Tick.js +17 -27
- package/es-modules/Core/Chart/Chart.js +24 -38
- package/es-modules/Core/Chart/ChartDefaults.js +1 -1
- package/es-modules/Core/Chart/StockChart.js +12 -0
- package/es-modules/Core/Color/Color.js +96 -104
- package/es-modules/Core/DefaultOptions.js +269 -248
- package/es-modules/Core/Foundation.js +9 -8
- package/es-modules/Core/Geometry/CircleUtilities.js +385 -0
- package/es-modules/Core/Geometry/GeometryUtilities.js +83 -0
- package/es-modules/Core/Globals.js +23 -1
- package/es-modules/{Extensions/Ajax.js → Core/HttpUtilities.js} +86 -42
- package/es-modules/Core/{Legend.js → Legend/Legend.js} +142 -116
- package/es-modules/{Mixins → Core/Legend}/LegendSymbol.js +54 -38
- package/es-modules/Core/Navigator.js +3 -0
- package/es-modules/Core/Pointer.js +9 -0
- package/es-modules/Core/Renderer/HTML/AST.js +100 -82
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +17 -7
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +26 -9
- package/es-modules/Core/Renderer/RendererRegistry.js +9 -4
- package/es-modules/Core/Renderer/RendererUtilities.js +159 -0
- package/es-modules/Core/Renderer/SVG/SVGElement.js +13 -7
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +9 -29
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +2 -2
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +18 -16
- package/es-modules/Core/Responsive.js +166 -148
- package/es-modules/Core/Series/DataLabel.js +564 -0
- package/es-modules/Core/Series/Point.js +233 -209
- package/es-modules/Core/Series/Series.js +174 -2339
- package/es-modules/Core/Series/SeriesDefaults.js +2293 -0
- package/es-modules/Core/Series/SeriesRegistry.js +3 -9
- package/es-modules/Core/Time.js +78 -2
- package/es-modules/Core/Tooltip.js +178 -236
- package/es-modules/Core/Utilities.js +409 -394
- package/es-modules/Extensions/Annotations/Annotations.js +102 -49
- package/es-modules/Extensions/Annotations/Mixins/EventEmitterMixin.js +9 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +30 -25
- package/es-modules/Extensions/Annotations/Popup.js +16 -7
- package/es-modules/Extensions/Boost/BoostOverrides.js +5 -1
- package/es-modules/Extensions/Boost/WGLRenderer.js +5 -4
- package/es-modules/Extensions/Boost/WGLVBuffer.js +3 -0
- package/es-modules/Extensions/BoostCanvas.js +1 -1
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +82 -76
- package/es-modules/Extensions/DataGrouping.js +225 -184
- package/es-modules/Extensions/Debugger/ErrorMessages.js +2 -2
- package/es-modules/Extensions/DraggablePoints.js +13 -5
- package/es-modules/Extensions/Drilldown.js +41 -14
- package/es-modules/Extensions/ExportData.js +7 -4
- package/es-modules/Extensions/Exporting/Exporting.js +1273 -0
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +803 -0
- package/es-modules/Extensions/Exporting/ExportingSymbols.js +73 -0
- package/es-modules/Extensions/FullScreen.js +7 -5
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +617 -0
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +58 -0
- package/es-modules/Extensions/Oldie/Oldie.js +1 -1
- package/es-modules/Extensions/Pane.js +0 -1
- package/es-modules/Extensions/PatternFill.js +23 -10
- package/es-modules/Extensions/Polar.js +2 -1
- package/es-modules/Extensions/RangeSelector.js +1 -1
- package/es-modules/Extensions/Themes/Avocado.js +49 -20
- package/es-modules/Extensions/Themes/DarkBlue.js +226 -203
- package/es-modules/Extensions/Themes/DarkGreen.js +231 -203
- package/es-modules/Extensions/Themes/DarkUnica.js +201 -172
- package/es-modules/Extensions/Themes/Gray.js +228 -205
- package/es-modules/Extensions/Themes/Grid.js +109 -81
- package/es-modules/Extensions/Themes/GridLight.js +83 -55
- package/es-modules/Extensions/Themes/HighContrastDark.js +192 -164
- package/es-modules/Extensions/Themes/HighContrastLight.js +49 -21
- package/es-modules/Extensions/Themes/SandSignika.js +115 -86
- package/es-modules/Extensions/Themes/Skies.js +102 -74
- package/es-modules/Extensions/Themes/Sunset.js +47 -19
- package/es-modules/Mixins/ColorSeries.js +0 -1
- package/es-modules/Mixins/MultipleLines.js +6 -0
- package/es-modules/Mixins/TreeSeries.js +1 -1
- package/es-modules/Series/Area/AreaSeries.js +2 -2
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +2 -2
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +279 -0
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +267 -0
- package/es-modules/Series/Bubble/BubbleLegendItem.js +472 -0
- package/es-modules/Series/Bubble/BubbleSeries.js +6 -2
- package/es-modules/Series/Column/ColumnDataLabel.js +109 -0
- package/es-modules/Series/Column/ColumnSeries.js +39 -26
- package/es-modules/Series/Column3D/Column3DComposition.js +5 -2
- package/es-modules/Series/Flags/FlagsSeries.js +8 -1
- package/es-modules/Series/Gantt/GanttSeries.js +3 -3
- package/es-modules/Series/Heatmap/HeatmapSeries.js +9 -5
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +60 -0
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +277 -0
- package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +83 -0
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +370 -0
- package/es-modules/Series/Line/LineSeries.js +12 -8
- package/es-modules/Series/Map/MapSeries.js +5 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +6 -5
- package/es-modules/Series/OHLC/OHLCPoint.js +11 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -1
- package/es-modules/Series/Pie/PieDataLabel.js +448 -0
- package/es-modules/Series/Pie/PiePoint.js +35 -34
- package/es-modules/Series/Pie/PieSeries.js +19 -16
- package/es-modules/Series/Polygon/PolygonSeries.js +3 -3
- package/es-modules/Series/Sankey/SankeySeries.js +9 -7
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +2 -2
- package/es-modules/Series/Sunburst/SunburstSeries.js +1 -14
- package/es-modules/Series/Timeline/TimelinePoint.js +6 -0
- package/es-modules/Series/Timeline/TimelineSeries.js +14 -17
- package/es-modules/Series/Treemap/TreemapSeries.js +3 -3
- package/es-modules/Series/Venn/VennSeries.js +4 -4
- package/es-modules/Series/Venn/VennUtils.js +10 -16
- package/es-modules/Series/Waterfall/WaterfallSeries.js +40 -35
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +1 -0
- package/es-modules/Series/XRange/XRangeSeries.js +4 -2
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +92 -75
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +20 -8
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +17 -4
- package/es-modules/Stock/StockToolsBindings.js +77 -38
- package/es-modules/Stock/StockToolsGui.js +28 -3
- 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 +11 -7
- package/es-modules/masters/highcharts.src.js +25 -9
- 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/ema.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/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 +6 -2
- 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 +8 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +10 -2
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +9 -4
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +6 -2
- package/es-modules/masters/modules/heikinashi.src.js +14 -0
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +14 -0
- 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 +10 -6
- 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 +8 -2
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +3 -2
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +5 -2
- package/es-modules/masters/themes/dark-blue.src.js +5 -2
- package/es-modules/masters/themes/dark-green.src.js +5 -2
- package/es-modules/masters/themes/dark-unica.src.js +5 -2
- package/es-modules/masters/themes/gray.src.js +5 -2
- package/es-modules/masters/themes/grid-light.src.js +5 -2
- package/es-modules/masters/themes/grid.src.js +5 -2
- package/es-modules/masters/themes/high-contrast-dark.src.js +5 -2
- package/es-modules/masters/themes/high-contrast-light.src.js +5 -2
- package/es-modules/masters/themes/sand-signika.src.js +5 -2
- package/es-modules/masters/themes/skies.src.js +5 -2
- package/es-modules/masters/themes/sunset.src.js +5 -2
- package/gfx/stock-icons/annotations-hidden.svg +1 -1
- package/gfx/stock-icons/annotations-visible.svg +2 -2
- package/gfx/stock-icons/arrow-bottom.svg +1 -1
- package/gfx/stock-icons/arrow-left.svg +1 -1
- package/gfx/stock-icons/arrow-line.svg +1 -1
- package/gfx/stock-icons/arrow-ray.svg +1 -1
- package/gfx/stock-icons/arrow-right.svg +1 -1
- package/gfx/stock-icons/arrow-segment.svg +1 -2
- package/gfx/stock-icons/circle.svg +1 -1
- package/gfx/stock-icons/close.svg +2 -2
- package/gfx/stock-icons/crooked-3.svg +1 -1
- package/gfx/stock-icons/crooked-5.svg +1 -1
- package/gfx/stock-icons/current-price-hide.svg +3 -3
- package/gfx/stock-icons/current-price-show.svg +2 -2
- package/gfx/stock-icons/destroy.svg +1 -1
- package/gfx/stock-icons/drawing.svg +18 -0
- package/gfx/stock-icons/edit.svg +1 -1
- package/gfx/stock-icons/elliott-3.svg +1 -1
- package/gfx/stock-icons/elliott-5.svg +1 -1
- package/gfx/stock-icons/ellipse.svg +11 -0
- package/gfx/stock-icons/fibonacci-timezone.svg +16 -0
- package/gfx/stock-icons/fibonacci.svg +1 -1
- package/gfx/stock-icons/flag-basic.svg +1 -1
- package/gfx/stock-icons/flag-diamond.svg +2 -2
- package/gfx/stock-icons/flag-elipse.svg +1 -1
- package/gfx/stock-icons/flag-trapeze.svg +2 -2
- package/gfx/stock-icons/fullscreen.svg +4 -4
- package/gfx/stock-icons/horizontal-line.svg +1 -1
- package/gfx/stock-icons/indicators.svg +3 -3
- package/gfx/stock-icons/label.svg +4 -4
- package/gfx/stock-icons/line.svg +1 -1
- package/gfx/stock-icons/linear.svg +11 -0
- package/gfx/stock-icons/logarithmic.svg +1 -0
- package/gfx/stock-icons/measure-x.svg +2 -2
- package/gfx/stock-icons/measure-xy.svg +1 -1
- package/gfx/stock-icons/measure-y.svg +1 -1
- package/gfx/stock-icons/panning.svg +17 -0
- package/gfx/stock-icons/parallel-channel.svg +1 -1
- package/gfx/stock-icons/pitchfork.svg +1 -1
- package/gfx/stock-icons/ray.svg +1 -1
- package/gfx/stock-icons/rectangle.svg +1 -1
- package/gfx/stock-icons/remove-annotations.svg +2 -2
- package/gfx/stock-icons/save-chart.svg +3 -3
- package/gfx/stock-icons/segment.svg +1 -1
- package/gfx/stock-icons/separator.svg +1 -1
- package/gfx/stock-icons/series-candlestick.svg +1 -1
- package/gfx/stock-icons/series-heikin-ashi.svg +1 -0
- package/gfx/stock-icons/series-hlc.svg +1 -0
- package/gfx/stock-icons/series-hollow-candlestick.svg +1 -0
- package/gfx/stock-icons/series-line.svg +1 -1
- package/gfx/stock-icons/series-ohlc.svg +4 -4
- package/gfx/stock-icons/time-cycles.svg +35 -0
- package/gfx/stock-icons/vertical-arrow.svg +1 -1
- package/gfx/stock-icons/vertical-counter.svg +1 -1
- package/gfx/stock-icons/vertical-double-arrow.svg +1 -1
- package/gfx/stock-icons/vertical-label.svg +3 -3
- package/gfx/stock-icons/vertical-line.svg +1 -1
- package/gfx/stock-icons/zoom-x.svg +2 -2
- package/gfx/stock-icons/zoom-xy.svg +2 -2
- package/gfx/stock-icons/zoom-y.svg +2 -2
- package/highcharts-3d.js +24 -24
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +6 -3
- package/highcharts-gantt.js +800 -792
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +16535 -15918
- package/highcharts-more.d.ts +73 -1
- package/highcharts-more.js +193 -192
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +73 -1
- package/highcharts-more.src.js +8044 -7839
- package/highcharts.d.ts +3850 -177
- package/highcharts.js +589 -581
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +3850 -177
- package/highcharts.src.js +16635 -16060
- package/highmaps.js +708 -698
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +17419 -16521
- package/highstock.js +782 -769
- package/highstock.js.map +1 -1
- package/highstock.src.js +28867 -27975
- package/indicators/acceleration-bands.js +9 -9
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +7 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +1 -1
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +9 -9
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +7 -1
- package/indicators/aroon.js +9 -9
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +7 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +9 -9
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +7 -1
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.js +11 -11
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +7 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +203 -200
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +206 -104
- package/indicators/indicators.js +12 -11
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +108 -90
- package/indicators/keltner-channels.js +9 -9
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +7 -1
- package/indicators/klinger.js +13 -13
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +7 -1
- package/indicators/macd.js +1 -1
- package/indicators/macd.src.js +1 -1
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.src.js +1 -1
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +9 -9
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +7 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.js +1 -1
- package/indicators/slow-stochastic.src.js +1 -1
- package/indicators/stochastic.js +10 -10
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +7 -1
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +23 -10
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +17 -15
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +71 -6
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +203 -202
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +89 -49
- package/modules/annotations-advanced.js +164 -163
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +162 -87
- package/modules/annotations.js +111 -111
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +162 -87
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +2 -2
- package/modules/boost.js +52 -52
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +15 -7
- package/modules/broken-axis.js +13 -13
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +34 -15
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +24 -22
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +954 -774
- package/modules/current-date-indicator.js +2 -2
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +2 -2
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +33 -32
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +182 -134
- package/modules/datagrouping.d.ts +5 -0
- package/modules/datagrouping.js +20 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +5 -0
- package/modules/datagrouping.src.js +270 -228
- package/modules/debugger.js +3 -3
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +3 -3
- package/modules/dependency-wheel.js +1 -1
- package/modules/dependency-wheel.src.js +1 -1
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +34 -34
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +14 -5
- package/modules/drilldown.d.ts +27 -0
- package/modules/drilldown.js +18 -18
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +27 -0
- package/modules/drilldown.src.js +42 -16
- package/modules/dumbbell.js +1 -1
- package/modules/dumbbell.src.js +1 -1
- package/modules/export-data.js +20 -20
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +8 -5
- package/modules/exporting.d.ts +29 -0
- package/modules/exporting.js +38 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.d.ts +29 -0
- package/modules/exporting.src.js +1937 -1614
- package/modules/full-screen.js +2 -2
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +8 -6
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +218 -217
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +74 -32
- package/modules/grid-axis.js +23 -22
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +9 -4
- package/modules/heatmap.js +39 -37
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +963 -779
- package/modules/heikinashi.js +17 -0
- package/modules/heikinashi.js.map +1 -0
- package/modules/heikinashi.src.js +394 -0
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.js +18 -0
- package/modules/hollowcandlestick.js.map +1 -0
- package/modules/hollowcandlestick.src.js +504 -0
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +1 -1
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +9 -0
- package/modules/map.js +122 -119
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +9 -0
- package/modules/map.src.js +1655 -1332
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.src.js +1 -1
- package/modules/networkgraph.js +1 -1
- package/modules/networkgraph.src.js +1 -1
- package/modules/no-data-to-display.js +3 -3
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +2 -2
- package/modules/offline-exporting.js +18 -16
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +623 -562
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +2 -2
- package/modules/oldie.src.js +2 -2
- package/modules/organization.js +1 -1
- package/modules/organization.src.js +1 -1
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.js +14 -14
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +24 -12
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.js +28 -28
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +11 -11
- package/modules/series-label.js +1 -1
- package/modules/series-label.src.js +1 -1
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +3 -3
- package/modules/sonification.js +1 -1
- package/modules/sonification.src.js +1 -1
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +159 -157
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +253 -123
- package/modules/stock.d.ts +5 -0
- package/modules/stock.js +196 -191
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +5 -0
- package/modules/stock.src.js +7749 -7432
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +5 -5
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +6 -19
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +18 -17
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +21 -24
- package/modules/treegrid.js +57 -57
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +43 -19
- package/modules/treemap.js +5 -5
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +5 -5
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +1 -1
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +1 -1
- package/modules/venn.js +31 -30
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +508 -424
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +1 -1
- package/modules/wordcloud.js +4 -4
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +2 -1
- package/modules/xrange.js +17 -17
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +7 -4
- package/package.json +1 -1
- package/themes/avocado.d.ts +6 -1
- package/themes/avocado.js +3 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.d.ts +6 -1
- package/themes/avocado.src.js +53 -22
- package/themes/dark-blue.d.ts +6 -1
- package/themes/dark-blue.js +3 -3
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.d.ts +6 -1
- package/themes/dark-blue.src.js +231 -205
- package/themes/dark-green.d.ts +6 -1
- package/themes/dark-green.js +4 -4
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.d.ts +6 -1
- package/themes/dark-green.src.js +236 -205
- package/themes/dark-unica.d.ts +6 -1
- package/themes/dark-unica.js +7 -7
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.d.ts +6 -1
- package/themes/dark-unica.src.js +206 -174
- package/themes/gray.d.ts +6 -1
- package/themes/gray.js +3 -3
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.d.ts +6 -1
- package/themes/gray.src.js +233 -207
- package/themes/grid-light.d.ts +6 -1
- package/themes/grid-light.js +4 -4
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.d.ts +6 -1
- package/themes/grid-light.src.js +88 -57
- package/themes/grid.d.ts +6 -1
- package/themes/grid.js +3 -3
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.d.ts +6 -1
- package/themes/grid.src.js +114 -83
- package/themes/high-contrast-dark.js +5 -4
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +197 -166
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.js +54 -23
- package/themes/sand-signika.d.ts +6 -1
- package/themes/sand-signika.js +5 -5
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.d.ts +6 -1
- package/themes/sand-signika.src.js +119 -88
- package/themes/skies.d.ts +6 -1
- package/themes/skies.js +5 -5
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.d.ts +6 -1
- package/themes/skies.src.js +107 -76
- package/themes/sunset.d.ts +6 -1
- package/themes/sunset.js +3 -3
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.d.ts +6 -1
- package/themes/sunset.src.js +52 -21
- package/es-modules/Core/Axis/ColorAxis.js +0 -1164
- package/es-modules/Core/Axis/HiddenAxis.js +0 -46
- package/es-modules/Core/Axis/PlotLineOrBand.js +0 -1051
- package/es-modules/Core/Series/DataLabels.js +0 -1173
- package/es-modules/Extensions/Exporting.js +0 -2024
- package/es-modules/Extensions/OfflineExporting.js +0 -621
- package/es-modules/Mixins/Geometry.js +0 -56
- package/es-modules/Mixins/GeometryCircles.js +0 -320
- package/es-modules/Series/Bubble/BubbleLegend.js +0 -893
package/modules/gantt.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highcharts Gantt JS v9.
|
|
2
|
+
Highcharts Gantt JS v9.2.2 (2021-08-24)
|
|
3
3
|
|
|
4
4
|
Gantt series
|
|
5
5
|
|
|
@@ -7,220 +7,221 @@
|
|
|
7
7
|
|
|
8
8
|
License: www.highcharts.com/license
|
|
9
9
|
*/
|
|
10
|
-
'use strict';(function(
|
|
11
|
-
function(
|
|
12
|
-
|
|
13
|
-
arguments);this.y||(this.y=0);return this};
|
|
14
|
-
{tooltipDateKeys:["x","x2"]});return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
2:
|
|
21
|
-
g.shapeType,
|
|
22
|
-
|
|
23
|
-
this,a
|
|
24
|
-
dataLabels:{formatter:function(){var
|
|
25
|
-
getExtremesFromAll:!0,autoIncrement:
|
|
26
|
-
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
this.brokenAxis;g=g&&g.breakArray;if(!g||!
|
|
34
|
-
function(
|
|
35
|
-
a,
|
|
36
|
-
g.push({value:
|
|
37
|
-
|
|
38
|
-
a.forEach(function(a){a=f[a];if(
|
|
39
|
-
0)-1));return
|
|
40
|
-
|
|
41
|
-
scrollbar:{enabled:!1}});delete
|
|
42
|
-
[1])[0]-1)*(this.side===a.Side.top||this.side===a.Side.left?-1:1);"M"===
|
|
43
|
-
"stroke-width":
|
|
44
|
-
"show":"hide"](!0)}}(f&&f.columns||[]).forEach(function(f){f.render()})
|
|
45
|
-
this.tickPositions.info,a=this.options,
|
|
46
|
-
a.grid:{};if(!0===
|
|
47
|
-
f);"xAxis"===this.coll&&(
|
|
48
|
-
this.tickInterval=
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
2]="bottom";f[f.left=3]="left"})(a.Side||(a.Side={}));a.compose=function(a,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
6048E5)).toString()};"";return
|
|
58
|
-
var
|
|
59
|
-
[
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
g.descendants&&(e=e.treeGrid.isCollapsed(g),
|
|
63
|
-
|
|
64
|
-
function(a){this.treeGrid.expand(a)},
|
|
65
|
-
e.setBreaks(
|
|
66
|
-
l=h.parentColor,
|
|
67
|
-
null;if(
|
|
68
|
-
a=b
|
|
69
|
-
updateRootId:function(
|
|
70
|
-
(function(
|
|
71
|
-
function(f){return f.name===g},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
(a.options.data||[]).map(function(
|
|
75
|
-
this.treeGrid.mapOfPosToGridNode){var f=this.treeGrid.mapOfPosToGridNode[
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
function(a){var
|
|
82
|
-
width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(
|
|
83
|
-
"getLabelText",function(
|
|
84
|
-
|
|
85
|
-
1<=Math.abs(
|
|
86
|
-
|
|
87
|
-
0,xMax:(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
a=
|
|
91
|
-
"stroke-width":
|
|
92
|
-
this.toPoint.getPathfinderAnchorPoint(
|
|
93
|
-
(l.stroke=
|
|
94
|
-
e(
|
|
95
|
-
{x:(b.xMin+b.xMax)/2,y:(b.yMin+b.yMax)/2});return Math.atan2(
|
|
96
|
-
e*Math.sin(d)}}});return
|
|
97
|
-
d[
|
|
98
|
-
c,a);
|
|
99
|
-
|
|
100
|
-
"Min"]<=
|
|
101
|
-
"yMin"]+(
|
|
102
|
-
"yMin"]+(
|
|
103
|
-
H.
|
|
104
|
-
[
|
|
105
|
-
0,
|
|
106
|
-
b)
|
|
107
|
-
verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var
|
|
108
|
-
|
|
109
|
-
e[
|
|
110
|
-
|
|
111
|
-
f.xMin});
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return
|
|
115
|
-
a){function c(){this.constructor=b}d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),
|
|
116
|
-
if(a.options.milestone)if(
|
|
117
|
-
b.height||0;a.shapeArgs={x:(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
d.prototype,new
|
|
121
|
-
opposite:!0,linkedTo:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
b=[[a[b[0]].element,
|
|
130
|
-
|
|
131
|
-
this.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
f.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
d)&&(this.
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
b)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
a,.5],["L",a,e+.5],["L",-a-1,e+.5],["L",-a-1,.5],["M",-b,4],["L",-b,e-3],["M",b-1,4],["L",
|
|
191
|
-
b,
|
|
192
|
-
|
|
193
|
-
g,g]
|
|
194
|
-
|
|
195
|
-
a.handles[c].attr({fill:f.backgroundColor,stroke:f.borderColor,"stroke-width":f.lineWidth}).css(h)}})};
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
(
|
|
199
|
-
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
(a.
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
d.
|
|
212
|
-
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&&
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
function(){
|
|
218
|
-
m+b}g&&(n=d+h,e||(m=Math.max(c,n-b,a.getBaseSeriesMin(k&&k.xData?k.xData[0]:-Number.MAX_VALUE))));l&&(e||g)&&
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
this[
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
10
|
+
'use strict';(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/gantt",["highcharts"],function(G){b(G);b.Highcharts=G;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function G(b,p,v,u){b.hasOwnProperty(p)||(b[p]=u.apply(null,v))}b=b?b._modules:{};G(b,"Series/XRange/XRangePoint.js",[b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],
|
|
11
|
+
function(b,p,v){var u=this&&this.__extends||function(){var b=function(m,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var e in d)d.hasOwnProperty(e)&&(h[e]=d[e])};return b(m,h)};return function(m,h){function y(){this.constructor=m}b(m,h);m.prototype=null===h?Object.create(h):(y.prototype=h.prototype,new y)}}();v=v.extend;p=function(p){function m(){var h=null!==p&&p.apply(this,arguments)||this;h.options=void 0;h.series=void 0;return h}u(m,
|
|
12
|
+
p);m.getColorByCategory=function(h,m){var d=h.options.colors||h.chart.options.colors;h=m.y%(d?d.length:h.chart.options.chart.colorCount);return{colorIndex:h,color:d&&d[h]}};m.prototype.resolveColor=function(){var h=this.series;if(h.options.colorByPoint&&!this.options.color){var b=m.getColorByCategory(h,this);h.chart.styledMode||(this.color=b.color);this.options.colorIndex||(this.colorIndex=b.colorIndex)}else this.color||(this.color=h.color)};m.prototype.init=function(){b.prototype.init.apply(this,
|
|
13
|
+
arguments);this.y||(this.y=0);return this};m.prototype.setState=function(){b.prototype.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};m.prototype.getLabelConfig=function(){var h=b.prototype.getLabelConfig.call(this),m=this.series.yAxis.categories;h.x2=this.x2;h.yCategory=this.yCategory=m&&m[this.y];return h};m.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return m}(p.seriesTypes.column.prototype.pointClass);v(p.prototype,
|
|
14
|
+
{tooltipDateKeys:["x","x2"]});return p});G(b,"Series/XRange/XRangeComposition.js",[b["Core/Axis/Axis.js"],b["Core/Utilities.js"]],function(b,p){var v=p.addEvent,u=p.pick;v(b,"afterGetSeriesExtremes",function(){var b=this.series,m;if(this.isXAxis){var h=u(this.dataMax,-Number.MAX_VALUE);b.forEach(function(b){b.x2Data&&b.x2Data.forEach(function(d){d>h&&(h=d,m=!0)})});m&&(this.dataMax=h)}})});G(b,"Series/XRange/XRangeSeries.js",[b["Core/Globals.js"],b["Core/Color/Color.js"],b["Core/Series/SeriesRegistry.js"],
|
|
15
|
+
b["Core/Utilities.js"],b["Series/XRange/XRangePoint.js"]],function(b,p,v,u,z){var m=this&&this.__extends||function(){var a=function(c,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var c in g)g.hasOwnProperty(c)&&(a[c]=g[c])};return a(c,g)};return function(c,g){function F(){this.constructor=c}a(c,g);c.prototype=null===g?Object.create(g):(F.prototype=g.prototype,new F)}}(),h=p.parse,y=v.series,d=v.seriesTypes.column,e=d.prototype,l=u.clamp,
|
|
16
|
+
q=u.correctFloat,C=u.defined;p=u.extend;var J=u.find,E=u.isNumber,a=u.isObject,c=u.merge,n=u.pick;u=function(I){function H(){var a=null!==I&&I.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(H,I);H.prototype.init=function(){d.prototype.init.apply(this,arguments);this.options.stacking=void 0};H.prototype.getColumnMetrics=function(){function a(){c.series.forEach(function(a){var g=a.xAxis;a.xAxis=a.yAxis;a.yAxis=g})}var c=this.chart;a();var n=e.getColumnMetrics.call(this);
|
|
17
|
+
a();return n};H.prototype.cropData=function(a,c,n,d){c=y.prototype.cropData.call(this,this.x2Data,c,n,d);c.xData=a.slice(c.start,c.end);return c};H.prototype.findPointIndex=function(a){var g=this.cropped,c=this.cropStart,n=this.points,d=a.id;if(d)var l=(l=J(n,function(a){return a.id===d}))?l.index:void 0;"undefined"===typeof l&&(l=(l=J(n,function(g){return g.x===a.x&&g.x2===a.x2&&!g.touched}))?l.index:void 0);g&&E(l)&&E(c)&&l>=c&&(l-=c);return l};H.prototype.translatePoint=function(g){var F=this.xAxis,
|
|
18
|
+
d=this.yAxis,q=this.columnMetrics,D=this.options,h=D.minPointLength||0,x=(g.shapeArgs&&g.shapeArgs.width||0)/2,e=this.pointXOffset=q.offset,A=g.plotX,k=n(g.x2,g.x+(g.len||0)),w=F.translate(k,0,0,0,1);k=Math.abs(w-A);var t=this.chart.inverted,f=n(D.borderWidth,1)%2/2,r=q.offset,B=Math.round(q.width);h&&(h-=k,0>h&&(h=0),A-=h/2,w+=h/2);A=Math.max(A,-10);w=l(w,-10,F.len+10);C(g.options.pointWidth)&&(r-=(Math.ceil(g.options.pointWidth)-B)/2,B=Math.ceil(g.options.pointWidth));D.pointPlacement&&E(g.plotY)&&
|
|
19
|
+
d.categories&&(g.plotY=d.translate(g.y,0,1,0,1,D.pointPlacement));D=Math.floor(Math.min(A,w))+f;D={x:D,y:Math.floor(g.plotY+r)+f,width:Math.floor(Math.max(A,w))+f-D,height:B,r:this.options.borderRadius};g.shapeArgs=D;t?g.tooltipPos[1]+=e+x:g.tooltipPos[0]-=x+e-D.width/2;x=D.x;e=x+D.width;0>x||e>F.len?(x=l(x,0,F.len),e=l(e,0,F.len),w=e-x,g.dlBox=c(D,{x:x,width:e-x,centerX:w?w/2:null})):g.dlBox=null;x=g.tooltipPos;e=t?1:0;w=t?0:1;q=this.columnMetrics?this.columnMetrics.offset:-q.width/2;x[e]=t?x[e]+
|
|
20
|
+
D.width/2:x[e]+(F.reversed?-1:0)*D.width;x[w]=l(x[w]+(t?-1:1)*q,0,d.len-1);if(d=g.partialFill)a(d)&&(d=d.amount),E(d)||(d=0),g.partShapeArgs=c(D,{r:this.options.borderRadius}),A=Math.max(Math.round(k*d+g.plotX-A),0),g.clipRectArgs={x:F.reversed?D.x+k-A:D.x,y:D.y,width:A,height:D.height}};H.prototype.translate=function(){e.translate.apply(this,arguments);this.points.forEach(function(a){this.translatePoint(a)},this)};H.prototype.drawPoint=function(g,F){var d=this.options,l=this.chart.renderer,D=g.graphic,
|
|
21
|
+
e=g.shapeType,q=g.shapeArgs,E=g.partShapeArgs,A=g.clipRectArgs,k=g.partialFill,w=d.stacking&&!d.borderRadius,t=g.state,f=d.states[t||"normal"]||{},r="undefined"===typeof t?"attr":F;t=this.pointAttribs(g,t);f=n(this.chart.options.chart.animation,f.animation);if(g.isNull||!1===g.visible)D&&(g.graphic=D.destroy());else{if(D)D.rect[F](q);else g.graphic=D=l.g("point").addClass(g.getClassName()).add(g.group||this.group),D.rect=l[e](c(q)).addClass(g.getClassName()).addClass("highcharts-partfill-original").add(D);
|
|
22
|
+
E&&(D.partRect?(D.partRect[F](c(E)),D.partialClipRect[F](c(A))):(D.partialClipRect=l.clipRect(A.x,A.y,A.width,A.height),D.partRect=l[e](E).addClass("highcharts-partfill-overlay").add(D).clip(D.partialClipRect)));this.chart.styledMode||(D.rect[F](t,f).shadow(d.shadow,null,w),E&&(a(k)||(k={}),a(d.partialFill)&&(k=c(d.partialFill,k)),g=k.fill||h(t.fill).brighten(-.3).get()||h(g.color||this.color).brighten(-.3).get(),t.fill=g,D.partRect[r](t,f).shadow(d.shadow,null,w)))}};H.prototype.drawPoints=function(){var a=
|
|
23
|
+
this,c=a.getAnimationVerb();a.points.forEach(function(g){a.drawPoint(g,c)})};H.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};H.prototype.isPointInside=function(a){var g=a.shapeArgs,c=a.plotX,d=a.plotY;return g?"undefined"!==typeof c&&"undefined"!==typeof d&&0<=d&&d<=this.yAxis.len&&0<=(g.x||0)+(g.width||0)&&c<=this.xAxis.len:I.prototype.isPointInside.apply(this,arguments)};H.defaultOptions=c(d.defaultOptions,{colorByPoint:!0,
|
|
24
|
+
dataLabels:{formatter:function(){var g=this.point.partialFill;a(g)&&(g=g.amount);if(E(g)&&0<g)return q(100*g)+"%"},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 H}(d);p(u.prototype,{type:"xrange",parallelArrays:["x","x2","y"],requireSorting:!1,animate:y.prototype.animate,cropShoulder:1,
|
|
25
|
+
getExtremesFromAll:!0,autoIncrement:b.noop,buildKDTree:b.noop,pointClass:z});v.registerSeriesType("xrange",u);"";return u});G(b,"Series/Gantt/GanttPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,p){var v=this&&this.__extends||function(){var b=function(m,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var e in d)d.hasOwnProperty(e)&&(h[e]=d[e])};return b(m,h)};return function(m,h){function y(){this.constructor=
|
|
26
|
+
m}b(m,h);m.prototype=null===h?Object.create(h):(y.prototype=h.prototype,new y)}}(),u=p.pick;return function(b){function m(){var h=null!==b&&b.apply(this,arguments)||this;h.options=void 0;h.series=void 0;return h}v(m,b);m.setGanttPointAliases=function(h){function b(d,e){"undefined"!==typeof e&&(h[d]=e)}b("x",u(h.start,h.x));b("x2",u(h.end,h.x2));b("partialFill",u(h.completed,h.partialFill))};m.prototype.applyOptions=function(h,y){h=b.prototype.applyOptions.call(this,h,y);m.setGanttPointAliases(h);
|
|
27
|
+
return h};m.prototype.isValid=function(){return("number"===typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return m}(b.seriesTypes.xrange.prototype.pointClass)});G(b,"Core/Axis/BrokenAxis.js",[b["Extensions/Stacking.js"],b["Core/Utilities.js"]],function(b,p){var v=p.addEvent,u=p.find,z=p.fireEvent,m=p.isArray,h=p.isNumber,y=p.pick,d;(function(d){function l(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,
|
|
28
|
+
!1)}function q(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function e(){var a=this.brokenAxis;if(a&&a.hasBreaks){for(var c=this.tickPositions,d=this.tickPositions.info,n=[],l=0;l<c.length;l++)a.isInAnyBreak(c[l])||n.push(c[l]);this.tickPositions=n;this.tickPositions.info=d}}function J(){this.brokenAxis||(this.brokenAxis=new H(this))}function E(){var a=this.options.connectNulls,c=this.points,d=this.xAxis,n=this.yAxis;if(this.isDirty)for(var l=c.length;l--;){var e=c[l],q=
|
|
29
|
+
!(null===e.y&&!1===a)&&(d&&d.brokenAxis&&d.brokenAxis.isInAnyBreak(e.x,!0)||n&&n.brokenAxis&&n.brokenAxis.isInAnyBreak(e.y,!0));e.visible=q?!1:!1!==e.options.visible}}function a(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,y(this.pointArrayMap,["y"]))}function c(a,c){var g=this,d=g.points,n,F,l,e;if(a&&a.brokenAxis&&a.brokenAxis.hasBreaks){var A=a.brokenAxis;c.forEach(function(k){n=A&&A.breakArray||[];F=a.isXAxis?a.min:y(g.options.threshold,a.min);d.forEach(function(c){e=y(c["stack"+
|
|
30
|
+
k.toUpperCase()],c[k]);n.forEach(function(k){if(h(F)&&h(e)){l=!1;if(F<k.from&&e>k.to||F>k.from&&e<k.from)l="pointBreak";else if(F<k.from&&e>k.from&&e<k.to||F>k.from&&e>k.to&&e<k.from)l="pointInBreak";l&&z(a,l,{point:c,brk:k})}})})})}}function n(){var a=this.currentDataGrouping,c=a&&a.gapSize;a=this.points.slice();var d=this.yAxis,n=this.options.gapSize,l=a.length-1,e;if(n&&0<l)for("value"!==this.options.gapUnit&&(n*=this.basePointRange),c&&c>n&&c>=this.basePointRange&&(n=c),e=void 0;l--;)e&&!1!==
|
|
31
|
+
e.visible||(e=a[l+1]),c=a[l],!1!==e.visible&&!1!==c.visible&&(e.x-c.x>n&&(e=(c.x+e.x)/2,a.splice(l+1,0,{isNull:!0,x:e}),d.stacking&&this.options.stacking&&(e=d.stacking.stacks[this.stackKey][e]=new b(d,d.options.stackLabels,!1,e,this.stack),e.total=0)),e=c);return this.getGraphPath(a)}var I=[];d.compose=function(g,d){-1===I.indexOf(g)&&(I.push(g),g.keepProps.push("brokenAxis"),v(g,"init",J),v(g,"afterInit",l),v(g,"afterSetTickPositions",e),v(g,"afterSetOptions",q));if(-1===I.indexOf(d)){I.push(d);
|
|
32
|
+
var F=d.prototype;F.drawBreaks=c;F.gappedPath=n;v(d,"afterGeneratePoints",E);v(d,"afterRender",a)}return g};var H=function(){function a(a){this.hasBreaks=!1;this.axis=a}a.isInBreak=function(a,c){var g=a.repeat||Infinity,d=a.from,n=a.to-a.from;c=c>=d?(c-d)%g:g-(d-c)%g;return a.inclusive?c<=n:c<n&&0!==c};a.lin2Val=function(c){var g=this.brokenAxis;g=g&&g.breakArray;if(!g||!h(c))return c;var d;for(d=0;d<g.length;d++){var n=g[d];if(n.from>=c)break;else n.to<c?c+=n.len:a.isInBreak(n,c)&&(c+=n.len)}return c};
|
|
33
|
+
a.val2Lin=function(c){var g=this.brokenAxis;g=g&&g.breakArray;if(!g||!h(c))return c;var d=c,n;for(n=0;n<g.length;n++){var l=g[n];if(l.to<=c)d-=l.len;else if(l.from>=c)break;else if(a.isInBreak(l,c)){d-=c-l.from;break}}return d};a.prototype.findBreakAt=function(a,c){return u(c,function(c){return c.from<a&&a<c.to})};a.prototype.isInAnyBreak=function(c,g){var d=this.axis,n=d.options.breaks||[],l=n.length,e;if(l&&h(c)){for(;l--;)if(a.isInBreak(n[l],c)){var q=!0;e||(e=y(n[l].showPoints,!d.isXAxis))}var A=
|
|
34
|
+
q&&g?q&&!e:q}return A};a.prototype.setBreaks=function(c,g){var d=this,n=d.axis,l=m(c)&&!!c.length;n.isDirty=d.hasBreaks!==l;d.hasBreaks=l;n.options.breaks=n.userOptions.breaks=c;n.forceRedraw=!0;n.series.forEach(function(a){a.isDirty=!0});l||n.val2lin!==a.val2Lin||(delete n.val2lin,delete n.lin2val);l&&(n.userOptions.ordinal=!1,n.lin2val=a.lin2Val,n.val2lin=a.val2Lin,n.setExtremes=function(a,c,g,k,w){if(d.hasBreaks){for(var t=this.options.breaks||[],f;f=d.findBreakAt(a,t);)a=f.to;for(;f=d.findBreakAt(c,
|
|
35
|
+
t);)c=f.from;c<a&&(c=a)}n.constructor.prototype.setExtremes.call(this,a,c,g,k,w)},n.setAxisTranslation=function(){n.constructor.prototype.setAxisTranslation.call(this);d.unitLength=void 0;if(d.hasBreaks){var c=n.options.breaks||[],g=[],l=[],k=y(n.pointRangePadding,0),w=0,t,f=n.userMin||n.min,r=n.userMax||n.max,B;c.forEach(function(k){t=k.repeat||Infinity;h(f)&&h(r)&&(a.isInBreak(k,f)&&(f+=k.to%t-f%t),a.isInBreak(k,r)&&(r-=r%t-k.from%t))});c.forEach(function(a){N=a.from;t=a.repeat||Infinity;if(h(f)&&
|
|
36
|
+
h(r)){for(;N-t>f;)N-=t;for(;N<f;)N+=t;for(B=N;B<r;B+=t)g.push({value:B,move:"in"}),g.push({value:B+a.to-a.from,move:"out",size:a.breakSize})}});g.sort(function(f,a){return f.value===a.value?("in"===f.move?0:1)-("in"===a.move?0:1):f.value-a.value});var K=0;var N=f;g.forEach(function(f){K+="in"===f.move?1:-1;1===K&&"in"===f.move&&(N=f.value);0===K&&h(N)&&(l.push({from:N,to:f.value,len:f.value-N-(f.size||0)}),w+=f.value-N-(f.size||0))});d.breakArray=l;h(f)&&h(r)&&h(n.min)&&(d.unitLength=r-f-w+k,z(n,
|
|
37
|
+
"afterBreaks"),n.staticScale?n.transA=n.staticScale:d.unitLength&&(n.transA*=(r-n.min+k)/d.unitLength),k&&(n.minPixelPadding=n.transA*(n.minPointOffset||0)),n.min=f,n.max=r)}});y(g,!0)&&n.chart.redraw()};return a}();d.Additions=H})(d||(d={}));return d});G(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,p,v,u){var z=v.dateFormats,m=u.addEvent,h=u.defined,y=u.erase,d=u.find,e=u.isArray,l=u.isNumber,q=u.merge,C=
|
|
38
|
+
u.pick,J=u.timeUnits,E=u.wrap,a;(function(a){function c(f,a){var k={width:0,height:0};a.forEach(function(a){a=f[a];if(u.isObject(a,!0)){var r=u.isObject(a.label,!0)?a.label:{};a=r.getBBox?r.getBBox().height:0;r.textStr&&!l(r.textPxLength)&&(r.textPxLength=r.getBBox().width);var c=l(r.textPxLength)?Math.round(r.textPxLength):0;r.textStr&&(c=Math.round(r.getBBox().width));k.height=Math.max(a,k.height);k.width=Math.max(c,k.width)}});"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&
|
|
39
|
+
(k.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||0)-1));return k}function I(){var f=this.grid;(f&&f.columns||[]).forEach(function(f){f.getOffset()})}function H(f){if(!0===(this.options.grid||{}).enabled){var k=this.axisTitle,r=this.height,c=this.horiz,K=this.left,t=this.offset,B=this.opposite,g=this.options,n=this.top,d=this.width,w=this.tickSize(),l=k&&k.getBBox().width,e=g.title.x,A=g.title.y,q=C(g.title.margin,c?5:10);k=this.chart.renderer.fontMetrics(g.title.style.fontSize,
|
|
40
|
+
k).f;w=(c?n+r:K)+(c?1:-1)*(B?-1:1)*(w?w[0]/2:0)+(this.side===a.Side.bottom?k:0);f.titlePosition.x=c?K-(l||0)/2-q+e:w+(B?d:0)+t+e;f.titlePosition.y=c?w-(B?r:0)+(B?k:-k)/2+t+A:n-q+A}}function g(){var f=this.chart,a=this.options.grid;a=void 0===a?{}:a;var k=this.userOptions;if(a.enabled){var r=this.options;r.labels.align=C(r.labels.align,"center");this.categories||(r.showLastLabel=!1);this.labelRotation=0;r.labels.rotation=0}if(a.columns){r=this.grid.columns=[];for(var c=this.grid.columnIndex=0;++c<
|
|
41
|
+
a.columns.length;){var t=q(k,a.columns[a.columns.length-c-1],{linkedTo:0,type:"category",scrollbar:{enabled:!1}});delete t.grid.columns;t=new b(this.chart,t);t.grid.isColumn=!0;t.grid.columnIndex=c;y(f.axes,t);y(f[this.coll],t);r.push(t)}}}function F(){var f=this.grid,k=this.options;if(!0===(k.grid||{}).enabled){var r=this.min||0,c=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&
|
|
42
|
+
this.axisLine){var t=k.lineWidth;if(t){t=this.getLinePath(t);var B=t[0],g=t[1],n=((this.tickSize("tick")||[1])[0]-1)*(this.side===a.Side.top||this.side===a.Side.left?-1:1);"M"===B[0]&&"L"===g[0]&&(this.horiz?(B[2]+=n,g[2]+=n):(B[1]+=n,g[1]+=n));!this.horiz&&this.chart.marginRight&&(B=[B,["L",this.left,B[2]||0]],n=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(c+this.tickmarkOffset)],g=[["M",g[1]||0,this.toPixels(c+this.tickmarkOffset)],n],this.grid.upperBorder||0===r%1||(this.grid.upperBorder=
|
|
43
|
+
this.grid.renderBorder(B)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:k.lineColor,"stroke-width":k.lineWidth}),this.grid.upperBorder.animate({d:B})),this.grid.lowerBorder||0===c%1||(this.grid.lowerBorder=this.grid.renderBorder(g)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:k.lineColor,"stroke-width":k.lineWidth}),this.grid.lowerBorder.animate({d:g})));this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:k.lineColor,"stroke-width":k.lineWidth}),this.grid.axisLineExtra.animate({d:t})):
|
|
44
|
+
this.grid.axisLineExtra=this.grid.renderBorder(t);this.axisLine[this.showAxis?"show":"hide"](!0)}}(f&&f.columns||[]).forEach(function(f){f.render()});if(!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)){f=this.tickmarkOffset;k=this.tickPositions[this.tickPositions.length-1];t=this.tickPositions[0];for(g=void 0;(g=this.hiddenLabels.pop())&&g.element;)g.show();(g=this.ticks[t].label)&&(r-t>f?this.hiddenLabels.push(g.hide()):g.show());(g=this.ticks[k].label)&&
|
|
45
|
+
(k-c>f?this.hiddenLabels.push(g.hide()):g.show());(r=this.ticks[k].mark)&&(k-c<f&&0<k-c&&this.ticks[k].isLast?r.hide():this.ticks[k-1]&&r.show())}}}function P(){var f=this.tickPositions&&this.tickPositions.info,a=this.options,k=this.userOptions.labels||{};(a.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(f){f.options.pointRange=0}),f&&a.dateTimeLabelFormats&&a.labels&&!h(k.align)&&(!1===a.dateTimeLabelFormats[f.unitName].range||1<f.count)&&(a.labels.align="left",h(k.x)||(a.labels.x=
|
|
46
|
+
3))):"treegrid"!==this.options.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function z(f){var a=this.options;f=f.userOptions;var k=a&&u.isObject(a.grid,!0)?a.grid:{};if(!0===k.enabled){var r=q(!0,{className:"highcharts-grid-axis "+(f.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,
|
|
47
|
+
title:{text:null,reserveSpace:!1,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},f);"xAxis"===this.coll&&(h(f.linkedTo)&&!h(f.tickPixelInterval)&&(r.tickPixelInterval=350),h(f.tickPixelInterval)||!h(f.linkedTo)||h(f.tickPositioner)||h(f.tickInterval)||(r.tickPositioner=function(f,a){var k=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(k){for(var c=
|
|
48
|
+
r.units||[],t=void 0,g=void 0,B=void 0,K=0;K<c.length;K++)if(c[K][0]===k.unitName){t=K;break}c[t+1]?(B=c[t+1][0],g=(c[t+1][1]||[1])[0]):"year"===k.unitName&&(B="year",g=10*k.count);k=J[B];this.tickInterval=k*g;return this.getTimeTicks({unitRange:k,count:g,unitName:B},f,a,this.options.startOfWeek)}}));q(!0,this.options,r);this.horiz&&(a.minPadding=C(f.minPadding,0),a.maxPadding=C(f.maxPadding,0));l(a.grid.borderWidth)&&(a.tickWidth=a.lineWidth=k.borderWidth)}}function D(f){f=(f=f.userOptions)&&f.grid||
|
|
49
|
+
{};var a=f.columns;f.enabled&&a&&q(!0,this.options,a[a.length-1])}function M(){(this.grid.columns||[]).forEach(function(f){f.setScale()})}function x(f){var a=p.defaultLeftAxisOptions,k=this.horiz,r=this.maxLabelDimensions,c=this.options.grid;c=void 0===c?{}:c;c.enabled&&r&&(a=2*Math.abs(a.labels.x),k=k?c.cellHeight||a+r.height:a+r.width,e(f.tickSize)?f.tickSize[0]=k:f.tickSize=[k,0])}function O(){this.axes.forEach(function(f){(f.grid&&f.grid.columns||[]).forEach(function(f){f.setAxisSize();f.setAxisTranslation()})})}
|
|
50
|
+
function A(f){var a=this.grid;(a.columns||[]).forEach(function(a){a.destroy(f.keepEvents)});a.columns=void 0}function k(f){f=f.userOptions||{};var a=f.grid||{};a.enabled&&h(a.borderColor)&&(f.tickColor=f.lineColor=a.borderColor);this.grid||(this.grid=new B(this));this.hiddenLabels=[]}function w(f){var k=this.label,r=this.axis,c=r.reversed,t=r.chart,g=r.options.grid||{},B=r.options.labels,n=B.align,d=a.Side[r.side],K=f.tickmarkOffset,w=r.tickPositions,e=this.pos-K;w=l(w[f.index+1])?w[f.index+1]-K:
|
|
51
|
+
(r.max||0)+K;var A=r.tickSize("tick");K=A?A[0]:0;A=A?A[1]/2:0;if(!0===g.enabled){if("top"===d){g=r.top+r.offset;var q=g-K}else"bottom"===d?(q=t.chartHeight-r.bottom+r.offset,g=q+K):(g=r.top+r.len-(r.translate(c?w:e)||0),q=r.top+r.len-(r.translate(c?e:w)||0));"right"===d?(d=t.chartWidth-r.right+r.offset,c=d+K):"left"===d?(c=r.left+r.offset,d=c-K):(d=Math.round(r.left+(r.translate(c?w:e)||0))-A,c=Math.min(Math.round(r.left+(r.translate(c?e:w)||0))-A,r.left+r.len));this.slotWidth=c-d;f.pos.x="left"===
|
|
52
|
+
n?d:"right"===n?c:d+(c-d)/2;f.pos.y=q+(g-q)/2;t=t.renderer.fontMetrics(B.style.fontSize,k&&k.element);k=k?k.getBBox().height:0;B.useHTML?f.pos.y+=t.b+-(k/2):(k=Math.round(k/t.h),f.pos.y+=(t.b-(t.h-t.f))/2+-((k-1)*t.h/2));f.pos.x+=r.horiz&&B.x||0}}function t(f){var a=f.axis,k=f.value;if(a.options.grid&&a.options.grid.enabled){var r=a.tickPositions,c=(a.linkedParent||a).series[0],t=k===r[0];r=k===r[r.length-1];var g=c&&d(c.options.data,function(f){return f[a.isXAxis?"x":"y"]===k}),B=void 0;g&&c.is("gantt")&&
|
|
53
|
+
(B=q(g),v.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(B));f.isFirst=t;f.isLast=r;f.point=B}}function f(){var f=this.options,a=this.categories,k=this.tickPositions,r=k[0],c=k[k.length-1],t=this.linkedParent&&this.linkedParent.min||this.min,g=this.linkedParent&&this.linkedParent.max||this.max,B=this.tickInterval;!0!==(f.grid||{}).enabled||a||!this.horiz&&!this.isLinked||(r<t&&r+B>t&&!f.startOnTick&&(k[0]=t),c>g&&c-B<g&&!f.endOnTick&&(k[k.length-1]=g))}function r(f){var a=this.options.grid;
|
|
54
|
+
return!0===(void 0===a?{}:a).enabled&&this.categories?this.tickInterval:f.apply(this,Array.prototype.slice.call(arguments,1))}(function(f){f[f.top=0]="top";f[f.right=1]="right";f[f.bottom=2]="bottom";f[f.left=3]="left"})(a.Side||(a.Side={}));a.compose=function(a,B,n){-1===a.keepProps.indexOf("grid")&&(a.keepProps.push("grid"),a.prototype.getMaxLabelDimensions=c,E(a.prototype,"unsquish",r),m(a,"init",k),m(a,"afterGetOffset",I),m(a,"afterGetTitlePosition",H),m(a,"afterInit",g),m(a,"afterRender",F),
|
|
55
|
+
m(a,"afterSetAxisTranslation",P),m(a,"afterSetOptions",z),m(a,"afterSetOptions",D),m(a,"afterSetScale",M),m(a,"afterTickSize",x),m(a,"trimTicks",f),m(a,"destroy",A));m(B,"afterSetChartSize",O);m(n,"afterGetLabelPosition",w);m(n,"labelFormat",t);return a};var B=function(){function f(f){this.axis=f}f.prototype.isOuterAxis=function(){var f=this.axis,a=f.grid.columnIndex,k=f.linkedParent&&f.linkedParent.grid.columns||f.grid.columns,r=a?f.linkedParent:f,c=-1,t=0;f.chart[f.coll].forEach(function(a,k){a.side!==
|
|
56
|
+
f.side||a.options.isInternal||(t=k,a===r&&(c=k))});return t===c&&(l(a)?k.length===a:!0)};f.prototype.renderBorder=function(f){var a=this.axis,k=a.chart.renderer,r=a.options;f=k.path(f).addClass("highcharts-axis-line").add(a.axisBorder);k.styledMode||f.attr({stroke:r.lineColor,"stroke-width":r.lineWidth,zIndex:7});return f};return f}();a.Additions=B})(a||(a={}));z.E=function(a){return this.dateFormat("%a",a,!0).charAt(0)};z.W=function(a){a=new this.Date(a);var c=(this.get("Day",a)+6)%7,d=new this.Date(a.valueOf());
|
|
57
|
+
this.set("Date",d,this.get("Date",a)-c+3);c=new this.Date(this.get("FullYear",d),0,1);4!==this.get("Day",c)&&(this.set("Month",a,0),this.set("Date",a,1+(11-this.get("Day",c))%7));return(1+Math.floor((d.valueOf()-c.valueOf())/6048E5)).toString()};"";return a});G(b,"Gantt/Tree.js",[b["Core/Utilities.js"]],function(b){var p=b.extend,v=b.isNumber,u=b.pick,z=function(h,b){var d=h.reduce(function(d,l){var e=u(l.parent,"");"undefined"===typeof d[e]&&(d[e]=[]);d[e].push(l);return d},{});Object.keys(d).forEach(function(e,
|
|
58
|
+
l){var q=d[e];""!==e&&-1===b.indexOf(e)&&(q.forEach(function(d){l[""].push(d)}),delete l[e])});return d},m=function(h,b,d,e,l,q){var C=0,J=0,E=q&&q.after,a=q&&q.before;b={data:e,depth:d-1,id:h,level:d,parent:b};var c,n;"function"===typeof a&&a(b,q);a=(l[h]||[]).map(function(a){var e=m(a.id,h,d+1,a,l,q),g=a.start;a=!0===a.milestone?g:a.end;c=!v(c)||g<c?g:c;n=!v(n)||a>n?a:n;C=C+1+e.descendants;J=Math.max(e.height+1,J);return e});e&&(e.start=u(e.start,c),e.end=u(e.end,n));p(b,{children:a,descendants:C,
|
|
59
|
+
height:J});"function"===typeof E&&E(b,q);return b};return{getListOfParents:z,getNode:m,getTree:function(b,p){var d=b.map(function(d){return d.id});b=z(b,d);return m("",null,1,null,b,p)}}});G(b,"Core/Axis/TreeGridTick.js",[b["Core/Color/Palette.js"],b["Core/Utilities.js"]],function(b,p){var v=p.addEvent,u=p.isObject,z=p.isNumber,m=p.pick,h=p.wrap,y;(function(d){function e(){this.treeGrid||(this.treeGrid=new E(this))}function l(a,c){a=a.treeGrid;var d=!a.labelIcon,l=c.renderer,e=c.xy,g=c.options,q=
|
|
60
|
+
g.width||0,E=g.height||0,h=e.x-q/2-(g.padding||0);e=e.y-E/2;var C=c.collapsed?90:180,J=c.show&&z(e),x=a.labelIcon;x||(a.labelIcon=x=l.path(l.symbols[g.type](g.x||0,g.y||0,q,E)).addClass("highcharts-label-icon").add(c.group));x.attr({y:J?0:-9999});l.styledMode||x.attr({cursor:"pointer",fill:m(c.color,b.neutralColor60),"stroke-width":1,stroke:g.lineColor,strokeWidth:g.lineWidth||0});x[d?"attr":"animate"]({translateX:h,translateY:e,rotation:C})}function q(a,c,d,l,e,g,q,b,E){var n=m(this.options&&this.options.labels,
|
|
61
|
+
g);g=this.pos;var h=this.axis,F="treegrid"===h.options.type;a=a.apply(this,[c,d,l,e,n,q,b,E]);F&&(c=n&&u(n.symbol,!0)?n.symbol:{},n=n&&z(n.indentation)?n.indentation:0,g=(g=(h=h.treeGrid.mapOfPosToGridNode)&&h[g])&&g.depth||1,a.x+=(c.width||0)+2*(c.padding||0)+(g-1)*n);return a}function C(a){var c=this,d=c.pos,e=c.axis,q=c.label,g=e.treeGrid.mapOfPosToGridNode,b=e.options,E=m(c.options&&c.options.labels,b&&b.labels),h=E&&u(E.symbol,!0)?E.symbol:{},C=(g=g&&g[d])&&g.depth;b="treegrid"===b.type;var J=
|
|
62
|
+
-1<e.tickPositions.indexOf(d);d=e.chart.styledMode;b&&g&&q&&q.element&&q.addClass("highcharts-treegrid-node-level-"+C);a.apply(c,Array.prototype.slice.call(arguments,1));b&&q&&q.element&&g&&g.descendants&&0<g.descendants&&(e=e.treeGrid.isCollapsed(g),l(c,{color:!d&&q.styles&&q.styles.color||"",collapsed:e,group:q.parentGroup,options:h,renderer:q.renderer,show:J,xy:q.xy}),h="highcharts-treegrid-node-"+(e?"expanded":"collapsed"),q.addClass("highcharts-treegrid-node-"+(e?"collapsed":"expanded")).removeClass(h),
|
|
63
|
+
d||q.css({cursor:"pointer"}),[q,c.treeGrid.labelIcon].forEach(function(a){a&&!a.attachedTreeGridEvents&&(v(a.element,"mouseover",function(){q.addClass("highcharts-treegrid-node-active");q.renderer.styledMode||q.css({textDecoration:"underline"})}),v(a.element,"mouseout",function(){var a=u(E.style)?E.style:{};q.removeClass("highcharts-treegrid-node-active");q.renderer.styledMode||q.css({textDecoration:a.textDecoration})}),v(a.element,"click",function(){c.treeGrid.toggleCollapse()}),a.attachedTreeGridEvents=
|
|
64
|
+
!0)}))}var J=!1;d.compose=function(a){J||(v(a,"init",e),h(a.prototype,"getLabelPosition",q),h(a.prototype,"renderLabel",C),a.prototype.collapse=function(a){this.treeGrid.collapse(a)},a.prototype.expand=function(a){this.treeGrid.expand(a)},a.prototype.toggleCollapse=function(a){this.treeGrid.toggleCollapse(a)},J=!0)};var E=function(){function a(a){this.tick=a}a.prototype.collapse=function(a){var c=this.tick,d=c.axis,e=d.brokenAxis;e&&d.treeGrid.mapOfPosToGridNode&&(c=d.treeGrid.collapse(d.treeGrid.mapOfPosToGridNode[c.pos]),
|
|
65
|
+
e.setBreaks(c,m(a,!0)))};a.prototype.expand=function(a){var c=this.tick,d=c.axis,e=d.brokenAxis;e&&d.treeGrid.mapOfPosToGridNode&&(c=d.treeGrid.expand(d.treeGrid.mapOfPosToGridNode[c.pos]),e.setBreaks(c,m(a,!0)))};a.prototype.toggleCollapse=function(a){var c=this.tick,d=c.axis,e=d.brokenAxis;e&&d.treeGrid.mapOfPosToGridNode&&(c=d.treeGrid.toggleCollapse(d.treeGrid.mapOfPosToGridNode[c.pos]),e.setBreaks(c,m(a,!0)))};return a}();d.Additions=E})(y||(y={}));return y});G(b,"Mixins/TreeSeries.js",[b["Core/Color/Color.js"],
|
|
66
|
+
b["Core/Utilities.js"]],function(b,p){var v=p.extend,u=p.isArray,z=p.isNumber,m=p.isObject,h=p.merge,y=p.pick;return{getColor:function(d,e){var l=e.index,q=e.mapOptionsToLevel,h=e.parentColor,m=e.parentColorIndex,E=e.series,a=e.colors,c=e.siblings,n=E.points,I=E.chart.options.chart,H;if(d){n=n[d.i];d=q[d.level]||{};if(q=n&&d.colorByPoint){var g=n.index%(a?a.length:I.colorCount);var F=a&&a[g]}if(!E.chart.styledMode){a=n&&n.options.color;I=d&&d.color;if(H=h)H=(H=d&&d.colorVariation)&&"brightness"===
|
|
67
|
+
H.key?b.parse(h).brighten(l/c*H.to).get():h;H=y(a,I,F,H,E.color)}var p=y(n&&n.options.colorIndex,d&&d.colorIndex,g,m,e.colorIndex)}return{color:H,colorIndex:p}},getLevelOptions:function(d){var e=null;if(m(d)){e={};var l=z(d.from)?d.from:1;var q=d.levels;var b={};var J=m(d.defaults)?d.defaults:{};u(q)&&(b=q.reduce(function(d,a){if(m(a)&&z(a.level)){var c=h({},a);var n="boolean"===typeof c.levelIsConstant?c.levelIsConstant:J.levelIsConstant;delete c.levelIsConstant;delete c.level;a=a.level+(n?0:l-1);
|
|
68
|
+
m(d[a])?v(d[a],c):d[a]=c}return d},{}));q=z(d.to)?d.to:1;for(d=0;d<=q;d++)e[d]=h({},J,m(b[d])?b[d]:{})}return e},setTreeValues:function q(e,l){var b=l.before,h=l.idRoot,E=l.mapIdToNode[h],a=l.points[e.i],c=a&&a.options||{},n=0,m=[];e.levelDynamic=e.level-(("boolean"===typeof l.levelIsConstant?l.levelIsConstant:1)?0:E.level);e.name=y(a&&a.name,"");e.visible=h===e.id||("boolean"===typeof l.visible?l.visible:!1);"function"===typeof b&&(e=b(e,l));e.children.forEach(function(a,c){var g=v({},l);v(g,{index:c,
|
|
69
|
+
siblings:e.children.length,visible:e.visible});a=q(a,g);m.push(a);a.visible&&(n+=a.val)});b=y(c.value,n);e.visible=0<=b&&(0<n||e.visible);e.children=m;e.childrenTotal=n;e.isLeaf=e.visible&&!n;e.val=b;return e},updateRootId:function(e){if(m(e)){var l=m(e.options)?e.options:{};l=y(e.rootNode,l.rootId,"");m(e.userOptions)&&(e.userOptions.rootId=l);e.rootNode=l}return l}}});G(b,"Core/Axis/TreeGridAxis.js",[b["Core/Axis/BrokenAxis.js"],b["Core/Axis/GridAxis.js"],b["Gantt/Tree.js"],b["Core/Axis/TreeGridTick.js"],
|
|
70
|
+
b["Mixins/TreeSeries.js"],b["Core/Utilities.js"]],function(b,p,v,u,z,m){var h=z.getLevelOptions,y=m.addEvent,d=m.find,e=m.fireEvent,l=m.isArray,q=m.isObject,C=m.isString,J=m.merge,E=m.pick,a=m.wrap,c;(function(c){function n(a,c){var d=a.collapseEnd||0;a=a.collapseStart||0;d>=c&&(a-=.5);return{from:a,to:d,showPoints:!1}}function m(a,c,g){var k=[],n=[],t={},f="boolean"===typeof c?c:!1,r={},B=-1;a=v.getTree(a,{after:function(f){f=r[f.pos];var a=0,k=0;f.children.forEach(function(f){k+=(f.descendants||
|
|
71
|
+
0)+1;a=Math.max((f.height||0)+1,a)});f.descendants=k;f.height=a;f.collapsed&&n.push(f)},before:function(a){var c=q(a.data,!0)?a.data:{},g=C(c.name)?c.name:"",n=t[a.parent];n=q(n,!0)?r[n.pos]:null;var w=function(f){return f.name===g},e;f&&q(n,!0)&&(e=d(n.children,w))?(w=e.pos,e.nodes.push(a)):w=B++;r[w]||(r[w]=e={depth:n?n.depth+1:0,name:g,id:c.id,nodes:[a],children:[],pos:w},-1!==w&&k.push(g),q(n,!0)&&n.children.push(e));C(a.id)&&(t[a.id]=a);e&&!0===c.collapsed&&(e.collapsed=!0);a.pos=w}});r=function(f,
|
|
72
|
+
a){var k=function(f,r,c){var t=r+(-1===r?0:a-1),g=(t-r)/2,d=r+g;f.nodes.forEach(function(f){var a=f.data;q(a,!0)&&(a.y=r+(a.seriesIndex||0),delete a.seriesIndex);f.pos=d});c[d]=f;f.pos=d;f.tickmarkOffset=g+.5;f.collapseStart=t+.5;f.children.forEach(function(f){k(f,t+1,c);t=(f.collapseEnd||0)-.5});f.collapseEnd=t+.5;return c};return k(f["-1"],-1,{})}(r,g);return{categories:k,mapOfIdToNode:t,mapOfPosToGridNode:r,collapsedNodes:n,tree:a}}function g(a){a.target.axes.filter(function(a){return"treegrid"===
|
|
73
|
+
a.options.type}).forEach(function(c){var g=c.options||{},k=g.labels,d=g.uniqueNames;g=g.max;var t=0;if(!c.treeGrid.mapOfPosToGridNode||c.series.some(function(f){return!f.hasRendered||f.isDirtyData||f.isDirty})){var f=c.series.reduce(function(f,a){a.visible&&((a.options.data||[]).forEach(function(k){a.options.keys&&a.options.keys.length&&(k=a.pointClass.prototype.optionsToObject.call({series:a},k),a.pointClass.setGanttPointAliases(k));q(k,!0)&&(k.seriesIndex=t,f.push(k))}),!0===d&&t++);return f},[]);
|
|
74
|
+
if(g&&f.length<g)for(var r=f.length;r<=g;r++)f.push({name:r+"\u200b"});g=m(f,d||!1,!0===d?t:1);c.categories=g.categories;c.treeGrid.mapOfPosToGridNode=g.mapOfPosToGridNode;c.hasNames=!0;c.treeGrid.tree=g.tree;c.series.forEach(function(a){var k=(a.options.data||[]).map(function(k){l(k)&&a.options.keys&&a.options.keys.length&&f.forEach(function(f){0<=k.indexOf(f.x)&&0<=k.indexOf(f.x2)&&(k=f)});return q(k,!0)?J(k):k});a.visible&&a.setData(k,!1)});c.treeGrid.mapOptionsToLevel=h({defaults:k,from:1,levels:k&&
|
|
75
|
+
k.levels,to:c.treeGrid.tree&&c.treeGrid.tree.height});"beforeRender"===a.type&&(c.treeGrid.collapsedNodes=g.collapsedNodes)}})}function F(a,c){var g=this.treeGrid.mapOptionsToLevel||{},k=this.ticks,d=k[c],t;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var f=this.treeGrid.mapOfPosToGridNode[c];(g=g[f.depth])&&(t={labels:g});!d&&D?k[c]=new D(this,c,void 0,void 0,{category:f.name,tickmarkOffset:f.tickmarkOffset,options:t}):(d.parameters.category=f.name,d.options=t,d.addLabel())}else a.apply(this,
|
|
76
|
+
Array.prototype.slice.call(arguments,1))}function P(a,c,d){var k=this,n="treegrid"===d.type;k.treeGrid||(k.treeGrid=new M(k));n&&(y(c,"beforeRender",g),y(c,"beforeRedraw",g),y(c,"addSeries",function(a){a.options.data&&(a=m(a.options.data,d.uniqueNames||!1,1),k.treeGrid.collapsedNodes=(k.treeGrid.collapsedNodes||[]).concat(a.collapsedNodes))}),y(k,"foundExtremes",function(){k.treeGrid.collapsedNodes&&k.treeGrid.collapsedNodes.forEach(function(a){var f=k.treeGrid.collapse(a);k.brokenAxis&&(k.brokenAxis.setBreaks(f,
|
|
77
|
+
!1),k.treeGrid.collapsedNodes&&(k.treeGrid.collapsedNodes=k.treeGrid.collapsedNodes.filter(function(f){return a.collapseStart!==f.collapseStart||a.collapseEnd!==f.collapseEnd})))})}),y(k,"afterBreaks",function(){"yAxis"===k.coll&&!k.staticScale&&k.chart.options.chart.height&&(k.isDirty=!0)}),d=J({grid:{enabled:!0},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},d,{reversed:!0,grid:{columns:void 0}}));
|
|
78
|
+
a.apply(k,[c,d]);n&&(k.hasNames=!0,k.options.showLastLabel=!0)}function z(a){var c=this.options;"treegrid"===c.type?(this.min=E(this.userMin,c.min,this.dataMin),this.max=E(this.userMax,c.max,this.dataMax),e(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):a.apply(this,Array.prototype.slice.call(arguments,1))}var D;c.compose=function(c,g,d,k){-1===c.keepProps.indexOf("treeGrid")&&
|
|
79
|
+
(c.keepProps.push("treeGrid"),D=k,a(c.prototype,"generateTick",F),a(c.prototype,"init",P),a(c.prototype,"setTickInterval",z),c.prototype.utils={getNode:v.getNode},p.compose(c,g,k),b.compose(c,d),u.compose(k));return c};var M=function(){function a(a){this.axis=a}a.prototype.setCollapsedStatus=function(a){var c=this.axis,k=c.chart;c.series.forEach(function(c){var t=c.options.data;if(a.id&&t){var f=k.get(a.id);c=t[c.data.indexOf(f)];f&&c&&(f.collapsed=a.collapsed,c.collapsed=a.collapsed)}})};a.prototype.collapse=
|
|
80
|
+
function(a){var c=this.axis,k=c.options.breaks||[],g=n(a,c.max);k.push(g);a.collapsed=!0;c.treeGrid.setCollapsedStatus(a);return k};a.prototype.expand=function(a){var c=this.axis,k=c.options.breaks||[],g=n(a,c.max);a.collapsed=!1;c.treeGrid.setCollapsedStatus(a);return k.reduce(function(a,f){f.to===g.to&&f.from===g.from||a.push(f);return a},[])};a.prototype.getTickPositions=function(){var a=this.axis,c=Math.floor(a.min/a.tickInterval)*a.tickInterval,k=Math.ceil(a.max/a.tickInterval)*a.tickInterval;
|
|
81
|
+
return Object.keys(a.treeGrid.mapOfPosToGridNode||{}).reduce(function(g,t){t=+t;!(t>=c&&t<=k)||a.brokenAxis&&a.brokenAxis.isInAnyBreak(t)||g.push(t);return g},[])};a.prototype.isCollapsed=function(a){var c=this.axis,k=c.options.breaks||[],g=n(a,c.max);return k.some(function(a){return a.from===g.from&&a.to===g.to})};a.prototype.toggleCollapse=function(a){return this.isCollapsed(a)?this.expand(a):this.collapse(a)};return a}();c.Additions=M})(c||(c={}));return c});G(b,"Extensions/CurrentDateIndication.js",
|
|
82
|
+
[b["Core/Axis/Axis.js"],b["Core/Color/Palette.js"],b["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],b["Core/Utilities.js"]],function(b,p,v,u){var z=u.addEvent,m=u.merge;u=u.wrap;var h={color:p.highlightColor20,width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(b,d){return this.axis.chart.time.dateFormat(d||"",b)},rotation:0,style:{fontSize:"10px"}}};z(b,"afterSetOptions",function(){var b=this.options,d=b.currentDateIndicator;d&&(d="object"===typeof d?m(h,d):m(h),d.value=Date.now(),d.className=
|
|
83
|
+
"highcharts-current-date-indicator",b.plotLines||(b.plotLines=[]),b.plotLines.push(d))});z(v,"render",function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})});u(v.prototype,"getLabelText",function(b,d){var e=this.options;return e&&e.className&&-1!==e.className.indexOf("highcharts-current-date-indicator")&&e.label&&"function"===typeof e.label.formatter?(e.value=Date.now(),e.label.formatter.call(this,e.value,e.label.format)):b.call(this,d)})});G(b,"Extensions/StaticScale.js",
|
|
84
|
+
[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Utilities.js"]],function(b,p,v){var u=v.addEvent,z=v.defined,m=v.isNumber,h=v.pick;u(b,"afterSetOptions",function(){var b=this.chart.options.chart;!this.horiz&&m(this.options.staticScale)&&(!b.height||b.scrollablePlotArea&&b.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)});p.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach(function(b){var d=b.chart,e=!!d.initiatedScale&&
|
|
85
|
+
d.options.animation,l=b.options.staticScale;if(b.staticScale&&z(b.min)){var q=h(b.brokenAxis&&b.brokenAxis.unitLength,b.max+b.tickInterval-b.min)*l;q=Math.max(q,l);l=q-d.plotHeight;!d.scrollablePixelsY&&1<=Math.abs(l)&&(d.plotHeight=q,d.redrawTrigger="adjustHeight",d.setSize(void 0,d.chartHeight+l,e));b.series.forEach(function(e){(e=e.sharedClipKey&&d.sharedClips[e.sharedClipKey])&&e.attr(d.inverted?{width:d.plotHeight}:{height:d.plotHeight})})}}),this.initiatedScale=!0);this.redrawTrigger=null};
|
|
86
|
+
u(p,"render",p.prototype.adjustHeight)});G(b,"Extensions/ArrowSymbols.js",[b["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function p(b,m,h,p){return[["M",b,m+p/2],["L",b+h,m],["L",b,m+p/2],["L",b+h,m+p]]}function v(b,m,h,p){return[["M",b+h,m],["L",b,m+p/2],["L",b+h,m+p],["Z"]]}function u(b,m,h,p){return v(b,m,h/2,p)}b=b.prototype.symbols;b.arrow=p;b["arrow-filled"]=v;b["arrow-filled-half"]=u;b["arrow-half"]=function(b,m,h,u){return p(b,m,h/2,u)};b["triangle-left"]=v;b["triangle-left-half"]=u;
|
|
87
|
+
return b});G(b,"Gantt/Connection.js",[b["Core/Globals.js"],b["Core/DefaultOptions.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,p,v,u){function z(d){var b=d.shapeArgs;return b?{xMin:b.x||0,xMax:(b.x||0)+(b.width||0),yMin:b.y||0,yMax:(b.y||0)+(b.height||0)}:(b=d.graphic&&d.graphic.getBBox())?{xMin:d.plotX-b.width/2,xMax:d.plotX+b.width/2,yMin:d.plotY-b.height/2,yMax:d.plotY+b.height/2}:null}"";var m=u.defined,h=u.error,y=u.extend,d=u.merge,e=u.objectEach,l=b.deg2rad,q=Math.max,
|
|
88
|
+
C=Math.min;y(p.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});p=function(){function b(d,a,c){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(d,a,c)}b.prototype.init=function(d,a,c){this.fromPoint=d;this.toPoint=a;this.options=c;this.chart=d.series.chart;this.pathfinder=this.chart.pathfinder};b.prototype.renderPath=
|
|
89
|
+
function(d,a,c){var n=this.chart,b=n.styledMode,e=n.pathfinder,g=!n.options.chart.forExport&&!1!==c,l=this.graphics&&this.graphics.path;e.group||(e.group=n.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(n.seriesGroup));e.group.translate(n.plotLeft,n.plotTop);l&&l.renderer||(l=n.renderer.path().add(e.group),b||l.attr({opacity:0}));l.attr(a);d={d:d};b||(d.opacity=1);l[g?"animate":"attr"](d,c);this.graphics=this.graphics||{};this.graphics.path=l};b.prototype.addMarker=function(d,
|
|
90
|
+
a,c){var b=this.fromPoint.series.chart,e=b.pathfinder;b=b.renderer;var q="start"===d?this.fromPoint:this.toPoint,g=q.getPathfinderAnchorPoint(a);if(a.enabled&&((c="start"===d?c[1]:c[c.length-2])&&"M"===c[0]||"L"===c[0])){c={x:c[1],y:c[2]};c=q.getRadiansToVector(c,g);g=q.getMarkerVector(c,a.radius,g);c=-c/l;if(a.width&&a.height){var h=a.width;var m=a.height}else h=m=2*a.radius;this.graphics=this.graphics||{};g={x:g.x-h/2,y:g.y-m/2,width:h,height:m,rotation:c,rotationOriginX:g.x,rotationOriginY:g.y};
|
|
91
|
+
this.graphics[d]?this.graphics[d].animate(g):(this.graphics[d]=b.symbol(a.symbol).addClass("highcharts-point-connecting-path-"+d+"-marker").attr(g).add(e.group),b.styledMode||this.graphics[d].attr({fill:a.color||this.fromPoint.color,stroke:a.lineColor,"stroke-width":a.lineWidth,opacity:0}).animate({opacity:1},q.series.options.animation))}};b.prototype.getPath=function(b){var a=this.pathfinder,c=this.chart,n=a.algorithms[b.type],e=a.chartObstacles;if("function"!==typeof n)return h('"'+b.type+'" is not a Pathfinder algorithm.'),
|
|
92
|
+
{path:[],obstacles:[]};n.requiresObstacles&&!e&&(e=a.chartObstacles=a.getChartObstacles(b),c.options.connectors.algorithmMargin=b.algorithmMargin,a.chartObstacleMetrics=a.getObstacleMetrics(e));return n(this.fromPoint.getPathfinderAnchorPoint(b.startMarker),this.toPoint.getPathfinderAnchorPoint(b.endMarker),d({chartObstacles:e,lineObstacles:a.lineObstacles||[],obstacleMetrics:a.chartObstacleMetrics,hardBounds:{xMin:0,xMax:c.plotWidth,yMin:0,yMax:c.plotHeight},obstacleOptions:{margin:b.algorithmMargin},
|
|
93
|
+
startDirectionX:a.getAlgorithmStartDirection(b.startMarker)},b))};b.prototype.render=function(){var b=this.fromPoint,a=b.series,c=a.chart,n=c.pathfinder,e=d(c.options.connectors,a.options.connectors,b.options.connectors,this.options),l={};c.styledMode||(l.stroke=e.lineColor||b.color,l["stroke-width"]=e.lineWidth,e.dashStyle&&(l.dashstyle=e.dashStyle));l["class"]="highcharts-point-connecting-path highcharts-color-"+b.colorIndex;e=d(l,e);m(e.marker.radius)||(e.marker.radius=C(q(Math.ceil((e.algorithmMargin||
|
|
94
|
+
8)/2)-1,1),5));b=this.getPath(e);c=b.path;b.obstacles&&(n.lineObstacles=n.lineObstacles||[],n.lineObstacles=n.lineObstacles.concat(b.obstacles));this.renderPath(c,l,a.options.animation);this.addMarker("start",d(e.marker,e.startMarker),c);this.addMarker("end",d(e.marker,e.endMarker),c)};b.prototype.destroy=function(){this.graphics&&(e(this.graphics,function(d){d.destroy()}),delete this.graphics)};return b}();b.Connection=p;y(v.prototype,{getPathfinderAnchorPoint:function(d){var b=z(this);switch(d.align){case "right":var a=
|
|
95
|
+
"xMax";break;case "left":a="xMin"}switch(d.verticalAlign){case "top":var c="yMin";break;case "bottom":c="yMax"}return{x:a?b[a]:(b.xMin+b.xMax)/2,y:c?b[c]:(b.yMin+b.yMax)/2}},getRadiansToVector:function(d,b){var a;m(b)||(a=z(this))&&(b={x:(a.xMin+a.xMax)/2,y:(a.yMin+a.yMax)/2});return Math.atan2(b.y-d.y,d.x-b.x)},getMarkerVector:function(d,b,a){var c=2*Math.PI,e=z(this),l=e.xMax-e.xMin,q=e.yMax-e.yMin,g=Math.atan2(q,l),h=!1;l/=2;var m=q/2,C=e.xMin+l;e=e.yMin+m;for(var p=C,E=e,x=1,u=1;d<-Math.PI;)d+=
|
|
96
|
+
c;for(;d>Math.PI;)d-=c;c=Math.tan(d);d>-g&&d<=g?(u=-1,h=!0):d>g&&d<=Math.PI-g?u=-1:d>Math.PI-g||d<=-(Math.PI-g)?(x=-1,h=!0):x=-1;h?(p+=x*l,E+=u*l*c):(p+=q/(2*c)*x,E+=u*m);a.x!==C&&(p=a.x);a.y!==e&&(E=a.y);return{x:p+b*Math.cos(d),y:E-b*Math.sin(d)}}});return p});G(b,"Gantt/PathfinderAlgorithms.js",[b["Core/Utilities.js"]],function(b){function p(d,b,e){e=e||0;var l=d.length-1;b-=1e-7;for(var q,a;e<=l;)if(q=l+e>>1,a=b-d[q].xMin,0<a)e=q+1;else if(0>a)l=q-1;else return q;return 0<e?e-1:0}function v(d,
|
|
97
|
+
b){for(var e=p(d,b.x+1)+1;e--;){var l;if(l=d[e].xMax>=b.x)l=d[e],l=b.x<=l.xMax&&b.x>=l.xMin&&b.y<=l.yMax&&b.y>=l.yMin;if(l)return e}return-1}function u(d){var b=[];if(d.length){b.push(["M",d[0].start.x,d[0].start.y]);for(var e=0;e<d.length;++e)b.push(["L",d[e].end.x,d[e].end.y])}return b}function z(d,b){d.yMin=y(d.yMin,b.yMin);d.yMax=h(d.yMax,b.yMax);d.xMin=y(d.xMin,b.xMin);d.xMax=h(d.xMax,b.xMax)}var m=b.pick,h=Math.min,y=Math.max,d=Math.abs;b=function(b,e,h){function l(a,c,d,g,b){a={x:a.x,y:a.y};
|
|
98
|
+
a[c]=d[g||c]+(b||0);return a}function q(a,c,g){var b=d(c[g]-a[g+"Min"])>d(c[g]-a[g+"Max"]);return l(c,g,a,g+(b?"Max":"Min"),b?1:-1)}var a=[],c=m(h.startDirectionX,d(e.x-b.x)>d(e.y-b.y))?"x":"y",n=h.chartObstacles,p=v(n,b);h=v(n,e);if(-1<h){var C=n[h];h=q(C,e,c);C={start:h,end:e};var g=h}else g=e;-1<p&&(n=n[p],h=q(n,b,c),a.push({start:b,end:h}),h[c]>=b[c]===h[c]>=g[c]&&(c="y"===c?"x":"y",e=b[c]<e[c],a.push({start:h,end:l(h,c,n,c+(e?"Max":"Min"),e?1:-1)}),c="y"===c?"x":"y"));b=a.length?a[a.length-1].end:
|
|
99
|
+
b;h=l(b,c,g);a.push({start:b,end:h});c=l(h,"y"===c?"x":"y",g);a.push({start:h,end:c});a.push(C);return{path:u(a),obstacles:a}};b.requiresObstacles=!0;var e=function(b,e,C){function l(a,c,d){var f,k=a.x<c.x?1:-1;if(a.x<c.x){var b=a;var g=c}else b=c,g=a;if(a.y<c.y){var t=a;var e=c}else t=c,e=a;for(f=0>k?h(p(x,g.x),x.length-1):0;x[f]&&(0<k&&x[f].xMin<=g.x||0>k&&x[f].xMax>=b.x);){if(x[f].xMin<=g.x&&x[f].xMax>=b.x&&x[f].yMin<=e.y&&x[f].yMax>=t.y)return d?{y:a.y,x:a.x<c.x?x[f].xMin-1:x[f].xMax+1,obstacle:x[f]}:
|
|
100
|
+
{x:a.x,y:a.y<c.y?x[f].yMin-1:x[f].yMax+1,obstacle:x[f]};f+=k}return c}function q(a,c,b,f,r){var k=r.soft,g=r.hard,e=f?"x":"y",t={x:c.x,y:c.y},n={x:c.x,y:c.y};r=a[e+"Max"]>=k[e+"Max"];k=a[e+"Min"]<=k[e+"Min"];var w=a[e+"Max"]>=g[e+"Max"];g=a[e+"Min"]<=g[e+"Min"];var h=d(a[e+"Min"]-c[e]),q=d(a[e+"Max"]-c[e]);b=10>d(h-q)?c[e]<b[e]:q<h;n[e]=a[e+"Min"];t[e]=a[e+"Max"];a=l(c,n,f)[e]!==n[e];c=l(c,t,f)[e]!==t[e];b=a?c?b:!0:c?!1:b;b=k?r?b:!0:r?!1:b;return g?w?b:!0:w?!1:b}function a(c,d,b){if(c.x===d.x&&c.y===
|
|
101
|
+
d.y)return[];var f=b?"x":"y",r=C.obstacleOptions.margin;var k={soft:{xMin:P,xMax:Q,yMin:D,yMax:L},hard:C.hardBounds};var e=v(x,c);if(-1<e){e=x[e];k=q(e,c,d,b,k);z(e,C.hardBounds);var t=b?{y:c.y,x:e[k?"xMax":"xMin"]+(k?1:-1)}:{x:c.x,y:e[k?"yMax":"yMin"]+(k?1:-1)};var n=v(x,t);-1<n&&(n=x[n],z(n,C.hardBounds),t[f]=k?y(e[f+"Max"]-r+1,(n[f+"Min"]+e[f+"Max"])/2):h(e[f+"Min"]+r-1,(n[f+"Max"]+e[f+"Min"])/2),c.x===t.x&&c.y===t.y?(g&&(t[f]=k?y(e[f+"Max"],n[f+"Max"])+1:h(e[f+"Min"],n[f+"Min"])-1),g=!g):g=!1);
|
|
102
|
+
c=[{start:c,end:t}]}else f=l(c,{x:b?d.x:c.x,y:b?c.y:d.y},b),c=[{start:c,end:{x:f.x,y:f.y}}],f[b?"x":"y"]!==d[b?"x":"y"]&&(k=q(f.obstacle,f,d,!b,k),z(f.obstacle,C.hardBounds),k={x:b?f.x:f.obstacle[k?"xMax":"xMin"]+(k?1:-1),y:b?f.obstacle[k?"yMax":"yMin"]+(k?1:-1):f.y},b=!b,c=c.concat(a({x:f.x,y:f.y},k,b)));return c=c.concat(a(c[c.length-1].end,d,!b))}function c(a,c,d){var f=h(a.xMax-c.x,c.x-a.xMin)<h(a.yMax-c.y,c.y-a.yMin);d=q(a,c,d,f,{soft:C.hardBounds,hard:C.hardBounds});return f?{y:c.y,x:a[d?"xMax":
|
|
103
|
+
"xMin"]+(d?1:-1)}:{x:c.x,y:a[d?"yMax":"yMin"]+(d?1:-1)}}var n=m(C.startDirectionX,d(e.x-b.x)>d(e.y-b.y)),I=n?"x":"y",H=[],g=!1,F=C.obstacleMetrics,P=h(b.x,e.x)-F.maxWidth-10,Q=y(b.x,e.x)+F.maxWidth+10,D=h(b.y,e.y)-F.maxHeight-10,L=y(b.y,e.y)+F.maxHeight+10,x=C.chartObstacles;var M=p(x,P);F=p(x,Q);x=x.slice(M,F+1);if(-1<(F=v(x,e))){var A=c(x[F],e,b);H.push({end:e,start:A});e=A}for(;-1<(F=v(x,e));)M=0>e[I]-b[I],A={x:e.x,y:e.y},A[I]=x[F][M?I+"Max":I+"Min"]+(M?1:-1),H.push({end:e,start:A}),e=A;b=a(b,
|
|
104
|
+
e,n);b=b.concat(H.reverse());return{path:u(b),obstacles:b}};e.requiresObstacles=!0;return{fastAvoid:e,straight:function(d,b){return{path:[["M",d.x,d.y],["L",b.x,b.y]],obstacles:[{start:d,end:b}]}},simpleConnect:b}});G(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"],b["Core/Utilities.js"],b["Gantt/PathfinderAlgorithms.js"]],function(b,p,v,u,z,m,h){function y(a){var c=a.shapeArgs;return c?{xMin:c.x||
|
|
105
|
+
0,xMax:(c.x||0)+(c.width||0),yMin:c.y||0,yMax:(c.y||0)+(c.height||0)}:(c=a.graphic&&a.graphic.getBBox())?{xMin:a.plotX-c.width/2,xMax:a.plotX+c.width/2,yMin:a.plotY-c.height/2,yMax:a.plotY+c.height/2}:null}function d(c){for(var d=c.length,b=0,e,g,l=[],h=function(c,d,k){k=a(k,10);var b=c.yMax+k>d.yMin-k&&c.yMin-k<d.yMax+k,e=c.xMax+k>d.xMin-k&&c.xMin-k<d.xMax+k,f=b?c.xMin>d.xMax?c.xMin-d.xMax:d.xMin-c.xMax:Infinity,r=e?c.yMin>d.yMax?c.yMin-d.yMax:d.yMin-c.yMax:Infinity;return e&&b?k?h(c,d,Math.floor(k/
|
|
106
|
+
2)):Infinity:I(f,r)};b<d;++b)for(e=b+1;e<d;++e)g=h(c[b],c[e]),80>g&&l.push(g);l.push(80);return n(Math.floor(l.sort(function(a,c){return a-c})[Math.floor(l.length/10)]/2-1),1)}function e(a){if(a.options.pathfinder||a.series.reduce(function(a,c){c.options&&E(!0,c.options.connectors=c.options.connectors||{},c.options.pathfinder);return a||c.options&&c.options.pathfinder},!1))E(!0,a.options.connectors=a.options.connectors||{},a.options.pathfinder),C('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}
|
|
107
|
+
"";var l=m.addEvent,q=m.defined,C=m.error,J=m.extend,E=m.merge,a=m.pick,c=m.splat,n=Math.max,I=Math.min;J(u.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 H=function(){function e(a){this.lineObstacles=this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(a)}e.prototype.init=function(a){this.chart=
|
|
108
|
+
a;this.connections=[];l(a,"redraw",function(){this.pathfinder.update()})};e.prototype.update=function(a){var d=this.chart,e=this,g=e.connections;e.connections=[];d.series.forEach(function(a){a.visible&&!a.options.isInternal&&a.points.forEach(function(a){var f=a.options;f&&f.dependency&&(f.connect=f.dependency);var k;f=a.options&&a.options.connect&&c(a.options.connect);a.visible&&!1!==a.isInside&&f&&f.forEach(function(f){k=d.get("string"===typeof f?f:f.to);k instanceof z&&k.series.visible&&k.visible&&
|
|
109
|
+
!1!==k.isInside&&e.connections.push(new b(a,k,"string"===typeof f?{}:f))})})});for(var n=0,l=void 0,h=void 0,q=g.length,k=e.connections.length;n<q;++n){h=!1;for(l=0;l<k;++l)if(g[n].fromPoint===e.connections[l].fromPoint&&g[n].toPoint===e.connections[l].toPoint){e.connections[l].graphics=g[n].graphics;h=!0;break}h||g[n].destroy()}delete this.chartObstacles;delete this.lineObstacles;e.renderConnections(a)};e.prototype.renderConnections=function(a){a?this.chart.series.forEach(function(a){var c=function(){var c=
|
|
110
|
+
a.chart.pathfinder;(c&&c.connections||[]).forEach(function(c){c.fromPoint&&c.fromPoint.series===a&&c.render()});a.pathfinderRemoveRenderEvent&&(a.pathfinderRemoveRenderEvent(),delete a.pathfinderRemoveRenderEvent)};!1===a.options.animation?c():a.pathfinderRemoveRenderEvent=l(a,"afterAnimate",c)}):this.connections.forEach(function(a){a.render()})};e.prototype.getChartObstacles=function(c){for(var b=[],e=this.chart.series,g=a(c.algorithmMargin,0),n,l=0,h=e.length;l<h;++l)if(e[l].visible&&!e[l].options.isInternal){var m=
|
|
111
|
+
0,k=e[l].points.length,w=void 0;for(w=void 0;m<k;++m)w=e[l].points[m],w.visible&&(w=y(w))&&b.push({xMin:w.xMin-g,xMax:w.xMax+g,yMin:w.yMin-g,yMax:w.yMax+g})}b=b.sort(function(a,f){return a.xMin-f.xMin});q(c.algorithmMargin)||(n=c.algorithmMargin=d(b),b.forEach(function(a){a.xMin-=n;a.xMax+=n;a.yMin-=n;a.yMax+=n}));return b};e.prototype.getObstacleMetrics=function(a){for(var c=0,d=0,b,e,g=a.length;g--;)b=a[g].xMax-a[g].xMin,e=a[g].yMax-a[g].yMin,c<b&&(c=b),d<e&&(d=e);return{maxHeight:d,maxWidth:c}};
|
|
112
|
+
e.prototype.getAlgorithmStartDirection=function(a){var c="top"!==a.verticalAlign&&"bottom"!==a.verticalAlign;return"left"!==a.align&&"right"!==a.align?c?void 0:!1:c?!0:void 0};return e}();H.prototype.algorithms=h;v.Pathfinder=H;J(z.prototype,{getPathfinderAnchorPoint:function(a){var c=y(this);switch(a.align){case "right":var d="xMax";break;case "left":d="xMin"}switch(a.verticalAlign){case "top":var b="yMin";break;case "bottom":b="yMax"}return{x:d?c[d]:(c.xMin+c.xMax)/2,y:b?c[b]:(c.yMin+c.yMax)/2}},
|
|
113
|
+
getRadiansToVector:function(a,c){var d;q(c)||(d=y(this))&&(c={x:(d.xMin+d.xMax)/2,y:(d.yMin+d.yMax)/2});return Math.atan2(c.y-a.y,a.x-c.x)},getMarkerVector:function(a,c,d){var b=2*Math.PI,e=y(this),g=e.xMax-e.xMin,n=e.yMax-e.yMin,l=Math.atan2(n,g),h=!1;g/=2;var k=n/2,w=e.xMin+g;e=e.yMin+k;for(var t=w,f=e,r=1,B=1;a<-Math.PI;)a+=b;for(;a>Math.PI;)a-=b;b=Math.tan(a);a>-l&&a<=l?(B=-1,h=!0):a>l&&a<=Math.PI-l?B=-1:a>Math.PI-l||a<=-(Math.PI-l)?(r=-1,h=!0):r=-1;h?(t+=r*g,f+=B*g*b):(t+=n/(2*b)*r,f+=B*k);d.x!==
|
|
114
|
+
w&&(t=d.x);d.y!==e&&(f=d.y);return{x:t+c*Math.cos(a),y:f-c*Math.sin(a)}}});p.prototype.callbacks.push(function(a){!1!==a.options.connectors.enabled&&(e(a),this.pathfinder=new H(this),this.pathfinder.update(!0))});return H});G(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"],b["Core/Axis/Tick.js"],b["Core/Utilities.js"],b["Core/Axis/TreeGridAxis.js"]],function(b,p,v,u,z,m,h){var y=this&&this.__extends||
|
|
115
|
+
function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var c in d)d.hasOwnProperty(c)&&(a[c]=d[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),d=u.series,e=u.seriesTypes.xrange,l=m.extend,q=m.isNumber,C=m.merge;h.compose(b,p,d,z);b=function(d){function b(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;
|
|
116
|
+
a.options=void 0;a.points=void 0;return a}y(b,d);b.prototype.drawPoint=function(a,c){var d=this.options,b=this.chart.renderer,l=a.shapeArgs,g=a.plotY,h=a.graphic,m=a.selected&&"select",p=d.stacking&&!d.borderRadius;if(a.options.milestone)if(q(g)&&null!==a.y&&!1!==a.visible){l=b.symbols.diamond(l.x||0,l.y||0,l.width||0,l.height||0);if(h)h[c]({d:l});else a.graphic=b.path(l).addClass(a.getClassName(),!0).add(a.group||this.group);this.chart.styledMode||a.graphic.attr(this.pointAttribs(a,m)).shadow(d.shadow,
|
|
117
|
+
null,p)}else h&&(a.graphic=h.destroy());else e.prototype.drawPoint.call(this,a,c)};b.prototype.translatePoint=function(a){e.prototype.translatePoint.call(this,a);if(a.options.milestone){var c=a.shapeArgs;var d=c.height||0;a.shapeArgs={x:(c.x||0)-d/2,y:c.y,width:d,height:d}}};b.defaultOptions=C(e.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var a=this.series,c=a.xAxis,d=
|
|
118
|
+
a.tooltipOptions.dateTimeLabelFormats,b=c.options.startOfWeek,e=a.tooltipOptions,g=e.xDateFormat,l=this.options.milestone,h="<b>"+(this.name||this.yCategory)+"</b>";if(e.pointFormat)return this.tooltipFormatter(e.pointFormat);!g&&q(this.start)&&(g=a.chart.time.getDateFormat(c.closestPointRange,this.start,b,d||{}));c=a.chart.time.dateFormat(g,this.start);a=a.chart.time.dateFormat(g,this.end);h+="<br/>";return l?h+(c+"<br/>"):h+("Start: "+c+"<br/>End: ")+(a+"<br/>")}},connectors:{type:"simpleConnect",
|
|
119
|
+
animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}});return b}(e);l(b.prototype,{keyboardMoveVertical:!1,pointArrayMap:["start","end","y"],pointClass:v,setData:d.prototype.setData});u.registerSeriesType("gantt",b);"";return b});G(b,"Core/Chart/GanttChart.js",[b["Core/Chart/Chart.js"],b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,p,v){var u=this&&this.__extends||function(){var d=function(b,
|
|
120
|
+
l){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var e in b)b.hasOwnProperty(e)&&(d[e]=b[e])};return d(b,l)};return function(b,l){function e(){this.constructor=b}d(b,l);b.prototype=null===l?Object.create(l):(e.prototype=l.prototype,new e)}}(),z=p.getOptions,m=v.isArray,h=v.merge,y=v.splat;b=function(d){function b(){return null!==d&&d.apply(this,arguments)||this}u(b,d);b.prototype.init=function(b,e){var l=z(),q=b.xAxis,p=b.yAxis,a;b.xAxis=
|
|
121
|
+
b.yAxis=void 0;var c=h(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},b,{isGantt:!0});b.xAxis=q;b.yAxis=p;c.xAxis=(m(b.xAxis)?b.xAxis:[b.xAxis||{},{}]).map(function(c,d){1===d&&(a=0);return h(l.xAxis,{grid:{enabled:!0},opposite:!0,linkedTo:a},c,{type:"datetime"})});c.yAxis=y(b.yAxis||{}).map(function(a){return h(l.yAxis,{grid:{enabled:!0},staticScale:50,reversed:!0,type:a.categories?a.type:"treegrid"},a)});d.prototype.init.call(this,
|
|
122
|
+
c,e)};return b}(b);(function(d){d.ganttChart=function(b,l,h){return new d(b,l,h)}})(b||(b={}));return b});G(b,"Core/Axis/ScrollbarAxis.js",[b["Core/Utilities.js"]],function(b){var p=b.addEvent,v=b.defined,u=b.pick;return function(){function b(){}b.compose=function(m,h){if(-1===b.composed.indexOf(m))b.composed.push(m);else return m;var y=function(b){var d=u(b.options&&b.options.min,b.min),l=u(b.options&&b.options.max,b.max);return{axisMin:d,axisMax:l,scrollMin:v(b.dataMin)?Math.min(d,b.min,b.dataMin,
|
|
123
|
+
u(b.threshold,Infinity)):d,scrollMax:v(b.dataMax)?Math.max(l,b.max,b.dataMax,u(b.threshold,-Infinity)):l}};p(m,"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),p(b.scrollbar,"changed",function(d){var e=y(b),h=e.axisMax,m=e.scrollMin,p=e.scrollMax-m;v(e.axisMin)&&v(h)&&(b.horiz&&!b.reversed||!b.horiz&&b.reversed?
|
|
124
|
+
(e=m+p*this.to,m+=p*this.from):(e=m+p*(1-this.from),m+=p*(1-this.to)),this.shouldUpdateExtremes(d.DOMType)?b.setExtremes(m,e,!0,"mousemove"!==d.DOMType&&"touchmove"!==d.DOMType,d):this.setRange(this.from,this.to))}))});p(m,"afterRender",function(){var b=y(this),e=b.scrollMin,l=b.scrollMax;b=this.scrollbar;var h=this.axisTitleMargin+(this.titleOffset||0),m=this.chart.scrollbarsOffsets,p=this.options.margin||0;b&&(this.horiz?(this.opposite||(m[1]+=h),b.position(this.left,this.top+this.height+2+m[1]-
|
|
125
|
+
(this.opposite?p:0),this.width,this.height),this.opposite||(m[1]+=p),h=1):(this.opposite&&(m[0]+=h),b.position(this.left+this.width+2+m[0]-(this.opposite?0:p),this.top,this.width,this.height),this.opposite&&(m[0]+=p),h=0),m[h]+=b.size+b.options.margin,isNaN(e)||isNaN(l)||!v(this.min)||!v(this.max)||this.min===this.max?b.setRange(0,1):(m=(this.min-e)/(l-e),e=(this.max-e)/(l-e),this.horiz&&!this.reversed||!this.horiz&&this.reversed?b.setRange(m,e):b.setRange(1-e,1-m)))});p(m,"afterGetOffset",function(){var b=
|
|
126
|
+
this.horiz?2:1,e=this.scrollbar;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=e.size+e.options.margin)});return m};b.composed=[];return b}()});G(b,"Core/ScrollbarDefaults.js",[b["Core/Globals.js"],b["Core/Color/Palette.js"]],function(b,p){return{height:b.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:p.neutralColor20,barBorderWidth:1,barBorderColor:p.neutralColor20,buttonArrowColor:p.neutralColor80,
|
|
127
|
+
buttonBackgroundColor:p.neutralColor10,buttonBorderColor:p.neutralColor20,buttonBorderWidth:1,rifleColor:p.neutralColor80,trackBackgroundColor:p.neutralColor5,trackBorderColor:p.neutralColor5,trackBorderWidth:1}});G(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,p,v,u,z){var m=b.defaultOptions,h=z.addEvent,y=z.correctFloat,d=z.defined,e=z.destroyObjectProperties,l=z.fireEvent,
|
|
128
|
+
q=z.merge,C=z.pick,J=z.removeEvent;b=function(){function b(a,c,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=void 0;this.y=this.x=0;this.init(a,c,b)}b.compose=function(a){v.compose(a,b)};b.swapXY=
|
|
129
|
+
function(a,c){c&&a.forEach(function(a){for(var c=a.length,b,d=0;d<c;d+=2)b=a[d+1],"number"===typeof b&&(a[d+1]=a[d+2],a[d+2]=b)});return a};b.prototype.addEvents=function(){var a=this.options.inverted?[1,0]:[0,1],c=this.scrollbarButtons,b=this.scrollbarGroup.element,d=this.track.element,e=this.mouseDownHandler.bind(this),g=this.mouseMoveHandler.bind(this),l=this.mouseUpHandler.bind(this);a=[[c[a[0]].element,"click",this.buttonToMinClick.bind(this)],[c[a[1]].element,"click",this.buttonToMaxClick.bind(this)],
|
|
130
|
+
[d,"click",this.trackClick.bind(this)],[b,"mousedown",e],[b.ownerDocument,"mousemove",g],[b.ownerDocument,"mouseup",l]];p.hasTouch&&a.push([b,"touchstart",e],[b.ownerDocument,"touchmove",g],[b.ownerDocument,"touchend",l]);a.forEach(function(a){h.apply(null,a)});this._events=a};b.prototype.buttonToMaxClick=function(a){var b=(this.to-this.from)*C(this.options.step,.2);this.updatePosition(this.from+b,this.to+b);l(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};b.prototype.buttonToMinClick=
|
|
131
|
+
function(a){var b=y(this.to-this.from)*C(this.options.step,.2);this.updatePosition(y(this.from-b),y(this.to-b));l(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};b.prototype.cursorToScrollbarPosition=function(a){var b=this.options;b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}};b.prototype.destroy=function(){var a=this,b=a.chart.scroller;a.removeEvents();
|
|
132
|
+
["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(b){a[b]&&a[b].destroy&&(a[b]=a[b].destroy())});b&&a===b.scrollbar&&(b.scrollbar=null,e(b.scrollbarButtons))};b.prototype.drawScrollbarButton=function(a){var c=this.renderer,d=this.scrollbarButtons,e=this.options,h=this.size,g=c.g().add(this.group);d.push(g);g=c.rect().addClass("highcharts-scrollbar-button").add(g);this.chart.styledMode||g.attr({stroke:e.buttonBorderColor,"stroke-width":e.buttonBorderWidth,fill:e.buttonBackgroundColor});
|
|
133
|
+
g.attr(g.crisp({x:-.5,y:-.5,width:h+1,height:h+1,r:e.buttonBorderRadius},g.strokeWidth()));g=c.path(b.swapXY([["M",h/2+(a?-1:1),h/2-3],["L",h/2+(a?-1:1),h/2+3],["L",h/2+(a?2:-2),h/2]],e.vertical)).addClass("highcharts-scrollbar-arrow").add(d[a]);this.chart.styledMode||g.attr({fill:e.buttonArrowColor})};b.prototype.init=function(a,b,d){this.scrollbarButtons=[];this.renderer=a;this.userOptions=b;this.options=q(u,m.scrollbar,b);this.chart=d;this.size=C(this.options.size,this.options.height);b.enabled&&
|
|
134
|
+
(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 b=this.chart.pointer.normalize(a),d=this.options.vertical?"chartY":"chartX",e=this.initPositions||[];!this.grabbedCenter||a.touches&&0===a.touches[0][d]||(b=this.cursorToScrollbarPosition(b)[d],d=this[d],d=b-
|
|
135
|
+
d,this.hasDragged=!0,this.updatePosition(e[0]+d,e[1]+d),this.hasDragged&&l(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};b.prototype.mouseUpHandler=function(a){this.hasDragged&&l(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=function(a,b,d,e){var c=this.options.vertical,g=this.rendered?"animate":"attr",h=0;this.x=a;this.y=b+
|
|
136
|
+
this.trackBorderWidth;this.width=d;this.xOffset=this.height=e;this.yOffset=h;c?(this.width=this.yOffset=d=h=this.size,this.xOffset=b=0,this.barWidth=e-2*d,this.x=a+=this.options.margin):(this.height=this.xOffset=e=b=this.size,this.barWidth=d-2*e,this.y+=this.options.margin);this.group[g]({translateX:a,translateY:this.y});this.track[g]({width:d,height:e});this.scrollbarButtons[1][g]({translateX:c?0:d-b,translateY:c?e-h:0})};b.prototype.removeEvents=function(){this._events.forEach(function(a){J.apply(null,
|
|
137
|
+
a)});this._events.length=0};b.prototype.render=function(){var a=this.renderer,c=this.options,d=this.size,e=this.chart.styledMode,h=a.g("scrollbar").attr({zIndex:c.zIndex,translateY:-99999}).add();this.group=h;this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:c.trackBorderRadius||0,height:d,width:d}).add(h);e||this.track.attr({fill:c.trackBackgroundColor,stroke:c.trackBorderColor,"stroke-width":c.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%
|
|
138
|
+
2/2});this.scrollbarGroup=a.g().add(h);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:d,width:d,r:c.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a.path(b.swapXY([["M",-3,d/4],["L",-3,2*d/3],["M",0,d/4],["L",0,2*d/3],["M",3,d/4],["L",3,2*d/3]],c.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);e||(this.scrollbar.attr({fill:c.barBackgroundColor,stroke:c.barBorderColor,"stroke-width":c.barBorderWidth}),this.scrollbarRifles.attr({stroke:c.rifleColor,
|
|
139
|
+
"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,b){var c=this.options,e=c.vertical,h=c.minWidth,g=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(d(g)){var m=g*Math.min(b,1);a=Math.max(a,0);var q=Math.ceil(g*a);this.calculatedWidth=
|
|
140
|
+
m=y(m-q);m<h&&(q=(g-h+m)*a,m=h);h=Math.floor(q+this.xOffset+this.yOffset);g=m/2-.5;this.from=a;this.to=b;e?(this.scrollbarGroup[l]({translateY:h}),this.scrollbar[l]({height:m}),this.scrollbarRifles[l]({translateY:g}),this.scrollbarTop=h,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:h}),this.scrollbar[l]({width:m}),this.scrollbarRifles[l]({translateX:g}),this.scrollbarLeft=h,this.scrollbarTop=0);12>=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===c.showFull&&(0>=a&&1<=
|
|
141
|
+
b?this.group.hide():this.group.show());this.rendered=!0}};b.prototype.shouldUpdateExtremes=function(a){return C(this.options.liveRedraw,p.svg&&!p.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===a||"touchend"===a||!d(a)};b.prototype.trackClick=function(a){var b=this.chart.pointer.normalize(a),d=this.to-this.from,e=this.y+this.scrollbarTop,h=this.x+this.scrollbarLeft;this.options.vertical&&b.chartY>e||!this.options.vertical&&b.chartX>h?this.updatePosition(this.from+d,this.to+d):this.updatePosition(this.from-
|
|
142
|
+
d,this.to-d);l(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};b.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,q(!0,this.options,a),this.chart)};b.prototype.updatePosition=function(a,b){1<b&&(a=y(1-y(b-a)),b=1);0>a&&(b=y(b-a),a=0);this.from=a;this.to=b};b.defaultOptions=u;return b}();m.scrollbar=q(!0,b.defaultOptions,m.scrollbar);return b});G(b,"Extensions/RangeSelector.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Globals.js"],
|
|
143
|
+
b["Core/DefaultOptions.js"],b["Core/Color/Palette.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,p,v,u,z,m,h){function y(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),c="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&c?"datetime-local":b?"date":c?"time":"text"}var d=u.defaultOptions,e=h.addEvent,l=h.createElement,q=h.css,C=h.defined,J=h.destroyObjectProperties,E=h.discardElement,
|
|
144
|
+
a=h.extend,c=h.find,n=h.fireEvent,I=h.isNumber,H=h.merge,g=h.objectEach,F=h.pad,G=h.pick,M=h.pInt,D=h.splat;a(d,{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",inputEnabled:!0,inputPosition:{align:"right",
|
|
145
|
+
x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:z.highlightColor80,cursor:"pointer"},labelStyle:{color:z.neutralColor60}}});a(d.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var L=function(){function c(a){this.buttons=void 0;this.buttonOptions=c.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a;this.init(a)}c.prototype.clickButton=function(a,c){var d=this.chart,f=this.buttonOptions[a],
|
|
146
|
+
k=d.xAxis[0],g=d.scroller&&d.scroller.getUnionExtremes()||k||{},h=g.dataMin,l=g.dataMax,m=k&&Math.round(Math.min(k.max,G(l,k.max))),w=f.type;g=f._range;var q,p=f.dataGrouping;if(null!==h&&null!==l){d.fixedRange=g;this.setSelected(a);p&&(this.forcedDataGrouping=!0,b.prototype.setDataGrouping.call(k||{chart:this.chart},p,!1),this.frozenStates=f.preserveDataGrouping);if("month"===w||"year"===w)if(k){w={range:f,max:m,chart:d,dataMin:h,dataMax:l};var u=k.minFromRange.call(w);I(w.newMax)&&(m=w.newMax)}else g=
|
|
147
|
+
f;else if(g)u=Math.max(m-g,h),m=Math.min(u+g,l);else if("ytd"===w)if(k)"undefined"===typeof l&&(h=Number.MAX_VALUE,l=Number.MIN_VALUE,d.series.forEach(function(a){a=a.xData;h=Math.min(a[0],h);l=Math.max(a[a.length-1],l)}),c=!1),m=this.getYTDExtremes(l,h,d.time.useUTC),u=q=m.min,m=m.max;else{this.deferredYTDClick=a;return}else"all"===w&&k&&(d.navigator&&d.navigator.baseSeries[0]&&(d.navigator.baseSeries[0].xAxis.options.range=void 0),u=h,m=l);C(u)&&(u+=f._offsetMin);C(m)&&(m+=f._offsetMax);this.dropdown&&
|
|
148
|
+
(this.dropdown.selectedIndex=a+1);if(k)k.setExtremes(u,m,G(c,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:f});else{var A=D(d.options.xAxis)[0];var v=A.range;A.range=g;var x=A.min;A.min=q;e(d,"load",function(){A.range=v;A.min=x})}n(this,"afterBtnClick")}};c.prototype.setSelected=function(a){this.selected=this.options.selected=a};c.prototype.init=function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||b.defaultButtons.slice(),d=c.selected,k=function(){var a=b.minInput,f=b.maxInput;
|
|
149
|
+
a&&a.blur&&n(a,"blur");f&&f.blur&&n(f,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=f;this.eventsToUnbind=[];this.eventsToUnbind.push(e(a.container,"mousedown",k));this.eventsToUnbind.push(e(a,"resize",k));f.forEach(b.computeButtonRange);"undefined"!==typeof d&&f[d]&&this.clickButton(d,!1);this.eventsToUnbind.push(e(a,"load",function(){a.xAxis&&a.xAxis[0]&&e(a.xAxis[0],"setExtremes",function(f){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==f.trigger&&"updatedData"!==f.trigger&&
|
|
150
|
+
b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};c.prototype.updateButtonStates=function(){var a=this,b=this.chart,c=this.dropdown,f=b.xAxis[0],d=Math.round(f.max-f.min),e=!f.hasVisibleSeries,g=b.scroller&&b.scroller.getUnionExtremes()||f,h=g.dataMin,l=g.dataMax;b=a.getYTDExtremes(l,h,b.time.useUTC);var n=b.min,m=b.max,q=a.selected,p=I(q),u=a.options.allButtonsEnabled,A=a.buttons;a.buttonOptions.forEach(function(b,k){var r=b._range,g=b.type,t=b.count||1,B=A[k],w=0,K=b._offsetMax-
|
|
151
|
+
b._offsetMin;b=k===q;var T=r>l-h,N=r<f.minRange,R=!1,S=!1;r=r===d;("month"===g||"year"===g)&&d+36E5>=864E5*{month:28,year:365}[g]*t-K&&d-36E5<=864E5*{month:31,year:366}[g]*t+K?r=!0:"ytd"===g?(r=m-n+K===d,R=!b):"all"===g&&(r=f.max-f.min>=l-h,S=!b&&p&&r);g=!u&&(T||N||S||e);t=b&&r||r&&!p&&!R||b&&a.frozenStates;g?w=3:t&&(p=!0,w=2);B.state!==w&&(B.setState(w),c&&(c.options[k+1].disabled=g,2===w&&(c.selectedIndex=k+1)),0===w&&q===k&&a.setSelected())})};c.prototype.computeButtonRange=function(a){var b=a.type,
|
|
152
|
+
c=a.count||1,f={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(f[b])a._range=f[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=G(a.offsetMin,0);a._offsetMax=G(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};c.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,
|
|
153
|
+
c):0};c.prototype.setInputValue=function(a,b){var c=this.options,f=this.chart.time,d="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(d){var e=d.getAttribute("data-hc-time");e=C(e)?Number(e):void 0;C(b)&&(C(e)&&d.setAttribute("data-hc-time-previous",e),d.setAttribute("data-hc-time",b),e=b);d.value=f.dateFormat(this.inputTypeFormats[d.type]||c.inputEditDateFormat,e);a&&a.attr({text:f.dateFormat(c.inputDateFormat,e)})}};c.prototype.setInputExtremes=function(a,b,c){if(a=
|
|
154
|
+
"min"===a?this.minInput:this.maxInput){var f=this.inputTypeFormats[a.type],d=this.chart.time;f&&(b=d.dateFormat(f,b),a.min!==b&&(a.min=b),c=d.dateFormat(f,c),a.max!==c&&(a.max=c))}};c.prototype.showInput=function(a){var b="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var c="text"===a.type,f=this.inputGroup,d=f.translateX;f=f.translateY;var e=this.options.inputBoxWidth;q(a,{width:c?b.width+(e?-2:20)+"px":"auto",height:c?b.height-2+"px":
|
|
155
|
+
"auto",border:"2px solid silver"});c&&e?q(a,{left:d+b.x+"px",top:f+"px"}):q(a,{left:Math.min(Math.round(b.x+d-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:f-(a.offsetHeight-b.height)/2+"px"})}};c.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&q(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};c.prototype.defaultInputDateParser=function(a,b,c){var f=a.split("/").join("-").split(" ").join("T");-1===f.indexOf("T")&&(f+="T00:00");if(b)f+="Z";
|
|
156
|
+
else{var d;if(d=v.isSafari)d=f,d=!(6<d.length&&(d.lastIndexOf("-")===d.length-6||d.lastIndexOf("+")===d.length-6));d&&(d=(new Date(f)).getTimezoneOffset()/60,f+=0>=d?"+"+F(-d)+":00":"-"+F(d)+":00")}f=Date.parse(f);I(f)||(a=a.split("-"),f=Date.UTC(M(a[0]),M(a[1])-1,M(a[2])));c&&b&&I(f)&&(f+=c.getTimezoneOffset(f));return f};c.prototype.drawInput=function(b){function c(){var a=g.getInputValue(b),f=e.xAxis[0],c=e.scroller&&e.scroller.xAxis?e.scroller.xAxis:f,d=c.dataMin;c=c.dataMax;var r=g.maxInput,
|
|
157
|
+
k=g.minInput;a!==Number(u.getAttribute("data-hc-time-previous"))&&I(a)&&(u.setAttribute("data-hc-time-previous",a),m&&r&&I(d)?a>Number(r.getAttribute("data-hc-time"))?a=void 0:a<d&&(a=d):k&&I(c)&&(a<Number(k.getAttribute("data-hc-time"))?a=void 0:a>c&&(a=c)),"undefined"!==typeof a&&f.setExtremes(m?a:f.min,m?f.max:a,void 0,void 0,{trigger:"rangeSelectorInput"}))}var e=this.chart,f=this.div,r=this.inputGroup,g=this,k=e.renderer.style||{},h=e.renderer,n=e.options.rangeSelector,m="min"===b,p=d.lang[m?
|
|
158
|
+
"rangeSelectorFrom":"rangeSelectorTo"]||"";p=h.label(p,0).addClass("highcharts-range-label").attr({padding:p?2:0,height:p?n.inputBoxHeight:0}).add(r);h=h.label("",0).addClass("highcharts-range-input").attr({padding:2,width:n.inputBoxWidth,height:n.inputBoxHeight,"text-align":"center"}).on("click",function(){g.showInput(b);g[b+"Input"].focus()});e.styledMode||h.attr({stroke:n.inputBoxBorderColor,"stroke-width":1});h.add(r);var u=l("input",{name:b,className:"highcharts-range-selector"},void 0,f);u.setAttribute("type",
|
|
159
|
+
y(n.inputDateFormat||"%b %e, %Y"));e.styledMode||(p.css(H(k,n.labelStyle)),h.css(H({color:z.neutralColor80},k,n.inputStyle)),q(u,a({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:k.fontSize,fontFamily:k.fontFamily,top:"-9999em"},n.inputStyle)));u.onfocus=function(){g.showInput(b)};u.onblur=function(){u===v.doc.activeElement&&c();g.hideInput(b);g.setInputValue(b);u.blur()};var A=!1;u.onchange=function(){A||(c(),g.hideInput(b),
|
|
160
|
+
u.blur())};u.onkeypress=function(a){13===a.keyCode&&c()};u.onkeydown=function(a){A=!0;38!==a.keyCode&&40!==a.keyCode||c()};u.onkeyup=function(){A=!1};return{dateBox:h,input:u,label:p}};c.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}};c.prototype.getYTDExtremes=function(a,b,c){var f=this.chart.time,d=new f.Date(a),e=f.get("FullYear",d);c=c?f.Date.UTC(e,
|
|
161
|
+
0,1):+new f.Date(e,0,1);b=Math.max(b,c);d=d.getTime();return{max:Math.min(a||d,d),min:b}};c.prototype.render=function(a,b){var c=this.chart,f=c.renderer,d=c.container,e=c.options,g=e.rangeSelector,k=G(e.chart.style&&e.chart.style.zIndex,0)+1;e=g.inputEnabled;if(!1!==g.enabled){this.rendered||(this.group=f.g("range-selector-group").attr({zIndex:7}).add(),this.div=l("div",void 0,{position:"relative",height:0,zIndex:k}),this.buttonOptions.length&&this.renderButtons(),d.parentNode&&d.parentNode.insertBefore(this.div,
|
|
162
|
+
d),e&&(this.inputGroup=f.g("input-group").add(this.group),f=this.drawInput("min"),this.minDateBox=f.dateBox,this.minLabel=f.label,this.minInput=f.input,f=this.drawInput("max"),this.maxDateBox=f.dateBox,this.maxLabel=f.label,this.maxInput=f.input));if(e&&(this.setInputValue("min",a),this.setInputValue("max",b),a=c.scroller&&c.scroller.getUnionExtremes()||c.xAxis[0]||{},C(a.dataMin)&&C(a.dataMax)&&(c=c.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-
|
|
163
|
+
c),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+c,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}};c.prototype.renderButtons=function(){var a=this,b=this.buttons,c=this.options,f=d.lang,g=this.chart.renderer,h=H(c.buttonTheme),m=h&&h.states,q=h.width||28;delete h.width;delete h.states;this.buttonGroup=
|
|
164
|
+
g.g("range-selector-buttons").add(this.group);var p=this.dropdown=l("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);e(p,"touchstart",function(){p.style.fontSize="16px"});[[v.isMS?"mouseover":"mouseenter"],[v.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(f){var c=f[0],d=f[1];e(p,c,function(){var f=b[a.currentButtonIndex()];f&&n(f.element,d||c)})});this.zoomText=g.label(f&&f.rangeSelectorZoom||
|
|
165
|
+
"",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),h["stroke-width"]=G(h["stroke-width"],0));l("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,p);this.buttonOptions.forEach(function(f,c){l("option",{textContent:f.title||f.text},void 0,p);b[c]=g.button(f.text,0,0,function(b){var d=f.events&&f.events.click,e;d&&(e=d.call(f,b));!1!==e&&a.clickButton(c);a.isActive=
|
|
166
|
+
!0},h,m&&m.hover,m&&m.select,m&&m.disabled).attr({"text-align":"center",width:q}).add(a.buttonGroup);f.title&&b[c].attr("title",f.title)})};c.prototype.alignElements=function(){var a=this,b=this.buttonGroup,c=this.buttons,f=this.chart,d=this.group,e=this.inputGroup,g=this.options,h=this.zoomText,l=f.options,n=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=g.buttonPosition;var m=g.inputPosition,q=g.verticalAlign,p=function(b,c){return n&&a.titleCollision(f)&&"top"===
|
|
167
|
+
q&&"right"===c.align&&c.y-b.getBBox().height-12<(n.y||0)+(n.height||0)+f.spacing[0]?-40:0},u=f.plotLeft;if(d&&l&&m){var A=l.x-f.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var v=0;h&&(v+=h.getBBox().width+5);c.forEach(function(a,b){v+=a.width;b!==c.length-1&&(v+=g.buttonSpacing)});this.initialButtonGroupWidth=v}u-=f.spacing[3];this.updateButtonStates();h=p(b,l);this.alignButtonGroup(h);d.placed=b.placed=f.hasLoaded}b=0;e&&(b=p(e,m),"left"===m.align?A=u:"right"===m.align&&
|
|
168
|
+
(A=-Math.max(f.axisOffset[1],-b)),e.align({y:m.y,width:e.getBBox().width,align:m.align,x:m.x+A-2},!0,f.spacingBox),e.placed=f.hasLoaded);this.handleCollision(b);d.align({verticalAlign:q},!0,f.spacingBox);e=d.alignAttr.translateY;b=d.getBBox().height+20;p=0;"bottom"===q&&(p=(p=f.legend&&f.legend.options)&&"bottom"===p.verticalAlign&&p.enabled&&!p.floating?f.legend.legendHeight+G(p.margin,10):0,b=b+p-20,p=e-b-(g.floating?0:g.y)-(f.titleOffset?f.titleOffset[2]:0)-10);if("top"===q)g.floating&&(p=0),f.titleOffset&&
|
|
169
|
+
f.titleOffset[0]&&(p=f.titleOffset[0]),p+=f.margin[0]-f.spacing[0]||0;else if("middle"===q)if(m.y===l.y)p=e;else if(m.y||l.y)p=0>m.y||0>l.y?p-Math.min(m.y,l.y):e-b;d.translate(g.x,g.y+Math.floor(p));l=this.minInput;m=this.maxInput;e=this.dropdown;g.inputEnabled&&l&&m&&(l.style.marginTop=d.translateY+"px",m.style.marginTop=d.translateY+"px");e&&(e.style.marginTop=d.translateY+"px")}};c.prototype.alignButtonGroup=function(a,b){var c=this.chart,f=this.buttonGroup,d=this.options.buttonPosition,e=c.plotLeft-
|
|
170
|
+
c.spacing[3],g=d.x-c.spacing[3];"right"===d.align?g+=a-e:"center"===d.align&&(g-=e/2);f&&f.align({y:d.y,width:G(b,this.initialButtonGroupWidth),align:d.align,x:g},!0,c.spacingBox)};c.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,c=this.options,f=this.zoomText,d=b.hasLoaded?"animate":"attr",e=c.buttonPosition,g=b.plotLeft,h=g;f&&"hidden"!==f.visibility&&(f[d]({x:G(g+e.x,g)}),h+=e.x+f.getBBox().width+5);this.buttonOptions.forEach(function(b,f){if("hidden"!==a[f].visibility)a[f][d]({x:h}),
|
|
171
|
+
h+=a[f].width+c.buttonSpacing;else a[f][d]({x:g})})};c.prototype.handleCollision=function(a){var b=this,c=this.chart,f=this.buttonGroup,d=this.inputGroup,e=this.options,g=e.buttonPosition,k=e.dropdown,h=e.inputPosition;e=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(d&&f){var c=d.alignAttr.translateX+d.alignOptions.x-a+d.getBBox().x+2,e=d.alignOptions.width,k=f.alignAttr.translateX+f.getBBox().x;return k+b>c&&c+e>k&&g.y<h.y+
|
|
172
|
+
d.getBBox().height}return!1},m=function(){d&&f&&d.attr({translateX:d.alignAttr.translateX+(c.axisOffset[1]>=-a?0:-a),translateY:d.alignAttr.translateY+f.getBBox().height+10})};if(f){if("always"===k){this.collapseButtons(a);l(e())&&m();return}"never"===k&&this.expandButtons()}d&&f?h.align===g.align||l(this.initialButtonGroupWidth+20)?"responsive"===k?(this.collapseButtons(a),l(e())&&m()):m():"responsive"===k&&this.expandButtons():f&&"responsive"===k&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):
|
|
173
|
+
this.expandButtons())};c.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,f=this.chart,d=this.dropdown,e=this.options,g=this.zoomText,k=f.userOptions.rangeSelector&&f.userOptions.rangeSelector.buttonTheme||{},h=function(a){return{text:a?a+" \u25be":"\u25be",width:"auto",paddingLeft:G(e.buttonTheme.paddingLeft,k.padding,8),paddingRight:G(e.buttonTheme.paddingRight,k.padding,8)}};g&&g.hide();var l=!1;c.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(h(a.text)),
|
|
174
|
+
l=!0)});l||(d&&(d.selectedIndex=0),b[0].show(),b[0].attr(h(this.zoomText&&this.zoomText.textStr)));c=e.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};c.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,c=this.options,f=this.zoomText;this.hideDropdown();f&&f.show();b.forEach(function(b,f){f=a[f];f.show();f.attr({text:b.text,width:c.buttonTheme.width||28,paddingLeft:G(c.buttonTheme.paddingLeft,
|
|
175
|
+
"unset"),paddingRight:G(c.buttonTheme.paddingRight,"unset")});2>f.state&&f.setState(0)});this.positionButtons()};c.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};c.prototype.showDropdown=function(){var a=this.buttonGroup,b=this.buttons,c=this.chart,f=this.dropdown;if(a&&f){var d=a.translateX;a=a.translateY;b=b[this.currentButtonIndex()].getBBox();q(f,{left:c.plotLeft+d+"px",top:a+.5+"px",width:b.width+"px",height:b.height+"px"});this.hasVisibleDropdown=
|
|
176
|
+
!0}};c.prototype.hideDropdown=function(){var a=this.dropdown;a&&(q(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};c.prototype.getHeight=function(){var a=this.options,b=this.group,c=a.y,f=a.buttonPosition.y,d=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=b?b.getBBox(!0).height+13+c:0;b=Math.min(d,f);if(0>d&&0>f||0<d&&0<f)a+=Math.abs(b);return a};c.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)};c.prototype.update=
|
|
177
|
+
function(a){var b=this.chart;H(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};c.prototype.destroy=function(){var a=this,b=a.minInput,d=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(a){return a()}),a.eventsToUnbind=void 0);J(a.buttons);b&&(b.onfocus=b.onblur=b.onchange=null);d&&(d.onfocus=d.onblur=d.onchange=null);g(a,function(b,d){b&&"chart"!==d&&(b instanceof m?b.destroy():b instanceof window.HTMLElement&&E(b));b!==c.prototype[d]&&(a[d]=null)},this)};return c}();
|
|
178
|
+
L.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"}];L.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"};b.prototype.minFromRange=function(){var a=this.range,b=a.type,c=this.max,
|
|
179
|
+
d=this.chart.time,f=function(a,c){var f="year"===b?"FullYear":"Month",e=new d.Date(a),g=d.get(f,e);d.set(f,e,g+c);g===d.get(f,e)&&d.set("Date",e,0);return e.getTime()-a};if(I(a)){var e=c-a;var g=a}else e=c+f(c,-a.count),this.chart&&(this.chart.fixedRange=c-e);var h=G(this.dataMin,Number.MIN_VALUE);I(e)||(e=h);e<=h&&(e=h,"undefined"===typeof g&&(g=f(e,a.count)),this.newMax=Math.min(e+g,this.dataMax));I(c)||(e=void 0);return e};if(!v.RangeSelector){var x=[],O=function(a){function b(){g&&(d=a.xAxis[0].getExtremes(),
|
|
180
|
+
f=a.legend,l=g&&g.options.verticalAlign,I(d.min)&&g.render(d.min,d.max),f.display&&"top"===l&&l===f.options.verticalAlign&&(h=H(a.spacingBox),h.y="vertical"===f.options.layout?a.plotTop:h.y+g.getHeight(),f.group.placed=!1,f.align(h)))}var d,g=a.rangeSelector,f,h,l;g&&(c(x,function(b){return b[0]===a})||x.push([a,[e(a.xAxis[0],"afterSetExtremes",function(a){g&&g.render(a.min,a.max)}),e(a,"redraw",b)]]),b())};e(p,"afterGetContainer",function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&
|
|
181
|
+
(this.rangeSelector=new L(this))});e(p,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(I(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||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))});e(p,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var c=this.extraBottomMargin,
|
|
182
|
+
d=this.extraTopMargin;b&&b.enabled&&!C(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new L(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(O(this),b=b&&b.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==c||this.extraTopMargin!==d)&&(this.isDirtyBox=!0)});e(p,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&
|
|
183
|
+
(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});e(p,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});p.prototype.callbacks.push(O);e(p,"destroy",function(){for(var a=0;a<x.length;a++){var b=x[a];if(b[0]===this){b[1].forEach(function(a){return a()});x.splice(a,1);break}}});v.RangeSelector=L}return L});G(b,"Core/Axis/NavigatorAxis.js",
|
|
184
|
+
[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,p){var v=b.isTouchDevice,u=p.addEvent,z=p.correctFloat,m=p.defined,h=p.isNumber,y=p.pick,d=function(){function b(b){this.axis=b}b.prototype.destroy=function(){this.axis=void 0};b.prototype.toFixedRange=function(b,d,e,p){var l=this.axis,a=l.chart;a=a&&a.fixedRange;var c=(l.pointRange||0)/2;b=y(e,l.translate(b,!0,!l.horiz));d=y(p,l.translate(d,!0,!l.horiz));l=a&&(d-b)/a;m(e)||(b=z(b+c));m(p)||(d=z(d-c));.7<l&&1.3>l&&(p?b=d-a:d=b+a);h(b)&&h(d)||
|
|
185
|
+
(b=d=void 0);return{min:b,max:d}};return b}();return function(){function b(){}b.compose=function(b){b.keepProps.push("navigatorAxis");u(b,"init",function(){this.navigatorAxis||(this.navigatorAxis=new d(this))});u(b,"zoom",function(b){var d=this.chart.options,e=d.navigator,h=this.navigatorAxis,a=d.chart.pinchType,c=d.rangeSelector;d=d.chart.zoomType;this.isXAxis&&(e&&e.enabled||c&&c.enabled)&&("y"===d?b.zoomed=!1:(!v&&"xy"===d||v&&"xy"===a)&&this.options.range&&(e=h.previousZoom,m(b.newMin)?h.previousZoom=
|
|
186
|
+
[this.min,this.max]:e&&(b.newMin=e[0],b.newMax=e[1],h.previousZoom=void 0)));"undefined"!==typeof b.zoomed&&b.preventDefault()})};b.AdditionsClass=d;return b}()});G(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"],b["Core/DefaultOptions.js"],b["Core/Color/Palette.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Scrollbar.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],
|
|
187
|
+
function(b,p,v,u,z,m,h,y,d,e,l,q){v=v.parse;var C=u.hasTouch,G=u.isTouchDevice,E=m.defaultOptions,a=q.addEvent,c=q.clamp,n=q.correctFloat,I=q.defined,H=q.destroyObjectProperties,g=q.erase,F=q.extend,M=q.find,Q=q.isArray,D=q.isNumber,L=q.merge,x=q.pick,O=q.removeEvent,A=q.splat,k=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];b=[].filter.call(b,D);if(b.length)return Math[a].apply(0,b)};m="undefined"===typeof l.seriesTypes.areaspline?"line":"areaspline";F(E,{navigator:{height:40,
|
|
188
|
+
margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:h.neutralColor5,borderColor:h.neutralColor40},maskFill:v(h.highlightColor60).setOpacity(.3).get(),outlineColor:h.neutralColor20,outlineWidth:1,series:{type:m,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,
|
|
189
|
+
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",tickLength:0,lineWidth:0,gridLineColor:h.neutralColor10,gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",
|
|
190
|
+
style:{color:h.neutralColor40},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}}});y.getRendererType().prototype.symbols["navigator-handle"]=function(a,b,c,d,e){a=(e&&e.width||0)/2;b=Math.round(a/3)+.5;e=e&&e.height||0;return[["M",-a-1,.5],["L",a,.5],["L",a,e+.5],["L",-a-1,e+.5],["L",-a-1,.5],["M",-b,4],["L",-b,e-3],["M",b-1,4],["L",
|
|
191
|
+
b-1,e-3]]};var w=function(){function e(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)}e.prototype.drawHandle=function(a,b,c,d){var f=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+
|
|
192
|
+
this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-f)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-f/2-1)})};e.prototype.drawOutline=function(a,b,c,d){var f=this.navigatorOptions.maskInside,e=this.outline.strokeWidth(),g=e/2,h=e%2/2;e=this.outlineHeight;var r=this.scrollbarHeight||0,l=this.size,k=this.left-r,m=this.top;c?(k-=g,c=m+b+h,b=m+a+h,h=[["M",k+e,m-r-h],["L",k+e,c],["L",k,c],["L",k,b],["L",k+e,b],["L",k+e,m+l+r]],f&&h.push(["M",
|
|
193
|
+
k+e,c-g],["L",k+e,b+g])):(a+=k+r-h,b+=k+r-h,m+=g,h=[["M",k,m],["L",a,m],["L",a,m+e],["L",b,m+e],["L",b,m],["L",k+l+2*r,m]],f&&h.push(["M",a-g,m],["L",b+g,m]));this.outline[d]({d:h})};e.prototype.drawMasks=function(a,b,c,d){var f=this.left,e=this.top,g=this.height;if(c){var h=[f,f,f];var k=[e,e+a,e+b];var r=[g,g,g];var l=[a,b-a,this.size-b]}else h=[f,f+a,f+b],k=[e,e,e],r=[a,b-a,this.size-b],l=[g,g,g];this.shades.forEach(function(a,b){a[d]({x:h[b],y:k[b],width:r[b],height:l[b]})})};e.prototype.renderElements=
|
|
194
|
+
function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.renderer,g,h={cursor:d.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=g=e.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,f){a.shades[f]=e.rect().addClass("highcharts-navigator-mask"+(1===f?"-inside":"-outside")).add(g);d.styledMode||a.shades[f].attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}).css(1===f&&h)});a.outline=e.path().addClass("highcharts-navigator-outline").add(g);d.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,
|
|
195
|
+
stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=d.inverted;a.handles[c]=e.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 f=b.handles;a.handles[c].attr({fill:f.backgroundColor,stroke:f.borderColor,"stroke-width":f.lineWidth}).css(h)}})};e.prototype.update=function(a){(this.series||
|
|
196
|
+
[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();L(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};e.prototype.render=function(a,b,d,e){var f=this.chart,g=this.scrollbarHeight,h,k=this.xAxis,l=k.pointRange||0;var r=k.navigatorAxis.fake?f.xAxis[0]:k;var m=this.navigatorEnabled,p,q=this.rendered;var t=f.inverted;var B=f.xAxis[0].minRange,u=f.xAxis[0].options.maxRange;if(!this.hasDragged||I(d)){a=n(a-l/2);b=n(b+l/2);if(!D(a)||!D(b))if(q)d=
|
|
197
|
+
0,e=x(k.width,r.width);else return;this.left=x(k.left,f.plotLeft+g+(t?f.plotWidth:0));this.size=p=h=x(k.len,(t?f.plotHeight:f.plotWidth)-2*g);f=t?g:h+2*g;d=x(d,k.toPixels(a,!0));e=x(e,k.toPixels(b,!0));D(d)&&Infinity!==Math.abs(d)||(d=0,e=f);a=k.toValue(d,!0);b=k.toValue(e,!0);var v=Math.abs(n(b-a));v<B?this.grabbedLeft?d=k.toPixels(b-B-l,!0):this.grabbedRight&&(e=k.toPixels(a+B+l,!0)):I(u)&&n(v-l)>u&&(this.grabbedLeft?d=k.toPixels(b-u-l,!0):this.grabbedRight&&(e=k.toPixels(a+u+l,!0)));this.zoomedMax=
|
|
198
|
+
c(Math.max(d,e),0,p);this.zoomedMin=c(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d,e),0,p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);d=Math.round(this.zoomedMin);m&&(this.navigatorGroup.attr({visibility:"visible"}),q=q&&!this.hasDragged?"animate":"attr",this.drawMasks(d,p,t,q),this.drawOutline(d,p,t,q),this.navigatorOptions.handles.enabled&&(this.drawHandle(d,0,t,q),this.drawHandle(p,1,t,q)));this.scrollbar&&(t?(t=this.top-g,r=this.left-g+(m||!r.opposite?0:
|
|
199
|
+
(r.titleOffset||0)+r.axisTitleMargin),g=h+2*g):(t=this.top+(m?this.height:-g),r=this.left-g),this.scrollbar.position(r,t,f,g),this.scrollbar.setRange(this.zoomedMin/(h||1),this.zoomedMax/(h||1)));this.rendered=!0}};e.prototype.addMouseEvents=function(){var b=this,c=b.chart,d=c.container,e=[],g,h;b.mouseMoveHandler=g=function(a){b.onMouseMove(a)};b.mouseUpHandler=h=function(a){b.onMouseUp(a)};e=b.getPartsEvents("mousedown");e.push(a(c.renderTo,"mousemove",g),a(d.ownerDocument,"mouseup",h));C&&(e.push(a(c.renderTo,
|
|
200
|
+
"touchmove",g),a(d.ownerDocument,"touchend",h)),e.concat(b.getPartsEvents("touchstart")));b.eventsToUnbind=e;b.series&&b.series[0]&&e.push(a(b.series[0].xAxis,"foundExtremes",function(){c.navigator.modifyNavigatorAxisExtremes()}))};e.prototype.getPartsEvents=function(b){var c=this,d=[];["shades","handles"].forEach(function(f){c[f].forEach(function(e,g){d.push(a(e.element,b,function(a){c[f+"Mousedown"](a,g)}))})});return d};e.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);
|
|
201
|
+
var c=this.chart,d=this.xAxis,f=this.zoomedMin,e=this.left,g=this.size,h=this.range,k=a.chartX;c.inverted&&(k=a.chartY,e=this.top);if(1===b)this.grabbedCenter=k,this.fixedWidth=h,this.dragOffset=k-f;else{a=k-e-h/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+h>=g)if(a=g-h,this.reversedExtremes){a-=h;var l=this.getUnionExtremes().dataMin}else var r=this.getUnionExtremes().dataMax;a!==f&&(this.fixedWidth=h,b=d.navigatorAxis.toFixedRange(a,a+h,l,r),I(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),
|
|
202
|
+
Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};e.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=null};e.prototype.onMouseMove=function(a){var b=this,c=b.chart,d=b.left,f=b.navigatorSize,e=b.range,g=b.dragOffset,h=c.inverted;
|
|
203
|
+
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>f+g-e&&(c=f+g-e),b.render(0,0,c-g,c-g+e)),b.hasDragged&&b.scrollbar&&x(b.scrollbar.options.liveRedraw,u.svg&&!G&&!this.chart.isBoosting)&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};e.prototype.onMouseUp=function(a){var b=
|
|
204
|
+
this.chart,c=this.xAxis,d=this.scrollbar,f=a.DOMEvent||a,e=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 k=this.fixedExtreme;this.zoomedMax===this.size&&(k=this.reversedExtremes?d.dataMin:d.dataMax);0===this.zoomedMin&&(h=this.reversedExtremes?d.dataMax:d.dataMin);c=c.navigatorAxis.toFixedRange(this.zoomedMin,
|
|
205
|
+
this.zoomedMax,h,k);I(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:f})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&D(this.zoomedMin)&&D(this.zoomedMax)&&(b=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),
|
|
206
|
+
this.shades&&this.drawMasks(b,a,e,g),this.outline&&this.drawOutline(b,a,e,g),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,e,g),this.drawHandle(a,1,e,g)))};e.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};e.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&
|
|
207
|
+
a.forEach(function(a){O(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&O(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};e.prototype.init=function(c){var e=c.options,f=e.navigator,g=f.enabled,h=e.scrollbar,l=h.enabled;e=g?f.height:0;var m=l?h.height:0;this.handles=[];this.shades=[];this.chart=c;this.setBaseSeries();this.height=e;this.scrollbarHeight=m;this.scrollbarEnabled=l;this.navigatorEnabled=g;this.navigatorOptions=f;this.scrollbarOptions=h;this.outlineHeight=e+m;this.opposite=
|
|
208
|
+
x(f.opposite,!(g||!c.inverted));var n=this;g=n.baseSeries;h=c.xAxis.length;l=c.yAxis.length;var p=g&&g[0]&&g[0].xAxis||c.xAxis[0]||{options:{}};c.isDirtyBox=!0;n.navigatorEnabled?(n.xAxis=new b(c,L({breaks:p.options.breaks,ordinal:p.options.ordinal},f.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:h,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},c.inverted?{offsets:[m,0,-m,0],width:e}:{offsets:[0,
|
|
209
|
+
-m,0,m],height:e})),n.yAxis=new b(c,L(f.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:l,isInternal:!0,reversed:x(f.yAxis&&f.yAxis.reversed,c.yAxis[0]&&c.yAxis[0].reversed,!1),zoomEnabled:!1},c.inverted?{width:e}:{height:e})),g||f.series.data?n.updateNavigatorSeries(!1):0===c.series.length&&(n.unbindRedraw=a(c,"beforeRedraw",function(){0<c.series.length&&!n.series&&(n.setBaseSeries(),n.unbindRedraw())})),n.reversedExtremes=c.inverted&&!n.xAxis.reversed||!c.inverted&&n.xAxis.reversed,n.renderElements(),
|
|
210
|
+
n.addMouseEvents()):(n.xAxis={chart:c,navigatorAxis:{fake:!0},translate:function(a,b){var d=c.xAxis[0],e=d.getExtremes(),f=d.len-2*m,g=k("min",d.options.min,e.dataMin);d=k("max",d.options.max,e.dataMax)-g;return b?a*d/f+g:f*(a-g)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)}},n.xAxis.navigatorAxis.axis=n.xAxis,n.xAxis.navigatorAxis.toFixedRange=z.AdditionsClass.prototype.toFixedRange.bind(n.xAxis.navigatorAxis));c.options.scrollbar.enabled&&(c.scrollbar=
|
|
211
|
+
n.scrollbar=new d(c.renderer,L(c.options.scrollbar,{margin:n.navigatorEnabled?0:10,vertical:c.inverted}),c),a(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)})}));n.addBaseSeriesEvents();n.addChartEvents()};e.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:x(d&&
|
|
212
|
+
d.min,k("min",e.min,b.dataMin,c.dataMin,c.min)),dataMax:x(d&&d.max,k("max",e.max,b.dataMax,c.dataMax,c.max))});return f};e.prototype.setBaseSeries=function(a,b){var c=this.chart,d=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?M(c.series,function(a){return!a.options.isInternal}).index: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&&
|
|
213
|
+
this.updateNavigatorSeries(!0,b)};e.prototype.updateNavigatorSeries=function(a,b){var c=this,d=c.chart,e=c.baseSeries,f,g,h=c.navigatorOptions.series,k,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},m=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>e.indexOf(b)?(b&&(O(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),
|
|
214
|
+
a.chart&&a.destroy(),!1):!0});e&&e.length&&e.forEach(function(a){var n=a.navigatorSeries,r=F({color:a.color,visible:a.visible},Q(h)?E.navigator.series:h);n&&!1===c.navigatorOptions.adaptToUpdatedData||(l.name="Navigator "+e.length,f=a.options||{},k=f.navigatorOptions||{},r.dataLabels=A(r.dataLabels),g=L(f,l,r,k),g.pointRange=x(r.pointRange,k.pointRange,E.plotOptions[g.type||"line"].pointRange),r=k.data||r.data,c.hasNavigatorData=c.hasNavigatorData||!!r,g.data=r||f.data&&f.data.slice(0),n&&n.options?
|
|
215
|
+
n.update(g,b):(a.navigatorSeries=d.initSeries(g),a.navigatorSeries.baseSeries=a,m.push(a.navigatorSeries)))});if(h.data&&(!e||!e.length)||Q(h))c.hasNavigatorData=!1,h=A(h),h.forEach(function(a,b){l.name="Navigator "+(m.length+1);g=L(E.navigator.series,{color:d.series[b]&&!d.series[b].options.isInternal&&d.series[b].color||d.options.colors[b]||d.options.colors[0]},l,a);g.data=a.data;g.data&&(c.hasNavigatorData=!0,m.push(d.initSeries(g)))});a&&this.addBaseSeriesEvents()};e.prototype.addBaseSeriesEvents=
|
|
216
|
+
function(){var b=this,c=b.baseSeries||[];c[0]&&c[0].xAxis&&c[0].eventsToUnbind.push(a(c[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));c.forEach(function(c){c.eventsToUnbind.push(a(c,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));c.eventsToUnbind.push(a(c,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&c.xAxis&&c.eventsToUnbind.push(a(c,"updatedData",this.updatedDataHandler));
|
|
217
|
+
c.eventsToUnbind.push(a(c,"remove",function(){this.navigatorSeries&&(g(b.series,this.navigatorSeries),I(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};e.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData?b.xData[0]:a)},a)};e.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===
|
|
218
|
+
a.max||(a.min=b.dataMin,a.max=b.dataMax))};e.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,d=b.dataMax;b=b.max-b.min;var e=a.stickToMin,g=a.stickToMax,h=x(this.options.overscroll,0),k=a.series&&a.series[0],l=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(e){var m=c;var n=m+b}g&&(n=d+h,e||(m=Math.max(c,n-b,a.getBaseSeriesMin(k&&k.xData?k.xData[0]:-Number.MAX_VALUE))));l&&(e||g)&&D(m)&&(this.min=this.userMin=
|
|
219
|
+
m,this.max=this.userMax=n)}a.stickToMin=a.stickToMax=null};e.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);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};e.prototype.shouldStickToMin=function(a,b){b=b.getBaseSeriesMin(a.xData[0]);var c=a.xAxis;a=c.max;var d=
|
|
220
|
+
c.min;c=c.options.range;return D(a)&&D(d)?c&&0<a-b?a-b<c&&!this.chart.fixedRange:d<=b:!1};e.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(a(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);b&&a.render(b.min,b.max)}),a(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");
|
|
221
|
+
this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};e.prototype.destroy=function(){this.removeEvents();this.xAxis&&(g(this.chart.xAxis,this.xAxis),g(this.chart.axes,this.xAxis));this.yAxis&&(g(this.chart.yAxis,this.yAxis),g(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&
|
|
222
|
+
this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){H(a)},this)};return e}();u.Navigator||(u.Navigator=w,z.compose(b),a(p,"beforeShowResetZoom",function(){var a=this.options,b=a.navigator,c=a.rangeSelector;if((b&&b.enabled||c&&c.enabled)&&(!G&&"x"===a.chart.zoomType||G&&"x"===a.chart.pinchType))return!1}),a(p,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new w(this)}),a(p,"afterSetChartSize",
|
|
223
|
+
function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var e=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=x(d.left,this.plotLeft+g),b.top=b.navigatorOptions.top||this.chartHeight-b.height-g-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&"proximate"!==c.layout&&c.enabled&&!c.floating?a.legendHeight+
|
|
224
|
+
x(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));d&&e&&(this.inverted?d.options.left=e.options.left=b.left:d.options.top=e.options.top=b.top,d.setAxisSize(),e.setAxisSize())}}),a(p,"update",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(L(!0,this.options.navigator,b),L(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)}),a(p,"afterUpdate",function(a){this.navigator||this.scroller||
|
|
225
|
+
!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new w(this),x(a.redraw,!0)&&this.redraw(a.animation))}),a(p,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),a(e,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),p.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));u.Navigator=
|
|
226
|
+
w;return u.Navigator});G(b,"masters/modules/gantt.src.js",[b["Core/Globals.js"],b["Core/Chart/GanttChart.js"],b["Core/Scrollbar.js"]],function(b,p,v){b.Scrollbar=v;b.GanttChart=p;b.ganttChart=p.ganttChart;v.compose(b.Axis)})});
|
|
226
227
|
//# sourceMappingURL=gantt.js.map
|