highcharts 10.2.1 → 10.3.1
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 +1 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +9 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +36 -32
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -16
- package/es-modules/Accessibility/Options/LangDefaults.js +4 -0
- package/es-modules/Core/Axis/Axis.js +42 -32
- package/es-modules/Core/Axis/Axis3DComposition.js +501 -0
- package/es-modules/Core/Axis/Axis3DDefaults.js +130 -0
- package/es-modules/Core/Axis/AxisDefaults.js +20 -7
- package/es-modules/Core/Axis/Color/ColorAxis.js +46 -52
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +4 -2
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +161 -0
- package/es-modules/Core/Axis/OrdinalAxis.js +2 -1
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +1 -1
- package/es-modules/Core/Axis/RadialAxis.js +19 -5
- package/es-modules/Core/Axis/Tick.js +1 -1
- package/es-modules/Core/Axis/Tick3DComposition.js +71 -0
- package/es-modules/Core/Chart/Chart.js +16 -20
- package/es-modules/Core/Chart/Chart3D.js +4 -4
- package/es-modules/Core/Chart/ChartDefaults.js +33 -43
- package/es-modules/Core/Chart/GanttChart.js +1 -1
- package/es-modules/Core/Chart/MapChart.js +1 -1
- package/es-modules/Core/Chart/StockChart.js +11 -28
- package/es-modules/Core/{DefaultOptions.js → Defaults.js} +21 -37
- package/es-modules/Core/FormatUtilities.js +1 -1
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +114 -110
- package/es-modules/Core/Legend/LegendSymbol.js +9 -6
- package/es-modules/Core/MSPointer.js +4 -2
- package/es-modules/Core/Pointer.js +125 -75
- package/es-modules/Core/Renderer/SVG/SVGElement.js +0 -3
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +28 -14
- package/es-modules/Core/Series/DataLabel.js +8 -5
- package/es-modules/Core/Series/Point.js +38 -22
- package/es-modules/Core/Series/Series.js +12 -9
- package/es-modules/Core/Series/SeriesDefaults.js +36 -24
- package/es-modules/Core/Series/SeriesRegistry.js +2 -2
- package/es-modules/Core/Time.js +6 -5
- package/es-modules/Core/Tooltip.js +6 -28
- package/es-modules/Core/Utilities.js +6 -8
- package/es-modules/Extensions/Annotations/Annotation.js +1 -1
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +13 -8
- package/es-modules/Extensions/Annotations/MockPoint.js +2 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +4 -5
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/Popup.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +4 -4
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +1 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +11 -8
- package/es-modules/Extensions/Breadcrumbs.js +2 -2
- package/es-modules/Extensions/Data.js +2 -2
- package/es-modules/Extensions/DataGrouping/ApproximationDefaults.js +157 -0
- package/es-modules/Extensions/DataGrouping/ApproximationRegistry.js +35 -0
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +469 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +174 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +143 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +479 -0
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +6 -2
- package/es-modules/Extensions/Drilldown.js +3 -5
- package/es-modules/Extensions/ExportData/ExportData.js +31 -5
- package/es-modules/Extensions/Exporting/Exporting.js +47 -60
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +22 -24
- package/es-modules/Extensions/GeoJSON.js +3 -1
- package/es-modules/Extensions/MarkerClusters.js +1 -1
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +3 -3
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +1 -1
- package/es-modules/Extensions/OldiePolyfills.js +3 -1
- package/es-modules/Extensions/Pane.js +42 -5
- package/es-modules/Extensions/ParallelCoordinates.js +5 -1
- package/es-modules/Extensions/PatternFill.js +10 -10
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +2 -2
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +4 -0
- package/es-modules/Extensions/Sonification/Sonification.js +1 -1
- package/es-modules/Extensions/Themes/Avocado.js +1 -1
- package/es-modules/Extensions/Themes/BrandDark.js +1 -1
- package/es-modules/Extensions/Themes/BrandLight.js +1 -1
- package/es-modules/Extensions/Themes/DarkBlue.js +1 -1
- package/es-modules/Extensions/Themes/DarkGreen.js +1 -1
- package/es-modules/Extensions/Themes/DarkUnica.js +1 -1
- package/es-modules/Extensions/Themes/Gray.js +1 -1
- package/es-modules/Extensions/Themes/Grid.js +1 -1
- package/es-modules/Extensions/Themes/GridLight.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastDark.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastLight.js +1 -1
- package/es-modules/Extensions/Themes/SandSignika.js +1 -1
- package/es-modules/Extensions/Themes/Skies.js +1 -1
- package/es-modules/Extensions/Themes/Sunset.js +1 -1
- package/es-modules/Gantt/Connection.js +5 -5
- package/es-modules/Gantt/Pathfinder.js +6 -6
- package/es-modules/Maps/MapNavigation.js +1 -1
- package/es-modules/Maps/{MapNavigationOptionsDefault.js → MapNavigationDefaults.js} +4 -4
- package/es-modules/Maps/MapViewOptionsDefault.js +4 -4
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +3 -5
- package/es-modules/Series/AreaRange/AreaRangePoint.js +6 -10
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +59 -48
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -1
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +22 -16
- package/es-modules/Series/Bubble/BubbleLegendItem.js +17 -21
- package/es-modules/Series/Candlestick/CandlestickSeries.js +15 -175
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +179 -0
- package/es-modules/Series/Column/ColumnSeries.js +25 -506
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +487 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +40 -36
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +2 -106
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +183 -0
- package/es-modules/Series/DotPlot/DotPlotSeries.js +11 -12
- package/es-modules/Series/DrawPointUtilities.js +2 -14
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +5 -4
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +11 -7
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +19 -136
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +147 -0
- package/es-modules/Series/Flags/FlagsPoint.js +2 -3
- package/es-modules/Series/Flags/FlagsSeries.js +31 -298
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +295 -0
- package/es-modules/Series/Flags/FlagsSymbols.js +96 -71
- package/es-modules/Series/HLC/HLCPoint.js +2 -2
- package/es-modules/Series/HLC/HLCSeries.js +7 -172
- package/es-modules/Series/HLC/HLCSeriesDefaults.js +184 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +3 -0
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -20
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +78 -139
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +102 -0
- package/es-modules/Series/Item/ItemPoint.js +0 -1
- package/es-modules/Series/Item/ItemSeries.js +13 -8
- package/es-modules/Series/Line/LineSeries.js +8 -4
- package/es-modules/Series/Map/MapPoint.js +19 -1
- package/es-modules/Series/Map/MapSeries.js +7 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +4 -0
- package/es-modules/Series/MapPoint/MapPointPoint.js +0 -5
- package/es-modules/Series/MapPoint/MapPointSeries.js +24 -9
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +2 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +2 -0
- package/es-modules/Series/OHLC/OHLCPoint.js +0 -2
- package/es-modules/Series/OHLC/OHLCSeries.js +64 -160
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +151 -0
- package/es-modules/Series/Organization/OrganizationPoint.js +0 -2
- package/es-modules/Series/Organization/OrganizationSeries.js +96 -469
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +415 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -10
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -0
- package/es-modules/Series/PathUtilities.js +74 -0
- package/es-modules/Series/Pie/PieSeries.js +2 -644
- package/es-modules/Series/Pie/PieSeriesDefaults.js +660 -0
- package/es-modules/Series/PolarComposition.js +233 -15
- package/es-modules/Series/Sankey/SankeySeries.js +27 -530
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +522 -0
- package/es-modules/Series/Scatter/ScatterSeries.js +2 -172
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +188 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +12 -182
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +199 -0
- package/es-modules/Series/Sunburst/SunburstNode.js +34 -0
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +3 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -231
- package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +248 -0
- package/es-modules/Series/TreeUtilities.js +1 -2
- package/es-modules/Series/Treegraph/TreegraphLayout.js +338 -0
- package/es-modules/Series/Treegraph/TreegraphLink.js +92 -0
- package/es-modules/Series/Treegraph/TreegraphNode.js +206 -0
- package/es-modules/Series/Treegraph/TreegraphPoint.js +175 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +510 -0
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +231 -0
- package/es-modules/Series/Treemap/TreemapNode.js +48 -0
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -1
- package/es-modules/Series/Treemap/TreemapSeries.js +29 -27
- package/es-modules/Series/Variwide/VariwideComposition.js +70 -26
- package/es-modules/Series/Variwide/VariwidePoint.js +8 -7
- package/es-modules/Series/Variwide/VariwideSeries.js +19 -14
- package/es-modules/Series/Vector/VectorSeries.js +2 -2
- package/es-modules/Series/Venn/VennSeries.js +14 -0
- package/es-modules/Series/Waterfall/WaterfallSeries.js +0 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -2
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +3 -0
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +15 -4
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +21 -18
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +3 -4
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -2
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +6 -7
- package/es-modules/{Core → Stock/Navigator}/Navigator.js +112 -686
- package/es-modules/Stock/Navigator/NavigatorComposition.js +218 -0
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +490 -0
- package/es-modules/Stock/Navigator/NavigatorSymbols.js +44 -0
- package/es-modules/{Extensions → Stock/RangeSelector}/RangeSelector.js +154 -818
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +286 -0
- package/es-modules/Stock/RangeSelector/RangeSelectorDefaults.js +521 -0
- package/es-modules/{Core → Stock/Scrollbar}/Scrollbar.js +4 -4
- package/es-modules/{Core → Stock/Scrollbar}/ScrollbarDefaults.js +1 -1
- package/es-modules/Stock/{StockToolbar.js → StockTools/StockToolbar.js} +2 -2
- package/es-modules/Stock/{StockTools.js → StockTools/StockTools.js} +3 -3
- package/es-modules/Stock/{StockToolsBindings.js → StockTools/StockToolsBindings.js} +3 -3
- package/es-modules/Stock/{StockToolsDefaults.js → StockTools/StockToolsDefaults.js} +4 -4
- package/es-modules/Stock/{StockToolsGui.js → StockTools/StockToolsGui.js} +4 -4
- package/es-modules/Stock/{StockToolsUtilities.js → StockTools/StockToolsUtilities.js} +4 -4
- package/es-modules/masters/highcharts-3d.src.js +3 -5
- 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 +6 -6
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +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/arc-diagram.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 +11 -3
- 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 +9 -5
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +5 -2
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +4 -4
- package/es-modules/masters/modules/stock.src.js +17 -11
- 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/treegraph.src.js +13 -0
- 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 +5 -2
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/brand-dark.src.js +1 -1
- package/es-modules/masters/themes/brand-light.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 +97 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +476 -449
- package/highcharts-gantt.js +811 -808
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +14619 -14112
- package/highcharts-more.d.ts +0 -8
- package/highcharts-more.js +208 -201
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +0 -8
- package/highcharts-more.src.js +679 -289
- package/highcharts.d.ts +30739 -6156
- package/highcharts.js +590 -589
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +30739 -6156
- package/highcharts.src.js +1988 -1799
- package/highmaps.js +759 -757
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2339 -2077
- package/highstock.js +802 -794
- package/highstock.js.map +1 -1
- package/highstock.src.js +12349 -11416
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- 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 -3
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +16 -5
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.d.ts +17 -0
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.d.ts +17 -0
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.d.ts +17 -0
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.d.ts +17 -0
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.d.ts +17 -0
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.src.d.ts +17 -0
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +14 -14
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +22 -19
- package/indicators/indicators-all.js +198 -199
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +63 -57
- package/indicators/indicators.js +13 -13
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +1 -15
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.d.ts +17 -0
- package/indicators/klinger.js +12 -12
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.d.ts +17 -0
- package/indicators/klinger.src.js +4 -3
- package/indicators/macd.js +1 -1
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +4 -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 +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.d.ts +17 -0
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.d.ts +17 -0
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +2 -2
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +6 -5
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +7 -7
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +4 -3
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +9 -8
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +214 -213
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +991 -835
- package/modules/annotations-advanced.js +16 -16
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +29 -24
- package/modules/annotations.js +91 -91
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +29 -24
- package/modules/arc-diagram.d.ts +17 -0
- package/modules/arc-diagram.js +15 -15
- package/modules/arc-diagram.js.map +1 -1
- package/modules/arc-diagram.src.d.ts +17 -0
- package/modules/arc-diagram.src.js +6 -6
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +19 -19
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +13 -8
- package/modules/boost.js +37 -37
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +13 -8
- 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 +25 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +77 -58
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +27 -27
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +3 -3
- package/modules/datagrouping.d.ts +31 -0
- package/modules/datagrouping.js +23 -21
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +31 -0
- package/modules/datagrouping.src.js +921 -640
- package/modules/debugger.js +3 -3
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +2 -2
- package/modules/dependency-wheel.js +12 -12
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +191 -108
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +10 -13
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +5 -5
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +7 -3
- package/modules/drilldown.js +37 -37
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +5 -6
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +27 -22
- package/modules/export-data.js +26 -25
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +33 -6
- package/modules/exporting.js +36 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +81 -88
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +221 -219
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +12842 -12524
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +40 -40
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +80 -58
- package/modules/heikinashi.d.ts +17 -0
- package/modules/heikinashi.js +9 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.d.ts +17 -0
- package/modules/heikinashi.src.js +192 -165
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.d.ts +17 -0
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.d.ts +17 -0
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +14 -10
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.js +172 -171
- package/modules/map.js.map +1 -1
- package/modules/map.src.js +194 -121
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +2 -2
- package/modules/networkgraph.js +8 -8
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +5 -6
- 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 +2 -2
- package/modules/offline-exporting.js +4 -4
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +7 -7
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +9 -7
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +5 -5
- package/modules/organization.js +18 -16
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +659 -495
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +10 -10
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +6 -2
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +19 -23
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +11 -11
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.js +33 -32
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +571 -550
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +7 -3
- package/modules/series-on-point.d.ts +17 -0
- package/modules/series-on-point.js +1 -1
- package/modules/series-on-point.src.d.ts +17 -0
- package/modules/series-on-point.src.js +1 -1
- package/modules/solid-gauge.js +11 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +220 -192
- package/modules/sonification.js +2 -2
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +2 -2
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +59 -59
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +19 -21
- package/modules/stock.d.ts +26 -6
- package/modules/stock.js +212 -205
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +26 -6
- package/modules/stock.src.js +11361 -10617
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +75 -73
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +133 -57
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +257 -233
- package/modules/treegraph.d.ts +17 -0
- package/modules/treegraph.js +44 -0
- package/modules/treegraph.js.map +1 -0
- package/modules/treegraph.src.d.ts +17 -0
- package/modules/treegraph.src.js +1829 -0
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +2 -3
- package/modules/treemap.js +54 -53
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +90 -52
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +158 -106
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +3 -3
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +17 -16
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +41 -4
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +6 -15
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +1 -1
- package/themes/avocado.js +2 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +2 -2
- package/themes/brand-dark.d.ts +22 -0
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.d.ts +22 -0
- package/themes/brand-dark.src.js +2 -2
- package/themes/brand-light.d.ts +22 -0
- package/themes/brand-light.js +2 -2
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.d.ts +22 -0
- package/themes/brand-light.src.js +2 -2
- package/themes/dark-blue.js +2 -2
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +2 -2
- package/themes/dark-green.js +2 -2
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +2 -2
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +2 -2
- package/themes/gray.js +2 -2
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +2 -2
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +2 -2
- package/themes/grid.js +2 -2
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +2 -2
- package/themes/high-contrast-dark.d.ts +22 -0
- package/themes/high-contrast-dark.js +2 -2
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.d.ts +22 -0
- package/themes/high-contrast-dark.src.js +2 -2
- package/themes/high-contrast-light.d.ts +22 -0
- package/themes/high-contrast-light.js +2 -2
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.d.ts +22 -0
- package/themes/high-contrast-light.src.js +2 -2
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +2 -2
- package/themes/skies.js +2 -2
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +2 -2
- package/themes/sunset.js +2 -2
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +2 -2
- package/es-modules/Core/Axis/Axis3D.js +0 -612
- package/es-modules/Core/Axis/NavigatorAxis.js +0 -159
- package/es-modules/Core/Axis/Tick3D.js +0 -68
- package/es-modules/Extensions/DataGrouping.js +0 -1177
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -12
|
@@ -1,612 +0,0 @@
|
|
|
1
|
-
/* *
|
|
2
|
-
*
|
|
3
|
-
* (c) 2010-2021 Torstein Honsi
|
|
4
|
-
*
|
|
5
|
-
* Extenstion for 3d axes
|
|
6
|
-
*
|
|
7
|
-
* License: www.highcharts.com/license
|
|
8
|
-
*
|
|
9
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
10
|
-
*
|
|
11
|
-
* */
|
|
12
|
-
'use strict';
|
|
13
|
-
import H from '../Globals.js';
|
|
14
|
-
var deg2rad = H.deg2rad;
|
|
15
|
-
import Math3D from '../Math3D.js';
|
|
16
|
-
var perspective = Math3D.perspective, perspective3D = Math3D.perspective3D, shapeArea = Math3D.shapeArea;
|
|
17
|
-
import Tick from './Tick.js';
|
|
18
|
-
import Tick3D from './Tick3D.js';
|
|
19
|
-
import U from '../Utilities.js';
|
|
20
|
-
var addEvent = U.addEvent, merge = U.merge, pick = U.pick, wrap = U.wrap;
|
|
21
|
-
/* *
|
|
22
|
-
*
|
|
23
|
-
* Classes
|
|
24
|
-
*
|
|
25
|
-
* */
|
|
26
|
-
/* eslint-disable valid-jsdoc */
|
|
27
|
-
/**
|
|
28
|
-
* Adds 3D support to axes.
|
|
29
|
-
* @private
|
|
30
|
-
* @class
|
|
31
|
-
*/
|
|
32
|
-
var Axis3DAdditions = /** @class */ (function () {
|
|
33
|
-
/* *
|
|
34
|
-
*
|
|
35
|
-
* Constructors
|
|
36
|
-
*
|
|
37
|
-
* */
|
|
38
|
-
/**
|
|
39
|
-
* @private
|
|
40
|
-
*/
|
|
41
|
-
function Axis3DAdditions(axis) {
|
|
42
|
-
this.axis = axis;
|
|
43
|
-
}
|
|
44
|
-
/* *
|
|
45
|
-
*
|
|
46
|
-
* Functions
|
|
47
|
-
*
|
|
48
|
-
* */
|
|
49
|
-
/**
|
|
50
|
-
* @private
|
|
51
|
-
* @param {Highcharts.Axis} axis
|
|
52
|
-
* Related axis.
|
|
53
|
-
* @param {Highcharts.Position3DObject} pos
|
|
54
|
-
* Position to fix.
|
|
55
|
-
* @param {boolean} [isTitle]
|
|
56
|
-
* Whether this is a title position.
|
|
57
|
-
* @return {Highcharts.Position3DObject}
|
|
58
|
-
* Fixed position.
|
|
59
|
-
*/
|
|
60
|
-
Axis3DAdditions.prototype.fix3dPosition = function (pos, isTitle) {
|
|
61
|
-
var axis3D = this;
|
|
62
|
-
var axis = axis3D.axis;
|
|
63
|
-
var chart = axis.chart;
|
|
64
|
-
// Do not do this if the chart is not 3D
|
|
65
|
-
if (axis.coll === 'colorAxis' ||
|
|
66
|
-
!chart.chart3d ||
|
|
67
|
-
!chart.is3d()) {
|
|
68
|
-
return pos;
|
|
69
|
-
}
|
|
70
|
-
var alpha = deg2rad * chart.options.chart.options3d.alpha, beta = deg2rad * chart.options.chart.options3d.beta, positionMode = pick(isTitle && axis.options.title.position3d, axis.options.labels.position3d), skew = pick(isTitle && axis.options.title.skew3d, axis.options.labels.skew3d), frame = chart.chart3d.frame3d, plotLeft = chart.plotLeft, plotRight = chart.plotWidth + plotLeft, plotTop = chart.plotTop, plotBottom = chart.plotHeight + plotTop;
|
|
71
|
-
var offsetX = 0, offsetY = 0, vecX, vecY = { x: 0, y: 1, z: 0 },
|
|
72
|
-
// Indicates that we are labelling an X or Z axis on the "back" of
|
|
73
|
-
// the chart
|
|
74
|
-
reverseFlap = false;
|
|
75
|
-
pos = axis.axis3D.swapZ({ x: pos.x, y: pos.y, z: 0 });
|
|
76
|
-
if (axis.isZAxis) { // Z Axis
|
|
77
|
-
if (axis.opposite) {
|
|
78
|
-
if (frame.axes.z.top === null) {
|
|
79
|
-
return {};
|
|
80
|
-
}
|
|
81
|
-
offsetY = pos.y - plotTop;
|
|
82
|
-
pos.x = frame.axes.z.top.x;
|
|
83
|
-
pos.y = frame.axes.z.top.y;
|
|
84
|
-
vecX = frame.axes.z.top.xDir;
|
|
85
|
-
reverseFlap = !frame.top.frontFacing;
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
if (frame.axes.z.bottom === null) {
|
|
89
|
-
return {};
|
|
90
|
-
}
|
|
91
|
-
offsetY = pos.y - plotBottom;
|
|
92
|
-
pos.x = frame.axes.z.bottom.x;
|
|
93
|
-
pos.y = frame.axes.z.bottom.y;
|
|
94
|
-
vecX = frame.axes.z.bottom.xDir;
|
|
95
|
-
reverseFlap = !frame.bottom.frontFacing;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
else if (axis.horiz) { // X Axis
|
|
99
|
-
if (axis.opposite) {
|
|
100
|
-
if (frame.axes.x.top === null) {
|
|
101
|
-
return {};
|
|
102
|
-
}
|
|
103
|
-
offsetY = pos.y - plotTop;
|
|
104
|
-
pos.y = frame.axes.x.top.y;
|
|
105
|
-
pos.z = frame.axes.x.top.z;
|
|
106
|
-
vecX = frame.axes.x.top.xDir;
|
|
107
|
-
reverseFlap = !frame.top.frontFacing;
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
if (frame.axes.x.bottom === null) {
|
|
111
|
-
return {};
|
|
112
|
-
}
|
|
113
|
-
offsetY = pos.y - plotBottom;
|
|
114
|
-
pos.y = frame.axes.x.bottom.y;
|
|
115
|
-
pos.z = frame.axes.x.bottom.z;
|
|
116
|
-
vecX = frame.axes.x.bottom.xDir;
|
|
117
|
-
reverseFlap = !frame.bottom.frontFacing;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
else { // Y Axis
|
|
121
|
-
if (axis.opposite) {
|
|
122
|
-
if (frame.axes.y.right === null) {
|
|
123
|
-
return {};
|
|
124
|
-
}
|
|
125
|
-
offsetX = pos.x - plotRight;
|
|
126
|
-
pos.x = frame.axes.y.right.x;
|
|
127
|
-
pos.z = frame.axes.y.right.z;
|
|
128
|
-
vecX = frame.axes.y.right.xDir;
|
|
129
|
-
// Rotate 90º on opposite edge
|
|
130
|
-
vecX = { x: vecX.z, y: vecX.y, z: -vecX.x };
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
if (frame.axes.y.left === null) {
|
|
134
|
-
return {};
|
|
135
|
-
}
|
|
136
|
-
offsetX = pos.x - plotLeft;
|
|
137
|
-
pos.x = frame.axes.y.left.x;
|
|
138
|
-
pos.z = frame.axes.y.left.z;
|
|
139
|
-
vecX = frame.axes.y.left.xDir;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if (positionMode === 'chart') {
|
|
143
|
-
// Labels preserve their direction relative to the chart
|
|
144
|
-
// nothing to do
|
|
145
|
-
}
|
|
146
|
-
else if (positionMode === 'flap') {
|
|
147
|
-
// Labels are rotated around the axis direction to face the screen
|
|
148
|
-
if (!axis.horiz) { // Y Axis
|
|
149
|
-
vecX = { x: Math.cos(beta), y: 0, z: Math.sin(beta) };
|
|
150
|
-
}
|
|
151
|
-
else { // X and Z Axis
|
|
152
|
-
var sin = Math.sin(alpha);
|
|
153
|
-
var cos = Math.cos(alpha);
|
|
154
|
-
if (axis.opposite) {
|
|
155
|
-
sin = -sin;
|
|
156
|
-
}
|
|
157
|
-
if (reverseFlap) {
|
|
158
|
-
sin = -sin;
|
|
159
|
-
}
|
|
160
|
-
vecY = { x: vecX.z * sin, y: cos, z: -vecX.x * sin };
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
else if (positionMode === 'ortho') {
|
|
164
|
-
// Labels will be rotated to be ortogonal to the axis
|
|
165
|
-
if (!axis.horiz) { // Y Axis
|
|
166
|
-
vecX = { x: Math.cos(beta), y: 0, z: Math.sin(beta) };
|
|
167
|
-
}
|
|
168
|
-
else { // X and Z Axis
|
|
169
|
-
var sina = Math.sin(alpha);
|
|
170
|
-
var cosa = Math.cos(alpha);
|
|
171
|
-
var sinb = Math.sin(beta);
|
|
172
|
-
var cosb = Math.cos(beta);
|
|
173
|
-
var vecZ = { x: sinb * cosa, y: -sina, z: -cosa * cosb };
|
|
174
|
-
vecY = {
|
|
175
|
-
x: vecX.y * vecZ.z - vecX.z * vecZ.y,
|
|
176
|
-
y: vecX.z * vecZ.x - vecX.x * vecZ.z,
|
|
177
|
-
z: vecX.x * vecZ.y - vecX.y * vecZ.x
|
|
178
|
-
};
|
|
179
|
-
var scale = 1 / Math.sqrt(vecY.x * vecY.x + vecY.y * vecY.y + vecY.z * vecY.z);
|
|
180
|
-
if (reverseFlap) {
|
|
181
|
-
scale = -scale;
|
|
182
|
-
}
|
|
183
|
-
vecY = {
|
|
184
|
-
x: scale * vecY.x, y: scale * vecY.y, z: scale * vecY.z
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
else { // positionMode == 'offset'
|
|
189
|
-
// Labels will be skewd to maintain vertical / horizontal offsets
|
|
190
|
-
// from axis
|
|
191
|
-
if (!axis.horiz) { // Y Axis
|
|
192
|
-
vecX = { x: Math.cos(beta), y: 0, z: Math.sin(beta) };
|
|
193
|
-
}
|
|
194
|
-
else { // X and Z Axis
|
|
195
|
-
vecY = {
|
|
196
|
-
x: Math.sin(beta) * Math.sin(alpha),
|
|
197
|
-
y: Math.cos(alpha),
|
|
198
|
-
z: -Math.cos(beta) * Math.sin(alpha)
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
pos.x += offsetX * vecX.x + offsetY * vecY.x;
|
|
203
|
-
pos.y += offsetX * vecX.y + offsetY * vecY.y;
|
|
204
|
-
pos.z += offsetX * vecX.z + offsetY * vecY.z;
|
|
205
|
-
var projected = perspective([pos], axis.chart)[0];
|
|
206
|
-
if (skew) {
|
|
207
|
-
// Check if the label text would be mirrored
|
|
208
|
-
var isMirrored = shapeArea(perspective([
|
|
209
|
-
pos,
|
|
210
|
-
{ x: pos.x + vecX.x, y: pos.y + vecX.y, z: pos.z + vecX.z },
|
|
211
|
-
{ x: pos.x + vecY.x, y: pos.y + vecY.y, z: pos.z + vecY.z }
|
|
212
|
-
], axis.chart)) < 0;
|
|
213
|
-
if (isMirrored) {
|
|
214
|
-
vecX = { x: -vecX.x, y: -vecX.y, z: -vecX.z };
|
|
215
|
-
}
|
|
216
|
-
var pointsProjected = perspective([
|
|
217
|
-
{ x: pos.x, y: pos.y, z: pos.z },
|
|
218
|
-
{ x: pos.x + vecX.x, y: pos.y + vecX.y, z: pos.z + vecX.z },
|
|
219
|
-
{ x: pos.x + vecY.x, y: pos.y + vecY.y, z: pos.z + vecY.z }
|
|
220
|
-
], axis.chart);
|
|
221
|
-
projected.matrix = [
|
|
222
|
-
pointsProjected[1].x - pointsProjected[0].x,
|
|
223
|
-
pointsProjected[1].y - pointsProjected[0].y,
|
|
224
|
-
pointsProjected[2].x - pointsProjected[0].x,
|
|
225
|
-
pointsProjected[2].y - pointsProjected[0].y,
|
|
226
|
-
projected.x,
|
|
227
|
-
projected.y
|
|
228
|
-
];
|
|
229
|
-
projected.matrix[4] -= projected.x * projected.matrix[0] +
|
|
230
|
-
projected.y * projected.matrix[2];
|
|
231
|
-
projected.matrix[5] -= projected.x * projected.matrix[1] +
|
|
232
|
-
projected.y * projected.matrix[3];
|
|
233
|
-
}
|
|
234
|
-
return projected;
|
|
235
|
-
};
|
|
236
|
-
/**
|
|
237
|
-
* @private
|
|
238
|
-
*/
|
|
239
|
-
Axis3DAdditions.prototype.swapZ = function (p, insidePlotArea) {
|
|
240
|
-
var axis = this.axis;
|
|
241
|
-
if (axis.isZAxis) {
|
|
242
|
-
var plotLeft = insidePlotArea ? 0 : axis.chart.plotLeft;
|
|
243
|
-
return {
|
|
244
|
-
x: plotLeft + p.z,
|
|
245
|
-
y: p.y,
|
|
246
|
-
z: p.x - plotLeft
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
return p;
|
|
250
|
-
};
|
|
251
|
-
return Axis3DAdditions;
|
|
252
|
-
}());
|
|
253
|
-
/**
|
|
254
|
-
* Axis with 3D support.
|
|
255
|
-
* @private
|
|
256
|
-
* @class
|
|
257
|
-
*/
|
|
258
|
-
var Axis3D = /** @class */ (function () {
|
|
259
|
-
function Axis3D() {
|
|
260
|
-
}
|
|
261
|
-
/* *
|
|
262
|
-
*
|
|
263
|
-
* Static Functions
|
|
264
|
-
*
|
|
265
|
-
* */
|
|
266
|
-
/**
|
|
267
|
-
* Extends axis class with 3D support.
|
|
268
|
-
* @private
|
|
269
|
-
*/
|
|
270
|
-
Axis3D.compose = function (AxisClass) {
|
|
271
|
-
merge(true, AxisClass.defaultOptions, Axis3D.defaultOptions);
|
|
272
|
-
AxisClass.keepProps.push('axis3D');
|
|
273
|
-
addEvent(AxisClass, 'init', Axis3D.onInit);
|
|
274
|
-
addEvent(AxisClass, 'afterSetOptions', Axis3D.onAfterSetOptions);
|
|
275
|
-
addEvent(AxisClass, 'drawCrosshair', Axis3D.onDrawCrosshair);
|
|
276
|
-
var axisProto = AxisClass.prototype;
|
|
277
|
-
wrap(axisProto, 'getLinePath', Axis3D.wrapGetLinePath);
|
|
278
|
-
wrap(axisProto, 'getPlotBandPath', Axis3D.wrapGetPlotBandPath);
|
|
279
|
-
wrap(axisProto, 'getPlotLinePath', Axis3D.wrapGetPlotLinePath);
|
|
280
|
-
wrap(axisProto, 'getSlotWidth', Axis3D.wrapGetSlotWidth);
|
|
281
|
-
wrap(axisProto, 'getTitlePosition', Axis3D.wrapGetTitlePosition);
|
|
282
|
-
Tick3D.compose(Tick);
|
|
283
|
-
};
|
|
284
|
-
/**
|
|
285
|
-
* @private
|
|
286
|
-
*/
|
|
287
|
-
Axis3D.onAfterSetOptions = function () {
|
|
288
|
-
var axis = this;
|
|
289
|
-
var chart = axis.chart;
|
|
290
|
-
var options = axis.options;
|
|
291
|
-
if (chart.is3d && chart.is3d() && axis.coll !== 'colorAxis') {
|
|
292
|
-
options.tickWidth = pick(options.tickWidth, 0);
|
|
293
|
-
options.gridLineWidth = pick(options.gridLineWidth, 1);
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
/**
|
|
297
|
-
* @private
|
|
298
|
-
*/
|
|
299
|
-
Axis3D.onDrawCrosshair = function (e) {
|
|
300
|
-
var axis = this;
|
|
301
|
-
if (axis.chart.is3d() &&
|
|
302
|
-
axis.coll !== 'colorAxis') {
|
|
303
|
-
if (e.point) {
|
|
304
|
-
e.point.crosshairPos = axis.isXAxis ?
|
|
305
|
-
e.point.axisXpos :
|
|
306
|
-
axis.len - e.point.axisYpos;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
/**
|
|
311
|
-
* @private
|
|
312
|
-
*/
|
|
313
|
-
Axis3D.onInit = function () {
|
|
314
|
-
var axis = this;
|
|
315
|
-
if (!axis.axis3D) {
|
|
316
|
-
axis.axis3D = new Axis3DAdditions(axis);
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
/**
|
|
320
|
-
* Do not draw axislines in 3D.
|
|
321
|
-
* @private
|
|
322
|
-
*/
|
|
323
|
-
Axis3D.wrapGetLinePath = function (proceed) {
|
|
324
|
-
var axis = this;
|
|
325
|
-
// Do not do this if the chart is not 3D
|
|
326
|
-
if (!axis.chart.is3d() || axis.coll === 'colorAxis') {
|
|
327
|
-
return proceed.apply(axis, [].slice.call(arguments, 1));
|
|
328
|
-
}
|
|
329
|
-
return [];
|
|
330
|
-
};
|
|
331
|
-
/**
|
|
332
|
-
* @private
|
|
333
|
-
*/
|
|
334
|
-
Axis3D.wrapGetPlotBandPath = function (proceed) {
|
|
335
|
-
// Do not do this if the chart is not 3D
|
|
336
|
-
if (!this.chart.is3d() || this.coll === 'colorAxis') {
|
|
337
|
-
return proceed.apply(this, [].slice.call(arguments, 1));
|
|
338
|
-
}
|
|
339
|
-
var args = arguments, from = args[1], to = args[2], path = [], fromPath = this.getPlotLinePath({ value: from }), toPath = this.getPlotLinePath({ value: to });
|
|
340
|
-
if (fromPath && toPath) {
|
|
341
|
-
for (var i = 0; i < fromPath.length; i += 2) {
|
|
342
|
-
var fromStartSeg = fromPath[i], fromEndSeg = fromPath[i + 1], toStartSeg = toPath[i], toEndSeg = toPath[i + 1];
|
|
343
|
-
if (fromStartSeg[0] === 'M' &&
|
|
344
|
-
fromEndSeg[0] === 'L' &&
|
|
345
|
-
toStartSeg[0] === 'M' &&
|
|
346
|
-
toEndSeg[0] === 'L') {
|
|
347
|
-
path.push(fromStartSeg, fromEndSeg, toEndSeg,
|
|
348
|
-
// lineTo instead of moveTo
|
|
349
|
-
['L', toStartSeg[1], toStartSeg[2]], ['Z']);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
return path;
|
|
354
|
-
};
|
|
355
|
-
/**
|
|
356
|
-
* @private
|
|
357
|
-
*/
|
|
358
|
-
Axis3D.wrapGetPlotLinePath = function (proceed) {
|
|
359
|
-
var axis = this, axis3D = axis.axis3D, chart = axis.chart, path = proceed.apply(axis, [].slice.call(arguments, 1));
|
|
360
|
-
// Do not do this if the chart is not 3D
|
|
361
|
-
if (axis.coll === 'colorAxis' ||
|
|
362
|
-
!chart.chart3d ||
|
|
363
|
-
!chart.is3d()) {
|
|
364
|
-
return path;
|
|
365
|
-
}
|
|
366
|
-
if (path === null) {
|
|
367
|
-
return path;
|
|
368
|
-
}
|
|
369
|
-
var options3d = chart.options.chart.options3d, d = axis.isZAxis ? chart.plotWidth : options3d.depth, frame = chart.chart3d.frame3d, startSegment = path[0], endSegment = path[1];
|
|
370
|
-
var pArr, pathSegments = [];
|
|
371
|
-
if (startSegment[0] === 'M' && endSegment[0] === 'L') {
|
|
372
|
-
pArr = [
|
|
373
|
-
axis3D.swapZ({ x: startSegment[1], y: startSegment[2], z: 0 }),
|
|
374
|
-
axis3D.swapZ({ x: startSegment[1], y: startSegment[2], z: d }),
|
|
375
|
-
axis3D.swapZ({ x: endSegment[1], y: endSegment[2], z: 0 }),
|
|
376
|
-
axis3D.swapZ({ x: endSegment[1], y: endSegment[2], z: d })
|
|
377
|
-
];
|
|
378
|
-
if (!this.horiz) { // Y-Axis
|
|
379
|
-
if (frame.front.visible) {
|
|
380
|
-
pathSegments.push(pArr[0], pArr[2]);
|
|
381
|
-
}
|
|
382
|
-
if (frame.back.visible) {
|
|
383
|
-
pathSegments.push(pArr[1], pArr[3]);
|
|
384
|
-
}
|
|
385
|
-
if (frame.left.visible) {
|
|
386
|
-
pathSegments.push(pArr[0], pArr[1]);
|
|
387
|
-
}
|
|
388
|
-
if (frame.right.visible) {
|
|
389
|
-
pathSegments.push(pArr[2], pArr[3]);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
else if (this.isZAxis) { // Z-Axis
|
|
393
|
-
if (frame.left.visible) {
|
|
394
|
-
pathSegments.push(pArr[0], pArr[2]);
|
|
395
|
-
}
|
|
396
|
-
if (frame.right.visible) {
|
|
397
|
-
pathSegments.push(pArr[1], pArr[3]);
|
|
398
|
-
}
|
|
399
|
-
if (frame.top.visible) {
|
|
400
|
-
pathSegments.push(pArr[0], pArr[1]);
|
|
401
|
-
}
|
|
402
|
-
if (frame.bottom.visible) {
|
|
403
|
-
pathSegments.push(pArr[2], pArr[3]);
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
else { // X-Axis
|
|
407
|
-
if (frame.front.visible) {
|
|
408
|
-
pathSegments.push(pArr[0], pArr[2]);
|
|
409
|
-
}
|
|
410
|
-
if (frame.back.visible) {
|
|
411
|
-
pathSegments.push(pArr[1], pArr[3]);
|
|
412
|
-
}
|
|
413
|
-
if (frame.top.visible) {
|
|
414
|
-
pathSegments.push(pArr[0], pArr[1]);
|
|
415
|
-
}
|
|
416
|
-
if (frame.bottom.visible) {
|
|
417
|
-
pathSegments.push(pArr[2], pArr[3]);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
pathSegments = perspective(pathSegments, this.chart, false);
|
|
421
|
-
}
|
|
422
|
-
return chart.renderer.toLineSegments(pathSegments);
|
|
423
|
-
};
|
|
424
|
-
/**
|
|
425
|
-
* Wrap getSlotWidth function to calculate individual width value for each
|
|
426
|
-
* slot (#8042).
|
|
427
|
-
* @private
|
|
428
|
-
*/
|
|
429
|
-
Axis3D.wrapGetSlotWidth = function (proceed, tick) {
|
|
430
|
-
var axis = this, chart = axis.chart, ticks = axis.ticks, gridGroup = axis.gridGroup;
|
|
431
|
-
if (axis.categories &&
|
|
432
|
-
chart.frameShapes &&
|
|
433
|
-
chart.is3d() &&
|
|
434
|
-
gridGroup &&
|
|
435
|
-
tick &&
|
|
436
|
-
tick.label) {
|
|
437
|
-
var firstGridLine = (gridGroup.element.childNodes[0].getBBox()), frame3DLeft = chart.frameShapes.left.getBBox(), options3d = chart.options.chart.options3d, origin_1 = {
|
|
438
|
-
x: chart.plotWidth / 2,
|
|
439
|
-
y: chart.plotHeight / 2,
|
|
440
|
-
z: options3d.depth / 2,
|
|
441
|
-
vd: (pick(options3d.depth, 1) *
|
|
442
|
-
pick(options3d.viewDistance, 0))
|
|
443
|
-
}, tickId = tick.pos, prevTick = ticks[tickId - 1], nextTick = ticks[tickId + 1];
|
|
444
|
-
var labelPos = void 0, prevLabelPos = void 0, nextLabelPos = void 0;
|
|
445
|
-
// Check whether the tick is not the first one and previous tick
|
|
446
|
-
// exists, then calculate position of previous label.
|
|
447
|
-
if (tickId !== 0 &&
|
|
448
|
-
prevTick &&
|
|
449
|
-
prevTick.label &&
|
|
450
|
-
prevTick.label.xy) {
|
|
451
|
-
prevLabelPos = perspective3D({
|
|
452
|
-
x: prevTick.label.xy.x,
|
|
453
|
-
y: prevTick.label.xy.y,
|
|
454
|
-
z: null
|
|
455
|
-
}, origin_1, origin_1.vd);
|
|
456
|
-
}
|
|
457
|
-
// If next label position is defined, then recalculate its position
|
|
458
|
-
// basing on the perspective.
|
|
459
|
-
if (nextTick && nextTick.label && nextTick.label.xy) {
|
|
460
|
-
nextLabelPos = perspective3D({
|
|
461
|
-
x: nextTick.label.xy.x,
|
|
462
|
-
y: nextTick.label.xy.y,
|
|
463
|
-
z: null
|
|
464
|
-
}, origin_1, origin_1.vd);
|
|
465
|
-
}
|
|
466
|
-
labelPos = {
|
|
467
|
-
x: tick.label.xy.x,
|
|
468
|
-
y: tick.label.xy.y,
|
|
469
|
-
z: null
|
|
470
|
-
};
|
|
471
|
-
labelPos = perspective3D(labelPos, origin_1, origin_1.vd);
|
|
472
|
-
// If tick is first one, check whether next label position is
|
|
473
|
-
// already calculated, then return difference between the first and
|
|
474
|
-
// the second label. If there is no next label position calculated,
|
|
475
|
-
// return the difference between the first grid line and left 3d
|
|
476
|
-
// frame.
|
|
477
|
-
return Math.abs(prevLabelPos ?
|
|
478
|
-
labelPos.x - prevLabelPos.x : nextLabelPos ?
|
|
479
|
-
nextLabelPos.x - labelPos.x :
|
|
480
|
-
firstGridLine.x - frame3DLeft.x);
|
|
481
|
-
}
|
|
482
|
-
return proceed.apply(axis, [].slice.call(arguments, 1));
|
|
483
|
-
};
|
|
484
|
-
/**
|
|
485
|
-
* @private
|
|
486
|
-
*/
|
|
487
|
-
Axis3D.wrapGetTitlePosition = function (proceed) {
|
|
488
|
-
var pos = proceed.apply(this, [].slice.call(arguments, 1));
|
|
489
|
-
return this.axis3D ?
|
|
490
|
-
this.axis3D.fix3dPosition(pos, true) :
|
|
491
|
-
pos;
|
|
492
|
-
};
|
|
493
|
-
/* *
|
|
494
|
-
*
|
|
495
|
-
* Static Properties
|
|
496
|
-
*
|
|
497
|
-
* */
|
|
498
|
-
/**
|
|
499
|
-
* @optionparent xAxis
|
|
500
|
-
*/
|
|
501
|
-
Axis3D.defaultOptions = {
|
|
502
|
-
labels: {
|
|
503
|
-
/**
|
|
504
|
-
* Defines how the labels are be repositioned according to the 3D
|
|
505
|
-
* chart orientation.
|
|
506
|
-
*
|
|
507
|
-
* - `'offset'`: Maintain a fixed horizontal/vertical distance from
|
|
508
|
-
* the tick marks, despite the chart orientation. This is the
|
|
509
|
-
* backwards compatible behavior, and causes skewing of X and Z
|
|
510
|
-
* axes.
|
|
511
|
-
*
|
|
512
|
-
* - `'chart'`: Preserve 3D position relative to the chart. This
|
|
513
|
-
* looks nice, but hard to read if the text isn't forward-facing.
|
|
514
|
-
*
|
|
515
|
-
* - `'flap'`: Rotated text along the axis to compensate for the
|
|
516
|
-
* chart orientation. This tries to maintain text as legible as
|
|
517
|
-
* possible on all orientations.
|
|
518
|
-
*
|
|
519
|
-
* - `'ortho'`: Rotated text along the axis direction so that the
|
|
520
|
-
* labels are orthogonal to the axis. This is very similar to
|
|
521
|
-
* `'flap'`, but prevents skewing the labels (X and Y scaling are
|
|
522
|
-
* still present).
|
|
523
|
-
*
|
|
524
|
-
* @sample highcharts/3d/skewed-labels/
|
|
525
|
-
* Skewed labels
|
|
526
|
-
*
|
|
527
|
-
* @since 5.0.15
|
|
528
|
-
* @validvalue ['offset', 'chart', 'flap', 'ortho']
|
|
529
|
-
* @product highcharts
|
|
530
|
-
* @requires highcharts-3d
|
|
531
|
-
*/
|
|
532
|
-
position3d: 'offset',
|
|
533
|
-
/**
|
|
534
|
-
* If enabled, the axis labels will skewed to follow the
|
|
535
|
-
* perspective.
|
|
536
|
-
*
|
|
537
|
-
* This will fix overlapping labels and titles, but texts become
|
|
538
|
-
* less legible due to the distortion.
|
|
539
|
-
*
|
|
540
|
-
* The final appearance depends heavily on `labels.position3d`.
|
|
541
|
-
*
|
|
542
|
-
* @sample highcharts/3d/skewed-labels/
|
|
543
|
-
* Skewed labels
|
|
544
|
-
*
|
|
545
|
-
* @since 5.0.15
|
|
546
|
-
* @product highcharts
|
|
547
|
-
* @requires highcharts-3d
|
|
548
|
-
*/
|
|
549
|
-
skew3d: false
|
|
550
|
-
},
|
|
551
|
-
title: {
|
|
552
|
-
/**
|
|
553
|
-
* Defines how the title is repositioned according to the 3D chart
|
|
554
|
-
* orientation.
|
|
555
|
-
*
|
|
556
|
-
* - `'offset'`: Maintain a fixed horizontal/vertical distance from
|
|
557
|
-
* the tick marks, despite the chart orientation. This is the
|
|
558
|
-
* backwards compatible behavior, and causes skewing of X and Z
|
|
559
|
-
* axes.
|
|
560
|
-
*
|
|
561
|
-
* - `'chart'`: Preserve 3D position relative to the chart. This
|
|
562
|
-
* looks nice, but hard to read if the text isn't forward-facing.
|
|
563
|
-
*
|
|
564
|
-
* - `'flap'`: Rotated text along the axis to compensate for the
|
|
565
|
-
* chart orientation. This tries to maintain text as legible as
|
|
566
|
-
* possible on all orientations.
|
|
567
|
-
*
|
|
568
|
-
* - `'ortho'`: Rotated text along the axis direction so that the
|
|
569
|
-
* labels are orthogonal to the axis. This is very similar to
|
|
570
|
-
* `'flap'`, but prevents skewing the labels (X and Y scaling are
|
|
571
|
-
* still present).
|
|
572
|
-
*
|
|
573
|
-
* - `undefined`: Will use the config from `labels.position3d`
|
|
574
|
-
*
|
|
575
|
-
* @sample highcharts/3d/skewed-labels/
|
|
576
|
-
* Skewed labels
|
|
577
|
-
*
|
|
578
|
-
* @type {"offset"|"chart"|"flap"|"ortho"|null}
|
|
579
|
-
* @since 5.0.15
|
|
580
|
-
* @product highcharts
|
|
581
|
-
* @requires highcharts-3d
|
|
582
|
-
*/
|
|
583
|
-
position3d: null,
|
|
584
|
-
/**
|
|
585
|
-
* If enabled, the axis title will skewed to follow the perspective.
|
|
586
|
-
*
|
|
587
|
-
* This will fix overlapping labels and titles, but texts become
|
|
588
|
-
* less legible due to the distortion.
|
|
589
|
-
*
|
|
590
|
-
* The final appearance depends heavily on `title.position3d`.
|
|
591
|
-
*
|
|
592
|
-
* A `null` value will use the config from `labels.skew3d`.
|
|
593
|
-
*
|
|
594
|
-
* @sample highcharts/3d/skewed-labels/
|
|
595
|
-
* Skewed labels
|
|
596
|
-
*
|
|
597
|
-
* @type {boolean|null}
|
|
598
|
-
* @since 5.0.15
|
|
599
|
-
* @product highcharts
|
|
600
|
-
* @requires highcharts-3d
|
|
601
|
-
*/
|
|
602
|
-
skew3d: null
|
|
603
|
-
}
|
|
604
|
-
};
|
|
605
|
-
return Axis3D;
|
|
606
|
-
}());
|
|
607
|
-
/* *
|
|
608
|
-
*
|
|
609
|
-
* Default Export
|
|
610
|
-
*
|
|
611
|
-
* */
|
|
612
|
-
export default Axis3D;
|