highcharts 8.2.0 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/es-modules/Accessibility/Accessibility.js +3 -2
- package/es-modules/Accessibility/AccessibilityComponent.js +7 -8
- package/es-modules/Accessibility/Components/ContainerComponent.js +6 -7
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +0 -1
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +4 -4
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +4 -4
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +3 -2
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +4 -4
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +8 -6
- package/es-modules/Accessibility/Components/ZoomComponent.js +7 -6
- package/es-modules/Accessibility/KeyboardNavigation.js +7 -3
- package/es-modules/Accessibility/Options/Options.js +1 -2
- package/es-modules/Accessibility/Utils/ChartUtilities.js +4 -4
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +3 -3
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +2 -3
- package/es-modules/Core/Animation/AnimationUtilities.js +193 -0
- package/es-modules/Core/Animation/Fx.js +378 -0
- package/es-modules/Core/Axis/Axis.js +12 -6
- package/es-modules/Core/Axis/BrokenAxis.js +4 -6
- package/es-modules/Core/Axis/ColorAxis.js +11 -10
- package/es-modules/Core/Axis/GridAxis.js +113 -57
- package/es-modules/Core/Axis/OrdinalAxis.js +4 -5
- package/es-modules/Core/Axis/PlotLineOrBand.js +11 -4
- package/es-modules/Core/Axis/StackingAxis.js +3 -1
- package/es-modules/Core/Axis/TreeGridAxis.js +52 -7
- package/es-modules/Core/Chart/Chart.js +13 -8
- package/es-modules/Core/Chart/Chart3D.js +2 -1
- package/es-modules/Core/Chart/GanttChart.js +5 -9
- package/es-modules/Core/Chart/StockChart.js +6 -7
- package/es-modules/Core/Color/Color.js +419 -0
- package/es-modules/Core/Color/ColorType.js +9 -0
- package/es-modules/Core/Dynamics.js +54 -23
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Interaction.js +9 -6
- package/es-modules/Core/Legend.js +3 -1
- package/es-modules/Core/Navigator.js +8 -4
- package/es-modules/Core/Options.js +13 -11
- package/es-modules/Core/Pointer.js +2 -2
- package/es-modules/Core/Renderer/DOMElementType.js +9 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +220 -0
- package/es-modules/Core/Renderer/HTML/{HTML.js → HTMLRenderer.js} +8 -202
- package/es-modules/Core/Renderer/SVG/SVGElement.js +14 -8
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +0 -1
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +2 -3
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +5 -3
- package/es-modules/Core/Series/BaseSeries.js +157 -0
- package/es-modules/Core/Series/CartesianSeries.js +5553 -0
- package/es-modules/Core/Series/DataLabels.js +11 -9
- package/es-modules/Core/Series/Point.js +5 -3
- package/es-modules/Core/Series/Series.js +138 -5528
- package/es-modules/Core/Series/Series3D.js +1 -1
- package/es-modules/Core/Tooltip.js +2 -1
- package/es-modules/Core/Utilities.js +0 -582
- package/es-modules/Extensions/Annotations/Annotations.js +4 -2
- package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +3 -3
- package/es-modules/Extensions/Annotations/MockPoint.js +3 -3
- package/es-modules/Extensions/Annotations/NavigationBindings.js +5 -4
- package/es-modules/Extensions/Annotations/Popup.js +1 -2
- package/es-modules/Extensions/Annotations/Types/Measure.js +0 -1
- package/es-modules/Extensions/Boost/Boost.js +3 -3
- package/es-modules/Extensions/Boost/BoostAttach.js +5 -4
- package/es-modules/Extensions/Boost/BoostInit.js +1 -1
- package/es-modules/Extensions/Boost/BoostOverrides.js +1 -1
- package/es-modules/Extensions/Boost/BoostUtils.js +1 -1
- package/es-modules/Extensions/Boost/NamedColors.js +1 -1
- package/es-modules/Extensions/Boost/WGLRenderer.js +4 -4
- package/es-modules/Extensions/Boost/WGLShader.js +1 -2
- package/es-modules/Extensions/BoostCanvas.js +9 -6
- package/es-modules/Extensions/CurrentDateIndication.js +3 -7
- package/es-modules/Extensions/Data.js +7 -9
- package/es-modules/Extensions/DataGrouping.js +3 -2
- package/es-modules/Extensions/Debugger.js +3 -2
- package/es-modules/Extensions/DownloadURL.js +5 -3
- package/es-modules/Extensions/DragPanes.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +6 -5
- package/es-modules/Extensions/Drilldown.js +24 -10
- package/es-modules/Extensions/ExportData.js +1 -2
- package/es-modules/Extensions/Exporting.js +9 -2
- package/es-modules/Extensions/MarkerClusters.js +8 -5
- package/es-modules/Extensions/NoDataToDisplay.js +13 -13
- package/es-modules/Extensions/OfflineExporting.js +14 -14
- package/es-modules/Extensions/{Oldie.js → Oldie/Oldie.js} +15 -12
- package/es-modules/{Core/Axis → Extensions/Oldie}/VMLAxis3D.js +1 -1
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +46 -0
- package/es-modules/Extensions/OverlappingDataLabels.js +4 -0
- package/es-modules/Extensions/Pane.js +1 -1
- package/es-modules/Extensions/ParallelCoordinates.js +1 -1
- package/es-modules/Extensions/PatternFill.js +10 -7
- package/es-modules/Extensions/Polar.js +4 -2
- package/es-modules/Extensions/ScrollablePlotArea.js +3 -1
- package/es-modules/Extensions/SeriesLabel.js +4 -3
- package/es-modules/{modules/sonification/chartSonify.js → Extensions/Sonification/ChartSonify.js} +1 -1
- package/es-modules/{modules/sonification → Extensions/Sonification}/Earcon.js +0 -0
- package/es-modules/{modules/sonification → Extensions/Sonification}/Instrument.js +7 -2
- package/es-modules/{modules/sonification/instrumentDefinitions.js → Extensions/Sonification/InstrumentDefinitions.js} +1 -1
- package/es-modules/{modules/sonification/musicalFrequencies.js → Extensions/Sonification/MusicalFrequencies.js} +0 -0
- package/es-modules/{modules/sonification/options.js → Extensions/Sonification/Options.js} +0 -0
- package/es-modules/{modules/sonification/pointSonify.js → Extensions/Sonification/PointSonify.js} +1 -1
- package/es-modules/{modules/sonification/sonification.js → Extensions/Sonification/Sonification.js} +10 -9
- package/es-modules/{modules/sonification → Extensions/Sonification}/Timeline.js +1 -1
- package/es-modules/{modules/sonification/utilities.js → Extensions/Sonification/Utilities.js} +1 -1
- package/es-modules/Extensions/Stacking.js +1 -1
- package/es-modules/Extensions/StaticScale.js +3 -3
- package/es-modules/Extensions/Themes/Avocado.js +3 -4
- package/es-modules/Extensions/Themes/DarkUnica.js +5 -7
- package/es-modules/Extensions/Themes/Gray.js +3 -4
- package/es-modules/Extensions/Themes/HighContrastDark.js +3 -4
- package/es-modules/Extensions/Themes/Sunset.js +3 -4
- package/es-modules/Gantt/Pathfinder.js +6 -0
- package/es-modules/Maps/Map.js +9 -5
- package/es-modules/Maps/MapNavigation.js +0 -1
- package/es-modules/{mixins → Mixins}/CenteredSeries.js +0 -0
- package/es-modules/{mixins → Mixins}/ColorMapSeries.js +7 -3
- package/es-modules/{mixins → Mixins}/ColorSeries.js +7 -3
- package/es-modules/{mixins → Mixins}/DerivedSeries.js +1 -1
- package/es-modules/{mixins → Mixins}/DrawPoint.js +0 -0
- package/es-modules/{mixins → Mixins}/Geometry.js +0 -0
- package/es-modules/{mixins → Mixins}/GeometryCircles.js +0 -0
- package/es-modules/{mixins → Mixins}/IndicatorRequired.js +0 -0
- package/es-modules/{mixins → Mixins}/LegendSymbol.js +0 -0
- package/es-modules/{mixins → Mixins}/MultipleLines.js +0 -0
- package/es-modules/{mixins → Mixins}/Navigation.js +0 -0
- package/es-modules/{mixins → Mixins}/NelderMead.js +0 -0
- package/es-modules/{mixins → Mixins}/Nodes.js +1 -1
- package/es-modules/{mixins → Mixins}/OnSeries.js +1 -1
- package/es-modules/{mixins → Mixins}/Polygon.js +0 -0
- package/es-modules/{mixins → Mixins}/ReduceArray.js +0 -0
- package/es-modules/{mixins → Mixins}/TreeSeries.js +1 -1
- package/es-modules/Series/AreaRangeSeries.js +57 -21
- package/es-modules/Series/AreaSeries.js +38 -6
- package/es-modules/Series/AreaSplineRangeSeries.js +44 -7
- package/es-modules/Series/AreaSplineSeries.js +43 -6
- package/es-modules/Series/BarSeries.js +2 -5
- package/es-modules/Series/BellcurveSeries.js +45 -5
- package/es-modules/Series/BoxPlotSeries.js +7 -6
- package/es-modules/Series/Bubble/BubbleLegend.js +3 -3
- package/es-modules/Series/Bubble/BubbleSeries.js +13 -11
- package/es-modules/Series/BulletSeries.js +5 -5
- package/es-modules/Series/CandlestickSeries.js +7 -6
- package/es-modules/Series/Column3DSeries.js +77 -23
- package/es-modules/Series/ColumnPyramidSeries.js +5 -6
- package/es-modules/Series/ColumnRangeSeries.js +17 -16
- package/es-modules/Series/ColumnSeries.js +18 -14
- package/es-modules/Series/CylinderSeries.js +8 -11
- package/es-modules/Series/DependencyWheelSeries.js +11 -9
- package/es-modules/Series/DotplotSeries.js +3 -11
- package/es-modules/Series/DumbbellSeries.js +11 -7
- package/es-modules/Series/ErrorBarSeries.js +3 -5
- package/es-modules/Series/FlagsSeries.js +13 -9
- package/es-modules/Series/Funnel3DSeries.js +8 -12
- package/es-modules/Series/FunnelSeries.js +6 -6
- package/es-modules/Series/GanttSeries.js +11 -12
- package/es-modules/Series/GaugeSeries.js +6 -5
- package/es-modules/Series/HeatmapSeries.js +9 -7
- package/es-modules/Series/HistogramSeries.js +6 -5
- package/es-modules/Series/ItemSeries.js +5 -5
- package/es-modules/Series/LineSeries.js +13 -0
- package/es-modules/Series/LollipopSeries.js +11 -7
- package/es-modules/Series/MapBubbleSeries.js +4 -5
- package/es-modules/Series/MapLineSeries.js +4 -6
- package/es-modules/Series/MapPointSeries.js +6 -5
- package/es-modules/Series/MapSeries.js +15 -12
- package/es-modules/Series/Networkgraph/DraggableNodes.js +8 -6
- package/es-modules/Series/Networkgraph/Layouts.js +3 -1
- package/es-modules/Series/Networkgraph/Networkgraph.js +8 -7
- package/es-modules/Series/OHLCSeries.js +4 -6
- package/es-modules/Series/OrganizationSeries.js +7 -4
- package/es-modules/Series/PackedBubbleSeries.js +10 -10
- package/es-modules/Series/ParetoSeries.js +6 -5
- package/es-modules/Series/Pie3DSeries.js +3 -2
- package/es-modules/Series/PieSeries.js +36 -10
- package/es-modules/Series/PolygonSeries.js +6 -6
- package/es-modules/Series/Pyramid3DSeries.js +3 -5
- package/es-modules/Series/SankeySeries.js +13 -12
- package/es-modules/Series/Scatter3DSeries.js +4 -6
- package/es-modules/Series/ScatterSeries.js +10 -5
- package/es-modules/Series/SolidGaugeSeries.js +7 -7
- package/es-modules/Series/SplineSeries.js +5 -3
- package/es-modules/Series/StreamgraphSeries.js +41 -5
- package/es-modules/Series/SunburstSeries.js +15 -11
- package/es-modules/Series/TilemapSeries.js +8 -6
- package/es-modules/Series/TimelineSeries.js +6 -5
- package/es-modules/Series/TreemapSeries.js +36 -50
- package/es-modules/Series/VariablePieSeries.js +9 -7
- package/es-modules/Series/VariwideSeries.js +7 -6
- package/es-modules/Series/VectorSeries.js +5 -3
- package/es-modules/Series/VennSeries.js +20 -17
- package/es-modules/Series/WaterfallSeries.js +6 -4
- package/es-modules/Series/WindbarbSeries.js +9 -6
- package/es-modules/Series/WordcloudSeries.js +11 -9
- package/es-modules/Series/XRangeSeries.js +8 -7
- package/es-modules/Stock/Indicators/ABIndicator.js +7 -7
- package/es-modules/Stock/Indicators/ADIndicator.js +4 -3
- package/es-modules/Stock/Indicators/AOIndicator.js +5 -4
- package/es-modules/Stock/Indicators/APOIndicator.js +7 -7
- package/es-modules/Stock/Indicators/ATRIndicator.js +5 -5
- package/es-modules/Stock/Indicators/AroonIndicator.js +6 -5
- package/es-modules/Stock/Indicators/AroonOscillatorIndicator.js +5 -5
- package/es-modules/Stock/Indicators/BBIndicator.js +7 -7
- package/es-modules/Stock/Indicators/CCIIndicator.js +4 -3
- package/es-modules/Stock/Indicators/CMFIndicator.js +3 -4
- package/es-modules/Stock/Indicators/ChaikinIndicator.js +9 -8
- package/es-modules/Stock/Indicators/DEMAIndicator.js +7 -7
- package/es-modules/Stock/Indicators/DPOIndicator.js +4 -3
- package/es-modules/Stock/Indicators/EMAIndicator.js +3 -3
- package/es-modules/Stock/Indicators/IKHIndicator.js +22 -19
- package/es-modules/Stock/Indicators/KeltnerChannelsIndicator.js +10 -7
- package/es-modules/Stock/Indicators/MACDIndicator.js +7 -4
- package/es-modules/Stock/Indicators/MFIIndicator.js +4 -3
- package/es-modules/Stock/Indicators/MomentumIndicator.js +4 -3
- package/es-modules/Stock/Indicators/NATRIndicator.js +4 -6
- package/es-modules/Stock/Indicators/PCIndicator.js +8 -7
- package/es-modules/Stock/Indicators/PPOIndicator.js +7 -7
- package/es-modules/Stock/Indicators/PSARIndicator.js +3 -4
- package/es-modules/Stock/Indicators/PivotPointsIndicator.js +5 -5
- package/es-modules/Stock/Indicators/PriceEnvelopesIndicator.js +5 -5
- package/es-modules/Stock/Indicators/ROCIndicator.js +4 -3
- package/es-modules/Stock/Indicators/RSIIndicator.js +4 -3
- package/es-modules/Stock/Indicators/RegressionIndicators.js +7 -6
- package/es-modules/Stock/Indicators/{Indicators.js → SMAIndicator.js} +9 -6
- package/es-modules/Stock/Indicators/SlowStochasticIndicator.js +6 -8
- package/es-modules/Stock/Indicators/StochasticIndicator.js +8 -8
- package/es-modules/Stock/Indicators/SupertrendIndicator.js +7 -6
- package/es-modules/Stock/Indicators/TEMAIndicator.js +7 -7
- package/es-modules/Stock/Indicators/TRIXIndicator.js +7 -7
- package/es-modules/Stock/Indicators/TrendLineIndicator.js +4 -3
- package/es-modules/Stock/Indicators/VBPIndicator.js +7 -4
- package/es-modules/Stock/Indicators/VWAPIndicator.js +4 -3
- package/es-modules/Stock/Indicators/WMAIndicator.js +4 -3
- package/es-modules/Stock/Indicators/WilliamsRIndicator.js +6 -5
- package/es-modules/Stock/Indicators/ZigzagIndicator.js +5 -7
- package/es-modules/Stock/StockToolsBindings.js +16 -2
- package/es-modules/Stock/StockToolsGui.js +9 -9
- package/es-modules/masters/highcharts-3d.src.js +1 -2
- 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 +3 -2
- 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/dema.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ema.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +2 -2
- package/es-modules/masters/indicators/indicators.src.js +2 -2
- package/es-modules/masters/indicators/keltner-channels.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/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +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/histogram-bellcurve.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 +2 -2
- 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 +2 -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 +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/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 +86 -89
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +88 -149
- package/highcharts-gantt.js +729 -717
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +5570 -5094
- package/highcharts-more.js +164 -163
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +182 -118
- package/highcharts.d.ts +89 -159
- package/highcharts.js +537 -530
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +89 -159
- package/highcharts.src.js +5341 -4976
- package/highmaps.js +635 -627
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +5907 -5530
- package/highstock.js +696 -689
- package/highstock.js.map +1 -1
- package/highstock.src.js +5384 -5026
- package/indicators/acceleration-bands.js +8 -8
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +7 -7
- package/indicators/accumulation-distribution.js +4 -4
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +5 -5
- package/indicators/ao.js +5 -5
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +6 -6
- package/indicators/apo.js +5 -5
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +7 -7
- package/indicators/aroon-oscillator.js +8 -8
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +6 -6
- package/indicators/aroon.js +7 -7
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +6 -6
- package/indicators/atr.js +4 -4
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +6 -14
- package/indicators/bollinger-bands.js +8 -8
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +7 -7
- package/indicators/cci.js +4 -4
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +5 -5
- package/indicators/chaikin.js +6 -6
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +75 -74
- package/indicators/cmf.js +2 -2
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +4 -4
- package/indicators/dema.js +5 -5
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +7 -7
- package/indicators/dpo.js +4 -4
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +5 -5
- package/indicators/ema.js +4 -4
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +4 -5
- package/indicators/ichimoku-kinko-hyo.js +13 -13
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +21 -20
- package/indicators/indicators-all.js +118 -118
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +227 -230
- package/indicators/indicators.js +9 -9
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +7 -7
- package/indicators/keltner-channels.js +8 -8
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +12 -9
- package/indicators/macd.js +10 -10
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +8 -7
- package/indicators/mfi.js +4 -4
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +5 -5
- package/indicators/momentum.js +4 -4
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +5 -5
- package/indicators/natr.js +3 -3
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +5 -5
- package/indicators/pivot-points.js +8 -8
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +6 -6
- package/indicators/ppo.js +5 -5
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +7 -7
- package/indicators/price-channel.js +8 -8
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +65 -65
- package/indicators/price-envelopes.js +7 -7
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +6 -6
- package/indicators/psar.js +2 -2
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +4 -4
- package/indicators/regressions.js +6 -6
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +8 -8
- package/indicators/roc.js +3 -3
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +5 -5
- package/indicators/rsi.js +4 -4
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +5 -5
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +6 -6
- package/indicators/stochastic.js +9 -9
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +66 -66
- package/indicators/supertrend.js +9 -9
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +9 -7
- package/indicators/tema.js +6 -6
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +7 -7
- package/indicators/trendline.js +3 -3
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +5 -5
- package/indicators/trix.js +4 -4
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +7 -7
- package/indicators/volume-by-price.js +13 -13
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +7 -8
- package/indicators/vwap.js +4 -4
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +5 -5
- package/indicators/williams-r.js +4 -4
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +6 -6
- package/indicators/wma.js +4 -4
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +5 -5
- package/indicators/zigzag.js +4 -4
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +6 -7
- package/modules/accessibility.js +148 -147
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +104 -96
- package/modules/annotations-advanced.js +158 -158
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +15 -14
- package/modules/annotations.js +105 -105
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +15 -14
- 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 +16 -16
- package/modules/boost.d.ts +4 -0
- package/modules/boost.js +77 -64
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.d.ts +4 -0
- package/modules/boost.src.js +561 -14
- package/modules/broken-axis.js +12 -12
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +4 -5
- package/modules/bullet.js +6 -6
- package/modules/bullet.js.map +1 -1
- package/modules/bullet.src.js +5 -6
- package/modules/coloraxis.js +22 -21
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +46 -41
- 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 -6
- package/modules/cylinder.js +8 -8
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +18 -21
- package/modules/data.js +32 -32
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +7 -11
- package/modules/datagrouping.js +17 -17
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +3 -4
- package/modules/debugger.js +4 -4
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +4 -4
- package/modules/dependency-wheel.js +8 -8
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +9 -9
- package/modules/dotplot.js +5 -5
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +4 -12
- package/modules/drag-panes.js +7 -7
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +2 -2
- package/modules/draggable-points.js +33 -33
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +6 -6
- package/modules/drilldown.js +23 -22
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +21 -11
- package/modules/dumbbell.js +24 -20
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +396 -136
- package/modules/export-data.js +21 -21
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +8 -7
- package/modules/exporting.js +32 -32
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +10 -3
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +9 -9
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +6 -8
- package/modules/funnel3d.js +17 -17
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +9 -12
- package/modules/gantt.js +194 -189
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +232 -121
- package/modules/grid-axis.js +22 -19
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +130 -64
- package/modules/heatmap.js +33 -33
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +93 -84
- package/modules/histogram-bellcurve.js +10 -10
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +49 -11
- package/modules/item-series.js +9 -9
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +5 -6
- package/modules/lollipop.d.ts +20 -1
- package/modules/lollipop.js +26 -4
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.d.ts +20 -1
- package/modules/lollipop.src.js +1431 -9
- package/modules/map.d.ts +1 -1
- package/modules/map.js +99 -99
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +1 -1
- package/modules/map.src.js +1421 -1409
- package/modules/marker-clusters.js +35 -35
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +5 -5
- package/modules/networkgraph.js +47 -46
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +18 -17
- package/modules/no-data-to-display.js +4 -4
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +15 -12
- package/modules/offline-exporting.js +15 -15
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +20 -18
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +52 -26
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +1401 -22
- package/modules/organization.js +11 -11
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +6 -5
- 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 +5 -5
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +5 -6
- package/modules/pathfinder.js +20 -20
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +7 -1
- package/modules/pattern-fill.js +13 -13
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +10 -10
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +3 -3
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +3 -4
- package/modules/sankey.js +25 -25
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +15 -15
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +3 -3
- package/modules/solid-gauge.js +8 -8
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +4 -5
- package/modules/sonification.js +46 -46
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +21 -16
- package/modules/static-scale.js +4 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +3 -4
- package/modules/stock-tools.js +142 -141
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +40 -21
- package/modules/stock.js +161 -161
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +41 -48
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.js.map +1 -1
- package/modules/streamgraph.src.js +41 -4
- package/modules/sunburst.js +51 -50
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +134 -65
- package/modules/tilemap.js +14 -14
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +9 -9
- package/modules/timeline.js +14 -14
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +7 -8
- package/modules/treegrid.js +57 -52
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +191 -77
- package/modules/treemap.js +35 -34
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +205 -138
- package/modules/variable-pie.js +8 -8
- package/modules/variable-pie.js.map +1 -1
- package/modules/variable-pie.src.js +10 -9
- package/modules/variwide.js +8 -8
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +6 -7
- package/modules/vector.js +6 -6
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +6 -7
- package/modules/venn.js +26 -26
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +23 -23
- package/modules/windbarb.js +11 -11
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +8 -9
- package/modules/wordcloud.js +19 -19
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +14 -14
- package/modules/xrange.js +12 -12
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +8 -9
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +4 -4
- 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 +6 -7
- package/themes/gray.js +1 -1
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +4 -4
- 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.js.map +1 -1
- package/themes/high-contrast-dark.src.js +4 -4
- 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.js.map +1 -1
- package/themes/sunset.src.js +4 -4
- package/es-modules/Core/Renderer/VML/VMLRenderer3D.js +0 -37
package/modules/gantt.src.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts Gantt JS v8.2.
|
|
2
|
+
* @license Highcharts Gantt JS v8.2.2 (2020-10-22)
|
|
3
3
|
*
|
|
4
4
|
* Gantt series
|
|
5
5
|
*
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
|
|
516
516
|
return TreeGridTick;
|
|
517
517
|
});
|
|
518
|
-
_registerModule(_modules, 'Mixins/TreeSeries.js', [_modules['Core/Color.js'], _modules['Core/Utilities.js']], function (Color, U) {
|
|
518
|
+
_registerModule(_modules, 'Mixins/TreeSeries.js', [_modules['Core/Color/Color.js'], _modules['Core/Utilities.js']], function (Color, U) {
|
|
519
519
|
/* *
|
|
520
520
|
*
|
|
521
521
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
@@ -793,40 +793,24 @@
|
|
|
793
793
|
options.labels.rotation = 0;
|
|
794
794
|
};
|
|
795
795
|
/**
|
|
796
|
-
*
|
|
797
|
-
* appropriate unit. This member gives the default string
|
|
798
|
-
* representations used for each unit. For intermediate values,
|
|
799
|
-
* different units may be used, for example the `day` unit can be used
|
|
800
|
-
* on midnight and `hour` unit be used for intermediate values on the
|
|
801
|
-
* same axis.
|
|
796
|
+
* @productdesc {gantt}
|
|
802
797
|
* For grid axes (like in Gantt charts),
|
|
803
798
|
* it is possible to declare as a list to provide different
|
|
804
799
|
* formats depending on available space.
|
|
805
|
-
* For an overview of the replacement codes, see
|
|
806
|
-
* [dateFormat](/class-reference/Highcharts#dateFormat).
|
|
807
800
|
*
|
|
808
801
|
* Defaults to:
|
|
809
802
|
* ```js
|
|
810
803
|
* {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
},
|
|
817
|
-
week: {
|
|
818
|
-
list: ['Week %W', 'W%W']
|
|
819
|
-
},
|
|
820
|
-
month: {
|
|
821
|
-
list: ['%B', '%b', '%o']
|
|
822
|
-
}
|
|
823
|
-
},
|
|
804
|
+
* hour: { list: ['%H:%M', '%H'] },
|
|
805
|
+
* day: { list: ['%A, %e. %B', '%a, %e. %b', '%E'] },
|
|
806
|
+
* week: { list: ['Week %W', 'W%W'] },
|
|
807
|
+
* month: { list: ['%B', '%b', '%o'] }
|
|
808
|
+
* }
|
|
824
809
|
* ```
|
|
825
810
|
*
|
|
826
|
-
* @sample {gantt} gantt/
|
|
827
|
-
* Gantt
|
|
811
|
+
* @sample {gantt} gantt/grid-axis/date-time-label-formats
|
|
812
|
+
* Gantt chart with custom axis date format.
|
|
828
813
|
*
|
|
829
|
-
* @product gantt
|
|
830
814
|
* @apioption xAxis.dateTimeLabelFormats
|
|
831
815
|
*/
|
|
832
816
|
/**
|
|
@@ -903,21 +887,28 @@
|
|
|
903
887
|
};
|
|
904
888
|
tickPositions.forEach(function (pos) {
|
|
905
889
|
var tick = ticks[pos],
|
|
906
|
-
|
|
907
|
-
|
|
890
|
+
labelHeight = 0,
|
|
891
|
+
labelWidth = 0,
|
|
908
892
|
label;
|
|
909
893
|
if (isObject(tick)) {
|
|
910
894
|
label = isObject(tick.label) ? tick.label : {};
|
|
911
|
-
// Find width and height of
|
|
912
|
-
|
|
895
|
+
// Find width and height of label
|
|
896
|
+
labelHeight = label.getBBox ? label.getBBox().height : 0;
|
|
897
|
+
if (label.textStr && !isNumber(label.textPxLength)) {
|
|
898
|
+
label.textPxLength = label.getBBox().width;
|
|
899
|
+
}
|
|
900
|
+
labelWidth = isNumber(label.textPxLength) ?
|
|
901
|
+
// Math.round ensures crisp lines
|
|
902
|
+
Math.round(label.textPxLength) :
|
|
903
|
+
0;
|
|
913
904
|
if (label.textStr) {
|
|
914
905
|
// Set the tickWidth same as the label width after ellipsis
|
|
915
906
|
// applied #10281
|
|
916
|
-
|
|
907
|
+
labelWidth = Math.round(label.getBBox().width);
|
|
917
908
|
}
|
|
918
909
|
// Update the result if width and/or height are larger
|
|
919
|
-
dimensions.height = Math.max(
|
|
920
|
-
dimensions.width = Math.max(
|
|
910
|
+
dimensions.height = Math.max(labelHeight, dimensions.height);
|
|
911
|
+
dimensions.width = Math.max(labelWidth, dimensions.width);
|
|
921
912
|
}
|
|
922
913
|
});
|
|
923
914
|
return dimensions;
|
|
@@ -940,7 +931,7 @@
|
|
|
940
931
|
};
|
|
941
932
|
// First letter of the day of the week, e.g. 'M' for 'Monday'.
|
|
942
933
|
H.dateFormats.E = function (timestamp) {
|
|
943
|
-
return dateFormat('%a', timestamp, true).charAt(0);
|
|
934
|
+
return this.dateFormat('%a', timestamp, true).charAt(0);
|
|
944
935
|
};
|
|
945
936
|
/* eslint-disable no-invalid-this */
|
|
946
937
|
addEvent(Chart, 'afterSetChartSize', function () {
|
|
@@ -1103,6 +1094,32 @@
|
|
|
1103
1094
|
return (lastIndex === thisIndex &&
|
|
1104
1095
|
(isNumber(columnIndex) ? columns.length === columnIndex : true));
|
|
1105
1096
|
};
|
|
1097
|
+
/**
|
|
1098
|
+
* Add extra border based on the provided path.
|
|
1099
|
+
* *
|
|
1100
|
+
* @private
|
|
1101
|
+
*
|
|
1102
|
+
* @param {SVGPath} path
|
|
1103
|
+
* The path of the border.
|
|
1104
|
+
*
|
|
1105
|
+
* @return {Highcharts.SVGElement}
|
|
1106
|
+
*/
|
|
1107
|
+
GridAxisAdditions.prototype.renderBorder = function (path) {
|
|
1108
|
+
var axis = this.axis,
|
|
1109
|
+
renderer = axis.chart.renderer,
|
|
1110
|
+
options = axis.options,
|
|
1111
|
+
extraBorderLine = renderer.path(path)
|
|
1112
|
+
.addClass('highcharts-axis-line')
|
|
1113
|
+
.add(axis.axisBorder);
|
|
1114
|
+
if (!renderer.styledMode) {
|
|
1115
|
+
extraBorderLine.attr({
|
|
1116
|
+
stroke: options.lineColor,
|
|
1117
|
+
'stroke-width': options.lineWidth,
|
|
1118
|
+
zIndex: 7
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
return extraBorderLine;
|
|
1122
|
+
};
|
|
1106
1123
|
return GridAxisAdditions;
|
|
1107
1124
|
}());
|
|
1108
1125
|
/**
|
|
@@ -1225,11 +1242,18 @@
|
|
|
1225
1242
|
function (p) {
|
|
1226
1243
|
return p[axis.isXAxis ? 'x' : 'y'] === value;
|
|
1227
1244
|
});
|
|
1245
|
+
var pointCopy;
|
|
1246
|
+
if (point && series.is('gantt')) {
|
|
1247
|
+
// For the Gantt set point aliases to the pointCopy
|
|
1248
|
+
// to do not change the original point
|
|
1249
|
+
pointCopy = merge(point);
|
|
1250
|
+
H.seriesTypes.gantt.prototype.setGanttPointAliases(pointCopy);
|
|
1251
|
+
}
|
|
1228
1252
|
// Make additional properties available for the
|
|
1229
1253
|
// formatter
|
|
1230
1254
|
this.isFirst = isFirst;
|
|
1231
1255
|
this.isLast = isLast;
|
|
1232
|
-
this.point =
|
|
1256
|
+
this.point = pointCopy;
|
|
1233
1257
|
// Call original labelFormatter
|
|
1234
1258
|
return proceed.call(this);
|
|
1235
1259
|
});
|
|
@@ -1277,15 +1301,11 @@
|
|
|
1277
1301
|
* @private
|
|
1278
1302
|
*/
|
|
1279
1303
|
GridAxis.onAfterRender = function () {
|
|
1280
|
-
var
|
|
1281
|
-
var
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
var yStartIndex,
|
|
1286
|
-
yEndIndex,
|
|
1287
|
-
xStartIndex,
|
|
1288
|
-
xEndIndex;
|
|
1304
|
+
var _a;
|
|
1305
|
+
var axis = this,
|
|
1306
|
+
grid = axis.grid,
|
|
1307
|
+
options = axis.options,
|
|
1308
|
+
gridOptions = options.grid || {};
|
|
1289
1309
|
if (gridOptions.enabled === true) {
|
|
1290
1310
|
// @todo acutual label padding (top, bottom, left, right)
|
|
1291
1311
|
axis.maxLabelDimensions = axis.getMaxLabelDimensions(axis.ticks, axis.tickPositions);
|
|
@@ -1304,13 +1324,13 @@
|
|
|
1304
1324
|
if (axis.grid && axis.grid.isOuterAxis() && axis.axisLine) {
|
|
1305
1325
|
var lineWidth = options.lineWidth;
|
|
1306
1326
|
if (lineWidth) {
|
|
1307
|
-
var linePath = axis.getLinePath(lineWidth)
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1327
|
+
var linePath = axis.getLinePath(lineWidth),
|
|
1328
|
+
startPoint = linePath[0],
|
|
1329
|
+
endPoint = linePath[1],
|
|
1330
|
+
// Negate distance if top or left axis
|
|
1331
|
+
// Subtract 1px to draw the line at the end of the tick
|
|
1332
|
+
tickLength = (axis.tickSize('tick') || [1])[0],
|
|
1333
|
+
distance = (tickLength - 1) * ((axis.side === GridAxis.Side.top ||
|
|
1314
1334
|
axis.side === GridAxis.Side.left) ? -1 : 1);
|
|
1315
1335
|
// If axis is horizontal, reposition line path vertically
|
|
1316
1336
|
if (startPoint[0] === 'M' && endPoint[0] === 'L') {
|
|
@@ -1319,27 +1339,36 @@
|
|
|
1319
1339
|
endPoint[2] += distance;
|
|
1320
1340
|
}
|
|
1321
1341
|
else {
|
|
1322
|
-
// If axis is vertical, reposition line path
|
|
1323
|
-
// horizontally
|
|
1324
1342
|
startPoint[1] += distance;
|
|
1325
1343
|
endPoint[1] += distance;
|
|
1326
1344
|
}
|
|
1327
1345
|
}
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1346
|
+
// If it doesn't exist, add an upper and lower border
|
|
1347
|
+
// for the vertical grid axis.
|
|
1348
|
+
if (!axis.horiz && axis.chart.marginRight) {
|
|
1349
|
+
var upperBorderStartPoint = startPoint, upperBorderEndPoint = ['L', axis.left, startPoint[2]], upperBorderPath = [upperBorderStartPoint, upperBorderEndPoint], lowerBorderEndPoint = ['L', axis.chart.chartWidth - axis.chart.marginRight, axis.toPixels(axis.max + axis.tickmarkOffset)], lowerBorderStartPoint = ['M', endPoint[1], axis.toPixels(axis.max + axis.tickmarkOffset)], lowerBorderPath = [lowerBorderStartPoint, lowerBorderEndPoint];
|
|
1350
|
+
if (!axis.grid.upperBorder && axis.min % 1 !== 0) {
|
|
1351
|
+
axis.grid.upperBorder = axis.grid.renderBorder(upperBorderPath);
|
|
1352
|
+
}
|
|
1353
|
+
if (axis.grid.upperBorder) {
|
|
1354
|
+
axis.grid.upperBorder.animate({
|
|
1355
|
+
d: upperBorderPath
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
if (!axis.grid.lowerBorder && axis.max % 1 !== 0) {
|
|
1359
|
+
axis.grid.lowerBorder = axis.grid.renderBorder(lowerBorderPath);
|
|
1360
|
+
}
|
|
1361
|
+
if (axis.grid.lowerBorder) {
|
|
1362
|
+
axis.grid.lowerBorder.animate({
|
|
1363
|
+
d: lowerBorderPath
|
|
1340
1364
|
});
|
|
1341
1365
|
}
|
|
1342
1366
|
}
|
|
1367
|
+
// Render an extra line parallel to the existing axes,
|
|
1368
|
+
// to close the grid.
|
|
1369
|
+
if (!axis.grid.axisLineExtra) {
|
|
1370
|
+
axis.grid.axisLineExtra = axis.grid.renderBorder(linePath);
|
|
1371
|
+
}
|
|
1343
1372
|
else {
|
|
1344
1373
|
axis.grid.axisLineExtra.animate({
|
|
1345
1374
|
d: linePath
|
|
@@ -1353,12 +1382,42 @@
|
|
|
1353
1382
|
(grid && grid.columns || []).forEach(function (column) {
|
|
1354
1383
|
column.render();
|
|
1355
1384
|
});
|
|
1385
|
+
// Manipulate the tick mark visibility
|
|
1386
|
+
// based on the axis.max- allows smooth scrolling.
|
|
1387
|
+
if (!axis.horiz && axis.chart.hasRendered && (axis.scrollbar || ((_a = axis.linkedParent) === null || _a === void 0 ? void 0 : _a.scrollbar))) {
|
|
1388
|
+
var max = axis.max,
|
|
1389
|
+
min = axis.min,
|
|
1390
|
+
tickmarkOffset = axis.tickmarkOffset,
|
|
1391
|
+
lastTick = axis.tickPositions[axis.tickPositions.length - 1],
|
|
1392
|
+
firstTick = axis.tickPositions[0];
|
|
1393
|
+
// Hide/show firts tick label.
|
|
1394
|
+
if (min - firstTick > tickmarkOffset) {
|
|
1395
|
+
axis.ticks[firstTick].label.hide();
|
|
1396
|
+
}
|
|
1397
|
+
else {
|
|
1398
|
+
axis.ticks[firstTick].label.show();
|
|
1399
|
+
}
|
|
1400
|
+
// Hide/show last tick mark/label.
|
|
1401
|
+
if (lastTick - max > tickmarkOffset) {
|
|
1402
|
+
axis.ticks[lastTick].label.hide();
|
|
1403
|
+
}
|
|
1404
|
+
else {
|
|
1405
|
+
axis.ticks[lastTick].label.show();
|
|
1406
|
+
}
|
|
1407
|
+
if (lastTick - max < tickmarkOffset && lastTick - max > 0 && axis.ticks[lastTick].isLast) {
|
|
1408
|
+
axis.ticks[lastTick].mark.hide();
|
|
1409
|
+
}
|
|
1410
|
+
else {
|
|
1411
|
+
axis.ticks[lastTick - 1].mark.show();
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1356
1414
|
}
|
|
1357
1415
|
};
|
|
1358
1416
|
/**
|
|
1359
1417
|
* @private
|
|
1360
1418
|
*/
|
|
1361
1419
|
GridAxis.onAfterSetAxisTranslation = function () {
|
|
1420
|
+
var _a;
|
|
1362
1421
|
var axis = this;
|
|
1363
1422
|
var tickInfo = axis.tickPositions && axis.tickPositions.info;
|
|
1364
1423
|
var options = axis.options;
|
|
@@ -1387,6 +1446,13 @@
|
|
|
1387
1446
|
}
|
|
1388
1447
|
}
|
|
1389
1448
|
}
|
|
1449
|
+
else {
|
|
1450
|
+
// Don't trim ticks which not in min/max range but
|
|
1451
|
+
// they are still in the min/max plus tickInterval.
|
|
1452
|
+
if (this.options.type !== 'treegrid' && ((_a = axis.grid) === null || _a === void 0 ? void 0 : _a.columns)) {
|
|
1453
|
+
this.minPointOffset = this.tickInterval;
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1390
1456
|
};
|
|
1391
1457
|
/**
|
|
1392
1458
|
* Creates a left and right wall on horizontal axes:
|
|
@@ -1697,7 +1763,7 @@
|
|
|
1697
1763
|
|
|
1698
1764
|
return GridAxis;
|
|
1699
1765
|
});
|
|
1700
|
-
_registerModule(_modules, 'Core/Axis/BrokenAxis.js', [_modules['Core/Axis/Axis.js'], _modules['
|
|
1766
|
+
_registerModule(_modules, 'Core/Axis/BrokenAxis.js', [_modules['Core/Axis/Axis.js'], _modules['Series/LineSeries.js'], _modules['Extensions/Stacking.js'], _modules['Core/Utilities.js']], function (Axis, LineSeries, StackItem, U) {
|
|
1701
1767
|
/* *
|
|
1702
1768
|
*
|
|
1703
1769
|
* (c) 2009-2020 Torstein Honsi
|
|
@@ -1713,7 +1779,6 @@
|
|
|
1713
1779
|
isArray = U.isArray,
|
|
1714
1780
|
isNumber = U.isNumber,
|
|
1715
1781
|
pick = U.pick;
|
|
1716
|
-
var Series = H.Series;
|
|
1717
1782
|
/* eslint-disable valid-jsdoc */
|
|
1718
1783
|
/**
|
|
1719
1784
|
* Provides support for broken axes.
|
|
@@ -2040,7 +2105,7 @@
|
|
|
2040
2105
|
*/
|
|
2041
2106
|
BrokenAxis.compose = function (AxisClass, SeriesClass) {
|
|
2042
2107
|
AxisClass.keepProps.push('brokenAxis');
|
|
2043
|
-
var seriesProto =
|
|
2108
|
+
var seriesProto = LineSeries.prototype;
|
|
2044
2109
|
/**
|
|
2045
2110
|
* @private
|
|
2046
2111
|
*/
|
|
@@ -2273,11 +2338,11 @@
|
|
|
2273
2338
|
};
|
|
2274
2339
|
return BrokenAxis;
|
|
2275
2340
|
}());
|
|
2276
|
-
BrokenAxis.compose(Axis,
|
|
2341
|
+
BrokenAxis.compose(Axis, LineSeries); // @todo remove automatism
|
|
2277
2342
|
|
|
2278
2343
|
return BrokenAxis;
|
|
2279
2344
|
});
|
|
2280
|
-
_registerModule(_modules, 'Core/Axis/TreeGridAxis.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Axis/Tick.js'], _modules['Gantt/Tree.js'], _modules['Core/Axis/TreeGridTick.js'], _modules['Mixins/TreeSeries.js'], _modules['Core/Utilities.js']], function (Axis, Tick, Tree, TreeGridTick, mixinTreeSeries, U) {
|
|
2345
|
+
_registerModule(_modules, 'Core/Axis/TreeGridAxis.js', [_modules['Core/Globals.js'], _modules['Core/Axis/Axis.js'], _modules['Core/Axis/Tick.js'], _modules['Gantt/Tree.js'], _modules['Core/Axis/TreeGridTick.js'], _modules['Mixins/TreeSeries.js'], _modules['Core/Utilities.js']], function (H, Axis, Tick, Tree, TreeGridTick, mixinTreeSeries, U) {
|
|
2281
2346
|
/* *
|
|
2282
2347
|
*
|
|
2283
2348
|
* (c) 2016 Highsoft AS
|
|
@@ -2292,6 +2357,7 @@
|
|
|
2292
2357
|
var addEvent = U.addEvent,
|
|
2293
2358
|
find = U.find,
|
|
2294
2359
|
fireEvent = U.fireEvent,
|
|
2360
|
+
isArray = U.isArray,
|
|
2295
2361
|
isNumber = U.isNumber,
|
|
2296
2362
|
isObject = U.isObject,
|
|
2297
2363
|
isString = U.isString,
|
|
@@ -2434,6 +2500,7 @@
|
|
|
2434
2500
|
mapOfPosToGridNode[pos] = gridNode = {
|
|
2435
2501
|
depth: parentGridNode ? parentGridNode.depth + 1 : 0,
|
|
2436
2502
|
name: name,
|
|
2503
|
+
id: data.id,
|
|
2437
2504
|
nodes: [node],
|
|
2438
2505
|
children: [],
|
|
2439
2506
|
pos: pos
|
|
@@ -2545,6 +2612,11 @@
|
|
|
2545
2612
|
if (s.visible) {
|
|
2546
2613
|
// Push all data to array
|
|
2547
2614
|
(s.options.data || []).forEach(function (data) {
|
|
2615
|
+
// For using keys - rebuild the data structure
|
|
2616
|
+
if (s.options.keys && s.options.keys.length) {
|
|
2617
|
+
data = s.pointClass.prototype.optionsToObject.call({ series: s }, data);
|
|
2618
|
+
H.seriesTypes.gantt.prototype.setGanttPointAliases(data);
|
|
2619
|
+
}
|
|
2548
2620
|
if (isObject(data, true)) {
|
|
2549
2621
|
// Set series index on data. Removed again
|
|
2550
2622
|
// after use.
|
|
@@ -2580,13 +2652,21 @@
|
|
|
2580
2652
|
axis.treeGrid.tree = treeGrid.tree;
|
|
2581
2653
|
// Update yData now that we have calculated the y values
|
|
2582
2654
|
axis.series.forEach(function (series) {
|
|
2583
|
-
var
|
|
2584
|
-
|
|
2585
|
-
|
|
2655
|
+
var axisData = (series.options.data || []).map(function (d) {
|
|
2656
|
+
if (isArray(d) && series.options.keys && series.options.keys.length) {
|
|
2657
|
+
// Get the axisData from the data array used to
|
|
2658
|
+
// build the treeGrid where has been modified
|
|
2659
|
+
data.forEach(function (point) {
|
|
2660
|
+
if (d.indexOf(point.x) >= 0 && d.indexOf(point.x2) >= 0) {
|
|
2661
|
+
d = point;
|
|
2662
|
+
}
|
|
2663
|
+
});
|
|
2664
|
+
}
|
|
2665
|
+
return isObject(d, true) ? merge(d) : d;
|
|
2586
2666
|
});
|
|
2587
2667
|
// Avoid destroying points when series is not visible
|
|
2588
2668
|
if (series.visible) {
|
|
2589
|
-
series.setData(
|
|
2669
|
+
series.setData(axisData, false);
|
|
2590
2670
|
}
|
|
2591
2671
|
});
|
|
2592
2672
|
// Calculate the label options for each level in the tree.
|
|
@@ -2877,6 +2957,32 @@
|
|
|
2877
2957
|
* Functions
|
|
2878
2958
|
*
|
|
2879
2959
|
* */
|
|
2960
|
+
/**
|
|
2961
|
+
* Set the collapse status.
|
|
2962
|
+
*
|
|
2963
|
+
* @private
|
|
2964
|
+
*
|
|
2965
|
+
* @param {Highcharts.Axis} axis
|
|
2966
|
+
* The axis to check against.
|
|
2967
|
+
*
|
|
2968
|
+
* @param {Highcharts.GridNode} node
|
|
2969
|
+
* The node to collapse.
|
|
2970
|
+
*/
|
|
2971
|
+
Additions.prototype.setCollapsedStatus = function (node) {
|
|
2972
|
+
var axis = this.axis,
|
|
2973
|
+
chart = axis.chart;
|
|
2974
|
+
axis.series.forEach(function (series) {
|
|
2975
|
+
var data = series.options.data;
|
|
2976
|
+
if (node.id && data) {
|
|
2977
|
+
var point = chart.get(node.id),
|
|
2978
|
+
dataPoint = data[series.data.indexOf(point)];
|
|
2979
|
+
if (point && dataPoint) {
|
|
2980
|
+
point.collapsed = node.collapsed;
|
|
2981
|
+
dataPoint.collapsed = node.collapsed;
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
});
|
|
2985
|
+
};
|
|
2880
2986
|
/**
|
|
2881
2987
|
* Calculates the new axis breaks to collapse a node.
|
|
2882
2988
|
*
|
|
@@ -2900,6 +3006,9 @@
|
|
|
2900
3006
|
obj = getBreakFromNode(node,
|
|
2901
3007
|
axis.max);
|
|
2902
3008
|
breaks.push(obj);
|
|
3009
|
+
// Change the collapsed flag #13838
|
|
3010
|
+
node.collapsed = true;
|
|
3011
|
+
axis.treeGrid.setCollapsedStatus(node);
|
|
2903
3012
|
return breaks;
|
|
2904
3013
|
};
|
|
2905
3014
|
/**
|
|
@@ -2924,6 +3033,9 @@
|
|
|
2924
3033
|
breaks = (axis.options.breaks || []),
|
|
2925
3034
|
obj = getBreakFromNode(node,
|
|
2926
3035
|
axis.max);
|
|
3036
|
+
// Change the collapsed flag #13838
|
|
3037
|
+
node.collapsed = false;
|
|
3038
|
+
axis.treeGrid.setCollapsedStatus(node);
|
|
2927
3039
|
// Remove the break from the axis breaks array.
|
|
2928
3040
|
return breaks.reduce(function (arr, b) {
|
|
2929
3041
|
if (b.to !== obj.to || b.from !== obj.from) {
|
|
@@ -2942,11 +3054,13 @@
|
|
|
2942
3054
|
* List of positions.
|
|
2943
3055
|
*/
|
|
2944
3056
|
Additions.prototype.getTickPositions = function () {
|
|
2945
|
-
var axis = this.axis
|
|
3057
|
+
var axis = this.axis,
|
|
3058
|
+
roundedMin = Math.floor(axis.min / axis.tickInterval) * axis.tickInterval,
|
|
3059
|
+
roundedMax = Math.ceil(axis.max / axis.tickInterval) * axis.tickInterval;
|
|
2946
3060
|
return Object.keys(axis.treeGrid.mapOfPosToGridNode || {}).reduce(function (arr, key) {
|
|
2947
3061
|
var pos = +key;
|
|
2948
|
-
if (
|
|
2949
|
-
|
|
3062
|
+
if (pos >= roundedMin &&
|
|
3063
|
+
pos <= roundedMax &&
|
|
2950
3064
|
!(axis.brokenAxis && axis.brokenAxis.isInAnyBreak(pos))) {
|
|
2951
3065
|
arr.push(pos);
|
|
2952
3066
|
}
|
|
@@ -3012,7 +3126,7 @@
|
|
|
3012
3126
|
|
|
3013
3127
|
return TreeGridAxis;
|
|
3014
3128
|
});
|
|
3015
|
-
_registerModule(_modules, 'Extensions/CurrentDateIndication.js', [_modules['Core/
|
|
3129
|
+
_registerModule(_modules, 'Extensions/CurrentDateIndication.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Utilities.js'], _modules['Core/Axis/PlotLineOrBand.js']], function (Axis, U, PlotLineOrBand) {
|
|
3016
3130
|
/* *
|
|
3017
3131
|
*
|
|
3018
3132
|
* (c) 2016-2020 Highsoft AS
|
|
@@ -3024,11 +3138,9 @@
|
|
|
3024
3138
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
3025
3139
|
*
|
|
3026
3140
|
* */
|
|
3027
|
-
var dateFormat = O.dateFormat;
|
|
3028
3141
|
var addEvent = U.addEvent,
|
|
3029
3142
|
merge = U.merge,
|
|
3030
3143
|
wrap = U.wrap;
|
|
3031
|
-
var Axis = H.Axis;
|
|
3032
3144
|
var defaultConfig = {
|
|
3033
3145
|
/**
|
|
3034
3146
|
* Show an indicator on the axis for the current date and time. Can be a
|
|
@@ -3060,13 +3172,13 @@
|
|
|
3060
3172
|
* [dateFormat](/class-reference/Highcharts#dateFormat) function.
|
|
3061
3173
|
*
|
|
3062
3174
|
* @type {string}
|
|
3063
|
-
* @default
|
|
3175
|
+
* @default %a, %b %d %Y, %H:%M
|
|
3064
3176
|
* @product gantt
|
|
3065
3177
|
* @apioption xAxis.currentDateIndicator.label.format
|
|
3066
3178
|
*/
|
|
3067
3179
|
format: '%a, %b %d %Y, %H:%M',
|
|
3068
3180
|
formatter: function (value, format) {
|
|
3069
|
-
return dateFormat(format, value);
|
|
3181
|
+
return this.axis.chart.time.dateFormat(format, value);
|
|
3070
3182
|
},
|
|
3071
3183
|
rotation: 0,
|
|
3072
3184
|
/**
|
|
@@ -3112,7 +3224,7 @@
|
|
|
3112
3224
|
});
|
|
3113
3225
|
|
|
3114
3226
|
});
|
|
3115
|
-
_registerModule(_modules, 'Extensions/StaticScale.js', [_modules['Core/
|
|
3227
|
+
_registerModule(_modules, 'Extensions/StaticScale.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Chart/Chart.js'], _modules['Core/Utilities.js']], function (Axis, Chart, U) {
|
|
3116
3228
|
/* *
|
|
3117
3229
|
*
|
|
3118
3230
|
* (c) 2016-2020 Torstein Honsi, Lars Cabrera
|
|
@@ -3126,7 +3238,6 @@
|
|
|
3126
3238
|
defined = U.defined,
|
|
3127
3239
|
isNumber = U.isNumber,
|
|
3128
3240
|
pick = U.pick;
|
|
3129
|
-
var Chart = H.Chart;
|
|
3130
3241
|
/* eslint-disable no-invalid-this */
|
|
3131
3242
|
/**
|
|
3132
3243
|
* For vertical axes only. Setting the static scale ensures that each tick unit
|
|
@@ -3144,7 +3255,7 @@
|
|
|
3144
3255
|
* @product gantt
|
|
3145
3256
|
* @apioption yAxis.staticScale
|
|
3146
3257
|
*/
|
|
3147
|
-
addEvent(
|
|
3258
|
+
addEvent(Axis, 'afterSetOptions', function () {
|
|
3148
3259
|
var chartOptions = this.chart.options && this.chart.options.chart;
|
|
3149
3260
|
if (!this.horiz &&
|
|
3150
3261
|
isNumber(this.options.staticScale) &&
|
|
@@ -5479,6 +5590,12 @@
|
|
|
5479
5590
|
chart.series.forEach(function (series) {
|
|
5480
5591
|
if (series.visible && !series.options.isInternal) {
|
|
5481
5592
|
series.points.forEach(function (point) {
|
|
5593
|
+
var ganttPointOptions = point.options;
|
|
5594
|
+
// For Gantt series the connect could be
|
|
5595
|
+
// defined as a dependency
|
|
5596
|
+
if (ganttPointOptions && ganttPointOptions.dependency) {
|
|
5597
|
+
ganttPointOptions.connect = ganttPointOptions.dependency;
|
|
5598
|
+
}
|
|
5482
5599
|
var to,
|
|
5483
5600
|
connects = (point.options &&
|
|
5484
5601
|
point.options.connect &&
|
|
@@ -5872,7 +5989,7 @@
|
|
|
5872
5989
|
|
|
5873
5990
|
return Pathfinder;
|
|
5874
5991
|
});
|
|
5875
|
-
_registerModule(_modules, 'Series/XRangeSeries.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Globals.js'], _modules['Core/Color.js'], _modules['Core/Series/Point.js'], _modules['Core/Utilities.js']], function (Axis, H, Color, Point, U) {
|
|
5992
|
+
_registerModule(_modules, 'Series/XRangeSeries.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Series/Series.js'], _modules['Core/Globals.js'], _modules['Core/Color/Color.js'], _modules['Core/Series/Point.js'], _modules['Core/Utilities.js']], function (Axis, BaseSeries, H, Color, Point, U) {
|
|
5876
5993
|
/* *
|
|
5877
5994
|
*
|
|
5878
5995
|
* X-range series module
|
|
@@ -5893,8 +6010,7 @@
|
|
|
5893
6010
|
isNumber = U.isNumber,
|
|
5894
6011
|
isObject = U.isObject,
|
|
5895
6012
|
merge = U.merge,
|
|
5896
|
-
pick = U.pick
|
|
5897
|
-
seriesType = U.seriesType;
|
|
6013
|
+
pick = U.pick;
|
|
5898
6014
|
/* *
|
|
5899
6015
|
* @interface Highcharts.PointOptionsObject in parts/Point.ts
|
|
5900
6016
|
*/ /**
|
|
@@ -5903,9 +6019,9 @@
|
|
|
5903
6019
|
* @type {number|undefined}
|
|
5904
6020
|
* @requires modules/xrange
|
|
5905
6021
|
*/
|
|
5906
|
-
var
|
|
5907
|
-
seriesTypes =
|
|
5908
|
-
|
|
6022
|
+
var Series = H.Series,
|
|
6023
|
+
seriesTypes = BaseSeries.seriesTypes,
|
|
6024
|
+
columnType = seriesTypes.column;
|
|
5909
6025
|
/**
|
|
5910
6026
|
* Return color of a point based on its category.
|
|
5911
6027
|
*
|
|
@@ -5940,7 +6056,7 @@
|
|
|
5940
6056
|
*
|
|
5941
6057
|
* @augments Highcharts.Series
|
|
5942
6058
|
*/
|
|
5943
|
-
seriesType('xrange', 'column'
|
|
6059
|
+
BaseSeries.seriesType('xrange', 'column'
|
|
5944
6060
|
/**
|
|
5945
6061
|
* The X-range series displays ranges on the X axis, typically time
|
|
5946
6062
|
* intervals with a start and end date.
|
|
@@ -6339,7 +6455,7 @@
|
|
|
6339
6455
|
pfOptions = {};
|
|
6340
6456
|
}
|
|
6341
6457
|
if (isObject(seriesOpts.partialFill)) {
|
|
6342
|
-
pfOptions = merge(
|
|
6458
|
+
pfOptions = merge(seriesOpts.partialFill, pfOptions);
|
|
6343
6459
|
}
|
|
6344
6460
|
fill = (pfOptions.fill ||
|
|
6345
6461
|
color(pointAttr.fill).brighten(-0.3).get() ||
|
|
@@ -6614,7 +6730,7 @@
|
|
|
6614
6730
|
''; // adds doclets above to transpiled file
|
|
6615
6731
|
|
|
6616
6732
|
});
|
|
6617
|
-
_registerModule(_modules, 'Series/GanttSeries.js', [_modules['Core/Globals.js'], _modules['Core/Options.js'], _modules['Core/Utilities.js']], function (H, O, U) {
|
|
6733
|
+
_registerModule(_modules, 'Series/GanttSeries.js', [_modules['Core/Series/Series.js'], _modules['Core/Globals.js'], _modules['Core/Options.js'], _modules['Core/Utilities.js']], function (BaseSeries, H, O, U) {
|
|
6618
6734
|
/* *
|
|
6619
6735
|
*
|
|
6620
6736
|
* (c) 2016-2020 Highsoft AS
|
|
@@ -6630,10 +6746,9 @@
|
|
|
6630
6746
|
var isNumber = U.isNumber,
|
|
6631
6747
|
merge = U.merge,
|
|
6632
6748
|
pick = U.pick,
|
|
6633
|
-
seriesType = U.seriesType,
|
|
6634
6749
|
splat = U.splat;
|
|
6635
|
-
var
|
|
6636
|
-
|
|
6750
|
+
var Series = H.Series,
|
|
6751
|
+
seriesTypes = BaseSeries.seriesTypes,
|
|
6637
6752
|
parent = seriesTypes.xrange;
|
|
6638
6753
|
/**
|
|
6639
6754
|
* @private
|
|
@@ -6642,7 +6757,7 @@
|
|
|
6642
6757
|
*
|
|
6643
6758
|
* @augments Highcharts.Series
|
|
6644
6759
|
*/
|
|
6645
|
-
seriesType('gantt', 'xrange'
|
|
6760
|
+
BaseSeries.seriesType('gantt', 'xrange'
|
|
6646
6761
|
/**
|
|
6647
6762
|
* A `gantt` series. If the [type](#series.gantt.type) option is not specified,
|
|
6648
6763
|
* it is inherited from [chart.type](#chart.type).
|
|
@@ -6680,8 +6795,8 @@
|
|
|
6680
6795
|
if (!format) {
|
|
6681
6796
|
format = splat(tooltip.getDateFormat(xAxis.closestPointRange, point.start, startOfWeek, formats))[0];
|
|
6682
6797
|
}
|
|
6683
|
-
start = dateFormat(format, point.start);
|
|
6684
|
-
end = dateFormat(format, point.end);
|
|
6798
|
+
start = series.chart.time.dateFormat(format, point.start);
|
|
6799
|
+
end = series.chart.time.dateFormat(format, point.end);
|
|
6685
6800
|
retVal += '<br/>';
|
|
6686
6801
|
if (!milestone) {
|
|
6687
6802
|
retVal += 'Start: ' + start + '<br/>';
|
|
@@ -6812,7 +6927,6 @@
|
|
|
6812
6927
|
addIfExists('x', pick(options.start, options.x));
|
|
6813
6928
|
addIfExists('x2', pick(options.end, options.x2));
|
|
6814
6929
|
addIfExists('partialFill', pick(options.completed, options.partialFill));
|
|
6815
|
-
addIfExists('connect', pick(options.dependency, options.connect));
|
|
6816
6930
|
}
|
|
6817
6931
|
/* eslint-enable valid-jsdoc */
|
|
6818
6932
|
}, merge(parent.prototype.pointClass.prototype, {
|
|
@@ -6836,11 +6950,11 @@
|
|
|
6836
6950
|
*/
|
|
6837
6951
|
applyOptions: function (options, x) {
|
|
6838
6952
|
var point = this,
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
return
|
|
6953
|
+
ganttPoint;
|
|
6954
|
+
ganttPoint = parent.prototype.pointClass.prototype.applyOptions
|
|
6955
|
+
.call(point, options, x);
|
|
6956
|
+
H.seriesTypes.gantt.prototype.setGanttPointAliases(ganttPoint);
|
|
6957
|
+
return ganttPoint;
|
|
6844
6958
|
},
|
|
6845
6959
|
isValid: function () {
|
|
6846
6960
|
return ((typeof this.start === 'number' ||
|
|
@@ -7090,7 +7204,11 @@
|
|
|
7090
7204
|
enabled: false
|
|
7091
7205
|
},
|
|
7092
7206
|
navigator: {
|
|
7093
|
-
series: { type: 'gantt' }
|
|
7207
|
+
series: { type: 'gantt' },
|
|
7208
|
+
// Bars were clipped, #14060.
|
|
7209
|
+
yAxis: {
|
|
7210
|
+
type: 'category'
|
|
7211
|
+
}
|
|
7094
7212
|
}
|
|
7095
7213
|
}, options, // user's options
|
|
7096
7214
|
// forced options
|
|
@@ -7098,13 +7216,6 @@
|
|
|
7098
7216
|
isGantt: true
|
|
7099
7217
|
});
|
|
7100
7218
|
options.series = userOptions.series = seriesOptions;
|
|
7101
|
-
(options.series || []).forEach(function (series) {
|
|
7102
|
-
if (series.data) {
|
|
7103
|
-
series.data.forEach(function (point) {
|
|
7104
|
-
H.seriesTypes.gantt.prototype.setGanttPointAliases(point);
|
|
7105
|
-
});
|
|
7106
|
-
}
|
|
7107
|
-
});
|
|
7108
7219
|
return hasRenderToArg ?
|
|
7109
7220
|
new Chart(renderTo, options, callback) :
|
|
7110
7221
|
new Chart(options, options); // @todo does not look correct
|
|
@@ -10127,7 +10238,7 @@
|
|
|
10127
10238
|
|
|
10128
10239
|
return NavigatorAxis;
|
|
10129
10240
|
});
|
|
10130
|
-
_registerModule(_modules, 'Core/Navigator.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Chart/Chart.js'], _modules['Core/Color.js'], _modules['Core/Globals.js'], _modules['Core/Axis/NavigatorAxis.js'], _modules['Core/Options.js'], _modules['Core/Scrollbar.js'], _modules['Core/Utilities.js']], function (Axis, Chart, Color, H, NavigatorAxis, O, Scrollbar, U) {
|
|
10241
|
+
_registerModule(_modules, 'Core/Navigator.js', [_modules['Core/Axis/Axis.js'], _modules['Core/Series/Series.js'], _modules['Core/Chart/Chart.js'], _modules['Core/Color/Color.js'], _modules['Core/Globals.js'], _modules['Series/LineSeries.js'], _modules['Core/Axis/NavigatorAxis.js'], _modules['Core/Options.js'], _modules['Core/Scrollbar.js'], _modules['Core/Utilities.js']], function (Axis, BaseSeries, Chart, Color, H, LineSeries, NavigatorAxis, O, Scrollbar, U) {
|
|
10131
10242
|
/* *
|
|
10132
10243
|
*
|
|
10133
10244
|
* (c) 2010-2020 Torstein Honsi
|
|
@@ -10137,7 +10248,10 @@
|
|
|
10137
10248
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
10138
10249
|
*
|
|
10139
10250
|
* */
|
|
10251
|
+
var seriesTypes = BaseSeries.seriesTypes;
|
|
10140
10252
|
var color = Color.parse;
|
|
10253
|
+
var hasTouch = H.hasTouch,
|
|
10254
|
+
isTouchDevice = H.isTouchDevice;
|
|
10141
10255
|
var defaultOptions = O.defaultOptions;
|
|
10142
10256
|
var addEvent = U.addEvent,
|
|
10143
10257
|
clamp = U.clamp,
|
|
@@ -10153,11 +10267,7 @@
|
|
|
10153
10267
|
pick = U.pick,
|
|
10154
10268
|
removeEvent = U.removeEvent,
|
|
10155
10269
|
splat = U.splat;
|
|
10156
|
-
var
|
|
10157
|
-
isTouchDevice = H.isTouchDevice,
|
|
10158
|
-
Series = H.Series,
|
|
10159
|
-
seriesTypes = H.seriesTypes,
|
|
10160
|
-
defaultSeriesType,
|
|
10270
|
+
var defaultSeriesType,
|
|
10161
10271
|
// Finding the min or max of a set of variables where we don't know if they
|
|
10162
10272
|
// are defined, is a pattern that is repeated several places in Highcharts.
|
|
10163
10273
|
// Consider making this a global utility method.
|
|
@@ -11527,6 +11637,7 @@
|
|
|
11527
11637
|
offset: 0,
|
|
11528
11638
|
index: yAxisIndex,
|
|
11529
11639
|
isInternal: true,
|
|
11640
|
+
reversed: pick((navigatorOptions.yAxis && navigatorOptions.yAxis.reversed), (chart.yAxis[0] && chart.yAxis[0].reversed), false),
|
|
11530
11641
|
zoomEnabled: false
|
|
11531
11642
|
}, chart.inverted ? {
|
|
11532
11643
|
width: height
|
|
@@ -12177,7 +12288,7 @@
|
|
|
12177
12288
|
}
|
|
12178
12289
|
});
|
|
12179
12290
|
// Handle updating series
|
|
12180
|
-
addEvent(
|
|
12291
|
+
addEvent(LineSeries, 'afterUpdate', function () {
|
|
12181
12292
|
if (this.chart.navigator && !this.options.isInternal) {
|
|
12182
12293
|
this.chart.navigator.setBaseSeries(null, false);
|
|
12183
12294
|
}
|