highcharts 9.3.1 → 9.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/annotations/popup.css +1 -1
- package/css/highcharts.css +2 -2
- package/css/highcharts.scss +1 -1
- package/css/stocktools/gui.css +1 -1
- package/css/themes/dark-unica.css +2 -2
- package/css/themes/grid-light.css +2 -2
- package/css/themes/sand-signika.css +2 -2
- package/es-modules/Accessibility/A11yI18n.js +1 -5
- package/es-modules/Accessibility/Accessibility.js +11 -5
- package/es-modules/Accessibility/AccessibilityComponent.js +1 -1
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +9 -5
- package/es-modules/Accessibility/Components/ContainerComponent.js +1 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +8 -19
- package/es-modules/Accessibility/Components/LegendComponent.js +176 -86
- package/es-modules/Accessibility/Components/MenuComponent.js +1 -10
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +10 -13
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +15 -6
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +8 -4
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -41
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +20 -31
- package/es-modules/Accessibility/Components/ZoomComponent.js +135 -57
- package/es-modules/Accessibility/FocusBorder.js +0 -5
- package/es-modules/Accessibility/HighContrastMode.js +2 -1
- package/es-modules/Accessibility/KeyboardNavigation.js +5 -4
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -5
- package/es-modules/Accessibility/Options/LangOptions.js +3 -3
- package/es-modules/Accessibility/ProxyElement.js +12 -6
- package/es-modules/Accessibility/ProxyProvider.js +0 -3
- package/es-modules/Accessibility/Utils/Announcer.js +2 -2
- package/es-modules/Accessibility/Utils/ChartUtilities.js +17 -32
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +0 -12
- package/es-modules/Core/Animation/Fx.js +5 -14
- package/es-modules/Core/Axis/Axis.js +42 -68
- package/es-modules/Core/Axis/Axis3D.js +10 -4
- package/es-modules/Core/Axis/BrokenAxis.js +17 -11
- package/es-modules/Core/Axis/Color/ColorAxis.js +7 -4
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -3
- package/es-modules/Core/Axis/DateTimeAxis.js +3 -14
- package/es-modules/Core/Axis/GridAxis.js +26 -16
- package/es-modules/Core/Axis/NavigatorAxis.js +0 -5
- package/es-modules/Core/Axis/OrdinalAxis.js +83 -79
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +0 -5
- package/es-modules/Core/Axis/RadialAxis.js +7 -28
- package/es-modules/Core/Axis/ScrollbarAxis.js +18 -10
- package/es-modules/Core/Axis/StackingAxis.js +2 -1
- package/es-modules/Core/Axis/Tick.js +2 -4
- package/es-modules/Core/Axis/TreeGridAxis.js +26 -17
- package/es-modules/Core/Axis/TreeGridTick.js +4 -1
- package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
- package/es-modules/Core/Axis/ZAxis.js +1 -1
- package/es-modules/Core/Chart/Chart.js +42 -44
- package/es-modules/Core/Chart/Chart3D.js +23 -10
- package/es-modules/Core/Chart/GanttChart.js +4 -4
- package/es-modules/Core/Chart/MapChart.js +3 -3
- package/es-modules/Core/Chart/StockChart.js +10 -23
- package/es-modules/Core/DefaultOptions.js +3 -2
- package/es-modules/Core/Geometry/CircleUtilities.js +2 -1
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/HttpUtilities.js +5 -4
- package/es-modules/Core/Legend/Legend.js +12 -13
- package/es-modules/Core/Navigator.js +34 -22
- package/es-modules/Core/Pointer.js +13 -9
- package/es-modules/Core/Renderer/HTML/AST.js +27 -14
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +4 -2
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +8 -6
- package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGElement.js +8 -16
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +17 -8
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +5 -12
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +12 -5
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +16 -10
- package/es-modules/Core/Responsive.js +2 -3
- package/es-modules/Core/Scrollbar.js +14 -12
- package/es-modules/Core/Series/DataLabel.js +17 -12
- package/es-modules/Core/Series/Point.js +17 -16
- package/es-modules/Core/Series/Series.js +44 -73
- package/es-modules/Core/Series/SeriesDefaults.js +5 -4
- package/es-modules/Core/Time.js +14 -11
- package/es-modules/Core/Tooltip.js +19 -36
- package/es-modules/Core/Utilities.js +5 -17
- package/es-modules/Data/DataConverter.js +0 -6
- package/es-modules/Data/DataSeriesConverter.js +9 -5
- package/es-modules/Data/DataTable.js +2 -1
- package/es-modules/Data/Modifiers/DataModifier.js +1 -1
- package/es-modules/Data/Parsers/CSVParser.js +3 -2
- package/es-modules/Data/Parsers/GoogleSheetsParser.js +5 -2
- package/es-modules/Data/Stores/CSVStore.js +2 -2
- package/es-modules/Data/Stores/DataStore.js +1 -1
- package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
- package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
- package/es-modules/Extensions/Annotations/Annotations.js +11 -10
- package/es-modules/Extensions/Annotations/ControlPoint.js +0 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +3 -6
- package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +1 -1
- package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +6 -3
- package/es-modules/Extensions/Annotations/Mixins/EventEmitterMixin.js +0 -1
- package/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +5 -4
- package/es-modules/Extensions/Annotations/NavigationBindings.js +34 -29
- package/es-modules/Extensions/Annotations/Popup.js +40 -32
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -2
- package/es-modules/Extensions/Annotations/Types/ElliottWave.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +15 -11
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +2 -1
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +8 -4
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +10 -5
- package/es-modules/Extensions/Boost/BoostOverrides.js +3 -9
- package/es-modules/Extensions/Boost/BoostUtils.js +0 -6
- package/es-modules/Extensions/Boost/WGLRenderer.js +16 -12
- package/es-modules/Extensions/Boost/WGLShader.js +9 -8
- package/es-modules/Extensions/Boost/WGLVBuffer.js +4 -7
- package/es-modules/Extensions/Data.js +4 -48
- package/es-modules/Extensions/DataGrouping.js +22 -15
- package/es-modules/Extensions/DraggablePoints.js +7 -8
- package/es-modules/Extensions/Drilldown.js +9 -4
- package/es-modules/Extensions/ExportData.js +6 -5
- package/es-modules/Extensions/Exporting/Exporting.js +23 -37
- package/es-modules/Extensions/FullScreen.js +4 -3
- package/es-modules/Extensions/GeoJSON.js +3 -3
- package/es-modules/Extensions/MarkerClusters.js +3 -1
- package/es-modules/Extensions/Math3D.js +4 -4
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +23 -24
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +13 -77
- package/es-modules/Extensions/Oldie/VMLAxis3D.js +5 -1
- package/es-modules/Extensions/OverlappingDataLabels.js +10 -6
- package/es-modules/Extensions/Pane.js +6 -6
- package/es-modules/Extensions/ParallelCoordinates.js +5 -3
- package/es-modules/Extensions/PatternFill.js +17 -11
- package/es-modules/Extensions/Polar.js +6 -3
- package/es-modules/Extensions/PriceIndication.js +2 -1
- package/es-modules/Extensions/RangeSelector.js +19 -55
- package/es-modules/Extensions/ScrollablePlotArea.js +2 -2
- package/es-modules/Extensions/SeriesLabel.js +1 -1
- package/es-modules/Extensions/Sonification/ChartSonify.js +32 -26
- package/es-modules/Extensions/Sonification/Instrument.js +12 -15
- package/es-modules/Extensions/Sonification/PointSonify.js +12 -8
- package/es-modules/Extensions/Sonification/SeriesSonify.js +33 -18
- package/es-modules/Extensions/Sonification/SignalHandler.js +4 -6
- package/es-modules/Extensions/Sonification/Sonification.js +1 -1
- package/es-modules/Extensions/Sonification/SonificationUtilities.js +11 -7
- package/es-modules/Extensions/Sonification/Timeline.js +2 -7
- package/es-modules/Extensions/Sonification/TimelineEvent.js +0 -1
- package/es-modules/Extensions/Sonification/TimelinePath.js +8 -8
- package/es-modules/Extensions/Stacking.js +5 -23
- package/es-modules/Extensions/Themes/BrandDark.js +293 -0
- package/es-modules/Extensions/Themes/BrandLight.js +259 -0
- package/es-modules/Extensions/Themes/DarkUnica.js +4 -2
- package/es-modules/Extensions/Themes/Grid.js +4 -2
- package/es-modules/Extensions/Themes/GridLight.js +4 -2
- package/es-modules/Gantt/Connection.js +2 -2
- package/es-modules/Gantt/Pathfinder.js +6 -5
- package/es-modules/Gantt/PathfinderAlgorithms.js +12 -12
- package/es-modules/Maps/MapNavigation.js +6 -7
- package/es-modules/Maps/MapPointer.js +2 -1
- package/es-modules/Maps/MapSymbols.js +23 -3
- package/es-modules/Maps/MapViewOptionsDefault.js +1 -1
- package/es-modules/Series/Area/AreaSeries.js +13 -13
- package/es-modules/Series/Area3DSeries.js +4 -2
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +24 -12
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -1
- package/es-modules/Series/Bubble/BubbleLegendItem.js +2 -12
- package/es-modules/Series/Candlestick/CandlestickSeries.js +0 -1
- package/es-modules/Series/ColorMapMixin.js +84 -0
- package/es-modules/Series/Column/ColumnSeries.js +16 -14
- package/es-modules/Series/Column3D/Column3DComposition.js +1 -2
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +5 -2
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
- package/es-modules/Series/Cylinder/CylinderComposition.js +36 -4
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +1 -1
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +0 -1
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +0 -3
- package/es-modules/Series/Flags/FlagsSymbols.js +2 -2
- package/es-modules/Series/Funnel3D/Funnel3DComposition.js +14 -8
- package/es-modules/Series/Funnel3D/Funnel3DSeries.js +2 -1
- package/es-modules/Series/Gantt/GanttPoint.js +1 -1
- package/es-modules/Series/Gantt/GanttSeries.js +3 -1
- package/es-modules/Series/HLC/HLCSeries.js +1 -6
- package/es-modules/Series/Heatmap/HeatmapPoint.js +10 -10
- package/es-modules/Series/Heatmap/HeatmapSeries.js +9 -10
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +8 -6
- package/es-modules/Series/Histogram/HistogramSeries.js +4 -4
- package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +1 -4
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +19 -20
- package/es-modules/Series/Item/ItemSeries.js +4 -5
- package/es-modules/Series/Map/MapPoint.js +6 -0
- package/es-modules/Series/Map/MapSeries.js +24 -25
- package/es-modules/Series/MapLine/MapLineSeries.js +0 -4
- package/es-modules/Series/Networkgraph/DraggableNodes.js +0 -4
- package/es-modules/Series/Networkgraph/Integrations.js +8 -22
- package/es-modules/Series/Networkgraph/Networkgraph.js +1 -5
- package/es-modules/Series/Networkgraph/QuadTree.js +1 -3
- package/es-modules/Series/NodesComposition.js +2 -1
- package/es-modules/Series/OHLC/OHLCPoint.js +0 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +1 -1
- package/es-modules/Series/Organization/OrganizationSeries.js +4 -2
- package/es-modules/Series/PackedBubble/PackedBubbleComposition.js +1 -0
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +2 -4
- package/es-modules/Series/Pie/PiePoint.js +2 -2
- package/es-modules/Series/Pie/PieSeries.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DComposition.js +2 -1
- package/es-modules/Series/Pie3D/Pie3DPoint.js +2 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +1 -1
- package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +2 -1
- package/es-modules/Series/Sankey/SankeySeries.js +3 -2
- package/es-modules/Series/SolidGauge/SolidGaugeComposition.js +3 -1
- package/es-modules/Series/Spline/SplineSeries.js +0 -8
- package/es-modules/Series/Sunburst/SunburstSeries.js +2 -2
- package/es-modules/Series/Sunburst/SunburstUtilities.js +3 -2
- package/es-modules/Series/Tilemap/TilemapPoint.js +0 -2
- package/es-modules/Series/Tilemap/TilemapShapes.js +0 -7
- package/es-modules/Series/TreeUtilities.js +2 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +18 -21
- package/es-modules/Series/Variwide/VariwideSeries.js +5 -1
- package/es-modules/Series/Venn/VennSeries.js +6 -9
- package/es-modules/Series/Venn/VennUtils.js +8 -7
- package/es-modules/Series/Waterfall/WaterfallSeries.js +6 -3
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +2 -2
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -10
- package/es-modules/Series/XRange/XRangePoint.js +6 -12
- package/es-modules/Series/XRange/XRangeSeries.js +4 -20
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +12 -0
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -0
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +12 -0
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +35 -15
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +9 -5
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +2 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +6 -6
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +12 -0
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -3
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +30 -12
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -1
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +70 -6
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +11 -0
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -1
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +2 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +2 -3
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -1
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -3
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +19 -7
- package/es-modules/Stock/StockToolsBindings.js +13 -6
- package/es-modules/Stock/StockToolsGui.js +34 -23
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +2 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/brand-dark.src.js +14 -0
- package/es-modules/masters/themes/brand-light.src.js +14 -0
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +1 -1
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +65 -35
- package/highcharts-gantt.js +799 -799
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +589 -698
- package/highcharts-more.js +1 -1
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +73 -103
- package/highcharts.d.ts +5586 -1709
- package/highcharts.js +577 -577
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +5586 -1709
- package/highcharts.src.js +391 -486
- package/highmaps.js +723 -723
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +552 -656
- package/highstock.js +782 -782
- package/highstock.js.map +1 -1
- package/highstock.src.js +612 -731
- package/indicators/acceleration-bands.d.ts +17 -1
- package/indicators/acceleration-bands.js +11 -10
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.d.ts +17 -1
- package/indicators/acceleration-bands.src.js +88 -6
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +1 -1
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.d.ts +17 -1
- package/indicators/aroon-oscillator.js +10 -9
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.d.ts +17 -1
- package/indicators/aroon-oscillator.src.js +76 -6
- package/indicators/aroon.d.ts +17 -1
- package/indicators/aroon.js +11 -9
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.d.ts +17 -1
- package/indicators/aroon.src.js +77 -6
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.d.ts +17 -1
- package/indicators/bollinger-bands.js +12 -10
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.d.ts +17 -1
- package/indicators/bollinger-bands.src.js +88 -6
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +36 -16
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +3 -2
- package/indicators/dmi.js +12 -11
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +85 -11
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +7 -7
- package/indicators/indicators-all.d.ts +17 -1
- package/indicators/indicators-all.js +198 -197
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.d.ts +17 -1
- package/indicators/indicators-all.src.js +246 -65
- package/indicators/indicators.js +1 -1
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +3 -4
- package/indicators/keltner-channels.d.ts +17 -1
- package/indicators/keltner-channels.js +11 -10
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.d.ts +17 -1
- package/indicators/keltner-channels.src.js +88 -6
- package/indicators/klinger.js +14 -12
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +84 -9
- package/indicators/macd.js +1 -1
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +2 -2
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +3 -2
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.d.ts +17 -1
- package/indicators/price-channel.js +11 -9
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.d.ts +17 -1
- package/indicators/price-channel.src.js +87 -6
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +31 -13
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +3 -2
- package/indicators/slow-stochastic.js +1 -1
- package/indicators/slow-stochastic.src.js +1 -1
- package/indicators/stochastic.d.ts +17 -1
- package/indicators/stochastic.js +12 -10
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.d.ts +17 -1
- package/indicators/stochastic.src.js +79 -7
- package/indicators/supertrend.js +1 -1
- package/indicators/supertrend.src.js +1 -1
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +1 -1
- package/indicators/volume-by-price.src.js +4 -4
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +20 -8
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.d.ts +0 -35
- package/modules/accessibility.js +225 -222
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.d.ts +0 -35
- package/modules/accessibility.src.js +503 -418
- package/modules/annotations-advanced.js +128 -128
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +152 -124
- package/modules/annotations.js +122 -122
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +112 -100
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +1 -1
- package/modules/boost-canvas.src.js +1 -1
- package/modules/boost.js +1 -1
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +33 -43
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +18 -12
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +1 -1
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +11 -8
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +37 -5
- package/modules/data.d.ts +6 -6
- package/modules/data.js +31 -31
- package/modules/data.js.map +1 -1
- package/modules/data.src.d.ts +6 -6
- package/modules/data.src.js +10 -53
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +23 -16
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.js +3 -3
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +2 -2
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +8 -9
- package/modules/drilldown.js +1 -1
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +10 -5
- package/modules/dumbbell.js +1 -1
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +1 -5
- package/modules/export-data.js +19 -19
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +7 -6
- package/modules/exporting.js +1 -1
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +33 -45
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +5 -4
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +17 -10
- package/modules/gantt.js +1 -1
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +199 -213
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +27 -19
- package/modules/heatmap.js +39 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +88 -112
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.js +9 -7
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +7 -6
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +21 -25
- package/modules/item-series.js +6 -6
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +6 -6
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +2 -0
- package/modules/map.js +144 -144
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +2 -0
- package/modules/map.src.js +162 -171
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +4 -2
- package/modules/networkgraph.js +1 -1
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +13 -36
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/offline-exporting.js +18 -18
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +27 -32
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +2 -2
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +19 -79
- package/modules/organization.js +1 -1
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +5 -3
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +6 -4
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +21 -20
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +18 -12
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.js.map +1 -1
- package/modules/price-indicator.src.js +3 -2
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +3 -2
- package/modules/sankey.js +1 -1
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +8 -6
- package/modules/series-label.js +1 -1
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +2 -2
- package/modules/solid-gauge.js +1 -1
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +17 -2
- package/modules/sonification.js +53 -53
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +121 -103
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +66 -66
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +119 -96
- package/modules/stock.js +3 -3
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +222 -246
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +60 -61
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +83 -113
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +1 -10
- package/modules/timeline.js +1 -1
- package/modules/timeline.src.js +1 -1
- package/modules/treegrid.js +1 -1
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +76 -50
- package/modules/treemap.js +41 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +78 -109
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +7 -3
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +1 -1
- package/modules/venn.js +1 -1
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +17 -18
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +1 -1
- package/modules/wordcloud.js +1 -1
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +9 -13
- package/modules/xrange.js +1 -1
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +11 -33
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/brand-dark.js +15 -0
- package/themes/brand-dark.js.map +1 -0
- package/themes/brand-dark.src.js +328 -0
- package/themes/brand-light.js +15 -0
- package/themes/brand-light.js.map +1 -0
- package/themes/brand-light.src.js +294 -0
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +5 -3
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +5 -3
- package/themes/grid.js +1 -1
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +5 -3
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
- package/es-modules/Series/ColorMapComposition.js +0 -109
package/modules/treegrid.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts Gantt JS v9.3.
|
|
2
|
+
* @license Highcharts Gantt JS v9.3.2 (2021-11-29)
|
|
3
3
|
*
|
|
4
4
|
* Tree Grid
|
|
5
5
|
*
|
|
@@ -211,8 +211,11 @@
|
|
|
211
211
|
(threshold > brk.from && y < brk.from)) {
|
|
212
212
|
eventName = 'pointBreak';
|
|
213
213
|
}
|
|
214
|
-
else if ((threshold < brk.from &&
|
|
215
|
-
|
|
214
|
+
else if ((threshold < brk.from &&
|
|
215
|
+
y > brk.from &&
|
|
216
|
+
y < brk.to) || (threshold > brk.from &&
|
|
217
|
+
y > brk.to &&
|
|
218
|
+
y < brk.from)) {
|
|
216
219
|
eventName = 'pointInBreak';
|
|
217
220
|
}
|
|
218
221
|
if (eventName) {
|
|
@@ -331,12 +334,9 @@
|
|
|
331
334
|
isNull: true,
|
|
332
335
|
x: xRange
|
|
333
336
|
});
|
|
334
|
-
// For stacked chart generate empty stack items,
|
|
335
|
-
// #6546
|
|
337
|
+
// For stacked chart generate empty stack items, #6546
|
|
336
338
|
if (yAxis.stacking && this.options.stacking) {
|
|
337
|
-
stack = yAxis.stacking.stacks[this.stackKey][xRange] =
|
|
338
|
-
new StackItem(yAxis, yAxis.options
|
|
339
|
-
.stackLabels, false, xRange, this.stack);
|
|
339
|
+
stack = yAxis.stacking.stacks[this.stackKey][xRange] = new StackItem(yAxis, yAxis.options.stackLabels, false, xRange, this.stack);
|
|
340
340
|
stack.total = 0;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -573,10 +573,12 @@
|
|
|
573
573
|
repeat_1 = brk.repeat || Infinity;
|
|
574
574
|
if (isNumber(min_1) && isNumber(max_1)) {
|
|
575
575
|
if (Additions.isInBreak(brk, min_1)) {
|
|
576
|
-
min_1 += (brk.to % repeat_1) -
|
|
576
|
+
min_1 += ((brk.to % repeat_1) -
|
|
577
|
+
(min_1 % repeat_1));
|
|
577
578
|
}
|
|
578
579
|
if (Additions.isInBreak(brk, max_1)) {
|
|
579
|
-
max_1 -= (max_1 % repeat_1) -
|
|
580
|
+
max_1 -= ((max_1 % repeat_1) -
|
|
581
|
+
(brk.from % repeat_1));
|
|
580
582
|
}
|
|
581
583
|
}
|
|
582
584
|
});
|
|
@@ -624,13 +626,17 @@
|
|
|
624
626
|
to: brk.value,
|
|
625
627
|
len: brk.value - start_1 - (brk.size || 0)
|
|
626
628
|
});
|
|
627
|
-
length_1 += brk.value -
|
|
629
|
+
length_1 += (brk.value -
|
|
630
|
+
start_1 -
|
|
631
|
+
(brk.size || 0));
|
|
628
632
|
}
|
|
629
633
|
});
|
|
630
634
|
brokenAxis.breakArray = breakArray_1;
|
|
631
635
|
// Used with staticScale, and below the actual axis
|
|
632
636
|
// length, when breaks are substracted.
|
|
633
|
-
if (isNumber(min_1) &&
|
|
637
|
+
if (isNumber(min_1) &&
|
|
638
|
+
isNumber(max_1) &&
|
|
639
|
+
isNumber(axis.min)) {
|
|
634
640
|
brokenAxis.unitLength = max_1 - min_1 - length_1 +
|
|
635
641
|
pointRangePadding;
|
|
636
642
|
fireEvent(axis, 'afterBreaks');
|
|
@@ -836,7 +842,8 @@
|
|
|
836
842
|
this.treeGrid &&
|
|
837
843
|
this.treeGrid.mapOfPosToGridNode) {
|
|
838
844
|
var treeDepth = this.treeGrid.mapOfPosToGridNode[-1].height || 0;
|
|
839
|
-
dimensions.width += this.options.labels.indentation *
|
|
845
|
+
dimensions.width += (this.options.labels.indentation *
|
|
846
|
+
(treeDepth - 1));
|
|
840
847
|
}
|
|
841
848
|
return dimensions;
|
|
842
849
|
}
|
|
@@ -1002,8 +1009,10 @@
|
|
|
1002
1009
|
axis.left,
|
|
1003
1010
|
startPoint[2] || 0
|
|
1004
1011
|
],
|
|
1005
|
-
upperBorderPath = [
|
|
1006
|
-
|
|
1012
|
+
upperBorderPath = [
|
|
1013
|
+
upperBorderStartPoint,
|
|
1014
|
+
upperBorderEndPoint
|
|
1015
|
+
],
|
|
1007
1016
|
lowerBorderEndPoint = [
|
|
1008
1017
|
'L',
|
|
1009
1018
|
axis.chart.chartWidth - axis.chart.marginRight,
|
|
@@ -1014,8 +1023,10 @@
|
|
|
1014
1023
|
endPoint[1] || 0,
|
|
1015
1024
|
axis.toPixels(max + axis.tickmarkOffset)
|
|
1016
1025
|
],
|
|
1017
|
-
lowerBorderPath = [
|
|
1018
|
-
|
|
1026
|
+
lowerBorderPath = [
|
|
1027
|
+
lowerBorderStartPoint,
|
|
1028
|
+
lowerBorderEndPoint
|
|
1029
|
+
];
|
|
1019
1030
|
if (!axis.grid.upperBorder && min % 1 !== 0) {
|
|
1020
1031
|
axis.grid.upperBorder = axis.grid.renderBorder(upperBorderPath);
|
|
1021
1032
|
}
|
|
@@ -1041,8 +1052,8 @@
|
|
|
1041
1052
|
});
|
|
1042
1053
|
}
|
|
1043
1054
|
}
|
|
1044
|
-
// Render an extra line parallel to the existing axes,
|
|
1045
|
-
//
|
|
1055
|
+
// Render an extra line parallel to the existing axes, to
|
|
1056
|
+
// close the grid.
|
|
1046
1057
|
if (!axis.grid.axisLineExtra) {
|
|
1047
1058
|
axis.grid.axisLineExtra = axis.grid.renderBorder(linePath);
|
|
1048
1059
|
}
|
|
@@ -1055,8 +1066,7 @@
|
|
|
1055
1066
|
d: linePath
|
|
1056
1067
|
});
|
|
1057
1068
|
}
|
|
1058
|
-
// show or hide the line depending on
|
|
1059
|
-
// options.showEmpty
|
|
1069
|
+
// show or hide the line depending on options.showEmpty
|
|
1060
1070
|
axis.axisLine[axis.showAxis ? 'show' : 'hide'](true);
|
|
1061
1071
|
}
|
|
1062
1072
|
}
|
|
@@ -1098,7 +1108,8 @@
|
|
|
1098
1108
|
}
|
|
1099
1109
|
var mark = axis.ticks[lastTick].mark;
|
|
1100
1110
|
if (mark) {
|
|
1101
|
-
if (lastTick - max < tickmarkOffset &&
|
|
1111
|
+
if (lastTick - max < tickmarkOffset &&
|
|
1112
|
+
lastTick - max > 0 && axis.ticks[lastTick].isLast) {
|
|
1102
1113
|
mark.hide();
|
|
1103
1114
|
}
|
|
1104
1115
|
else if (axis.ticks[lastTick - 1]) {
|
|
@@ -1131,7 +1142,8 @@
|
|
|
1131
1142
|
options.dateTimeLabelFormats &&
|
|
1132
1143
|
options.labels &&
|
|
1133
1144
|
!defined(userLabels.align) &&
|
|
1134
|
-
(options.dateTimeLabelFormats[tickInfo.unitName]
|
|
1145
|
+
(options.dateTimeLabelFormats[tickInfo.unitName]
|
|
1146
|
+
.range === false ||
|
|
1135
1147
|
tickInfo.count > 1 // years
|
|
1136
1148
|
)) {
|
|
1137
1149
|
options.labels.align = 'left';
|
|
@@ -1345,7 +1357,8 @@
|
|
|
1345
1357
|
if (gridOptions.enabled && maxLabelDimensions) {
|
|
1346
1358
|
var labelPadding = (Math.abs(defaultLeftAxisOptions.labels.x) * 2);
|
|
1347
1359
|
var distance = horiz ?
|
|
1348
|
-
gridOptions.cellHeight ||
|
|
1360
|
+
(gridOptions.cellHeight ||
|
|
1361
|
+
labelPadding + maxLabelDimensions.height) :
|
|
1349
1362
|
labelPadding + maxLabelDimensions.width;
|
|
1350
1363
|
if (isArray(e.tickSize)) {
|
|
1351
1364
|
e.tickSize[0] = distance;
|
|
@@ -1385,7 +1398,7 @@
|
|
|
1385
1398
|
var userOptions = e.userOptions || {};
|
|
1386
1399
|
var gridOptions = userOptions.grid || {};
|
|
1387
1400
|
if (gridOptions.enabled && defined(gridOptions.borderColor)) {
|
|
1388
|
-
userOptions.tickColor = userOptions.lineColor = gridOptions.borderColor;
|
|
1401
|
+
userOptions.tickColor = userOptions.lineColor = (gridOptions.borderColor);
|
|
1389
1402
|
}
|
|
1390
1403
|
if (!axis.grid) {
|
|
1391
1404
|
axis.grid = new Additions(axis);
|
|
@@ -1632,7 +1645,8 @@
|
|
|
1632
1645
|
var thisIndex = -1,
|
|
1633
1646
|
lastIndex = 0;
|
|
1634
1647
|
chart[axis.coll].forEach(function (otherAxis, index) {
|
|
1635
|
-
if (otherAxis.side === axis.side &&
|
|
1648
|
+
if (otherAxis.side === axis.side &&
|
|
1649
|
+
!otherAxis.options.isInternal) {
|
|
1636
1650
|
lastIndex = index;
|
|
1637
1651
|
if (otherAxis === parentAxis) {
|
|
1638
1652
|
// Get the index of the axis in question
|
|
@@ -1641,17 +1655,17 @@
|
|
|
1641
1655
|
}
|
|
1642
1656
|
});
|
|
1643
1657
|
return (lastIndex === thisIndex &&
|
|
1644
|
-
(isNumber(columnIndex) ?
|
|
1658
|
+
(isNumber(columnIndex) ?
|
|
1659
|
+
columns.length === columnIndex :
|
|
1660
|
+
true));
|
|
1645
1661
|
};
|
|
1646
1662
|
/**
|
|
1647
1663
|
* Add extra border based on the provided path.
|
|
1648
|
-
* *
|
|
1649
1664
|
* @private
|
|
1650
|
-
*
|
|
1651
1665
|
* @param {SVGPath} path
|
|
1652
1666
|
* The path of the border.
|
|
1653
|
-
*
|
|
1654
1667
|
* @return {Highcharts.SVGElement}
|
|
1668
|
+
* Border
|
|
1655
1669
|
*/
|
|
1656
1670
|
Additions.prototype.renderBorder = function (path) {
|
|
1657
1671
|
var axis = this.axis,
|
|
@@ -2120,7 +2134,10 @@
|
|
|
2120
2134
|
node.descendants > 0) {
|
|
2121
2135
|
collapsed = axis.treeGrid.isCollapsed(node);
|
|
2122
2136
|
renderLabelIcon(tick, {
|
|
2123
|
-
color: !styledMode &&
|
|
2137
|
+
color: (!styledMode &&
|
|
2138
|
+
label.styles &&
|
|
2139
|
+
label.styles.color ||
|
|
2140
|
+
''),
|
|
2124
2141
|
collapsed: collapsed,
|
|
2125
2142
|
group: label.parentGroup,
|
|
2126
2143
|
options: symbolOptions,
|
|
@@ -2349,7 +2366,7 @@
|
|
|
2349
2366
|
*
|
|
2350
2367
|
* @private
|
|
2351
2368
|
*
|
|
2352
|
-
* @param {
|
|
2369
|
+
* @param {Object} params
|
|
2353
2370
|
* Object containing parameters.
|
|
2354
2371
|
* - `defaults` Object containing default options. The default options are
|
|
2355
2372
|
* merged with the userOptions to get the final options for a specific
|
|
@@ -2459,7 +2476,7 @@
|
|
|
2459
2476
|
*
|
|
2460
2477
|
* @private
|
|
2461
2478
|
*
|
|
2462
|
-
* @param {
|
|
2479
|
+
* @param {Object} series
|
|
2463
2480
|
* The series to operate on.
|
|
2464
2481
|
*
|
|
2465
2482
|
* @return {string}
|
|
@@ -2595,7 +2612,7 @@
|
|
|
2595
2612
|
*
|
|
2596
2613
|
* @param {number} numberOfSeries
|
|
2597
2614
|
*
|
|
2598
|
-
* @return {
|
|
2615
|
+
* @return {Object}
|
|
2599
2616
|
* Returns an object containing categories, mapOfIdToNode,
|
|
2600
2617
|
* mapOfPosToGridNode, and tree.
|
|
2601
2618
|
*
|
|
@@ -2608,7 +2625,8 @@
|
|
|
2608
2625
|
var categories = [],
|
|
2609
2626
|
collapsedNodes = [],
|
|
2610
2627
|
mapOfIdToNode = {},
|
|
2611
|
-
uniqueNamesEnabled = typeof uniqueNames === 'boolean' ?
|
|
2628
|
+
uniqueNamesEnabled = typeof uniqueNames === 'boolean' ?
|
|
2629
|
+
uniqueNames : false;
|
|
2612
2630
|
var mapOfPosToGridNode = {},
|
|
2613
2631
|
posIterator = -1;
|
|
2614
2632
|
// Build the tree from the series data.
|
|
@@ -2631,7 +2649,9 @@
|
|
|
2631
2649
|
// Before the children has been created.
|
|
2632
2650
|
before: function (node) {
|
|
2633
2651
|
var data = isObject(node.data,
|
|
2634
|
-
true) ?
|
|
2652
|
+
true) ?
|
|
2653
|
+
node.data :
|
|
2654
|
+
{},
|
|
2635
2655
|
name = isString(data.name) ? data.name : '',
|
|
2636
2656
|
parentNode = mapOfIdToNode[node.parent],
|
|
2637
2657
|
parentGridNode = (isObject(parentNode,
|
|
@@ -2740,8 +2760,8 @@
|
|
|
2740
2760
|
/**
|
|
2741
2761
|
* Builds the tree of categories and calculates its positions.
|
|
2742
2762
|
* @private
|
|
2743
|
-
* @param {
|
|
2744
|
-
* @param {
|
|
2763
|
+
* @param {Object} e Event object
|
|
2764
|
+
* @param {Object} e.target The chart instance which the event was fired on.
|
|
2745
2765
|
* @param {object[]} e.target.axes The axes of the chart.
|
|
2746
2766
|
*/
|
|
2747
2767
|
function onBeforeRender(e) {
|
|
@@ -2756,8 +2776,8 @@
|
|
|
2756
2776
|
max = options.max,
|
|
2757
2777
|
// Check whether any of series is rendering for the first
|
|
2758
2778
|
// time, visibility has changed, or its data is dirty, and
|
|
2759
|
-
// only then update. #10570, #10580
|
|
2760
|
-
//
|
|
2779
|
+
// only then update. #10570, #10580. Also check if
|
|
2780
|
+
// mapOfPosToGridNode exists. #10887
|
|
2761
2781
|
isDirty = (!axis.treeGrid.mapOfPosToGridNode ||
|
|
2762
2782
|
axis.series.some(function (series) {
|
|
2763
2783
|
return !series.hasRendered ||
|
|
@@ -2775,13 +2795,15 @@
|
|
|
2775
2795
|
(s.options.data || []).forEach(function (data) {
|
|
2776
2796
|
// For using keys - rebuild the data structure
|
|
2777
2797
|
if (s.options.keys && s.options.keys.length) {
|
|
2778
|
-
data = s.pointClass.prototype
|
|
2798
|
+
data = s.pointClass.prototype
|
|
2799
|
+
.optionsToObject
|
|
2800
|
+
.call({ series: s }, data);
|
|
2779
2801
|
s.pointClass.setGanttPointAliases(data);
|
|
2780
2802
|
}
|
|
2781
2803
|
if (isObject(data, true)) {
|
|
2782
2804
|
// Set series index on data. Removed again
|
|
2783
2805
|
// after use.
|
|
2784
|
-
data.seriesIndex = numberOfSeries;
|
|
2806
|
+
data.seriesIndex = (numberOfSeries);
|
|
2785
2807
|
arr.push(data);
|
|
2786
2808
|
}
|
|
2787
2809
|
});
|
|
@@ -2808,17 +2830,20 @@
|
|
|
2808
2830
|
treeGrid = getTreeGridFromData(data, uniqueNames || false, (uniqueNames === true) ? numberOfSeries : 1);
|
|
2809
2831
|
// Assign values to the axis.
|
|
2810
2832
|
axis.categories = treeGrid.categories;
|
|
2811
|
-
axis.treeGrid.mapOfPosToGridNode = treeGrid.mapOfPosToGridNode;
|
|
2833
|
+
axis.treeGrid.mapOfPosToGridNode = (treeGrid.mapOfPosToGridNode);
|
|
2812
2834
|
axis.hasNames = true;
|
|
2813
2835
|
axis.treeGrid.tree = treeGrid.tree;
|
|
2814
2836
|
// Update yData now that we have calculated the y values
|
|
2815
2837
|
axis.series.forEach(function (series) {
|
|
2816
2838
|
var axisData = (series.options.data || []).map(function (d) {
|
|
2817
|
-
if (isArray(d) &&
|
|
2839
|
+
if (isArray(d) &&
|
|
2840
|
+
series.options.keys &&
|
|
2841
|
+
series.options.keys.length) {
|
|
2818
2842
|
// Get the axisData from the data array used to
|
|
2819
2843
|
// build the treeGrid where has been modified
|
|
2820
2844
|
data.forEach(function (point) {
|
|
2821
|
-
if (d.indexOf(point.x) >= 0 &&
|
|
2845
|
+
if (d.indexOf(point.x) >= 0 &&
|
|
2846
|
+
d.indexOf(point.x2) >= 0) {
|
|
2822
2847
|
d = point;
|
|
2823
2848
|
}
|
|
2824
2849
|
});
|
|
@@ -2928,10 +2953,11 @@
|
|
|
2928
2953
|
axis.brokenAxis.setBreaks(breaks, false);
|
|
2929
2954
|
// remove the node from the axis collapsedNodes
|
|
2930
2955
|
if (axis.treeGrid.collapsedNodes) {
|
|
2931
|
-
axis.treeGrid.collapsedNodes = axis.treeGrid
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2956
|
+
axis.treeGrid.collapsedNodes = axis.treeGrid
|
|
2957
|
+
.collapsedNodes
|
|
2958
|
+
.filter(function (n) { return ((node.collapseStart !==
|
|
2959
|
+
n.collapseStart) ||
|
|
2960
|
+
node.collapseEnd !== n.collapseEnd); });
|
|
2935
2961
|
}
|
|
2936
2962
|
}
|
|
2937
2963
|
});
|
|
@@ -3212,7 +3238,7 @@
|
|
|
3212
3238
|
* @param {Highcharts.Axis} axis
|
|
3213
3239
|
* The axis to check against.
|
|
3214
3240
|
*
|
|
3215
|
-
* @param {
|
|
3241
|
+
* @param {Object} node
|
|
3216
3242
|
* The node to check if is collapsed.
|
|
3217
3243
|
*
|
|
3218
3244
|
* @param {number} pos
|
package/modules/treemap.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highcharts JS v9.3.
|
|
2
|
+
Highcharts JS v9.3.2 (2021-11-29)
|
|
3
3
|
|
|
4
4
|
(c) 2014-2021 Highsoft AS
|
|
5
5
|
Authors: Jon Arild Nygard / Oystein Moseng
|
|
6
6
|
|
|
7
7
|
License: www.highcharts.com/license
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/treemap",["highcharts"],function(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
n=
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
a.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
9
|
+
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/treemap",["highcharts"],function(f){a(f);a.Highcharts=f;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function f(a,e,c,r){a.hasOwnProperty(e)||(a[e]=r.apply(null,c))}a=a?a._modules:{};f(a,"Series/ColorMapMixin.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,e,c){var r=
|
|
10
|
+
a.noop;a=a.seriesTypes;var l=c.defined;c=c.addEvent;c(e,"afterSetState",function(g){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:g&&"hover"===g.state?1:0})});return{PointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},SeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:r,parallelArrays:["x","y","value"],
|
|
11
|
+
colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(g){var a={};!l(g.color)||g.state&&"normal"!==g.state||(a[this.colorProp||"fill"]=g.color);return a}}}});f(a,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function a(a,c,r,l){this.height=a;this.width=c;this.plot=l;this.startDirection=this.direction=r;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,c){return Math.max(a/
|
|
12
|
+
c,c/a)}}}a.prototype.addElement=function(a){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,
|
|
13
|
+
this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)};a.prototype.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0};return a}()});f(a,"Series/DrawPointComposition.js",[],function(){var a;(function(a){function c(a){var c=this,g=a.animatableAttribs,q=a.onComplete,b=a.css,n=a.renderer,K=this.series&&this.series.chart.hasRendered?void 0:this.series&&this.series.options.animation,t=this.graphic;a.attribs=a.attribs||{};a.attribs["class"]=this.getClassName();if(this.shouldDraw())t||
|
|
14
|
+
(this.graphic=t=n[a.shapeType](a.shapeArgs).add(a.group)),t.css(b).attr(a.attribs).animate(g,a.isNew?!1:K,q);else if(t){var e=function(){c.graphic=t=t&&t.destroy();"function"===typeof q&&q()};Object.keys(g).length?t.animate(g,void 0,function(){e()}):e()}}function e(){return!this.isNull}var l=[];a.compose=function(a){if(-1===l.indexOf(a)){l.push(a);var g=a.prototype;g.draw=c;g.shouldDraw||(g.shouldDraw=e)}return a}})(a||(a={}));return a});f(a,"Series/Treemap/TreemapPoint.js",[a["Series/DrawPointComposition.js"],
|
|
15
|
+
a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e,c){var r=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var n in b)b.hasOwnProperty(n)&&(a[n]=b[n])};return a(b,c)};return function(b,c){function n(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(n.prototype=c.prototype,new n)}}(),l=e.series.prototype.pointClass,g=e.seriesTypes;e=g.pie.prototype.pointClass;
|
|
16
|
+
var m=c.extend,k=c.isNumber,q=c.pick;c=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.name=void 0;b.node=void 0;b.options=void 0;b.series=void 0;b.value=void 0;return b}r(b,a);b.prototype.getClassName=function(){var a=l.prototype.getClassName.call(this),b=this.series,c=b.options;this.node.level<=b.nodeMap[b.rootNode].level?a+=" highcharts-above-level":this.node.isLeaf||q(c.interactByLeaf,!c.allowTraversingTree)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";
|
|
17
|
+
return a};b.prototype.isValid=function(){return!(!this.id&&!k(this.value))};b.prototype.setState=function(a){l.prototype.setState.call(this,a);this.graphic&&this.graphic.attr({zIndex:"hover"===a?1:0})};b.prototype.shouldDraw=function(){return k(this.plotY)&&null!==this.y};return b}(g.scatter.prototype.pointClass);m(c.prototype,{setVisible:e.prototype.setVisible});a.compose(c);return c});f(a,"Series/Treemap/TreemapUtilities.js",[a["Core/Utilities.js"]],function(a){var e=a.objectEach,c;(function(a){function c(a,
|
|
18
|
+
e,k){void 0===k&&(k=this);a=e.call(k,a);!1!==a&&c(a,e,k)}a.AXIS_MAX=100;a.isBoolean=function(a){return"boolean"===typeof a};a.eachObject=function(a,c,k){k=k||this;e(a,function(e,b){c.call(k,e,b,a)})};a.recursive=c})(c||(c={}));return c});f(a,"Series/TreeUtilities.js",[a["Core/Color/Color.js"],a["Core/Utilities.js"]],function(a,e){function c(a,n){var b=n.before,e=n.idRoot,k=n.mapIdToNode[e],g=n.points[a.i],l=g&&g.options||{},D=[],m=0;a.levelDynamic=a.level-(!1!==n.levelIsConstant?0:k.level);a.name=
|
|
19
|
+
q(g&&g.name,"");a.visible=e===a.id||!0===n.visible;"function"===typeof b&&(a=b(a,n));a.children.forEach(function(b,e){var g=r({},n);r(g,{index:e,siblings:a.children.length,visible:a.visible});b=c(b,g);D.push(b);b.visible&&(m+=b.val)});b=q(l.value,m);a.visible=0<=b&&(0<m||a.visible);a.children=D;a.childrenTotal=m;a.isLeaf=a.visible&&!m;a.val=b;return a}var r=e.extend,l=e.isArray,g=e.isNumber,m=e.isObject,k=e.merge,q=e.pick;return{getColor:function(b,c){var e=c.index,g=c.mapOptionsToLevel,k=c.parentColor,
|
|
20
|
+
n=c.parentColorIndex,m=c.series,l=c.colors,r=c.siblings,f=m.points,C=m.chart.options.chart,v;if(b){f=f[b.i];b=g[b.level]||{};if(g=f&&b.colorByPoint){var x=f.index%(l?l.length:C.colorCount);var E=l&&l[x]}if(!m.chart.styledMode){l=f&&f.options.color;C=b&&b.color;if(v=k)v=(v=b&&b.colorVariation)&&"brightness"===v.key&&e&&r?a.parse(k).brighten(e/r*v.to).get():k;v=q(l,C,E,v,m.color)}var B=q(f&&f.options.colorIndex,b&&b.colorIndex,x,n,c.colorIndex)}return{color:v,colorIndex:B}},getLevelOptions:function(a){var b=
|
|
21
|
+
null;if(m(a)){b={};var c=g(a.from)?a.from:1;var e=a.levels;var f={};var r=m(a.defaults)?a.defaults:{};l(e)&&(f=e.reduce(function(a,b){if(m(b)&&g(b.level)){var e=k({},b);var l=q(e.levelIsConstant,r.levelIsConstant);delete e.levelIsConstant;delete e.level;b=b.level+(l?0:c-1);m(a[b])?k(!0,a[b],e):a[b]=e}return a},{}));e=g(a.to)?a.to:1;for(a=0;a<=e;a++)b[a]=k({},r,m(f[a])?f[a]:{})}return b},setTreeValues:c,updateRootId:function(a){if(m(a)){var b=m(a.options)?a.options:{};b=q(a.rootNode,b.rootId,"");m(a.userOptions)&&
|
|
22
|
+
(a.userOptions.rootId=b);a.rootNode=b}return b}}});f(a,"Series/Treemap/TreemapComposition.js",[a["Core/Series/SeriesRegistry.js"],a["Series/Treemap/TreemapUtilities.js"],a["Core/Utilities.js"]],function(a,e,c){var f=c.addEvent,l=c.extend,g=!1;f(a.series,"afterBindAxes",function(){var a=this.xAxis,c=this.yAxis;if(a&&c)if(this.is("treemap")){var f={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:e.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]};l(c.options,f);l(a.options,
|
|
23
|
+
f);g=!0}else g&&(c.setOptions(c.userOptions),a.setOptions(a.userOptions),g=!1)})});f(a,"Series/Treemap/TreemapSeries.js",[a["Core/Color/Color.js"],a["Series/ColorMapMixin.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Series/Treemap/TreemapAlgorithmGroup.js"],a["Series/Treemap/TreemapPoint.js"],a["Series/Treemap/TreemapUtilities.js"],a["Series/TreeUtilities.js"],a["Core/Utilities.js"]],function(a,e,c,f,l,g,m,k,q,b){var n=this&&this.__extends||function(){var a=
|
|
24
|
+
function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var h in d)d.hasOwnProperty(h)&&(a[h]=d[h])};return a(b,d)};return function(b,d){function h(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)}}(),r=a.parse;a=c.noop;var t=l.series;c=l.seriesTypes;var C=c.column,L=c.heatmap,G=c.scatter,D=q.getColor,M=q.getLevelOptions,N=q.updateRootId,H=b.addEvent,v=b.correctFloat,x=b.defined,E=b.error,
|
|
25
|
+
B=b.extend,O=b.fireEvent,I=b.isArray,P=b.isObject,F=b.isString,z=b.merge,w=b.pick,Q=b.stableSort;q=function(a){function b(){var d=null!==a&&a.apply(this,arguments)||this;d.axisRatio=void 0;d.data=void 0;d.mapOptionsToLevel=void 0;d.nodeMap=void 0;d.options=void 0;d.points=void 0;d.rootNode=void 0;d.tree=void 0;return d}n(b,a);b.prototype.algorithmCalcPoints=function(a,h,b,y){var d,c,p,e,g=b.lW,u=b.lH,f=b.plot,k=0,l=b.elArr.length-1;if(h)g=b.nW,u=b.nH;else var m=b.elArr[b.elArr.length-1];b.elArr.forEach(function(a){if(h||
|
|
26
|
+
k<l)0===b.direction?(d=f.x,c=f.y,p=g,e=a/p):(d=f.x,c=f.y,e=u,p=a/e),y.push({x:d,y:c,width:p,height:v(e)}),0===b.direction?f.y+=e:f.x+=p;k+=1});b.reset();0===b.direction?b.width-=g:b.height-=u;f.y=f.parent.y+(f.parent.height-b.height);f.x=f.parent.x+(f.parent.width-b.width);a&&(b.direction=1-b.direction);h||b.addElement(m)};b.prototype.algorithmFill=function(a,b,c){var d=[],h,p=b.direction,e=b.x,f=b.y,g=b.width,u=b.height,k,l,m,n;c.forEach(function(c){h=c.val/b.val*b.height*b.width;k=e;l=f;0===p?(n=
|
|
27
|
+
u,m=h/n,g-=m,e+=m):(m=g,n=h/m,u-=n,f+=n);d.push({x:k,y:l,width:m,height:n});a&&(p=1-p)});return d};b.prototype.algorithmLowAspectRatio=function(a,b,c){var d=[],h=this,p,e={x:b.x,y:b.y,parent:b},f=0,k=c.length-1,u=new g(b.height,b.width,b.direction,e);c.forEach(function(c){p=c.val/b.val*b.height*b.width;u.addElement(p);u.lP.nR>u.lP.lR&&h.algorithmCalcPoints(a,!1,u,d,e);f===k&&h.algorithmCalcPoints(a,!0,u,d,e);f+=1});return d};b.prototype.alignDataLabel=function(a,b,c){var d=c.style;d&&!x(d.textOverflow)&&
|
|
28
|
+
b.text&&b.getBBox().width>b.text.textWidth&&b.css({textOverflow:"ellipsis",width:d.width+="px"});C.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:(a.node.zIndex||0)+1})};b.prototype.buildNode=function(a,b,c,e,A){var d=this,h=[],p=d.points[b],y=0,f;(e[a]||[]).forEach(function(b){f=d.buildNode(d.points[b].id,b,c+1,e,a);y=Math.max(f.height+1,y);h.push(f)});b={id:a,i:b,children:h,height:y,level:c,parent:A,visible:!1};d.nodeMap[b.id]=b;p&&(p.node=b);return b};b.prototype.calculateChildrenAreas=
|
|
29
|
+
function(a,b){var d=this,h=d.options,c=d.mapOptionsToLevel[a.level+1],e=w(d[c&&c.layoutAlgorithm]&&c.layoutAlgorithm,h.layoutAlgorithm),f=h.alternateStartingDirection,g=[];a=a.children.filter(function(a){return!a.ignore});c&&c.layoutStartingDirection&&(b.direction="vertical"===c.layoutStartingDirection?0:1);g=d[e](b,a);a.forEach(function(a,h){h=g[h];a.values=z(h,{val:a.childrenTotal,direction:f?1-b.direction:b.direction});a.pointValues=z(h,{x:h.x/d.axisRatio,y:k.AXIS_MAX-h.y-h.height,width:h.width/
|
|
30
|
+
d.axisRatio});a.children.length&&d.calculateChildrenAreas(a,a.values)})};b.prototype.drawDataLabels=function(){var a=this,b=a.mapOptionsToLevel,c,e;a.points.filter(function(a){return a.node.visible}).forEach(function(d){e=b[d.node.level];c={style:{}};d.node.isLeaf||(c.enabled=!1);e&&e.dataLabels&&(c=z(c,e.dataLabels),a._hasPointLabels=!0);d.shapeArgs&&(c.style.width=d.shapeArgs.width,d.dataLabel&&d.dataLabel.css({width:d.shapeArgs.width+"px"}));d.dlOptions=z(c,d.options.dataLabels)});t.prototype.drawDataLabels.call(this)};
|
|
31
|
+
b.prototype.drawPoints=function(){var a=this,b=a.chart,c=b.renderer,e=b.styledMode,f=a.options,g=e?{}:f.shadow,k=f.borderRadius,l=b.pointCount<f.animationLimit,m=f.allowTraversingTree;a.points.forEach(function(d){var b=d.node.levelDynamic,h={},p={},y={},A="level-group-"+d.node.level,J=!!d.graphic,R=l&&J,n=d.shapeArgs;d.shouldDraw()&&(d.isInside=!0,k&&(p.r=k),z(!0,R?h:p,J?n:{},e?{}:a.pointAttribs(d,d.selected?"select":void 0)),a.colorAttribs&&e&&B(y,a.colorAttribs(d)),a[A]||(a[A]=c.g(A).attr({zIndex:1E3-
|
|
32
|
+
(b||0)}).add(a.group),a[A].survive=!0));d.draw({animatableAttribs:h,attribs:p,css:y,group:a[A],renderer:c,shadow:g,shapeArgs:n,shapeType:"rect"});m&&d.graphic&&(d.drillId=f.interactByLeaf?a.drillToByLeaf(d):a.drillToByGroup(d))})};b.prototype.drillToByGroup=function(a){var d=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(d=a.id);return d};b.prototype.drillToByLeaf=function(a){var d=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!d;)a=this.nodeMap[a.parent],
|
|
33
|
+
a.parent===this.rootNode&&(d=a.id);return d};b.prototype.drillToNode=function(a,b){E(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"});this.setRootNode(a,b)};b.prototype.drillUp=function(){var a=this.nodeMap[this.rootNode];a&&F(a.parent)&&this.setRootNode(a.parent,!0,{trigger:"traverseUpButton"})};b.prototype.getExtremes=function(){var a=t.prototype.getExtremes.call(this,this.colorValueData),b=a.dataMax;this.valueMin=a.dataMin;this.valueMax=b;return t.prototype.getExtremes.call(this)};
|
|
34
|
+
b.prototype.getListOfParents=function(a,b){a=I(a)?a:[];var d=I(b)?b:[];b=a.reduce(function(a,b,d){b=w(b.parent,"");"undefined"===typeof a[b]&&(a[b]=[]);a[b].push(d);return a},{"":[]});k.eachObject(b,function(a,b,c){""!==b&&-1===d.indexOf(b)&&(a.forEach(function(a){c[""].push(a)}),delete c[b])});return b};b.prototype.getTree=function(){var a=this.data.map(function(a){return a.id});a=this.getListOfParents(this.data,a);this.nodeMap={};return this.buildNode("",-1,0,a)};b.prototype.hasData=function(){return!!this.processedXData.length};
|
|
35
|
+
b.prototype.init=function(a,b){this.colorAttribs=e.SeriesMixin.colorAttribs;var d=H(this,"setOptions",function(a){a=a.userOptions;x(a.allowDrillToNode)&&!x(a.allowTraversingTree)&&(a.allowTraversingTree=a.allowDrillToNode,delete a.allowDrillToNode);x(a.drillUpButton)&&!x(a.traverseUpButton)&&(a.traverseUpButton=a.drillUpButton,delete a.drillUpButton)});t.prototype.init.call(this,a,b);delete this.opacity;this.eventsToUnbind.push(d);this.options.allowTraversingTree&&this.eventsToUnbind.push(H(this,
|
|
36
|
+
"click",this.onClickDrillToNode))};b.prototype.onClickDrillToNode=function(a){var b=(a=a.point)&&a.drillId;F(b)&&(a.setState(""),this.setRootNode(b,!0,{trigger:"click"}))};b.prototype.pointAttribs=function(a,b){var d=P(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},c=a&&d[a.node.level]||{};d=this.options;var h=b&&d.states[b]||{},e=a&&a.getClassName()||"";a={stroke:a&&a.borderColor||c.borderColor||h.borderColor||d.borderColor,"stroke-width":w(a&&a.borderWidth,c.borderWidth,h.borderWidth,d.borderWidth),
|
|
37
|
+
dashstyle:a&&a.borderDashStyle||c.borderDashStyle||h.borderDashStyle||d.borderDashStyle,fill:a&&a.color||this.color};-1!==e.indexOf("highcharts-above-level")?(a.fill="none",a["stroke-width"]=0):-1!==e.indexOf("highcharts-internal-node-interactive")?(b=w(h.opacity,d.opacity),a.fill=r(a.fill).setOpacity(b).get(),a.cursor="pointer"):-1!==e.indexOf("highcharts-internal-node")?a.fill="none":b&&(a.fill=r(a.fill).brighten(h.brightness).get());return a};b.prototype.renderTraverseUpButton=function(a){var b=
|
|
38
|
+
this,d=b.options.traverseUpButton,c=w(d.text,b.nodeMap[a].name,"\u25c1 Back");if(""===a||b.is("sunburst")&&1===b.tree.children.length&&a===b.tree.children[0].id)b.drillUpButton&&(b.drillUpButton=b.drillUpButton.destroy());else if(this.drillUpButton)this.drillUpButton.placed=!1,this.drillUpButton.attr({text:c}).align();else{var e=(a=d.theme)&&a.states;this.drillUpButton=this.chart.renderer.button(c,0,0,function(){b.drillUp()},a,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:d.position.align,
|
|
39
|
+
zIndex:7}).add().align(d.position,!1,d.relativeTo||"plotBox")}};b.prototype.setColorRecursive=function(a,b,c,e,f){var d=this,h=d&&d.chart;h=h&&h.options&&h.options.colors;if(a){var g=D(a,{colors:h,index:e,mapOptionsToLevel:d.mapOptionsToLevel,parentColor:b,parentColorIndex:c,series:d,siblings:f});if(b=d.points[a.i])b.color=g.color,b.colorIndex=g.colorIndex;(a.children||[]).forEach(function(b,c){d.setColorRecursive(b,g.color,g.colorIndex,c,a.children.length)})}};b.prototype.setPointValues=function(){var a=
|
|
40
|
+
this,b=a.xAxis,c=a.yAxis,e=a.chart.styledMode;a.points.forEach(function(d){var h=d.node,f=h.pointValues;h=h.visible;if(f&&h){h=f.height;var g=f.width,k=f.x,p=f.y,l=e?0:(a.pointAttribs(d)["stroke-width"]||0)%2/2;f=Math.round(b.toPixels(k,!0))-l;g=Math.round(b.toPixels(k+g,!0))-l;k=Math.round(c.toPixels(p,!0))-l;h=Math.round(c.toPixels(p+h,!0))-l;h={x:Math.min(f,g),y:Math.min(k,h),width:Math.abs(g-f),height:Math.abs(h-k)};d.plotX=h.x+h.width/2;d.plotY=h.y+h.height/2;d.shapeArgs=h}else delete d.plotX,
|
|
41
|
+
delete d.plotY})};b.prototype.setRootNode=function(a,b,c){a=B({newRootId:a,previousRootId:this.rootNode,redraw:w(b,!0),series:this},c);O(this,"setRootNode",a,function(a){var b=a.series;b.idPreviousRoot=a.previousRootId;b.rootNode=a.newRootId;b.isDirty=!0;a.redraw&&b.chart.redraw()})};b.prototype.setState=function(a){this.options.inactiveOtherPoints=!0;t.prototype.setState.call(this,a,!1);this.options.inactiveOtherPoints=!1};b.prototype.setTreeValues=function(a){var b=this,d=b.options,c=b.nodeMap[b.rootNode];
|
|
42
|
+
d=k.isBoolean(d.levelIsConstant)?d.levelIsConstant:!0;var e=0,f=[],g=b.points[a.i];a.children.forEach(function(a){a=b.setTreeValues(a);f.push(a);a.ignore||(e+=a.val)});Q(f,function(a,b){return(a.sortIndex||0)-(b.sortIndex||0)});var l=w(g&&g.options.value,e);g&&(g.value=l);B(a,{children:f,childrenTotal:e,ignore:!(w(g&&g.visible,!0)&&0<l),isLeaf:a.visible&&!e,levelDynamic:a.level-(d?0:c.level),name:w(g&&g.name,""),sortIndex:w(g&&g.sortIndex,-l),val:l});return a};b.prototype.sliceAndDice=function(a,
|
|
43
|
+
b){return this.algorithmFill(!0,a,b)};b.prototype.squarified=function(a,b){return this.algorithmLowAspectRatio(!0,a,b)};b.prototype.strip=function(a,b){return this.algorithmLowAspectRatio(!1,a,b)};b.prototype.stripes=function(a,b){return this.algorithmFill(!1,a,b)};b.prototype.translate=function(){var a=this,b=a.options,c=N(a);t.prototype.translate.call(a);var e=a.tree=a.getTree();var f=a.nodeMap[c];""===c||f&&f.children.length||(a.setRootNode("",!1),c=a.rootNode,f=a.nodeMap[c]);a.renderTraverseUpButton(c);
|
|
44
|
+
a.mapOptionsToLevel=M({from:f.level+1,levels:b.levels,to:e.height,defaults:{levelIsConstant:a.options.levelIsConstant,colorByPoint:b.colorByPoint}});k.recursive(a.nodeMap[a.rootNode],function(b){var c=!1,d=b.parent;b.visible=!0;if(d||""===d)c=a.nodeMap[d];return c});k.recursive(a.nodeMap[a.rootNode].children,function(a){var b=!1;a.forEach(function(a){a.visible=!0;a.children.length&&(b=(b||[]).concat(a.children))});return b});a.setTreeValues(e);a.axisRatio=a.xAxis.len/a.yAxis.len;a.nodeMap[""].pointValues=
|
|
45
|
+
c={x:0,y:0,width:k.AXIS_MAX,height:k.AXIS_MAX};a.nodeMap[""].values=c=z(c,{width:c.width*a.axisRatio,direction:"vertical"===b.layoutStartingDirection?0:1,val:e.val});a.calculateChildrenAreas(e,c);a.colorAxis||b.colorByPoint||a.setColorRecursive(a.tree);b.allowTraversingTree&&(b=f.pointValues,a.xAxis.setExtremes(b.x,b.x+b.width,!1),a.yAxis.setExtremes(b.y,b.y+b.height,!1),a.xAxis.setScale(),a.yAxis.setScale());a.setPointValues()};b.defaultOptions=z(G.defaultOptions,{allowTraversingTree:!1,animationLimit:250,
|
|
46
|
+
borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var a=this&&this.point?this.point:{};return F(a.name)?a.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}},traverseUpButton:{position:{align:"right",
|
|
47
|
+
x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:L?0:.1,halo:!1,opacity:.75,shadow:!1}}});return b}(G);B(q.prototype,{buildKDTree:a,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:f.drawRectangle,getExtremesFromAll:!0,getSymbol:a,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:m,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:k.recursive}});l.registerSeriesType("treemap",
|
|
48
|
+
q);"";return q});f(a,"masters/modules/treemap.src.js",[],function(){})});
|
|
49
49
|
//# sourceMappingURL=treemap.js.map
|