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/modules/treegrid.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
|
* Tree Grid
|
|
5
5
|
*
|
|
@@ -1916,7 +1916,7 @@
|
|
|
1916
1916
|
|
|
1917
1917
|
return Tree;
|
|
1918
1918
|
});
|
|
1919
|
-
_registerModule(_modules, 'Core/Axis/TreeGridTick.js', [_modules['Core/
|
|
1919
|
+
_registerModule(_modules, 'Core/Axis/TreeGridTick.js', [_modules['Core/Utilities.js']], function (U) {
|
|
1920
1920
|
/* *
|
|
1921
1921
|
*
|
|
1922
1922
|
* (c) 2016 Highsoft AS
|
|
@@ -2037,7 +2037,7 @@
|
|
|
2037
2037
|
icon
|
|
2038
2038
|
.attr({
|
|
2039
2039
|
cursor: 'pointer',
|
|
2040
|
-
'fill': pick(params.color,
|
|
2040
|
+
'fill': pick(params.color, "#666666" /* neutralColor60 */),
|
|
2041
2041
|
'stroke-width': 1,
|
|
2042
2042
|
stroke: options.lineColor,
|
|
2043
2043
|
strokeWidth: options.lineWidth || 0
|
|
@@ -2266,8 +2266,14 @@
|
|
|
2266
2266
|
|
|
2267
2267
|
return TreeGridTick;
|
|
2268
2268
|
});
|
|
2269
|
-
_registerModule(_modules, '
|
|
2269
|
+
_registerModule(_modules, 'Series/TreeUtilities.js', [_modules['Core/Color/Color.js'], _modules['Core/Utilities.js']], function (Color, U) {
|
|
2270
2270
|
/* *
|
|
2271
|
+
*
|
|
2272
|
+
* (c) 2014-2021 Highsoft AS
|
|
2273
|
+
*
|
|
2274
|
+
* Authors: Jon Arild Nygard / Oystein Moseng
|
|
2275
|
+
*
|
|
2276
|
+
* License: www.highcharts.com/license
|
|
2271
2277
|
*
|
|
2272
2278
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
2273
2279
|
*
|
|
@@ -2278,96 +2284,45 @@
|
|
|
2278
2284
|
isObject = U.isObject,
|
|
2279
2285
|
merge = U.merge,
|
|
2280
2286
|
pick = U.pick;
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2287
|
+
/* *
|
|
2288
|
+
*
|
|
2289
|
+
* Functions
|
|
2290
|
+
*
|
|
2291
|
+
* */
|
|
2286
2292
|
/* eslint-disable valid-jsdoc */
|
|
2287
|
-
/**
|
|
2288
|
-
* @todo Combine buildTree and buildNode with setTreeValues
|
|
2289
|
-
* @todo Remove logic from Treemap and make it utilize this mixin.
|
|
2290
|
-
* @private
|
|
2291
|
-
*/
|
|
2292
|
-
var setTreeValues = function setTreeValues(tree,
|
|
2293
|
-
options) {
|
|
2294
|
-
var before = options.before,
|
|
2295
|
-
idRoot = options.idRoot,
|
|
2296
|
-
mapIdToNode = options.mapIdToNode,
|
|
2297
|
-
nodeRoot = mapIdToNode[idRoot],
|
|
2298
|
-
levelIsConstant = (isBoolean(options.levelIsConstant) ?
|
|
2299
|
-
options.levelIsConstant :
|
|
2300
|
-
true),
|
|
2301
|
-
points = options.points,
|
|
2302
|
-
point = points[tree.i],
|
|
2303
|
-
optionsPoint = point && point.options || {},
|
|
2304
|
-
childrenTotal = 0,
|
|
2305
|
-
children = [],
|
|
2306
|
-
value;
|
|
2307
|
-
tree.levelDynamic = tree.level - (levelIsConstant ? 0 : nodeRoot.level);
|
|
2308
|
-
tree.name = pick(point && point.name, '');
|
|
2309
|
-
tree.visible = (idRoot === tree.id ||
|
|
2310
|
-
(isBoolean(options.visible) ? options.visible : false));
|
|
2311
|
-
if (isFn(before)) {
|
|
2312
|
-
tree = before(tree, options);
|
|
2313
|
-
}
|
|
2314
|
-
// First give the children some values
|
|
2315
|
-
tree.children.forEach(function (child, i) {
|
|
2316
|
-
var newOptions = extend({},
|
|
2317
|
-
options);
|
|
2318
|
-
extend(newOptions, {
|
|
2319
|
-
index: i,
|
|
2320
|
-
siblings: tree.children.length,
|
|
2321
|
-
visible: tree.visible
|
|
2322
|
-
});
|
|
2323
|
-
child = setTreeValues(child, newOptions);
|
|
2324
|
-
children.push(child);
|
|
2325
|
-
if (child.visible) {
|
|
2326
|
-
childrenTotal += child.val;
|
|
2327
|
-
}
|
|
2328
|
-
});
|
|
2329
|
-
// Set the values
|
|
2330
|
-
value = pick(optionsPoint.value, childrenTotal);
|
|
2331
|
-
tree.visible = value >= 0 && (childrenTotal > 0 || tree.visible);
|
|
2332
|
-
tree.children = children;
|
|
2333
|
-
tree.childrenTotal = childrenTotal;
|
|
2334
|
-
tree.isLeaf = tree.visible && !childrenTotal;
|
|
2335
|
-
tree.val = value;
|
|
2336
|
-
return tree;
|
|
2337
|
-
};
|
|
2338
2293
|
/**
|
|
2339
2294
|
* @private
|
|
2340
2295
|
*/
|
|
2341
|
-
|
|
2342
|
-
options
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
getColorByPoint,
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
colorIndex;
|
|
2296
|
+
function getColor(node, options) {
|
|
2297
|
+
var index = options.index,
|
|
2298
|
+
mapOptionsToLevel = options.mapOptionsToLevel,
|
|
2299
|
+
parentColor = options.parentColor,
|
|
2300
|
+
parentColorIndex = options.parentColorIndex,
|
|
2301
|
+
series = options.series,
|
|
2302
|
+
colors = options.colors,
|
|
2303
|
+
siblings = options.siblings,
|
|
2304
|
+
points = series.points,
|
|
2305
|
+
chartOptionsChart = series.chart.options.chart;
|
|
2306
|
+
var getColorByPoint,
|
|
2307
|
+
point,
|
|
2308
|
+
level,
|
|
2309
|
+
colorByPoint,
|
|
2310
|
+
colorIndexByPoint,
|
|
2311
|
+
color,
|
|
2312
|
+
colorIndex;
|
|
2359
2313
|
/**
|
|
2360
2314
|
* @private
|
|
2361
2315
|
*/
|
|
2362
|
-
function
|
|
2363
|
-
|
|
2364
|
-
if (colorVariation
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2316
|
+
var variateColor = function (color) {
|
|
2317
|
+
var colorVariation = level && level.colorVariation;
|
|
2318
|
+
if (colorVariation &&
|
|
2319
|
+
colorVariation.key === 'brightness' &&
|
|
2320
|
+
index &&
|
|
2321
|
+
siblings) {
|
|
2322
|
+
return Color.parse(color).brighten(colorVariation.to * (index / siblings)).get();
|
|
2368
2323
|
}
|
|
2369
2324
|
return color;
|
|
2370
|
-
}
|
|
2325
|
+
};
|
|
2371
2326
|
if (node) {
|
|
2372
2327
|
point = points[node.i];
|
|
2373
2328
|
level = mapOptionsToLevel[node.level] || {};
|
|
@@ -2380,7 +2335,7 @@
|
|
|
2380
2335
|
}
|
|
2381
2336
|
// Select either point color, level color or inherited color.
|
|
2382
2337
|
if (!series.chart.styledMode) {
|
|
2383
|
-
color = pick(point && point.options.color, level && level.color, colorByPoint, parentColor &&
|
|
2338
|
+
color = pick(point && point.options.color, level && level.color, colorByPoint, parentColor && variateColor(parentColor), series.color);
|
|
2384
2339
|
}
|
|
2385
2340
|
colorIndex = pick(point && point.options.colorIndex, level && level.colorIndex, colorIndexByPoint, parentColorIndex, options.colorIndex);
|
|
2386
2341
|
}
|
|
@@ -2388,31 +2343,32 @@
|
|
|
2388
2343
|
color: color,
|
|
2389
2344
|
colorIndex: colorIndex
|
|
2390
2345
|
};
|
|
2391
|
-
}
|
|
2346
|
+
}
|
|
2392
2347
|
/**
|
|
2393
2348
|
* Creates a map from level number to its given options.
|
|
2394
2349
|
*
|
|
2395
2350
|
* @private
|
|
2396
|
-
*
|
|
2351
|
+
*
|
|
2397
2352
|
* @param {object} params
|
|
2398
|
-
*
|
|
2399
|
-
*
|
|
2400
|
-
*
|
|
2401
|
-
*
|
|
2402
|
-
*
|
|
2403
|
-
*
|
|
2404
|
-
*
|
|
2353
|
+
* Object containing parameters.
|
|
2354
|
+
* - `defaults` Object containing default options. The default options are
|
|
2355
|
+
* merged with the userOptions to get the final options for a specific
|
|
2356
|
+
* level.
|
|
2357
|
+
* - `from` The lowest level number.
|
|
2358
|
+
* - `levels` User options from series.levels.
|
|
2359
|
+
* - `to` The highest level number.
|
|
2360
|
+
*
|
|
2405
2361
|
* @return {Highcharts.Dictionary<object>|null}
|
|
2406
|
-
*
|
|
2362
|
+
* Returns a map from level number to its given options.
|
|
2407
2363
|
*/
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2364
|
+
function getLevelOptions(params) {
|
|
2365
|
+
var result = null,
|
|
2366
|
+
defaults,
|
|
2367
|
+
converted,
|
|
2368
|
+
i,
|
|
2369
|
+
from,
|
|
2370
|
+
to,
|
|
2371
|
+
levels;
|
|
2416
2372
|
if (isObject(params)) {
|
|
2417
2373
|
result = {};
|
|
2418
2374
|
from = isNumber(params.from) ? params.from : 1;
|
|
@@ -2426,16 +2382,14 @@
|
|
|
2426
2382
|
options;
|
|
2427
2383
|
if (isObject(item) && isNumber(item.level)) {
|
|
2428
2384
|
options = merge({}, item);
|
|
2429
|
-
levelIsConstant = (
|
|
2430
|
-
options.levelIsConstant :
|
|
2431
|
-
defaults.levelIsConstant);
|
|
2385
|
+
levelIsConstant = pick(options.levelIsConstant, defaults.levelIsConstant);
|
|
2432
2386
|
// Delete redundant properties.
|
|
2433
2387
|
delete options.levelIsConstant;
|
|
2434
2388
|
delete options.level;
|
|
2435
2389
|
// Calculate which level these options apply to.
|
|
2436
2390
|
level = item.level + (levelIsConstant ? 0 : from - 1);
|
|
2437
2391
|
if (isObject(obj[level])) {
|
|
2438
|
-
|
|
2392
|
+
merge(true, obj[level], options); // #16329
|
|
2439
2393
|
}
|
|
2440
2394
|
else {
|
|
2441
2395
|
obj[level] = options;
|
|
@@ -2450,23 +2404,70 @@
|
|
|
2450
2404
|
}
|
|
2451
2405
|
}
|
|
2452
2406
|
return result;
|
|
2453
|
-
}
|
|
2407
|
+
}
|
|
2408
|
+
/**
|
|
2409
|
+
* @private
|
|
2410
|
+
* @todo Combine buildTree and buildNode with setTreeValues
|
|
2411
|
+
* @todo Remove logic from Treemap and make it utilize this mixin.
|
|
2412
|
+
*/
|
|
2413
|
+
function setTreeValues(tree, options) {
|
|
2414
|
+
var before = options.before,
|
|
2415
|
+
idRoot = options.idRoot,
|
|
2416
|
+
mapIdToNode = options.mapIdToNode,
|
|
2417
|
+
nodeRoot = mapIdToNode[idRoot],
|
|
2418
|
+
levelIsConstant = (options.levelIsConstant !== false),
|
|
2419
|
+
points = options.points,
|
|
2420
|
+
point = points[tree.i],
|
|
2421
|
+
optionsPoint = point && point.options || {},
|
|
2422
|
+
children = [];
|
|
2423
|
+
var childrenTotal = 0;
|
|
2424
|
+
tree.levelDynamic = tree.level - (levelIsConstant ? 0 : nodeRoot.level);
|
|
2425
|
+
tree.name = pick(point && point.name, '');
|
|
2426
|
+
tree.visible = (idRoot === tree.id ||
|
|
2427
|
+
options.visible === true);
|
|
2428
|
+
if (typeof before === 'function') {
|
|
2429
|
+
tree = before(tree, options);
|
|
2430
|
+
}
|
|
2431
|
+
// First give the children some values
|
|
2432
|
+
tree.children.forEach(function (child, i) {
|
|
2433
|
+
var newOptions = extend({},
|
|
2434
|
+
options);
|
|
2435
|
+
extend(newOptions, {
|
|
2436
|
+
index: i,
|
|
2437
|
+
siblings: tree.children.length,
|
|
2438
|
+
visible: tree.visible
|
|
2439
|
+
});
|
|
2440
|
+
child = setTreeValues(child, newOptions);
|
|
2441
|
+
children.push(child);
|
|
2442
|
+
if (child.visible) {
|
|
2443
|
+
childrenTotal += child.val;
|
|
2444
|
+
}
|
|
2445
|
+
});
|
|
2446
|
+
// Set the values
|
|
2447
|
+
var value = pick(optionsPoint.value,
|
|
2448
|
+
childrenTotal);
|
|
2449
|
+
tree.visible = value >= 0 && (childrenTotal > 0 || tree.visible);
|
|
2450
|
+
tree.children = children;
|
|
2451
|
+
tree.childrenTotal = childrenTotal;
|
|
2452
|
+
tree.isLeaf = tree.visible && !childrenTotal;
|
|
2453
|
+
tree.val = value;
|
|
2454
|
+
return tree;
|
|
2455
|
+
}
|
|
2454
2456
|
/**
|
|
2455
2457
|
* Update the rootId property on the series. Also makes sure that it is
|
|
2456
2458
|
* accessible to exporting.
|
|
2457
2459
|
*
|
|
2458
2460
|
* @private
|
|
2459
|
-
* @function updateRootId
|
|
2460
2461
|
*
|
|
2461
2462
|
* @param {object} series
|
|
2462
|
-
*
|
|
2463
|
+
* The series to operate on.
|
|
2463
2464
|
*
|
|
2464
2465
|
* @return {string}
|
|
2465
|
-
*
|
|
2466
|
+
* Returns the resulting rootId after update.
|
|
2466
2467
|
*/
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2468
|
+
function updateRootId(series) {
|
|
2469
|
+
var rootId,
|
|
2470
|
+
options;
|
|
2470
2471
|
if (isObject(series)) {
|
|
2471
2472
|
// Get the series options.
|
|
2472
2473
|
options = isObject(series.options) ? series.options : {};
|
|
@@ -2480,17 +2481,22 @@
|
|
|
2480
2481
|
series.rootNode = rootId;
|
|
2481
2482
|
}
|
|
2482
2483
|
return rootId;
|
|
2483
|
-
}
|
|
2484
|
-
|
|
2484
|
+
}
|
|
2485
|
+
/* *
|
|
2486
|
+
*
|
|
2487
|
+
* Default Export
|
|
2488
|
+
*
|
|
2489
|
+
* */
|
|
2490
|
+
var TreeUtilities = {
|
|
2485
2491
|
getColor: getColor,
|
|
2486
2492
|
getLevelOptions: getLevelOptions,
|
|
2487
2493
|
setTreeValues: setTreeValues,
|
|
2488
2494
|
updateRootId: updateRootId
|
|
2489
2495
|
};
|
|
2490
2496
|
|
|
2491
|
-
return
|
|
2497
|
+
return TreeUtilities;
|
|
2492
2498
|
});
|
|
2493
|
-
_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['
|
|
2499
|
+
_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) {
|
|
2494
2500
|
/* *
|
|
2495
2501
|
*
|
|
2496
2502
|
* (c) 2016 Highsoft AS
|
|
@@ -2501,7 +2507,7 @@
|
|
|
2501
2507
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
2502
2508
|
*
|
|
2503
2509
|
* */
|
|
2504
|
-
var getLevelOptions =
|
|
2510
|
+
var getLevelOptions = TU.getLevelOptions;
|
|
2505
2511
|
var addEvent = U.addEvent,
|
|
2506
2512
|
find = U.find,
|
|
2507
2513
|
fireEvent = U.fireEvent,
|
package/modules/treemap.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highcharts JS v9.
|
|
2
|
+
Highcharts JS v9.3.0 (2021-10-21)
|
|
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.lP.total/this.nH,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}()});
|
|
14
|
-
|
|
15
|
-
function(){var
|
|
16
|
-
this;b.name=void 0;b.node=void 0;b.options=void 0;b.series=void 0;b.value=void 0;return b}t(b,a);b.prototype.getClassName=function(){var
|
|
17
|
-
b.prototype.setState=function(
|
|
18
|
-
100;a.isBoolean=function(a){return"boolean"===typeof a};a.eachObject=function(a,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
b.rootId,"");
|
|
23
|
-
|
|
24
|
-
e,
|
|
25
|
-
|
|
26
|
-
k=0,
|
|
27
|
-
|
|
28
|
-
!0,
|
|
29
|
-
b={id:a,i:b,children:h,height:
|
|
30
|
-
{val:a.childrenTotal,direction:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
(
|
|
34
|
-
|
|
35
|
-
a=this.getListOfParents(this.data,a);this.nodeMap={};return this.buildNode("",-1,0,a)};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.init=function(a,b){
|
|
36
|
-
|
|
37
|
-
"";a={stroke:a&&a.borderColor||
|
|
38
|
-
a.fill="none":b&&(a.fill=
|
|
39
|
-
0,0,function(){b.drillUp()},a,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:
|
|
40
|
-
c){
|
|
41
|
-
f),height:Math.abs(h-
|
|
42
|
-
|
|
43
|
-
""),sortIndex:
|
|
44
|
-
|
|
45
|
-
return b});a.setTreeValues(e);a.axisRatio=a.xAxis.len/a.yAxis.len;a.nodeMap[""].pointValues=
|
|
46
|
-
a.setPointValues()};b.defaultOptions=
|
|
47
|
-
levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}},traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:
|
|
48
|
-
"colorValue"],pointArrayMap:["value"],pointClass:
|
|
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(l){a(l);a.Highcharts=l;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function l(a,e,d,t){a.hasOwnProperty(e)||(a[e]=t.apply(null,d))}a=a?a._modules:{};l(a,"Series/ColorMapComposition.js",[a["Core/Utilities.js"]],function(a){var e=a.defined,d=a.wrap,t={pointArrayMap:["value"],
|
|
10
|
+
axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],parallelArrays:["x","y","value"],colorKey:"value"},p;(function(n){function a(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}function f(b){var g={};!e(b.color)||b.state&&"normal"!==b.state||(g[this.colorProp||"fill"]=b.color);return g}function r(b,g,a){b=b.call(this,g,a);g.moveToTopOnHover&&(b.zIndex="hover"===a?1:0);return b}n.colorMapSeriesMixin=t;var b=[];n.compose=function(m,
|
|
11
|
+
g){g&&-1===b.indexOf(g)&&(b.push(g),g=g.prototype,g.dataLabelOnNull=!0,g.moveToTopOnHover=!0,g.isValid=a);-1===b.indexOf(m)&&(b.push(m),g=m.prototype,g.colorAttribs=f,d(g,"pointAttribs",r));return m};n.seriesColorAttribs=f})(p||(p={}));return p});l(a,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function a(a,d,t,p){this.height=a;this.width=d;this.plot=p;this.startDirection=this.direction=t;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,
|
|
12
|
+
nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,d){return Math.max(a/d,d/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,
|
|
13
|
+
this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,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}()});l(a,"Series/DrawPointComposition.js",[],function(){var a;(function(a){function d(a){var d=this,f=a.animatableAttribs,n=a.onComplete,b=a.css,m=a.renderer,g=this.series&&this.series.chart.hasRendered?void 0:this.series&&this.series.options.animation,A=this.graphic;a.attribs=
|
|
14
|
+
a.attribs||{};a.attribs["class"]=this.getClassName();if(this.shouldDraw())A||(this.graphic=A=m[a.shapeType](a.shapeArgs).add(a.group)),A.css(b).attr(a.attribs).animate(f,a.isNew?!1:g,n);else if(A){var z=function(){d.graphic=A=A&&A.destroy();"function"===typeof n&&n()};Object.keys(f).length?A.animate(f,void 0,function(){z()}):z()}}function e(){return!this.isNull}var p=[];a.compose=function(a){if(-1===p.indexOf(a)){p.push(a);var n=a.prototype;n.draw=d;n.shouldDraw||(n.shouldDraw=e)}return a}})(a||(a=
|
|
15
|
+
{}));return a});l(a,"Series/Treemap/TreemapPoint.js",[a["Series/DrawPointComposition.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e,d){var t=this&&this.__extends||function(){var b=function(a,g){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var g in a)a.hasOwnProperty(g)&&(b[g]=a[g])};return b(a,g)};return function(a,g){function m(){this.constructor=a}b(a,g);a.prototype=null===g?Object.create(g):(m.prototype=g.prototype,
|
|
16
|
+
new m)}}(),p=e.series.prototype.pointClass,n=e.seriesTypes;e=n.pie.prototype.pointClass;var q=d.extend,f=d.isNumber,r=d.pick;d=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}t(b,a);b.prototype.getClassName=function(){var b=p.prototype.getClassName.call(this),a=this.series,m=a.options;this.node.level<=a.nodeMap[a.rootNode].level?b+=" highcharts-above-level":this.node.isLeaf||r(m.interactByLeaf,
|
|
17
|
+
!m.allowTraversingTree)?this.node.isLeaf||(b+=" highcharts-internal-node"):b+=" highcharts-internal-node-interactive";return b};b.prototype.isValid=function(){return!(!this.id&&!f(this.value))};b.prototype.setState=function(b){p.prototype.setState.call(this,b);this.graphic&&this.graphic.attr({zIndex:"hover"===b?1:0})};b.prototype.shouldDraw=function(){return f(this.plotY)&&null!==this.y};return b}(n.scatter.prototype.pointClass);q(d.prototype,{setVisible:e.prototype.setVisible});a.compose(d);return d});
|
|
18
|
+
l(a,"Series/Treemap/TreemapUtilities.js",[a["Core/Utilities.js"]],function(a){var e=a.objectEach,d;(function(a){function d(a,e,f){void 0===f&&(f=this);a=e.call(f,a);!1!==a&&d(a,e,f)}a.AXIS_MAX=100;a.isBoolean=function(a){return"boolean"===typeof a};a.eachObject=function(a,d,f){f=f||this;e(a,function(e,b){d.call(f,e,b,a)})};a.recursive=d})(d||(d={}));return d});l(a,"Series/TreeUtilities.js",[a["Core/Color/Color.js"],a["Core/Utilities.js"]],function(a,e){function d(a,m){var b=m.before,f=m.idRoot,e=
|
|
19
|
+
m.mapIdToNode[f],n=m.points[a.i],p=n&&n.options||{},F=[],q=0;a.levelDynamic=a.level-(!1!==m.levelIsConstant?0:e.level);a.name=r(n&&n.name,"");a.visible=f===a.id||!0===m.visible;"function"===typeof b&&(a=b(a,m));a.children.forEach(function(b,f){var g=t({},m);t(g,{index:f,siblings:a.children.length,visible:a.visible});b=d(b,g);F.push(b);b.visible&&(q+=b.val)});b=r(p.value,q);a.visible=0<=b&&(0<q||a.visible);a.children=F;a.childrenTotal=q;a.isLeaf=a.visible&&!q;a.val=b;return a}var t=e.extend,p=e.isArray,
|
|
20
|
+
n=e.isNumber,q=e.isObject,f=e.merge,r=e.pick;return{getColor:function(b,m){var d=m.index,f=m.mapOptionsToLevel,e=m.parentColor,n=m.parentColorIndex,q=m.series,p=m.colors,t=m.siblings,l=q.points,E=q.chart.options.chart,x;if(b){l=l[b.i];b=f[b.level]||{};if(f=l&&b.colorByPoint){var G=l.index%(p?p.length:E.colorCount);var C=p&&p[G]}if(!q.chart.styledMode){p=l&&l.options.color;E=b&&b.color;if(x=e)x=(x=b&&b.colorVariation)&&"brightness"===x.key&&d&&t?a.parse(e).brighten(d/t*x.to).get():e;x=r(p,E,C,x,q.color)}var I=
|
|
21
|
+
r(l&&l.options.colorIndex,b&&b.colorIndex,G,n,m.colorIndex)}return{color:x,colorIndex:I}},getLevelOptions:function(a){var b=null;if(q(a)){b={};var d=n(a.from)?a.from:1;var e=a.levels;var l={};var t=q(a.defaults)?a.defaults:{};p(e)&&(l=e.reduce(function(a,b){if(q(b)&&n(b.level)){var e=f({},b);var m=r(e.levelIsConstant,t.levelIsConstant);delete e.levelIsConstant;delete e.level;b=b.level+(m?0:d-1);q(a[b])?f(!0,a[b],e):a[b]=e}return a},{}));e=n(a.to)?a.to:1;for(a=0;a<=e;a++)b[a]=f({},t,q(l[a])?l[a]:{})}return b},
|
|
22
|
+
setTreeValues:d,updateRootId:function(a){if(q(a)){var b=q(a.options)?a.options:{};b=r(a.rootNode,b.rootId,"");q(a.userOptions)&&(a.userOptions.rootId=b);a.rootNode=b}return b}}});l(a,"Series/Treemap/TreemapComposition.js",[a["Core/Series/SeriesRegistry.js"],a["Series/Treemap/TreemapUtilities.js"],a["Core/Utilities.js"]],function(a,e,d){var l=d.addEvent,p=d.extend,n=!1;l(a.series,"afterBindAxes",function(){var a=this.xAxis,d=this.yAxis;if(a&&d)if(this.is("treemap")){var l={endOnTick:!1,gridLineWidth:0,
|
|
23
|
+
lineWidth:0,min:0,minPadding:0,max:e.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]};p(d.options,l);p(a.options,l);n=!0}else n&&(d.setOptions(d.userOptions),a.setOptions(a.userOptions),n=!1)})});l(a,"Series/Treemap/TreemapSeries.js",[a["Core/Color/Color.js"],a["Series/ColorMapComposition.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"],
|
|
24
|
+
a["Series/TreeUtilities.js"],a["Core/Utilities.js"]],function(a,e,d,l,p,n,q,f,r,b){var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var h in a)a.hasOwnProperty(h)&&(c[h]=a[h])};return a(b,c)};return function(b,c){function h(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)}}(),g=a.parse,t=e.colorMapSeriesMixin;a=d.noop;var z=p.series;d=
|
|
25
|
+
p.seriesTypes;var E=d.column,M=d.heatmap,F=d.scatter,N=r.getColor,O=r.getLevelOptions,P=r.updateRootId,x=b.addEvent,G=b.correctFloat,C=b.defined,I=b.error,H=b.extend,Q=b.fireEvent,K=b.isArray,R=b.isObject,J=b.isString,D=b.merge,y=b.pick,S=b.stableSort;r=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.axisRatio=void 0;c.data=void 0;c.mapOptionsToLevel=void 0;c.nodeMap=void 0;c.options=void 0;c.points=void 0;c.rootNode=void 0;c.tree=void 0;return c}m(b,a);b.prototype.algorithmCalcPoints=
|
|
26
|
+
function(a,b,k,B){var c,h,u,d,e=k.lW,w=k.lH,f=k.plot,g=0,m=k.elArr.length-1;if(b)e=k.nW,w=k.nH;else var l=k.elArr[k.elArr.length-1];k.elArr.forEach(function(a){if(b||g<m)0===k.direction?(c=f.x,h=f.y,u=e,d=a/u):(c=f.x,h=f.y,d=w,u=a/d),B.push({x:c,y:h,width:u,height:G(d)}),0===k.direction?f.y+=d:f.x+=u;g+=1});k.reset();0===k.direction?k.width-=e:k.height-=w;f.y=f.parent.y+(f.parent.height-k.height);f.x=f.parent.x+(f.parent.width-k.width);a&&(k.direction=1-k.direction);b||k.addElement(l)};b.prototype.algorithmFill=
|
|
27
|
+
function(a,b,k){var c=[],h,d=b.direction,u=b.x,f=b.y,e=b.width,w=b.height,g,m,l,n;k.forEach(function(k){h=k.val/b.val*b.height*b.width;g=u;m=f;0===d?(n=w,l=h/n,e-=l,u+=l):(l=e,n=h/l,w-=n,f+=n);c.push({x:g,y:m,width:l,height:n});a&&(d=1-d)});return c};b.prototype.algorithmLowAspectRatio=function(a,b,k){var c=[],h=this,d,f={x:b.x,y:b.y,parent:b},e=0,g=k.length-1,w=new n(b.height,b.width,b.direction,f);k.forEach(function(k){d=k.val/b.val*b.height*b.width;w.addElement(d);w.lP.nR>w.lP.lR&&h.algorithmCalcPoints(a,
|
|
28
|
+
!1,w,c,f);e===g&&h.algorithmCalcPoints(a,!0,w,c,f);e+=1});return c};b.prototype.alignDataLabel=function(a,b,k){var c=k.style;c&&!C(c.textOverflow)&&b.text&&b.getBBox().width>b.text.textWidth&&b.css({textOverflow:"ellipsis",width:c.width+="px"});E.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:(a.node.zIndex||0)+1})};b.prototype.buildNode=function(a,b,k,d,v){var c=this,h=[],f=c.points[b],e=0,B;(d[a]||[]).forEach(function(b){B=c.buildNode(c.points[b].id,b,k+1,d,
|
|
29
|
+
a);e=Math.max(B.height+1,e);h.push(B)});b={id:a,i:b,children:h,height:e,level:k,parent:v,visible:!1};c.nodeMap[b.id]=b;f&&(f.node=b);return b};b.prototype.calculateChildrenAreas=function(a,b){var c=this,h=c.options,v=c.mapOptionsToLevel[a.level+1],d=y(c[v&&v.layoutAlgorithm]&&v.layoutAlgorithm,h.layoutAlgorithm),e=h.alternateStartingDirection,g=[];a=a.children.filter(function(a){return!a.ignore});v&&v.layoutStartingDirection&&(b.direction="vertical"===v.layoutStartingDirection?0:1);g=c[d](b,a);a.forEach(function(a,
|
|
30
|
+
h){h=g[h];a.values=D(h,{val:a.childrenTotal,direction:e?1-b.direction:b.direction});a.pointValues=D(h,{x:h.x/c.axisRatio,y:f.AXIS_MAX-h.y-h.height,width:h.width/c.axisRatio});a.children.length&&c.calculateChildrenAreas(a,a.values)})};b.prototype.drawDataLabels=function(){var a=this,b=a.mapOptionsToLevel,k,d;a.points.filter(function(a){return a.node.visible}).forEach(function(c){d=b[c.node.level];k={style:{}};c.node.isLeaf||(k.enabled=!1);d&&d.dataLabels&&(k=D(k,d.dataLabels),a._hasPointLabels=!0);
|
|
31
|
+
c.shapeArgs&&(k.style.width=c.shapeArgs.width,c.dataLabel&&c.dataLabel.css({width:c.shapeArgs.width+"px"}));c.dlOptions=D(k,c.options.dataLabels)});z.prototype.drawDataLabels.call(this)};b.prototype.drawPoints=function(){var a=this,b=a.chart,k=b.renderer,d=b.styledMode,e=a.options,f=d?{}:e.shadow,g=e.borderRadius,l=b.pointCount<e.animationLimit,m=e.allowTraversingTree;a.points.forEach(function(c){var b=c.node.levelDynamic,h={},v={},B={},u="level-group-"+c.node.level,L=!!c.graphic,n=l&&L,p=c.shapeArgs;
|
|
32
|
+
c.shouldDraw()&&(c.isInside=!0,g&&(v.r=g),D(!0,n?h:v,L?p:{},d?{}:a.pointAttribs(c,c.selected?"select":void 0)),a.colorAttribs&&d&&H(B,a.colorAttribs(c)),a[u]||(a[u]=k.g(u).attr({zIndex:1E3-(b||0)}).add(a.group),a[u].survive=!0));c.draw({animatableAttribs:h,attribs:v,css:B,group:a[u],renderer:k,shadow:f,shapeArgs:p,shapeType:"rect"});m&&c.graphic&&(c.drillId=e.interactByLeaf?a.drillToByLeaf(c):a.drillToByGroup(c))})};b.prototype.drillToByGroup=function(a){var c=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||
|
|
33
|
+
a.node.isLeaf||(c=a.id);return c};b.prototype.drillToByLeaf=function(a){var c=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!c;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(c=a.id);return c};b.prototype.drillToNode=function(a,b){I(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"});this.setRootNode(a,b)};b.prototype.drillUp=function(){var a=this.nodeMap[this.rootNode];a&&J(a.parent)&&this.setRootNode(a.parent,!0,{trigger:"traverseUpButton"})};b.prototype.getExtremes=
|
|
34
|
+
function(){var a=z.prototype.getExtremes.call(this,this.colorValueData),b=a.dataMax;this.valueMin=a.dataMin;this.valueMax=b;return z.prototype.getExtremes.call(this)};b.prototype.getListOfParents=function(a,b){a=K(a)?a:[];var c=K(b)?b:[];b=a.reduce(function(a,b,c){b=y(b.parent,"");"undefined"===typeof a[b]&&(a[b]=[]);a[b].push(c);return a},{"":[]});f.eachObject(b,function(a,b,h){""!==b&&-1===c.indexOf(b)&&(a.forEach(function(a){h[""].push(a)}),delete h[b])});return b};b.prototype.getTree=function(){var a=
|
|
35
|
+
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};b.prototype.init=function(a,b){t&&(this.colorAttribs=e.seriesColorAttribs);var c=x(this,"setOptions",function(a){a=a.userOptions;C(a.allowDrillToNode)&&!C(a.allowTraversingTree)&&(a.allowTraversingTree=a.allowDrillToNode,delete a.allowDrillToNode);C(a.drillUpButton)&&!C(a.traverseUpButton)&&(a.traverseUpButton=
|
|
36
|
+
a.drillUpButton,delete a.drillUpButton)});z.prototype.init.call(this,a,b);delete this.opacity;this.eventsToUnbind.push(c);this.options.allowTraversingTree&&this.eventsToUnbind.push(x(this,"click",this.onClickDrillToNode))};b.prototype.onClickDrillToNode=function(a){var b=(a=a.point)&&a.drillId;J(b)&&(a.setState(""),this.setRootNode(b,!0,{trigger:"click"}))};b.prototype.pointAttribs=function(a,b){var c=R(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},h=a&&c[a.node.level]||{};c=this.options;var d=
|
|
37
|
+
b&&c.states[b]||{},e=a&&a.getClassName()||"";a={stroke:a&&a.borderColor||h.borderColor||d.borderColor||c.borderColor,"stroke-width":y(a&&a.borderWidth,h.borderWidth,d.borderWidth,c.borderWidth),dashstyle:a&&a.borderDashStyle||h.borderDashStyle||d.borderDashStyle||c.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=y(d.opacity,c.opacity),a.fill=g(a.fill).setOpacity(b).get(),
|
|
38
|
+
a.cursor="pointer"):-1!==e.indexOf("highcharts-internal-node")?a.fill="none":b&&(a.fill=g(a.fill).brighten(d.brightness).get());return a};b.prototype.renderTraverseUpButton=function(a){var b=this,c=b.options.traverseUpButton,d=y(c.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:d}).align();
|
|
39
|
+
else{var e=(a=c.theme)&&a.states;this.drillUpButton=this.chart.renderer.button(d,0,0,function(){b.drillUp()},a,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:c.position.align,zIndex:7}).add().align(c.position,!1,c.relativeTo||"plotBox")}};b.prototype.setColorRecursive=function(a,b,d,e,f){var c=this,h=c&&c.chart;h=h&&h.options&&h.options.colors;if(a){var k=N(a,{colors:h,index:e,mapOptionsToLevel:c.mapOptionsToLevel,parentColor:b,parentColorIndex:d,series:c,siblings:f});if(b=
|
|
40
|
+
c.points[a.i])b.color=k.color,b.colorIndex=k.colorIndex;(a.children||[]).forEach(function(b,d){c.setColorRecursive(b,k.color,k.colorIndex,d,a.children.length)})}};b.prototype.setPointValues=function(){var a=this,b=a.xAxis,d=a.yAxis,e=a.chart.styledMode;a.points.forEach(function(c){var h=c.node,k=h.pointValues;h=h.visible;if(k&&h){h=k.height;var f=k.width,g=k.x,l=k.y,m=e?0:(a.pointAttribs(c)["stroke-width"]||0)%2/2;k=Math.round(b.toPixels(g,!0))-m;f=Math.round(b.toPixels(g+f,!0))-m;g=Math.round(d.toPixels(l,
|
|
41
|
+
!0))-m;h=Math.round(d.toPixels(l+h,!0))-m;h={x:Math.min(k,f),y:Math.min(g,h),width:Math.abs(f-k),height:Math.abs(h-g)};c.plotX=h.x+h.width/2;c.plotY=h.y+h.height/2;c.shapeArgs=h}else delete c.plotX,delete c.plotY})};b.prototype.setRootNode=function(a,b,d){a=H({newRootId:a,previousRootId:this.rootNode,redraw:y(b,!0),series:this},d);Q(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=
|
|
42
|
+
function(a){this.options.inactiveOtherPoints=!0;z.prototype.setState.call(this,a,!1);this.options.inactiveOtherPoints=!1};b.prototype.setTreeValues=function(a){var b=this,c=b.options,d=b.nodeMap[b.rootNode];c=f.isBoolean(c.levelIsConstant)?c.levelIsConstant:!0;var e=0,g=[],l=b.points[a.i];a.children.forEach(function(a){a=b.setTreeValues(a);g.push(a);a.ignore||(e+=a.val)});S(g,function(a,b){return(a.sortIndex||0)-(b.sortIndex||0)});var m=y(l&&l.options.value,e);l&&(l.value=m);H(a,{children:g,childrenTotal:e,
|
|
43
|
+
ignore:!(y(l&&l.visible,!0)&&0<m),isLeaf:a.visible&&!e,levelDynamic:a.level-(c?0:d.level),name:y(l&&l.name,""),sortIndex:y(l&&l.sortIndex,-m),val:m});return a};b.prototype.sliceAndDice=function(a,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=
|
|
44
|
+
this,b=a.options,d=P(a);z.prototype.translate.call(a);var e=a.tree=a.getTree();var g=a.nodeMap[d];""===d||g&&g.children.length||(a.setRootNode("",!1),d=a.rootNode,g=a.nodeMap[d]);a.renderTraverseUpButton(d);a.mapOptionsToLevel=O({from:g.level+1,levels:b.levels,to:e.height,defaults:{levelIsConstant:a.options.levelIsConstant,colorByPoint:b.colorByPoint}});f.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});f.recursive(a.nodeMap[a.rootNode].children,
|
|
45
|
+
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=d={x:0,y:0,width:f.AXIS_MAX,height:f.AXIS_MAX};a.nodeMap[""].values=d=D(d,{width:d.width*a.axisRatio,direction:"vertical"===b.layoutStartingDirection?0:1,val:e.val});a.calculateChildrenAreas(e,d);a.colorAxis||b.colorByPoint||a.setColorRecursive(a.tree);b.allowTraversingTree&&(b=g.pointValues,a.xAxis.setExtremes(b.x,
|
|
46
|
+
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=D(F.defaultOptions,{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var a=this&&this.point?this.point:{};return J(a.name)?a.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,
|
|
47
|
+
layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}},traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:M?0:.1,halo:!1,opacity:.75,shadow:!1}}});return b}(F);H(r.prototype,{buildKDTree:a,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:l.drawRectangle,getExtremesFromAll:!0,
|
|
48
|
+
getSymbol:a,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:q,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:f.recursive}});e.compose(r);p.registerSeriesType("treemap",r);"";return r});l(a,"masters/modules/treemap.src.js",[],function(){})});
|
|
49
49
|
//# sourceMappingURL=treemap.js.map
|