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/boost.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highcharts JS v9.
|
|
2
|
+
Highcharts JS v9.2.2 (2021-08-24)
|
|
3
3
|
|
|
4
4
|
Boost module
|
|
5
5
|
|
|
@@ -17,55 +17,55 @@ g=c.createProgram();c.attachShader(g,l);c.attachShader(g,m);c.linkProgram(g);if(
|
|
|
17
17
|
{},g,e,n,k,y,O,F,J,x,a,I=[],p;return c&&!m()?!1:{psUniform:function(){return n},pUniform:function(){return e},fillColorUniform:function(){return k},setBubbleUniforms:function(a,l,p){var d=a.options,e=Number.MAX_VALUE,b=-Number.MAX_VALUE;c&&g&&"bubble"===a.type&&(e=h(d.zMin,H(l,!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE,e)),b=h(d.zMax,Math.max(b,p)),c.uniform1i(y,1),c.uniform1i(x,1),c.uniform1i(F,"width"!==a.options.sizeBy),c.uniform1i(O,a.options.sizeByAbsoluteValue),t("bubbleZMin",e),
|
|
18
18
|
t("bubbleZMax",b),t("bubbleZThreshold",a.options.zThreshold),t("bubbleMinSize",a.minPxSize),t("bubbleMaxSize",a.maxPxSize))},bind:function(){c&&g&&c.useProgram(g)},program:function(){return g},create:m,setUniform:t,setPMatrix:function(a){c&&g&&c.uniformMatrix4fv(e,!1,a)},setColor:function(a){c&&g&&c.uniform4f(k,a[0]/255,a[1]/255,a[2]/255,a[3])},setPointSize:function(a){c&&g&&c.uniform1f(n,a)},setSkipTranslation:function(a){c&&g&&c.uniform1i(J,!0===a?1:0)},setTexture:function(a){c&&g&&c.uniform1i(p,
|
|
19
19
|
a)},setDrawAsCircle:function(a){c&&g&&c.uniform1i(x,a?1:0)},reset:function(){c&&g&&(c.uniform1i(y,0),c.uniform1i(x,0))},setInverted:function(d){c&&g&&c.uniform1i(a,d)},destroy:function(){c&&g&&(c.deleteProgram(g),g=!1)}}}});r(b,"Extensions/Boost/WGLVBuffer.js",[],function(){return function(b,B,w){function h(){c&&(b.deleteBuffer(c),u=c=!1);t=0;q=w||2;v=[]}var c=!1,u=!1,q=w||2,m=!1,t=0,v;return{destroy:h,bind:function(){if(!c)return!1;b.vertexAttribPointer(u,q,b.FLOAT,!1,0,0)},data:v,build:function(g,
|
|
20
|
-
e,n){var k;v=g||[];if(!(v&&0!==v.length||m))return h(),!1;q=n||q;c&&b.deleteBuffer(c);m||(k=new Float32Array(v));c=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,c);b.bufferData(b.ARRAY_BUFFER,m||k,b.STATIC_DRAW);u=b.getAttribLocation(B.program(),e);b.enableVertexAttribArray(u);return!0},render:function(g,e,n){var k=m?m.length:v.length;if(!c||!k)return!1;if(!g||g>k||0>g)g=0;if(!e||e>k)e=k;b.drawArrays(b[(n||"points").toUpperCase()],g/q,(e-g)/q);return!0},allocate:function(b){t=-1;m=
|
|
21
|
-
b)},push:function(b,e,c,k){m&&(m[++t]=b,m[++t]=e,m[++t]=c,m[++t]=k)}}}});r(b,"Extensions/Boost/WGLRenderer.js",[b["Core/Color/Color.js"],b["Extensions/Boost/WGLShader.js"],b["Extensions/Boost/WGLVBuffer.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,B,w,h,c){var u=b.parse,q=h.doc,m=c.isNumber,t=c.isObject,v=c.merge,g=c.objectEach,e=c.pick;return function(c){function n(a){if(a.isSeriesBoosting){var d=!!a.options.stacking;var b=a.xData||a.options.xData||a.processedXData;
|
|
22
|
-
a.options.data).length;"treemap"===a.type?d*=12:"heatmap"===a.type?d*=6:ia[a.type]&&(d*=2);return d}return 0}function y(){f.clear(f.COLOR_BUFFER_BIT|f.DEPTH_BUFFER_BIT)}function O(a,d){function b(a){a&&(d.colorData.push(a[0]),d.colorData.push(a[1]),d.colorData.push(a[2]),d.colorData.push(a[3]))}function f(a,d,f,e,p){b(p);A.usePreallocated?(l.push(a,d,f?1:0,e||1),qa+=4):(S.push(a),S.push(d),S.push(f?1:0),S.push(e||1))}function p(){d.segments.length&&(d.segments[d.segments.length-1].to=
|
|
23
|
-
function e(){d.segments.length&&d.segments[d.segments.length-1].from===(S.length||qa)||(p(),d.segments.push({from:S.length||qa}))}function c(a,d,e,p,l){b(l);f(a+e,d);b(l);f(a,d);b(l);f(a,d+p);b(l);f(a,d+p);b(l);f(a+e,d+p);b(l);f(a+e,d)}function
|
|
24
|
-
m=k.min,h=k.max;k=a.yAxis.getExtremes();var y=k.min,R=k.max,q=a.xData||z.xData||a.processedXData,v=a.yData||z.yData||a.processedYData,F=a.zData||z.zData||a.processedZData,O=a.yAxis,H=a.xAxis,w=a.chart.plotWidth,B=!q||0===q.length,J=z.connectNulls;k=a.points||!1;var Q=!1,r=!1,E,G,L=g?a.data:q||aa,M={x:Number.MAX_VALUE,y:0},ma={x:-Number.MAX_VALUE,y:0},Ja=0,Ka=!1,D,C,P,X,N=-1,Z=!1,ha=!1,na,Y="undefined"===typeof n.index,Ea=!1,Ba=!1,K=!1,Sa=ia[a.type],Ca=!1,La=!0,Ma=!0,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
d=p["stroke-width"]||0;K=u(p.fill).rgba;K[0]/=255;K[1]/=255;K[2]/=255;"treemap"===a.type&&(d=d||1,G=u(p.stroke).rgba,G[0]/=255,G[1]/=255,G[2]/=255,c(b,l,e,f,G),d/=2);"heatmap"===a.type&&n.inverted&&(b=H.len-b,l=O.len-l,e=-e,f=-f);c(b+d,l+d,e-2*d,f-2*d,K)}});else{for(k=function(){P=L[++N];if("undefined"===typeof P)return"continue";if(Y)return"break";var b=aa&&aa[N];!B&&t(b,!0)&&b.color&&(K=u(b.color).rgba,K[0]/=255,K[1]/=255,K[2]/=255);B?(D=P[0],C=P[1],L[N+1]&&(ha=L[N+1][0]),
|
|
28
|
-
3<=P.length&&(X=P[2],P[2]>d.zMax&&(d.zMax=P[2]),P[2]<d.zMin&&(d.zMin=P[2]))):(D=P,C=v[N],L[N+1]&&(ha=L[N+1]),L[N-1]&&(Z=L[N-1]),F&&F.length&&(X=F[N],F[N]>d.zMax&&(d.zMax=F[N]),F[N]<d.zMin&&(d.zMin=F[N])));if(!J&&(null===D||null===C))return e(),"continue";ha&&ha>=m&&ha<=h&&(Ea=!0);Z&&Z>=m&&Z<=h&&(Ba=!0);
|
|
29
|
-
D,M.y=C);if(null===C&&J)return"continue";if(null===C||!La&&!Ea&&!Ba)return e(),"continue";(ha>=m||D>=m)&&(Z<=h||D<=h)&&(Ca=!0);if(!Ca&&!Ea&&!Ba)return"continue";Da&&D-Z>Da&&e();if(oa){var l;oa.some(function(a,d){var b=oa[d-1];return"x"===Ta?"undefined"!==typeof a.value&&D<=a.value?(pa[d]&&(!b||D>=b.value)&&(l=pa[d]),!0):!1:"undefined"!==typeof a.value&&C<=a.value?(pa[d]&&(!b||C>=b.value)&&(l=pa[d]),!0):!1});K=l||U||K}if(!A.useGPUTranslations&&(d.skipTranslation=!0,D=H.toPixels(D
|
|
30
|
-
!0),D>w&&"points"===d.drawMode))return"continue";d.hasMarkers&&Ca&&!1!==Q&&(a.closestPointRangePx=Math.min(a.closestPointRangePx,Math.abs(D-Q)));if(!A.useGPUTranslations&&!A.usePreallocated&&Q&&1>Math.abs(D-Q)&&r&&1>Math.abs(C-r))return A.debug.showSkipSummary&&++Ja,"continue";if(Sa){E=na;if(!1===na||"undefined"===typeof na)E=0>C?C:0;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
a);d.setUniform("translatedThreshold",b)}function I(p){if(p)R=p.chartWidth||800,Q=p.chartHeight||400;else return!1;if(!(f&&R&&Q&&d))return!1;A.debug.timeRendering&&console.time("gl rendering");f.canvas.width=R;f.canvas.height=Q;d.bind();f.viewport(0,0,R,Q);d.setPMatrix([2/R,0,0,0,0,-(2/Q),0,0,0,0,-2,0,-1,1,-1,1]);1<A.lineWidth&&!h.isMS&&f.lineWidth(A.lineWidth);l.build(r.data,"aVertexPosition",4);l.bind();d.setInverted(p.inverted);G.forEach(function(c,I){var n=c.series.options,
|
|
34
|
-
typeof n.lineWidth?n.lineWidth:1;var z=n.threshold,h=m(z),y=c.series.yAxis.getThreshold(z);z=e(n.marker?n.marker.enabled:null,c.series.xAxis.isRadial?!0:null,c.series.closestPointRangePx>2*((n.marker?n.marker.radius:10)||10));k=Y[k&&k.symbol||c.series.symbol]||Y.circle;if(0!==c.segments.length&&c.segments[0].from!==c.segments[0].to){k.isReady&&(f.bindTexture(f.TEXTURE_2D,k.handle),d.setTexture(k.handle));p.styledMode?k=c.series.markerGroup&&c.series.markerGroup.getStyle("fill"):
|
|
35
|
-
c.series.pointAttribs&&c.series.pointAttribs().fill||c.series.color,n.colorByPoint&&(k=c.series.chart.options.colors[I]));c.series.fillOpacity&&n.fillOpacity&&(k=(new b(k)).setOpacity(e(n.fillOpacity,1)).get());k=u(k).rgba;A.useAlpha||(k[3]=1);"lines"===c.drawMode&&A.useAlpha&&1>k[3]&&(k[3]/=10);"add"===n.boostBlending?(f.blendFunc(f.SRC_ALPHA,f.ONE),f.blendEquation(f.FUNC_ADD)):"mult"===n.boostBlending||"multiply"===n.boostBlending?f.blendFunc(f.DST_COLOR,f.ZERO):"darken"===
|
|
36
|
-
f.ONE),f.blendEquation(f.FUNC_MIN)):f.blendFuncSeparate(f.SRC_ALPHA,f.ONE_MINUS_SRC_ALPHA,f.ONE,f.ONE_MINUS_SRC_ALPHA);d.reset();0<c.colorData.length
|
|
37
|
-
d.setDrawAsCircle(X[c.series.type]||!1);if(0<g||"line_strip"!==c.drawMode)for(g=0;g<c.segments.length;g++)l.render(c.segments[g].from,c.segments[g].to,c.drawMode);if(c.hasMarkers&&z)for(n.marker&&m(n.marker.radius)?d.setPointSize(2*n.marker.radius):d.setPointSize(10),d.setDrawAsCircle(!0),g=0;g<c.segments.length;g++)l.render(c.segments[g].from,c.segments[g].to,"POINTS")}});A.debug.timeRendering&&console.timeEnd("gl rendering");
|
|
38
|
-
setTimeout(function(){p(a)},1)}var d=!1,l=!1,qa=0,f=!1,R=0,Q=0,S=!1,E=!1,r={},L=!1,G=[],Y={},ia={column:!0,columnrange:!0,bar:!0,area:!0,arearange:!0},X={scatter:!0,bubble:!0},A={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}};return r={allocateBufferForSingleSeries:function(a){var d=
|
|
39
|
-
pushSeries:function(a){0<G.length&&G[G.length-1].hasMarkers&&(G[G.length-1].markerTo=E.length);A.debug.timeSeriesProcessing&&console.time("building "+a.type+" series");var d={segments:[],markerFrom:E.length,colorData:[],series:a,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:a.options.marker?!1!==a.options.marker.enabled:!1,showMarkers:!0,drawMode:{area:"lines",arearange:"lines",areaspline:"line_strip",column:"lines",columnrange:"lines",
|
|
40
|
-
treemap:"triangles",bubble:"points"}[a.type]||"line_strip"};a.index>=G.length?G.push(d):G[a.index]=d;O(a,d);A.debug.timeSeriesProcessing&&console.timeEnd("building "+a.type+" series")},setSize:function(a,b){R===a&&Q===b||!d||(R=a,Q=b,d.bind(),d.setPMatrix([2/R,0,0,0,0,-(2/Q),0,0,0,0,-2,0,-1,1,-1,1]))},inited:function(){return L},setThreshold:a,init:function(a,b){function c(a,d){var b={isReady:!1,texture:q.createElement("canvas"),handle:f.createTexture()},
|
|
41
|
-
512;b.texture.height=512;c.mozImageSmoothingEnabled=!1;c.webkitImageSmoothingEnabled=!1;c.msImageSmoothingEnabled=!1;c.imageSmoothingEnabled=!1;c.strokeStyle="rgba(255, 255, 255, 0)";c.fillStyle="#FFF";d(c);try{f.activeTexture(f.TEXTURE0),f.bindTexture(f.TEXTURE_2D,b.handle),f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,b.texture),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,
|
|
42
|
-
f.LINEAR),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR),f.bindTexture(f.TEXTURE_2D,null),b.isReady=!0}catch(V){}}var p=0,e=["webgl","experimental-webgl","moz-webgl","webkit-3d"];L=!1;if(!a)return!1;for(A.debug.timeSetup&&console.time("gl setup");p<e.length&&!(f=a.getContext(e[p],{}));p++);if(f)b||F();else return!1;f.enable(f.BLEND);f.blendFunc(f.SRC_ALPHA,f.ONE_MINUS_SRC_ALPHA);f.disable(f.DEPTH_TEST);f.depthFunc(f.LESS);
|
|
43
|
-
a.arc(256,256,256,0,2*Math.PI);a.stroke();a.fill()});c("square",function(a){a.fillRect(0,0,512,512)});c("diamond",function(a){a.beginPath();a.moveTo(256,0);a.lineTo(512,256);a.lineTo(256,512);a.lineTo(0,256);a.lineTo(256,0);a.fill()});c("triangle",function(a){a.beginPath();a.moveTo(0,512);a.lineTo(256,0);a.lineTo(512,512);a.lineTo(0,512);a.fill()});c("triangle-down",function(a){a.beginPath();a.moveTo(0,0);a.lineTo(256,512);a.lineTo(512,
|
|
44
|
-
return!0},render:p,settings:A,valid:function(){return!1!==f},clear:y,flush:F,setXAxis:H,setYAxis:x,data:S,gl:function(){return f},allocateBuffer:function(a){var d=0;A.usePreallocated&&(a.series.forEach(function(a){a.isSeriesBoosting&&(d+=n(a))}),l.allocate(d))},destroy:function(){F();l.destroy();d.destroy();f&&(g(Y,function(a){a.handle&&f.deleteTexture(a.handle)}),f.canvas.width=1,f.canvas.height=1)},setOptions:function(a){v(!0,
|
|
45
|
-
b["Extensions/Boost/WGLRenderer.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,B,w,h){var c=w.doc,u=h.error,q;return function(m,h){var v=m.chartWidth,g=m.chartHeight,e=m,n=m.seriesGroup||h.group,k=c.implementation.hasFeature("www.http://w3.org/TR/SVG11/feature#Extensibility","1.1");e=m.isChartSeriesBoosting()?m:h;k=!1;q||(q=c.createElement("canvas"));e.renderTarget||(e.canvas=q,m.renderer.forExport||!k?(e.renderTarget=
|
|
46
|
-
e.boostClear=function(){e.renderTarget.attr({href:""})},e.boostCopy=function(){e.boostResizeTarget();e.renderTarget.attr({href:e.canvas.toDataURL("image/png")})}):(e.renderTargetFo=m.renderer.createElement("foreignObject").add(n),e.renderTarget=c.createElement("canvas"),e.renderTargetCtx=e.renderTarget.getContext("2d"),e.renderTargetFo.element.appendChild(e.renderTarget),e.boostClear=function(){e.renderTarget.width=e.canvas.width;
|
|
47
|
-
e.canvas.width;e.renderTarget.height=e.canvas.height;e.renderTargetCtx.drawImage(e.canvas,0,0)}),e.boostResizeTarget=function(){v=m.chartWidth;g=m.chartHeight;(e.renderTargetFo||e.renderTarget).attr({x:0,y:0,width:v,height:g}).css({pointerEvents:"none",mixedBlendMode:"normal",opacity:1});e instanceof b&&e.markerGroup.translate(m.plotLeft,m.plotTop)},e.boostClipRect=m.renderer.clipRect(),(e.renderTargetFo||e.renderTarget).clip(e.boostClipRect),
|
|
48
|
-
h.yAxis.pos)));e.canvas.width=v;e.canvas.height=g;e.boostClipRect.attr(m.getBoostClipRect(e));e.boostResizeTarget();e.boostClear();e.ogl||(e.ogl=B(function(){e.ogl.settings.debug.timeBufferCopy&&console.time("buffer copy");e.boostCopy();e.ogl.settings.debug.timeBufferCopy&&console.timeEnd("buffer copy")}),e.ogl.init(e.canvas)||u("[highcharts boost] - unable to init WebGL renderer"),e.ogl.setOptions(m.options.boost||
|
|
49
|
-
"Extensions/Boost/BoostUtils.js",[b["Core/Globals.js"],b["Extensions/Boost/BoostableMap.js"],b["Extensions/Boost/BoostAttach.js"],b["Core/Utilities.js"]],function(b,B,w,h){function c(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];var e=-Number.MAX_VALUE;b.forEach(function(b){if("undefined"!==typeof b&&null!==b&&"undefined"!==typeof b.length&&0<b.length)return e=b.length,!0});return e}function u(b,c,e){b&&
|
|
50
|
-
function q(b,c){b&&c.renderTarget&&c.canvas&&!c.chart.isChartSeriesBoosting()&&b.allocateBufferForSingleSeries(c)}function m(b,c,e,g,h,q){h=h||0;g=g||3E3;for(var n=h+g,a=!0;a&&h<n&&h<b.length;)a=c(b[h],h),++h;a&&(h<b.length?q?m(b,c,e,g,h,q):v.requestAnimationFrame?v.requestAnimationFrame(function(){m(b,c,e,g,h)}):setTimeout(function(){m(b,c,e,g,h)}):e&&e())}function t(){var b=0,c,e=["webgl","experimental-webgl",
|
|
51
|
-
e.length;b++)try{if(h=c.getContext(e[b]),"undefined"!==typeof h&&null!==h)return!0}catch(F){}return!1}var v=b.win,g=b.doc,e=h.pick;h={patientMax:c,boostEnabled:function(b){return e(b&&b.options&&b.options.boost&&b.options.boost.enabled,!0)},shouldForceChartSeriesBoosting:function(b){var g=0,h=0,n=e(b.options.boost&&b.options.boost.allowForce,!0);if("undefined"!==typeof b.boostForceChartBoost)return b.boostForceChartBoost;
|
|
52
|
-
q.options.boostThreshold&&!1!==q.visible&&"heatmap"!==q.type&&(B[q.type]&&++h,c(q.processedXData,q.options.data,q.points)>=(q.options.boostThreshold||Number.MAX_VALUE)&&++g)}b.boostForceChartBoost=n&&(h===b.series.length&&0<g||5<g);return b.boostForceChartBoost},renderIfNotSeriesBoosting:u,allocateIfNotSeriesBoosting:q,eachAsync:m,hasWebGLSupport:t,pointDrawHandler:function(b){var c=!0;this.chart.options&&this.chart.options.boost&&
|
|
53
|
-
if(!c||!this.isSeriesBoosting)return b.call(this);this.chart.isBoosting=!0;if(b=w(this.chart,this))q(b,this),b.pushSeries(this);u(b,this)}};b.hasWebGLSupport=t;return h});r(b,"Extensions/Boost/BoostInit.js",[b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"],b["Extensions/Boost/BoostUtils.js"],b["Extensions/Boost/BoostAttach.js"]],
|
|
54
|
-
n=c.wrap,k=u.eachAsync,y=u.pointDrawHandler,r=u.allocateIfNotSeriesBoosting,H=u.renderIfNotSeriesBoosting,J=u.shouldForceChartSeriesBoosting,x;return function(){g(w.prototype,{renderCanvas:function(){function a(a,b){var d=!1,c="undefined"===typeof g.index,e=!0;if("undefined"===typeof a)return!0;if(!c){if(ka){var l=a[0];var p=a[1]}else l=a,p=v[b];ba?(ka&&(p=a.slice(1,3)),d=p[0],p=p[1]):ja&&(l=a.x,p=a.stackY,
|
|
55
|
-
typeof V||a===J){ba||(d=p);if("undefined"===typeof da||p>ca)ca=p,da=b;if("undefined"===typeof V||d<T)T=d,V=b}a!==J&&("undefined"!==typeof V&&(p=h.toPixels(ca,!0),O=h.toPixels(T,!0),ea(a,p,da),O!==p&&ea(a,O,V)),V=da=void 0,J=a)}else p=Math.ceil(h.toPixels(p,!0)),ea(a,p,b)}return!c}function b(){e(c,"renderedCanvas");delete c.buildKDTree;c.buildKDTree();ua.debug.timeKDTree&&console.timeEnd("kd tree building")}
|
|
56
|
-
v=d.yData||c.processedYData,t=d.data;l=f.getExtremes();var u=l.min,w=l.max;l=h.getExtremes();var B=l.min,y=l.max,F={},J,A=!!c.sampling,z=!1!==d.enableMouseTracking,O=h.getThreshold(d.threshold),ba=c.pointArrayMap&&"low,high"===c.pointArrayMap.join(","),ja=!!d.stacking,ra=c.cropStart||0,wa=c.requireSorting,ka=!n,T,ca,V,da,ta="x"===d.findNearestPointBy,la=this.xData||this.options.xData||this.processedXData
|
|
57
|
-
a,b=h.len-b),va.push({x:la?la[ra+d]:!1,clientX:a,plotX:a,plotY:b,i:ra+d}))};l=q(g,c);g.isBoosting=!0;var ua=l.settings;if(this.visible){(this.points||this.graph)&&this.destroyGraphics();g.isChartSeriesBoosting()?(this.markerGroup&&this.markerGroup!==g.markerGroup&&this.markerGroup.destroy(),this.markerGroup=g.markerGroup,this.renderTarget&&(this.renderTarget=this.renderTarget.destroy())):(this.markerGroup===
|
|
58
|
-
|
|
59
|
-
{fill:!0,fillOpacity:!0,sampling:!0});g(t.column.prototype,{fill:!0,sampling:!0});b.prototype.propsRequireUpdateSeries.push("boost");b.prototype.callbacks.push(function(a){v(a,"predraw",function(){a.boostForceChartBoost=void 0;a.boostForceChartBoost=J(a);a.isBoosting=!1;!a.isChartSeriesBoosting()&&a.didBoost&&(a.didBoost=!1);a.boostClear&&a.boostClear();a.canvas&&a.ogl&&a.isChartSeriesBoosting()&&(a.didBoost
|
|
60
|
-
a.markerGroup.translate(a.xAxis[0].pos,a.yAxis[0].pos)});v(a,"render",function(){a.ogl&&a.isChartSeriesBoosting()&&a.ogl.render(a)});var b=-1,c=-1;v(a.pointer,"afterGetHoverData",function(){var d=a.hoverSeries;if(a.markerGroup&&d){var e=a.inverted?d.yAxis:d.xAxis;d=a.inverted?d.xAxis:d.yAxis;if(e&&e.pos!==b||d&&d.pos!==c)a.markerGroup.translate(e.pos,d.pos),b=e.pos,c=d.pos}})})}});r(b,"Extensions/BoostCanvas.js",
|
|
61
|
-
b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,B,w,h,c,u,q){var m=B.parse,t=w.doc,v=w.noop,g=u.seriesTypes,e=q.addEvent,n=q.extend,k=q.fireEvent,y=q.isNumber,r=q.merge,F=q.pick,H=q.wrap,x;return function(){w.seriesTypes.heatmap&&H(w.seriesTypes.heatmap.prototype,"drawPoints",function(){var a=this.chart,b=this.getContext(),c=this.chart.inverted,d=this.xAxis,
|
|
62
|
-
null!==p.y&&b){var l=p.shapeArgs||{};f=l.x;f=void 0===f?0:f;var g=l.y;g=void 0===g?0:g;var x=l.width;x=void 0===x?0:x;l=l.height;l=void 0===l?0:l;p=a.styledMode?p.series.colorAttribs(p):p.series.pointAttribs(p);b.fillStyle=p.fill;c?b.fillRect(e.len-g+d.left,d.len-f+e.top,-l,-x):b.fillRect(f+d.left,g+e.top,x,l)}}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser")});
|
|
63
|
-
c=a.chartHeight,d=a.seriesGroup||this.group,e=this,g=function(a,b,d,c,e,f,p){a.call(this,d,b,c,e,f,p)};a.isChartSeriesBoosting()&&(e=a,d=a.seriesGroup);var f=e.ctx;e.canvas||(e.canvas=t.createElement("canvas"),e.renderTarget=a.renderer.image("",0,0,b,c).addClass("highcharts-boost-canvas").add(d),e.ctx=f=e.canvas.getContext("2d"),a.inverted&&["moveTo","lineTo","rect","arc"].forEach(function(a){H(f,a,g)}),e.boostCopy=function(){e.renderTarget.attr({href:e.canvas.toDataURL("image/png")})},
|
|
64
|
-
function(){f.clearRect(0,0,e.canvas.width,e.canvas.height);e===this&&e.renderTarget.attr({href:""})},e.boostClipRect=a.renderer.clipRect(),e.renderTarget.clip(e.boostClipRect));e.canvas.width!==b&&(e.canvas.width=b);e.canvas.height!==c&&(e.canvas.height=c);e.renderTarget.attr({x:0,y:0,width:b,height:c,style:"pointer-events: none",href:""});e.boostClipRect.attr(a.getBoostClipRect(e));return f},canvasToSVG:function(){this.chart.isChartSeriesBoosting()?this.boostClear&&this.boostClear():
|
|
65
|
-
this.chart.boostCopy)&&(this.boostCopy||this.chart.boostCopy)()},cvsLineTo:function(a,b,c){a.lineTo(b,c)},renderCanvas:function(){var a=this,b=a.options,c=a.chart,d=this.xAxis,g=this.yAxis,t=(c.options.boost||{}).timeRendering||!1,f=0,u=a.processedXData,H=a.processedYData,O=b.data,E=d.getExtremes(),J=E.min,L=E.max;E=g.getExtremes();var G=E.min,Y=E.max,ia={},X,A=!!a.sampling,z=b.marker&&b.marker.radius,aa=this.cvsDrawPoint,ba=b.lineWidth?this.cvsLineTo:void 0,ja=z&&1>=z?this.cvsMarkerSquare:
|
|
66
|
-
ra=this.cvsStrokeBatch||1E3,wa=!1!==b.enableMouseTracking,ka;E=b.threshold;var T=g.getThreshold(E),ca=y(E),V=T,da=this.fill,ta=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),la=!!b.stacking,ea=a.cropStart||0;E=c.options.loading;var ua=a.requireSorting,va,Oa=b.connectNulls,Fa=!u,ya,za,fa,sa,xa,W=la?a.data:u||O,Pa=a.fillOpacity?
|
|
67
|
-
Ha=function(b,d,e,g){0===f&&(M.beginPath(),ba&&(M.lineJoin="round"));c.scroller&&"highcharts-navigator-series"===a.options.className?(d+=c.scroller.top,e&&(e+=c.scroller.top)):d+=c.plotTop;b+=c.plotLeft;va?M.moveTo(b,d):aa?aa(M,b,d,e,ka):ba?ba(M,b,d):ja&&ja.call(a,M,b,d,z,g);f+=1;f===ra&&(Ga(),f=0);ka={clientX:b,plotY:d,yBottom:e}},Qa="x"===b.findNearestPointBy,Ia=this.xData||this.options.xData||this.processedXData||!1,Aa=function(a,b,e){xa=Qa?a:a+","+b;wa&&!ia[xa]&&(ia[xa]=!0,c.inverted&&
|
|
68
|
-
a,b=g.len-b),Ra.push({x:Ia?Ia[ea+e]:!1,clientX:a,plotX:a,plotY:b,i:ea+e}))};this.renderTarget&&this.renderTarget.attr({href:""});(this.points||this.graph)&&this.destroyGraphics();a.plotGroup("group","series",a.visible?"visible":"hidden",b.zIndex,c.seriesGroup);a.markerGroup=a.group;e(a,"destroy",function(){a.markerGroup=null});var Ra=this.points=[];var M=this.getContext();a.buildKDTree=v;this.boostClear&&this.boostClear();this.visible&&(99999<O.length&&(c.options.loading=r(E,{labelStyle:{backgroundColor:m(h.backgroundColor).setOpacity(.75).get(),
|
|
20
|
+
e,n){var k;v=g||[];if(!(v&&0!==v.length||m))return h(),!1;q=n||q;c&&b.deleteBuffer(c);m||(k=new Float32Array(v));c=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,c);b.bufferData(b.ARRAY_BUFFER,m||k,b.STATIC_DRAW);u=b.getAttribLocation(B.program(),e);b.enableVertexAttribArray(u);return!0},render:function(g,e,n){var k=m?m.length:v.length;if(!c||!k)return!1;if(!g||g>k||0>g)g=0;if(!e||e>k)e=k;if(g>=e)return!1;b.drawArrays(b[(n||"points").toUpperCase()],g/q,(e-g)/q);return!0},allocate:function(b){t=-1;m=
|
|
21
|
+
new Float32Array(4*b)},push:function(b,e,c,k){m&&(m[++t]=b,m[++t]=e,m[++t]=c,m[++t]=k)}}}});r(b,"Extensions/Boost/WGLRenderer.js",[b["Core/Color/Color.js"],b["Extensions/Boost/WGLShader.js"],b["Extensions/Boost/WGLVBuffer.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,B,w,h,c){var u=b.parse,q=h.doc,m=c.isNumber,t=c.isObject,v=c.merge,g=c.objectEach,e=c.pick;return function(c){function n(a){if(a.isSeriesBoosting){var d=!!a.options.stacking;var b=a.xData||a.options.xData||a.processedXData;
|
|
22
|
+
d=(d?a.data:b||a.options.data).length;"treemap"===a.type?d*=12:"heatmap"===a.type?d*=6:ia[a.type]&&(d*=2);return d}return 0}function y(){f.clear(f.COLOR_BUFFER_BIT|f.DEPTH_BUFFER_BIT)}function O(a,d){function b(a){a&&(d.colorData.push(a[0]),d.colorData.push(a[1]),d.colorData.push(a[2]),d.colorData.push(a[3]))}function f(a,d,f,e,p){b(p);A.usePreallocated?(l.push(a,d,f?1:0,e||1),qa+=4):(S.push(a),S.push(d),S.push(f?1:0),S.push(e||1))}function p(){d.segments.length&&(d.segments[d.segments.length-1].to=
|
|
23
|
+
S.length||qa)}function e(){d.segments.length&&d.segments[d.segments.length-1].from===(S.length||qa)||(p(),d.segments.push({from:S.length||qa}))}function c(a,d,e,p,l){b(l);f(a+e,d);b(l);f(a,d);b(l);f(a,d+p);b(l);f(a,d+p);b(l);f(a+e,d+p);b(l);f(a+e,d)}function I(a,b){A.useGPUTranslations||(d.skipTranslation=!0,a.x=H.toPixels(a.x,!0),a.y=O.toPixels(a.y,!0));b?S=[a.x,a.y,0,2].concat(S):f(a.x,a.y,0,2)}var x=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),n=a.chart,z=a.options,g=!!z.stacking,aa=
|
|
24
|
+
z.data,k=a.xAxis.getExtremes(),m=k.min,h=k.max;k=a.yAxis.getExtremes();var y=k.min,R=k.max,q=a.xData||z.xData||a.processedXData,v=a.yData||z.yData||a.processedYData,F=a.zData||z.zData||a.processedZData,O=a.yAxis,H=a.xAxis,w=a.chart.plotWidth,B=!q||0===q.length,J=z.connectNulls;k=a.points||!1;var Q=!1,r=!1,E,G,L=g?a.data:q||aa,M={x:Number.MAX_VALUE,y:0},ma={x:-Number.MAX_VALUE,y:0},Ja=0,Ka=!1,D,C,P,X,N=-1,Z=!1,ha=!1,na,Y="undefined"===typeof n.index,Ea=!1,Ba=!1,K=!1,Sa=ia[a.type],Ca=!1,La=!0,Ma=!0,
|
|
25
|
+
Ta=z.zoneAxis||"y",oa=z.zones||!1,U=!1,Na=z.threshold,Da=!1;if(!(z.boostData&&0<z.boostData.length)){z.gapSize&&(Da="value"!==z.gapUnit?z.gapSize*a.closestPointRange:z.gapSize);if(oa){var pa=[];oa.forEach(function(a,d){if(a.color){var b=u(a.color).rgba;b[0]/=255;b[1]/=255;b[2]/=255;pa[d]=b;U||"undefined"!==typeof a.value||(U=b)}});U||(q=a.pointAttribs&&a.pointAttribs().fill||a.color,U=u(q).rgba,U[0]/=255,U[1]/=255,U[2]/=255)}n.inverted&&(w=a.chart.plotHeight);a.closestPointRangePx=Number.MAX_VALUE;
|
|
26
|
+
e();if(k&&0<k.length)d.skipTranslation=!0,d.drawMode="triangles",k[0].node&&k[0].node.levelDynamic&&k.sort(function(a,d){if(a.node){if(a.node.levelDynamic>d.node.levelDynamic)return 1;if(a.node.levelDynamic<d.node.levelDynamic)return-1}return 0}),k.forEach(function(d){var b=d.plotY;if("undefined"!==typeof b&&!isNaN(b)&&null!==d.y&&d.shapeArgs){var f=d.shapeArgs;b=f.x;b=void 0===b?0:b;var l=f.y;l=void 0===l?0:l;var e=f.width;e=void 0===e?0:e;f=f.height;f=void 0===f?0:f;var p=n.styledMode?d.series.colorAttribs(d):
|
|
27
|
+
p=d.series.pointAttribs(d);d=p["stroke-width"]||0;K=u(p.fill).rgba;K[0]/=255;K[1]/=255;K[2]/=255;"treemap"===a.type&&(d=d||1,G=u(p.stroke).rgba,G[0]/=255,G[1]/=255,G[2]/=255,c(b,l,e,f,G),d/=2);"heatmap"===a.type&&n.inverted&&(b=H.len-b,l=O.len-l,e=-e,f=-f);c(b+d,l+d,e-2*d,f-2*d,K)}});else{for(k=function(){P=L[++N];if("undefined"===typeof P)return"continue";if(Y)return"break";var b=aa&&aa[N];!B&&t(b,!0)&&b.color&&(K=u(b.color).rgba,K[0]/=255,K[1]/=255,K[2]/=255);B?(D=P[0],C=P[1],L[N+1]&&(ha=L[N+1][0]),
|
|
28
|
+
L[N-1]&&(Z=L[N-1][0]),3<=P.length&&(X=P[2],P[2]>d.zMax&&(d.zMax=P[2]),P[2]<d.zMin&&(d.zMin=P[2]))):(D=P,C=v[N],L[N+1]&&(ha=L[N+1]),L[N-1]&&(Z=L[N-1]),F&&F.length&&(X=F[N],F[N]>d.zMax&&(d.zMax=F[N]),F[N]<d.zMin&&(d.zMin=F[N])));if(!J&&(null===D||null===C))return e(),"continue";ha&&ha>=m&&ha<=h&&(Ea=!0);Z&&Z>=m&&Z<=h&&(Ba=!0);x?(B&&(C=P.slice(1,3)),na=C[0],C=C[1]):g&&(D=P.x,C=P.stackY,na=C-P.y);null!==y&&"undefined"!==typeof y&&null!==R&&"undefined"!==typeof R&&(La=C>=y&&C<=R);D>h&&ma.x<h&&(ma.x=D,
|
|
29
|
+
ma.y=C);D<m&&M.x>m&&(M.x=D,M.y=C);if(null===C&&J)return"continue";if(null===C||!La&&!Ea&&!Ba)return e(),"continue";(ha>=m||D>=m)&&(Z<=h||D<=h)&&(Ca=!0);if(!Ca&&!Ea&&!Ba)return"continue";Da&&D-Z>Da&&e();if(oa){var l;oa.some(function(a,d){var b=oa[d-1];return"x"===Ta?"undefined"!==typeof a.value&&D<=a.value?(pa[d]&&(!b||D>=b.value)&&(l=pa[d]),!0):!1:"undefined"!==typeof a.value&&C<=a.value?(pa[d]&&(!b||C>=b.value)&&(l=pa[d]),!0):!1});K=l||U||K}if(!A.useGPUTranslations&&(d.skipTranslation=!0,D=H.toPixels(D,
|
|
30
|
+
!0),C=O.toPixels(C,!0),D>w&&"points"===d.drawMode))return"continue";d.hasMarkers&&Ca&&!1!==Q&&(a.closestPointRangePx=Math.min(a.closestPointRangePx,Math.abs(D-Q)));if(!A.useGPUTranslations&&!A.usePreallocated&&Q&&1>Math.abs(D-Q)&&r&&1>Math.abs(C-r))return A.debug.showSkipSummary&&++Ja,"continue";if(Sa){E=na;if(!1===na||"undefined"===typeof na)E=0>C?C:0;x||g||(E=Math.max(null===Na?y:Na,y));A.useGPUTranslations||(E=O.toPixels(E,!0));f(D,E,0,0,K)}z.step&&!Ma&&f(D,r,0,2,K);f(D,C,0,"bubble"===a.type?X||
|
|
31
|
+
1:2,K);Q=D;r=C;Ka=!0;Ma=!1};N<L.length-1&&"break"!==k(););A.debug.showSkipSummary&&console.log("skipped points:",Ja);Ka||!1===J||"line_strip"!==a.drawMode||(M.x<Number.MAX_VALUE&&I(M,!0),ma.x>-Number.MAX_VALUE&&I(ma))}p()}}function F(){G=[];r.data=S=[];E=[];l&&l.destroy()}function H(a){d&&(d.setUniform("xAxisTrans",a.transA),d.setUniform("xAxisMin",a.min),d.setUniform("xAxisMinPad",a.minPixelPadding),d.setUniform("xAxisPointRange",a.pointRange),d.setUniform("xAxisLen",a.len),d.setUniform("xAxisPos",
|
|
32
|
+
a.pos),d.setUniform("xAxisCVSCoord",!a.horiz),d.setUniform("xAxisIsLog",!!a.logarithmic),d.setUniform("xAxisReversed",!!a.reversed))}function x(a){d&&(d.setUniform("yAxisTrans",a.transA),d.setUniform("yAxisMin",a.min),d.setUniform("yAxisMinPad",a.minPixelPadding),d.setUniform("yAxisPointRange",a.pointRange),d.setUniform("yAxisLen",a.len),d.setUniform("yAxisPos",a.pos),d.setUniform("yAxisCVSCoord",!a.horiz),d.setUniform("yAxisIsLog",!!a.logarithmic),d.setUniform("yAxisReversed",!!a.reversed))}function a(a,
|
|
33
|
+
b){d.setUniform("hasThreshold",a);d.setUniform("translatedThreshold",b)}function I(p){if(p)R=p.chartWidth||800,Q=p.chartHeight||400;else return!1;if(!(f&&R&&Q&&d))return!1;A.debug.timeRendering&&console.time("gl rendering");f.canvas.width=R;f.canvas.height=Q;d.bind();f.viewport(0,0,R,Q);d.setPMatrix([2/R,0,0,0,0,-(2/Q),0,0,0,0,-2,0,-1,1,-1,1]);1<A.lineWidth&&!h.isMS&&f.lineWidth(A.lineWidth);l.build(r.data,"aVertexPosition",4);l.bind();d.setInverted(p.inverted);G.forEach(function(c,I){var n=c.series.options,
|
|
34
|
+
k=n.marker;var g="undefined"!==typeof n.lineWidth?n.lineWidth:1;var z=n.threshold,h=m(z),y=c.series.yAxis.getThreshold(z);z=e(n.marker?n.marker.enabled:null,c.series.xAxis.isRadial?!0:null,c.series.closestPointRangePx>2*((n.marker?n.marker.radius:10)||10));k=Y[k&&k.symbol||c.series.symbol]||Y.circle;if(0!==c.segments.length&&c.segments[0].from!==c.segments[0].to){k.isReady&&(f.bindTexture(f.TEXTURE_2D,k.handle),d.setTexture(k.handle));p.styledMode?k=c.series.markerGroup&&c.series.markerGroup.getStyle("fill"):
|
|
35
|
+
(k="points"===c.drawMode&&c.series.pointAttribs&&c.series.pointAttribs().fill||c.series.color,n.colorByPoint&&(k=c.series.chart.options.colors[I]));c.series.fillOpacity&&n.fillOpacity&&(k=(new b(k)).setOpacity(e(n.fillOpacity,1)).get());k=u(k).rgba;A.useAlpha||(k[3]=1);"lines"===c.drawMode&&A.useAlpha&&1>k[3]&&(k[3]/=10);"add"===n.boostBlending?(f.blendFunc(f.SRC_ALPHA,f.ONE),f.blendEquation(f.FUNC_ADD)):"mult"===n.boostBlending||"multiply"===n.boostBlending?f.blendFunc(f.DST_COLOR,f.ZERO):"darken"===
|
|
36
|
+
n.boostBlending?(f.blendFunc(f.ONE,f.ONE),f.blendEquation(f.FUNC_MIN)):f.blendFuncSeparate(f.SRC_ALPHA,f.ONE_MINUS_SRC_ALPHA,f.ONE,f.ONE_MINUS_SRC_ALPHA);d.reset();0<c.colorData.length?(d.setUniform("hasColor",1),I=w(f,d),I.build(c.colorData,"aColor",4),I.bind()):f.disableVertexAttribArray(f.getAttribLocation(d.program(),"aColor"));d.setColor(k);H(c.series.xAxis);x(c.series.yAxis);a(h,y);"points"===c.drawMode&&(n.marker&&m(n.marker.radius)?d.setPointSize(2*n.marker.radius):d.setPointSize(1));d.setSkipTranslation(c.skipTranslation);
|
|
37
|
+
"bubble"===c.series.type&&d.setBubbleUniforms(c.series,c.zMin,c.zMax);d.setDrawAsCircle(X[c.series.type]||!1);if(0<g||"line_strip"!==c.drawMode)for(g=0;g<c.segments.length;g++)l.render(c.segments[g].from,c.segments[g].to,c.drawMode);if(c.hasMarkers&&z)for(n.marker&&m(n.marker.radius)?d.setPointSize(2*n.marker.radius):d.setPointSize(10),d.setDrawAsCircle(!0),g=0;g<c.segments.length;g++)l.render(c.segments[g].from,c.segments[g].to,"POINTS")}});A.debug.timeRendering&&console.timeEnd("gl rendering");
|
|
38
|
+
c&&c();F()}function p(a){y();if(a.renderer.forExport)return I(a);L?I(a):setTimeout(function(){p(a)},1)}var d=!1,l=!1,qa=0,f=!1,R=0,Q=0,S=!1,E=!1,r={},L=!1,G=[],Y={},ia={column:!0,columnrange:!0,bar:!0,area:!0,arearange:!0},X={scatter:!0,bubble:!0},A={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}};return r={allocateBufferForSingleSeries:function(a){var d=
|
|
39
|
+
0;A.usePreallocated&&(a.isSeriesBoosting&&(d=n(a)),l.allocate(d))},pushSeries:function(a){0<G.length&&G[G.length-1].hasMarkers&&(G[G.length-1].markerTo=E.length);A.debug.timeSeriesProcessing&&console.time("building "+a.type+" series");var d={segments:[],markerFrom:E.length,colorData:[],series:a,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:a.options.marker?!1!==a.options.marker.enabled:!1,showMarkers:!0,drawMode:{area:"lines",arearange:"lines",areaspline:"line_strip",column:"lines",columnrange:"lines",
|
|
40
|
+
bar:"lines",line:"line_strip",scatter:"points",heatmap:"triangles",treemap:"triangles",bubble:"points"}[a.type]||"line_strip"};a.index>=G.length?G.push(d):G[a.index]=d;O(a,d);A.debug.timeSeriesProcessing&&console.timeEnd("building "+a.type+" series")},setSize:function(a,b){R===a&&Q===b||!d||(R=a,Q=b,d.bind(),d.setPMatrix([2/R,0,0,0,0,-(2/Q),0,0,0,0,-2,0,-1,1,-1,1]))},inited:function(){return L},setThreshold:a,init:function(a,b){function c(a,d){var b={isReady:!1,texture:q.createElement("canvas"),handle:f.createTexture()},
|
|
41
|
+
c=b.texture.getContext("2d");Y[a]=b;b.texture.width=512;b.texture.height=512;c.mozImageSmoothingEnabled=!1;c.webkitImageSmoothingEnabled=!1;c.msImageSmoothingEnabled=!1;c.imageSmoothingEnabled=!1;c.strokeStyle="rgba(255, 255, 255, 0)";c.fillStyle="#FFF";d(c);try{f.activeTexture(f.TEXTURE0),f.bindTexture(f.TEXTURE_2D,b.handle),f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,b.texture),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,
|
|
42
|
+
f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR),f.bindTexture(f.TEXTURE_2D,null),b.isReady=!0}catch(V){}}var p=0,e=["webgl","experimental-webgl","moz-webgl","webkit-3d"];L=!1;if(!a)return!1;for(A.debug.timeSetup&&console.time("gl setup");p<e.length&&!(f=a.getContext(e[p],{}));p++);if(f)b||F();else return!1;f.enable(f.BLEND);f.blendFunc(f.SRC_ALPHA,f.ONE_MINUS_SRC_ALPHA);f.disable(f.DEPTH_TEST);f.depthFunc(f.LESS);
|
|
43
|
+
d=B(f);if(!d)return!1;l=w(f,d);c("circle",function(a){a.beginPath();a.arc(256,256,256,0,2*Math.PI);a.stroke();a.fill()});c("square",function(a){a.fillRect(0,0,512,512)});c("diamond",function(a){a.beginPath();a.moveTo(256,0);a.lineTo(512,256);a.lineTo(256,512);a.lineTo(0,256);a.lineTo(256,0);a.fill()});c("triangle",function(a){a.beginPath();a.moveTo(0,512);a.lineTo(256,0);a.lineTo(512,512);a.lineTo(0,512);a.fill()});c("triangle-down",function(a){a.beginPath();a.moveTo(0,0);a.lineTo(256,512);a.lineTo(512,
|
|
44
|
+
0);a.lineTo(0,0);a.fill()});L=!0;A.debug.timeSetup&&console.timeEnd("gl setup");return!0},render:p,settings:A,valid:function(){return!1!==f},clear:y,flush:F,setXAxis:H,setYAxis:x,data:S,gl:function(){return f},allocateBuffer:function(a){var d=0;A.usePreallocated&&(a.series.forEach(function(a){a.isSeriesBoosting&&(d+=n(a))}),l.allocate(d))},destroy:function(){F();l.destroy();d.destroy();f&&(g(Y,function(a){a.handle&&f.deleteTexture(a.handle)}),f.canvas.width=1,f.canvas.height=1)},setOptions:function(a){v(!0,
|
|
45
|
+
A,a)}}}});r(b,"Extensions/Boost/BoostAttach.js",[b["Core/Chart/Chart.js"],b["Extensions/Boost/WGLRenderer.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,B,w,h){var c=w.doc,u=h.error,q;return function(m,h){var v=m.chartWidth,g=m.chartHeight,e=m,n=m.seriesGroup||h.group,k=c.implementation.hasFeature("www.http://w3.org/TR/SVG11/feature#Extensibility","1.1");e=m.isChartSeriesBoosting()?m:h;k=!1;q||(q=c.createElement("canvas"));e.renderTarget||(e.canvas=q,m.renderer.forExport||!k?(e.renderTarget=
|
|
46
|
+
m.renderer.image("",0,0,v,g).addClass("highcharts-boost-canvas").add(n),e.boostClear=function(){e.renderTarget.attr({href:""})},e.boostCopy=function(){e.boostResizeTarget();e.renderTarget.attr({href:e.canvas.toDataURL("image/png")})}):(e.renderTargetFo=m.renderer.createElement("foreignObject").add(n),e.renderTarget=c.createElement("canvas"),e.renderTargetCtx=e.renderTarget.getContext("2d"),e.renderTargetFo.element.appendChild(e.renderTarget),e.boostClear=function(){e.renderTarget.width=e.canvas.width;
|
|
47
|
+
e.renderTarget.height=e.canvas.height},e.boostCopy=function(){e.renderTarget.width=e.canvas.width;e.renderTarget.height=e.canvas.height;e.renderTargetCtx.drawImage(e.canvas,0,0)}),e.boostResizeTarget=function(){v=m.chartWidth;g=m.chartHeight;(e.renderTargetFo||e.renderTarget).attr({x:0,y:0,width:v,height:g}).css({pointerEvents:"none",mixedBlendMode:"normal",opacity:1});e instanceof b&&e.markerGroup.translate(m.plotLeft,m.plotTop)},e.boostClipRect=m.renderer.clipRect(),(e.renderTargetFo||e.renderTarget).clip(e.boostClipRect),
|
|
48
|
+
e instanceof b&&(e.markerGroup=e.renderer.g().add(n),e.markerGroup.translate(h.xAxis.pos,h.yAxis.pos)));e.canvas.width=v;e.canvas.height=g;e.boostClipRect.attr(m.getBoostClipRect(e));e.boostResizeTarget();e.boostClear();e.ogl||(e.ogl=B(function(){e.ogl.settings.debug.timeBufferCopy&&console.time("buffer copy");e.boostCopy();e.ogl.settings.debug.timeBufferCopy&&console.timeEnd("buffer copy")}),e.ogl.init(e.canvas)||u("[highcharts boost] - unable to init WebGL renderer"),e.ogl.setOptions(m.options.boost||
|
|
49
|
+
{}),e instanceof b&&e.ogl.allocateBuffer(m));e.ogl.setSize(v,g);return e.ogl}});r(b,"Extensions/Boost/BoostUtils.js",[b["Core/Globals.js"],b["Extensions/Boost/BoostableMap.js"],b["Extensions/Boost/BoostAttach.js"],b["Core/Utilities.js"]],function(b,B,w,h){function c(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];var e=-Number.MAX_VALUE;b.forEach(function(b){if("undefined"!==typeof b&&null!==b&&"undefined"!==typeof b.length&&0<b.length)return e=b.length,!0});return e}function u(b,c,e){b&&
|
|
50
|
+
c.renderTarget&&c.canvas&&!(e||c.chart).isChartSeriesBoosting()&&b.render(e||c.chart)}function q(b,c){b&&c.renderTarget&&c.canvas&&!c.chart.isChartSeriesBoosting()&&b.allocateBufferForSingleSeries(c)}function m(b,c,e,g,h,q){h=h||0;g=g||3E3;for(var n=h+g,a=!0;a&&h<n&&h<b.length;)a=c(b[h],h),++h;a&&(h<b.length?q?m(b,c,e,g,h,q):v.requestAnimationFrame?v.requestAnimationFrame(function(){m(b,c,e,g,h)}):setTimeout(function(){m(b,c,e,g,h)}):e&&e())}function t(){var b=0,c,e=["webgl","experimental-webgl",
|
|
51
|
+
"moz-webgl","webkit-3d"],h=!1;if("undefined"!==typeof v.WebGLRenderingContext)for(c=g.createElement("canvas");b<e.length;b++)try{if(h=c.getContext(e[b]),"undefined"!==typeof h&&null!==h)return!0}catch(F){}return!1}var v=b.win,g=b.doc,e=h.pick;h={patientMax:c,boostEnabled:function(b){return e(b&&b.options&&b.options.boost&&b.options.boost.enabled,!0)},shouldForceChartSeriesBoosting:function(b){var g=0,h=0,n=e(b.options.boost&&b.options.boost.allowForce,!0);if("undefined"!==typeof b.boostForceChartBoost)return b.boostForceChartBoost;
|
|
52
|
+
if(1<b.series.length)for(var m=0;m<b.series.length;m++){var q=b.series[m];0!==q.options.boostThreshold&&!1!==q.visible&&"heatmap"!==q.type&&(B[q.type]&&++h,c(q.processedXData,q.options.data,q.points)>=(q.options.boostThreshold||Number.MAX_VALUE)&&++g)}b.boostForceChartBoost=n&&(h===b.series.length&&0<g||5<g);return b.boostForceChartBoost},renderIfNotSeriesBoosting:u,allocateIfNotSeriesBoosting:q,eachAsync:m,hasWebGLSupport:t,pointDrawHandler:function(b){var c=!0;this.chart.options&&this.chart.options.boost&&
|
|
53
|
+
(c="undefined"===typeof this.chart.options.boost.enabled?!0:this.chart.options.boost.enabled);if(!c||!this.isSeriesBoosting)return b.call(this);this.chart.isBoosting=!0;if(b=w(this.chart,this))q(b,this),b.pushSeries(this);u(b,this)}};b.hasWebGLSupport=t;return h});r(b,"Extensions/Boost/BoostInit.js",[b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"],b["Extensions/Boost/BoostUtils.js"],b["Extensions/Boost/BoostAttach.js"]],
|
|
54
|
+
function(b,B,w,h,c,u,q){var m=B.noop,t=h.seriesTypes,v=c.addEvent,g=c.extend,e=c.fireEvent,n=c.wrap,k=u.eachAsync,y=u.pointDrawHandler,r=u.allocateIfNotSeriesBoosting,H=u.renderIfNotSeriesBoosting,J=u.shouldForceChartSeriesBoosting,x;return function(){g(w.prototype,{renderCanvas:function(){function a(a,b){var d=!1,c="undefined"===typeof g.index,e=!0;if("undefined"===typeof a)return!0;if(!c){if(ka){var l=a[0];var p=a[1]}else l=a,p=v[b];ba?(ka&&(p=a.slice(1,3)),d=p[0],p=p[1]):ja&&(l=a.x,p=a.stackY,
|
|
55
|
+
d=p-a.y);wa||(e=p>=B&&p<=y);if(null!==p&&l>=u&&l<=w&&e)if(a=f.toPixels(l,!0),A){if("undefined"===typeof V||a===J){ba||(d=p);if("undefined"===typeof da||p>ca)ca=p,da=b;if("undefined"===typeof V||d<T)T=d,V=b}a!==J&&("undefined"!==typeof V&&(p=h.toPixels(ca,!0),O=h.toPixels(T,!0),ea(a,p,da),O!==p&&ea(a,O,V)),V=da=void 0,J=a)}else p=Math.ceil(h.toPixels(p,!0)),ea(a,p,b)}return!c}function b(){e(c,"renderedCanvas");delete c.buildKDTree;c.buildKDTree();ua.debug.timeKDTree&&console.timeEnd("kd tree building")}
|
|
56
|
+
var c=this,d=c.options||{},l=!1,g=c.chart,f=this.xAxis,h=this.yAxis,n=d.xData||c.processedXData,v=d.yData||c.processedYData,t=d.data;l=f.getExtremes();var u=l.min,w=l.max;l=h.getExtremes();var B=l.min,y=l.max,F={},J,A=!!c.sampling,z=!1!==d.enableMouseTracking,O=h.getThreshold(d.threshold),ba=c.pointArrayMap&&"low,high"===c.pointArrayMap.join(","),ja=!!d.stacking,ra=c.cropStart||0,wa=c.requireSorting,ka=!n,T,ca,V,da,ta="x"===d.findNearestPointBy,la=this.xData||this.options.xData||this.processedXData||
|
|
57
|
+
!1,ea=function(a,b,d){a=Math.ceil(a);x=ta?a:a+","+b;z&&!F[x]&&(F[x]=!0,g.inverted&&(a=f.len-a,b=h.len-b),va.push({x:la?la[ra+d]:!1,clientX:a,plotX:a,plotY:b,i:ra+d}))};l=q(g,c);g.isBoosting=!0;var ua=l.settings;if(this.visible){(this.points||this.graph)&&this.destroyGraphics();g.isChartSeriesBoosting()?(this.markerGroup&&this.markerGroup!==g.markerGroup&&this.markerGroup.destroy(),this.markerGroup=g.markerGroup,this.renderTarget&&(this.renderTarget=this.renderTarget.destroy())):(this.markerGroup===
|
|
58
|
+
g.markerGroup&&(this.markerGroup=void 0),this.markerGroup=c.plotGroup("markerGroup","markers",!0,1,g.seriesGroup));var va=this.points=[];c.buildKDTree=m;l&&(r(l,this),l.pushSeries(c),H(l,this,g));g.renderer.forExport||(ua.debug.timeKDTree&&console.time("kd tree building"),k(ja?c.data:n||t,a,b))}}});["heatmap","treemap"].forEach(function(a){t[a]&&n(t[a].prototype,"drawPoints",y)});t.bubble&&(delete t.bubble.prototype.buildKDTree,n(t.bubble.prototype,"markerAttribs",function(a){return this.isSeriesBoosting?
|
|
59
|
+
!1:a.apply(this,[].slice.call(arguments,1))}));t.scatter.prototype.fill=!0;g(t.area.prototype,{fill:!0,fillOpacity:!0,sampling:!0});g(t.column.prototype,{fill:!0,sampling:!0});b.prototype.propsRequireUpdateSeries.push("boost");b.prototype.callbacks.push(function(a){v(a,"predraw",function(){a.boostForceChartBoost=void 0;a.boostForceChartBoost=J(a);a.isBoosting=!1;!a.isChartSeriesBoosting()&&a.didBoost&&(a.didBoost=!1);a.boostClear&&a.boostClear();a.canvas&&a.ogl&&a.isChartSeriesBoosting()&&(a.didBoost=
|
|
60
|
+
!0,a.ogl.allocateBuffer(a));a.markerGroup&&a.xAxis&&0<a.xAxis.length&&a.yAxis&&0<a.yAxis.length&&a.markerGroup.translate(a.xAxis[0].pos,a.yAxis[0].pos)});v(a,"render",function(){a.ogl&&a.isChartSeriesBoosting()&&a.ogl.render(a)});var b=-1,c=-1;v(a.pointer,"afterGetHoverData",function(){var d=a.hoverSeries;if(a.markerGroup&&d){var e=a.inverted?d.yAxis:d.xAxis;d=a.inverted?d.xAxis:d.yAxis;if(e&&e.pos!==b||d&&d.pos!==c)a.markerGroup.translate(e.pos,d.pos),b=e.pos,c=d.pos}})})}});r(b,"Extensions/BoostCanvas.js",
|
|
61
|
+
[b["Core/Chart/Chart.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Color/Palette.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,B,w,h,c,u,q){var m=B.parse,t=w.doc,v=w.noop,g=u.seriesTypes,e=q.addEvent,n=q.extend,k=q.fireEvent,y=q.isNumber,r=q.merge,F=q.pick,H=q.wrap,x;return function(){w.seriesTypes.heatmap&&H(w.seriesTypes.heatmap.prototype,"drawPoints",function(){var a=this.chart,b=this.getContext(),c=this.chart.inverted,d=this.xAxis,
|
|
62
|
+
e=this.yAxis;b?(this.points.forEach(function(p){var f=p.plotY;if("undefined"!==typeof f&&!isNaN(f)&&null!==p.y&&b){var l=p.shapeArgs||{};f=l.x;f=void 0===f?0:f;var g=l.y;g=void 0===g?0:g;var x=l.width;x=void 0===x?0:x;l=l.height;l=void 0===l?0:l;p=a.styledMode?p.series.colorAttribs(p):p.series.pointAttribs(p);b.fillStyle=p.fill;c?b.fillRect(e.len-g+d.left,d.len-f+e.top,-l,-x):b.fillRect(f+d.left,g+e.top,x,l)}}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser")});
|
|
63
|
+
n(c.prototype,{getContext:function(){var a=this.chart,b=a.chartWidth,c=a.chartHeight,d=a.seriesGroup||this.group,e=this,g=function(a,b,d,c,e,f,p){a.call(this,d,b,c,e,f,p)};a.isChartSeriesBoosting()&&(e=a,d=a.seriesGroup);var f=e.ctx;e.canvas||(e.canvas=t.createElement("canvas"),e.renderTarget=a.renderer.image("",0,0,b,c).addClass("highcharts-boost-canvas").add(d),e.ctx=f=e.canvas.getContext("2d"),a.inverted&&["moveTo","lineTo","rect","arc"].forEach(function(a){H(f,a,g)}),e.boostCopy=function(){e.renderTarget.attr({href:e.canvas.toDataURL("image/png")})},
|
|
64
|
+
e.boostClear=function(){f.clearRect(0,0,e.canvas.width,e.canvas.height);e===this&&e.renderTarget.attr({href:""})},e.boostClipRect=a.renderer.clipRect(),e.renderTarget.clip(e.boostClipRect));e.canvas.width!==b&&(e.canvas.width=b);e.canvas.height!==c&&(e.canvas.height=c);e.renderTarget.attr({x:0,y:0,width:b,height:c,style:"pointer-events: none",href:""});e.boostClipRect.attr(a.getBoostClipRect(e));return f},canvasToSVG:function(){this.chart.isChartSeriesBoosting()?this.boostClear&&this.boostClear():
|
|
65
|
+
(this.boostCopy||this.chart.boostCopy)&&(this.boostCopy||this.chart.boostCopy)()},cvsLineTo:function(a,b,c){a.lineTo(b,c)},renderCanvas:function(){var a=this,b=a.options,c=a.chart,d=this.xAxis,g=this.yAxis,t=(c.options.boost||{}).timeRendering||!1,f=0,u=a.processedXData,H=a.processedYData,O=b.data,E=d.getExtremes(),J=E.min,L=E.max;E=g.getExtremes();var G=E.min,Y=E.max,ia={},X,A=!!a.sampling,z=b.marker&&b.marker.radius,aa=this.cvsDrawPoint,ba=b.lineWidth?this.cvsLineTo:void 0,ja=z&&1>=z?this.cvsMarkerSquare:
|
|
66
|
+
this.cvsMarkerCircle,ra=this.cvsStrokeBatch||1E3,wa=!1!==b.enableMouseTracking,ka;E=b.threshold;var T=g.getThreshold(E),ca=y(E),V=T,da=this.fill,ta=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),la=!!b.stacking,ea=a.cropStart||0;E=c.options.loading;var ua=a.requireSorting,va,Oa=b.connectNulls,Fa=!u,ya,za,fa,sa,xa,W=la?a.data:u||O,Pa=a.fillOpacity?B.parse(a.color).setOpacity(F(b.fillOpacity,.75)).get():a.color,Ga=function(){da?(M.fillStyle=Pa,M.fill()):(M.strokeStyle=a.color,M.lineWidth=b.lineWidth,
|
|
67
|
+
M.stroke())},Ha=function(b,d,e,g){0===f&&(M.beginPath(),ba&&(M.lineJoin="round"));c.scroller&&"highcharts-navigator-series"===a.options.className?(d+=c.scroller.top,e&&(e+=c.scroller.top)):d+=c.plotTop;b+=c.plotLeft;va?M.moveTo(b,d):aa?aa(M,b,d,e,ka):ba?ba(M,b,d):ja&&ja.call(a,M,b,d,z,g);f+=1;f===ra&&(Ga(),f=0);ka={clientX:b,plotY:d,yBottom:e}},Qa="x"===b.findNearestPointBy,Ia=this.xData||this.options.xData||this.processedXData||!1,Aa=function(a,b,e){xa=Qa?a:a+","+b;wa&&!ia[xa]&&(ia[xa]=!0,c.inverted&&
|
|
68
|
+
(a=d.len-a,b=g.len-b),Ra.push({x:Ia?Ia[ea+e]:!1,clientX:a,plotX:a,plotY:b,i:ea+e}))};this.renderTarget&&this.renderTarget.attr({href:""});(this.points||this.graph)&&this.destroyGraphics();a.plotGroup("group","series",a.visible?"visible":"hidden",b.zIndex,c.seriesGroup);a.markerGroup=a.group;e(a,"destroy",function(){a.markerGroup=null});var Ra=this.points=[];var M=this.getContext();a.buildKDTree=v;this.boostClear&&this.boostClear();this.visible&&(99999<O.length&&(c.options.loading=r(E,{labelStyle:{backgroundColor:m(h.backgroundColor).setOpacity(.75).get(),
|
|
69
69
|
padding:"1em",borderRadius:"0.5em"},style:{backgroundColor:"none",opacity:1}}),q.clearTimeout(x),c.showLoading("Drawing..."),c.options.loading=E),t&&console.time("canvas rendering"),w.eachAsync(W,function(b,e){var f=!1,p=!1,l=!1,x=!1,h="undefined"===typeof c.index,n=!0;if(!h){if(Fa){var m=b[0];var k=b[1];W[e+1]&&(l=W[e+1][0]);W[e-1]&&(x=W[e-1][0])}else m=b,k=H[e],W[e+1]&&(l=W[e+1]),W[e-1]&&(x=W[e-1]);l&&l>=J&&l<=L&&(f=!0);x&&x>=J&&x<=L&&(p=!0);if(ta){Fa&&(k=b.slice(1,3));var I=k[0];k=k[1]}else la&&
|
|
70
70
|
(m=b.x,k=b.stackY,I=k-b.y);b=null===k;ua||(n=k>=G&&k<=Y);if(!b&&(m>=J&&m<=L&&n||f||p))if(m=Math.round(d.toPixels(m,!0)),A){if("undefined"===typeof fa||m===X){ta||(I=k);if("undefined"===typeof sa||k>za)za=k,sa=e;if("undefined"===typeof fa||I<ya)ya=I,fa=e}m!==X&&("undefined"!==typeof fa&&(k=g.toPixels(za,!0),T=g.toPixels(ya,!0),Ha(m,ca?Math.min(k,V):k,ca?Math.max(T,V):T,e),Aa(m,k,sa),T!==k&&Aa(m,T,fa)),fa=sa=void 0,X=m)}else k=Math.round(g.toPixels(k,!0)),Ha(m,k,T,e),Aa(m,k,e);va=b&&!Oa;0===e%5E4&&
|
|
71
71
|
(a.boostCopy||a.chart.boostCopy)&&(a.boostCopy||a.chart.boostCopy)()}return!h},function(){var b=c.loadingDiv,d=c.loadingShown;Ga();a.canvasToSVG();t&&console.timeEnd("canvas rendering");k(a,"renderedCanvas");d&&(n(b.style,{transition:"opacity 250ms",opacity:0}),c.loadingShown=!1,x=setTimeout(function(){b.parentNode&&b.parentNode.removeChild(b);c.loadingDiv=c.loadingSpan=null},250));delete a.buildKDTree;a.buildKDTree()},c.renderer.forExport?Number.MAX_VALUE:void 0))}});g.scatter.prototype.cvsMarkerCircle=
|
|
@@ -76,8 +76,8 @@ H(this)};b.prototype.getBoostClipRect=function(b){var a={x:this.plotLeft,y:this.
|
|
|
76
76
|
a.category=k(this.xAxis.categories?this.xAxis.categories[a.x]:a.x,a.x),a.dist=b.dist,a.distX=b.distX,a.plotX=b.plotX,a.plotY=b.plotY,a.index=b.i,a.isInside=this.isPointInside(b));return a};y(h.prototype,"searchPoint",function(b){return this.getPoint(b.apply(this,[].slice.call(arguments,1)))});y(w.prototype,"haloPath",function(b){var a=this.series,c=this.plotX,e=this.plotY,d=a.chart.inverted;a.isSeriesBoosting&&d&&(this.plotX=a.yAxis.len-e,this.plotY=a.xAxis.len-c);var g=b.apply(this,Array.prototype.slice.call(arguments,
|
|
77
77
|
1));a.isSeriesBoosting&&d&&(this.plotX=c,this.plotY=e);return g});y(h.prototype,"markerAttribs",function(b,a){var c=a.plotX,e=a.plotY,d=this.chart.inverted;this.isSeriesBoosting&&d&&(a.plotX=this.yAxis.len-e,a.plotY=this.xAxis.len-c);var g=b.apply(this,Array.prototype.slice.call(arguments,1));this.isSeriesBoosting&&d&&(a.plotX=c,a.plotY=e);return g});c(h,"destroy",function(){var b=this,a=b.chart;a.markerGroup===b.markerGroup&&(b.markerGroup=null);a.hoverPoints&&(a.hoverPoints=a.hoverPoints.filter(function(a){return a.series===
|
|
78
78
|
b}));a.hoverPoint&&a.hoverPoint.series===b&&(a.hoverPoint=null)});y(h.prototype,"getExtremes",function(b){return this.isSeriesBoosting&&this.hasExtremes&&this.hasExtremes()?{}:b.apply(this,Array.prototype.slice.call(arguments,1))});["translate","generatePoints","drawTracker","drawPoints","render"].forEach(function(b){function a(a){var c=this.options.stacking&&("translate"===b||"generatePoints"===b);if(!this.isSeriesBoosting||c||!B(this.chart)||"heatmap"===this.type||"treemap"===this.type||!t[this.type]||
|
|
79
|
-
0===this.options.boostThreshold)a.call(this);else if(this[b+"Canvas"])this[b+"Canvas"]()}y(h.prototype,b,a);"translate"===b&&"column bar arearange columnrange heatmap treemap".split(" ").forEach(function(c){v[c]&&y(v[c].prototype,b,a)})});y(h.prototype,"processData",function(b){function a(a){return c.chart.isChartSeriesBoosting()||(a?a.length:0)>=(c.options.boostThreshold||Number.MAX_VALUE)}var c=this,h=this.options.data;B(this.chart)&&t[this.type]?(a(h)&&"heatmap"!==this.type&&"treemap"!==
|
|
80
|
-
|
|
79
|
+
0===this.options.boostThreshold)a.call(this);else if(this[b+"Canvas"])this[b+"Canvas"]()}y(h.prototype,b,a);"translate"===b&&"column bar arearange columnrange heatmap treemap".split(" ").forEach(function(c){v[c]&&y(v[c].prototype,b,a)})});y(h.prototype,"processData",function(b){function a(a){return c.forceCrop?!1:c.chart.isChartSeriesBoosting()||(a?a.length:0)>=(c.options.boostThreshold||Number.MAX_VALUE)}var c=this,h=this.options.data;B(this.chart)&&t[this.type]?(a(h)&&"heatmap"!==this.type&&"treemap"!==
|
|
80
|
+
this.type&&!this.options.stacking&&this.hasExtremes&&this.hasExtremes(!0)||(b.apply(this,Array.prototype.slice.call(arguments,1)),h=this.processedXData),(this.isSeriesBoosting=a(h))?(this.options.data&&this.options.data.length&&(h=this.getFirstValidPoint(this.options.data),n(h)||e(h)||g(12,!1,this.chart)),this.enterBoost()):this.exitBoost&&this.exitBoost()):b.apply(this,Array.prototype.slice.call(arguments,1))});c(h,"hide",function(){this.canvas&&this.renderTarget&&(this.ogl&&this.ogl.clear(),this.boostClear())});
|
|
81
81
|
h.prototype.enterBoost=function(){this.alteredByBoost=[];["allowDG","directTouch","stickyTracking"].forEach(function(b){this.alteredByBoost.push({prop:b,val:this[b],own:Object.hasOwnProperty.call(this,b)})},this);this.directTouch=this.allowDG=!1;this.finishedAnimating=this.stickyTracking=!0;this.labelBySeries&&(this.labelBySeries=this.labelBySeries.destroy())};h.prototype.exitBoost=function(){(this.alteredByBoost||[]).forEach(function(b){b.own?this[b.prop]=b.val:delete this[b.prop]},this);this.boostClear&&
|
|
82
82
|
this.boostClear()};h.prototype.hasExtremes=function(b){var a=this.options,c=this.xAxis&&this.xAxis.options,e=this.yAxis&&this.yAxis.options,d=this.colorAxis&&this.colorAxis.options;return a.data.length>(a.boostThreshold||Number.MAX_VALUE)&&n(e.min)&&n(e.max)&&(!b||n(c.min)&&n(c.max))&&(!d||n(d.min)&&n(d.max))};h.prototype.destroyGraphics=function(){var b=this,a=this,c=this.points,e,d;if(c)for(d=0;d<c.length;d+=1)(e=c[d])&&e.destroyElements&&e.destroyElements();["graph","area","tracker"].forEach(function(b){a[b]&&
|
|
83
83
|
(a[b]=a[b].destroy())});this.getZonesGraphs&&this.getZonesGraphs([["graph","highcharts-graph"]]).forEach(function(a){var c=b[a[0]];c&&(b[a[0]]=c.destroy())})};m.forEach(function(b){J[b]&&(J[b].boostThreshold=5E3,J[b].boostData=[],v[b].prototype.fillOpacity=!0)})});r(b,"Extensions/Boost/NamedColors.js",[b["Core/Color/Color.js"]],function(b){var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",
|