highcharts 9.2.2 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/bower.json +1 -1
- package/css/annotations/popup.css +48 -8
- package/css/annotations/popup.scss +70 -22
- package/css/highcharts.css +45 -0
- package/css/highcharts.scss +40 -0
- package/css/themes/dark-unica.css +45 -0
- package/css/themes/grid-light.css +45 -0
- package/css/themes/sand-signika.css +45 -0
- package/es-modules/Accessibility/A11yI18n.js +273 -224
- package/es-modules/Accessibility/Accessibility.js +233 -128
- package/es-modules/Accessibility/AccessibilityComponent.js +79 -314
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +10 -0
- package/es-modules/Accessibility/Components/ContainerComponent.js +52 -27
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +46 -23
- package/es-modules/Accessibility/Components/LegendComponent.js +97 -65
- package/es-modules/Accessibility/Components/MenuComponent.js +59 -40
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -8
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +152 -115
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +133 -68
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +64 -27
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +38 -21
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +380 -325
- package/es-modules/Accessibility/Components/ZoomComponent.js +28 -20
- package/es-modules/Accessibility/FocusBorder.js +192 -147
- package/es-modules/Accessibility/HighContrastMode.js +78 -66
- package/es-modules/Accessibility/HighContrastTheme.js +10 -0
- package/es-modules/Accessibility/KeyboardNavigation.js +144 -70
- package/es-modules/Accessibility/KeyboardNavigationHandler.js +71 -44
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +11 -1
- package/es-modules/Accessibility/Options/LangOptions.js +1 -2
- package/es-modules/Accessibility/Options/Options.js +32 -17
- package/es-modules/Accessibility/ProxyElement.js +212 -0
- package/es-modules/Accessibility/ProxyProvider.js +305 -0
- package/es-modules/Accessibility/Utils/Announcer.js +15 -8
- package/es-modules/Accessibility/Utils/ChartUtilities.js +41 -16
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +27 -15
- package/es-modules/Accessibility/Utils/EventProvider.js +27 -17
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +125 -30
- package/es-modules/Core/Axis/Axis.js +37 -30
- package/es-modules/Core/Axis/AxisDefaults.js +35 -24
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +54 -4
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +5 -5
- package/es-modules/Core/Axis/OrdinalAxis.js +8 -12
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +4 -5
- package/es-modules/Core/Axis/ScrollbarAxis.js +10 -3
- package/es-modules/Core/Axis/TreeGridAxis.js +2 -2
- package/es-modules/Core/Axis/TreeGridTick.js +1 -2
- package/es-modules/Core/Chart/Chart.js +2 -3
- package/es-modules/Core/Chart/ChartDefaults.js +3 -4
- package/es-modules/Core/Chart/ChartNavigationComposition.js +92 -0
- package/es-modules/Core/Chart/MapChart.js +10 -22
- package/es-modules/Core/Chart/StockChart.js +3 -293
- package/es-modules/Core/Color/Palettes.js +22 -0
- package/es-modules/Core/DefaultOptions.js +19 -17
- package/es-modules/Core/Foundation.js +39 -31
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/HttpUtilities.js +3 -3
- package/es-modules/Core/Legend/Legend.js +7 -3
- package/es-modules/Core/Navigator.js +7 -8
- package/es-modules/Core/Pointer.js +39 -36
- package/es-modules/Core/Renderer/HTML/AST.js +2 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -18
- package/es-modules/Core/Renderer/SVG/SVGElement.js +3 -4
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +21 -18
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +3 -3
- package/es-modules/Core/ScrollbarDefaults.js +10 -9
- package/es-modules/Core/Series/DataLabel.js +2 -3
- package/es-modules/Core/Series/Point.js +5 -3
- package/es-modules/Core/Series/Series.js +153 -162
- package/es-modules/Core/Series/SeriesDefaults.js +3 -4
- package/es-modules/Core/Series/SeriesRegistry.js +1 -2
- package/es-modules/Core/Tooltip.js +44 -17
- package/es-modules/Core/Utilities.js +15 -7
- package/es-modules/Data/DataConverter.js +489 -0
- package/es-modules/Data/DataPromise.js +252 -0
- package/es-modules/Data/DataSeriesConverter.js +203 -0
- package/es-modules/Data/DataTable.js +1204 -0
- package/es-modules/Data/Modifiers/ChainModifier.js +299 -0
- package/es-modules/Data/Modifiers/DataModifier.js +303 -0
- package/es-modules/Data/Modifiers/GroupModifier.js +144 -0
- package/es-modules/Data/Modifiers/InvertModifier.js +254 -0
- package/es-modules/Data/Modifiers/RangeModifier.js +143 -0
- package/es-modules/Data/Modifiers/SeriesPointsModifier.js +110 -0
- package/es-modules/Data/Modifiers/SortModifier.js +249 -0
- package/es-modules/Data/Parsers/CSVParser.js +399 -0
- package/es-modules/Data/Parsers/DataParser.js +101 -0
- package/es-modules/Data/Parsers/GoogleSheetsParser.js +220 -0
- package/es-modules/Data/Parsers/HTMLTableParser.js +213 -0
- package/es-modules/Data/Stores/CSVStore.js +317 -0
- package/es-modules/Data/Stores/DataStore.js +276 -0
- package/es-modules/Data/Stores/GoogleSheetsStore.js +167 -0
- package/es-modules/Data/Stores/HTMLTableStore.js +351 -0
- package/es-modules/Extensions/Annotations/Annotations.js +61 -11
- package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +199 -0
- package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +7 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +68 -19
- package/es-modules/Extensions/Annotations/Popup.js +479 -141
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +51 -2
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +2 -3
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +219 -0
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +14 -8
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +5 -5
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +207 -0
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -5
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +1 -1
- package/es-modules/Extensions/Boost/BoostOverrides.js +3 -1
- package/es-modules/Extensions/Boost/WGLShader.js +4 -3
- package/es-modules/Extensions/BoostCanvas.js +1 -2
- package/es-modules/Extensions/CurrentDateIndication.js +2 -3
- package/es-modules/Extensions/DataGrouping.js +31 -18
- package/es-modules/Extensions/DownloadURL.js +2 -2
- package/es-modules/Extensions/DragPanes.js +1 -2
- package/es-modules/Extensions/Drilldown.js +2 -3
- package/es-modules/Extensions/Exporting/Exporting.js +8 -7
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +8 -15
- package/es-modules/Extensions/GeoJSON.js +39 -63
- package/es-modules/Extensions/MarkerClusters.js +115 -97
- package/es-modules/Extensions/NoDataToDisplay.js +1 -2
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +9 -8
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +2 -3
- package/es-modules/Extensions/Pane.js +5 -6
- package/es-modules/Extensions/RangeSelector.js +3 -4
- package/es-modules/Extensions/Sonification/ChartSonify.js +247 -637
- package/es-modules/Extensions/Sonification/Earcon.js +136 -102
- package/es-modules/Extensions/Sonification/Instrument.js +496 -426
- package/es-modules/Extensions/Sonification/MusicalFrequencies.js +10 -0
- package/es-modules/Extensions/Sonification/Options.js +10 -0
- package/es-modules/Extensions/Sonification/PointSonify.js +203 -152
- package/es-modules/Extensions/Sonification/SeriesSonify.js +459 -0
- package/es-modules/Extensions/Sonification/SignalHandler.js +124 -0
- package/es-modules/Extensions/Sonification/Sonification.js +26 -52
- package/es-modules/Extensions/Sonification/{Utilities.js → SonificationUtilities.js} +62 -84
- package/es-modules/Extensions/Sonification/Timeline.js +255 -567
- package/es-modules/Extensions/Sonification/TimelineEvent.js +158 -0
- package/es-modules/Extensions/Sonification/TimelinePath.js +311 -0
- package/es-modules/Maps/MapNavigation.js +27 -64
- package/es-modules/Maps/MapNavigationOptionsDefault.js +3 -0
- package/es-modules/Maps/MapPointer.js +7 -5
- package/es-modules/Maps/MapView.js +450 -0
- package/es-modules/Maps/MapViewOptionsDefault.js +95 -0
- package/es-modules/Maps/Projection.js +433 -0
- package/es-modules/Maps/ProjectionDefinition.js +9 -0
- package/es-modules/Maps/Projections/EqualEarth.js +42 -0
- package/es-modules/Maps/Projections/Miller.js +17 -0
- package/es-modules/Maps/Projections/Orthographic.js +26 -0
- package/es-modules/Maps/Projections/ProjectionRegistry.js +17 -0
- package/es-modules/Maps/Projections/WebMercator.js +25 -0
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +4 -5
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -8
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +1 -2
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -2
- package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
- package/es-modules/Series/Bubble/BubblePoint.js +5 -0
- package/es-modules/Series/Bubble/BubbleSeries.js +90 -50
- package/es-modules/Series/Candlestick/CandlestickSeries.js +10 -18
- package/es-modules/{Mixins/CenteredSeries.js → Series/CenteredUtilities.js} +45 -23
- package/es-modules/Series/ColorMapComposition.js +109 -0
- package/es-modules/Series/Column/ColumnDataLabel.js +5 -5
- package/es-modules/Series/Column/ColumnSeries.js +3 -4
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +6 -6
- package/es-modules/Series/DataModifyComposition.js +539 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +2 -6
- package/es-modules/Series/DerivedComposition.js +137 -0
- package/es-modules/Series/DrawPointComposition.js +111 -0
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +2 -3
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +1 -2
- package/es-modules/Series/Flags/FlagsSeries.js +18 -25
- package/es-modules/Series/Funnel/FunnelSeries.js +6 -5
- package/es-modules/Series/Gantt/GanttSeries.js +0 -2
- package/es-modules/Series/Gauge/GaugePoint.js +1 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +7 -7
- package/es-modules/Series/HLC/HLCPoint.js +55 -0
- package/es-modules/Series/HLC/HLCSeries.js +383 -0
- package/es-modules/Series/Heatmap/HeatmapPoint.js +3 -4
- package/es-modules/Series/Heatmap/HeatmapSeries.js +19 -6
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +2 -3
- package/es-modules/Series/Histogram/HistogramSeries.js +3 -7
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +9 -10
- package/es-modules/Series/Line/LineSeries.js +1 -2
- package/es-modules/Series/Map/MapPoint.js +23 -16
- package/es-modules/Series/Map/MapSeries.js +268 -309
- package/es-modules/Series/MapBubble/MapBubblePoint.js +0 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +10 -1
- package/es-modules/Series/MapPoint/MapPointPoint.js +5 -1
- package/es-modules/Series/MapPoint/MapPointSeries.js +87 -4
- package/es-modules/Series/Networkgraph/Networkgraph.js +5 -5
- package/es-modules/{Mixins/Nodes.js → Series/NodesComposition.js} +76 -29
- package/es-modules/Series/OHLC/OHLCPoint.js +2 -6
- package/es-modules/Series/OHLC/OHLCSeries.js +55 -183
- package/es-modules/{Mixins/OnSeries.js → Series/OnSeriesComposition.js} +53 -21
- package/es-modules/Series/Organization/OrganizationSeries.js +2 -3
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +46 -6
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -7
- package/es-modules/Series/Pie/PieDataLabel.js +1 -2
- package/es-modules/Series/Pie/PieSeries.js +6 -7
- package/es-modules/Series/Sankey/SankeyPoint.js +0 -4
- package/es-modules/Series/Sankey/SankeySeries.js +89 -20
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -3
- package/es-modules/Series/Sunburst/SunburstSeries.js +4 -4
- package/es-modules/Series/Tilemap/TilemapPoint.js +2 -3
- package/es-modules/Series/Timeline/TimelineSeries.js +3 -4
- package/es-modules/{Mixins/TreeSeries.js → Series/TreeUtilities.js} +86 -76
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +8 -8
- package/es-modules/Series/Venn/VennPoint.js +16 -7
- package/es-modules/Series/Venn/VennSeries.js +5 -8
- package/es-modules/Series/Venn/VennUtils.js +550 -439
- package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -3
- package/es-modules/Series/Windbarb/WindbarbSeries.js +23 -24
- package/es-modules/Series/Wordcloud/WordcloudPoint.js +8 -6
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +24 -20
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +673 -484
- package/es-modules/Series/XRange/XRangePoint.js +1 -0
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -6
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +2 -3
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +14 -20
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -6
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +11 -13
- package/es-modules/Stock/Indicators/ArrayUtilities.js +47 -0
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +27 -11
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +6 -12
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -11
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +19 -11
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +17 -11
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +1 -3
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +11 -9
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -16
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +2 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/{Mixins/MultipleLines.js → Stock/Indicators/MultipleLinesComposition.js} +136 -87
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +1 -3
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +14 -13
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -11
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -26
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +9 -32
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +0 -8
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +15 -8
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +4 -6
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +26 -11
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +6 -12
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +20 -3
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +2 -3
- package/es-modules/Stock/StockToolsBindings.js +144 -42
- package/es-modules/Stock/StockToolsGui.js +405 -11
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ema.src.js +4 -10
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +2 -2
- package/es-modules/masters/indicators/indicators.src.js +2 -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 +16 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +3 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +6 -3
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -2
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -3
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +33 -2
- 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 +4 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +1 -1
- package/highcharts-3d.src.js +1 -1
- package/highcharts-gantt.js +801 -804
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +775 -739
- package/highcharts-more.js +194 -193
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +207 -119
- package/highcharts.d.ts +9670 -4217
- package/highcharts.js +585 -588
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +9670 -4217
- package/highcharts.src.js +608 -587
- package/highmaps.js +726 -708
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2708 -1587
- package/highstock.js +788 -783
- package/highstock.js.map +1 -1
- package/highstock.src.js +1896 -1267
- package/indicators/acceleration-bands.js +10 -9
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +156 -112
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +4 -4
- package/indicators/apo.js +5 -6
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +16 -84
- package/indicators/aroon-oscillator.js +9 -9
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +160 -177
- package/indicators/aroon.js +9 -9
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +156 -112
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +10 -9
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +180 -117
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +8 -9
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +8 -76
- 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 +5 -6
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +3 -75
- package/indicators/disparity-index.js +6 -7
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +19 -74
- package/indicators/dmi.js +11 -11
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +173 -116
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ema.js +1 -13
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +7 -188
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +197 -203
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +649 -720
- package/indicators/indicators.js +12 -12
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +188 -124
- package/indicators/keltner-channels.js +10 -10
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +164 -118
- package/indicators/klinger.js +12 -13
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +161 -184
- package/indicators/macd.js +2 -2
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +2 -3
- 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 +3 -3
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +2 -4
- 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 +5 -6
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +3 -75
- package/indicators/price-channel.js +9 -9
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +207 -168
- 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 +9 -9
- 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 +5 -6
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +2 -72
- package/indicators/stochastic.js +10 -10
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +209 -164
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +6 -7
- package/indicators/tema.js +6 -7
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +28 -75
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +4 -5
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +8 -76
- package/indicators/volume-by-price.js +16 -16
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +21 -3
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +5 -6
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +41 -51
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.d.ts +5 -0
- package/modules/accessibility.js +234 -216
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.d.ts +5 -0
- package/modules/accessibility.src.js +9709 -8608
- package/modules/annotations-advanced.d.ts +30 -0
- package/modules/annotations-advanced.js +191 -165
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.d.ts +30 -0
- package/modules/annotations-advanced.src.js +1578 -320
- package/modules/annotations.js +121 -107
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +958 -229
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +15 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +3 -3
- package/modules/boost.js +79 -79
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +10 -9
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +1 -1
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +24 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +69 -98
- package/modules/current-date-indicator.js +4 -4
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +4 -4
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +19 -19
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +9 -6
- package/modules/datagrouping.js +20 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +33 -19
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.js +11 -11
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +4 -7
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +8 -8
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +3 -3
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.src.js +1 -1
- package/modules/drilldown.js +24 -24
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +4 -4
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +4 -4
- package/modules/export-data.js +1 -1
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +3 -3
- package/modules/exporting.js +39 -38
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +98 -67
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +12 -12
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +9 -6
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +217 -218
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +167 -152
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +39 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +177 -162
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.src.js +4 -4
- package/modules/histogram-bellcurve.js +13 -13
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +91 -86
- package/modules/hollowcandlestick.js +9 -9
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +11 -11
- 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 +136 -14
- package/modules/map.js +142 -122
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +136 -14
- package/modules/map.src.js +2129 -1029
- package/modules/marker-clusters.js +36 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +173 -142
- package/modules/networkgraph.d.ts +12 -1
- package/modules/networkgraph.js +49 -49
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.d.ts +12 -1
- package/modules/networkgraph.src.js +91 -43
- package/modules/no-data-to-display.js +5 -5
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +3 -3
- package/modules/offline-exporting.js +17 -17
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +13 -13
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +26 -26
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +4 -4
- package/modules/organization.js +13 -13
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +4 -4
- 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 +7 -7
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +89 -78
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.src.js +1 -1
- 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.d.ts +12 -1
- package/modules/sankey.js +29 -29
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.d.ts +12 -1
- package/modules/sankey.src.js +300 -176
- package/modules/series-label.js +1 -1
- package/modules/series-label.src.js +1 -1
- package/modules/solid-gauge.js +1 -1
- package/modules/solid-gauge.src.js +1 -1
- package/modules/sonification.js +59 -55
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +3034 -2553
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +177 -164
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +1001 -131
- package/modules/stock.d.ts +39 -6
- package/modules/stock.js +204 -196
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +39 -6
- package/modules/stock.src.js +1689 -1081
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +61 -60
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +329 -266
- package/modules/tilemap.js +17 -17
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +3 -4
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +5 -5
- package/modules/treegrid.js +56 -57
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +126 -120
- package/modules/treemap.js +41 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +319 -254
- 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 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +731 -721
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +90 -62
- package/modules/wordcloud.js +23 -24
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +897 -949
- package/modules/xrange.js +2 -2
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +2 -1
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
- package/es-modules/Core/Axis/MapAxis.js +0 -157
- package/es-modules/Core/Color/Palette.js +0 -82
- package/es-modules/Extensions/Sonification/InstrumentDefinitions.js +0 -32
- package/es-modules/Mixins/ColorMapSeries.js +0 -82
- package/es-modules/Mixins/ColorSeries.js +0 -77
- package/es-modules/Mixins/DerivedSeries.js +0 -118
- package/es-modules/Mixins/DrawPoint.js +0 -81
- package/es-modules/Mixins/IndicatorRequired.js +0 -56
- package/es-modules/Mixins/Navigation.js +0 -54
- package/es-modules/Mixins/NelderMead.js +0 -132
- package/es-modules/Mixins/Polygon.js +0 -259
- package/es-modules/Mixins/ReduceArray.js +0 -54
package/highcharts-gantt.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts Gantt JS v9.
|
|
2
|
+
* @license Highcharts Gantt JS v9.3.0 (2021-10-21)
|
|
3
3
|
*
|
|
4
4
|
* (c) 2017-2021 Lars Cabrera, Torstein Honsi, Jon Arild Nygard & Oystein Moseng
|
|
5
5
|
*
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
* Constants
|
|
72
72
|
*
|
|
73
73
|
* */
|
|
74
|
-
Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '9.
|
|
74
|
+
Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '9.3.0', Globals.win = w, Globals.doc = Globals.win.document, Globals.svg = (Globals.doc &&
|
|
75
75
|
Globals.doc.createElementNS &&
|
|
76
76
|
!!Globals.doc.createElementNS(Globals.SVG_NS, 'svg').createSVGRect), Globals.userAgent = (Globals.win.navigator && Globals.win.navigator.userAgent) || '', Globals.isChrome = Globals.userAgent.indexOf('Chrome') !== -1, Globals.isFirefox = Globals.userAgent.indexOf('Firefox') !== -1, Globals.isMS = /(edge|msie|trident)/i.test(Globals.userAgent) && !Globals.win.opera, Globals.isSafari = !Globals.isChrome && Globals.userAgent.indexOf('Safari') !== -1, Globals.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(Globals.userAgent), Globals.isWebKit = Globals.userAgent.indexOf('AppleWebKit') !== -1, Globals.deg2rad = Math.PI * 2 / 360, Globals.hasBidiBug = (Globals.isFirefox &&
|
|
77
77
|
parseInt(Globals.userAgent.split('Firefox/')[1], 10) < 4 // issue #38
|
|
@@ -520,9 +520,13 @@
|
|
|
520
520
|
return typeof obj !== 'undefined' && obj !== null;
|
|
521
521
|
}
|
|
522
522
|
/**
|
|
523
|
-
* Set or get an attribute or an object of attributes.
|
|
524
|
-
*
|
|
525
|
-
*
|
|
523
|
+
* Set or get an attribute or an object of attributes.
|
|
524
|
+
*
|
|
525
|
+
* To use as a setter, pass a key and a value, or let the second argument be a
|
|
526
|
+
* collection of keys and values. When using a collection, passing a value of
|
|
527
|
+
* `null` or `undefined` will remove the attribute.
|
|
528
|
+
*
|
|
529
|
+
* To use as a getter, pass only a string as the second argument.
|
|
526
530
|
*
|
|
527
531
|
* @function Highcharts.attr
|
|
528
532
|
*
|
|
@@ -558,7 +562,12 @@
|
|
|
558
562
|
}
|
|
559
563
|
else {
|
|
560
564
|
objectEach(prop, function (val, key) {
|
|
561
|
-
|
|
565
|
+
if (defined(val)) {
|
|
566
|
+
elem.setAttribute(key, val);
|
|
567
|
+
}
|
|
568
|
+
else {
|
|
569
|
+
elem.removeAttribute(key);
|
|
570
|
+
}
|
|
562
571
|
});
|
|
563
572
|
}
|
|
564
573
|
return ret;
|
|
@@ -929,8 +938,6 @@
|
|
|
929
938
|
*
|
|
930
939
|
* @param {Function} sortFunction
|
|
931
940
|
* The function to sort it with, like with regular Array.prototype.sort.
|
|
932
|
-
*
|
|
933
|
-
* @return {void}
|
|
934
941
|
*/
|
|
935
942
|
function stableSort(arr, sortFunction) {
|
|
936
943
|
// @todo It seems like Chrome since v70 sorts in a stable way internally,
|
|
@@ -1057,7 +1064,8 @@
|
|
|
1057
1064
|
* The corrected float number.
|
|
1058
1065
|
*/
|
|
1059
1066
|
function correctFloat(num, prec) {
|
|
1060
|
-
|
|
1067
|
+
// When the number is higher than 1e14 use the number (#16275)
|
|
1068
|
+
return num > 1e14 ? num : parseFloat(num.toPrecision(prec || 14));
|
|
1061
1069
|
}
|
|
1062
1070
|
/**
|
|
1063
1071
|
* The time unit lookup
|
|
@@ -2155,106 +2163,7 @@
|
|
|
2155
2163
|
|
|
2156
2164
|
return Utilities;
|
|
2157
2165
|
});
|
|
2158
|
-
_registerModule(_modules, 'Core/
|
|
2159
|
-
var palette = {
|
|
2160
|
-
/**
|
|
2161
|
-
* Colors for data series and points.
|
|
2162
|
-
*/
|
|
2163
|
-
colors: [
|
|
2164
|
-
'#7cb5ec',
|
|
2165
|
-
'#434348',
|
|
2166
|
-
'#90ed7d',
|
|
2167
|
-
'#f7a35c',
|
|
2168
|
-
'#8085e9',
|
|
2169
|
-
'#f15c80',
|
|
2170
|
-
'#e4d354',
|
|
2171
|
-
'#2b908f',
|
|
2172
|
-
'#f45b5b',
|
|
2173
|
-
'#91e8e1'
|
|
2174
|
-
],
|
|
2175
|
-
/**
|
|
2176
|
-
* Chart background,
|
|
2177
|
-
point stroke for markers and columns etc
|
|
2178
|
-
*/
|
|
2179
|
-
backgroundColor: '#ffffff',
|
|
2180
|
-
/**
|
|
2181
|
-
* Strong text.
|
|
2182
|
-
*/
|
|
2183
|
-
neutralColor100: '#000000',
|
|
2184
|
-
/**
|
|
2185
|
-
* Main text and some strokes.
|
|
2186
|
-
*/
|
|
2187
|
-
neutralColor80: '#333333',
|
|
2188
|
-
/**
|
|
2189
|
-
* Axis labels,
|
|
2190
|
-
axis title,
|
|
2191
|
-
connector fallback.
|
|
2192
|
-
*/
|
|
2193
|
-
neutralColor60: '#666666',
|
|
2194
|
-
/**
|
|
2195
|
-
* Credits text,
|
|
2196
|
-
export menu stroke.
|
|
2197
|
-
*/
|
|
2198
|
-
neutralColor40: '#999999',
|
|
2199
|
-
/**
|
|
2200
|
-
* Disabled texts,
|
|
2201
|
-
button strokes,
|
|
2202
|
-
crosshair etc.
|
|
2203
|
-
*/
|
|
2204
|
-
neutralColor20: '#cccccc',
|
|
2205
|
-
/**
|
|
2206
|
-
* Grid lines etc.
|
|
2207
|
-
*/
|
|
2208
|
-
neutralColor10: '#e6e6e6',
|
|
2209
|
-
/**
|
|
2210
|
-
* Minor grid lines etc.
|
|
2211
|
-
*/
|
|
2212
|
-
neutralColor5: '#f2f2f2',
|
|
2213
|
-
/**
|
|
2214
|
-
* Tooltip backgroud,
|
|
2215
|
-
button fills,
|
|
2216
|
-
map null points.
|
|
2217
|
-
*/
|
|
2218
|
-
neutralColor3: '#f7f7f7',
|
|
2219
|
-
/**
|
|
2220
|
-
* Drilldown clickable labels,
|
|
2221
|
-
color axis max color.
|
|
2222
|
-
*/
|
|
2223
|
-
highlightColor100: '#003399',
|
|
2224
|
-
/**
|
|
2225
|
-
* Selection marker,
|
|
2226
|
-
menu hover,
|
|
2227
|
-
button hover,
|
|
2228
|
-
chart border,
|
|
2229
|
-
navigator series.
|
|
2230
|
-
*/
|
|
2231
|
-
highlightColor80: '#335cad',
|
|
2232
|
-
/**
|
|
2233
|
-
* Navigator mask fill.
|
|
2234
|
-
*/
|
|
2235
|
-
highlightColor60: '#6685c2',
|
|
2236
|
-
/**
|
|
2237
|
-
* Ticks and axis line.
|
|
2238
|
-
*/
|
|
2239
|
-
highlightColor20: '#ccd6eb',
|
|
2240
|
-
/**
|
|
2241
|
-
* Pressed button,
|
|
2242
|
-
color axis min color.
|
|
2243
|
-
*/
|
|
2244
|
-
highlightColor10: '#e6ebf5',
|
|
2245
|
-
/**
|
|
2246
|
-
* Positive indicator color
|
|
2247
|
-
*/
|
|
2248
|
-
positiveColor: '#06b535',
|
|
2249
|
-
/**
|
|
2250
|
-
* Negative indicator color
|
|
2251
|
-
*/
|
|
2252
|
-
negativeColor: '#f21313'
|
|
2253
|
-
};
|
|
2254
|
-
|
|
2255
|
-
return palette;
|
|
2256
|
-
});
|
|
2257
|
-
_registerModule(_modules, 'Core/Chart/ChartDefaults.js', [_modules['Core/Color/Palette.js']], function (Palette) {
|
|
2166
|
+
_registerModule(_modules, 'Core/Chart/ChartDefaults.js', [], function () {
|
|
2258
2167
|
/* *
|
|
2259
2168
|
*
|
|
2260
2169
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -3240,7 +3149,7 @@
|
|
|
3240
3149
|
*
|
|
3241
3150
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
3242
3151
|
*/
|
|
3243
|
-
borderColor:
|
|
3152
|
+
borderColor: "#335cad" /* highlightColor80 */,
|
|
3244
3153
|
/**
|
|
3245
3154
|
* The pixel width of the outer chart border.
|
|
3246
3155
|
*
|
|
@@ -3279,7 +3188,7 @@
|
|
|
3279
3188
|
*
|
|
3280
3189
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
3281
3190
|
*/
|
|
3282
|
-
backgroundColor:
|
|
3191
|
+
backgroundColor: "#ffffff" /* backgroundColor */,
|
|
3283
3192
|
/**
|
|
3284
3193
|
* The background color or gradient for the plot area.
|
|
3285
3194
|
*
|
|
@@ -3336,7 +3245,7 @@
|
|
|
3336
3245
|
*
|
|
3337
3246
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
3338
3247
|
*/
|
|
3339
|
-
plotBorderColor:
|
|
3248
|
+
plotBorderColor: "#cccccc" /* neutralColor20 */
|
|
3340
3249
|
};
|
|
3341
3250
|
/* *
|
|
3342
3251
|
*
|
|
@@ -3773,6 +3682,31 @@
|
|
|
3773
3682
|
|
|
3774
3683
|
return Color;
|
|
3775
3684
|
});
|
|
3685
|
+
_registerModule(_modules, 'Core/Color/Palettes.js', [], function () {
|
|
3686
|
+
/**
|
|
3687
|
+
* Series palettes for Highcharts. Series colors are defined in highcharts.scss.
|
|
3688
|
+
* **Do not edit this file!** This file is generated using the 'gulp palette' task.
|
|
3689
|
+
*/
|
|
3690
|
+
var SeriesPalettes = {
|
|
3691
|
+
/**
|
|
3692
|
+
* Colors for data series and points.
|
|
3693
|
+
*/
|
|
3694
|
+
colors: [
|
|
3695
|
+
'#7cb5ec',
|
|
3696
|
+
'#434348',
|
|
3697
|
+
'#90ed7d',
|
|
3698
|
+
'#f7a35c',
|
|
3699
|
+
'#8085e9',
|
|
3700
|
+
'#f15c80',
|
|
3701
|
+
'#e4d354',
|
|
3702
|
+
'#2b908f',
|
|
3703
|
+
'#f45b5b',
|
|
3704
|
+
'#91e8e1'
|
|
3705
|
+
]
|
|
3706
|
+
};
|
|
3707
|
+
|
|
3708
|
+
return SeriesPalettes;
|
|
3709
|
+
});
|
|
3776
3710
|
_registerModule(_modules, 'Core/Time.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (H, U) {
|
|
3777
3711
|
/* *
|
|
3778
3712
|
*
|
|
@@ -4536,7 +4470,7 @@
|
|
|
4536
4470
|
|
|
4537
4471
|
return Time;
|
|
4538
4472
|
});
|
|
4539
|
-
_registerModule(_modules, 'Core/DefaultOptions.js', [_modules['Core/Chart/ChartDefaults.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Color/
|
|
4473
|
+
_registerModule(_modules, 'Core/DefaultOptions.js', [_modules['Core/Chart/ChartDefaults.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Color/Palettes.js'], _modules['Core/Time.js'], _modules['Core/Utilities.js']], function (ChartDefaults, Color, H, Palettes, Time, U) {
|
|
4540
4474
|
/* *
|
|
4541
4475
|
*
|
|
4542
4476
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -4598,7 +4532,7 @@
|
|
|
4598
4532
|
* @default ["#7cb5ec", "#434348", "#90ed7d", "#f7a35c", "#8085e9",
|
|
4599
4533
|
* "#f15c80", "#e4d354", "#2b908f", "#f45b5b", "#91e8e1"]
|
|
4600
4534
|
*/
|
|
4601
|
-
colors:
|
|
4535
|
+
colors: Palettes.colors,
|
|
4602
4536
|
/**
|
|
4603
4537
|
* Styled mode only. Configuration object for adding SVG definitions for
|
|
4604
4538
|
* reusable elements. See [gradients, shadows and
|
|
@@ -5415,7 +5349,7 @@
|
|
|
5415
5349
|
/**
|
|
5416
5350
|
* @ignore-option
|
|
5417
5351
|
*/
|
|
5418
|
-
color:
|
|
5352
|
+
color: "#333333" /* neutralColor80 */
|
|
5419
5353
|
}
|
|
5420
5354
|
},
|
|
5421
5355
|
/**
|
|
@@ -5695,7 +5629,7 @@
|
|
|
5695
5629
|
*
|
|
5696
5630
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
5697
5631
|
*/
|
|
5698
|
-
borderColor:
|
|
5632
|
+
borderColor: "#999999" /* neutralColor40 */,
|
|
5699
5633
|
/**
|
|
5700
5634
|
* The border corner radius of the legend.
|
|
5701
5635
|
*
|
|
@@ -5789,7 +5723,7 @@
|
|
|
5789
5723
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
5790
5724
|
* @since 2.2.4
|
|
5791
5725
|
*/
|
|
5792
|
-
activeColor:
|
|
5726
|
+
activeColor: "#003399" /* highlightColor100 */,
|
|
5793
5727
|
/**
|
|
5794
5728
|
* The color of the inactive up or down arrow in the legend page
|
|
5795
5729
|
* navigation. .
|
|
@@ -5805,7 +5739,7 @@
|
|
|
5805
5739
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
5806
5740
|
* @since 2.2.4
|
|
5807
5741
|
*/
|
|
5808
|
-
inactiveColor:
|
|
5742
|
+
inactiveColor: "#cccccc" /* neutralColor20 */
|
|
5809
5743
|
},
|
|
5810
5744
|
/**
|
|
5811
5745
|
* The inner padding of the legend box.
|
|
@@ -5881,7 +5815,7 @@
|
|
|
5881
5815
|
/**
|
|
5882
5816
|
* @ignore
|
|
5883
5817
|
*/
|
|
5884
|
-
color:
|
|
5818
|
+
color: "#333333" /* neutralColor80 */,
|
|
5885
5819
|
/**
|
|
5886
5820
|
* @ignore
|
|
5887
5821
|
*/
|
|
@@ -5919,7 +5853,7 @@
|
|
|
5919
5853
|
/**
|
|
5920
5854
|
* @ignore
|
|
5921
5855
|
*/
|
|
5922
|
-
color:
|
|
5856
|
+
color: "#000000" /* neutralColor100 */
|
|
5923
5857
|
},
|
|
5924
5858
|
/**
|
|
5925
5859
|
* CSS styles for each legend item when the corresponding series or
|
|
@@ -5940,7 +5874,7 @@
|
|
|
5940
5874
|
/**
|
|
5941
5875
|
* @ignore
|
|
5942
5876
|
*/
|
|
5943
|
-
color:
|
|
5877
|
+
color: "#cccccc" /* neutralColor20 */
|
|
5944
5878
|
},
|
|
5945
5879
|
/**
|
|
5946
5880
|
* Whether to apply a drop shadow to the legend. A `backgroundColor`
|
|
@@ -6244,7 +6178,7 @@
|
|
|
6244
6178
|
/**
|
|
6245
6179
|
* @ignore
|
|
6246
6180
|
*/
|
|
6247
|
-
backgroundColor:
|
|
6181
|
+
backgroundColor: "#ffffff" /* backgroundColor */,
|
|
6248
6182
|
/**
|
|
6249
6183
|
* @ignore
|
|
6250
6184
|
*/
|
|
@@ -6587,11 +6521,13 @@
|
|
|
6587
6521
|
* @apioption tooltip.xDateFormat
|
|
6588
6522
|
*/
|
|
6589
6523
|
/**
|
|
6590
|
-
* How many decimals to show for the `point.change`
|
|
6591
|
-
* `
|
|
6592
|
-
*
|
|
6524
|
+
* How many decimals to show for the `point.change`
|
|
6525
|
+
* or the `point.cumulativeSum` value when the `series.compare`
|
|
6526
|
+
* or the `series.cumulative` option is set.
|
|
6527
|
+
* This is overridable in each series' tooltip options object.
|
|
6593
6528
|
*
|
|
6594
6529
|
* @type {number}
|
|
6530
|
+
* @default 2
|
|
6595
6531
|
* @since 1.0.1
|
|
6596
6532
|
* @product highstock
|
|
6597
6533
|
* @apioption tooltip.changeDecimals
|
|
@@ -6629,7 +6565,7 @@
|
|
|
6629
6565
|
* header will by default be guessed based on the closest data points.
|
|
6630
6566
|
* This member gives the default string representations used for
|
|
6631
6567
|
* each unit. For an overview of the replacement codes, see
|
|
6632
|
-
* [dateFormat](/class-reference/Highcharts
|
|
6568
|
+
* [dateFormat](/class-reference/Highcharts.Time#dateFormat).
|
|
6633
6569
|
*
|
|
6634
6570
|
* @see [xAxis.dateTimeLabelFormats](#xAxis.dateTimeLabelFormats)
|
|
6635
6571
|
*
|
|
@@ -6833,7 +6769,7 @@
|
|
|
6833
6769
|
*
|
|
6834
6770
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
6835
6771
|
*/
|
|
6836
|
-
backgroundColor: color(
|
|
6772
|
+
backgroundColor: color("#f7f7f7" /* neutralColor3 */)
|
|
6837
6773
|
// @todo: Disallow undefined as input for colors
|
|
6838
6774
|
.setOpacity(0.85).get(),
|
|
6839
6775
|
/**
|
|
@@ -6896,7 +6832,7 @@
|
|
|
6896
6832
|
*/
|
|
6897
6833
|
style: {
|
|
6898
6834
|
/** @internal */
|
|
6899
|
-
color:
|
|
6835
|
+
color: "#333333" /* neutralColor80 */,
|
|
6900
6836
|
/** @internal */
|
|
6901
6837
|
cursor: 'default',
|
|
6902
6838
|
/** @internal */
|
|
@@ -7011,7 +6947,7 @@
|
|
|
7011
6947
|
/** @internal */
|
|
7012
6948
|
cursor: 'pointer',
|
|
7013
6949
|
/** @internal */
|
|
7014
|
-
color:
|
|
6950
|
+
color: "#999999" /* neutralColor40 */,
|
|
7015
6951
|
/** @internal */
|
|
7016
6952
|
fontSize: '9px'
|
|
7017
6953
|
},
|
|
@@ -8236,6 +8172,7 @@
|
|
|
8236
8172
|
'text-align',
|
|
8237
8173
|
'textAnchor',
|
|
8238
8174
|
'textLength',
|
|
8175
|
+
'title',
|
|
8239
8176
|
'type',
|
|
8240
8177
|
'valign',
|
|
8241
8178
|
'width',
|
|
@@ -8281,6 +8218,7 @@
|
|
|
8281
8218
|
*/
|
|
8282
8219
|
AST.allowedTags = [
|
|
8283
8220
|
'a',
|
|
8221
|
+
'abbr',
|
|
8284
8222
|
'b',
|
|
8285
8223
|
'br',
|
|
8286
8224
|
'button',
|
|
@@ -8800,7 +8738,7 @@
|
|
|
8800
8738
|
|
|
8801
8739
|
return RendererUtilities;
|
|
8802
8740
|
});
|
|
8803
|
-
_registerModule(_modules, 'Core/Renderer/SVG/SVGElement.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Renderer/HTML/AST.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/
|
|
8741
|
+
_registerModule(_modules, 'Core/Renderer/SVG/SVGElement.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Renderer/HTML/AST.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (A, AST, Color, H, U) {
|
|
8804
8742
|
/* *
|
|
8805
8743
|
*
|
|
8806
8744
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -10337,7 +10275,7 @@
|
|
|
10337
10275
|
var childNodes = [].slice.call(textNode.childNodes);
|
|
10338
10276
|
for (var i = 0; i < childNodes.length; i++) {
|
|
10339
10277
|
var childNode = childNodes[i];
|
|
10340
|
-
if (childNode.nodeType === Node.TEXT_NODE ||
|
|
10278
|
+
if (childNode.nodeType === win.Node.TEXT_NODE ||
|
|
10341
10279
|
childNode.nodeName === 'tspan') {
|
|
10342
10280
|
textPathElement.appendChild(childNode);
|
|
10343
10281
|
}
|
|
@@ -10432,7 +10370,7 @@
|
|
|
10432
10370
|
element = this.element,
|
|
10433
10371
|
oldShadowOptions = this.oldShadowOptions,
|
|
10434
10372
|
defaultShadowOptions = {
|
|
10435
|
-
color:
|
|
10373
|
+
color: "#000000" /* neutralColor100 */,
|
|
10436
10374
|
offsetX: this.parentInverted ? -1 : 1,
|
|
10437
10375
|
offsetY: this.parentInverted ? -1 : 1,
|
|
10438
10376
|
opacity: 0.15,
|
|
@@ -10480,7 +10418,7 @@
|
|
|
10480
10418
|
strokeWidth = (options.width * 2) + 1 - (2 * i);
|
|
10481
10419
|
attr(shadow, {
|
|
10482
10420
|
stroke: (shadowOptions.color ||
|
|
10483
|
-
|
|
10421
|
+
"#000000" /* neutralColor100 */),
|
|
10484
10422
|
'stroke-opacity': shadowElementOpacity * i,
|
|
10485
10423
|
'stroke-width': strokeWidth,
|
|
10486
10424
|
transform: transform,
|
|
@@ -11818,7 +11756,8 @@
|
|
|
11818
11756
|
*
|
|
11819
11757
|
* */
|
|
11820
11758
|
var doc = H.doc,
|
|
11821
|
-
SVG_NS = H.SVG_NS
|
|
11759
|
+
SVG_NS = H.SVG_NS,
|
|
11760
|
+
win = H.win;
|
|
11822
11761
|
var attr = U.attr,
|
|
11823
11762
|
isString = U.isString,
|
|
11824
11763
|
objectEach = U.objectEach,
|
|
@@ -12040,7 +11979,7 @@
|
|
|
12040
11979
|
var modifyChildren = (function (node) {
|
|
12041
11980
|
var childNodes = [].slice.call(node.childNodes);
|
|
12042
11981
|
childNodes.forEach(function (childNode) {
|
|
12043
|
-
if (childNode.nodeType === Node.TEXT_NODE) {
|
|
11982
|
+
if (childNode.nodeType === win.Node.TEXT_NODE) {
|
|
12044
11983
|
modifyTextNode(childNode, node);
|
|
12045
11984
|
}
|
|
12046
11985
|
else {
|
|
@@ -12066,7 +12005,7 @@
|
|
|
12066
12005
|
TextBuilder.prototype.getLineHeight = function (node) {
|
|
12067
12006
|
var fontSizeStyle;
|
|
12068
12007
|
// If the node is a text node, use its parent
|
|
12069
|
-
var element = node.nodeType === Node.TEXT_NODE ?
|
|
12008
|
+
var element = node.nodeType === win.Node.TEXT_NODE ?
|
|
12070
12009
|
node.parentElement :
|
|
12071
12010
|
node;
|
|
12072
12011
|
if (!this.renderer.styledMode) {
|
|
@@ -12260,7 +12199,7 @@
|
|
|
12260
12199
|
|
|
12261
12200
|
return TextBuilder;
|
|
12262
12201
|
});
|
|
12263
|
-
_registerModule(_modules, 'Core/Renderer/SVG/SVGRenderer.js', [_modules['Core/Renderer/HTML/AST.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/
|
|
12202
|
+
_registerModule(_modules, 'Core/Renderer/SVG/SVGRenderer.js', [_modules['Core/Renderer/HTML/AST.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Renderer/SVG/SVGElement.js'], _modules['Core/Renderer/SVG/SVGLabel.js'], _modules['Core/Renderer/SVG/Symbols.js'], _modules['Core/Renderer/SVG/TextBuilder.js'], _modules['Core/Utilities.js']], function (AST, Color, H, RendererRegistry, SVGElement, SVGLabel, Symbols, TextBuilder, U) {
|
|
12264
12203
|
/* *
|
|
12265
12204
|
*
|
|
12266
12205
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -12471,7 +12410,7 @@
|
|
|
12471
12410
|
this.url = this.getReferenceURL();
|
|
12472
12411
|
// Add description
|
|
12473
12412
|
var desc = this.createElement('desc').add();
|
|
12474
|
-
desc.element.appendChild(doc.createTextNode('Created with Highcharts 9.
|
|
12413
|
+
desc.element.appendChild(doc.createTextNode('Created with Highcharts 9.3.0'));
|
|
12475
12414
|
renderer.defs = this.createElement('defs').add();
|
|
12476
12415
|
renderer.allowHTML = allowHTML;
|
|
12477
12416
|
renderer.forExport = forExport;
|
|
@@ -12823,11 +12762,11 @@
|
|
|
12823
12762
|
if (!styledMode) {
|
|
12824
12763
|
// Normal state - prepare the attributes
|
|
12825
12764
|
normalState = merge({
|
|
12826
|
-
fill:
|
|
12827
|
-
stroke:
|
|
12765
|
+
fill: "#f7f7f7" /* neutralColor3 */,
|
|
12766
|
+
stroke: "#cccccc" /* neutralColor20 */,
|
|
12828
12767
|
'stroke-width': 1,
|
|
12829
12768
|
style: {
|
|
12830
|
-
color:
|
|
12769
|
+
color: "#333333" /* neutralColor80 */,
|
|
12831
12770
|
cursor: 'pointer',
|
|
12832
12771
|
fontWeight: 'normal'
|
|
12833
12772
|
}
|
|
@@ -12838,15 +12777,15 @@
|
|
|
12838
12777
|
delete normalState.style;
|
|
12839
12778
|
// Hover state
|
|
12840
12779
|
hoverState = merge(normalState, {
|
|
12841
|
-
fill:
|
|
12780
|
+
fill: "#e6e6e6" /* neutralColor10 */
|
|
12842
12781
|
}, AST.filterUserAttributes(hoverState || {}));
|
|
12843
12782
|
hoverStyle = hoverState.style;
|
|
12844
12783
|
delete hoverState.style;
|
|
12845
12784
|
// Pressed state
|
|
12846
12785
|
pressedState = merge(normalState, {
|
|
12847
|
-
fill:
|
|
12786
|
+
fill: "#e6ebf5" /* highlightColor10 */,
|
|
12848
12787
|
style: {
|
|
12849
|
-
color:
|
|
12788
|
+
color: "#000000" /* neutralColor100 */,
|
|
12850
12789
|
fontWeight: 'bold'
|
|
12851
12790
|
}
|
|
12852
12791
|
}, AST.filterUserAttributes(pressedState || {}));
|
|
@@ -12855,7 +12794,7 @@
|
|
|
12855
12794
|
// Disabled state
|
|
12856
12795
|
disabledState = merge(normalState, {
|
|
12857
12796
|
style: {
|
|
12858
|
-
color:
|
|
12797
|
+
color: "#cccccc" /* neutralColor20 */
|
|
12859
12798
|
}
|
|
12860
12799
|
}, AST.filterUserAttributes(disabledState || {}));
|
|
12861
12800
|
disabledStyle = disabledState.style;
|
|
@@ -13275,14 +13214,18 @@
|
|
|
13275
13214
|
el.setAttribute('hc-svg-href', src);
|
|
13276
13215
|
}
|
|
13277
13216
|
};
|
|
13278
|
-
//
|
|
13279
|
-
if (
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13285
|
-
|
|
13217
|
+
// Optional properties (#11756)
|
|
13218
|
+
if (isNumber(x)) {
|
|
13219
|
+
attribs.x = x;
|
|
13220
|
+
}
|
|
13221
|
+
if (isNumber(y)) {
|
|
13222
|
+
attribs.y = y;
|
|
13223
|
+
}
|
|
13224
|
+
if (isNumber(width)) {
|
|
13225
|
+
attribs.width = width;
|
|
13226
|
+
}
|
|
13227
|
+
if (isNumber(height)) {
|
|
13228
|
+
attribs.height = height;
|
|
13286
13229
|
}
|
|
13287
13230
|
var elemWrapper = this.createElement('image').attr(attribs),
|
|
13288
13231
|
onDummyLoad = function (e) {
|
|
@@ -14087,7 +14030,7 @@
|
|
|
14087
14030
|
* The shadow color.
|
|
14088
14031
|
* @name Highcharts.ShadowOptionsObject#color
|
|
14089
14032
|
* @type {Highcharts.ColorString|undefined}
|
|
14090
|
-
* @default
|
|
14033
|
+
* @default #000000
|
|
14091
14034
|
*/ /**
|
|
14092
14035
|
* The horizontal offset from the element.
|
|
14093
14036
|
*
|
|
@@ -14365,6 +14308,9 @@
|
|
|
14365
14308
|
whiteSpace = styles && styles.whiteSpace;
|
|
14366
14309
|
/** @private */
|
|
14367
14310
|
function getTextPxLength() {
|
|
14311
|
+
if (wrapper.textPxLength) {
|
|
14312
|
+
return wrapper.textPxLength;
|
|
14313
|
+
}
|
|
14368
14314
|
// Reset multiline/ellipsis in order to read width (#4928,
|
|
14369
14315
|
// #5417)
|
|
14370
14316
|
css(elem, {
|
|
@@ -14400,29 +14346,32 @@
|
|
|
14400
14346
|
wrapper.textWidth,
|
|
14401
14347
|
wrapper.textAlign
|
|
14402
14348
|
].join(',');
|
|
14403
|
-
var baseline = void 0
|
|
14349
|
+
var baseline = void 0,
|
|
14350
|
+
hasBoxWidthChanged = false;
|
|
14404
14351
|
// Update textWidth. Use the memoized textPxLength if possible, to
|
|
14405
14352
|
// avoid the getTextPxLength function using elem.offsetWidth.
|
|
14406
14353
|
// Calling offsetWidth affects rendering time as it forces layout
|
|
14407
14354
|
// (#7656).
|
|
14408
|
-
if (textWidth !== wrapper.oldTextWidth
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
elem.
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14355
|
+
if (textWidth !== wrapper.oldTextWidth) { // #983, #1254
|
|
14356
|
+
var textPxLength = getTextPxLength();
|
|
14357
|
+
if (((textWidth > wrapper.oldTextWidth) ||
|
|
14358
|
+
textPxLength > textWidth) && (
|
|
14359
|
+
// Only set the width if the text is able to word-wrap,
|
|
14360
|
+
// or text-overflow is ellipsis (#9537)
|
|
14361
|
+
/[ \-]/.test(elem.textContent || elem.innerText) ||
|
|
14362
|
+
elem.style.textOverflow === 'ellipsis')) {
|
|
14363
|
+
css(elem, {
|
|
14364
|
+
width: (textPxLength > textWidth) || rotation ?
|
|
14365
|
+
textWidth + 'px' :
|
|
14366
|
+
'auto',
|
|
14367
|
+
display: 'block',
|
|
14368
|
+
whiteSpace: whiteSpace || 'normal' // #3331
|
|
14369
|
+
});
|
|
14370
|
+
wrapper.oldTextWidth = textWidth;
|
|
14371
|
+
hasBoxWidthChanged = true; // #8159
|
|
14372
|
+
}
|
|
14425
14373
|
}
|
|
14374
|
+
wrapper.hasBoxWidthChanged = hasBoxWidthChanged; // #8159
|
|
14426
14375
|
// Do the calculations and DOM access only if properties changed
|
|
14427
14376
|
if (currentTextTransform !== wrapper.cTT) {
|
|
14428
14377
|
baseline = renderer.fontMetrics(elem.style.fontSize, elem).b;
|
|
@@ -14768,7 +14717,7 @@
|
|
|
14768
14717
|
|
|
14769
14718
|
return HTMLRenderer;
|
|
14770
14719
|
});
|
|
14771
|
-
_registerModule(_modules, 'Core/Axis/AxisDefaults.js', [
|
|
14720
|
+
_registerModule(_modules, 'Core/Axis/AxisDefaults.js', [], function () {
|
|
14772
14721
|
/* *
|
|
14773
14722
|
*
|
|
14774
14723
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -15198,7 +15147,7 @@
|
|
|
15198
15147
|
* same axis.
|
|
15199
15148
|
*
|
|
15200
15149
|
* For an overview of the replacement codes, see
|
|
15201
|
-
* [dateFormat](/class-reference/Highcharts
|
|
15150
|
+
* [dateFormat](/class-reference/Highcharts.Time#dateFormat).
|
|
15202
15151
|
*
|
|
15203
15152
|
* Defaults to:
|
|
15204
15153
|
* ```js
|
|
@@ -15292,9 +15241,9 @@
|
|
|
15292
15241
|
* In Highcharts Stock, `endOnTick` is always `false` when the navigator
|
|
15293
15242
|
* is enabled, to prevent jumpy scrolling.
|
|
15294
15243
|
*
|
|
15295
|
-
* @sample {highcharts} highcharts/chart/reflow-true/
|
|
15296
|
-
* True by default
|
|
15297
15244
|
* @sample {highcharts} highcharts/yaxis/endontick/
|
|
15245
|
+
* True by default
|
|
15246
|
+
* @sample {highcharts} highcharts/yaxis/endontick-false/
|
|
15298
15247
|
* False
|
|
15299
15248
|
* @sample {highstock} stock/demo/basic-line/
|
|
15300
15249
|
* True by default
|
|
@@ -15736,7 +15685,7 @@
|
|
|
15736
15685
|
*/
|
|
15737
15686
|
style: {
|
|
15738
15687
|
/** @internal */
|
|
15739
|
-
color:
|
|
15688
|
+
color: "#666666" /* neutralColor60 */,
|
|
15740
15689
|
/** @internal */
|
|
15741
15690
|
cursor: 'default',
|
|
15742
15691
|
/** @internal */
|
|
@@ -15801,8 +15750,6 @@
|
|
|
15801
15750
|
* Y axis max on logarithmic axis
|
|
15802
15751
|
* @sample {highstock} stock/xaxis/min-max/
|
|
15803
15752
|
* Fixed min and max on X axis
|
|
15804
|
-
* @sample {highmaps} maps/axis/min-max/
|
|
15805
|
-
* Pre-zoomed to a specific area
|
|
15806
15753
|
*
|
|
15807
15754
|
* @type {number|null}
|
|
15808
15755
|
* @apioption xAxis.max
|
|
@@ -15857,8 +15804,6 @@
|
|
|
15857
15804
|
* -50 with startOnTick true by default
|
|
15858
15805
|
* @sample {highstock} stock/xaxis/min-max/
|
|
15859
15806
|
* Set min and max on X axis
|
|
15860
|
-
* @sample {highmaps} maps/axis/min-max/
|
|
15861
|
-
* Pre-zoomed to a specific area
|
|
15862
15807
|
*
|
|
15863
15808
|
* @type {number|null}
|
|
15864
15809
|
* @apioption xAxis.min
|
|
@@ -16010,8 +15955,6 @@
|
|
|
16010
15955
|
* Minimum range of 5
|
|
16011
15956
|
* @sample {highstock} stock/xaxis/minrange/
|
|
16012
15957
|
* Max zoom of 6 months overrides user selections
|
|
16013
|
-
* @sample {highmaps} maps/axis/minrange/
|
|
16014
|
-
* Minimum range of 1000
|
|
16015
15958
|
*
|
|
16016
15959
|
* @type {number}
|
|
16017
15960
|
* @apioption xAxis.minRange
|
|
@@ -16577,7 +16520,7 @@
|
|
|
16577
16520
|
*/
|
|
16578
16521
|
style: {
|
|
16579
16522
|
/** @internal */
|
|
16580
|
-
color:
|
|
16523
|
+
color: "#666666" /* neutralColor60 */
|
|
16581
16524
|
}
|
|
16582
16525
|
},
|
|
16583
16526
|
/**
|
|
@@ -16694,7 +16637,7 @@
|
|
|
16694
16637
|
* @type {Highcharts.ColorType}
|
|
16695
16638
|
* @default #f2f2f2
|
|
16696
16639
|
*/
|
|
16697
|
-
minorGridLineColor:
|
|
16640
|
+
minorGridLineColor: "#f2f2f2" /* neutralColor5 */,
|
|
16698
16641
|
/**
|
|
16699
16642
|
* Width of the minor, secondary grid lines.
|
|
16700
16643
|
*
|
|
@@ -16720,7 +16663,7 @@
|
|
|
16720
16663
|
* @type {Highcharts.ColorType}
|
|
16721
16664
|
* @default #999999
|
|
16722
16665
|
*/
|
|
16723
|
-
minorTickColor:
|
|
16666
|
+
minorTickColor: "#999999" /* neutralColor40 */,
|
|
16724
16667
|
/**
|
|
16725
16668
|
* The color of the line marking the axis itself.
|
|
16726
16669
|
*
|
|
@@ -16741,7 +16684,7 @@
|
|
|
16741
16684
|
* @type {Highcharts.ColorType}
|
|
16742
16685
|
* @default #ccd6eb
|
|
16743
16686
|
*/
|
|
16744
|
-
lineColor:
|
|
16687
|
+
lineColor: "#ccd6eb" /* highlightColor20 */,
|
|
16745
16688
|
/**
|
|
16746
16689
|
* The width of the line marking the axis itself.
|
|
16747
16690
|
*
|
|
@@ -16778,7 +16721,7 @@
|
|
|
16778
16721
|
* @type {Highcharts.ColorType}
|
|
16779
16722
|
* @default #e6e6e6
|
|
16780
16723
|
*/
|
|
16781
|
-
gridLineColor:
|
|
16724
|
+
gridLineColor: "#e6e6e6" /* neutralColor10 */,
|
|
16782
16725
|
/**
|
|
16783
16726
|
* The width of the grid lines extending the ticks across the plot area.
|
|
16784
16727
|
* Defaults to 1 on the Y axis and 0 on the X axis, except for 3d
|
|
@@ -16836,7 +16779,7 @@
|
|
|
16836
16779
|
* @type {Highcharts.ColorType}
|
|
16837
16780
|
* @default #ccd6eb
|
|
16838
16781
|
*/
|
|
16839
|
-
tickColor:
|
|
16782
|
+
tickColor: "#ccd6eb" /* highlightColor20 */
|
|
16840
16783
|
// tickWidth: 1
|
|
16841
16784
|
};
|
|
16842
16785
|
/**
|
|
@@ -16996,9 +16939,9 @@
|
|
|
16996
16939
|
* @see [type](#chart.panning.type)
|
|
16997
16940
|
*
|
|
16998
16941
|
*
|
|
16999
|
-
* @sample {highcharts} highcharts/chart/reflow-true/
|
|
17000
|
-
* True by default
|
|
17001
16942
|
* @sample {highcharts} highcharts/yaxis/endontick/
|
|
16943
|
+
* True by default
|
|
16944
|
+
* @sample {highcharts} highcharts/yaxis/endontick-false/
|
|
17002
16945
|
* False
|
|
17003
16946
|
* @sample {highstock} stock/demo/basic-line/
|
|
17004
16947
|
* True by default
|
|
@@ -17151,8 +17094,6 @@
|
|
|
17151
17094
|
* Y axis max on logarithmic axis
|
|
17152
17095
|
* @sample {highstock} stock/yaxis/min-max/
|
|
17153
17096
|
* Fixed min and max on Y axis
|
|
17154
|
-
* @sample {highmaps} maps/axis/min-max/
|
|
17155
|
-
* Pre-zoomed to a specific area
|
|
17156
17097
|
*
|
|
17157
17098
|
* @apioption yAxis.max
|
|
17158
17099
|
*/
|
|
@@ -17163,8 +17104,6 @@
|
|
|
17163
17104
|
* -50 with startOnTick true by default
|
|
17164
17105
|
* @sample {highstock} stock/yaxis/min-max/
|
|
17165
17106
|
* Fixed min and max on Y axis
|
|
17166
|
-
* @sample {highmaps} maps/axis/min-max/
|
|
17167
|
-
* Pre-zoomed to a specific area
|
|
17168
17107
|
*
|
|
17169
17108
|
* @apioption yAxis.min
|
|
17170
17109
|
*/
|
|
@@ -17207,6 +17146,28 @@
|
|
|
17207
17146
|
* @product highstock
|
|
17208
17147
|
* @apioption yAxis.scrollbar.margin
|
|
17209
17148
|
*/
|
|
17149
|
+
/* eslint-disable highcharts/doclet-apioption-last */
|
|
17150
|
+
/**
|
|
17151
|
+
* Defines the position of the scrollbar. By default, it is positioned
|
|
17152
|
+
* on the opposite of the main axis (right side of the chart).
|
|
17153
|
+
* However, in the case of RTL languages could be set to `false`
|
|
17154
|
+
* which positions the scrollbar on the left.
|
|
17155
|
+
*
|
|
17156
|
+
* Works only for vertical axes.
|
|
17157
|
+
* This means yAxis in a non-inverted chart and xAxis in the inverted.
|
|
17158
|
+
*
|
|
17159
|
+
* @sample stock/yaxis/scrollbar-opposite/
|
|
17160
|
+
* A scrollbar not on the opposite side
|
|
17161
|
+
*
|
|
17162
|
+
* @type {boolean}
|
|
17163
|
+
* @default true
|
|
17164
|
+
* @since 9.3.0
|
|
17165
|
+
*
|
|
17166
|
+
* @apioption yAxis.scrollbar.opposite
|
|
17167
|
+
* @apioption xAxis.scrollbar.opposite
|
|
17168
|
+
*
|
|
17169
|
+
*/
|
|
17170
|
+
/* eslint-enable highcharts/doclet-apioption-last */
|
|
17210
17171
|
/**
|
|
17211
17172
|
* Whether to show the scrollbar when it is fully zoomed out at max
|
|
17212
17173
|
* range. Setting it to `false` on the Y axis makes the scrollbar stay
|
|
@@ -17608,7 +17569,7 @@
|
|
|
17608
17569
|
*/
|
|
17609
17570
|
style: {
|
|
17610
17571
|
/** @internal */
|
|
17611
|
-
color:
|
|
17572
|
+
color: "#000000" /* neutralColor100 */,
|
|
17612
17573
|
/** @internal */
|
|
17613
17574
|
fontSize: '11px',
|
|
17614
17575
|
/** @internal */
|
|
@@ -17709,47 +17670,54 @@
|
|
|
17709
17670
|
removeEvent = U.removeEvent;
|
|
17710
17671
|
/* *
|
|
17711
17672
|
*
|
|
17712
|
-
*
|
|
17673
|
+
* Class Namespace
|
|
17713
17674
|
*
|
|
17714
17675
|
* */
|
|
17715
|
-
|
|
17716
|
-
|
|
17717
|
-
|
|
17718
|
-
|
|
17719
|
-
|
|
17720
|
-
|
|
17721
|
-
|
|
17722
|
-
|
|
17676
|
+
var Foundation;
|
|
17677
|
+
(function (Foundation) {
|
|
17678
|
+
/* *
|
|
17679
|
+
*
|
|
17680
|
+
* Functions
|
|
17681
|
+
*
|
|
17682
|
+
* */
|
|
17683
|
+
/* eslint-disable valid-jsdoc */
|
|
17684
|
+
/**
|
|
17685
|
+
* Register event options. If an event handler is set on the options, it
|
|
17686
|
+
* should be subject to Chart.update, Axis.update and Series.update. This is
|
|
17687
|
+
* contrary to general handlers that are set directly using addEvent either
|
|
17688
|
+
* on the class or on the instance. #6538, #6943, #10861.
|
|
17689
|
+
* @private
|
|
17690
|
+
*/
|
|
17691
|
+
function registerEventOptions(component, options) {
|
|
17723
17692
|
// A lookup over those events that are added by _options_ (not
|
|
17724
17693
|
// programmatically). These are updated through .update()
|
|
17725
17694
|
component.eventOptions = component.eventOptions || {};
|
|
17726
|
-
|
|
17727
|
-
|
|
17728
|
-
|
|
17729
|
-
|
|
17730
|
-
|
|
17731
|
-
|
|
17732
|
-
|
|
17733
|
-
|
|
17734
|
-
|
|
17735
|
-
|
|
17736
|
-
|
|
17737
|
-
|
|
17738
|
-
|
|
17695
|
+
// Register event listeners
|
|
17696
|
+
objectEach(options.events, function (event, eventType) {
|
|
17697
|
+
// If event does not exist, or is changed by the .update()
|
|
17698
|
+
// function
|
|
17699
|
+
if (component.eventOptions[eventType] !== event) {
|
|
17700
|
+
// Remove existing if set by option
|
|
17701
|
+
if (component.eventOptions[eventType]) {
|
|
17702
|
+
removeEvent(component, eventType, component.eventOptions[eventType]);
|
|
17703
|
+
delete component.eventOptions[eventType];
|
|
17704
|
+
}
|
|
17705
|
+
if (isFunction(event)) {
|
|
17706
|
+
component.eventOptions[eventType] = event;
|
|
17707
|
+
addEvent(component, eventType, event);
|
|
17708
|
+
}
|
|
17739
17709
|
}
|
|
17740
|
-
}
|
|
17741
|
-
}
|
|
17742
|
-
|
|
17710
|
+
});
|
|
17711
|
+
}
|
|
17712
|
+
Foundation.registerEventOptions = registerEventOptions;
|
|
17713
|
+
})(Foundation || (Foundation = {}));
|
|
17743
17714
|
/* *
|
|
17744
17715
|
*
|
|
17745
17716
|
* Default Export
|
|
17746
17717
|
*
|
|
17747
17718
|
* */
|
|
17748
|
-
var exports = {
|
|
17749
|
-
registerEventOptions: registerEventOptions
|
|
17750
|
-
};
|
|
17751
17719
|
|
|
17752
|
-
return
|
|
17720
|
+
return Foundation;
|
|
17753
17721
|
});
|
|
17754
17722
|
_registerModule(_modules, 'Core/Axis/Tick.js', [_modules['Core/FormatUtilities.js'], _modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (F, H, U) {
|
|
17755
17723
|
/* *
|
|
@@ -18593,7 +18561,7 @@
|
|
|
18593
18561
|
|
|
18594
18562
|
return Tick;
|
|
18595
18563
|
});
|
|
18596
|
-
_registerModule(_modules, 'Core/Axis/Axis.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Axis/AxisDefaults.js'], _modules['Core/Color/Color.js'], _modules['Core/
|
|
18564
|
+
_registerModule(_modules, 'Core/Axis/Axis.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Axis/AxisDefaults.js'], _modules['Core/Color/Color.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Axis/Tick.js'], _modules['Core/Utilities.js']], function (A, AxisDefaults, Color, D, F, H, Tick, U) {
|
|
18597
18565
|
/* *
|
|
18598
18566
|
*
|
|
18599
18567
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -19482,7 +19450,10 @@
|
|
|
19482
19450
|
if (axis.isXAxis &&
|
|
19483
19451
|
typeof axis.minRange === 'undefined' &&
|
|
19484
19452
|
!log) {
|
|
19485
|
-
if (defined(options.min) ||
|
|
19453
|
+
if (defined(options.min) ||
|
|
19454
|
+
defined(options.max) ||
|
|
19455
|
+
defined(options.floor) ||
|
|
19456
|
+
defined(options.ceiling)) {
|
|
19486
19457
|
axis.minRange = null; // don't do this again
|
|
19487
19458
|
}
|
|
19488
19459
|
else {
|
|
@@ -19786,8 +19757,10 @@
|
|
|
19786
19757
|
var maxPadding = options.maxPadding,
|
|
19787
19758
|
minPadding = options.minPadding,
|
|
19788
19759
|
length,
|
|
19789
|
-
linkedParentExtremes,
|
|
19790
|
-
|
|
19760
|
+
linkedParentExtremes,
|
|
19761
|
+
// Only non-negative tickInterval is valid, #12961
|
|
19762
|
+
tickIntervalOption = isNumber(options.tickInterval) && options.tickInterval >= 0 ?
|
|
19763
|
+
options.tickInterval : void 0,
|
|
19791
19764
|
threshold = isNumber(axis.threshold) ? axis.threshold : null,
|
|
19792
19765
|
thresholdMin,
|
|
19793
19766
|
thresholdMax,
|
|
@@ -19961,15 +19934,18 @@
|
|
|
19961
19934
|
// This is in turn needed in order to find tick positions in ordinal
|
|
19962
19935
|
// axes.
|
|
19963
19936
|
if (isXAxis && !secondPass) {
|
|
19937
|
+
var hasExtemesChanged_1 = axis.min !== (axis.old && axis.old.min) ||
|
|
19938
|
+
axis.max !== (axis.old && axis.old.max);
|
|
19964
19939
|
// First process all series assigned to that axis.
|
|
19965
19940
|
axis.series.forEach(function (series) {
|
|
19966
19941
|
// Allows filtering out points outside the plot area.
|
|
19967
19942
|
series.forceCrop = series.forceCropping && series.forceCropping();
|
|
19968
|
-
series.processData(
|
|
19969
|
-
axis.max !== (axis.old && axis.old.max));
|
|
19943
|
+
series.processData(hasExtemesChanged_1);
|
|
19970
19944
|
});
|
|
19971
19945
|
// Then apply grouping if needed.
|
|
19972
|
-
|
|
19946
|
+
// The hasExtemesChanged helps to decide if the data grouping should
|
|
19947
|
+
// be skipped in the further calculations #16319.
|
|
19948
|
+
fireEvent(this, 'postProcessData', { hasExtemesChanged: hasExtemesChanged_1 });
|
|
19973
19949
|
}
|
|
19974
19950
|
// set the translation factor used in translate function
|
|
19975
19951
|
axis.setAxisTranslation();
|
|
@@ -20391,8 +20367,6 @@
|
|
|
20391
20367
|
* Set extremes off ticks
|
|
20392
20368
|
* @sample stock/members/axis-setextremes/
|
|
20393
20369
|
* Set extremes in Highcharts Stock
|
|
20394
|
-
* @sample maps/members/axis-setextremes/
|
|
20395
|
-
* Set extremes in Highmaps
|
|
20396
20370
|
*
|
|
20397
20371
|
* @function Highcharts.Axis#setExtremes
|
|
20398
20372
|
*
|
|
@@ -20544,8 +20518,6 @@
|
|
|
20544
20518
|
*
|
|
20545
20519
|
* @sample highcharts/members/axis-getextremes/
|
|
20546
20520
|
* Report extremes by click on a button
|
|
20547
|
-
* @sample maps/members/axis-getextremes/
|
|
20548
|
-
* Get extremes in Highmaps
|
|
20549
20521
|
*
|
|
20550
20522
|
* @function Highcharts.Axis#getExtremes
|
|
20551
20523
|
*
|
|
@@ -21045,12 +21017,15 @@
|
|
|
21045
21017
|
var _this = this;
|
|
21046
21018
|
var axis = this,
|
|
21047
21019
|
chart = axis.chart,
|
|
21048
|
-
renderer = chart.renderer,
|
|
21049
|
-
options = axis.options,
|
|
21050
|
-
tickPositions = axis.tickPositions,
|
|
21051
|
-
ticks = axis.ticks,
|
|
21052
21020
|
horiz = axis.horiz,
|
|
21021
|
+
options = axis.options,
|
|
21053
21022
|
side = axis.side,
|
|
21023
|
+
ticks = axis.ticks,
|
|
21024
|
+
tickPositions = axis.tickPositions,
|
|
21025
|
+
coll = axis.coll,
|
|
21026
|
+
axisParent = axis.axisParent // Used in color axis
|
|
21027
|
+
,
|
|
21028
|
+
renderer = chart.renderer,
|
|
21054
21029
|
invertedSide = (chart.inverted && !axis.isZAxis ?
|
|
21055
21030
|
[1, 0, 3, 2][side] :
|
|
21056
21031
|
side),
|
|
@@ -21060,9 +21035,8 @@
|
|
|
21060
21035
|
axisOffset = chart.axisOffset,
|
|
21061
21036
|
clipOffset = chart.clipOffset,
|
|
21062
21037
|
directionFactor = [-1, 1, 1, -1][side],
|
|
21063
|
-
className = options.className
|
|
21064
|
-
|
|
21065
|
-
var showAxis,
|
|
21038
|
+
className = options.className;
|
|
21039
|
+
var showAxis,
|
|
21066
21040
|
titleOffset = 0,
|
|
21067
21041
|
titleOffsetOption,
|
|
21068
21042
|
titleMargin = 0,
|
|
@@ -21079,7 +21053,7 @@
|
|
|
21079
21053
|
suffix,
|
|
21080
21054
|
zIndex) { return renderer.g(name)
|
|
21081
21055
|
.attr({ zIndex: zIndex })
|
|
21082
|
-
.addClass("highcharts-" +
|
|
21056
|
+
.addClass("highcharts-" + coll.toLowerCase() + suffix + " " +
|
|
21083
21057
|
(_this.isRadial ? "highcharts-radial-axis" + suffix + " " : '') +
|
|
21084
21058
|
(className || ''))
|
|
21085
21059
|
.add(axisParent); };
|
|
@@ -21157,21 +21131,23 @@
|
|
|
21157
21131
|
}
|
|
21158
21132
|
// Due to GridAxis.tickSize, tickSize should be calculated after ticks
|
|
21159
21133
|
// has rendered.
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
|
|
21170
|
-
|
|
21171
|
-
|
|
21172
|
-
|
|
21173
|
-
|
|
21174
|
-
|
|
21134
|
+
if (coll !== 'colorAxis') {
|
|
21135
|
+
var tickSize = this.tickSize('tick');
|
|
21136
|
+
axisOffset[side] = Math.max(axisOffset[side], (axis.axisTitleMargin || 0) + titleOffset +
|
|
21137
|
+
directionFactor * axis.offset, labelOffsetPadded, // #3027
|
|
21138
|
+
tickPositions && tickPositions.length && tickSize ?
|
|
21139
|
+
tickSize[0] + directionFactor * axis.offset :
|
|
21140
|
+
0 // #4866
|
|
21141
|
+
);
|
|
21142
|
+
// Decide the clipping needed to keep the graph inside
|
|
21143
|
+
// the plot area and axis lines
|
|
21144
|
+
var clip = !axis.axisLine || options.offset ?
|
|
21145
|
+
0 :
|
|
21146
|
+
// #4308, #4371:
|
|
21147
|
+
Math.floor(axis.axisLine.strokeWidth() / 2) * 2;
|
|
21148
|
+
clipOffset[invertedSide] =
|
|
21149
|
+
Math.max(clipOffset[invertedSide], clip);
|
|
21150
|
+
}
|
|
21175
21151
|
fireEvent(this, 'afterGetOffset');
|
|
21176
21152
|
};
|
|
21177
21153
|
/**
|
|
@@ -21705,10 +21681,10 @@
|
|
|
21705
21681
|
stroke: options.color ||
|
|
21706
21682
|
(categorized ?
|
|
21707
21683
|
Color
|
|
21708
|
-
.parse(
|
|
21684
|
+
.parse("#ccd6eb" /* highlightColor20 */)
|
|
21709
21685
|
.setOpacity(0.25)
|
|
21710
21686
|
.get() :
|
|
21711
|
-
|
|
21687
|
+
"#cccccc" /* neutralColor20 */),
|
|
21712
21688
|
'stroke-width': pick(options.width, 1)
|
|
21713
21689
|
}).css({
|
|
21714
21690
|
'pointer-events': 'none'
|
|
@@ -22858,7 +22834,7 @@
|
|
|
22858
22834
|
|
|
22859
22835
|
return PlotLineOrBandAxis;
|
|
22860
22836
|
});
|
|
22861
|
-
_registerModule(_modules, 'Core/Axis/PlotLineOrBand/PlotLineOrBand.js', [_modules['Core/
|
|
22837
|
+
_registerModule(_modules, 'Core/Axis/PlotLineOrBand/PlotLineOrBand.js', [_modules['Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js'], _modules['Core/Utilities.js']], function (PlotLineOrBandAxis, U) {
|
|
22862
22838
|
/* *
|
|
22863
22839
|
*
|
|
22864
22840
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -22964,7 +22940,7 @@
|
|
|
22964
22940
|
// Set the presentational attributes
|
|
22965
22941
|
if (!axis.chart.styledMode) {
|
|
22966
22942
|
if (isLine) {
|
|
22967
|
-
attribs.stroke = color ||
|
|
22943
|
+
attribs.stroke = color || "#999999" /* neutralColor40 */;
|
|
22968
22944
|
attribs['stroke-width'] = pick(options.width, 1);
|
|
22969
22945
|
if (options.dashStyle) {
|
|
22970
22946
|
attribs.dashstyle =
|
|
@@ -22972,7 +22948,7 @@
|
|
|
22972
22948
|
}
|
|
22973
22949
|
}
|
|
22974
22950
|
else if (isBand) { // plot band
|
|
22975
|
-
attribs.fill = color ||
|
|
22951
|
+
attribs.fill = color || "#e6ebf5" /* highlightColor10 */;
|
|
22976
22952
|
if (options.borderWidth) {
|
|
22977
22953
|
attribs.stroke = options.borderColor;
|
|
22978
22954
|
attribs['stroke-width'] = options.borderWidth;
|
|
@@ -23237,7 +23213,7 @@
|
|
|
23237
23213
|
* Plot band on Y axis
|
|
23238
23214
|
*
|
|
23239
23215
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
23240
|
-
* @default
|
|
23216
|
+
* @default #e6ebf5
|
|
23241
23217
|
* @apioption xAxis.plotBands.color
|
|
23242
23218
|
*/
|
|
23243
23219
|
/**
|
|
@@ -23485,7 +23461,7 @@
|
|
|
23485
23461
|
* Plot line on Y axis
|
|
23486
23462
|
*
|
|
23487
23463
|
* @type {Highcharts.ColorString}
|
|
23488
|
-
* @default
|
|
23464
|
+
* @default #999999
|
|
23489
23465
|
* @apioption xAxis.plotLines.color
|
|
23490
23466
|
*/
|
|
23491
23467
|
/**
|
|
@@ -23762,7 +23738,7 @@
|
|
|
23762
23738
|
|
|
23763
23739
|
return PlotLineOrBand;
|
|
23764
23740
|
});
|
|
23765
|
-
_registerModule(_modules, 'Core/Tooltip.js', [_modules['Core/FormatUtilities.js'], _modules['Core/Globals.js'], _modules['Core/
|
|
23741
|
+
_registerModule(_modules, 'Core/Tooltip.js', [_modules['Core/FormatUtilities.js'], _modules['Core/Globals.js'], _modules['Core/Renderer/RendererUtilities.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Utilities.js']], function (F, H, R, RendererRegistry, U) {
|
|
23766
23742
|
/* *
|
|
23767
23743
|
*
|
|
23768
23744
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -23814,7 +23790,13 @@
|
|
|
23814
23790
|
*
|
|
23815
23791
|
* */
|
|
23816
23792
|
function Tooltip(chart, options) {
|
|
23817
|
-
|
|
23793
|
+
/* *
|
|
23794
|
+
*
|
|
23795
|
+
* Properties
|
|
23796
|
+
*
|
|
23797
|
+
* */
|
|
23798
|
+
this.allowShared = true;
|
|
23799
|
+
this.container = void 0;
|
|
23818
23800
|
this.crosshairs = [];
|
|
23819
23801
|
this.distance = 0;
|
|
23820
23802
|
this.isHidden = true;
|
|
@@ -23953,7 +23935,7 @@
|
|
|
23953
23935
|
this.label = this.label.destroy();
|
|
23954
23936
|
}
|
|
23955
23937
|
if (this.split && this.tt) {
|
|
23956
|
-
this.cleanSplit(
|
|
23938
|
+
this.cleanSplit(true);
|
|
23957
23939
|
this.tt = this.tt.destroy();
|
|
23958
23940
|
}
|
|
23959
23941
|
if (this.renderer) {
|
|
@@ -24047,12 +24029,14 @@
|
|
|
24047
24029
|
* Creates the Tooltip label element if it does not exist, then returns it.
|
|
24048
24030
|
*
|
|
24049
24031
|
* @function Highcharts.Tooltip#getLabel
|
|
24032
|
+
*
|
|
24050
24033
|
* @return {Highcharts.SVGElement}
|
|
24051
24034
|
*/
|
|
24052
24035
|
Tooltip.prototype.getLabel = function () {
|
|
24053
24036
|
var tooltip = this,
|
|
24054
24037
|
styledMode = this.chart.styledMode,
|
|
24055
24038
|
options = this.options,
|
|
24039
|
+
doSplit = this.split && this.allowShared,
|
|
24056
24040
|
className = ('tooltip' + (defined(options.className) ?
|
|
24057
24041
|
' ' + options.className :
|
|
24058
24042
|
'')),
|
|
@@ -24073,6 +24057,14 @@
|
|
|
24073
24057
|
};
|
|
24074
24058
|
var container,
|
|
24075
24059
|
renderer = this.chart.renderer;
|
|
24060
|
+
// If changing from a split tooltip to a non-split tooltip, we must
|
|
24061
|
+
// destroy it in order to get the SVG right. #13868.
|
|
24062
|
+
if (tooltip.label) {
|
|
24063
|
+
var wasSplit = !tooltip.label.hasClass('highcharts-label');
|
|
24064
|
+
if ((doSplit && !wasSplit) || (!doSplit && wasSplit)) {
|
|
24065
|
+
tooltip.destroy();
|
|
24066
|
+
}
|
|
24067
|
+
}
|
|
24076
24068
|
if (!this.label) {
|
|
24077
24069
|
if (this.outside) {
|
|
24078
24070
|
var chartStyle = this.chart.options.chart.style,
|
|
@@ -24107,7 +24099,7 @@
|
|
|
24107
24099
|
this.renderer = renderer = new Renderer(container, 0, 0, chartStyle, void 0, void 0, renderer.styledMode);
|
|
24108
24100
|
}
|
|
24109
24101
|
// Create the label
|
|
24110
|
-
if (
|
|
24102
|
+
if (doSplit) {
|
|
24111
24103
|
this.label = renderer.g(className);
|
|
24112
24104
|
}
|
|
24113
24105
|
else {
|
|
@@ -24226,8 +24218,17 @@
|
|
|
24226
24218
|
]);
|
|
24227
24219
|
};
|
|
24228
24220
|
var first = buildDimensionArray('y'), second = buildDimensionArray('x'), swapped;
|
|
24221
|
+
// Handle negative points or reversed axis (#13780)
|
|
24222
|
+
var flipped = !!point.negative;
|
|
24223
|
+
if (!chart.polar &&
|
|
24224
|
+
chart.hoverSeries &&
|
|
24225
|
+
chart.hoverSeries.yAxis &&
|
|
24226
|
+
chart.hoverSeries.yAxis.reversed) {
|
|
24227
|
+
flipped = !flipped;
|
|
24228
|
+
}
|
|
24229
24229
|
// The far side is right or bottom
|
|
24230
|
-
var preferFarSide = !this.followPointer &&
|
|
24230
|
+
var preferFarSide = !this.followPointer &&
|
|
24231
|
+
pick(point.ttBelow, !chart.inverted === flipped), // #4984
|
|
24231
24232
|
/*
|
|
24232
24233
|
* Handle the preferred dimension. When the preferred dimension is
|
|
24233
24234
|
* tooltip on top or bottom of the point,
|
|
@@ -24529,6 +24530,11 @@
|
|
|
24529
24530
|
return;
|
|
24530
24531
|
}
|
|
24531
24532
|
U.clearTimeout(this.hideTimer);
|
|
24533
|
+
// A switch saying if this specific tooltip configuration allows shared
|
|
24534
|
+
// or split modes
|
|
24535
|
+
tooltip.allowShared = !(!isArray(pointOrPoints) &&
|
|
24536
|
+
pointOrPoints.series &&
|
|
24537
|
+
pointOrPoints.series.noSharedTooltip);
|
|
24532
24538
|
// get the reference point coordinates (pie charts use tooltipPos)
|
|
24533
24539
|
tooltip.followPointer = !tooltip.split && point.series.tooltipOptions.followPointer;
|
|
24534
24540
|
var anchor = tooltip.getAnchor(pointOrPoints,
|
|
@@ -24536,10 +24542,7 @@
|
|
|
24536
24542
|
x = anchor[0],
|
|
24537
24543
|
y = anchor[1];
|
|
24538
24544
|
// shared tooltip, array is sent over
|
|
24539
|
-
if (shared &&
|
|
24540
|
-
!(!isArray(pointOrPoints) &&
|
|
24541
|
-
pointOrPoints.series &&
|
|
24542
|
-
pointOrPoints.series.noSharedTooltip)) {
|
|
24545
|
+
if (shared && tooltip.allowShared) {
|
|
24543
24546
|
chart.pointer.applyInactiveState(points);
|
|
24544
24547
|
// Now set hover state for the choosen ones:
|
|
24545
24548
|
points.forEach(function (item) {
|
|
@@ -24568,20 +24571,22 @@
|
|
|
24568
24571
|
}
|
|
24569
24572
|
else {
|
|
24570
24573
|
// update text
|
|
24571
|
-
if (tooltip.split) {
|
|
24574
|
+
if (tooltip.split && tooltip.allowShared) { // #13868
|
|
24572
24575
|
this.renderSplit(text, points);
|
|
24573
24576
|
}
|
|
24574
24577
|
else {
|
|
24575
|
-
var
|
|
24576
|
-
var
|
|
24578
|
+
var checkX_1 = x;
|
|
24579
|
+
var checkY_1 = y;
|
|
24577
24580
|
if (mouseEvent && chart.pointer.isDirectTouch) {
|
|
24578
|
-
|
|
24579
|
-
|
|
24581
|
+
checkX_1 = mouseEvent.chartX - chart.plotLeft;
|
|
24582
|
+
checkY_1 = mouseEvent.chartY - chart.plotTop;
|
|
24580
24583
|
}
|
|
24581
24584
|
// #11493, #13095
|
|
24582
24585
|
if (chart.polar ||
|
|
24583
24586
|
currentSeries.options.clip === false ||
|
|
24584
|
-
|
|
24587
|
+
points.some(function (p) {
|
|
24588
|
+
return p.series.shouldShowTooltip(checkX_1, checkY_1);
|
|
24589
|
+
})) {
|
|
24585
24590
|
var label = tooltip.getLabel();
|
|
24586
24591
|
// Prevent the tooltip from flowing over the chart box
|
|
24587
24592
|
// (#6659)
|
|
@@ -24604,7 +24609,7 @@
|
|
|
24604
24609
|
stroke: (options.borderColor ||
|
|
24605
24610
|
point.color ||
|
|
24606
24611
|
currentSeries.color ||
|
|
24607
|
-
|
|
24612
|
+
"#666666" /* neutralColor60 */)
|
|
24608
24613
|
});
|
|
24609
24614
|
}
|
|
24610
24615
|
tooltip.updatePosition({
|
|
@@ -24803,7 +24808,7 @@
|
|
|
24803
24808
|
stroke: (options.borderColor ||
|
|
24804
24809
|
point.color ||
|
|
24805
24810
|
series.color ||
|
|
24806
|
-
|
|
24811
|
+
"#333333" /* neutralColor80 */)
|
|
24807
24812
|
});
|
|
24808
24813
|
}
|
|
24809
24814
|
return tt;
|
|
@@ -25808,13 +25813,14 @@
|
|
|
25808
25813
|
* transformed to `{ y: 10 }`, and an array config like `[1, 10]` in a
|
|
25809
25814
|
* scatter series will be transformed to `{ x: 1, y: 10 }`.
|
|
25810
25815
|
*
|
|
25816
|
+
* @deprecated
|
|
25811
25817
|
* @function Highcharts.Point#optionsToObject
|
|
25812
25818
|
*
|
|
25813
25819
|
* @param {Highcharts.PointOptionsType} options
|
|
25814
|
-
*
|
|
25820
|
+
* Series data options.
|
|
25815
25821
|
*
|
|
25816
25822
|
* @return {Highcharts.Dictionary<*>}
|
|
25817
|
-
*
|
|
25823
|
+
* Transformed point options.
|
|
25818
25824
|
*/
|
|
25819
25825
|
Point.prototype.optionsToObject = function (options) {
|
|
25820
25826
|
var series = this.series,
|
|
@@ -26365,7 +26371,8 @@
|
|
|
26365
26371
|
});
|
|
26366
26372
|
}
|
|
26367
26373
|
}
|
|
26368
|
-
if (!chart.styledMode && stateMarkerGraphic
|
|
26374
|
+
if (!chart.styledMode && stateMarkerGraphic &&
|
|
26375
|
+
point.state !== 'inactive') {
|
|
26369
26376
|
stateMarkerGraphic.attr(series.pointAttribs(point, state));
|
|
26370
26377
|
}
|
|
26371
26378
|
}
|
|
@@ -26643,7 +26650,7 @@
|
|
|
26643
26650
|
|
|
26644
26651
|
return Point;
|
|
26645
26652
|
});
|
|
26646
|
-
_registerModule(_modules, 'Core/Pointer.js', [_modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/
|
|
26653
|
+
_registerModule(_modules, 'Core/Pointer.js', [_modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Tooltip.js'], _modules['Core/Utilities.js']], function (Color, H, Tooltip, U) {
|
|
26647
26654
|
/* *
|
|
26648
26655
|
*
|
|
26649
26656
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -26832,7 +26839,7 @@
|
|
|
26832
26839
|
visiblePlotOnly: true
|
|
26833
26840
|
});
|
|
26834
26841
|
// make a selection
|
|
26835
|
-
if (chart.hasCartesianSeries &&
|
|
26842
|
+
if ((chart.hasCartesianSeries || chart.mapView) &&
|
|
26836
26843
|
(this.zoomX || this.zoomY) &&
|
|
26837
26844
|
clickedInside &&
|
|
26838
26845
|
!panKey) {
|
|
@@ -26847,7 +26854,7 @@
|
|
|
26847
26854
|
if (!chart.styledMode) {
|
|
26848
26855
|
selectionMarker.attr({
|
|
26849
26856
|
fill: (chartOptions.selectionMarkerFill ||
|
|
26850
|
-
color(
|
|
26857
|
+
color("#335cad" /* highlightColor80 */)
|
|
26851
26858
|
.setOpacity(0.25).get())
|
|
26852
26859
|
});
|
|
26853
26860
|
}
|
|
@@ -26900,25 +26907,22 @@
|
|
|
26900
26907
|
chart = this.chart,
|
|
26901
26908
|
hasPinched = this.hasPinched;
|
|
26902
26909
|
if (this.selectionMarker) {
|
|
26903
|
-
var
|
|
26904
|
-
originalEvent: e,
|
|
26905
|
-
xAxis: [],
|
|
26906
|
-
yAxis: []
|
|
26907
|
-
},
|
|
26908
|
-
selectionBox = this.selectionMarker,
|
|
26909
|
-
selectionLeft_1 = selectionBox.attr ?
|
|
26910
|
-
selectionBox.attr('x') :
|
|
26911
|
-
selectionBox.x,
|
|
26912
|
-
selectionTop_1 = selectionBox.attr ?
|
|
26913
|
-
selectionBox.attr('y') :
|
|
26914
|
-
selectionBox.y,
|
|
26915
|
-
selectionWidth_1 = selectionBox.attr ?
|
|
26910
|
+
var selectionBox = this.selectionMarker, x_1 = selectionBox.attr ? selectionBox.attr('x') : selectionBox.x, y_1 = selectionBox.attr ? selectionBox.attr('y') : selectionBox.y, width_1 = selectionBox.attr ?
|
|
26916
26911
|
selectionBox.attr('width') :
|
|
26917
|
-
selectionBox.width,
|
|
26918
|
-
selectionHeight_1 = selectionBox.attr ?
|
|
26912
|
+
selectionBox.width, height_1 = selectionBox.attr ?
|
|
26919
26913
|
selectionBox.attr('height') :
|
|
26920
|
-
selectionBox.height
|
|
26921
|
-
|
|
26914
|
+
selectionBox.height, selectionData_1 = {
|
|
26915
|
+
originalEvent: e,
|
|
26916
|
+
xAxis: [],
|
|
26917
|
+
yAxis: [],
|
|
26918
|
+
x: x_1,
|
|
26919
|
+
y: y_1,
|
|
26920
|
+
width: width_1,
|
|
26921
|
+
height: height_1
|
|
26922
|
+
},
|
|
26923
|
+
// Start by false runZoom, unless when we have a mapView, in
|
|
26924
|
+
// which case the zoom will be handled in the selection event.
|
|
26925
|
+
runZoom_1 = Boolean(chart.mapView);
|
|
26922
26926
|
// a selection has been made
|
|
26923
26927
|
if (this.hasDragged || hasPinched) {
|
|
26924
26928
|
// record each axis' min and max
|
|
@@ -26930,17 +26934,15 @@
|
|
|
26930
26934
|
xAxis: 'zoomX',
|
|
26931
26935
|
yAxis: 'zoomY'
|
|
26932
26936
|
}[axis.coll]]) &&
|
|
26933
|
-
isNumber(
|
|
26934
|
-
isNumber(
|
|
26937
|
+
isNumber(x_1) &&
|
|
26938
|
+
isNumber(y_1)) { // #859, #3569
|
|
26935
26939
|
var horiz = axis.horiz,
|
|
26936
26940
|
minPixelPadding = e.type === 'touchend' ?
|
|
26937
26941
|
axis.minPixelPadding :
|
|
26938
26942
|
0, // #1207, #3075
|
|
26939
|
-
selectionMin = axis.toValue((horiz ?
|
|
26940
|
-
|
|
26941
|
-
|
|
26942
|
-
selectionLeft_1 + selectionWidth_1 :
|
|
26943
|
-
selectionTop_1 + selectionHeight_1) - minPixelPadding);
|
|
26943
|
+
selectionMin = axis.toValue((horiz ? x_1 : y_1) + minPixelPadding),
|
|
26944
|
+
selectionMax = axis.toValue((horiz ? x_1 + width_1 : y_1 + height_1) -
|
|
26945
|
+
minPixelPadding);
|
|
26944
26946
|
selectionData_1[axis.coll].push({
|
|
26945
26947
|
axis: axis,
|
|
26946
26948
|
// Min/max for reversed axes
|
|
@@ -27656,20 +27658,22 @@
|
|
|
27656
27658
|
}
|
|
27657
27659
|
else if (pinchDown.length) { // can be 0 when releasing, if touchend
|
|
27658
27660
|
// fires first
|
|
27659
|
-
|
|
27660
|
-
|
|
27661
|
-
|
|
27662
|
-
|
|
27663
|
-
|
|
27664
|
-
|
|
27665
|
-
|
|
27666
|
-
|
|
27667
|
-
|
|
27668
|
-
|
|
27669
|
-
|
|
27670
|
-
|
|
27671
|
-
|
|
27672
|
-
|
|
27661
|
+
fireEvent(chart, 'touchpan', { originalEvent: e }, function () {
|
|
27662
|
+
// Set the marker
|
|
27663
|
+
if (!selectionMarker) {
|
|
27664
|
+
// @todo It's a mock object, so maybe we need a separate
|
|
27665
|
+
// interface
|
|
27666
|
+
self.selectionMarker = selectionMarker = extend({
|
|
27667
|
+
destroy: noop,
|
|
27668
|
+
touch: true
|
|
27669
|
+
}, chart.plotBox);
|
|
27670
|
+
}
|
|
27671
|
+
self.pinchTranslate(pinchDown, touches, transform, selectionMarker, clip, lastValidTouch);
|
|
27672
|
+
self.hasPinched = hasZoom;
|
|
27673
|
+
// Scale and translate the groups to provide visual feedback
|
|
27674
|
+
// during pinching
|
|
27675
|
+
self.scaleGroups(transform, clip);
|
|
27676
|
+
});
|
|
27673
27677
|
if (self.res) {
|
|
27674
27678
|
self.res = false;
|
|
27675
27679
|
this.reset(false, 0);
|
|
@@ -27996,7 +28000,9 @@
|
|
|
27996
28000
|
// Scale each series
|
|
27997
28001
|
chart.series.forEach(function (series) {
|
|
27998
28002
|
var seriesAttribs = attribs || series.getPlotBox(); // #1701
|
|
27999
|
-
if (series.
|
|
28003
|
+
if (series.group &&
|
|
28004
|
+
((series.xAxis && series.xAxis.zoomEnabled) ||
|
|
28005
|
+
chart.mapView)) {
|
|
28000
28006
|
series.group.attr(seriesAttribs);
|
|
28001
28007
|
if (series.markerGroup) {
|
|
28002
28008
|
series.markerGroup.attr(seriesAttribs);
|
|
@@ -29450,10 +29456,14 @@
|
|
|
29450
29456
|
if (lastY) {
|
|
29451
29457
|
allItems[i - 1].pageIx = len - 1;
|
|
29452
29458
|
}
|
|
29453
|
-
|
|
29459
|
+
// add the last page if needed (#2617, #13683)
|
|
29460
|
+
if (
|
|
29461
|
+
// check the last item
|
|
29462
|
+
i === allItems.length - 1 &&
|
|
29463
|
+
// if adding next page is needed
|
|
29454
29464
|
y + h - pages[len - 1] > clipHeight &&
|
|
29455
|
-
|
|
29456
|
-
|
|
29465
|
+
// and will fully fit inside a new page
|
|
29466
|
+
h <= clipHeight) {
|
|
29457
29467
|
pages.push(y);
|
|
29458
29468
|
item.pageIx = len;
|
|
29459
29469
|
}
|
|
@@ -29945,8 +29955,7 @@
|
|
|
29945
29955
|
SeriesRegistry.seriesTypes[type].prototype.type = type;
|
|
29946
29956
|
// Create the point class if needed
|
|
29947
29957
|
if (pointProto) {
|
|
29948
|
-
SeriesRegistry.seriesTypes[type].prototype.pointClass =
|
|
29949
|
-
extendClass(Point, pointProto);
|
|
29958
|
+
SeriesRegistry.seriesTypes[type].prototype.pointClass = extendClass(Point, pointProto);
|
|
29950
29959
|
}
|
|
29951
29960
|
return SeriesRegistry.seriesTypes[type];
|
|
29952
29961
|
}
|
|
@@ -29961,7 +29970,7 @@
|
|
|
29961
29970
|
|
|
29962
29971
|
return SeriesRegistry;
|
|
29963
29972
|
});
|
|
29964
|
-
_registerModule(_modules, 'Core/Chart/Chart.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Axis/Axis.js'], _modules['Core/FormatUtilities.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Legend/Legend.js'], _modules['Core/MSPointer.js'], _modules['Core/DefaultOptions.js'], _modules['Core/
|
|
29973
|
+
_registerModule(_modules, 'Core/Chart/Chart.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Axis/Axis.js'], _modules['Core/FormatUtilities.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Legend/Legend.js'], _modules['Core/MSPointer.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Pointer.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Renderer/SVG/SVGRenderer.js'], _modules['Core/Time.js'], _modules['Core/Utilities.js'], _modules['Core/Renderer/HTML/AST.js']], function (A, Axis, FormatUtilities, Foundation, H, Legend, MSPointer, D, Pointer, RendererRegistry, SeriesRegistry, SVGRenderer, Time, U, AST) {
|
|
29965
29974
|
/* *
|
|
29966
29975
|
*
|
|
29967
29976
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -30762,10 +30771,10 @@
|
|
|
30762
30771
|
var chart = this;
|
|
30763
30772
|
// Default style
|
|
30764
30773
|
var style = name === 'title' ? {
|
|
30765
|
-
color:
|
|
30774
|
+
color: "#333333" /* neutralColor80 */,
|
|
30766
30775
|
fontSize: this.options.isStock ? '16px' : '18px' // #2944
|
|
30767
30776
|
} : {
|
|
30768
|
-
color:
|
|
30777
|
+
color: "#666666" /* neutralColor60 */
|
|
30769
30778
|
};
|
|
30770
30779
|
// Merge default options with explicit options
|
|
30771
30780
|
var options = this.options[name] = merge(
|
|
@@ -33172,7 +33181,7 @@
|
|
|
33172
33181
|
|
|
33173
33182
|
return LegendSymbol;
|
|
33174
33183
|
});
|
|
33175
|
-
_registerModule(_modules, 'Core/Series/SeriesDefaults.js', [
|
|
33184
|
+
_registerModule(_modules, 'Core/Series/SeriesDefaults.js', [], function () {
|
|
33176
33185
|
/* *
|
|
33177
33186
|
*
|
|
33178
33187
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -34155,7 +34164,7 @@
|
|
|
34155
34164
|
*
|
|
34156
34165
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
34157
34166
|
*/
|
|
34158
|
-
lineColor:
|
|
34167
|
+
lineColor: "#ffffff" /* backgroundColor */,
|
|
34159
34168
|
/**
|
|
34160
34169
|
* The width of the point marker's outline.
|
|
34161
34170
|
*
|
|
@@ -34355,7 +34364,7 @@
|
|
|
34355
34364
|
*
|
|
34356
34365
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
34357
34366
|
*/
|
|
34358
|
-
fillColor:
|
|
34367
|
+
fillColor: "#cccccc" /* neutralColor20 */,
|
|
34359
34368
|
/**
|
|
34360
34369
|
* The color of the point marker's outline. When
|
|
34361
34370
|
* `undefined`, the series' or point's color is used.
|
|
@@ -34365,7 +34374,7 @@
|
|
|
34365
34374
|
*
|
|
34366
34375
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
34367
34376
|
*/
|
|
34368
|
-
lineColor:
|
|
34377
|
+
lineColor: "#000000" /* neutralColor100 */,
|
|
34369
34378
|
/**
|
|
34370
34379
|
* The width of the point marker's outline.
|
|
34371
34380
|
*
|
|
@@ -35466,7 +35475,7 @@
|
|
|
35466
35475
|
|
|
35467
35476
|
return seriesDefaults;
|
|
35468
35477
|
});
|
|
35469
|
-
_registerModule(_modules, 'Core/Series/Series.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Core/
|
|
35478
|
+
_registerModule(_modules, 'Core/Series/Series.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Foundation.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Core/Series/Point.js'], _modules['Core/Series/SeriesDefaults.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Renderer/SVG/SVGElement.js'], _modules['Core/Utilities.js']], function (A, D, F, H, LegendSymbol, Point, SeriesDefaults, SeriesRegistry, SVGElement, U) {
|
|
35470
35479
|
/* *
|
|
35471
35480
|
*
|
|
35472
35481
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -36083,7 +36092,7 @@
|
|
|
36083
36092
|
this.getCyclic('color');
|
|
36084
36093
|
}
|
|
36085
36094
|
else if (this.options.colorByPoint) {
|
|
36086
|
-
this.color =
|
|
36095
|
+
this.color = "#cccccc" /* neutralColor20 */;
|
|
36087
36096
|
}
|
|
36088
36097
|
else {
|
|
36089
36098
|
this.getCyclic('color', this.options.color ||
|
|
@@ -36414,11 +36423,19 @@
|
|
|
36414
36423
|
}
|
|
36415
36424
|
else if (isArray(firstPoint)) {
|
|
36416
36425
|
if (valueCount) { // [x, low, high] or [x, o, h, l, c]
|
|
36417
|
-
|
|
36418
|
-
|
|
36419
|
-
|
|
36420
|
-
|
|
36421
|
-
|
|
36426
|
+
if (firstPoint.length === valueCount) {
|
|
36427
|
+
for (i = 0; i < dataLength; i++) {
|
|
36428
|
+
xData[i] = this.autoIncrement();
|
|
36429
|
+
yData[i] = data[i];
|
|
36430
|
+
}
|
|
36431
|
+
}
|
|
36432
|
+
else {
|
|
36433
|
+
for (i = 0; i < dataLength; i++) {
|
|
36434
|
+
pt = data[i];
|
|
36435
|
+
xData[i] = pt[0];
|
|
36436
|
+
yData[i] =
|
|
36437
|
+
pt.slice(1, valueCount + 1);
|
|
36438
|
+
}
|
|
36422
36439
|
}
|
|
36423
36440
|
}
|
|
36424
36441
|
else { // [x, y]
|
|
@@ -36428,10 +36445,21 @@
|
|
|
36428
36445
|
indexOfX = indexOfX >= 0 ? indexOfX : 0;
|
|
36429
36446
|
indexOfY = indexOfY >= 0 ? indexOfY : 1;
|
|
36430
36447
|
}
|
|
36431
|
-
|
|
36432
|
-
|
|
36433
|
-
|
|
36434
|
-
|
|
36448
|
+
if (firstPoint.length === 1) {
|
|
36449
|
+
indexOfY = 0;
|
|
36450
|
+
}
|
|
36451
|
+
if (indexOfX === indexOfY) {
|
|
36452
|
+
for (i = 0; i < dataLength; i++) {
|
|
36453
|
+
xData[i] = this.autoIncrement();
|
|
36454
|
+
yData[i] = data[i][indexOfY];
|
|
36455
|
+
}
|
|
36456
|
+
}
|
|
36457
|
+
else {
|
|
36458
|
+
for (i = 0; i < dataLength; i++) {
|
|
36459
|
+
pt = data[i];
|
|
36460
|
+
xData[i] = pt[indexOfX];
|
|
36461
|
+
yData[i] = pt[indexOfY];
|
|
36462
|
+
}
|
|
36435
36463
|
}
|
|
36436
36464
|
}
|
|
36437
36465
|
}
|
|
@@ -36675,6 +36703,7 @@
|
|
|
36675
36703
|
series.processedXData = processedData.xData;
|
|
36676
36704
|
series.processedYData = processedData.yData;
|
|
36677
36705
|
series.closestPointRange = series.basePointRange = processedData.closestPointRange;
|
|
36706
|
+
fireEvent(series, 'afterProcessData');
|
|
36678
36707
|
};
|
|
36679
36708
|
/**
|
|
36680
36709
|
* Iterate over xData and crop values between min and max. Returns
|
|
@@ -36950,6 +36979,7 @@
|
|
|
36950
36979
|
}
|
|
36951
36980
|
}
|
|
36952
36981
|
var dataExtremes = {
|
|
36982
|
+
activeYData: activeYData,
|
|
36953
36983
|
dataMin: arrayMin(activeYData),
|
|
36954
36984
|
dataMax: arrayMax(activeYData)
|
|
36955
36985
|
};
|
|
@@ -37031,7 +37061,6 @@
|
|
|
37031
37061
|
yAxis = series.yAxis,
|
|
37032
37062
|
points = series.points,
|
|
37033
37063
|
dataLength = points.length,
|
|
37034
|
-
hasModifyValue = !!series.modifyValue,
|
|
37035
37064
|
pointPlacement = series.pointPlacementToXValue(), // #7860
|
|
37036
37065
|
dynamicallyPlaced = Boolean(pointPlacement),
|
|
37037
37066
|
threshold = options.threshold,
|
|
@@ -37116,9 +37145,9 @@
|
|
|
37116
37145
|
point.yBottom = defined(yBottom) ?
|
|
37117
37146
|
limitedRange(yAxis.translate(yBottom, 0, 1, 0, 1)) :
|
|
37118
37147
|
null;
|
|
37119
|
-
//
|
|
37120
|
-
if (
|
|
37121
|
-
yValue = series.modifyValue(yValue,
|
|
37148
|
+
// General hook, used for Highcharts Stock compare and cumulative
|
|
37149
|
+
if (series.dataModify) {
|
|
37150
|
+
yValue = series.dataModify.modifyValue(yValue, i);
|
|
37122
37151
|
}
|
|
37123
37152
|
// Set the the plotY value, reset it for redraws
|
|
37124
37153
|
// #3201
|
|
@@ -37156,7 +37185,7 @@
|
|
|
37156
37185
|
lastPlotX = plotX;
|
|
37157
37186
|
}
|
|
37158
37187
|
// Find point zone
|
|
37159
|
-
point.zone =
|
|
37188
|
+
point.zone = this.zones.length ? point.getZone() : void 0;
|
|
37160
37189
|
// Animate new points with data sorting
|
|
37161
37190
|
if (!point.graphic && series.group && enabledDataSorting) {
|
|
37162
37191
|
point.isNew = true;
|
|
@@ -37201,51 +37230,24 @@
|
|
|
37201
37230
|
* @private
|
|
37202
37231
|
* @function Highcharts.Series#getClip
|
|
37203
37232
|
*
|
|
37204
|
-
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>} [animation]
|
|
37205
|
-
* Initialize the animation.
|
|
37206
|
-
*
|
|
37207
|
-
* @param {boolean} [finalBox]
|
|
37208
|
-
* Final size for the clip - end state for the animation.
|
|
37209
|
-
*
|
|
37210
37233
|
* @return {Highcharts.Dictionary<number>}
|
|
37211
37234
|
*/
|
|
37212
|
-
Series.prototype.getClipBox = function (
|
|
37213
|
-
var
|
|
37214
|
-
|
|
37215
|
-
|
|
37216
|
-
|
|
37217
|
-
|
|
37218
|
-
|
|
37219
|
-
|
|
37220
|
-
|
|
37221
|
-
if (
|
|
37222
|
-
|
|
37223
|
-
clipBox = inverted ? {
|
|
37224
|
-
y: -chart.chartWidth + yAxis.len + yAxis.pos,
|
|
37225
|
-
height: chart.chartWidth,
|
|
37226
|
-
width: chart.chartHeight,
|
|
37227
|
-
x: -chart.chartHeight + xAxis.len + xAxis.pos
|
|
37228
|
-
} : {
|
|
37229
|
-
y: -yAxis.pos,
|
|
37230
|
-
height: chart.chartHeight,
|
|
37231
|
-
width: chart.chartWidth,
|
|
37232
|
-
x: -xAxis.pos
|
|
37233
|
-
};
|
|
37234
|
-
// x and width will be changed later when setting for animation
|
|
37235
|
-
// initial state in Series.setClip
|
|
37235
|
+
Series.prototype.getClipBox = function () {
|
|
37236
|
+
var _a = this,
|
|
37237
|
+
chart = _a.chart,
|
|
37238
|
+
xAxis = _a.xAxis,
|
|
37239
|
+
yAxis = _a.yAxis;
|
|
37240
|
+
// If no axes on the series, use global clipBox
|
|
37241
|
+
var seriesBox = merge(chart.clipBox);
|
|
37242
|
+
// Otherwise, use clipBox.width which is corrected for plotBorderWidth
|
|
37243
|
+
// and clipOffset
|
|
37244
|
+
if (xAxis && xAxis.len !== chart.plotSizeX) {
|
|
37245
|
+
seriesBox.width = xAxis.len;
|
|
37236
37246
|
}
|
|
37237
|
-
|
|
37238
|
-
|
|
37239
|
-
if (finalBox) {
|
|
37240
|
-
clipBox.width = chart.plotSizeX;
|
|
37241
|
-
clipBox.x = (chart.scrollablePixelsX || 0) *
|
|
37242
|
-
(scrollablePlotAreaOptions.scrollPositionX || 0);
|
|
37243
|
-
}
|
|
37247
|
+
if (yAxis && yAxis.len !== chart.plotSizeY) {
|
|
37248
|
+
seriesBox.height = yAxis.len;
|
|
37244
37249
|
}
|
|
37245
|
-
return
|
|
37246
|
-
width: clipBox.width,
|
|
37247
|
-
x: clipBox.x
|
|
37248
|
-
};
|
|
37250
|
+
return seriesBox;
|
|
37249
37251
|
};
|
|
37250
37252
|
/**
|
|
37251
37253
|
* Get the shared clip key, creating it if it doesn't exist.
|
|
@@ -37253,99 +37255,52 @@
|
|
|
37253
37255
|
* @private
|
|
37254
37256
|
* @function Highcharts.Series#getSharedClipKey
|
|
37255
37257
|
*/
|
|
37256
|
-
Series.prototype.getSharedClipKey = function (
|
|
37257
|
-
|
|
37258
|
-
|
|
37259
|
-
|
|
37260
|
-
var sharedClipKey = [
|
|
37261
|
-
animation && animation.duration,
|
|
37262
|
-
animation && animation.easing,
|
|
37263
|
-
animation && animation.defer,
|
|
37264
|
-
this.getClipBox(animation).height,
|
|
37265
|
-
this.options.xAxis,
|
|
37266
|
-
this.options.yAxis
|
|
37267
|
-
].join(',');
|
|
37268
|
-
if (this.options.clip !== false || animation) {
|
|
37269
|
-
this.sharedClipKey = sharedClipKey;
|
|
37270
|
-
}
|
|
37271
|
-
return sharedClipKey;
|
|
37258
|
+
Series.prototype.getSharedClipKey = function () {
|
|
37259
|
+
this.sharedClipKey = (this.options.xAxis || 0) + ',' +
|
|
37260
|
+
(this.options.yAxis || 0);
|
|
37261
|
+
return this.sharedClipKey;
|
|
37272
37262
|
};
|
|
37273
37263
|
/**
|
|
37274
|
-
* Set the clipping for the series. For animated series
|
|
37275
|
-
*
|
|
37276
|
-
* without the animation to set the final clip.
|
|
37264
|
+
* Set the clipping for the series. For animated series the clip is later
|
|
37265
|
+
* modified.
|
|
37277
37266
|
*
|
|
37278
37267
|
* @private
|
|
37279
37268
|
* @function Highcharts.Series#setClip
|
|
37280
37269
|
*/
|
|
37281
|
-
Series.prototype.setClip = function (
|
|
37282
|
-
var
|
|
37283
|
-
|
|
37270
|
+
Series.prototype.setClip = function () {
|
|
37271
|
+
var _a = this,
|
|
37272
|
+
chart = _a.chart,
|
|
37273
|
+
group = _a.group,
|
|
37274
|
+
markerGroup = _a.markerGroup,
|
|
37275
|
+
sharedClips = chart.sharedClips,
|
|
37284
37276
|
renderer = chart.renderer,
|
|
37285
|
-
|
|
37286
|
-
|
|
37287
|
-
|
|
37288
|
-
|
|
37289
|
-
|
|
37290
|
-
markerClipRect = chart.sharedClips[sharedClipKey + 'm'];
|
|
37291
|
-
if (animation) {
|
|
37292
|
-
clipBox.width = 0;
|
|
37293
|
-
if (inverted) {
|
|
37294
|
-
clipBox.x = chart.plotHeight +
|
|
37295
|
-
(options.clip !== false ? 0 : chart.plotTop);
|
|
37296
|
-
}
|
|
37297
|
-
}
|
|
37298
|
-
// If a clipping rectangle with the same properties is currently
|
|
37299
|
-
// present in the chart, use that.
|
|
37277
|
+
clipBox = this.getClipBox(),
|
|
37278
|
+
sharedClipKey = this.getSharedClipKey(); // #4526
|
|
37279
|
+
var clipRect = sharedClips[sharedClipKey];
|
|
37280
|
+
// If a clipping rectangle for the same set of axes does not exist,
|
|
37281
|
+
// create it
|
|
37300
37282
|
if (!clipRect) {
|
|
37301
|
-
|
|
37302
|
-
|
|
37303
|
-
|
|
37304
|
-
renderer.clipRect(
|
|
37305
|
-
// include the width of the first marker
|
|
37306
|
-
inverted ? (chart.plotSizeX || 0) + 99 : -99, inverted ? -chart.plotLeft : -chart.plotTop, 99, inverted ? chart.chartWidth : chart.chartHeight);
|
|
37307
|
-
}
|
|
37308
|
-
chart.sharedClips[sharedClipKey] = clipRect = renderer.clipRect(clipBox);
|
|
37309
|
-
// Create hashmap for series indexes
|
|
37310
|
-
clipRect.count = { length: 0 };
|
|
37311
|
-
// When the series is rendered again before starting animating, in
|
|
37312
|
-
// compliance to a responsive rule
|
|
37283
|
+
sharedClips[sharedClipKey] = clipRect = renderer.clipRect(clipBox);
|
|
37284
|
+
// When setting chart size, or when the series is rendered again before
|
|
37285
|
+
// starting animating, in compliance to a responsive rule
|
|
37313
37286
|
}
|
|
37314
|
-
else
|
|
37315
|
-
clipRect.
|
|
37316
|
-
}
|
|
37317
|
-
if (animation) {
|
|
37318
|
-
if (!clipRect.count[this.index]) {
|
|
37319
|
-
clipRect.count[this.index] = true;
|
|
37320
|
-
clipRect.count.length += 1;
|
|
37321
|
-
}
|
|
37287
|
+
else {
|
|
37288
|
+
clipRect.animate(clipBox);
|
|
37322
37289
|
}
|
|
37323
|
-
if (
|
|
37324
|
-
|
|
37325
|
-
this.
|
|
37290
|
+
if (group) {
|
|
37291
|
+
// When clip is false, reset to no clip after animation
|
|
37292
|
+
group.clip(this.options.clip === false ? void 0 : clipRect);
|
|
37326
37293
|
}
|
|
37327
|
-
//
|
|
37328
|
-
if (
|
|
37329
|
-
|
|
37330
|
-
delete clipRect.count[this.index];
|
|
37331
|
-
clipRect.count.length -= 1;
|
|
37332
|
-
}
|
|
37333
|
-
if (clipRect.count.length === 0) {
|
|
37334
|
-
if (!seriesClipBox) {
|
|
37335
|
-
chart.sharedClips[sharedClipKey] = clipRect.destroy();
|
|
37336
|
-
}
|
|
37337
|
-
if (markerClipRect) {
|
|
37338
|
-
chart.sharedClips[sharedClipKey + 'm'] = markerClipRect.destroy();
|
|
37339
|
-
}
|
|
37340
|
-
}
|
|
37294
|
+
// Unclip temporary animation clip
|
|
37295
|
+
if (markerGroup) {
|
|
37296
|
+
markerGroup.clip();
|
|
37341
37297
|
}
|
|
37342
37298
|
};
|
|
37343
37299
|
/**
|
|
37344
37300
|
* Animate in the series. Called internally twice. First with the `init`
|
|
37345
37301
|
* parameter set to true, which sets up the initial state of the
|
|
37346
37302
|
* animation. Then when ready, it is called with the `init` parameter
|
|
37347
|
-
* undefined, in order to perform the actual animation.
|
|
37348
|
-
* second run, the function is removed.
|
|
37303
|
+
* undefined, in order to perform the actual animation.
|
|
37349
37304
|
*
|
|
37350
37305
|
* @function Highcharts.Series#animate
|
|
37351
37306
|
*
|
|
@@ -37353,29 +37308,70 @@
|
|
|
37353
37308
|
* Initialize the animation.
|
|
37354
37309
|
*/
|
|
37355
37310
|
Series.prototype.animate = function (init) {
|
|
37356
|
-
var
|
|
37357
|
-
|
|
37358
|
-
|
|
37359
|
-
|
|
37311
|
+
var _a = this, chart = _a.chart, group = _a.group, markerGroup = _a.markerGroup, inverted = chart.inverted, animation = animObject(this.options.animation),
|
|
37312
|
+
// The key for temporary animation clips
|
|
37313
|
+
animationClipKey = [
|
|
37314
|
+
this.getSharedClipKey(),
|
|
37315
|
+
animation.duration,
|
|
37316
|
+
animation.easing,
|
|
37317
|
+
animation.defer
|
|
37318
|
+
].join(',');
|
|
37319
|
+
var animationClipRect = chart.sharedClips[animationClipKey],
|
|
37320
|
+
markerAnimationClipRect = chart.sharedClips[animationClipKey + 'm'];
|
|
37360
37321
|
// Initialize the animation. Set up the clipping rectangle.
|
|
37361
|
-
if (init) {
|
|
37362
|
-
|
|
37322
|
+
if (init && group) {
|
|
37323
|
+
var clipBox = this.getClipBox();
|
|
37324
|
+
// Create temporary animation clips
|
|
37325
|
+
if (!animationClipRect) {
|
|
37326
|
+
clipBox.width = 0;
|
|
37327
|
+
if (inverted) {
|
|
37328
|
+
clipBox.x = chart.plotHeight;
|
|
37329
|
+
}
|
|
37330
|
+
animationClipRect = chart.renderer.clipRect(clipBox);
|
|
37331
|
+
chart.sharedClips[animationClipKey] = animationClipRect;
|
|
37332
|
+
var markerClipBox = {
|
|
37333
|
+
// Include the width of the first marker
|
|
37334
|
+
x: inverted ? (chart.plotSizeX || 0) + 99 : -99,
|
|
37335
|
+
y: inverted ? -chart.plotLeft : -chart.plotTop,
|
|
37336
|
+
width: 99,
|
|
37337
|
+
height: inverted ? chart.chartWidth : chart.chartHeight
|
|
37338
|
+
};
|
|
37339
|
+
markerAnimationClipRect = chart.renderer.clipRect(markerClipBox);
|
|
37340
|
+
chart.sharedClips[animationClipKey + 'm'] = markerAnimationClipRect;
|
|
37341
|
+
}
|
|
37342
|
+
else {
|
|
37343
|
+
// When height changes during animation, typically due to
|
|
37344
|
+
// responsive settings
|
|
37345
|
+
animationClipRect.attr('height', clipBox.height);
|
|
37346
|
+
}
|
|
37347
|
+
group.clip(animationClipRect);
|
|
37348
|
+
if (markerGroup) {
|
|
37349
|
+
markerGroup.clip(markerAnimationClipRect);
|
|
37350
|
+
}
|
|
37363
37351
|
// Run the animation
|
|
37364
37352
|
}
|
|
37365
|
-
else if (
|
|
37366
|
-
|
|
37367
|
-
|
|
37368
|
-
var finalBox =
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37372
|
-
|
|
37373
|
-
|
|
37374
|
-
|
|
37375
|
-
|
|
37376
|
-
|
|
37377
|
-
|
|
37353
|
+
else if (animationClipRect &&
|
|
37354
|
+
// Only first series in this pane
|
|
37355
|
+
!animationClipRect.hasClass('highcharts-animating')) {
|
|
37356
|
+
var finalBox = this.getClipBox(),
|
|
37357
|
+
step_1 = animation.step;
|
|
37358
|
+
// Only do this when there are actually markers
|
|
37359
|
+
if (markerGroup && markerGroup.element.childNodes.length) {
|
|
37360
|
+
// To provide as smooth animation as possible, update the marker
|
|
37361
|
+
// group clipping in steps of the main group animation
|
|
37362
|
+
animation.step = function (val, fx) {
|
|
37363
|
+
if (step_1) {
|
|
37364
|
+
step_1.apply(fx, arguments);
|
|
37365
|
+
}
|
|
37366
|
+
if (markerAnimationClipRect &&
|
|
37367
|
+
markerAnimationClipRect.element) {
|
|
37368
|
+
markerAnimationClipRect.attr(fx.prop, fx.prop === 'width' ? val + 99 : val);
|
|
37369
|
+
}
|
|
37370
|
+
};
|
|
37378
37371
|
}
|
|
37372
|
+
animationClipRect
|
|
37373
|
+
.addClass('highcharts-animating')
|
|
37374
|
+
.animate(finalBox, animation);
|
|
37379
37375
|
}
|
|
37380
37376
|
};
|
|
37381
37377
|
/**
|
|
@@ -37387,9 +37383,17 @@
|
|
|
37387
37383
|
* @fires Highcharts.Series#event:afterAnimate
|
|
37388
37384
|
*/
|
|
37389
37385
|
Series.prototype.afterAnimate = function () {
|
|
37386
|
+
var _this = this;
|
|
37390
37387
|
this.setClip();
|
|
37391
|
-
|
|
37388
|
+
// Destroy temporary clip rectangles that are no longer in use
|
|
37389
|
+
objectEach(this.chart.sharedClips, function (clip, key, sharedClips) {
|
|
37390
|
+
if (clip && !_this.chart.container.querySelector("[clip-path=\"url(#" + clip.id + ")\"]")) {
|
|
37391
|
+
clip.destroy();
|
|
37392
|
+
delete sharedClips[key];
|
|
37393
|
+
}
|
|
37394
|
+
});
|
|
37392
37395
|
this.finishedAnimating = true;
|
|
37396
|
+
fireEvent(this, 'afterAnimate');
|
|
37393
37397
|
};
|
|
37394
37398
|
/**
|
|
37395
37399
|
* Draw the markers for line-like series types, and columns or other
|
|
@@ -37597,7 +37601,7 @@
|
|
|
37597
37601
|
// Handle hover and select states
|
|
37598
37602
|
state = state || 'normal';
|
|
37599
37603
|
if (state) {
|
|
37600
|
-
seriesStateOptions = seriesMarkerOptions.states[state];
|
|
37604
|
+
seriesStateOptions = seriesMarkerOptions.states[state] || {};
|
|
37601
37605
|
pointStateOptions = (pointMarkerOptions.states &&
|
|
37602
37606
|
pointMarkerOptions.states[state]) || {};
|
|
37603
37607
|
strokeWidth = pick(pointStateOptions.lineWidth, seriesStateOptions.lineWidth, strokeWidth + pick(pointStateOptions.lineWidthPlus, seriesStateOptions.lineWidthPlus, 0));
|
|
@@ -37978,15 +37982,18 @@
|
|
|
37978
37982
|
inverted = chart.inverted;
|
|
37979
37983
|
// Animation doesn't work in IE8 quirks when the group div is
|
|
37980
37984
|
// hidden, and looks bad in other oldIE
|
|
37981
|
-
var animDuration = (!series.finishedAnimating &&
|
|
37982
|
-
|
|
37983
|
-
animOptions.duration);
|
|
37985
|
+
var animDuration = (!series.finishedAnimating && chart.renderer.isSVG) ?
|
|
37986
|
+
animOptions.duration : 0;
|
|
37984
37987
|
fireEvent(this, 'render');
|
|
37985
37988
|
// the group
|
|
37986
37989
|
var group = series.plotGroup('group', 'series', visibility, zIndex, chartSeriesGroup);
|
|
37987
37990
|
series.markerGroup = series.plotGroup('markerGroup', 'markers', visibility, zIndex, chartSeriesGroup);
|
|
37988
|
-
//
|
|
37989
|
-
if (
|
|
37991
|
+
// Initial clipping, applies to columns etc. (#3839).
|
|
37992
|
+
if (options.clip !== false) {
|
|
37993
|
+
series.setClip();
|
|
37994
|
+
}
|
|
37995
|
+
// Initialize the animation
|
|
37996
|
+
if (series.animate && animDuration) {
|
|
37990
37997
|
series.animate(true);
|
|
37991
37998
|
}
|
|
37992
37999
|
// SVGRenderer needs to know this before drawing elements (#1089,
|
|
@@ -38002,11 +38009,6 @@
|
|
|
38002
38009
|
if (series.visible) {
|
|
38003
38010
|
series.drawPoints();
|
|
38004
38011
|
}
|
|
38005
|
-
/* series.points.forEach(function (point) {
|
|
38006
|
-
if (point.redraw) {
|
|
38007
|
-
point.redraw();
|
|
38008
|
-
}
|
|
38009
|
-
}); */
|
|
38010
38012
|
// Draw the data labels
|
|
38011
38013
|
if (series.drawDataLabels) {
|
|
38012
38014
|
series.drawDataLabels();
|
|
@@ -38023,15 +38025,8 @@
|
|
|
38023
38025
|
}
|
|
38024
38026
|
// Handle inverted series and tracker groups
|
|
38025
38027
|
series.invertGroups(inverted);
|
|
38026
|
-
// Initial clipping, must be defined after inverting groups for VML.
|
|
38027
|
-
// Applies to columns etc. (#3839).
|
|
38028
|
-
if (options.clip !== false &&
|
|
38029
|
-
!series.sharedClipKey &&
|
|
38030
|
-
!hasRendered) {
|
|
38031
|
-
group.clip(chart.clipRect);
|
|
38032
|
-
}
|
|
38033
38028
|
// Run the animation
|
|
38034
|
-
if (
|
|
38029
|
+
if (series.animate && animDuration) {
|
|
38035
38030
|
series.animate();
|
|
38036
38031
|
}
|
|
38037
38032
|
// Call the afterAnimate function on animation complete (but don't
|
|
@@ -38270,12 +38265,16 @@
|
|
|
38270
38265
|
* @function Highcharts.Series#isPointInside
|
|
38271
38266
|
*/
|
|
38272
38267
|
Series.prototype.isPointInside = function (point) {
|
|
38273
|
-
var
|
|
38268
|
+
var _a = this,
|
|
38269
|
+
chart = _a.chart,
|
|
38270
|
+
xAxis = _a.xAxis,
|
|
38271
|
+
yAxis = _a.yAxis,
|
|
38272
|
+
isInside = (typeof point.plotY !== 'undefined' &&
|
|
38274
38273
|
typeof point.plotX !== 'undefined' &&
|
|
38275
38274
|
point.plotY >= 0 &&
|
|
38276
|
-
point.plotY <=
|
|
38275
|
+
point.plotY <= (yAxis ? yAxis.len : chart.plotHeight) &&
|
|
38277
38276
|
point.plotX >= 0 &&
|
|
38278
|
-
point.plotX <=
|
|
38277
|
+
point.plotX <= (xAxis ? xAxis.len : chart.plotWidth));
|
|
38279
38278
|
return isInside;
|
|
38280
38279
|
};
|
|
38281
38280
|
/**
|
|
@@ -40747,7 +40746,7 @@
|
|
|
40747
40746
|
|
|
40748
40747
|
return H.StackItem;
|
|
40749
40748
|
});
|
|
40750
|
-
_registerModule(_modules, 'Series/Line/LineSeries.js', [_modules['Core/
|
|
40749
|
+
_registerModule(_modules, 'Series/Line/LineSeries.js', [_modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (Series, SeriesRegistry, U) {
|
|
40751
40750
|
/* *
|
|
40752
40751
|
*
|
|
40753
40752
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -40832,7 +40831,7 @@
|
|
|
40832
40831
|
if (!styledMode) {
|
|
40833
40832
|
props[0].push((options.lineColor ||
|
|
40834
40833
|
this.color ||
|
|
40835
|
-
|
|
40834
|
+
"#cccccc" /* neutralColor20 */ // when colorByPoint = true
|
|
40836
40835
|
), options.dashStyle);
|
|
40837
40836
|
}
|
|
40838
40837
|
props = series.getZonesGraphs(props);
|
|
@@ -42404,7 +42403,7 @@
|
|
|
42404
42403
|
|
|
42405
42404
|
return AreaSplineSeries;
|
|
42406
42405
|
});
|
|
42407
|
-
_registerModule(_modules, 'Series/Column/ColumnSeries.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Core/
|
|
42406
|
+
_registerModule(_modules, 'Series/Column/ColumnSeries.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (A, Color, H, LegendSymbol, Series, SeriesRegistry, U) {
|
|
42408
42407
|
/* *
|
|
42409
42408
|
*
|
|
42410
42409
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -43385,7 +43384,7 @@
|
|
|
43385
43384
|
* @default #cccccc
|
|
43386
43385
|
* @product highcharts highstock gantt
|
|
43387
43386
|
*/
|
|
43388
|
-
color:
|
|
43387
|
+
color: "#cccccc" /* neutralColor20 */,
|
|
43389
43388
|
/**
|
|
43390
43389
|
* A specific border color for the selected point.
|
|
43391
43390
|
*
|
|
@@ -43393,7 +43392,7 @@
|
|
|
43393
43392
|
* @default #000000
|
|
43394
43393
|
* @product highcharts highstock gantt
|
|
43395
43394
|
*/
|
|
43396
|
-
borderColor:
|
|
43395
|
+
borderColor: "#000000" /* neutralColor100 */
|
|
43397
43396
|
}
|
|
43398
43397
|
},
|
|
43399
43398
|
dataLabels: {
|
|
@@ -43460,7 +43459,7 @@
|
|
|
43460
43459
|
*
|
|
43461
43460
|
* @private
|
|
43462
43461
|
*/
|
|
43463
|
-
borderColor:
|
|
43462
|
+
borderColor: "#ffffff" /* backgroundColor */
|
|
43464
43463
|
});
|
|
43465
43464
|
return ColumnSeries;
|
|
43466
43465
|
}(Series));
|
|
@@ -43651,7 +43650,7 @@
|
|
|
43651
43650
|
|
|
43652
43651
|
return ColumnSeries;
|
|
43653
43652
|
});
|
|
43654
|
-
_registerModule(_modules, 'Core/Series/DataLabel.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/FormatUtilities.js'], _modules['Core/
|
|
43653
|
+
_registerModule(_modules, 'Core/Series/DataLabel.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/FormatUtilities.js'], _modules['Core/Utilities.js']], function (A, F, U) {
|
|
43655
43654
|
/* *
|
|
43656
43655
|
*
|
|
43657
43656
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -43969,7 +43968,7 @@
|
|
|
43969
43968
|
rotation = labelOptions.rotation;
|
|
43970
43969
|
if (!chart.styledMode) {
|
|
43971
43970
|
// Determine the color
|
|
43972
|
-
style.color = pick(labelOptions.color, style.color, series.color,
|
|
43971
|
+
style.color = pick(labelOptions.color, style.color, series.color, "#000000" /* neutralColor100 */);
|
|
43973
43972
|
// Get automated contrast color
|
|
43974
43973
|
if (style.color === 'contrast') {
|
|
43975
43974
|
point.contrastColor = renderer.getContrast((point.color || series.color));
|
|
@@ -43978,7 +43977,7 @@
|
|
|
43978
43977
|
labelDistance < 0 ||
|
|
43979
43978
|
!!seriesOptions.stacking ?
|
|
43980
43979
|
point.contrastColor :
|
|
43981
|
-
|
|
43980
|
+
"#000000" /* neutralColor100 */;
|
|
43982
43981
|
}
|
|
43983
43982
|
else {
|
|
43984
43983
|
delete point.contrastColor;
|
|
@@ -44314,13 +44313,15 @@
|
|
|
44314
44313
|
*/
|
|
44315
44314
|
function alignDataLabel(point, dataLabel, options, alignTo, isNew) {
|
|
44316
44315
|
var inverted = this.chart.inverted,
|
|
44317
|
-
series = point.series,
|
|
44316
|
+
series = point.series,
|
|
44317
|
+
xLen = (series.xAxis ? series.xAxis.len : this.chart.plotSizeX) || 0,
|
|
44318
|
+
yLen = (series.yAxis ? series.yAxis.len : this.chart.plotSizeY) || 0,
|
|
44318
44319
|
// data label box for alignment
|
|
44319
44320
|
dlBox = point.dlBox || point.shapeArgs,
|
|
44320
44321
|
below = pick(point.below, // range series
|
|
44321
44322
|
point.plotY >
|
|
44322
44323
|
pick(this.translatedThreshold,
|
|
44323
|
-
|
|
44324
|
+
yLen)),
|
|
44324
44325
|
// draw it inside the box?
|
|
44325
44326
|
inside = pick(options.inside, !!this.options.stacking),
|
|
44326
44327
|
overshoot;
|
|
@@ -44333,14 +44334,14 @@
|
|
|
44333
44334
|
}
|
|
44334
44335
|
// If parts of the box overshoots outside the plot area, modify the
|
|
44335
44336
|
// box to center the label inside
|
|
44336
|
-
overshoot = alignTo.y + alignTo.height -
|
|
44337
|
+
overshoot = alignTo.y + alignTo.height - yLen;
|
|
44337
44338
|
if (overshoot > 0 && overshoot < alignTo.height) {
|
|
44338
44339
|
alignTo.height -= overshoot;
|
|
44339
44340
|
}
|
|
44340
44341
|
if (inverted) {
|
|
44341
44342
|
alignTo = {
|
|
44342
|
-
x:
|
|
44343
|
-
y:
|
|
44343
|
+
x: yLen - alignTo.y - alignTo.height,
|
|
44344
|
+
y: xLen - alignTo.x - alignTo.width,
|
|
44344
44345
|
width: alignTo.height,
|
|
44345
44346
|
height: alignTo.width
|
|
44346
44347
|
};
|
|
@@ -44879,7 +44880,7 @@
|
|
|
44879
44880
|
|
|
44880
44881
|
return ScatterSeries;
|
|
44881
44882
|
});
|
|
44882
|
-
_registerModule(_modules, '
|
|
44883
|
+
_registerModule(_modules, 'Series/CenteredUtilities.js', [_modules['Core/Globals.js'], _modules['Core/Series/Series.js'], _modules['Core/Utilities.js']], function (H, Series, U) {
|
|
44883
44884
|
/* *
|
|
44884
44885
|
*
|
|
44885
44886
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -44889,63 +44890,60 @@
|
|
|
44889
44890
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
44890
44891
|
*
|
|
44891
44892
|
* */
|
|
44892
|
-
|
|
44893
|
-
* @private
|
|
44894
|
-
* @interface Highcharts.RadianAngles
|
|
44895
|
-
*/ /**
|
|
44896
|
-
* @name Highcharts.RadianAngles#end
|
|
44897
|
-
* @type {number}
|
|
44898
|
-
*/ /**
|
|
44899
|
-
* @name Highcharts.RadianAngles#start
|
|
44900
|
-
* @type {number}
|
|
44901
|
-
*/
|
|
44893
|
+
var deg2rad = H.deg2rad;
|
|
44902
44894
|
var isNumber = U.isNumber,
|
|
44903
44895
|
pick = U.pick,
|
|
44904
44896
|
relativeLength = U.relativeLength;
|
|
44905
|
-
var deg2rad = H.deg2rad;
|
|
44906
|
-
/* eslint-disable valid-jsdoc */
|
|
44907
44897
|
/**
|
|
44908
44898
|
* @private
|
|
44909
|
-
* @mixin Highcharts.CenteredSeriesMixin
|
|
44910
44899
|
*/
|
|
44911
|
-
var
|
|
44912
|
-
|
|
44913
|
-
|
|
44914
|
-
|
|
44915
|
-
|
|
44916
|
-
|
|
44917
|
-
|
|
44918
|
-
|
|
44919
|
-
|
|
44920
|
-
|
|
44921
|
-
|
|
44922
|
-
|
|
44923
|
-
|
|
44924
|
-
|
|
44925
|
-
|
|
44926
|
-
|
|
44927
|
-
|
|
44928
|
-
|
|
44929
|
-
|
|
44930
|
-
|
|
44931
|
-
|
|
44932
|
-
|
|
44933
|
-
|
|
44934
|
-
|
|
44935
|
-
|
|
44900
|
+
var CenteredUtilities;
|
|
44901
|
+
(function (CenteredUtilities) {
|
|
44902
|
+
/* *
|
|
44903
|
+
*
|
|
44904
|
+
* Declarations
|
|
44905
|
+
*
|
|
44906
|
+
* */
|
|
44907
|
+
/* *
|
|
44908
|
+
*
|
|
44909
|
+
* Functions
|
|
44910
|
+
*
|
|
44911
|
+
* */
|
|
44912
|
+
/* eslint-disable valid-jsdoc */
|
|
44913
|
+
/**
|
|
44914
|
+
* Get the center of the pie based on the size and center options relative
|
|
44915
|
+
* to the plot area. Borrowed by the polar and gauge series types.
|
|
44916
|
+
*
|
|
44917
|
+
* @private
|
|
44918
|
+
* @function Highcharts.CenteredSeriesMixin.getCenter
|
|
44919
|
+
*/
|
|
44920
|
+
function getCenter() {
|
|
44921
|
+
var options = this.options,
|
|
44922
|
+
chart = this.chart,
|
|
44923
|
+
slicingRoom = 2 * (options.slicedOffset || 0),
|
|
44924
|
+
plotWidth = chart.plotWidth - 2 * slicingRoom,
|
|
44925
|
+
plotHeight = chart.plotHeight - 2 * slicingRoom,
|
|
44926
|
+
centerOption = options.center,
|
|
44927
|
+
smallestSize = Math.min(plotWidth,
|
|
44928
|
+
plotHeight);
|
|
44929
|
+
var handleSlicingRoom,
|
|
44930
|
+
size = options.size,
|
|
44931
|
+
innerSize = options.innerSize || 0,
|
|
44932
|
+
i,
|
|
44933
|
+
value;
|
|
44936
44934
|
if (typeof size === 'string') {
|
|
44937
44935
|
size = parseFloat(size);
|
|
44938
44936
|
}
|
|
44939
44937
|
if (typeof innerSize === 'string') {
|
|
44940
44938
|
innerSize = parseFloat(innerSize);
|
|
44941
44939
|
}
|
|
44942
|
-
positions = [
|
|
44943
|
-
|
|
44944
|
-
|
|
44945
|
-
|
|
44946
|
-
|
|
44947
|
-
|
|
44948
|
-
|
|
44940
|
+
var positions = [
|
|
44941
|
+
pick(centerOption[0], '50%'),
|
|
44942
|
+
pick(centerOption[1], '50%'),
|
|
44943
|
+
// Prevent from negative values
|
|
44944
|
+
pick(size && size < 0 ? void 0 : options.size, '100%'),
|
|
44945
|
+
pick(innerSize && innerSize < 0 ? void 0 : options.innerSize || 0, '0%')
|
|
44946
|
+
];
|
|
44949
44947
|
// No need for inner size in angular (gauges) series but still required
|
|
44950
44948
|
// for pie series
|
|
44951
44949
|
if (chart.angular && !(this instanceof Series)) {
|
|
@@ -44965,7 +44963,8 @@
|
|
|
44965
44963
|
positions[3] = positions[2];
|
|
44966
44964
|
}
|
|
44967
44965
|
return positions;
|
|
44968
|
-
}
|
|
44966
|
+
}
|
|
44967
|
+
CenteredUtilities.getCenter = getCenter;
|
|
44969
44968
|
/**
|
|
44970
44969
|
* getStartAndEndRadians - Calculates start and end angles in radians.
|
|
44971
44970
|
* Used in series types such as pie and sunburst.
|
|
@@ -44982,7 +44981,7 @@
|
|
|
44982
44981
|
* @return {Highcharts.RadianAngles}
|
|
44983
44982
|
* Returns an object containing start and end angles as radians.
|
|
44984
44983
|
*/
|
|
44985
|
-
|
|
44984
|
+
function getStartAndEndRadians(start, end) {
|
|
44986
44985
|
var startAngle = isNumber(start) ? start : 0, // must be a number
|
|
44987
44986
|
endAngle = ((isNumber(end) && // must be a number
|
|
44988
44987
|
end > startAngle && // must be larger than the start angle
|
|
@@ -44996,9 +44995,31 @@
|
|
|
44996
44995
|
end: deg2rad * (endAngle + correction)
|
|
44997
44996
|
};
|
|
44998
44997
|
}
|
|
44999
|
-
|
|
44998
|
+
CenteredUtilities.getStartAndEndRadians = getStartAndEndRadians;
|
|
44999
|
+
})(CenteredUtilities || (CenteredUtilities = {}));
|
|
45000
|
+
/* *
|
|
45001
|
+
*
|
|
45002
|
+
* Default Export
|
|
45003
|
+
*
|
|
45004
|
+
* */
|
|
45005
|
+
/* *
|
|
45006
|
+
*
|
|
45007
|
+
* API Declarations
|
|
45008
|
+
*
|
|
45009
|
+
* */
|
|
45010
|
+
/**
|
|
45011
|
+
* @private
|
|
45012
|
+
* @interface Highcharts.RadianAngles
|
|
45013
|
+
*/ /**
|
|
45014
|
+
* @name Highcharts.RadianAngles#end
|
|
45015
|
+
* @type {number}
|
|
45016
|
+
*/ /**
|
|
45017
|
+
* @name Highcharts.RadianAngles#start
|
|
45018
|
+
* @type {number}
|
|
45019
|
+
*/
|
|
45020
|
+
''; // keeps doclets above in JS file
|
|
45000
45021
|
|
|
45001
|
-
return
|
|
45022
|
+
return CenteredUtilities;
|
|
45002
45023
|
});
|
|
45003
45024
|
_registerModule(_modules, 'Series/Pie/PiePoint.js', [_modules['Core/Animation/AnimationUtilities.js'], _modules['Core/Series/Point.js'], _modules['Core/Utilities.js']], function (A, Point, U) {
|
|
45004
45025
|
/* *
|
|
@@ -45296,7 +45317,7 @@
|
|
|
45296
45317
|
|
|
45297
45318
|
return PiePoint;
|
|
45298
45319
|
});
|
|
45299
|
-
_registerModule(_modules, 'Series/Pie/PieSeries.js', [_modules['
|
|
45320
|
+
_registerModule(_modules, 'Series/Pie/PieSeries.js', [_modules['Series/CenteredUtilities.js'], _modules['Series/Column/ColumnSeries.js'], _modules['Core/Globals.js'], _modules['Core/Legend/LegendSymbol.js'], _modules['Series/Pie/PiePoint.js'], _modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Renderer/SVG/Symbols.js'], _modules['Core/Utilities.js']], function (CU, ColumnSeries, H, LegendSymbol, PiePoint, Series, SeriesRegistry, Symbols, U) {
|
|
45300
45321
|
/* *
|
|
45301
45322
|
*
|
|
45302
45323
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -45322,7 +45343,7 @@
|
|
|
45322
45343
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45323
45344
|
};
|
|
45324
45345
|
})();
|
|
45325
|
-
var getStartAndEndRadians =
|
|
45346
|
+
var getStartAndEndRadians = CU.getStartAndEndRadians;
|
|
45326
45347
|
var noop = H.noop;
|
|
45327
45348
|
var clamp = U.clamp,
|
|
45328
45349
|
extend = U.extend,
|
|
@@ -45437,7 +45458,7 @@
|
|
|
45437
45458
|
this.graph.attr({
|
|
45438
45459
|
'stroke-width': options.borderWidth,
|
|
45439
45460
|
fill: options.fillColor || 'none',
|
|
45440
|
-
stroke: options.color ||
|
|
45461
|
+
stroke: options.color || "#cccccc" /* neutralColor20 */
|
|
45441
45462
|
});
|
|
45442
45463
|
}
|
|
45443
45464
|
}
|
|
@@ -45836,7 +45857,7 @@
|
|
|
45836
45857
|
* Empty pie series
|
|
45837
45858
|
*
|
|
45838
45859
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
45839
|
-
* @default
|
|
45860
|
+
* @default #cccccc
|
|
45840
45861
|
* @apioption plotOptions.pie.color
|
|
45841
45862
|
*/
|
|
45842
45863
|
/**
|
|
@@ -46237,7 +46258,7 @@
|
|
|
46237
46258
|
*
|
|
46238
46259
|
* @private
|
|
46239
46260
|
*/
|
|
46240
|
-
borderColor:
|
|
46261
|
+
borderColor: "#ffffff" /* backgroundColor */,
|
|
46241
46262
|
/**
|
|
46242
46263
|
* The width of the border surrounding each slice.
|
|
46243
46264
|
*
|
|
@@ -46294,7 +46315,7 @@
|
|
|
46294
46315
|
drawGraph: void 0,
|
|
46295
46316
|
drawLegendSymbol: LegendSymbol.drawRectangle,
|
|
46296
46317
|
drawTracker: ColumnSeries.prototype.drawTracker,
|
|
46297
|
-
getCenter:
|
|
46318
|
+
getCenter: CU.getCenter,
|
|
46298
46319
|
getSymbol: noop,
|
|
46299
46320
|
isCartesian: false,
|
|
46300
46321
|
noSharedTooltip: true,
|
|
@@ -46406,7 +46427,7 @@
|
|
|
46406
46427
|
|
|
46407
46428
|
return PieSeries;
|
|
46408
46429
|
});
|
|
46409
|
-
_registerModule(_modules, 'Series/Pie/PieDataLabel.js', [_modules['Core/Series/DataLabel.js'], _modules['Core/Globals.js'], _modules['Core/
|
|
46430
|
+
_registerModule(_modules, 'Series/Pie/PieDataLabel.js', [_modules['Core/Series/DataLabel.js'], _modules['Core/Globals.js'], _modules['Core/Renderer/RendererUtilities.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (DataLabel, H, R, SeriesRegistry, U) {
|
|
46410
46431
|
/* *
|
|
46411
46432
|
*
|
|
46412
46433
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -46768,7 +46789,7 @@
|
|
|
46768
46789
|
'stroke-width': connectorWidth,
|
|
46769
46790
|
'stroke': (pointDataLabelsOptions.connectorColor ||
|
|
46770
46791
|
point.color ||
|
|
46771
|
-
|
|
46792
|
+
"#666666" /* neutralColor60 */)
|
|
46772
46793
|
});
|
|
46773
46794
|
}
|
|
46774
46795
|
}
|
|
@@ -47761,6 +47782,7 @@
|
|
|
47761
47782
|
return XRangePoint;
|
|
47762
47783
|
}(ColumnSeries.prototype.pointClass));
|
|
47763
47784
|
extend(XRangePoint.prototype, {
|
|
47785
|
+
ttBelow: false,
|
|
47764
47786
|
tooltipDateKeys: ['x', 'x2']
|
|
47765
47787
|
});
|
|
47766
47788
|
/* *
|
|
@@ -50516,7 +50538,7 @@
|
|
|
50516
50538
|
|
|
50517
50539
|
return Tree;
|
|
50518
50540
|
});
|
|
50519
|
-
_registerModule(_modules, 'Core/Axis/TreeGridTick.js', [_modules['Core/
|
|
50541
|
+
_registerModule(_modules, 'Core/Axis/TreeGridTick.js', [_modules['Core/Utilities.js']], function (U) {
|
|
50520
50542
|
/* *
|
|
50521
50543
|
*
|
|
50522
50544
|
* (c) 2016 Highsoft AS
|
|
@@ -50637,7 +50659,7 @@
|
|
|
50637
50659
|
icon
|
|
50638
50660
|
.attr({
|
|
50639
50661
|
cursor: 'pointer',
|
|
50640
|
-
'fill': pick(params.color,
|
|
50662
|
+
'fill': pick(params.color, "#666666" /* neutralColor60 */),
|
|
50641
50663
|
'stroke-width': 1,
|
|
50642
50664
|
stroke: options.lineColor,
|
|
50643
50665
|
strokeWidth: options.lineWidth || 0
|
|
@@ -50866,8 +50888,14 @@
|
|
|
50866
50888
|
|
|
50867
50889
|
return TreeGridTick;
|
|
50868
50890
|
});
|
|
50869
|
-
_registerModule(_modules, '
|
|
50891
|
+
_registerModule(_modules, 'Series/TreeUtilities.js', [_modules['Core/Color/Color.js'], _modules['Core/Utilities.js']], function (Color, U) {
|
|
50870
50892
|
/* *
|
|
50893
|
+
*
|
|
50894
|
+
* (c) 2014-2021 Highsoft AS
|
|
50895
|
+
*
|
|
50896
|
+
* Authors: Jon Arild Nygard / Oystein Moseng
|
|
50897
|
+
*
|
|
50898
|
+
* License: www.highcharts.com/license
|
|
50871
50899
|
*
|
|
50872
50900
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
50873
50901
|
*
|
|
@@ -50878,96 +50906,45 @@
|
|
|
50878
50906
|
isObject = U.isObject,
|
|
50879
50907
|
merge = U.merge,
|
|
50880
50908
|
pick = U.pick;
|
|
50881
|
-
|
|
50882
|
-
|
|
50883
|
-
|
|
50884
|
-
|
|
50885
|
-
|
|
50909
|
+
/* *
|
|
50910
|
+
*
|
|
50911
|
+
* Functions
|
|
50912
|
+
*
|
|
50913
|
+
* */
|
|
50886
50914
|
/* eslint-disable valid-jsdoc */
|
|
50887
50915
|
/**
|
|
50888
|
-
* @todo Combine buildTree and buildNode with setTreeValues
|
|
50889
|
-
* @todo Remove logic from Treemap and make it utilize this mixin.
|
|
50890
50916
|
* @private
|
|
50891
50917
|
*/
|
|
50892
|
-
|
|
50893
|
-
options
|
|
50894
|
-
|
|
50895
|
-
|
|
50896
|
-
|
|
50897
|
-
|
|
50898
|
-
|
|
50899
|
-
|
|
50900
|
-
|
|
50901
|
-
|
|
50902
|
-
|
|
50903
|
-
|
|
50904
|
-
|
|
50905
|
-
|
|
50906
|
-
|
|
50907
|
-
|
|
50908
|
-
|
|
50909
|
-
|
|
50910
|
-
|
|
50911
|
-
|
|
50912
|
-
|
|
50913
|
-
|
|
50914
|
-
|
|
50915
|
-
|
|
50916
|
-
|
|
50917
|
-
|
|
50918
|
-
|
|
50919
|
-
index: i,
|
|
50920
|
-
siblings: tree.children.length,
|
|
50921
|
-
visible: tree.visible
|
|
50922
|
-
});
|
|
50923
|
-
child = setTreeValues(child, newOptions);
|
|
50924
|
-
children.push(child);
|
|
50925
|
-
if (child.visible) {
|
|
50926
|
-
childrenTotal += child.val;
|
|
50927
|
-
}
|
|
50928
|
-
});
|
|
50929
|
-
// Set the values
|
|
50930
|
-
value = pick(optionsPoint.value, childrenTotal);
|
|
50931
|
-
tree.visible = value >= 0 && (childrenTotal > 0 || tree.visible);
|
|
50932
|
-
tree.children = children;
|
|
50933
|
-
tree.childrenTotal = childrenTotal;
|
|
50934
|
-
tree.isLeaf = tree.visible && !childrenTotal;
|
|
50935
|
-
tree.val = value;
|
|
50936
|
-
return tree;
|
|
50937
|
-
};
|
|
50938
|
-
/**
|
|
50939
|
-
* @private
|
|
50940
|
-
*/
|
|
50941
|
-
var getColor = function getColor(node,
|
|
50942
|
-
options) {
|
|
50943
|
-
var index = options.index,
|
|
50944
|
-
mapOptionsToLevel = options.mapOptionsToLevel,
|
|
50945
|
-
parentColor = options.parentColor,
|
|
50946
|
-
parentColorIndex = options.parentColorIndex,
|
|
50947
|
-
series = options.series,
|
|
50948
|
-
colors = options.colors,
|
|
50949
|
-
siblings = options.siblings,
|
|
50950
|
-
points = series.points,
|
|
50951
|
-
getColorByPoint,
|
|
50952
|
-
chartOptionsChart = series.chart.options.chart,
|
|
50953
|
-
point,
|
|
50954
|
-
level,
|
|
50955
|
-
colorByPoint,
|
|
50956
|
-
colorIndexByPoint,
|
|
50957
|
-
color,
|
|
50958
|
-
colorIndex;
|
|
50959
|
-
/**
|
|
50960
|
-
* @private
|
|
50961
|
-
*/
|
|
50962
|
-
function variation(color) {
|
|
50963
|
-
var colorVariation = level && level.colorVariation;
|
|
50964
|
-
if (colorVariation) {
|
|
50965
|
-
if (colorVariation.key === 'brightness') {
|
|
50966
|
-
return Color.parse(color).brighten(colorVariation.to * (index / siblings)).get();
|
|
50967
|
-
}
|
|
50918
|
+
function getColor(node, options) {
|
|
50919
|
+
var index = options.index,
|
|
50920
|
+
mapOptionsToLevel = options.mapOptionsToLevel,
|
|
50921
|
+
parentColor = options.parentColor,
|
|
50922
|
+
parentColorIndex = options.parentColorIndex,
|
|
50923
|
+
series = options.series,
|
|
50924
|
+
colors = options.colors,
|
|
50925
|
+
siblings = options.siblings,
|
|
50926
|
+
points = series.points,
|
|
50927
|
+
chartOptionsChart = series.chart.options.chart;
|
|
50928
|
+
var getColorByPoint,
|
|
50929
|
+
point,
|
|
50930
|
+
level,
|
|
50931
|
+
colorByPoint,
|
|
50932
|
+
colorIndexByPoint,
|
|
50933
|
+
color,
|
|
50934
|
+
colorIndex;
|
|
50935
|
+
/**
|
|
50936
|
+
* @private
|
|
50937
|
+
*/
|
|
50938
|
+
var variateColor = function (color) {
|
|
50939
|
+
var colorVariation = level && level.colorVariation;
|
|
50940
|
+
if (colorVariation &&
|
|
50941
|
+
colorVariation.key === 'brightness' &&
|
|
50942
|
+
index &&
|
|
50943
|
+
siblings) {
|
|
50944
|
+
return Color.parse(color).brighten(colorVariation.to * (index / siblings)).get();
|
|
50968
50945
|
}
|
|
50969
50946
|
return color;
|
|
50970
|
-
}
|
|
50947
|
+
};
|
|
50971
50948
|
if (node) {
|
|
50972
50949
|
point = points[node.i];
|
|
50973
50950
|
level = mapOptionsToLevel[node.level] || {};
|
|
@@ -50980,7 +50957,7 @@
|
|
|
50980
50957
|
}
|
|
50981
50958
|
// Select either point color, level color or inherited color.
|
|
50982
50959
|
if (!series.chart.styledMode) {
|
|
50983
|
-
color = pick(point && point.options.color, level && level.color, colorByPoint, parentColor &&
|
|
50960
|
+
color = pick(point && point.options.color, level && level.color, colorByPoint, parentColor && variateColor(parentColor), series.color);
|
|
50984
50961
|
}
|
|
50985
50962
|
colorIndex = pick(point && point.options.colorIndex, level && level.colorIndex, colorIndexByPoint, parentColorIndex, options.colorIndex);
|
|
50986
50963
|
}
|
|
@@ -50988,31 +50965,32 @@
|
|
|
50988
50965
|
color: color,
|
|
50989
50966
|
colorIndex: colorIndex
|
|
50990
50967
|
};
|
|
50991
|
-
}
|
|
50968
|
+
}
|
|
50992
50969
|
/**
|
|
50993
50970
|
* Creates a map from level number to its given options.
|
|
50994
50971
|
*
|
|
50995
50972
|
* @private
|
|
50996
|
-
*
|
|
50973
|
+
*
|
|
50997
50974
|
* @param {object} params
|
|
50998
|
-
*
|
|
50999
|
-
*
|
|
51000
|
-
*
|
|
51001
|
-
*
|
|
51002
|
-
*
|
|
51003
|
-
*
|
|
51004
|
-
*
|
|
50975
|
+
* Object containing parameters.
|
|
50976
|
+
* - `defaults` Object containing default options. The default options are
|
|
50977
|
+
* merged with the userOptions to get the final options for a specific
|
|
50978
|
+
* level.
|
|
50979
|
+
* - `from` The lowest level number.
|
|
50980
|
+
* - `levels` User options from series.levels.
|
|
50981
|
+
* - `to` The highest level number.
|
|
50982
|
+
*
|
|
51005
50983
|
* @return {Highcharts.Dictionary<object>|null}
|
|
51006
|
-
*
|
|
51007
|
-
*/
|
|
51008
|
-
|
|
51009
|
-
|
|
51010
|
-
|
|
51011
|
-
|
|
51012
|
-
|
|
51013
|
-
|
|
51014
|
-
|
|
51015
|
-
|
|
50984
|
+
* Returns a map from level number to its given options.
|
|
50985
|
+
*/
|
|
50986
|
+
function getLevelOptions(params) {
|
|
50987
|
+
var result = null,
|
|
50988
|
+
defaults,
|
|
50989
|
+
converted,
|
|
50990
|
+
i,
|
|
50991
|
+
from,
|
|
50992
|
+
to,
|
|
50993
|
+
levels;
|
|
51016
50994
|
if (isObject(params)) {
|
|
51017
50995
|
result = {};
|
|
51018
50996
|
from = isNumber(params.from) ? params.from : 1;
|
|
@@ -51026,16 +51004,14 @@
|
|
|
51026
51004
|
options;
|
|
51027
51005
|
if (isObject(item) && isNumber(item.level)) {
|
|
51028
51006
|
options = merge({}, item);
|
|
51029
|
-
levelIsConstant = (
|
|
51030
|
-
options.levelIsConstant :
|
|
51031
|
-
defaults.levelIsConstant);
|
|
51007
|
+
levelIsConstant = pick(options.levelIsConstant, defaults.levelIsConstant);
|
|
51032
51008
|
// Delete redundant properties.
|
|
51033
51009
|
delete options.levelIsConstant;
|
|
51034
51010
|
delete options.level;
|
|
51035
51011
|
// Calculate which level these options apply to.
|
|
51036
51012
|
level = item.level + (levelIsConstant ? 0 : from - 1);
|
|
51037
51013
|
if (isObject(obj[level])) {
|
|
51038
|
-
|
|
51014
|
+
merge(true, obj[level], options); // #16329
|
|
51039
51015
|
}
|
|
51040
51016
|
else {
|
|
51041
51017
|
obj[level] = options;
|
|
@@ -51050,23 +51026,70 @@
|
|
|
51050
51026
|
}
|
|
51051
51027
|
}
|
|
51052
51028
|
return result;
|
|
51053
|
-
}
|
|
51029
|
+
}
|
|
51030
|
+
/**
|
|
51031
|
+
* @private
|
|
51032
|
+
* @todo Combine buildTree and buildNode with setTreeValues
|
|
51033
|
+
* @todo Remove logic from Treemap and make it utilize this mixin.
|
|
51034
|
+
*/
|
|
51035
|
+
function setTreeValues(tree, options) {
|
|
51036
|
+
var before = options.before,
|
|
51037
|
+
idRoot = options.idRoot,
|
|
51038
|
+
mapIdToNode = options.mapIdToNode,
|
|
51039
|
+
nodeRoot = mapIdToNode[idRoot],
|
|
51040
|
+
levelIsConstant = (options.levelIsConstant !== false),
|
|
51041
|
+
points = options.points,
|
|
51042
|
+
point = points[tree.i],
|
|
51043
|
+
optionsPoint = point && point.options || {},
|
|
51044
|
+
children = [];
|
|
51045
|
+
var childrenTotal = 0;
|
|
51046
|
+
tree.levelDynamic = tree.level - (levelIsConstant ? 0 : nodeRoot.level);
|
|
51047
|
+
tree.name = pick(point && point.name, '');
|
|
51048
|
+
tree.visible = (idRoot === tree.id ||
|
|
51049
|
+
options.visible === true);
|
|
51050
|
+
if (typeof before === 'function') {
|
|
51051
|
+
tree = before(tree, options);
|
|
51052
|
+
}
|
|
51053
|
+
// First give the children some values
|
|
51054
|
+
tree.children.forEach(function (child, i) {
|
|
51055
|
+
var newOptions = extend({},
|
|
51056
|
+
options);
|
|
51057
|
+
extend(newOptions, {
|
|
51058
|
+
index: i,
|
|
51059
|
+
siblings: tree.children.length,
|
|
51060
|
+
visible: tree.visible
|
|
51061
|
+
});
|
|
51062
|
+
child = setTreeValues(child, newOptions);
|
|
51063
|
+
children.push(child);
|
|
51064
|
+
if (child.visible) {
|
|
51065
|
+
childrenTotal += child.val;
|
|
51066
|
+
}
|
|
51067
|
+
});
|
|
51068
|
+
// Set the values
|
|
51069
|
+
var value = pick(optionsPoint.value,
|
|
51070
|
+
childrenTotal);
|
|
51071
|
+
tree.visible = value >= 0 && (childrenTotal > 0 || tree.visible);
|
|
51072
|
+
tree.children = children;
|
|
51073
|
+
tree.childrenTotal = childrenTotal;
|
|
51074
|
+
tree.isLeaf = tree.visible && !childrenTotal;
|
|
51075
|
+
tree.val = value;
|
|
51076
|
+
return tree;
|
|
51077
|
+
}
|
|
51054
51078
|
/**
|
|
51055
51079
|
* Update the rootId property on the series. Also makes sure that it is
|
|
51056
51080
|
* accessible to exporting.
|
|
51057
51081
|
*
|
|
51058
51082
|
* @private
|
|
51059
|
-
* @function updateRootId
|
|
51060
51083
|
*
|
|
51061
51084
|
* @param {object} series
|
|
51062
|
-
*
|
|
51085
|
+
* The series to operate on.
|
|
51063
51086
|
*
|
|
51064
51087
|
* @return {string}
|
|
51065
|
-
*
|
|
51088
|
+
* Returns the resulting rootId after update.
|
|
51066
51089
|
*/
|
|
51067
|
-
|
|
51068
|
-
|
|
51069
|
-
|
|
51090
|
+
function updateRootId(series) {
|
|
51091
|
+
var rootId,
|
|
51092
|
+
options;
|
|
51070
51093
|
if (isObject(series)) {
|
|
51071
51094
|
// Get the series options.
|
|
51072
51095
|
options = isObject(series.options) ? series.options : {};
|
|
@@ -51080,17 +51103,22 @@
|
|
|
51080
51103
|
series.rootNode = rootId;
|
|
51081
51104
|
}
|
|
51082
51105
|
return rootId;
|
|
51083
|
-
}
|
|
51084
|
-
|
|
51106
|
+
}
|
|
51107
|
+
/* *
|
|
51108
|
+
*
|
|
51109
|
+
* Default Export
|
|
51110
|
+
*
|
|
51111
|
+
* */
|
|
51112
|
+
var TreeUtilities = {
|
|
51085
51113
|
getColor: getColor,
|
|
51086
51114
|
getLevelOptions: getLevelOptions,
|
|
51087
51115
|
setTreeValues: setTreeValues,
|
|
51088
51116
|
updateRootId: updateRootId
|
|
51089
51117
|
};
|
|
51090
51118
|
|
|
51091
|
-
return
|
|
51119
|
+
return TreeUtilities;
|
|
51092
51120
|
});
|
|
51093
|
-
_registerModule(_modules, 'Core/Axis/TreeGridAxis.js', [_modules['Core/Axis/BrokenAxis.js'], _modules['Core/Axis/GridAxis.js'], _modules['Gantt/Tree.js'], _modules['Core/Axis/TreeGridTick.js'], _modules['
|
|
51121
|
+
_registerModule(_modules, 'Core/Axis/TreeGridAxis.js', [_modules['Core/Axis/BrokenAxis.js'], _modules['Core/Axis/GridAxis.js'], _modules['Gantt/Tree.js'], _modules['Core/Axis/TreeGridTick.js'], _modules['Series/TreeUtilities.js'], _modules['Core/Utilities.js']], function (BrokenAxis, GridAxis, Tree, TreeGridTick, TU, U) {
|
|
51094
51122
|
/* *
|
|
51095
51123
|
*
|
|
51096
51124
|
* (c) 2016 Highsoft AS
|
|
@@ -51101,7 +51129,7 @@
|
|
|
51101
51129
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
51102
51130
|
*
|
|
51103
51131
|
* */
|
|
51104
|
-
var getLevelOptions =
|
|
51132
|
+
var getLevelOptions = TU.getLevelOptions;
|
|
51105
51133
|
var addEvent = U.addEvent,
|
|
51106
51134
|
find = U.find,
|
|
51107
51135
|
fireEvent = U.fireEvent,
|
|
@@ -51852,7 +51880,7 @@
|
|
|
51852
51880
|
|
|
51853
51881
|
return TreeGridAxis;
|
|
51854
51882
|
});
|
|
51855
|
-
_registerModule(_modules, 'Extensions/CurrentDateIndication.js', [_modules['Core/Axis/Axis.js'], _modules['Core/
|
|
51883
|
+
_registerModule(_modules, 'Extensions/CurrentDateIndication.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Axis/PlotLineOrBand/PlotLineOrBand.js'], _modules['Core/Utilities.js']], function (Axis, PlotLineOrBand, U) {
|
|
51856
51884
|
/* *
|
|
51857
51885
|
*
|
|
51858
51886
|
* (c) 2016-2021 Highsoft AS
|
|
@@ -51886,7 +51914,7 @@
|
|
|
51886
51914
|
* @apioption xAxis.currentDateIndicator
|
|
51887
51915
|
*/
|
|
51888
51916
|
var defaultOptions = {
|
|
51889
|
-
color:
|
|
51917
|
+
color: "#ccd6eb" /* highlightColor20 */,
|
|
51890
51918
|
width: 2,
|
|
51891
51919
|
/**
|
|
51892
51920
|
* @declare Highcharts.AxisCurrentDateIndicatorLabelOptions
|
|
@@ -51894,7 +51922,7 @@
|
|
|
51894
51922
|
label: {
|
|
51895
51923
|
/**
|
|
51896
51924
|
* Format of the label. This options is passed as the fist argument to
|
|
51897
|
-
* [dateFormat](/class-reference/Highcharts
|
|
51925
|
+
* [dateFormat](/class-reference/Highcharts.Time#dateFormat) function.
|
|
51898
51926
|
*
|
|
51899
51927
|
* @type {string}
|
|
51900
51928
|
* @default %a, %b %d %Y, %H:%M
|
|
@@ -54911,8 +54939,6 @@
|
|
|
54911
54939
|
return GanttSeries;
|
|
54912
54940
|
}(XRangeSeries));
|
|
54913
54941
|
extend(GanttSeries.prototype, {
|
|
54914
|
-
// Keyboard navigation, don't use nearest vertical mode
|
|
54915
|
-
keyboardMoveVertical: false,
|
|
54916
54942
|
pointArrayMap: ['start', 'end', 'y'],
|
|
54917
54943
|
pointClass: GanttPoint,
|
|
54918
54944
|
setData: Series.prototype.setData
|
|
@@ -55384,8 +55410,15 @@
|
|
|
55384
55410
|
if (axis.opposite) {
|
|
55385
55411
|
scrollbarsOffsets[0] += offset;
|
|
55386
55412
|
}
|
|
55387
|
-
|
|
55388
|
-
|
|
55413
|
+
var xPosition = void 0;
|
|
55414
|
+
if (!scrollbar.options.opposite) {
|
|
55415
|
+
xPosition = axis.opposite ? 0 : axisMargin;
|
|
55416
|
+
}
|
|
55417
|
+
else {
|
|
55418
|
+
xPosition = axis.left + axis.width + 2 + scrollbarsOffsets[0] -
|
|
55419
|
+
(axis.opposite ? 0 : axisMargin);
|
|
55420
|
+
}
|
|
55421
|
+
scrollbar.position(xPosition, axis.top, axis.width, axis.height);
|
|
55389
55422
|
// Next scrollbar should reserve space for margin (if set)
|
|
55390
55423
|
if (axis.opposite) {
|
|
55391
55424
|
scrollbarsOffsets[0] += axisMargin;
|
|
@@ -55424,7 +55457,8 @@
|
|
|
55424
55457
|
// Make space for a scrollbar:
|
|
55425
55458
|
addEvent(AxisClass, 'afterGetOffset', function () {
|
|
55426
55459
|
var axis = this,
|
|
55427
|
-
|
|
55460
|
+
opposite = axis.scrollbar && !axis.scrollbar.options.opposite,
|
|
55461
|
+
index = axis.horiz ? 2 : opposite ? 3 : 1,
|
|
55428
55462
|
scrollbar = axis.scrollbar;
|
|
55429
55463
|
if (scrollbar) {
|
|
55430
55464
|
axis.chart.scrollbarsOffsets = [0, 0]; // reset scrollbars offsets
|
|
@@ -55440,7 +55474,7 @@
|
|
|
55440
55474
|
|
|
55441
55475
|
return ScrollbarAxis;
|
|
55442
55476
|
});
|
|
55443
|
-
_registerModule(_modules, 'Core/ScrollbarDefaults.js', [_modules['Core/Globals.js']
|
|
55477
|
+
_registerModule(_modules, 'Core/ScrollbarDefaults.js', [_modules['Core/Globals.js']], function (H) {
|
|
55444
55478
|
/* *
|
|
55445
55479
|
*
|
|
55446
55480
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -55539,6 +55573,8 @@
|
|
|
55539
55573
|
* @since 1.2.5
|
|
55540
55574
|
*/
|
|
55541
55575
|
minWidth: 6,
|
|
55576
|
+
/** @ignore-option */
|
|
55577
|
+
opposite: true,
|
|
55542
55578
|
/**
|
|
55543
55579
|
* Whether to show or hide the scrollbar when the scrolled content is
|
|
55544
55580
|
* zoomed out to it full extent.
|
|
@@ -55560,7 +55596,7 @@
|
|
|
55560
55596
|
*
|
|
55561
55597
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
55562
55598
|
*/
|
|
55563
|
-
barBackgroundColor:
|
|
55599
|
+
barBackgroundColor: "#cccccc" /* neutralColor20 */,
|
|
55564
55600
|
/**
|
|
55565
55601
|
* The width of the bar's border.
|
|
55566
55602
|
*
|
|
@@ -55573,7 +55609,7 @@
|
|
|
55573
55609
|
*
|
|
55574
55610
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
55575
55611
|
*/
|
|
55576
|
-
barBorderColor:
|
|
55612
|
+
barBorderColor: "#cccccc" /* neutralColor20 */,
|
|
55577
55613
|
/**
|
|
55578
55614
|
* The color of the small arrow inside the scrollbar buttons.
|
|
55579
55615
|
*
|
|
@@ -55582,7 +55618,7 @@
|
|
|
55582
55618
|
*
|
|
55583
55619
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
55584
55620
|
*/
|
|
55585
|
-
buttonArrowColor:
|
|
55621
|
+
buttonArrowColor: "#333333" /* neutralColor80 */,
|
|
55586
55622
|
/**
|
|
55587
55623
|
* The color of scrollbar buttons.
|
|
55588
55624
|
*
|
|
@@ -55591,7 +55627,7 @@
|
|
|
55591
55627
|
*
|
|
55592
55628
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
55593
55629
|
*/
|
|
55594
|
-
buttonBackgroundColor:
|
|
55630
|
+
buttonBackgroundColor: "#e6e6e6" /* neutralColor10 */,
|
|
55595
55631
|
/**
|
|
55596
55632
|
* The color of the border of the scrollbar buttons.
|
|
55597
55633
|
*
|
|
@@ -55600,7 +55636,7 @@
|
|
|
55600
55636
|
*
|
|
55601
55637
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
55602
55638
|
*/
|
|
55603
|
-
buttonBorderColor:
|
|
55639
|
+
buttonBorderColor: "#cccccc" /* neutralColor20 */,
|
|
55604
55640
|
/**
|
|
55605
55641
|
* The border width of the scrollbar buttons.
|
|
55606
55642
|
*
|
|
@@ -55613,7 +55649,7 @@
|
|
|
55613
55649
|
*
|
|
55614
55650
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
55615
55651
|
*/
|
|
55616
|
-
rifleColor:
|
|
55652
|
+
rifleColor: "#333333" /* neutralColor80 */,
|
|
55617
55653
|
/**
|
|
55618
55654
|
* The color of the track background.
|
|
55619
55655
|
*
|
|
@@ -55622,7 +55658,7 @@
|
|
|
55622
55658
|
*
|
|
55623
55659
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
55624
55660
|
*/
|
|
55625
|
-
trackBackgroundColor:
|
|
55661
|
+
trackBackgroundColor: "#f2f2f2" /* neutralColor5 */,
|
|
55626
55662
|
/**
|
|
55627
55663
|
* The color of the border of the scrollbar track.
|
|
55628
55664
|
*
|
|
@@ -55631,7 +55667,7 @@
|
|
|
55631
55667
|
*
|
|
55632
55668
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
55633
55669
|
*/
|
|
55634
|
-
trackBorderColor:
|
|
55670
|
+
trackBorderColor: "#f2f2f2" /* neutralColor5 */,
|
|
55635
55671
|
/**
|
|
55636
55672
|
* The corner radius of the border of the scrollbar track.
|
|
55637
55673
|
*
|
|
@@ -56364,7 +56400,7 @@
|
|
|
56364
56400
|
|
|
56365
56401
|
return Scrollbar;
|
|
56366
56402
|
});
|
|
56367
|
-
_registerModule(_modules, 'Extensions/RangeSelector.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Chart/Chart.js'], _modules['Core/Globals.js'], _modules['Core/DefaultOptions.js'], _modules['Core/
|
|
56403
|
+
_registerModule(_modules, 'Extensions/RangeSelector.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Chart/Chart.js'], _modules['Core/Globals.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Renderer/SVG/SVGElement.js'], _modules['Core/Utilities.js']], function (Axis, Chart, H, D, SVGElement, U) {
|
|
56368
56404
|
/* *
|
|
56369
56405
|
*
|
|
56370
56406
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -56854,7 +56890,7 @@
|
|
|
56854
56890
|
*/
|
|
56855
56891
|
inputStyle: {
|
|
56856
56892
|
/** @ignore */
|
|
56857
|
-
color:
|
|
56893
|
+
color: "#335cad" /* highlightColor80 */,
|
|
56858
56894
|
/** @ignore */
|
|
56859
56895
|
cursor: 'pointer'
|
|
56860
56896
|
},
|
|
@@ -56871,7 +56907,7 @@
|
|
|
56871
56907
|
*/
|
|
56872
56908
|
labelStyle: {
|
|
56873
56909
|
/** @ignore */
|
|
56874
|
-
color:
|
|
56910
|
+
color: "#666666" /* neutralColor60 */
|
|
56875
56911
|
}
|
|
56876
56912
|
}
|
|
56877
56913
|
});
|
|
@@ -57574,7 +57610,7 @@
|
|
|
57574
57610
|
// Styles
|
|
57575
57611
|
label.css(merge(chartStyle, options.labelStyle));
|
|
57576
57612
|
dateBox.css(merge({
|
|
57577
|
-
color:
|
|
57613
|
+
color: "#333333" /* neutralColor80 */
|
|
57578
57614
|
}, chartStyle, options.inputStyle));
|
|
57579
57615
|
css(input, extend({
|
|
57580
57616
|
position: 'absolute',
|
|
@@ -58933,7 +58969,7 @@
|
|
|
58933
58969
|
|
|
58934
58970
|
return NavigatorAxis;
|
|
58935
58971
|
});
|
|
58936
|
-
_registerModule(_modules, 'Core/Navigator.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Chart/Chart.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Axis/NavigatorAxis.js'], _modules['Core/DefaultOptions.js'], _modules['Core/
|
|
58972
|
+
_registerModule(_modules, 'Core/Navigator.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Chart/Chart.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Core/Axis/NavigatorAxis.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Renderer/RendererRegistry.js'], _modules['Core/Scrollbar.js'], _modules['Core/Series/Series.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (Axis, Chart, Color, H, NavigatorAxis, D, RendererRegistry, Scrollbar, Series, SeriesRegistry, U) {
|
|
58937
58973
|
/* *
|
|
58938
58974
|
*
|
|
58939
58975
|
* (c) 2010-2021 Torstein Honsi
|
|
@@ -59141,13 +59177,13 @@
|
|
|
59141
59177
|
*
|
|
59142
59178
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
59143
59179
|
*/
|
|
59144
|
-
backgroundColor:
|
|
59180
|
+
backgroundColor: "#f2f2f2" /* neutralColor5 */,
|
|
59145
59181
|
/**
|
|
59146
59182
|
* The stroke for the handle border and the stripes inside.
|
|
59147
59183
|
*
|
|
59148
59184
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
59149
59185
|
*/
|
|
59150
|
-
borderColor:
|
|
59186
|
+
borderColor: "#999999" /* neutralColor40 */
|
|
59151
59187
|
},
|
|
59152
59188
|
/**
|
|
59153
59189
|
* The color of the mask covering the areas of the navigator series
|
|
@@ -59164,7 +59200,7 @@
|
|
|
59164
59200
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
59165
59201
|
* @default rgba(102,133,194,0.3)
|
|
59166
59202
|
*/
|
|
59167
|
-
maskFill: color(
|
|
59203
|
+
maskFill: color("#6685c2" /* highlightColor60 */).setOpacity(0.3).get(),
|
|
59168
59204
|
/**
|
|
59169
59205
|
* The color of the line marking the currently zoomed area in the
|
|
59170
59206
|
* navigator.
|
|
@@ -59175,7 +59211,7 @@
|
|
|
59175
59211
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
59176
59212
|
* @default #cccccc
|
|
59177
59213
|
*/
|
|
59178
|
-
outlineColor:
|
|
59214
|
+
outlineColor: "#cccccc" /* neutralColor20 */,
|
|
59179
59215
|
/**
|
|
59180
59216
|
* The width of the line marking the currently zoomed area in the
|
|
59181
59217
|
* navigator.
|
|
@@ -59366,7 +59402,7 @@
|
|
|
59366
59402
|
className: 'highcharts-navigator-xaxis',
|
|
59367
59403
|
tickLength: 0,
|
|
59368
59404
|
lineWidth: 0,
|
|
59369
|
-
gridLineColor:
|
|
59405
|
+
gridLineColor: "#e6e6e6" /* neutralColor10 */,
|
|
59370
59406
|
gridLineWidth: 1,
|
|
59371
59407
|
tickPixelInterval: 200,
|
|
59372
59408
|
labels: {
|
|
@@ -59376,7 +59412,7 @@
|
|
|
59376
59412
|
*/
|
|
59377
59413
|
style: {
|
|
59378
59414
|
/** @ignore */
|
|
59379
|
-
color:
|
|
59415
|
+
color: "#999999" /* neutralColor40 */
|
|
59380
59416
|
},
|
|
59381
59417
|
x: 3,
|
|
59382
59418
|
y: -4
|
|
@@ -60803,7 +60839,7 @@
|
|
|
60803
60839
|
// If range declared, stick to the minimum only if the range
|
|
60804
60840
|
// is smaller than the data set range.
|
|
60805
60841
|
if (range && max - xDataMin > 0) {
|
|
60806
|
-
stickToMin = max - xDataMin < range
|
|
60842
|
+
stickToMin = max - xDataMin < range;
|
|
60807
60843
|
}
|
|
60808
60844
|
else {
|
|
60809
60845
|
// If the current axis minimum falls outside the new
|