highcharts 13.0.0 → 13.0.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 +3 -2
- package/css/highcharts.css +2 -1
- package/es-modules/Accessibility/Accessibility.js +38 -1
- package/es-modules/Accessibility/Components/LegendComponent.js +1 -2
- package/es-modules/Accessibility/Components/NavigatorComponent.js +1 -2
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +8 -4
- package/es-modules/Accessibility/Options/A11yDefaults.js +12 -3
- package/es-modules/Accessibility/ProxyElement.js +1 -0
- package/es-modules/Core/Animation/AnimationUtilities.js +31 -41
- package/es-modules/Core/Animation/Fx.js +16 -19
- package/es-modules/Core/Axis/Axis.js +1 -2
- package/es-modules/Core/Axis/AxisDefaults.js +12 -2
- package/es-modules/Core/Axis/Color/ColorAxis.js +7 -2
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +1 -1
- package/es-modules/Core/Axis/GridAxis.js +8 -1
- package/es-modules/Core/Axis/OrdinalAxis.js +12 -4
- package/es-modules/Core/Axis/RadialAxis.js +9 -14
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +1 -2
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +1 -1
- package/es-modules/Core/Chart/Chart.js +44 -39
- package/es-modules/Core/Chart/ChartDefaults.js +1 -1
- package/es-modules/Core/Chart/MapChart.js +0 -5
- package/es-modules/Core/Defaults.js +9 -2
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +4 -5
- package/es-modules/Core/Pointer.js +11 -1
- package/es-modules/Core/Renderer/HTML/AST.js +5 -1
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -16
- package/es-modules/Core/Renderer/SVG/SVGElement.js +1 -2
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +2 -3
- package/es-modules/Core/Series/DataLabel.js +1 -2
- package/es-modules/Core/Series/Point.js +28 -21
- package/es-modules/Core/Series/Series.js +89 -62
- package/es-modules/Core/Series/SeriesDefaults.js +33 -0
- package/es-modules/Core/Templating.js +16 -13
- package/es-modules/Core/Tooltip.js +1 -2
- package/es-modules/Data/DataTableCore.js +1 -1
- package/es-modules/Extensions/Annotations/Annotation.js +1 -2
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +4 -4
- package/es-modules/Extensions/Annotations/MockPoint.js +7 -9
- package/es-modules/Extensions/Annotations/NavigationBindingsUtilities.js +30 -3
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +2 -2
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -4
- package/es-modules/Extensions/Annotations/Types/Measure.js +25 -7
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -1
- package/es-modules/Extensions/Boost/Boost.js +13 -0
- package/es-modules/Extensions/Boost/BoostSeries.js +9 -2
- package/es-modules/Extensions/BorderRadius.js +12 -10
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +1 -1
- package/es-modules/Extensions/DraggablePoints/DraggableChart.js +1 -2
- package/es-modules/Extensions/Drilldown/Drilldown.js +1 -2
- package/es-modules/Extensions/Drilldown/DrilldownSeries.js +1 -2
- package/es-modules/Extensions/ExportData/ExportData.js +5 -1
- package/es-modules/Extensions/Exporting/Exporting.js +21 -21
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +32 -0
- package/es-modules/Extensions/MarkerClusters/MarkerClusterScatter.js +1 -2
- package/es-modules/Extensions/MarkerClusters/MarkerClusters.js +1 -2
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +31 -4
- package/es-modules/Extensions/Pane/PaneDefaults.js +1 -1
- package/es-modules/Extensions/ParallelCoordinates/ParallelCoordinates.js +3 -0
- package/es-modules/Extensions/ScrollablePlotArea.js +8 -2
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +1 -2
- package/es-modules/Extensions/Sonification/SynthPatch.js +1 -1
- package/es-modules/Maps/GeoJSONComposition.js +14 -1
- package/es-modules/Maps/MapView.js +1 -1
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +87 -147
- package/es-modules/Series/AreaRange/AreaRangeSeriesDefaults.js +42 -4
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +10 -6
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +27 -28
- package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +33 -1
- package/es-modules/Series/Bubble/BubbleSeries.js +15 -0
- package/es-modules/Series/Bullet/BulletSeries.js +1 -1
- package/es-modules/Series/Candlestick/CandlestickSeries.js +3 -3
- package/es-modules/Series/CenteredUtilities.js +5 -4
- package/es-modules/Series/ColorMapComposition.js +7 -4
- package/es-modules/Series/Column/ColumnPoint.js +2 -0
- package/es-modules/Series/Column/ColumnSeries.js +12 -12
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +4 -2
- package/es-modules/Series/Column3D/Column3DComposition.js +16 -14
- package/es-modules/Series/ColumnPyramid/ColumnPyramidPoint.js +18 -0
- package/es-modules/Series/ColumnPyramid/ColumnPyramidPointOptions.js +12 -0
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +3 -2
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeriesOptions.js +12 -0
- package/es-modules/Series/ColumnRange/ColumnRangePoint.js +2 -0
- package/es-modules/Series/ColumnRange/ColumnRangePointOptions.js +12 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +9 -142
- package/es-modules/Series/ColumnRange/ColumnRangeSeriesDefaults.js +148 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeriesOptions.js +12 -0
- package/es-modules/Series/Contour/ContourPoint.js +2 -0
- package/es-modules/Series/Contour/ContourSeries.js +1 -0
- package/es-modules/Series/Contour/ContourSeriesDefaults.js +7 -0
- package/es-modules/Series/Contour/ContourShader.js +9 -1
- package/es-modules/Series/CrossSymbol.js +3 -2
- package/es-modules/Series/Cylinder/CylinderComposition.js +10 -10
- package/es-modules/Series/Cylinder/CylinderPoint.js +2 -0
- package/es-modules/Series/Cylinder/CylinderPointOptions.js +15 -0
- package/es-modules/Series/Cylinder/CylinderSeries.js +2 -1
- package/es-modules/Series/Cylinder/CylinderSeriesOptions.js +15 -0
- package/es-modules/Series/Cylinder/SVGElement3DCylinder.js +2 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +3 -1
- package/es-modules/Series/DependencyWheel/DependencyWheelPointOptions.js +14 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +8 -8
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesOptions.js +14 -0
- package/es-modules/Series/DerivedComposition.js +9 -8
- package/es-modules/Series/DotPlot/DotPlotPoint.js +18 -0
- package/es-modules/Series/DotPlot/DotPlotPointOptions.js +12 -0
- package/es-modules/Series/DotPlot/DotPlotSeries.js +3 -2
- package/es-modules/Series/DotPlot/DotPlotSeriesOptions.js +12 -0
- package/es-modules/Series/DragNodesComposition.js +11 -8
- package/es-modules/Series/DrawPointUtilities.js +3 -1
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +5 -3
- package/es-modules/Series/Dumbbell/DumbbellPointOptions.js +12 -0
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +9 -8
- package/es-modules/Series/Dumbbell/DumbbellSeriesOptions.js +12 -0
- package/es-modules/Series/ErrorBar/ErrorBarPoint.js +18 -0
- package/es-modules/Series/ErrorBar/ErrorBarPointOptions.js +12 -0
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +6 -9
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +15 -1
- package/es-modules/Series/ErrorBar/ErrorBarSeriesOptions.js +12 -0
- package/es-modules/Series/Flags/FlagsSeries.js +5 -14
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +2 -1
- package/es-modules/Series/Funnel/FunnelSeries.js +23 -24
- package/es-modules/Series/Funnel/FunnelSeriesDefaults.js +12 -0
- package/es-modules/Series/Gantt/GanttSeries.js +2 -1
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +5 -5
- package/es-modules/Series/GraphLayoutComposition.js +3 -3
- package/es-modules/Series/Histogram/HistogramSeries.js +1 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +9 -9
- package/es-modules/Series/Map/MapSeries.js +1 -2
- package/es-modules/Series/Map/MapSeriesDefaults.js +11 -1
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +10 -7
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +12 -0
- package/es-modules/Series/OHLC/OHLCPoint.js +2 -2
- package/es-modules/Series/OHLC/OHLCSeries.js +1 -0
- package/es-modules/Series/Organization/OrganizationSeries.js +29 -7
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +11 -4
- package/es-modules/Series/Pie/PiePoint.js +1 -2
- package/es-modules/Series/PolarComposition.js +5 -7
- package/es-modules/Series/Polygon/PolygonSeries.js +2 -2
- package/es-modules/Series/Polygon/PolygonSeriesDefaults.js +20 -0
- package/es-modules/Series/RangeDataLabel.js +128 -0
- package/es-modules/Series/Sankey/SankeySeries.js +2 -2
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +2 -2
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +2 -0
- package/es-modules/Series/SimulationSeriesUtilities.js +1 -2
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +2 -2
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +8 -0
- package/es-modules/Series/TiledWebMap/TiledWebMapSeries.js +12 -6
- package/es-modules/Series/Tilemap/TilemapSeriesDefaults.js +2 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +9 -3
- package/es-modules/Series/Treegraph/TreegraphSeries.js +22 -13
- package/es-modules/Series/Treemap/TreemapSeriesDefaults.js +22 -1
- package/es-modules/Series/VariablePie/VariablePieSeriesDefaults.js +3 -2
- package/es-modules/Series/Vector/VectorSeries.js +7 -9
- package/es-modules/Series/Venn/VennSeries.js +3 -4
- package/es-modules/Series/Waterfall/WaterfallSeries.js +1 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +6 -8
- package/es-modules/Series/XRange/XRangeSeries.js +8 -8
- package/es-modules/Shared/TimeBase.js +5 -6
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +1 -2
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +9 -2
- package/es-modules/Stock/Navigator/NavigatorSymbols.js +2 -1
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +51 -10
- package/es-modules/Stock/StockTools/StockToolbar.js +1 -1
- package/es-modules/Stock/StockTools/StockToolsBindings.js +7 -7
- package/es-modules/Stock/StockTools/StockToolsGui.js +2 -2
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-autoload.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +7 -7
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
- package/es-modules/masters/i18n/fr-FR.src.js +1 -1
- package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
- package/es-modules/masters/i18n/nb-NO.src.js +1 -1
- package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
- package/es-modules/masters/i18n/zh-CN.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/contour.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-sorting.src.js +1 -1
- package/es-modules/masters/modules/data-tools.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/flowmap.src.js +2 -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/geoheatmap.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +1 -1
- package/es-modules/masters/modules/navigator.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/non-cartesian-zoom.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/organization.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/pictorial.src.js +1 -1
- package/es-modules/masters/modules/pointandfigure.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/renko.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 +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 +3 -2
- package/es-modules/masters/modules/textpath.src.js +1 -1
- package/es-modules/masters/modules/tiledwebmap.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 +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/standalone-navigator.src.js +1 -1
- package/es-modules/masters/themes/adaptive.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/high-contrast.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -1
- package/esm/highcharts-3d.js +2 -2
- package/esm/highcharts-3d.src.js +40 -25
- package/esm/highcharts-autoload.js +2 -2
- package/esm/highcharts-autoload.src.js +22 -8
- package/esm/highcharts-gantt.js +2 -2
- package/esm/highcharts-gantt.src.js +1 -24
- package/esm/highcharts-more.js +2 -2
- package/esm/highcharts-more.src.js +1109 -926
- package/esm/highcharts.js +5 -5
- package/esm/highcharts.src.js +396 -314
- package/esm/highmaps.js +2 -2
- package/esm/highmaps.src.js +1 -24
- package/esm/highstock.js +2 -2
- package/esm/highstock.src.js +1 -24
- package/esm/i18n/fr-FR.js +2 -2
- package/esm/i18n/fr-FR.src.js +22 -8
- package/esm/i18n/nb-NO.js +2 -2
- package/esm/i18n/nb-NO.src.js +22 -8
- package/esm/i18n/zh-CN.js +2 -2
- package/esm/i18n/zh-CN.src.js +22 -8
- package/esm/indicators/acceleration-bands.js +2 -2
- package/esm/indicators/acceleration-bands.src.js +22 -8
- package/esm/indicators/accumulation-distribution.js +2 -2
- package/esm/indicators/accumulation-distribution.src.js +22 -8
- package/esm/indicators/ao.js +2 -2
- package/esm/indicators/ao.src.js +22 -8
- package/esm/indicators/apo.js +2 -2
- package/esm/indicators/apo.src.js +22 -8
- package/esm/indicators/aroon-oscillator.js +2 -2
- package/esm/indicators/aroon-oscillator.src.js +22 -8
- package/esm/indicators/aroon.js +2 -2
- package/esm/indicators/aroon.src.js +22 -8
- package/esm/indicators/atr.js +2 -2
- package/esm/indicators/atr.src.js +22 -8
- package/esm/indicators/bollinger-bands.js +2 -2
- package/esm/indicators/bollinger-bands.src.js +22 -8
- package/esm/indicators/cci.js +2 -2
- package/esm/indicators/cci.src.js +22 -8
- package/esm/indicators/chaikin.js +2 -2
- package/esm/indicators/chaikin.src.js +22 -8
- package/esm/indicators/cmf.js +2 -2
- package/esm/indicators/cmf.src.js +22 -8
- package/esm/indicators/cmo.js +2 -2
- package/esm/indicators/cmo.src.js +22 -8
- package/esm/indicators/dema.js +2 -2
- package/esm/indicators/dema.src.js +22 -8
- package/esm/indicators/disparity-index.js +2 -2
- package/esm/indicators/disparity-index.src.js +22 -8
- package/esm/indicators/dmi.js +2 -2
- package/esm/indicators/dmi.src.js +22 -8
- package/esm/indicators/dpo.js +2 -2
- package/esm/indicators/dpo.src.js +22 -8
- package/esm/indicators/ichimoku-kinko-hyo.js +2 -2
- package/esm/indicators/ichimoku-kinko-hyo.src.js +22 -8
- package/esm/indicators/indicators-all.js +2 -2
- package/esm/indicators/indicators-all.src.js +24 -11
- package/esm/indicators/indicators.js +2 -2
- package/esm/indicators/indicators.src.js +23 -9
- package/esm/indicators/keltner-channels.js +2 -2
- package/esm/indicators/keltner-channels.src.js +22 -8
- package/esm/indicators/klinger.js +2 -2
- package/esm/indicators/klinger.src.js +22 -8
- package/esm/indicators/macd.js +2 -2
- package/esm/indicators/macd.src.js +22 -8
- package/esm/indicators/mfi.js +2 -2
- package/esm/indicators/mfi.src.js +22 -8
- package/esm/indicators/momentum.js +2 -2
- package/esm/indicators/momentum.src.js +22 -8
- package/esm/indicators/natr.js +2 -2
- package/esm/indicators/natr.src.js +22 -8
- package/esm/indicators/obv.js +2 -2
- package/esm/indicators/obv.src.js +22 -8
- package/esm/indicators/pivot-points.js +2 -2
- package/esm/indicators/pivot-points.src.js +22 -8
- package/esm/indicators/ppo.js +2 -2
- package/esm/indicators/ppo.src.js +22 -8
- package/esm/indicators/price-channel.js +2 -2
- package/esm/indicators/price-channel.src.js +22 -8
- package/esm/indicators/price-envelopes.js +2 -2
- package/esm/indicators/price-envelopes.src.js +22 -8
- package/esm/indicators/psar.js +2 -2
- package/esm/indicators/psar.src.js +22 -8
- package/esm/indicators/regressions.js +2 -2
- package/esm/indicators/regressions.src.js +22 -8
- package/esm/indicators/roc.js +2 -2
- package/esm/indicators/roc.src.js +22 -8
- package/esm/indicators/rsi.js +2 -2
- package/esm/indicators/rsi.src.js +22 -8
- package/esm/indicators/slow-stochastic.js +2 -2
- package/esm/indicators/slow-stochastic.src.js +22 -8
- package/esm/indicators/stochastic.js +2 -2
- package/esm/indicators/stochastic.src.js +22 -8
- package/esm/indicators/supertrend.js +2 -2
- package/esm/indicators/supertrend.src.js +22 -8
- package/esm/indicators/tema.js +2 -2
- package/esm/indicators/tema.src.js +22 -8
- package/esm/indicators/trendline.js +2 -2
- package/esm/indicators/trendline.src.js +22 -8
- package/esm/indicators/trix.js +2 -2
- package/esm/indicators/trix.src.js +22 -8
- package/esm/indicators/volume-by-price.js +2 -2
- package/esm/indicators/volume-by-price.src.js +23 -10
- package/esm/indicators/vwap.js +2 -2
- package/esm/indicators/vwap.src.js +22 -8
- package/esm/indicators/williams-r.js +2 -2
- package/esm/indicators/williams-r.src.js +22 -8
- package/esm/indicators/wma.js +2 -2
- package/esm/indicators/wma.src.js +22 -8
- package/esm/indicators/zigzag.js +2 -2
- package/esm/indicators/zigzag.src.js +22 -8
- package/esm/modules/accessibility.js +2 -2
- package/esm/modules/accessibility.src.js +498 -32
- package/esm/modules/annotations-advanced.js +11 -11
- package/esm/modules/annotations-advanced.src.js +201 -141
- package/esm/modules/annotations.js +11 -11
- package/esm/modules/annotations.src.js +165 -127
- package/esm/modules/arc-diagram.js +2 -2
- package/esm/modules/arc-diagram.src.js +22 -8
- package/esm/modules/arrow-symbols.js +3 -3
- package/esm/modules/arrow-symbols.src.js +22 -8
- package/esm/modules/boost-canvas.js +2 -2
- package/esm/modules/boost-canvas.src.js +32 -11
- package/esm/modules/boost.js +2 -2
- package/esm/modules/boost.src.js +45 -11
- package/esm/modules/broken-axis.js +2 -2
- package/esm/modules/broken-axis.src.js +22 -8
- package/esm/modules/bullet.js +2 -2
- package/esm/modules/bullet.src.js +23 -9
- package/esm/modules/coloraxis.js +2 -2
- package/esm/modules/coloraxis.src.js +30 -11
- package/esm/modules/contour.js +3 -3
- package/esm/modules/contour.src.js +46 -13
- package/esm/modules/current-date-indicator.js +2 -2
- package/esm/modules/current-date-indicator.src.js +22 -8
- package/esm/modules/cylinder.js +2 -2
- package/esm/modules/cylinder.src.js +38 -19
- package/esm/modules/data-sorting.js +2 -2
- package/esm/modules/data-sorting.src.js +22 -8
- package/esm/modules/data-tools.js +2 -2
- package/esm/modules/data-tools.src.js +25 -11
- package/esm/modules/data.js +4 -4
- package/esm/modules/data.src.js +23 -9
- package/esm/modules/datagrouping.js +2 -2
- package/esm/modules/datagrouping.src.js +23 -9
- package/esm/modules/debugger.js +2 -2
- package/esm/modules/debugger.src.js +22 -8
- package/esm/modules/dependency-wheel.js +2 -2
- package/esm/modules/dependency-wheel.src.js +428 -17
- package/esm/modules/dotplot.js +2 -2
- package/esm/modules/dotplot.src.js +25 -10
- package/esm/modules/drag-panes.js +2 -2
- package/esm/modules/drag-panes.src.js +22 -8
- package/esm/modules/draggable-points.js +2 -2
- package/esm/modules/draggable-points.src.js +23 -10
- package/esm/modules/drilldown.js +2 -2
- package/esm/modules/drilldown.src.js +34 -22
- package/esm/modules/dumbbell.js +2 -2
- package/esm/modules/dumbbell.src.js +36 -19
- package/esm/modules/export-data.js +2 -2
- package/esm/modules/export-data.src.js +27 -9
- package/esm/modules/exporting.js +2 -2
- package/esm/modules/exporting.src.js +77 -31
- package/esm/modules/flowmap.js +3 -2
- package/esm/modules/flowmap.src.js +23 -8
- package/esm/modules/full-screen.js +2 -2
- package/esm/modules/full-screen.src.js +22 -8
- package/esm/modules/funnel.js +2 -2
- package/esm/modules/funnel.src.js +72 -41
- package/esm/modules/funnel3d.js +2 -2
- package/esm/modules/funnel3d.src.js +22 -8
- package/esm/modules/gantt.js +2 -2
- package/esm/modules/gantt.src.js +450 -25
- package/esm/modules/geoheatmap.js +2 -2
- package/esm/modules/geoheatmap.src.js +28 -14
- package/esm/modules/grid-axis.js +2 -2
- package/esm/modules/grid-axis.src.js +30 -9
- package/esm/modules/heatmap.js +2 -2
- package/esm/modules/heatmap.src.js +29 -12
- package/esm/modules/heikinashi.js +2 -2
- package/esm/modules/heikinashi.src.js +22 -8
- package/esm/modules/histogram-bellcurve.js +2 -2
- package/esm/modules/histogram-bellcurve.src.js +42 -23
- package/esm/modules/hollowcandlestick.js +2 -2
- package/esm/modules/hollowcandlestick.src.js +31 -17
- package/esm/modules/item-series.js +2 -2
- package/esm/modules/item-series.src.js +55 -8
- package/esm/modules/lollipop.js +2 -2
- package/esm/modules/lollipop.src.js +22 -8
- package/esm/modules/map.js +2 -2
- package/esm/modules/map.src.js +84 -35
- package/esm/modules/marker-clusters.js +2 -2
- package/esm/modules/marker-clusters.src.js +25 -13
- package/esm/modules/mouse-wheel-zoom.js +2 -2
- package/esm/modules/mouse-wheel-zoom.src.js +52 -11
- package/esm/modules/navigator.js +2 -2
- package/esm/modules/navigator.src.js +488 -30
- package/esm/modules/networkgraph.js +2 -2
- package/esm/modules/networkgraph.src.js +57 -26
- package/esm/modules/no-data-to-display.js +2 -2
- package/esm/modules/no-data-to-display.src.js +22 -8
- package/esm/modules/non-cartesian-zoom.js +2 -2
- package/esm/modules/non-cartesian-zoom.src.js +22 -8
- package/esm/modules/offline-exporting.js +2 -2
- package/esm/modules/offline-exporting.src.js +53 -12
- package/esm/modules/organization.js +4 -2
- package/esm/modules/organization.src.js +61 -18
- package/esm/modules/parallel-coordinates.js +2 -2
- package/esm/modules/parallel-coordinates.src.js +25 -8
- package/esm/modules/pareto.js +2 -2
- package/esm/modules/pareto.src.js +31 -16
- package/esm/modules/pathfinder.js +2 -2
- package/esm/modules/pathfinder.src.js +22 -8
- package/esm/modules/pattern-fill.js +2 -2
- package/esm/modules/pattern-fill.src.js +22 -8
- package/esm/modules/pictorial.js +2 -2
- package/esm/modules/pictorial.src.js +27 -14
- package/esm/modules/pointandfigure.js +2 -2
- package/esm/modules/pointandfigure.src.js +26 -11
- package/esm/modules/price-indicator.js +2 -2
- package/esm/modules/price-indicator.src.js +22 -8
- package/esm/modules/pyramid3d.js +2 -2
- package/esm/modules/pyramid3d.src.js +22 -8
- package/esm/modules/renko.js +2 -2
- package/esm/modules/renko.src.js +22 -8
- package/esm/modules/sankey.js +2 -2
- package/esm/modules/sankey.src.js +26 -12
- package/esm/modules/series-label.js +2 -2
- package/esm/modules/series-label.src.js +25 -12
- package/esm/modules/series-on-point.js +2 -2
- package/esm/modules/series-on-point.src.js +23 -9
- package/esm/modules/solid-gauge.js +2 -2
- package/esm/modules/solid-gauge.src.js +39 -19
- package/esm/modules/sonification.js +2 -2
- package/esm/modules/sonification.src.js +27 -12
- package/esm/modules/static-scale.js +2 -2
- package/esm/modules/static-scale.src.js +22 -8
- package/esm/modules/stock-tools.js +3 -3
- package/esm/modules/stock-tools.src.js +59 -18
- package/esm/modules/stock.js +2 -2
- package/esm/modules/stock.src.js +465 -47
- package/esm/modules/streamgraph.js +2 -2
- package/esm/modules/streamgraph.src.js +22 -8
- package/esm/modules/sunburst.js +2 -2
- package/esm/modules/sunburst.src.js +70 -20
- package/esm/modules/textpath.js +2 -2
- package/esm/modules/textpath.src.js +22 -8
- package/esm/modules/tiledwebmap.js +3 -3
- package/esm/modules/tiledwebmap.src.js +37 -14
- package/esm/modules/tilemap.js +2 -2
- package/esm/modules/tilemap.src.js +25 -10
- package/esm/modules/timeline.js +2 -2
- package/esm/modules/timeline.src.js +31 -11
- package/esm/modules/treegraph.js +2 -2
- package/esm/modules/treegraph.src.js +43 -20
- package/esm/modules/treegrid.js +2 -2
- package/esm/modules/treegrid.src.js +31 -10
- package/esm/modules/treemap.js +2 -2
- package/esm/modules/treemap.src.js +55 -15
- package/esm/modules/variable-pie.js +2 -2
- package/esm/modules/variable-pie.src.js +25 -10
- package/esm/modules/variwide.js +2 -2
- package/esm/modules/variwide.src.js +22 -8
- package/esm/modules/vector.js +2 -2
- package/esm/modules/vector.src.js +28 -16
- package/esm/modules/venn.js +2 -2
- package/esm/modules/venn.src.js +28 -13
- package/esm/modules/windbarb.js +2 -2
- package/esm/modules/windbarb.src.js +28 -16
- package/esm/modules/wordcloud.js +2 -2
- package/esm/modules/wordcloud.src.js +25 -9
- package/esm/modules/xrange.js +2 -2
- package/esm/modules/xrange.src.js +29 -15
- package/esm/standalone-navigator.js +5 -5
- package/esm/standalone-navigator.src.js +461 -329
- package/esm/themes/adaptive.js +3 -3
- package/esm/themes/adaptive.src.js +22 -8
- package/esm/themes/avocado.js +2 -2
- package/esm/themes/avocado.src.js +22 -8
- package/esm/themes/dark-unica.js +2 -2
- package/esm/themes/dark-unica.src.js +22 -8
- package/esm/themes/grid-light.js +2 -2
- package/esm/themes/grid-light.src.js +22 -8
- package/esm/themes/high-contrast.js +2 -2
- package/esm/themes/high-contrast.src.js +22 -8
- package/esm/themes/sand-signika.js +2 -2
- package/esm/themes/sand-signika.src.js +22 -8
- package/esm/themes/sunset.js +2 -2
- package/esm/themes/sunset.src.js +22 -8
- package/highcharts-3d.js +2 -2
- package/highcharts-3d.src.js +78 -62
- package/highcharts-autoload.d.ts +7 -3
- package/highcharts-autoload.js +4 -4
- package/highcharts-autoload.src.d.ts +7 -3
- package/highcharts-autoload.src.js +418 -298
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +458 -318
- package/highcharts-more.d.ts +7 -3
- package/highcharts-more.js +2 -2
- package/highcharts-more.src.d.ts +7 -3
- package/highcharts-more.src.js +1224 -1040
- package/highcharts.d.ts +34734 -25643
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +34734 -25643
- package/highcharts.src.js +417 -297
- package/highmaps.js +4 -4
- package/highmaps.src.js +482 -320
- package/highstock.js +4 -4
- package/highstock.src.js +497 -337
- package/i18n/fr-FR.js +2 -2
- package/i18n/fr-FR.src.js +32 -16
- package/i18n/nb-NO.js +2 -2
- package/i18n/nb-NO.src.js +32 -16
- package/i18n/zh-CN.js +2 -2
- package/i18n/zh-CN.src.js +32 -16
- package/indicators/acceleration-bands.js +2 -2
- package/indicators/acceleration-bands.src.js +31 -16
- package/indicators/accumulation-distribution.js +2 -2
- package/indicators/accumulation-distribution.src.js +31 -16
- package/indicators/ao.js +2 -2
- package/indicators/ao.src.js +31 -16
- package/indicators/apo.js +2 -2
- package/indicators/apo.src.js +31 -16
- package/indicators/aroon-oscillator.js +2 -2
- package/indicators/aroon-oscillator.src.js +31 -16
- package/indicators/aroon.js +2 -2
- package/indicators/aroon.src.js +31 -16
- package/indicators/atr.js +2 -2
- package/indicators/atr.src.js +31 -16
- package/indicators/bollinger-bands.js +2 -2
- package/indicators/bollinger-bands.src.js +31 -16
- package/indicators/cci.js +2 -2
- package/indicators/cci.src.js +31 -16
- package/indicators/chaikin.js +2 -2
- package/indicators/chaikin.src.js +31 -16
- package/indicators/cmf.js +2 -2
- package/indicators/cmf.src.js +31 -16
- package/indicators/cmo.js +2 -2
- package/indicators/cmo.src.js +31 -16
- package/indicators/dema.js +2 -2
- package/indicators/dema.src.js +31 -16
- package/indicators/disparity-index.js +2 -2
- package/indicators/disparity-index.src.js +31 -16
- package/indicators/dmi.js +2 -2
- package/indicators/dmi.src.js +31 -16
- package/indicators/dpo.js +2 -2
- package/indicators/dpo.src.js +31 -16
- package/indicators/ichimoku-kinko-hyo.js +2 -2
- package/indicators/ichimoku-kinko-hyo.src.js +41 -26
- package/indicators/indicators-all.js +2 -2
- package/indicators/indicators-all.src.js +45 -31
- package/indicators/indicators.js +2 -2
- package/indicators/indicators.src.js +38 -23
- package/indicators/keltner-channels.js +2 -2
- package/indicators/keltner-channels.src.js +31 -16
- package/indicators/klinger.js +2 -2
- package/indicators/klinger.src.js +31 -16
- package/indicators/macd.js +2 -2
- package/indicators/macd.src.js +31 -16
- package/indicators/mfi.js +2 -2
- package/indicators/mfi.src.js +31 -16
- package/indicators/momentum.js +2 -2
- package/indicators/momentum.src.js +31 -16
- package/indicators/natr.js +2 -2
- package/indicators/natr.src.js +31 -16
- package/indicators/obv.js +2 -2
- package/indicators/obv.src.js +31 -16
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.src.js +31 -16
- package/indicators/ppo.js +2 -2
- package/indicators/ppo.src.js +31 -16
- package/indicators/price-channel.js +2 -2
- package/indicators/price-channel.src.js +31 -16
- package/indicators/price-envelopes.js +2 -2
- package/indicators/price-envelopes.src.js +31 -16
- package/indicators/psar.js +2 -2
- package/indicators/psar.src.js +31 -16
- package/indicators/regressions.js +2 -2
- package/indicators/regressions.src.js +31 -16
- package/indicators/roc.js +2 -2
- package/indicators/roc.src.js +31 -16
- package/indicators/rsi.js +2 -2
- package/indicators/rsi.src.js +31 -16
- package/indicators/slow-stochastic.js +2 -2
- package/indicators/slow-stochastic.src.js +31 -16
- package/indicators/stochastic.js +2 -2
- package/indicators/stochastic.src.js +31 -16
- package/indicators/supertrend.js +2 -2
- package/indicators/supertrend.src.js +31 -16
- package/indicators/tema.js +2 -2
- package/indicators/tema.src.js +31 -16
- package/indicators/trendline.js +2 -2
- package/indicators/trendline.src.js +31 -16
- package/indicators/trix.js +2 -2
- package/indicators/trix.src.js +31 -16
- package/indicators/volume-by-price.js +2 -2
- package/indicators/volume-by-price.src.js +32 -18
- package/indicators/vwap.js +2 -2
- package/indicators/vwap.src.js +31 -16
- package/indicators/williams-r.js +2 -2
- package/indicators/williams-r.src.js +31 -16
- package/indicators/wma.js +2 -2
- package/indicators/wma.src.js +31 -16
- package/indicators/zigzag.js +2 -2
- package/indicators/zigzag.src.js +31 -16
- package/modules/accessibility.d.ts +47 -0
- package/modules/accessibility.js +2 -2
- package/modules/accessibility.src.d.ts +47 -0
- package/modules/accessibility.src.js +537 -70
- package/modules/annotations-advanced.js +11 -11
- package/modules/annotations-advanced.src.js +223 -162
- package/modules/annotations.js +11 -11
- package/modules/annotations.src.js +187 -148
- package/modules/arc-diagram.js +2 -2
- package/modules/arc-diagram.src.js +43 -28
- package/modules/arrow-symbols.js +2 -2
- package/modules/arrow-symbols.src.js +28 -13
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.src.js +41 -19
- package/modules/boost.js +2 -2
- package/modules/boost.src.js +54 -19
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.src.js +31 -16
- package/modules/bullet.js +2 -2
- package/modules/bullet.src.js +35 -20
- package/modules/coloraxis.js +2 -2
- package/modules/coloraxis.src.js +48 -28
- package/modules/contour.js +5 -5
- package/modules/contour.src.js +74 -34
- package/modules/current-date-indicator.js +2 -2
- package/modules/current-date-indicator.src.js +28 -13
- package/modules/cylinder.js +2 -2
- package/modules/cylinder.src.js +59 -39
- package/modules/data-sorting.js +2 -2
- package/modules/data-sorting.src.js +28 -13
- package/modules/data-tools.js +2 -2
- package/modules/data-tools.src.js +31 -16
- package/modules/data.js +2 -2
- package/modules/data.src.js +50 -35
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.src.js +37 -22
- package/modules/debugger.js +2 -2
- package/modules/debugger.src.js +28 -13
- package/modules/dependency-wheel.d.ts +7 -1
- package/modules/dependency-wheel.js +2 -2
- package/modules/dependency-wheel.src.d.ts +7 -1
- package/modules/dependency-wheel.src.js +440 -28
- package/modules/dotplot.js +2 -2
- package/modules/dotplot.src.js +34 -18
- package/modules/drag-panes.js +2 -2
- package/modules/drag-panes.src.js +28 -13
- package/modules/draggable-points.js +2 -2
- package/modules/draggable-points.src.js +29 -15
- package/modules/drilldown.js +2 -2
- package/modules/drilldown.src.js +45 -32
- package/modules/dumbbell.js +2 -2
- package/modules/dumbbell.src.js +50 -32
- package/modules/export-data.d.ts +66 -1
- package/modules/export-data.js +2 -2
- package/modules/export-data.src.d.ts +66 -1
- package/modules/export-data.src.js +41 -22
- package/modules/exporting.d.ts +0 -103
- package/modules/exporting.js +2 -2
- package/modules/exporting.src.d.ts +0 -103
- package/modules/exporting.src.js +91 -44
- package/modules/flowmap.js +3 -2
- package/modules/flowmap.src.js +32 -16
- package/modules/full-screen.js +2 -2
- package/modules/full-screen.src.js +31 -16
- package/modules/funnel.d.ts +3 -3
- package/modules/funnel.js +2 -2
- package/modules/funnel.src.d.ts +3 -3
- package/modules/funnel.src.js +81 -49
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.src.js +43 -28
- package/modules/gantt.d.ts +47 -0
- package/modules/gantt.js +8 -8
- package/modules/gantt.src.d.ts +47 -0
- package/modules/gantt.src.js +510 -81
- package/modules/geoheatmap.d.ts +13 -0
- package/modules/geoheatmap.js +2 -2
- package/modules/geoheatmap.src.d.ts +13 -0
- package/modules/geoheatmap.src.js +37 -22
- package/modules/grid-axis.js +2 -2
- package/modules/grid-axis.src.js +39 -17
- package/modules/heatmap.js +4 -4
- package/modules/heatmap.src.js +64 -40
- package/modules/heikinashi.js +2 -2
- package/modules/heikinashi.src.js +31 -16
- package/modules/histogram-bellcurve.js +2 -2
- package/modules/histogram-bellcurve.src.js +56 -36
- package/modules/hollowcandlestick.js +2 -2
- package/modules/hollowcandlestick.src.js +45 -30
- package/modules/item-series.js +2 -2
- package/modules/item-series.src.js +64 -16
- package/modules/lollipop.js +2 -2
- package/modules/lollipop.src.js +36 -21
- package/modules/map.d.ts +0 -8
- package/modules/map.js +4 -4
- package/modules/map.src.d.ts +0 -8
- package/modules/map.src.js +131 -74
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.src.js +31 -18
- package/modules/mouse-wheel-zoom.js +2 -2
- package/modules/mouse-wheel-zoom.src.js +58 -16
- package/modules/navigator.d.ts +47 -0
- package/modules/navigator.js +2 -2
- package/modules/navigator.src.d.ts +47 -0
- package/modules/navigator.src.js +510 -51
- package/modules/networkgraph.js +2 -2
- package/modules/networkgraph.src.js +69 -37
- package/modules/no-data-to-display.js +2 -2
- package/modules/no-data-to-display.src.js +31 -16
- package/modules/non-cartesian-zoom.js +2 -2
- package/modules/non-cartesian-zoom.src.js +28 -13
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +67 -25
- package/modules/organization.js +4 -2
- package/modules/organization.src.js +73 -29
- package/modules/parallel-coordinates.js +2 -2
- package/modules/parallel-coordinates.src.js +36 -18
- package/modules/pareto.js +2 -2
- package/modules/pareto.src.js +45 -29
- package/modules/pathfinder.js +2 -2
- package/modules/pathfinder.src.js +31 -16
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.src.js +28 -13
- package/modules/pictorial.js +2 -2
- package/modules/pictorial.src.js +53 -38
- package/modules/pointandfigure.js +2 -2
- package/modules/pointandfigure.src.js +35 -19
- package/modules/price-indicator.js +2 -2
- package/modules/price-indicator.src.js +28 -13
- package/modules/pyramid3d.js +2 -2
- package/modules/pyramid3d.src.js +31 -16
- package/modules/renko.js +2 -2
- package/modules/renko.src.js +34 -19
- package/modules/sankey.js +2 -2
- package/modules/sankey.src.js +47 -32
- package/modules/series-label.js +2 -2
- package/modules/series-label.src.js +36 -22
- package/modules/series-on-point.js +2 -2
- package/modules/series-on-point.src.js +40 -25
- package/modules/solid-gauge.d.ts +3 -3
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.src.d.ts +3 -3
- package/modules/solid-gauge.src.js +53 -32
- package/modules/sonification.js +2 -2
- package/modules/sonification.src.js +38 -22
- package/modules/static-scale.js +2 -2
- package/modules/static-scale.src.js +28 -13
- package/modules/stock-tools.js +3 -3
- package/modules/stock-tools.src.js +76 -34
- package/modules/stock.d.ts +47 -0
- package/modules/stock.js +6 -6
- package/modules/stock.src.d.ts +47 -0
- package/modules/stock.src.js +549 -100
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.src.js +31 -16
- package/modules/sunburst.js +2 -2
- package/modules/sunburst.src.js +97 -46
- package/modules/textpath.js +2 -2
- package/modules/textpath.src.js +28 -13
- package/modules/tiledwebmap.js +3 -3
- package/modules/tiledwebmap.src.js +58 -27
- package/modules/tilemap.js +2 -2
- package/modules/tilemap.src.js +39 -23
- package/modules/timeline.js +2 -2
- package/modules/timeline.src.js +43 -22
- package/modules/treegraph.js +2 -2
- package/modules/treegraph.src.js +67 -43
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.src.js +49 -27
- package/modules/treemap.js +2 -2
- package/modules/treemap.src.js +82 -41
- package/modules/variable-pie.js +2 -2
- package/modules/variable-pie.src.js +34 -18
- package/modules/variwide.js +2 -2
- package/modules/variwide.src.js +31 -16
- package/modules/vector.js +2 -2
- package/modules/vector.src.js +37 -24
- package/modules/venn.js +2 -2
- package/modules/venn.src.js +42 -26
- package/modules/windbarb.js +2 -2
- package/modules/windbarb.src.js +50 -37
- package/modules/wordcloud.js +2 -2
- package/modules/wordcloud.src.js +34 -17
- package/modules/xrange.js +2 -2
- package/modules/xrange.src.js +43 -28
- package/options/abands.d.ts +722 -83
- package/options/abands.src.d.ts +722 -83
- package/options/ad.d.ts +381 -26
- package/options/ad.src.d.ts +381 -26
- package/options/ao.d.ts +744 -70
- package/options/ao.src.d.ts +744 -70
- package/options/apo.d.ts +381 -26
- package/options/apo.src.d.ts +381 -26
- package/options/arcdiagram.d.ts +80 -534
- package/options/arcdiagram.src.d.ts +80 -534
- package/options/area.d.ts +432 -129
- package/options/area.src.d.ts +432 -129
- package/options/arearange.d.ts +46 -4
- package/options/arearange.src.d.ts +46 -4
- package/options/areaspline.d.ts +141 -866
- package/options/areaspline.src.d.ts +141 -866
- package/options/areasplinerange.d.ts +221 -871
- package/options/areasplinerange.src.d.ts +221 -871
- package/options/aroon.d.ts +432 -124
- package/options/aroon.src.d.ts +432 -124
- package/options/aroonoscillator.d.ts +127 -689
- package/options/aroonoscillator.src.d.ts +127 -689
- package/options/atr.d.ts +381 -71
- package/options/atr.src.d.ts +381 -71
- package/options/bar.d.ts +103 -12
- package/options/bar.src.d.ts +103 -12
- package/options/bb.d.ts +87 -762
- package/options/bb.src.d.ts +87 -762
- package/options/bellcurve.d.ts +87 -364
- package/options/bellcurve.src.d.ts +87 -364
- package/options/boxplot.d.ts +82 -13
- package/options/boxplot.src.d.ts +82 -13
- package/options/bubble.d.ts +83 -874
- package/options/bubble.src.d.ts +83 -874
- package/options/bullet.d.ts +354 -717
- package/options/bullet.src.d.ts +354 -717
- package/options/candlestick.d.ts +99 -1214
- package/options/candlestick.src.d.ts +99 -1214
- package/options/cci.d.ts +381 -26
- package/options/cci.src.d.ts +381 -26
- package/options/chaikin.d.ts +728 -83
- package/options/chaikin.src.d.ts +728 -83
- package/options/cmf.d.ts +381 -26
- package/options/cmf.src.d.ts +381 -26
- package/options/cmo.d.ts +730 -79
- package/options/cmo.src.d.ts +730 -79
- package/options/column.d.ts +1265 -99
- package/options/column.src.d.ts +1265 -99
- package/options/columnpyramid.d.ts +102 -1158
- package/options/columnpyramid.src.d.ts +102 -1158
- package/options/columnrange.d.ts +952 -95
- package/options/columnrange.src.d.ts +952 -95
- package/options/contour.d.ts +31 -443
- package/options/contour.src.d.ts +31 -443
- package/options/cylinder.d.ts +100 -12
- package/options/cylinder.src.d.ts +100 -12
- package/options/dema.d.ts +80 -736
- package/options/dema.src.d.ts +80 -736
- package/options/dependencywheel.d.ts +599 -218
- package/options/dependencywheel.src.d.ts +599 -218
- package/options/disparityindex.d.ts +84 -365
- package/options/disparityindex.src.d.ts +84 -365
- package/options/dmi.d.ts +86 -775
- package/options/dmi.src.d.ts +86 -775
- package/options/dpo.d.ts +83 -365
- package/options/dpo.src.d.ts +83 -365
- package/options/dumbbell.d.ts +27 -4
- package/options/dumbbell.src.d.ts +27 -4
- package/options/ema.d.ts +81 -703
- package/options/ema.src.d.ts +81 -703
- package/options/errorbar.d.ts +91 -1161
- package/options/errorbar.src.d.ts +91 -1161
- package/options/flags.d.ts +98 -1192
- package/options/flags.src.d.ts +98 -1192
- package/options/flowmap.d.ts +48 -373
- package/options/flowmap.src.d.ts +48 -373
- package/options/funnel.d.ts +40 -3
- package/options/funnel.src.d.ts +40 -3
- package/options/gantt.d.ts +37 -40
- package/options/gantt.src.d.ts +37 -40
- package/options/gauge.d.ts +398 -472
- package/options/gauge.src.d.ts +398 -472
- package/options/geoheatmap.d.ts +462 -63
- package/options/geoheatmap.src.d.ts +462 -63
- package/options/heatmap.d.ts +31 -380
- package/options/heatmap.src.d.ts +31 -380
- package/options/heikinashi.d.ts +20 -2
- package/options/heikinashi.src.d.ts +20 -2
- package/options/hlc.d.ts +20 -2
- package/options/hlc.src.d.ts +20 -2
- package/options/ikh.d.ts +750 -103
- package/options/ikh.src.d.ts +750 -103
- package/options/item.d.ts +34 -74
- package/options/item.src.d.ts +34 -74
- package/options/keltnerchannels.d.ts +87 -708
- package/options/keltnerchannels.src.d.ts +87 -708
- package/options/klinger.d.ts +34 -365
- package/options/klinger.src.d.ts +34 -365
- package/options/line.d.ts +151 -851
- package/options/line.src.d.ts +151 -851
- package/options/linearregression.d.ts +960 -85
- package/options/linearregression.src.d.ts +960 -85
- package/options/linearregressionangle.d.ts +96 -699
- package/options/linearregressionangle.src.d.ts +96 -699
- package/options/linearregressionintercept.d.ts +381 -26
- package/options/linearregressionintercept.src.d.ts +381 -26
- package/options/linearregressionslope.d.ts +381 -26
- package/options/linearregressionslope.src.d.ts +381 -26
- package/options/lollipop.d.ts +214 -851
- package/options/lollipop.src.d.ts +214 -851
- package/options/macd.d.ts +386 -83
- package/options/macd.src.d.ts +386 -83
- package/options/map.d.ts +470 -36
- package/options/map.src.d.ts +470 -36
- package/options/mapbubble.d.ts +43 -532
- package/options/mapbubble.src.d.ts +43 -532
- package/options/mapline.d.ts +135 -58
- package/options/mapline.src.d.ts +135 -58
- package/options/mappoint.d.ts +205 -283
- package/options/mappoint.src.d.ts +205 -283
- package/options/mfi.d.ts +772 -82
- package/options/mfi.src.d.ts +772 -82
- package/options/momentum.d.ts +381 -71
- package/options/momentum.src.d.ts +381 -71
- package/options/natr.d.ts +776 -75
- package/options/natr.src.d.ts +776 -75
- package/options/networkgraph.d.ts +184 -207
- package/options/networkgraph.src.d.ts +184 -207
- package/options/obv.d.ts +426 -26
- package/options/obv.src.d.ts +426 -26
- package/options/ohlc.d.ts +77 -14
- package/options/ohlc.src.d.ts +77 -14
- package/options/packedbubble.d.ts +76 -696
- package/options/packedbubble.src.d.ts +76 -696
- package/options/pareto.d.ts +28 -364
- package/options/pareto.src.d.ts +28 -364
- package/options/pc.d.ts +724 -85
- package/options/pc.src.d.ts +724 -85
- package/options/pictorial.d.ts +1093 -58
- package/options/pictorial.src.d.ts +1093 -58
- package/options/pie.d.ts +595 -129
- package/options/pie.src.d.ts +595 -129
- package/options/pivotpoints.d.ts +34 -365
- package/options/pivotpoints.src.d.ts +34 -365
- package/options/pointandfigure.d.ts +10 -50
- package/options/pointandfigure.src.d.ts +10 -50
- package/options/polygon.d.ts +803 -74
- package/options/polygon.src.d.ts +803 -74
- package/options/ppo.d.ts +34 -365
- package/options/ppo.src.d.ts +34 -365
- package/options/priceenvelopes.d.ts +93 -719
- package/options/priceenvelopes.src.d.ts +93 -719
- package/options/psar.d.ts +34 -365
- package/options/psar.src.d.ts +34 -365
- package/options/pyramid.d.ts +35 -3
- package/options/pyramid.src.d.ts +35 -3
- package/options/renko.d.ts +25 -2
- package/options/renko.src.d.ts +25 -2
- package/options/roc.d.ts +78 -712
- package/options/roc.src.d.ts +78 -712
- package/options/rsi.d.ts +34 -365
- package/options/rsi.src.d.ts +34 -365
- package/options/sankey.d.ts +27 -5
- package/options/sankey.src.d.ts +27 -5
- package/options/scatter.d.ts +896 -290
- package/options/scatter.src.d.ts +896 -290
- package/options/series.d.ts +938 -83
- package/options/series.src.d.ts +938 -83
- package/options/slowstochastic.d.ts +381 -26
- package/options/slowstochastic.src.d.ts +381 -26
- package/options/sma.d.ts +729 -79
- package/options/sma.src.d.ts +729 -79
- package/options/solidgauge.d.ts +882 -105
- package/options/solidgauge.src.d.ts +882 -105
- package/options/spline.d.ts +389 -90
- package/options/spline.src.d.ts +389 -90
- package/options/stochastic.d.ts +83 -716
- package/options/stochastic.src.d.ts +83 -716
- package/options/streamgraph.d.ts +97 -364
- package/options/streamgraph.src.d.ts +97 -364
- package/options/sunburst.d.ts +87 -19
- package/options/sunburst.src.d.ts +87 -19
- package/options/supertrend.d.ts +77 -749
- package/options/supertrend.src.d.ts +77 -749
- package/options/tema.d.ts +83 -365
- package/options/tema.src.d.ts +83 -365
- package/options/tiledwebmap.d.ts +13 -72
- package/options/tiledwebmap.src.d.ts +13 -72
- package/options/tilemap.d.ts +372 -533
- package/options/tilemap.src.d.ts +372 -533
- package/options/timeline.d.ts +49 -154
- package/options/timeline.src.d.ts +49 -154
- package/options/treegraph.d.ts +174 -696
- package/options/treegraph.src.d.ts +174 -696
- package/options/treemap.d.ts +468 -1079
- package/options/treemap.src.d.ts +468 -1079
- package/options/trendline.d.ts +381 -26
- package/options/trendline.src.d.ts +381 -26
- package/options/trix.d.ts +712 -82
- package/options/trix.src.d.ts +712 -82
- package/options/variablepie.d.ts +130 -587
- package/options/variablepie.src.d.ts +130 -587
- package/options/variwide.d.ts +1123 -94
- package/options/variwide.src.d.ts +1123 -94
- package/options/vbp.d.ts +57 -383
- package/options/vbp.src.d.ts +57 -383
- package/options/vector.d.ts +22 -58
- package/options/vector.src.d.ts +22 -58
- package/options/venn.d.ts +32 -78
- package/options/venn.src.d.ts +32 -78
- package/options/vwap.d.ts +122 -703
- package/options/vwap.src.d.ts +122 -703
- package/options/waterfall.d.ts +139 -1150
- package/options/waterfall.src.d.ts +139 -1150
- package/options/williamsr.d.ts +381 -76
- package/options/williamsr.src.d.ts +381 -76
- package/options/windbarb.d.ts +39 -2
- package/options/windbarb.src.d.ts +39 -2
- package/options/wma.d.ts +78 -704
- package/options/wma.src.d.ts +78 -704
- package/options/wordcloud.d.ts +98 -595
- package/options/wordcloud.src.d.ts +98 -595
- package/options/xrange.d.ts +166 -1056
- package/options/xrange.src.d.ts +166 -1056
- package/options/zigzag.d.ts +34 -410
- package/options/zigzag.src.d.ts +34 -410
- package/package.json +3 -2
- package/standalone-navigator.js +4 -4
- package/standalone-navigator.src.js +482 -312
- package/themes/adaptive.js +2 -2
- package/themes/adaptive.src.js +33 -18
- package/themes/avocado.js +2 -2
- package/themes/avocado.src.js +28 -13
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.src.js +28 -13
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.src.js +28 -13
- package/themes/high-contrast.js +2 -2
- package/themes/high-contrast.src.js +28 -13
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.src.js +28 -13
- package/themes/sunset.js +2 -2
- package/themes/sunset.src.js +28 -13
- package/css/.stylelintrc.json +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: LicenseRef-Highcharts
|
|
2
2
|
/**
|
|
3
|
-
* @license Highcharts JS v13.0.
|
|
3
|
+
* @license Highcharts JS v13.0.1 (2026-08-17)
|
|
4
4
|
* @module highcharts/highcharts-more
|
|
5
5
|
* @requires highcharts
|
|
6
6
|
*
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_c57973fa__ from "./highcharts.src.js";
|
|
13
13
|
/******/ // The require scope
|
|
14
|
-
/******/
|
|
14
|
+
/******/ const __webpack_require__ = {};
|
|
15
15
|
/******/
|
|
16
16
|
/************************************************************************/
|
|
17
17
|
/******/ /* webpack/runtime/compat get default export */
|
|
18
18
|
/******/ (() => {
|
|
19
19
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
20
20
|
/******/ __webpack_require__.n = (module) => {
|
|
21
|
-
/******/
|
|
21
|
+
/******/ const getter = module && module.__esModule ?
|
|
22
22
|
/******/ () => (module['default']) :
|
|
23
23
|
/******/ () => (module);
|
|
24
24
|
/******/ __webpack_require__.d(getter, { a: getter });
|
|
@@ -28,11 +28,26 @@ import * as __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_c57973fa__ from "./high
|
|
|
28
28
|
/******/
|
|
29
29
|
/******/ /* webpack/runtime/define property getters */
|
|
30
30
|
/******/ (() => {
|
|
31
|
-
/******/ // define getter functions for harmony exports
|
|
31
|
+
/******/ // define getter/value functions for harmony exports
|
|
32
32
|
/******/ __webpack_require__.d = (exports, definition) => {
|
|
33
|
-
/******/
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
33
|
+
/******/ if(Array.isArray(definition)) {
|
|
34
|
+
/******/ var i = 0;
|
|
35
|
+
/******/ while(i < definition.length) {
|
|
36
|
+
/******/ var key = definition[i++];
|
|
37
|
+
/******/ var binding = definition[i++];
|
|
38
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
39
|
+
/******/ if(binding === 0) {
|
|
40
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
41
|
+
/******/ } else {
|
|
42
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
43
|
+
/******/ }
|
|
44
|
+
/******/ } else if(binding === 0) { i++; }
|
|
45
|
+
/******/ }
|
|
46
|
+
/******/ } else {
|
|
47
|
+
/******/ for(var key in definition) {
|
|
48
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
49
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
50
|
+
/******/ }
|
|
36
51
|
/******/ }
|
|
37
52
|
/******/ }
|
|
38
53
|
/******/ };
|
|
@@ -44,7 +59,6 @@ import * as __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_c57973fa__ from "./high
|
|
|
44
59
|
/******/ })();
|
|
45
60
|
/******/
|
|
46
61
|
/************************************************************************/
|
|
47
|
-
var __webpack_exports__ = {};
|
|
48
62
|
|
|
49
63
|
;// external ["./highcharts.src.js","default"]
|
|
50
64
|
const external_highcharts_src_js_default_namespaceObject = __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_c57973fa__["default"];
|
|
@@ -69,7 +83,7 @@ var external_highcharts_src_js_default_SeriesRegistry_default = /*#__PURE__*/__w
|
|
|
69
83
|
const { deg2rad } = (external_highcharts_src_js_default_default());
|
|
70
84
|
|
|
71
85
|
/**
|
|
72
|
-
* @
|
|
86
|
+
* @internal
|
|
73
87
|
*/
|
|
74
88
|
var CenteredUtilities;
|
|
75
89
|
(function (CenteredUtilities) {
|
|
@@ -87,7 +101,7 @@ var CenteredUtilities;
|
|
|
87
101
|
* Get the center of the pie based on the size and center options relative
|
|
88
102
|
* to the plot area. Borrowed by the polar and gauge series types.
|
|
89
103
|
*
|
|
90
|
-
* @
|
|
104
|
+
* @internal
|
|
91
105
|
* @function Highcharts.CenteredSeriesMixin.getCenter
|
|
92
106
|
*/
|
|
93
107
|
function getCenter() {
|
|
@@ -132,7 +146,7 @@ var CenteredUtilities;
|
|
|
132
146
|
* GetStartAndEndRadians - Calculates start and end angles in radians.
|
|
133
147
|
* Used in series types such as pie and sunburst.
|
|
134
148
|
*
|
|
135
|
-
* @
|
|
149
|
+
* @internal
|
|
136
150
|
* @function Highcharts.CenteredSeriesMixin.getStartAndEndRadians
|
|
137
151
|
*
|
|
138
152
|
* @param {number} [start]
|
|
@@ -164,6 +178,7 @@ var CenteredUtilities;
|
|
|
164
178
|
* Default Export
|
|
165
179
|
*
|
|
166
180
|
* */
|
|
181
|
+
/** @internal */
|
|
167
182
|
/* harmony default export */ const Series_CenteredUtilities = (CenteredUtilities);
|
|
168
183
|
/* *
|
|
169
184
|
*
|
|
@@ -171,7 +186,7 @@ var CenteredUtilities;
|
|
|
171
186
|
*
|
|
172
187
|
* */
|
|
173
188
|
/**
|
|
174
|
-
* @
|
|
189
|
+
* @internal
|
|
175
190
|
* @interface Highcharts.RadianAngles
|
|
176
191
|
*/ /**
|
|
177
192
|
* @name Highcharts.RadianAngles#end
|
|
@@ -353,7 +368,7 @@ const { defaultOptions } = (external_highcharts_src_js_default_default());
|
|
|
353
368
|
* @sample {highcharts} highcharts/series-solidgauge/pane-borderradius
|
|
354
369
|
* Solid gauge with background settings
|
|
355
370
|
*
|
|
356
|
-
* @type {
|
|
371
|
+
* @type {null|*|Array<*>}
|
|
357
372
|
* @requires highcharts-more
|
|
358
373
|
* @optionparent pane.background
|
|
359
374
|
*/
|
|
@@ -1037,6 +1052,139 @@ class AreaRangePoint extends AreaPoint {
|
|
|
1037
1052
|
*/
|
|
1038
1053
|
''; // Keeps doclets above in JS file.
|
|
1039
1054
|
|
|
1055
|
+
;// external ["./highcharts.src.js","default","Series","types","column"]
|
|
1056
|
+
const external_highcharts_src_js_default_Series_types_column_namespaceObject = __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_c57973fa__["default"].Series.types.column;
|
|
1057
|
+
var external_highcharts_src_js_default_Series_types_column_default = /*#__PURE__*/__webpack_require__.n(external_highcharts_src_js_default_Series_types_column_namespaceObject);
|
|
1058
|
+
;// ./code/es-modules/Series/RangeDataLabel.js
|
|
1059
|
+
/* *
|
|
1060
|
+
*
|
|
1061
|
+
* (c) 2010-2026 Highsoft AS
|
|
1062
|
+
* Author: Andrzej Buleczka
|
|
1063
|
+
*
|
|
1064
|
+
* */
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/* *
|
|
1069
|
+
*
|
|
1070
|
+
* Declarations
|
|
1071
|
+
*
|
|
1072
|
+
* */
|
|
1073
|
+
var RangeDataLabel;
|
|
1074
|
+
(function (RangeDataLabel) {
|
|
1075
|
+
const plotYKeys = {
|
|
1076
|
+
close: ['plotClose'],
|
|
1077
|
+
high: ['highPlot', 'plotHigh'],
|
|
1078
|
+
low: ['lowPlot', 'plotLow'],
|
|
1079
|
+
median: ['medianPlot'],
|
|
1080
|
+
open: ['plotOpen'],
|
|
1081
|
+
q1: ['q1Plot'],
|
|
1082
|
+
q3: ['q3Plot'],
|
|
1083
|
+
y: ['plotY']
|
|
1084
|
+
};
|
|
1085
|
+
/* *
|
|
1086
|
+
*
|
|
1087
|
+
* Functions
|
|
1088
|
+
*
|
|
1089
|
+
* */
|
|
1090
|
+
function getPointPlotY(point, pointValKey) {
|
|
1091
|
+
const keys = plotYKeys[pointValKey] ?? [];
|
|
1092
|
+
for (const key of keys) {
|
|
1093
|
+
const value = point[key];
|
|
1094
|
+
if ((0,external_highcharts_src_js_default_namespaceObject.isNumber)(value)) {
|
|
1095
|
+
return value;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
function getBelow(point, options, plotY) {
|
|
1100
|
+
const plotHigh = getPointPlotY(point, 'high'), plotLow = getPointPlotY(point, 'low');
|
|
1101
|
+
if ((0,external_highcharts_src_js_default_namespaceObject.isNumber)(plotHigh) && (0,external_highcharts_src_js_default_namespaceObject.isNumber)(plotLow)) {
|
|
1102
|
+
return options.inside ?
|
|
1103
|
+
plotY === Math.min(plotHigh, plotLow) :
|
|
1104
|
+
plotY === Math.max(plotHigh, plotLow);
|
|
1105
|
+
}
|
|
1106
|
+
return false;
|
|
1107
|
+
}
|
|
1108
|
+
function compose(SeriesClass) {
|
|
1109
|
+
const seriesProto = SeriesClass.prototype;
|
|
1110
|
+
seriesProto.alignDataLabel = alignDataLabel;
|
|
1111
|
+
return SeriesClass;
|
|
1112
|
+
}
|
|
1113
|
+
RangeDataLabel.compose = compose;
|
|
1114
|
+
/**
|
|
1115
|
+
* Default formatter for range series data labels. Renders the value of
|
|
1116
|
+
* the point key the label is aligned to, so the legacy high and low
|
|
1117
|
+
* labels keep showing their respective values without an explicit format.
|
|
1118
|
+
* Does not modify `point.y`. Falls back to `point.y` (the value of
|
|
1119
|
+
* `series.pointValKey`) for an unresolved key.
|
|
1120
|
+
* @internal
|
|
1121
|
+
*/
|
|
1122
|
+
function formatter(options) {
|
|
1123
|
+
const rawValue = options.alignToKey ?
|
|
1124
|
+
this.getNestedProperty(options.alignToKey) :
|
|
1125
|
+
this.y, value = (0,external_highcharts_src_js_default_namespaceObject.isNumber)(rawValue) ? rawValue : this.y;
|
|
1126
|
+
return (0,external_highcharts_src_js_default_namespaceObject.isNumber)(value) ?
|
|
1127
|
+
this.series.chart.numberFormatter(value, -1) :
|
|
1128
|
+
'';
|
|
1129
|
+
}
|
|
1130
|
+
RangeDataLabel.formatter = formatter;
|
|
1131
|
+
/**
|
|
1132
|
+
* Rewrite a label's `format` so that `{y}` and `{point.y}` references
|
|
1133
|
+
* resolve to the value of the point key the label is aligned to, keeping
|
|
1134
|
+
* the legacy per-label `{y}` behavior of range data labels.
|
|
1135
|
+
* @internal
|
|
1136
|
+
*/
|
|
1137
|
+
function applyAlignToKeyValue(options) {
|
|
1138
|
+
const { alignToKey, format } = options;
|
|
1139
|
+
// An explicit `format` ignores `alignToKey`, so its `{y}` (and
|
|
1140
|
+
// `{point.y}`) tokens point at the whole point. Rewrite them to the
|
|
1141
|
+
// aligned key so each range label keeps rendering its own value.
|
|
1142
|
+
// The default formatter already reads `alignToKey`.
|
|
1143
|
+
if (alignToKey && format) {
|
|
1144
|
+
options.format = format.replace(/\{(?:point\.)?y([:}])/g, '{point.' + alignToKey + '$1');
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
RangeDataLabel.applyAlignToKeyValue = applyAlignToKeyValue;
|
|
1148
|
+
function resolveAlignToKey(series, rawKey) {
|
|
1149
|
+
return rawKey && series.pointArrayMap.indexOf(rawKey) > -1 ?
|
|
1150
|
+
rawKey :
|
|
1151
|
+
series.pointValKey;
|
|
1152
|
+
}
|
|
1153
|
+
RangeDataLabel.resolveAlignToKey = resolveAlignToKey;
|
|
1154
|
+
function alignDataLabel(point, dataLabel, options, alignTo, isNew) {
|
|
1155
|
+
const series = this, alignToKey = resolveAlignToKey(series, options.alignToKey), plotY = getPointPlotY(point, alignToKey), shapeArgs = point.shapeArgs, originalPlotY = point.plotY, originalDlBox = point.dlBox, originalBelow = point.below;
|
|
1156
|
+
if ((0,external_highcharts_src_js_default_namespaceObject.isNumber)(plotY)) {
|
|
1157
|
+
point.plotY = plotY;
|
|
1158
|
+
if (shapeArgs && !options.inside) {
|
|
1159
|
+
point.dlBox = {
|
|
1160
|
+
x: shapeArgs.x ?? 0,
|
|
1161
|
+
y: (0,external_highcharts_src_js_default_namespaceObject.crisp)(plotY, series.borderWidth, series.chart.inverted),
|
|
1162
|
+
width: shapeArgs.width ?? 0,
|
|
1163
|
+
height: 0
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
const below = point.below = getBelow(point, options, plotY);
|
|
1167
|
+
if (series.chart.inverted) {
|
|
1168
|
+
options.align ?? (options.align = below ? 'right' : 'left');
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
options.verticalAlign ?? (options.verticalAlign = below ? 'top' : 'bottom');
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
external_highcharts_src_js_default_Series_types_column_default().prototype.alignDataLabel.call(series, point, dataLabel, options, alignTo, isNew);
|
|
1175
|
+
point.plotY = originalPlotY;
|
|
1176
|
+
point.dlBox = originalDlBox;
|
|
1177
|
+
point.below = originalBelow;
|
|
1178
|
+
}
|
|
1179
|
+
RangeDataLabel.alignDataLabel = alignDataLabel;
|
|
1180
|
+
})(RangeDataLabel || (RangeDataLabel = {}));
|
|
1181
|
+
/* *
|
|
1182
|
+
*
|
|
1183
|
+
* Default Export
|
|
1184
|
+
*
|
|
1185
|
+
* */
|
|
1186
|
+
/* harmony default export */ const Series_RangeDataLabel = (RangeDataLabel);
|
|
1187
|
+
|
|
1040
1188
|
;// ./code/es-modules/Series/AreaRange/AreaRangeSeries.js
|
|
1041
1189
|
/* *
|
|
1042
1190
|
*
|
|
@@ -1054,7 +1202,8 @@ class AreaRangePoint extends AreaPoint {
|
|
|
1054
1202
|
|
|
1055
1203
|
const { noop } = (external_highcharts_src_js_default_default());
|
|
1056
1204
|
|
|
1057
|
-
|
|
1205
|
+
|
|
1206
|
+
const { area: AreaSeries, area: { prototype: AreaRangeSeries_areaProto } } = (external_highcharts_src_js_default_SeriesRegistry_default()).seriesTypes;
|
|
1058
1207
|
|
|
1059
1208
|
/* *
|
|
1060
1209
|
*
|
|
@@ -1139,12 +1288,10 @@ const areaRangeSeriesOptions = {
|
|
|
1139
1288
|
trackByArea: true,
|
|
1140
1289
|
/**
|
|
1141
1290
|
* Extended data labels for range series types. Range series data
|
|
1142
|
-
* labels
|
|
1143
|
-
*
|
|
1144
|
-
* data label sets individually.
|
|
1291
|
+
* labels can be positioned individually by defining them as an array
|
|
1292
|
+
* and setting `alignToKey` to `high` or `low`.
|
|
1145
1293
|
*
|
|
1146
1294
|
* @declare Highcharts.SeriesAreaRangeDataLabelsOptionsObject
|
|
1147
|
-
* @exclude x, y
|
|
1148
1295
|
* @since 2.3.0
|
|
1149
1296
|
* @product highcharts highstock
|
|
1150
1297
|
*
|
|
@@ -1152,39 +1299,103 @@ const areaRangeSeriesOptions = {
|
|
|
1152
1299
|
*/
|
|
1153
1300
|
dataLabels: {
|
|
1154
1301
|
align: void 0,
|
|
1302
|
+
formatter: Series_RangeDataLabel.formatter,
|
|
1155
1303
|
verticalAlign: void 0,
|
|
1156
1304
|
/**
|
|
1157
1305
|
* X offset of the lower data labels relative to the point value.
|
|
1158
1306
|
*
|
|
1307
|
+
* Deprecated. Use a data labels array with `alignToKey: 'low'` and
|
|
1308
|
+
* the regular `x` option instead.
|
|
1309
|
+
*
|
|
1159
1310
|
* @sample highcharts/plotoptions/arearange-datalabels/
|
|
1160
1311
|
* Data labels on range series
|
|
1161
1312
|
* @sample highcharts/plotoptions/arearange-datalabels/
|
|
1162
1313
|
* Data labels on range series
|
|
1314
|
+
* @deprecated 13.0.1
|
|
1163
1315
|
*/
|
|
1164
1316
|
xLow: 0,
|
|
1165
1317
|
/**
|
|
1166
1318
|
* X offset of the higher data labels relative to the point value.
|
|
1167
1319
|
*
|
|
1320
|
+
* Deprecated. Use a data labels array with `alignToKey: 'high'` and
|
|
1321
|
+
* the regular `x` option instead.
|
|
1322
|
+
*
|
|
1168
1323
|
* @sample highcharts/plotoptions/arearange-datalabels/
|
|
1169
1324
|
* Data labels on range series
|
|
1325
|
+
* @deprecated 13.0.1
|
|
1170
1326
|
*/
|
|
1171
1327
|
xHigh: 0,
|
|
1172
1328
|
/**
|
|
1173
1329
|
* Y offset of the lower data labels relative to the point value.
|
|
1174
1330
|
*
|
|
1331
|
+
* Deprecated. Use a data labels array with `alignToKey: 'low'` and
|
|
1332
|
+
* the regular `y` option instead.
|
|
1333
|
+
*
|
|
1175
1334
|
* @sample highcharts/plotoptions/arearange-datalabels/
|
|
1176
1335
|
* Data labels on range series
|
|
1336
|
+
* @deprecated 13.0.1
|
|
1177
1337
|
*/
|
|
1178
1338
|
yLow: 0,
|
|
1179
1339
|
/**
|
|
1180
1340
|
* Y offset of the higher data labels relative to the point value.
|
|
1181
1341
|
*
|
|
1342
|
+
* Deprecated. Use a data labels array with `alignToKey: 'high'` and
|
|
1343
|
+
* the regular `y` option instead.
|
|
1344
|
+
*
|
|
1182
1345
|
* @sample highcharts/plotoptions/arearange-datalabels/
|
|
1183
1346
|
* Data labels on range series
|
|
1347
|
+
* @deprecated 13.0.1
|
|
1184
1348
|
*/
|
|
1185
1349
|
yHigh: 0
|
|
1186
1350
|
}
|
|
1187
1351
|
};
|
|
1352
|
+
/* *
|
|
1353
|
+
*
|
|
1354
|
+
* Functions
|
|
1355
|
+
*
|
|
1356
|
+
* */
|
|
1357
|
+
/**
|
|
1358
|
+
* Normalize the dataLabels config into a per-label array. Resolves the
|
|
1359
|
+
* `alignToKey` default (`high` for the first label, `low` for the second) and
|
|
1360
|
+
* maps the deprecated `xLow/xHigh/yLow/yHigh` offsets onto each label's `x/y`.
|
|
1361
|
+
* @internal
|
|
1362
|
+
*/
|
|
1363
|
+
function getRangeDataLabelOptions(series) {
|
|
1364
|
+
const dataLabels = series.options.dataLabels;
|
|
1365
|
+
if ((0,external_highcharts_src_js_default_namespaceObject.isArray)(dataLabels)) {
|
|
1366
|
+
return Array.from({
|
|
1367
|
+
length: Math.max(dataLabels.length, 2)
|
|
1368
|
+
}, (_, index) => {
|
|
1369
|
+
const options = dataLabels[index], defaultAlignToKey = index === 0 ? 'high' :
|
|
1370
|
+
index === 1 ? 'low' :
|
|
1371
|
+
series.pointValKey, alignToKey = options?.alignToKey ?? defaultAlignToKey;
|
|
1372
|
+
return (0,external_highcharts_src_js_default_namespaceObject.merge)(options ?? { enabled: false }, { alignToKey });
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
if (dataLabels?.alignToKey) {
|
|
1376
|
+
return [
|
|
1377
|
+
(0,external_highcharts_src_js_default_namespaceObject.merge)(dataLabels, dataLabels.alignToKey === 'high' ? {
|
|
1378
|
+
x: dataLabels.xHigh,
|
|
1379
|
+
y: dataLabels.yHigh
|
|
1380
|
+
} : dataLabels.alignToKey === 'low' ? {
|
|
1381
|
+
x: dataLabels.xLow,
|
|
1382
|
+
y: dataLabels.yLow
|
|
1383
|
+
} : {})
|
|
1384
|
+
];
|
|
1385
|
+
}
|
|
1386
|
+
return [
|
|
1387
|
+
(0,external_highcharts_src_js_default_namespaceObject.merge)(dataLabels, {
|
|
1388
|
+
alignToKey: 'high',
|
|
1389
|
+
x: dataLabels?.xHigh,
|
|
1390
|
+
y: dataLabels?.yHigh
|
|
1391
|
+
}),
|
|
1392
|
+
(0,external_highcharts_src_js_default_namespaceObject.merge)(dataLabels, {
|
|
1393
|
+
alignToKey: 'low',
|
|
1394
|
+
x: dataLabels?.xLow,
|
|
1395
|
+
y: dataLabels?.yLow
|
|
1396
|
+
})
|
|
1397
|
+
];
|
|
1398
|
+
}
|
|
1188
1399
|
/* *
|
|
1189
1400
|
*
|
|
1190
1401
|
* Class
|
|
@@ -1258,7 +1469,7 @@ class AreaRangeSeries extends AreaSeries {
|
|
|
1258
1469
|
rectPlotX: point.rectPlotX,
|
|
1259
1470
|
yBottom: point.yBottom,
|
|
1260
1471
|
// `plotHighX` is for polar charts
|
|
1261
|
-
plotX:
|
|
1472
|
+
plotX: point.plotHighX ?? point.plotX,
|
|
1262
1473
|
plotY: point.plotHigh,
|
|
1263
1474
|
isNull: point.isNull
|
|
1264
1475
|
};
|
|
@@ -1308,151 +1519,27 @@ class AreaRangeSeries extends AreaSeries {
|
|
|
1308
1519
|
this.areaPath.xMap = lowerPath.xMap;
|
|
1309
1520
|
return linePath;
|
|
1310
1521
|
}
|
|
1311
|
-
/**
|
|
1312
|
-
* Extend the basic drawDataLabels method by running it for both lower and
|
|
1313
|
-
* higher values.
|
|
1314
|
-
* @internal
|
|
1315
|
-
*/
|
|
1316
1522
|
drawDataLabels() {
|
|
1317
|
-
const
|
|
1318
|
-
let i, point, up, upperDataLabelOptions, lowerDataLabelOptions;
|
|
1523
|
+
const series = this, dataLabelOptions = series.options.dataLabels;
|
|
1319
1524
|
if (dataLabelOptions) {
|
|
1320
|
-
|
|
1321
|
-
//
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
};
|
|
1336
|
-
}
|
|
1337
|
-
else {
|
|
1338
|
-
// Make copies
|
|
1339
|
-
upperDataLabelOptions = (0,external_highcharts_src_js_default_namespaceObject.extend)({}, dataLabelOptions);
|
|
1340
|
-
upperDataLabelOptions.x = dataLabelOptions.xHigh;
|
|
1341
|
-
upperDataLabelOptions.y = dataLabelOptions.yHigh;
|
|
1342
|
-
lowerDataLabelOptions = (0,external_highcharts_src_js_default_namespaceObject.extend)({}, dataLabelOptions);
|
|
1343
|
-
lowerDataLabelOptions.x = dataLabelOptions.xLow;
|
|
1344
|
-
lowerDataLabelOptions.y = dataLabelOptions.yLow;
|
|
1345
|
-
}
|
|
1346
|
-
// Draw upper labels
|
|
1347
|
-
if (upperDataLabelOptions.enabled || this.hasDataLabels?.()) {
|
|
1348
|
-
// Set preliminary values for plotY and dataLabel
|
|
1349
|
-
// and draw the upper labels
|
|
1350
|
-
i = length;
|
|
1351
|
-
while (i--) {
|
|
1352
|
-
point = data[i];
|
|
1353
|
-
if (point) {
|
|
1354
|
-
const { plotHigh = 0, plotLow = 0 } = point;
|
|
1355
|
-
up = upperDataLabelOptions.inside ?
|
|
1356
|
-
plotHigh < plotLow :
|
|
1357
|
-
plotHigh > plotLow;
|
|
1358
|
-
point.y = point.high;
|
|
1359
|
-
point._plotY = point.plotY;
|
|
1360
|
-
point.plotY = plotHigh;
|
|
1361
|
-
// Store original data labels and set preliminary label
|
|
1362
|
-
// objects to be picked up in the uber method
|
|
1363
|
-
originalDataLabels[i] = point.dataLabel;
|
|
1364
|
-
point.dataLabel = point.dataLabelUpper;
|
|
1365
|
-
// Set the default offset
|
|
1366
|
-
point.below = up;
|
|
1367
|
-
if (inverted) {
|
|
1368
|
-
if (!upperDataLabelOptions.align) {
|
|
1369
|
-
upperDataLabelOptions.align = up ?
|
|
1370
|
-
'right' : 'left';
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
else {
|
|
1374
|
-
if (!upperDataLabelOptions.verticalAlign) {
|
|
1375
|
-
upperDataLabelOptions.verticalAlign = up ?
|
|
1376
|
-
'top' :
|
|
1377
|
-
'bottom';
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
this.options.dataLabels = upperDataLabelOptions;
|
|
1383
|
-
if (AreaRangeSeries_areaProto.drawDataLabels) {
|
|
1384
|
-
// #1209:
|
|
1385
|
-
AreaRangeSeries_areaProto.drawDataLabels.apply(this, arguments);
|
|
1386
|
-
}
|
|
1387
|
-
// Reset state after the upper labels were created. Move
|
|
1388
|
-
// it to point.dataLabelUpper and reassign the originals.
|
|
1389
|
-
// We do this here to support not drawing a lower label.
|
|
1390
|
-
i = length;
|
|
1391
|
-
while (i--) {
|
|
1392
|
-
point = data[i];
|
|
1393
|
-
if (point) {
|
|
1394
|
-
point.dataLabelUpper = point.dataLabel;
|
|
1395
|
-
point.dataLabel = originalDataLabels[i];
|
|
1396
|
-
delete point.dataLabels;
|
|
1397
|
-
point.y = point.low;
|
|
1398
|
-
point.plotY = point._plotY;
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
// Draw lower labels
|
|
1403
|
-
if (lowerDataLabelOptions.enabled || this.hasDataLabels?.()) {
|
|
1404
|
-
i = length;
|
|
1405
|
-
while (i--) {
|
|
1406
|
-
point = data[i];
|
|
1407
|
-
if (point) {
|
|
1408
|
-
const { plotHigh = 0, plotLow = 0 } = point;
|
|
1409
|
-
up = lowerDataLabelOptions.inside ?
|
|
1410
|
-
plotHigh < plotLow :
|
|
1411
|
-
plotHigh > plotLow;
|
|
1412
|
-
// Set the default offset
|
|
1413
|
-
point.below = !up;
|
|
1414
|
-
if (inverted) {
|
|
1415
|
-
if (!lowerDataLabelOptions.align) {
|
|
1416
|
-
lowerDataLabelOptions.align = up ?
|
|
1417
|
-
'left' : 'right';
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
else {
|
|
1421
|
-
if (!lowerDataLabelOptions.verticalAlign) {
|
|
1422
|
-
lowerDataLabelOptions.verticalAlign = up ?
|
|
1423
|
-
'bottom' :
|
|
1424
|
-
'top';
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
this.options.dataLabels = lowerDataLabelOptions;
|
|
1430
|
-
if (AreaRangeSeries_areaProto.drawDataLabels) {
|
|
1431
|
-
AreaRangeSeries_areaProto.drawDataLabels.apply(this, arguments);
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
// Merge upper and lower into point.dataLabels for later destroying
|
|
1435
|
-
if (upperDataLabelOptions.enabled) {
|
|
1436
|
-
i = length;
|
|
1437
|
-
while (i--) {
|
|
1438
|
-
point = data[i];
|
|
1439
|
-
if (point) {
|
|
1440
|
-
point.dataLabels = [
|
|
1441
|
-
point.dataLabelUpper,
|
|
1442
|
-
point.dataLabel
|
|
1443
|
-
].filter(function (label) {
|
|
1444
|
-
return !!label;
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1525
|
+
const rangeOptions = getRangeDataLabelOptions(series);
|
|
1526
|
+
// Resolve value references like `{y}` against the aligned key
|
|
1527
|
+
rangeOptions.forEach(Series_RangeDataLabel.applyAlignToKeyValue);
|
|
1528
|
+
series.options.dataLabels = rangeOptions;
|
|
1529
|
+
if (AreaRangeSeries_areaProto.drawDataLabels) {
|
|
1530
|
+
// #1209
|
|
1531
|
+
AreaRangeSeries_areaProto.drawDataLabels.call(series);
|
|
1532
|
+
}
|
|
1533
|
+
series.options.dataLabels = dataLabelOptions;
|
|
1534
|
+
for (const point of series.points) {
|
|
1535
|
+
const labels = point.dataLabels ?? [];
|
|
1536
|
+
point.dataLabelUpper = labels.find((label) => (Series_RangeDataLabel.resolveAlignToKey(series, label.options
|
|
1537
|
+
?.alignToKey) === 'high'));
|
|
1538
|
+
point.dataLabel = labels.find((label) => (Series_RangeDataLabel.resolveAlignToKey(series, label.options
|
|
1539
|
+
?.alignToKey) === 'low'));
|
|
1448
1540
|
}
|
|
1449
|
-
// Reset options
|
|
1450
|
-
this.options.dataLabels = dataLabelOptions;
|
|
1451
1541
|
}
|
|
1452
1542
|
}
|
|
1453
|
-
alignDataLabel() {
|
|
1454
|
-
columnProto.alignDataLabel.apply(this, arguments);
|
|
1455
|
-
}
|
|
1456
1543
|
modifyMarkerSettings() {
|
|
1457
1544
|
const series = this, originalMarkerSettings = {
|
|
1458
1545
|
marker: series.options.marker,
|
|
@@ -1503,7 +1590,7 @@ class AreaRangeSeries extends AreaSeries {
|
|
|
1503
1590
|
if ((0,external_highcharts_src_js_default_namespaceObject.defined)(point.plotHighX)) {
|
|
1504
1591
|
point.plotX = point.plotHighX;
|
|
1505
1592
|
}
|
|
1506
|
-
point.y =
|
|
1593
|
+
point.y = point.high ?? point.origProps.y; // #15523
|
|
1507
1594
|
point.negative = point.y < (series.options.threshold || 0);
|
|
1508
1595
|
if (series.zones.length) {
|
|
1509
1596
|
point.zone = point.getZone();
|
|
@@ -1601,6 +1688,7 @@ AreaRangeSeries.defaultOptions = (0,external_highcharts_src_js_default_namespace
|
|
|
1601
1688
|
pointValKey: 'low',
|
|
1602
1689
|
setStackedPoints: noop
|
|
1603
1690
|
});
|
|
1691
|
+
Series_RangeDataLabel.compose(AreaRangeSeries);
|
|
1604
1692
|
external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('arearange', AreaRangeSeries);
|
|
1605
1693
|
/* *
|
|
1606
1694
|
*
|
|
@@ -1785,10 +1873,15 @@ external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('
|
|
|
1785
1873
|
*/
|
|
1786
1874
|
''; // Adds doclets above to transpiled file
|
|
1787
1875
|
|
|
1788
|
-
;// ./code/es-modules/
|
|
1876
|
+
;// ./code/es-modules/Extensions/BorderRadius.js
|
|
1877
|
+
/* unused harmony import specifier */ var relativeLength;
|
|
1878
|
+
/* unused harmony import specifier */ var isObject;
|
|
1879
|
+
/* unused harmony import specifier */ var extend;
|
|
1880
|
+
/* unused harmony import specifier */ var addEvent;
|
|
1789
1881
|
/* *
|
|
1790
1882
|
*
|
|
1791
|
-
*
|
|
1883
|
+
* Highcharts Border Radius module
|
|
1884
|
+
*
|
|
1792
1885
|
* Author: Torstein Hønsi
|
|
1793
1886
|
*
|
|
1794
1887
|
* Integration of this software requires a license.
|
|
@@ -1798,44 +1891,448 @@ external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('
|
|
|
1798
1891
|
*
|
|
1799
1892
|
* */
|
|
1800
1893
|
|
|
1894
|
+
|
|
1895
|
+
const { defaultOptions: BorderRadius_defaultOptions } = (external_highcharts_src_js_default_default());
|
|
1896
|
+
|
|
1897
|
+
const { noop: BorderRadius_noop } = (external_highcharts_src_js_default_default());
|
|
1898
|
+
|
|
1801
1899
|
/* *
|
|
1802
1900
|
*
|
|
1803
|
-
*
|
|
1901
|
+
* Constants
|
|
1804
1902
|
*
|
|
1805
1903
|
* */
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1904
|
+
const defaultBorderRadiusOptions = {
|
|
1905
|
+
radius: 0,
|
|
1906
|
+
scope: 'stack',
|
|
1907
|
+
where: void 0
|
|
1908
|
+
};
|
|
1909
|
+
/* *
|
|
1811
1910
|
*
|
|
1812
|
-
*
|
|
1813
|
-
* Box plot
|
|
1814
|
-
* @sample {highcharts} highcharts/css/boxplot/
|
|
1815
|
-
* Box plot in styled mode
|
|
1816
|
-
* @sample {highcharts} highcharts/series-scatter/jitter-boxplot
|
|
1817
|
-
* Jittered scatter plot on top of a box plot
|
|
1911
|
+
* Variables
|
|
1818
1912
|
*
|
|
1819
|
-
*
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
*
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1913
|
+
* */
|
|
1914
|
+
let oldArc = (/* unused pure expression or super */ null && (BorderRadius_noop));
|
|
1915
|
+
let oldRoundedRect = (/* unused pure expression or super */ null && (BorderRadius_noop));
|
|
1916
|
+
/* *
|
|
1917
|
+
*
|
|
1918
|
+
* Functions
|
|
1919
|
+
*
|
|
1920
|
+
* */
|
|
1921
|
+
/** @internal */
|
|
1922
|
+
function applyBorderRadius(path, i, r) {
|
|
1923
|
+
const a = path[i];
|
|
1924
|
+
let b = path[i + 1];
|
|
1925
|
+
if (b[0] === 'Z') {
|
|
1926
|
+
b = path[0];
|
|
1927
|
+
}
|
|
1928
|
+
let line, arc, fromLineToArc;
|
|
1929
|
+
// From straight line to arc
|
|
1930
|
+
if ((a[0] === 'M' || a[0] === 'L') && b[0] === 'A') {
|
|
1931
|
+
line = a;
|
|
1932
|
+
arc = b;
|
|
1933
|
+
fromLineToArc = true;
|
|
1934
|
+
// From arc to straight line
|
|
1935
|
+
}
|
|
1936
|
+
else if (a[0] === 'A' && (b[0] === 'M' || b[0] === 'L')) {
|
|
1937
|
+
line = b;
|
|
1938
|
+
arc = a;
|
|
1939
|
+
}
|
|
1940
|
+
if (line && arc && arc.params) {
|
|
1941
|
+
const bigR = arc[1],
|
|
1942
|
+
// In our use cases, outer pie slice arcs are clockwise and inner
|
|
1943
|
+
// arcs (donut/sunburst etc) are anti-clockwise
|
|
1944
|
+
clockwise = arc[5], params = arc.params, { start, end, cx, cy } = params;
|
|
1945
|
+
// Some geometric constants
|
|
1946
|
+
const relativeR = clockwise ? (bigR - r) : (bigR + r),
|
|
1947
|
+
// The angle, on the big arc, that the border radius arc takes up
|
|
1948
|
+
angleOfBorderRadius = relativeR ? Math.asin(r / relativeR) : 0, angleOffset = clockwise ?
|
|
1949
|
+
angleOfBorderRadius :
|
|
1950
|
+
-angleOfBorderRadius,
|
|
1951
|
+
// The distance along the radius of the big arc to the starting
|
|
1952
|
+
// point of the small border radius arc
|
|
1953
|
+
distanceBigCenterToStartArc = (Math.cos(angleOfBorderRadius) *
|
|
1954
|
+
relativeR);
|
|
1955
|
+
// From line to arc
|
|
1956
|
+
if (fromLineToArc) {
|
|
1957
|
+
// Update the cache
|
|
1958
|
+
params.start = start + angleOffset;
|
|
1959
|
+
// First move to the start position at the radial line. We want to
|
|
1960
|
+
// start one borderRadius closer to the center.
|
|
1961
|
+
line[1] = cx + distanceBigCenterToStartArc * Math.cos(start);
|
|
1962
|
+
line[2] = cy + distanceBigCenterToStartArc * Math.sin(start);
|
|
1963
|
+
// Now draw an arc towards the point where the small circle touches
|
|
1964
|
+
// the great circle.
|
|
1965
|
+
path.splice(i + 1, 0, [
|
|
1966
|
+
'A',
|
|
1967
|
+
r,
|
|
1968
|
+
r,
|
|
1969
|
+
0, // Slanting,
|
|
1970
|
+
0, // Long arc
|
|
1971
|
+
1, // Clockwise
|
|
1972
|
+
cx + bigR * Math.cos(params.start),
|
|
1973
|
+
cy + bigR * Math.sin(params.start)
|
|
1974
|
+
]);
|
|
1975
|
+
// From arc to line
|
|
1976
|
+
}
|
|
1977
|
+
else {
|
|
1978
|
+
// Update the cache
|
|
1979
|
+
params.end = end - angleOffset;
|
|
1980
|
+
// End the big arc a bit earlier
|
|
1981
|
+
arc[6] = cx + bigR * Math.cos(params.end);
|
|
1982
|
+
arc[7] = cy + bigR * Math.sin(params.end);
|
|
1983
|
+
// Draw a small arc towards a point on the end angle, but one
|
|
1984
|
+
// borderRadius closer to the center relative to the perimeter.
|
|
1985
|
+
path.splice(i + 1, 0, [
|
|
1986
|
+
'A',
|
|
1987
|
+
r,
|
|
1988
|
+
r,
|
|
1989
|
+
0,
|
|
1990
|
+
0,
|
|
1991
|
+
1,
|
|
1992
|
+
cx + distanceBigCenterToStartArc * Math.cos(end),
|
|
1993
|
+
cy + distanceBigCenterToStartArc * Math.sin(end)
|
|
1994
|
+
]);
|
|
1995
|
+
}
|
|
1996
|
+
// Long or short arc must be reconsidered because we have modified the
|
|
1997
|
+
// start and end points
|
|
1998
|
+
arc[4] = Math.abs(params.end - params.start) < Math.PI ? 0 : 1;
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
/**
|
|
2002
|
+
* Extend arc with borderRadius.
|
|
2003
|
+
* @internal
|
|
1825
2004
|
*/
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
2005
|
+
function arc(x, y, w, h, options = {}) {
|
|
2006
|
+
const path = oldArc(x, y, w, h, options), { brStart = true, brEnd = true, innerR = 0, r = w, start = 0, end = 0 } = options;
|
|
2007
|
+
if (options.open || !options.borderRadius) {
|
|
2008
|
+
return path;
|
|
2009
|
+
}
|
|
2010
|
+
const alpha = end - start, sinHalfAlpha = Math.sin(alpha / 2), borderRadius = Math.max(Math.min(relativeLength(borderRadiusObject(options.borderRadius).radius, r - innerR),
|
|
2011
|
+
// Cap to half the sector radius
|
|
2012
|
+
(r - innerR) / 2,
|
|
2013
|
+
// For smaller pie slices, cap to the largest small circle that
|
|
2014
|
+
// can be fitted within the sector
|
|
2015
|
+
(r * sinHalfAlpha) / (1 + sinHalfAlpha)), 0),
|
|
2016
|
+
// For the inner radius, we need an extra cap because the inner arc
|
|
2017
|
+
// is shorter than the outer arc
|
|
2018
|
+
innerBorderRadius = Math.min(borderRadius, 2 * (alpha / Math.PI) * innerR);
|
|
2019
|
+
// Apply turn-by-turn border radius. Start at the end since we're
|
|
2020
|
+
// splicing in arc segments.
|
|
2021
|
+
let i = path.length - 1;
|
|
2022
|
+
while (i--) {
|
|
2023
|
+
if ((!brStart && (i === 0 || i === 3)) ||
|
|
2024
|
+
(!brEnd && (i === 1 || i === 2))) {
|
|
2025
|
+
continue;
|
|
2026
|
+
}
|
|
2027
|
+
applyBorderRadius(path, i, i > 1 ? innerBorderRadius : borderRadius);
|
|
2028
|
+
}
|
|
2029
|
+
return path;
|
|
2030
|
+
}
|
|
2031
|
+
/** @internal */
|
|
2032
|
+
function seriesOnAfterColumnTranslate() {
|
|
2033
|
+
if (this.options.borderRadius &&
|
|
2034
|
+
!(this.chart.is3d && this.chart.is3d())) {
|
|
2035
|
+
const { options, yAxis } = this, percent = options.stacking === 'percent', seriesDefault = BorderRadius_defaultOptions.plotOptions?.[this.type]
|
|
2036
|
+
?.borderRadius, borderRadius = borderRadiusObject(options.borderRadius, isObject(seriesDefault) ? seriesDefault : {}), reversed = yAxis.options.reversed;
|
|
2037
|
+
for (const point of this.points) {
|
|
2038
|
+
const { shapeArgs } = point;
|
|
2039
|
+
if (point.shapeType === 'roundedRect' && shapeArgs) {
|
|
2040
|
+
const { width = 0, height = 0, y = 0 } = shapeArgs;
|
|
2041
|
+
let brBoxY = y, brBoxHeight = height;
|
|
2042
|
+
// It would be nice to refactor StackItem.getStackBox/
|
|
2043
|
+
// setOffset so that we could get a reliable box out of
|
|
2044
|
+
// it. Currently it is close if we remove the label
|
|
2045
|
+
// offset, but we still need to run crispCol and also
|
|
2046
|
+
// flip it if inverted, so atm it is simpler to do it
|
|
2047
|
+
// like the below.
|
|
2048
|
+
if (borderRadius.scope === 'stack' &&
|
|
2049
|
+
point.stackTotal) {
|
|
2050
|
+
const stackEnd = yAxis.translate(percent ? 100 : point.stackTotal, false, true, false, true), stackThreshold = yAxis.translate(options.threshold || 0, false, true, false, true), box = this.crispCol(0, Math.min(stackEnd, stackThreshold), 0, Math.abs(stackEnd - stackThreshold));
|
|
2051
|
+
brBoxY = box.y;
|
|
2052
|
+
brBoxHeight = box.height;
|
|
2053
|
+
}
|
|
2054
|
+
const flip = (point.negative ? -1 : 1) *
|
|
2055
|
+
(reversed ? -1 : 1) === -1;
|
|
2056
|
+
// Handle the where option
|
|
2057
|
+
let where = borderRadius.where;
|
|
2058
|
+
// Waterfall, hanging columns should have rounding on
|
|
2059
|
+
// all sides
|
|
2060
|
+
if (!where &&
|
|
2061
|
+
this.is('waterfall') &&
|
|
2062
|
+
Math.abs((point.yBottom || 0) -
|
|
2063
|
+
(this.translatedThreshold || 0)) > this.borderWidth) {
|
|
2064
|
+
where = 'all';
|
|
2065
|
+
}
|
|
2066
|
+
if (!where) {
|
|
2067
|
+
where = 'end';
|
|
2068
|
+
}
|
|
2069
|
+
// Get the radius
|
|
2070
|
+
const r = Math.min(relativeLength(borderRadius.radius, width), width / 2,
|
|
2071
|
+
// Cap to the height, but not if where is `end`
|
|
2072
|
+
where === 'all' ? brBoxHeight / 2 : Infinity) || 0;
|
|
2073
|
+
// If the `where` option is 'end', cut off the
|
|
2074
|
+
// rectangles by making the border-radius box one r
|
|
2075
|
+
// greater, so that the imaginary radius falls outside
|
|
2076
|
+
// the rectangle.
|
|
2077
|
+
if (where === 'end') {
|
|
2078
|
+
if (flip) {
|
|
2079
|
+
brBoxY -= r;
|
|
2080
|
+
brBoxHeight += r;
|
|
2081
|
+
}
|
|
2082
|
+
else {
|
|
2083
|
+
brBoxHeight += r;
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
extend(shapeArgs, { brBoxHeight, brBoxY, r });
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
/** @internal */
|
|
2092
|
+
function composeBorderRadius(SeriesClass, SVGElementClass, SVGRendererClass) {
|
|
2093
|
+
const PieSeriesClass = SeriesClass.types.pie;
|
|
2094
|
+
if (!SVGElementClass.symbolCustomAttribs.includes('borderRadius')) {
|
|
2095
|
+
const symbols = SVGRendererClass.prototype.symbols;
|
|
2096
|
+
addEvent(SeriesClass, 'afterColumnTranslate', seriesOnAfterColumnTranslate, {
|
|
2097
|
+
// After columnrange and polar column modifications
|
|
2098
|
+
order: 9
|
|
2099
|
+
});
|
|
2100
|
+
addEvent(PieSeriesClass, 'afterTranslate', pieSeriesOnAfterTranslate);
|
|
2101
|
+
SVGElementClass.symbolCustomAttribs.push('borderRadius', 'brBoxHeight', 'brBoxY', 'brEnd', 'brStart');
|
|
2102
|
+
oldArc = symbols.arc;
|
|
2103
|
+
oldRoundedRect = symbols.roundedRect;
|
|
2104
|
+
symbols.arc = arc;
|
|
2105
|
+
symbols.roundedRect = roundedRect;
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Utility function to get the full border radius options object, from a simple
|
|
2110
|
+
* number or a partial options object.
|
|
2111
|
+
* @internal
|
|
2112
|
+
*/
|
|
2113
|
+
function borderRadiusObject(options, seriesBROptions) {
|
|
2114
|
+
if (!(0,external_highcharts_src_js_default_namespaceObject.isObject)(options)) {
|
|
2115
|
+
options = { radius: options || 0 };
|
|
2116
|
+
}
|
|
2117
|
+
return (0,external_highcharts_src_js_default_namespaceObject.merge)(defaultBorderRadiusOptions, seriesBROptions, options);
|
|
2118
|
+
}
|
|
2119
|
+
/** @internal */
|
|
2120
|
+
function pieSeriesOnAfterTranslate() {
|
|
2121
|
+
const borderRadius = borderRadiusObject(this.options.borderRadius);
|
|
2122
|
+
for (const point of this.points) {
|
|
2123
|
+
const shapeArgs = point.shapeArgs;
|
|
2124
|
+
if (shapeArgs) {
|
|
2125
|
+
shapeArgs.borderRadius = relativeLength(borderRadius.radius, (shapeArgs.r || 0) - ((shapeArgs.innerR) || 0));
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
/**
|
|
2130
|
+
* Extend roundedRect with individual cutting through rOffset.
|
|
2131
|
+
* @internal
|
|
2132
|
+
*/
|
|
2133
|
+
function roundedRect(x, y, width, height, options = {}) {
|
|
2134
|
+
const path = oldRoundedRect(x, y, width, height, options), { r = 0, brBoxHeight = height, brBoxY = y } = options, brOffsetTop = y - brBoxY, brOffsetBtm = (brBoxY + brBoxHeight) - (y + height),
|
|
2135
|
+
// When the distance to the border-radius box is greater than the r
|
|
2136
|
+
// itself, it means no border radius. The -0.1 accounts for float
|
|
2137
|
+
// rounding errors.
|
|
2138
|
+
rTop = (brOffsetTop - r) > -0.1 ? 0 : r, rBtm = (brOffsetBtm - r) > -0.1 ? 0 : r, cutTop = Math.max(rTop && brOffsetTop, 0), cutBtm = Math.max(rBtm && brOffsetBtm, 0);
|
|
2139
|
+
/*
|
|
2140
|
+
|
|
2141
|
+
The naming of control points:
|
|
2142
|
+
|
|
2143
|
+
/ a -------- b \
|
|
2144
|
+
/ \
|
|
2145
|
+
h c
|
|
2146
|
+
| |
|
|
2147
|
+
| |
|
|
2148
|
+
| |
|
|
2149
|
+
g d
|
|
2150
|
+
\ /
|
|
2151
|
+
\ f -------- e /
|
|
2152
|
+
|
|
2153
|
+
*/
|
|
2154
|
+
const a = [x + rTop, y], b = [x + width - rTop, y], c = [x + width, y + rTop], d = [
|
|
2155
|
+
x + width, y + height - rBtm
|
|
2156
|
+
], e = [
|
|
2157
|
+
x + width - rBtm,
|
|
2158
|
+
y + height
|
|
2159
|
+
], f = [x + rBtm, y + height], g = [x, y + height - rBtm], h = [x, y + rTop];
|
|
2160
|
+
const applyPythagoras = (r, altitude) => Math.sqrt(Math.pow(r, 2) - Math.pow(altitude, 2));
|
|
2161
|
+
// Inside stacks, cut off part of the top
|
|
2162
|
+
if (cutTop) {
|
|
2163
|
+
const base = applyPythagoras(rTop, rTop - cutTop);
|
|
2164
|
+
a[0] -= base;
|
|
2165
|
+
b[0] += base;
|
|
2166
|
+
c[1] = h[1] = y + rTop - cutTop;
|
|
2167
|
+
}
|
|
2168
|
+
// Column is lower than the radius. Cut off bottom inside the top
|
|
2169
|
+
// radius.
|
|
2170
|
+
if (height < rTop - cutTop) {
|
|
2171
|
+
const base = applyPythagoras(rTop, rTop - cutTop - height);
|
|
2172
|
+
c[0] = d[0] = x + width - rTop + base;
|
|
2173
|
+
e[0] = Math.min(c[0], e[0]);
|
|
2174
|
+
f[0] = Math.max(d[0], f[0]);
|
|
2175
|
+
g[0] = h[0] = x + rTop - base;
|
|
2176
|
+
c[1] = h[1] = y + height;
|
|
2177
|
+
}
|
|
2178
|
+
// Inside stacks, cut off part of the bottom
|
|
2179
|
+
if (cutBtm) {
|
|
2180
|
+
const base = applyPythagoras(rBtm, rBtm - cutBtm);
|
|
2181
|
+
e[0] += base;
|
|
2182
|
+
f[0] -= base;
|
|
2183
|
+
d[1] = g[1] = y + height - rBtm + cutBtm;
|
|
2184
|
+
}
|
|
2185
|
+
// Cut off top inside the bottom radius
|
|
2186
|
+
if (height < rBtm - cutBtm) {
|
|
2187
|
+
const base = applyPythagoras(rBtm, rBtm - cutBtm - height);
|
|
2188
|
+
c[0] = d[0] = x + width - rBtm + base;
|
|
2189
|
+
b[0] = Math.min(c[0], b[0]);
|
|
2190
|
+
a[0] = Math.max(d[0], a[0]);
|
|
2191
|
+
g[0] = h[0] = x + rBtm - base;
|
|
2192
|
+
d[1] = g[1] = y;
|
|
2193
|
+
}
|
|
2194
|
+
// Preserve the box for data labels
|
|
2195
|
+
path.length = 0;
|
|
2196
|
+
path.push(['M', ...a],
|
|
2197
|
+
// Top side
|
|
2198
|
+
['L', ...b],
|
|
2199
|
+
// Top right corner
|
|
2200
|
+
['A', rTop, rTop, 0, 0, 1, ...c],
|
|
2201
|
+
// Right side
|
|
2202
|
+
['L', ...d],
|
|
2203
|
+
// Bottom right corner
|
|
2204
|
+
['A', rBtm, rBtm, 0, 0, 1, ...e],
|
|
2205
|
+
// Bottom side
|
|
2206
|
+
['L', ...f],
|
|
2207
|
+
// Bottom left corner
|
|
2208
|
+
['A', rBtm, rBtm, 0, 0, 1, ...g],
|
|
2209
|
+
// Left side
|
|
2210
|
+
['L', ...h],
|
|
2211
|
+
// Top left corner
|
|
2212
|
+
['A', rTop, rTop, 0, 0, 1, ...a], ['Z']);
|
|
2213
|
+
return path;
|
|
2214
|
+
}
|
|
2215
|
+
/* *
|
|
2216
|
+
*
|
|
2217
|
+
* API Declarations
|
|
2218
|
+
*
|
|
2219
|
+
* */
|
|
2220
|
+
/**
|
|
2221
|
+
* Detailed options for border radius.
|
|
2222
|
+
*
|
|
2223
|
+
* @sample {highcharts} highcharts/plotoptions/column-borderradius/
|
|
2224
|
+
* Rounded columns
|
|
2225
|
+
* @sample highcharts/plotoptions/series-border-radius
|
|
2226
|
+
* Column and pie with rounded border
|
|
2227
|
+
*
|
|
2228
|
+
* @interface Highcharts.BorderRadiusOptionsObject
|
|
2229
|
+
*/ /**
|
|
2230
|
+
* The border radius. A number signifies pixels. A percentage string, like for
|
|
2231
|
+
* example `50%`, signifies a relative size. For columns this is relative to the
|
|
2232
|
+
* column width, for pies it is relative to the radius and the inner radius.
|
|
2233
|
+
*
|
|
2234
|
+
* @sample {highcharts} highcharts/plotoptions/column-borderradius/
|
|
2235
|
+
* Rounded columns
|
|
2236
|
+
* @sample highcharts/plotoptions/series-border-radius
|
|
2237
|
+
* Column and pie with rounded border
|
|
2238
|
+
*
|
|
2239
|
+
* @name Highcharts.BorderRadiusOptionsObject#radius
|
|
2240
|
+
* @type {string|number|undefined}
|
|
2241
|
+
*/ /**
|
|
2242
|
+
* The scope of the rounding for column charts or plot bands. In a stacked
|
|
2243
|
+
* column chart, the value `point` means each single point will get rounded
|
|
2244
|
+
* corners. The value `stack` means the rounding will apply to the full
|
|
2245
|
+
* stack, so that only points close to the top or bottom will receive
|
|
2246
|
+
* rounding.
|
|
2247
|
+
*
|
|
2248
|
+
* Similarly, for plot bands, the `individual` value means each plot band
|
|
2249
|
+
* will get rounded corners.
|
|
2250
|
+
*
|
|
2251
|
+
* @sample {highcharts} highcharts/plotoptions/column-borderradius/
|
|
2252
|
+
* Rounded columns
|
|
2253
|
+
*
|
|
2254
|
+
* @name Highcharts.BorderRadiusOptionsObject#scope
|
|
2255
|
+
* @type {"individual"|"point"|"stack"|undefined}
|
|
2256
|
+
*/ /**
|
|
2257
|
+
* For column charts, where in the point or stack to apply rounding. The `end`
|
|
2258
|
+
* value means only those corners at the point value will be rounded, leaving
|
|
2259
|
+
* the corners at the base or threshold unrounded. This is the most intuitive
|
|
2260
|
+
* behavior. The `all` value means also the base will be rounded.
|
|
2261
|
+
*
|
|
2262
|
+
* @sample {highcharts} highcharts/plotoptions/column-borderradius-where-all
|
|
2263
|
+
* Rounding on all corners
|
|
2264
|
+
*
|
|
2265
|
+
* @name Highcharts.BorderRadiusOptionsObject#where
|
|
2266
|
+
* @type {"all"|"end"|undefined}
|
|
2267
|
+
* @default end
|
|
2268
|
+
*/
|
|
2269
|
+
(''); // Keeps doclets above in JS file
|
|
2270
|
+
|
|
2271
|
+
;// ./code/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js
|
|
2272
|
+
/* *
|
|
2273
|
+
*
|
|
2274
|
+
* (c) 2010-2026 Highsoft AS
|
|
2275
|
+
* Author: Torstein Hønsi
|
|
2276
|
+
*
|
|
2277
|
+
* Integration of this software requires a license.
|
|
2278
|
+
* - For commercial use, see www.highcharts.com/license
|
|
2279
|
+
* - For non-commercial, see www.highcharts.com/license-eula
|
|
2280
|
+
*
|
|
2281
|
+
*
|
|
2282
|
+
* */
|
|
2283
|
+
|
|
2284
|
+
/* *
|
|
2285
|
+
*
|
|
2286
|
+
* API Options
|
|
2287
|
+
*
|
|
2288
|
+
* */
|
|
2289
|
+
/**
|
|
2290
|
+
* A box plot is a convenient way of depicting groups of data through their
|
|
2291
|
+
* five-number summaries: the smallest observation (sample minimum), lower
|
|
2292
|
+
* quartile (Q1), median (Q2), upper quartile (Q3), and largest observation
|
|
2293
|
+
* (sample maximum).
|
|
2294
|
+
*
|
|
2295
|
+
* @sample highcharts/demo/box-plot/
|
|
2296
|
+
* Box plot
|
|
2297
|
+
* @sample {highcharts} highcharts/css/boxplot/
|
|
2298
|
+
* Box plot in styled mode
|
|
2299
|
+
* @sample {highcharts} highcharts/series-scatter/jitter-boxplot
|
|
2300
|
+
* Jittered scatter plot on top of a box plot
|
|
2301
|
+
*
|
|
2302
|
+
* @extends plotOptions.column
|
|
2303
|
+
* @excluding borderColor, borderWidth, groupZPadding,
|
|
2304
|
+
* states, boostThreshold, boostBlending
|
|
2305
|
+
* @product highcharts
|
|
2306
|
+
* @requires highcharts-more
|
|
2307
|
+
* @optionparent plotOptions.boxplot
|
|
2308
|
+
*/
|
|
2309
|
+
const BoxPlotSeriesDefaults = {
|
|
2310
|
+
/**
|
|
2311
|
+
* The corner radius of the border surrounding the box. A number
|
|
2312
|
+
* signifies pixels. A percentage string, like for example `50%`, signifies
|
|
2313
|
+
* a size relative to the box width.
|
|
2314
|
+
*
|
|
2315
|
+
* @sample {highcharts} highcharts/demo/violin-plot/
|
|
2316
|
+
* Box plot with rounded corners
|
|
2317
|
+
*
|
|
2318
|
+
* @type {number|string|Highcharts.BorderRadiusOptionsObject}
|
|
2319
|
+
* @default 0
|
|
2320
|
+
* @since 13.0.1
|
|
2321
|
+
* @product highcharts
|
|
2322
|
+
*/
|
|
2323
|
+
borderRadius: 0,
|
|
2324
|
+
/**
|
|
2325
|
+
* The Y axis value to serve as the base for the columns, for
|
|
2326
|
+
* distinguishing between values above and below a threshold. If `null`,
|
|
2327
|
+
* the columns extend from the padding Y axis minimum.
|
|
2328
|
+
*
|
|
2329
|
+
* @type {number|null}
|
|
2330
|
+
* @default null
|
|
2331
|
+
* @since 2.0
|
|
2332
|
+
* @product highcharts
|
|
2333
|
+
*/
|
|
2334
|
+
threshold: null,
|
|
2335
|
+
tooltip: {
|
|
1839
2336
|
pointFormat: '<span style="color:{point.color}">\u25CF</span> <b>' +
|
|
1840
2337
|
'{series.name}</b><br/>' +
|
|
1841
2338
|
'Maximum: {point.high}<br/>' +
|
|
@@ -2035,6 +2532,24 @@ const BoxPlotSeriesDefaults = {
|
|
|
2035
2532
|
* @default high
|
|
2036
2533
|
* @apioption plotOptions.boxplot.colorKey
|
|
2037
2534
|
*/
|
|
2535
|
+
/**
|
|
2536
|
+
* The point key used to position a box plot data label.
|
|
2537
|
+
*
|
|
2538
|
+
* @typedef {"low"|"q1"|"median"|"q3"|"high"} Highcharts.BoxPlotPointValKey
|
|
2539
|
+
*/
|
|
2540
|
+
/**
|
|
2541
|
+
* The point key to use for positioning this data label.
|
|
2542
|
+
* Possible values are `low`, `q1`, `median`, `q3` and `high`.
|
|
2543
|
+
*
|
|
2544
|
+
* @sample {highcharts} highcharts/series-boxplot/data-labels/
|
|
2545
|
+
* Multiple data labels
|
|
2546
|
+
*
|
|
2547
|
+
* @type {Highcharts.BoxPlotPointValKey}
|
|
2548
|
+
* @default high
|
|
2549
|
+
* @validvalue ["low", "q1", "median", "q3", "high"]
|
|
2550
|
+
* @product highcharts
|
|
2551
|
+
* @apioption plotOptions.boxplot.dataLabels.alignToKey
|
|
2552
|
+
*/
|
|
2038
2553
|
/**
|
|
2039
2554
|
* The color of the whiskers, the horizontal lines marking low and high
|
|
2040
2555
|
* values. When `undefined`, the general series color is used.
|
|
@@ -2246,9 +2761,6 @@ const BoxPlotSeriesDefaults = {
|
|
|
2246
2761
|
* */
|
|
2247
2762
|
/* harmony default export */ const BoxPlot_BoxPlotSeriesDefaults = (BoxPlotSeriesDefaults);
|
|
2248
2763
|
|
|
2249
|
-
;// external ["./highcharts.src.js","default","Series","types","column"]
|
|
2250
|
-
const external_highcharts_src_js_default_Series_types_column_namespaceObject = __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_c57973fa__["default"].Series.types.column;
|
|
2251
|
-
var external_highcharts_src_js_default_Series_types_column_default = /*#__PURE__*/__webpack_require__.n(external_highcharts_src_js_default_Series_types_column_namespaceObject);
|
|
2252
2764
|
;// ./code/es-modules/Series/BoxPlot/BoxPlotSeries.js
|
|
2253
2765
|
/* *
|
|
2254
2766
|
*
|
|
@@ -2265,9 +2777,11 @@ var external_highcharts_src_js_default_Series_types_column_default = /*#__PURE__
|
|
|
2265
2777
|
|
|
2266
2778
|
|
|
2267
2779
|
|
|
2780
|
+
|
|
2268
2781
|
const { noop: BoxPlotSeries_noop } = (external_highcharts_src_js_default_default());
|
|
2269
2782
|
|
|
2270
2783
|
|
|
2784
|
+
|
|
2271
2785
|
/* *
|
|
2272
2786
|
*
|
|
2273
2787
|
* Class
|
|
@@ -2323,8 +2837,9 @@ class BoxPlotSeries extends (external_highcharts_src_js_default_Series_types_col
|
|
|
2323
2837
|
// Do the translation on each point dimension
|
|
2324
2838
|
series.points.forEach(function (point) {
|
|
2325
2839
|
pointArrayMap.forEach(function (key) {
|
|
2326
|
-
|
|
2327
|
-
|
|
2840
|
+
const value = point[key];
|
|
2841
|
+
if (value !== null) {
|
|
2842
|
+
point[`${key}Plot`] = yAxis.translate(value, false, true, false, true);
|
|
2328
2843
|
}
|
|
2329
2844
|
});
|
|
2330
2845
|
point.plotHigh = point.highPlot; // For data label validation
|
|
@@ -2413,19 +2928,19 @@ class BoxPlotSeries extends (external_highcharts_src_js_default_Series_types_col
|
|
|
2413
2928
|
options.dashStyle);
|
|
2414
2929
|
point.medianShape.attr(medianAttr);
|
|
2415
2930
|
}
|
|
2416
|
-
let d;
|
|
2417
2931
|
// The stem
|
|
2418
2932
|
const stemX = (0,external_highcharts_src_js_default_namespaceObject.crisp)((point.plotX || 0) + (series.pointXOffset || 0) +
|
|
2419
2933
|
((series.barW || 0) / 2), point.stem.strokeWidth());
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2934
|
+
point.stem[verb]({
|
|
2935
|
+
d: [
|
|
2936
|
+
// Stem up
|
|
2937
|
+
['M', stemX, q3Plot],
|
|
2938
|
+
['L', stemX, highPlot],
|
|
2939
|
+
// Stem down
|
|
2940
|
+
['M', stemX, q1Plot],
|
|
2941
|
+
['L', stemX, lowPlot]
|
|
2942
|
+
]
|
|
2943
|
+
});
|
|
2429
2944
|
// The box
|
|
2430
2945
|
if (doQuartiles) {
|
|
2431
2946
|
const boxStrokeWidth = point.box.strokeWidth();
|
|
@@ -2433,15 +2948,11 @@ class BoxPlotSeries extends (external_highcharts_src_js_default_Series_types_col
|
|
|
2433
2948
|
q3Plot = (0,external_highcharts_src_js_default_namespaceObject.crisp)(q3Plot, boxStrokeWidth);
|
|
2434
2949
|
x = (0,external_highcharts_src_js_default_namespaceObject.crisp)(x, boxStrokeWidth);
|
|
2435
2950
|
right = (0,external_highcharts_src_js_default_namespaceObject.crisp)(right, boxStrokeWidth);
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
['L', x, q3Plot],
|
|
2442
|
-
['Z']
|
|
2443
|
-
];
|
|
2444
|
-
point.box[verb]({ d });
|
|
2951
|
+
// Optionally round the corners of the box
|
|
2952
|
+
const r = Math.min((0,external_highcharts_src_js_default_namespaceObject.relativeLength)(borderRadiusObject(options.borderRadius).radius, right - x), (right - x) / 2, Math.abs(q1Plot - q3Plot) / 2);
|
|
2953
|
+
point.box[verb]({
|
|
2954
|
+
d: renderer.symbols.roundedRect(x, Math.min(q1Plot, q3Plot), right - x, Math.abs(q1Plot - q3Plot), { r })
|
|
2955
|
+
});
|
|
2445
2956
|
}
|
|
2446
2957
|
// The whiskers
|
|
2447
2958
|
if (pointWhiskerLength) {
|
|
@@ -2454,11 +2965,12 @@ class BoxPlotSeries extends (external_highcharts_src_js_default_Series_types_col
|
|
|
2454
2965
|
}
|
|
2455
2966
|
// The median
|
|
2456
2967
|
medianPlot = (0,external_highcharts_src_js_default_namespaceObject.crisp)(point.medianPlot, point.medianShape.strokeWidth());
|
|
2457
|
-
|
|
2458
|
-
[
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2968
|
+
point.medianShape[verb]({
|
|
2969
|
+
d: [
|
|
2970
|
+
['M', x, medianPlot],
|
|
2971
|
+
['L', right, medianPlot]
|
|
2972
|
+
]
|
|
2973
|
+
});
|
|
2462
2974
|
}
|
|
2463
2975
|
}
|
|
2464
2976
|
}
|
|
@@ -2478,10 +2990,9 @@ BoxPlotSeries.defaultOptions = (0,external_highcharts_src_js_default_namespaceOb
|
|
|
2478
2990
|
pointArrayMap: ['low', 'q1', 'median', 'q3', 'high'],
|
|
2479
2991
|
// Defines the top of the tracker
|
|
2480
2992
|
pointValKey: 'high',
|
|
2481
|
-
// Disable data labels for box plot
|
|
2482
|
-
drawDataLabels: BoxPlotSeries_noop,
|
|
2483
2993
|
setStackedPoints: BoxPlotSeries_noop // #3890
|
|
2484
2994
|
});
|
|
2995
|
+
Series_RangeDataLabel.compose(BoxPlotSeries);
|
|
2485
2996
|
external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('boxplot', BoxPlotSeries);
|
|
2486
2997
|
/* *
|
|
2487
2998
|
*
|
|
@@ -3563,7 +4074,7 @@ class BubblePoint extends ScatterPoint {
|
|
|
3563
4074
|
|
|
3564
4075
|
const { composed: BubbleSeries_composed, noop: BubbleSeries_noop } = (external_highcharts_src_js_default_default());
|
|
3565
4076
|
|
|
3566
|
-
const { series: Series, seriesTypes: { column: { prototype:
|
|
4077
|
+
const { series: Series, seriesTypes: { column: { prototype: columnProto }, scatter: ScatterSeries } } = (external_highcharts_src_js_default_SeriesRegistry_default());
|
|
3567
4078
|
|
|
3568
4079
|
/* *
|
|
3569
4080
|
*
|
|
@@ -3939,6 +4450,21 @@ BubbleSeries.defaultOptions = (0,external_highcharts_src_js_default_namespaceObj
|
|
|
3939
4450
|
* @since 6.1.0
|
|
3940
4451
|
*/
|
|
3941
4452
|
animationLimit: 250,
|
|
4453
|
+
/**
|
|
4454
|
+
* When using automatic point colors pulled from the global
|
|
4455
|
+
* [colors](colors) or series-specific
|
|
4456
|
+
* [plotOptions.bubble.colors](series.colors) collections, this option
|
|
4457
|
+
* determines whether the chart should receive one color per series or
|
|
4458
|
+
* one color per point.
|
|
4459
|
+
*
|
|
4460
|
+
* In styled mode, the `colors` or `series.colors` arrays are not
|
|
4461
|
+
* supported, and instead this option gives the points individual color
|
|
4462
|
+
* class names on the form `highcharts-color-{n}`.
|
|
4463
|
+
*
|
|
4464
|
+
* @type {boolean}
|
|
4465
|
+
* @default false
|
|
4466
|
+
* @apioption plotOptions.bubble.colorByPoint
|
|
4467
|
+
*/
|
|
3942
4468
|
/**
|
|
3943
4469
|
* Whether to display negative sized bubbles. The threshold is given
|
|
3944
4470
|
* by the [zThreshold](#plotOptions.bubble.zThreshold) option, and negative
|
|
@@ -4142,7 +4668,7 @@ BubbleSeries.defaultOptions = (0,external_highcharts_src_js_default_namespaceObj
|
|
|
4142
4668
|
zoneAxis: 'z'
|
|
4143
4669
|
});
|
|
4144
4670
|
(0,external_highcharts_src_js_default_namespaceObject.extend)(BubbleSeries.prototype, {
|
|
4145
|
-
alignDataLabel:
|
|
4671
|
+
alignDataLabel: columnProto.alignDataLabel,
|
|
4146
4672
|
applyZones: BubbleSeries_noop,
|
|
4147
4673
|
bubblePadding: true,
|
|
4148
4674
|
isBubble: true,
|
|
@@ -4299,6 +4825,7 @@ const { seriesTypes: { column: { prototype: { pointClass: { prototype: ColumnRan
|
|
|
4299
4825
|
* Class
|
|
4300
4826
|
*
|
|
4301
4827
|
* */
|
|
4828
|
+
/** @internal */
|
|
4302
4829
|
class ColumnRangePoint extends ColumnRangePoint_AreaRangePoint {
|
|
4303
4830
|
/* *
|
|
4304
4831
|
*
|
|
@@ -4317,9 +4844,10 @@ class ColumnRangePoint extends ColumnRangePoint_AreaRangePoint {
|
|
|
4317
4844
|
* Default Export
|
|
4318
4845
|
*
|
|
4319
4846
|
* */
|
|
4847
|
+
/** @internal */
|
|
4320
4848
|
/* harmony default export */ const ColumnRange_ColumnRangePoint = (ColumnRangePoint);
|
|
4321
4849
|
|
|
4322
|
-
;// ./code/es-modules/Series/ColumnRange/
|
|
4850
|
+
;// ./code/es-modules/Series/ColumnRange/ColumnRangeSeriesDefaults.js
|
|
4323
4851
|
/* *
|
|
4324
4852
|
*
|
|
4325
4853
|
* (c) 2010-2026 Highsoft AS
|
|
@@ -4332,15 +4860,9 @@ class ColumnRangePoint extends ColumnRangePoint_AreaRangePoint {
|
|
|
4332
4860
|
*
|
|
4333
4861
|
* */
|
|
4334
4862
|
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
const { noop: ColumnRangeSeries_noop } = (external_highcharts_src_js_default_default());
|
|
4338
|
-
|
|
4339
|
-
const { seriesTypes: { arearange: ColumnRangeSeries_AreaRangeSeries, column: ColumnSeries, column: { prototype: ColumnRangeSeries_columnProto } } } = (external_highcharts_src_js_default_SeriesRegistry_default());
|
|
4340
|
-
|
|
4341
4863
|
/* *
|
|
4342
4864
|
*
|
|
4343
|
-
*
|
|
4865
|
+
* API Options
|
|
4344
4866
|
*
|
|
4345
4867
|
* */
|
|
4346
4868
|
/**
|
|
@@ -4358,7 +4880,7 @@ const { seriesTypes: { arearange: ColumnRangeSeries_AreaRangeSeries, column: Col
|
|
|
4358
4880
|
* @requires highcharts-more
|
|
4359
4881
|
* @optionparent plotOptions.columnrange
|
|
4360
4882
|
*/
|
|
4361
|
-
const
|
|
4883
|
+
const ColumnRangeSeriesDefaults = {
|
|
4362
4884
|
borderRadius: {
|
|
4363
4885
|
where: 'all'
|
|
4364
4886
|
},
|
|
@@ -4385,6 +4907,116 @@ const columnRangeOptions = {
|
|
|
4385
4907
|
}
|
|
4386
4908
|
}
|
|
4387
4909
|
};
|
|
4910
|
+
/**
|
|
4911
|
+
* A `columnrange` series. If the [type](#series.columnrange.type)
|
|
4912
|
+
* option is not specified, it is inherited from
|
|
4913
|
+
* [chart.type](#chart.type).
|
|
4914
|
+
*
|
|
4915
|
+
* @extends series,plotOptions.columnrange
|
|
4916
|
+
* @excluding dataParser, dataURL, stack, stacking
|
|
4917
|
+
* @product highcharts highstock
|
|
4918
|
+
* @requires highcharts-more
|
|
4919
|
+
* @apioption series.columnrange
|
|
4920
|
+
*/
|
|
4921
|
+
/**
|
|
4922
|
+
* An array of data points for the series. For the `columnrange` series
|
|
4923
|
+
* type, points can be given in the following ways:
|
|
4924
|
+
*
|
|
4925
|
+
* 1. An array of arrays with 3 or 2 values. In this case, the values correspond
|
|
4926
|
+
* to `x,low,high`. If the first value is a string, it is applied as the name
|
|
4927
|
+
* of the point, and the `x` value is inferred. The `x` value can also be
|
|
4928
|
+
* omitted, in which case the inner arrays should be of length 2\. Then the
|
|
4929
|
+
* `x` value is automatically calculated, either starting at 0 and
|
|
4930
|
+
* incremented by 1, or from `pointStart` and `pointInterval` given in the
|
|
4931
|
+
* series options.
|
|
4932
|
+
* ```js
|
|
4933
|
+
* data: [
|
|
4934
|
+
* [0, 4, 2],
|
|
4935
|
+
* [1, 2, 1],
|
|
4936
|
+
* [2, 9, 10]
|
|
4937
|
+
* ]
|
|
4938
|
+
* ```
|
|
4939
|
+
*
|
|
4940
|
+
* 2. An array of objects with named values. The following snippet shows only a
|
|
4941
|
+
* few settings, see the complete options set below. If the total number of
|
|
4942
|
+
* data points exceeds the series'
|
|
4943
|
+
* [turboThreshold](#series.columnrange.turboThreshold), this option is not
|
|
4944
|
+
* available.
|
|
4945
|
+
* ```js
|
|
4946
|
+
* data: [{
|
|
4947
|
+
* x: 1,
|
|
4948
|
+
* low: 0,
|
|
4949
|
+
* high: 4,
|
|
4950
|
+
* name: "Point2",
|
|
4951
|
+
* color: "#00FF00"
|
|
4952
|
+
* }, {
|
|
4953
|
+
* x: 1,
|
|
4954
|
+
* low: 5,
|
|
4955
|
+
* high: 3,
|
|
4956
|
+
* name: "Point1",
|
|
4957
|
+
* color: "#FF00FF"
|
|
4958
|
+
* }]
|
|
4959
|
+
* ```
|
|
4960
|
+
*
|
|
4961
|
+
* @sample {highcharts} highcharts/series/data-array-of-arrays/
|
|
4962
|
+
* Arrays of numeric x and y
|
|
4963
|
+
* @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
|
|
4964
|
+
* Arrays of datetime x and y
|
|
4965
|
+
* @sample {highcharts} highcharts/series/data-array-of-name-value/
|
|
4966
|
+
* Arrays of point.name and y
|
|
4967
|
+
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
4968
|
+
* Config objects
|
|
4969
|
+
*
|
|
4970
|
+
* @basic
|
|
4971
|
+
* @type {Array<Array<(number|string),number>|Array<(number|string),number,number>|*>}
|
|
4972
|
+
* @extends series.arearange.data
|
|
4973
|
+
* @excluding marker
|
|
4974
|
+
* @product highcharts highstock
|
|
4975
|
+
* @apioption series.columnrange.data
|
|
4976
|
+
*/
|
|
4977
|
+
/**
|
|
4978
|
+
* @extends series.columnrange.dataLabels
|
|
4979
|
+
* @product highcharts highstock
|
|
4980
|
+
* @apioption series.columnrange.data.dataLabels
|
|
4981
|
+
*/
|
|
4982
|
+
/**
|
|
4983
|
+
* @excluding halo, lineWidth, lineWidthPlus, marker
|
|
4984
|
+
* @product highcharts highstock
|
|
4985
|
+
* @apioption series.columnrange.states.hover
|
|
4986
|
+
*/
|
|
4987
|
+
/**
|
|
4988
|
+
* @excluding halo, lineWidth, lineWidthPlus, marker
|
|
4989
|
+
* @product highcharts highstock
|
|
4990
|
+
* @apioption series.columnrange.states.select
|
|
4991
|
+
*/
|
|
4992
|
+
''; // Adds doclets above into transpiled
|
|
4993
|
+
/* *
|
|
4994
|
+
*
|
|
4995
|
+
* Default Export
|
|
4996
|
+
*
|
|
4997
|
+
* */
|
|
4998
|
+
/* harmony default export */ const ColumnRange_ColumnRangeSeriesDefaults = (ColumnRangeSeriesDefaults);
|
|
4999
|
+
|
|
5000
|
+
;// ./code/es-modules/Series/ColumnRange/ColumnRangeSeries.js
|
|
5001
|
+
/* *
|
|
5002
|
+
*
|
|
5003
|
+
* (c) 2010-2026 Highsoft AS
|
|
5004
|
+
* Author: Torstein Hønsi
|
|
5005
|
+
*
|
|
5006
|
+
* Integration of this software requires a license.
|
|
5007
|
+
* - For commercial use, see www.highcharts.com/license
|
|
5008
|
+
* - For non-commercial, see www.highcharts.com/license-eula
|
|
5009
|
+
*
|
|
5010
|
+
*
|
|
5011
|
+
* */
|
|
5012
|
+
|
|
5013
|
+
|
|
5014
|
+
|
|
5015
|
+
|
|
5016
|
+
const { noop: ColumnRangeSeries_noop } = (external_highcharts_src_js_default_default());
|
|
5017
|
+
|
|
5018
|
+
const { seriesTypes: { arearange: ColumnRangeSeries_AreaRangeSeries, column: ColumnSeries, column: { prototype: ColumnRangeSeries_columnProto } } } = (external_highcharts_src_js_default_SeriesRegistry_default());
|
|
5019
|
+
|
|
4388
5020
|
/* *
|
|
4389
5021
|
*
|
|
4390
5022
|
* Class
|
|
@@ -4393,7 +5025,7 @@ const columnRangeOptions = {
|
|
|
4393
5025
|
/**
|
|
4394
5026
|
* The ColumnRangeSeries class
|
|
4395
5027
|
*
|
|
4396
|
-
* @
|
|
5028
|
+
* @internal
|
|
4397
5029
|
* @class
|
|
4398
5030
|
* @name Highcharts.seriesTypes.columnrange
|
|
4399
5031
|
*
|
|
@@ -4442,17 +5074,17 @@ class ColumnRangeSeries extends ColumnRangeSeries_AreaRangeSeries {
|
|
|
4442
5074
|
translate3dShapes() {
|
|
4443
5075
|
return ColumnRangeSeries_columnProto.translate3dShapes.apply(this, arguments);
|
|
4444
5076
|
}
|
|
5077
|
+
/**
|
|
5078
|
+
* Translate data points from raw values x and y to plotX and plotY
|
|
5079
|
+
* @internal
|
|
5080
|
+
*/
|
|
4445
5081
|
afterColumnTranslate() {
|
|
4446
|
-
/**
|
|
4447
|
-
* Translate data points from raw values x and y to plotX and plotY
|
|
4448
|
-
* @private
|
|
4449
|
-
*/
|
|
4450
5082
|
const yAxis = this.yAxis, xAxis = this.xAxis, startAngleRad = xAxis.startAngleRad, chart = this.chart, isRadial = this.xAxis.isRadial, safeDistance = Math.max(chart.chartWidth, chart.chartHeight) + 999;
|
|
4451
5083
|
let height, heightDifference, start, y;
|
|
4452
5084
|
// eslint-disable-next-line valid-jsdoc
|
|
4453
5085
|
/**
|
|
4454
5086
|
* Don't draw too far outside plot area (#6835)
|
|
4455
|
-
* @
|
|
5087
|
+
* @internal
|
|
4456
5088
|
*/
|
|
4457
5089
|
function safeBounds(pixelPos) {
|
|
4458
5090
|
return (0,external_highcharts_src_js_default_namespaceObject.clamp)(pixelPos, -safeDistance, safeDistance);
|
|
@@ -4511,7 +5143,7 @@ class ColumnRangeSeries extends ColumnRangeSeries_AreaRangeSeries {
|
|
|
4511
5143
|
* Static Properties
|
|
4512
5144
|
*
|
|
4513
5145
|
* */
|
|
4514
|
-
ColumnRangeSeries.defaultOptions = (0,external_highcharts_src_js_default_namespaceObject.merge)(ColumnSeries.defaultOptions, ColumnRangeSeries_AreaRangeSeries.defaultOptions,
|
|
5146
|
+
ColumnRangeSeries.defaultOptions = (0,external_highcharts_src_js_default_namespaceObject.merge)(ColumnSeries.defaultOptions, ColumnRangeSeries_AreaRangeSeries.defaultOptions, ColumnRange_ColumnRangeSeriesDefaults);
|
|
4515
5147
|
(0,external_highcharts_src_js_default_namespaceObject.addEvent)(ColumnRangeSeries, 'afterColumnTranslate', function () {
|
|
4516
5148
|
ColumnRangeSeries.prototype.afterColumnTranslate.apply(this);
|
|
4517
5149
|
}, { order: 5 });
|
|
@@ -4531,98 +5163,11 @@ ColumnRangeSeries.defaultOptions = (0,external_highcharts_src_js_default_namespa
|
|
|
4531
5163
|
external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('columnrange', ColumnRangeSeries);
|
|
4532
5164
|
/* *
|
|
4533
5165
|
*
|
|
4534
|
-
* Default Export
|
|
4535
|
-
*
|
|
4536
|
-
* */
|
|
4537
|
-
/* harmony default export */ const ColumnRange_ColumnRangeSeries = ((/* unused pure expression or super */ null && (ColumnRangeSeries)));
|
|
4538
|
-
/* *
|
|
4539
|
-
*
|
|
4540
|
-
* API Options
|
|
4541
|
-
*
|
|
4542
|
-
* */
|
|
4543
|
-
/**
|
|
4544
|
-
* A `columnrange` series. If the [type](#series.columnrange.type)
|
|
4545
|
-
* option is not specified, it is inherited from
|
|
4546
|
-
* [chart.type](#chart.type).
|
|
4547
|
-
*
|
|
4548
|
-
* @extends series,plotOptions.columnrange
|
|
4549
|
-
* @excluding dataParser, dataURL, stack, stacking
|
|
4550
|
-
* @product highcharts highstock
|
|
4551
|
-
* @requires highcharts-more
|
|
4552
|
-
* @apioption series.columnrange
|
|
4553
|
-
*/
|
|
4554
|
-
/**
|
|
4555
|
-
* An array of data points for the series. For the `columnrange` series
|
|
4556
|
-
* type, points can be given in the following ways:
|
|
4557
|
-
*
|
|
4558
|
-
* 1. An array of arrays with 3 or 2 values. In this case, the values correspond
|
|
4559
|
-
* to `x,low,high`. If the first value is a string, it is applied as the name
|
|
4560
|
-
* of the point, and the `x` value is inferred. The `x` value can also be
|
|
4561
|
-
* omitted, in which case the inner arrays should be of length 2\. Then the
|
|
4562
|
-
* `x` value is automatically calculated, either starting at 0 and
|
|
4563
|
-
* incremented by 1, or from `pointStart` and `pointInterval` given in the
|
|
4564
|
-
* series options.
|
|
4565
|
-
* ```js
|
|
4566
|
-
* data: [
|
|
4567
|
-
* [0, 4, 2],
|
|
4568
|
-
* [1, 2, 1],
|
|
4569
|
-
* [2, 9, 10]
|
|
4570
|
-
* ]
|
|
4571
|
-
* ```
|
|
4572
|
-
*
|
|
4573
|
-
* 2. An array of objects with named values. The following snippet shows only a
|
|
4574
|
-
* few settings, see the complete options set below. If the total number of
|
|
4575
|
-
* data points exceeds the series'
|
|
4576
|
-
* [turboThreshold](#series.columnrange.turboThreshold), this option is not
|
|
4577
|
-
* available.
|
|
4578
|
-
* ```js
|
|
4579
|
-
* data: [{
|
|
4580
|
-
* x: 1,
|
|
4581
|
-
* low: 0,
|
|
4582
|
-
* high: 4,
|
|
4583
|
-
* name: "Point2",
|
|
4584
|
-
* color: "#00FF00"
|
|
4585
|
-
* }, {
|
|
4586
|
-
* x: 1,
|
|
4587
|
-
* low: 5,
|
|
4588
|
-
* high: 3,
|
|
4589
|
-
* name: "Point1",
|
|
4590
|
-
* color: "#FF00FF"
|
|
4591
|
-
* }]
|
|
4592
|
-
* ```
|
|
4593
|
-
*
|
|
4594
|
-
* @sample {highcharts} highcharts/series/data-array-of-arrays/
|
|
4595
|
-
* Arrays of numeric x and y
|
|
4596
|
-
* @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
|
|
4597
|
-
* Arrays of datetime x and y
|
|
4598
|
-
* @sample {highcharts} highcharts/series/data-array-of-name-value/
|
|
4599
|
-
* Arrays of point.name and y
|
|
4600
|
-
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
4601
|
-
* Config objects
|
|
5166
|
+
* Default Export
|
|
4602
5167
|
*
|
|
4603
|
-
*
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
* @excluding marker
|
|
4607
|
-
* @product highcharts highstock
|
|
4608
|
-
* @apioption series.columnrange.data
|
|
4609
|
-
*/
|
|
4610
|
-
/**
|
|
4611
|
-
* @extends series.columnrange.dataLabels
|
|
4612
|
-
* @product highcharts highstock
|
|
4613
|
-
* @apioption series.columnrange.data.dataLabels
|
|
4614
|
-
*/
|
|
4615
|
-
/**
|
|
4616
|
-
* @excluding halo, lineWidth, lineWidthPlus, marker
|
|
4617
|
-
* @product highcharts highstock
|
|
4618
|
-
* @apioption series.columnrange.states.hover
|
|
4619
|
-
*/
|
|
4620
|
-
/**
|
|
4621
|
-
* @excluding halo, lineWidth, lineWidthPlus, marker
|
|
4622
|
-
* @product highcharts highstock
|
|
4623
|
-
* @apioption series.columnrange.states.select
|
|
4624
|
-
*/
|
|
4625
|
-
''; // Adds doclets above into transpiled
|
|
5168
|
+
* */
|
|
5169
|
+
/** @internal */
|
|
5170
|
+
/* harmony default export */ const ColumnRange_ColumnRangeSeries = ((/* unused pure expression or super */ null && (ColumnRangeSeries)));
|
|
4626
5171
|
|
|
4627
5172
|
;// ./code/es-modules/Series/ColumnPyramid/ColumnPyramidSeriesDefaults.js
|
|
4628
5173
|
/* *
|
|
@@ -4779,7 +5324,7 @@ const { column: ColumnPyramidSeries_ColumnSeries } = (external_highcharts_src_js
|
|
|
4779
5324
|
/**
|
|
4780
5325
|
* The ColumnPyramidSeries class
|
|
4781
5326
|
*
|
|
4782
|
-
* @
|
|
5327
|
+
* @internal
|
|
4783
5328
|
* @class
|
|
4784
5329
|
* @name Highcharts.seriesTypes.columnpyramid
|
|
4785
5330
|
*
|
|
@@ -4793,7 +5338,7 @@ class ColumnPyramidSeries extends ColumnPyramidSeries_ColumnSeries {
|
|
|
4793
5338
|
* */
|
|
4794
5339
|
/**
|
|
4795
5340
|
* Overrides the column translate method
|
|
4796
|
-
* @
|
|
5341
|
+
* @internal
|
|
4797
5342
|
*/
|
|
4798
5343
|
translate() {
|
|
4799
5344
|
const series = this, chart = series.chart, options = series.options, dense = series.dense =
|
|
@@ -4934,6 +5479,7 @@ external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('
|
|
|
4934
5479
|
* Default Export
|
|
4935
5480
|
*
|
|
4936
5481
|
* */
|
|
5482
|
+
/** @internal */
|
|
4937
5483
|
/* harmony default export */ const ColumnPyramid_ColumnPyramidSeries = ((/* unused pure expression or super */ null && (ColumnPyramidSeries)));
|
|
4938
5484
|
|
|
4939
5485
|
;// ./code/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js
|
|
@@ -4967,7 +5513,7 @@ external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('
|
|
|
4967
5513
|
* Error bars with data labels
|
|
4968
5514
|
*
|
|
4969
5515
|
* @extends plotOptions.boxplot
|
|
4970
|
-
* @excluding boostBlending, boostThreshold
|
|
5516
|
+
* @excluding borderRadius, boostBlending, boostThreshold
|
|
4971
5517
|
* @product highcharts
|
|
4972
5518
|
* @requires highcharts-more
|
|
4973
5519
|
* @optionparent plotOptions.errorbar
|
|
@@ -4986,6 +5532,20 @@ const ErrorBarSeriesDefaults = {
|
|
|
4986
5532
|
* @product highcharts
|
|
4987
5533
|
*/
|
|
4988
5534
|
color: 'var(--highcharts-neutral-color-100)',
|
|
5535
|
+
dataLabels: {
|
|
5536
|
+
/**
|
|
5537
|
+
* Callback JavaScript function to format the data label. Note that if
|
|
5538
|
+
* a `format` is defined, the format takes precedence and the formatter
|
|
5539
|
+
* is ignored.
|
|
5540
|
+
*
|
|
5541
|
+
* The default formatter renders the value of the point key the label
|
|
5542
|
+
* is [aligned to](#plotOptions.errorbar.dataLabels.alignToKey). Define
|
|
5543
|
+
* a [format](#plotOptions.errorbar.dataLabels.format) or `formatter`
|
|
5544
|
+
* to display other values.
|
|
5545
|
+
*
|
|
5546
|
+
* @type {Highcharts.DataLabelsFormatterCallbackFunction}
|
|
5547
|
+
*/
|
|
5548
|
+
},
|
|
4989
5549
|
grouping: false,
|
|
4990
5550
|
/**
|
|
4991
5551
|
* The parent series of the error bar. The default value links it to
|
|
@@ -5106,6 +5666,7 @@ const ErrorBarSeriesDefaults = {
|
|
|
5106
5666
|
|
|
5107
5667
|
const { arearange: ErrorBarSeries_AreaRangeSeries } = (external_highcharts_src_js_default_SeriesRegistry_default()).seriesTypes;
|
|
5108
5668
|
|
|
5669
|
+
|
|
5109
5670
|
/* *
|
|
5110
5671
|
*
|
|
5111
5672
|
* Class
|
|
@@ -5114,7 +5675,7 @@ const { arearange: ErrorBarSeries_AreaRangeSeries } = (external_highcharts_src_j
|
|
|
5114
5675
|
/**
|
|
5115
5676
|
* Errorbar series type
|
|
5116
5677
|
*
|
|
5117
|
-
* @
|
|
5678
|
+
* @internal
|
|
5118
5679
|
* @class
|
|
5119
5680
|
* @name Highcharts.seriesTypes.errorbar
|
|
5120
5681
|
*
|
|
@@ -5134,14 +5695,9 @@ class ErrorBarSeries extends BoxPlot_BoxPlotSeries {
|
|
|
5134
5695
|
external_highcharts_src_js_default_Series_types_column_default().prototype.getColumnMetrics.call(series));
|
|
5135
5696
|
}
|
|
5136
5697
|
drawDataLabels() {
|
|
5137
|
-
|
|
5698
|
+
// Error bars draw upper/lower labels via the area range option adapter.
|
|
5138
5699
|
if (ErrorBarSeries_AreaRangeSeries) {
|
|
5139
|
-
ErrorBarSeries_AreaRangeSeries.prototype.drawDataLabels.call(
|
|
5140
|
-
// Arearange drawDataLabels does not reset point.y to high,
|
|
5141
|
-
// but to low after drawing (#4133)
|
|
5142
|
-
for (const point of series.points) {
|
|
5143
|
-
point.y = point[valKey];
|
|
5144
|
-
}
|
|
5700
|
+
ErrorBarSeries_AreaRangeSeries.prototype.drawDataLabels.call(this);
|
|
5145
5701
|
}
|
|
5146
5702
|
}
|
|
5147
5703
|
toYData(point) {
|
|
@@ -5154,7 +5710,7 @@ class ErrorBarSeries extends BoxPlot_BoxPlotSeries {
|
|
|
5154
5710
|
* Static Properties
|
|
5155
5711
|
*
|
|
5156
5712
|
* */
|
|
5157
|
-
ErrorBarSeries.defaultOptions = (0,external_highcharts_src_js_default_namespaceObject.merge)(BoxPlot_BoxPlotSeries.defaultOptions, ErrorBar_ErrorBarSeriesDefaults);
|
|
5713
|
+
ErrorBarSeries.defaultOptions = (0,external_highcharts_src_js_default_namespaceObject.merge)(BoxPlot_BoxPlotSeries.defaultOptions, ErrorBar_ErrorBarSeriesDefaults, { dataLabels: { formatter: Series_RangeDataLabel.formatter } });
|
|
5158
5714
|
(0,external_highcharts_src_js_default_namespaceObject.addEvent)(ErrorBarSeries, 'afterTranslate', function () {
|
|
5159
5715
|
for (const point of this.points) {
|
|
5160
5716
|
point.plotLow = point.plotY;
|
|
@@ -5171,6 +5727,7 @@ external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('
|
|
|
5171
5727
|
* Default Export
|
|
5172
5728
|
*
|
|
5173
5729
|
* */
|
|
5730
|
+
/** @internal */
|
|
5174
5731
|
/* harmony default export */ const ErrorBar_ErrorBarSeries = ((/* unused pure expression or super */ null && (ErrorBarSeries)));
|
|
5175
5732
|
|
|
5176
5733
|
;// ./code/es-modules/Series/Gauge/GaugePoint.js
|
|
@@ -5852,7 +6409,7 @@ const { composed: DragNodesComposition_composed } = (external_highcharts_src_js_
|
|
|
5852
6409
|
*
|
|
5853
6410
|
* */
|
|
5854
6411
|
/**
|
|
5855
|
-
* @
|
|
6412
|
+
* @internal
|
|
5856
6413
|
*/
|
|
5857
6414
|
function DragNodesComposition_compose(ChartClass) {
|
|
5858
6415
|
if ((0,external_highcharts_src_js_default_namespaceObject.pushUnique)(DragNodesComposition_composed, 'DragNodes')) {
|
|
@@ -5861,7 +6418,7 @@ function DragNodesComposition_compose(ChartClass) {
|
|
|
5861
6418
|
}
|
|
5862
6419
|
/**
|
|
5863
6420
|
* Draggable mode:
|
|
5864
|
-
* @
|
|
6421
|
+
* @internal
|
|
5865
6422
|
*/
|
|
5866
6423
|
function onChartLoad() {
|
|
5867
6424
|
const chart = this;
|
|
@@ -5900,7 +6457,7 @@ function onChartLoad() {
|
|
|
5900
6457
|
/**
|
|
5901
6458
|
* Mouse down action, initializing drag&drop mode.
|
|
5902
6459
|
*
|
|
5903
|
-
* @
|
|
6460
|
+
* @internal
|
|
5904
6461
|
* @param {Highcharts.Point} point
|
|
5905
6462
|
* The point that event occurred.
|
|
5906
6463
|
* @param {Highcharts.PointerEventObject} event
|
|
@@ -5923,7 +6480,7 @@ function onMouseDown(point, event) {
|
|
|
5923
6480
|
/**
|
|
5924
6481
|
* Mouse move action during drag&drop.
|
|
5925
6482
|
*
|
|
5926
|
-
* @
|
|
6483
|
+
* @internal
|
|
5927
6484
|
*
|
|
5928
6485
|
* @param {Highcharts.Point} point
|
|
5929
6486
|
* The point that event occurred.
|
|
@@ -5953,7 +6510,7 @@ function onMouseMove(point, event) {
|
|
|
5953
6510
|
/**
|
|
5954
6511
|
* Mouse up action, finalizing drag&drop.
|
|
5955
6512
|
*
|
|
5956
|
-
* @
|
|
6513
|
+
* @internal
|
|
5957
6514
|
* @param {Highcharts.Point} point
|
|
5958
6515
|
* The point that event occurred.
|
|
5959
6516
|
*/
|
|
@@ -5976,14 +6533,15 @@ function onMouseUp(point) {
|
|
|
5976
6533
|
/**
|
|
5977
6534
|
* Redraw halo on mousemove during the drag&drop action.
|
|
5978
6535
|
*
|
|
5979
|
-
* @
|
|
6536
|
+
* @internal
|
|
5980
6537
|
* @param {Highcharts.Point} point
|
|
5981
6538
|
* The point that should show halo.
|
|
5982
6539
|
*/
|
|
5983
6540
|
function redrawHalo(point) {
|
|
5984
6541
|
if (point && this.halo) {
|
|
5985
6542
|
this.halo.attr({
|
|
5986
|
-
d: point.haloPath(this.options.states
|
|
6543
|
+
d: point.haloPath((0,external_highcharts_src_js_default_namespaceObject.isObject)(this.options.states?.hover?.halo) &&
|
|
6544
|
+
this.options.states?.hover?.halo.size || 0)
|
|
5987
6545
|
});
|
|
5988
6546
|
}
|
|
5989
6547
|
}
|
|
@@ -5992,6 +6550,7 @@ function redrawHalo(point) {
|
|
|
5992
6550
|
* Default Export
|
|
5993
6551
|
*
|
|
5994
6552
|
* */
|
|
6553
|
+
/** @internal */
|
|
5995
6554
|
const DragNodesComposition = {
|
|
5996
6555
|
compose: DragNodesComposition_compose,
|
|
5997
6556
|
onMouseDown,
|
|
@@ -5999,6 +6558,7 @@ const DragNodesComposition = {
|
|
|
5999
6558
|
onMouseUp,
|
|
6000
6559
|
redrawHalo
|
|
6001
6560
|
};
|
|
6561
|
+
/** @internal */
|
|
6002
6562
|
/* harmony default export */ const Series_DragNodesComposition = (DragNodesComposition);
|
|
6003
6563
|
|
|
6004
6564
|
;// ./code/es-modules/Series/GraphLayoutComposition.js
|
|
@@ -6017,7 +6577,6 @@ const DragNodesComposition = {
|
|
|
6017
6577
|
* */
|
|
6018
6578
|
|
|
6019
6579
|
|
|
6020
|
-
const { setAnimation } = (external_highcharts_src_js_default_default());
|
|
6021
6580
|
|
|
6022
6581
|
const { composed: GraphLayoutComposition_composed } = (external_highcharts_src_js_default_default());
|
|
6023
6582
|
|
|
@@ -6105,7 +6664,7 @@ function onChartRender() {
|
|
|
6105
6664
|
};
|
|
6106
6665
|
// Don't animate layout when series is dragged
|
|
6107
6666
|
if (this.graphLayoutsLookup && !this.pointer?.hasDragged) {
|
|
6108
|
-
setAnimation(false, this);
|
|
6667
|
+
(0,external_highcharts_src_js_default_namespaceObject.setAnimation)(false, this);
|
|
6109
6668
|
// Start simulation
|
|
6110
6669
|
this.graphLayoutsLookup.forEach((layout) => layout.start());
|
|
6111
6670
|
// Just one sync step, to run different layouts similar to
|
|
@@ -6118,6 +6677,7 @@ function onChartRender() {
|
|
|
6118
6677
|
this.series.forEach((series) => {
|
|
6119
6678
|
if (series && series.layout) {
|
|
6120
6679
|
series.render();
|
|
6680
|
+
(0,external_highcharts_src_js_default_namespaceObject.fireEvent)(series, 'afterSimulation');
|
|
6121
6681
|
}
|
|
6122
6682
|
});
|
|
6123
6683
|
}
|
|
@@ -8243,7 +8803,6 @@ Series_GraphLayoutComposition.layouts.packedbubble = PackedBubbleLayout;
|
|
|
8243
8803
|
|
|
8244
8804
|
|
|
8245
8805
|
|
|
8246
|
-
const { animObject } = (external_highcharts_src_js_default_default());
|
|
8247
8806
|
/**
|
|
8248
8807
|
* Create a setTimeout for the first drawDataLabels()
|
|
8249
8808
|
* based on the dataLabels.animation.defer value
|
|
@@ -8263,7 +8822,7 @@ function initDataLabelsDefer() {
|
|
|
8263
8822
|
else {
|
|
8264
8823
|
(0,external_highcharts_src_js_default_namespaceObject.syncTimeout)(() => {
|
|
8265
8824
|
this.deferDataLabels = false;
|
|
8266
|
-
}, dlOptions ? animObject(dlOptions.animation).defer : 0);
|
|
8825
|
+
}, dlOptions ? (0,external_highcharts_src_js_default_namespaceObject.animObject)(dlOptions.animation).defer : 0);
|
|
8267
8826
|
}
|
|
8268
8827
|
}
|
|
8269
8828
|
/**
|
|
@@ -9424,206 +9983,7 @@ external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('
|
|
|
9424
9983
|
;// ./code/es-modules/Series/Polygon/PolygonSeriesDefaults.js
|
|
9425
9984
|
/* *
|
|
9426
9985
|
*
|
|
9427
|
-
* (c) 2010-2026 Highsoft AS
|
|
9428
|
-
* Author: Torstein Hønsi
|
|
9429
|
-
*
|
|
9430
|
-
* Integration of this software requires a license.
|
|
9431
|
-
* - For commercial use, see www.highcharts.com/license
|
|
9432
|
-
* - For non-commercial, see www.highcharts.com/license-eula
|
|
9433
|
-
*
|
|
9434
|
-
*
|
|
9435
|
-
* */
|
|
9436
|
-
|
|
9437
|
-
/* *
|
|
9438
|
-
*
|
|
9439
|
-
* API Options
|
|
9440
|
-
*
|
|
9441
|
-
* */
|
|
9442
|
-
/**
|
|
9443
|
-
* A polygon series can be used to draw any freeform shape in the cartesian
|
|
9444
|
-
* coordinate system. A fill is applied with the `color` option, and
|
|
9445
|
-
* stroke is applied through `lineWidth` and `lineColor` options.
|
|
9446
|
-
*
|
|
9447
|
-
* @sample {highcharts} highcharts/demo/polygon/
|
|
9448
|
-
* Polygon
|
|
9449
|
-
* @sample {highstock} highcharts/demo/polygon/
|
|
9450
|
-
* Polygon
|
|
9451
|
-
*
|
|
9452
|
-
* @extends plotOptions.scatter
|
|
9453
|
-
* @since 4.1.0
|
|
9454
|
-
* @excluding jitter, softThreshold, threshold, cluster, boostThreshold,
|
|
9455
|
-
* boostBlending
|
|
9456
|
-
* @product highcharts highstock
|
|
9457
|
-
* @requires highcharts-more
|
|
9458
|
-
* @optionparent plotOptions.polygon
|
|
9459
|
-
*/
|
|
9460
|
-
const PolygonSeriesDefaults = {
|
|
9461
|
-
marker: {
|
|
9462
|
-
enabled: false,
|
|
9463
|
-
states: {
|
|
9464
|
-
hover: {
|
|
9465
|
-
enabled: false
|
|
9466
|
-
}
|
|
9467
|
-
}
|
|
9468
|
-
},
|
|
9469
|
-
stickyTracking: false,
|
|
9470
|
-
tooltip: {
|
|
9471
|
-
followPointer: true,
|
|
9472
|
-
pointFormat: ''
|
|
9473
|
-
},
|
|
9474
|
-
trackByArea: true,
|
|
9475
|
-
legendSymbol: 'rectangle'
|
|
9476
|
-
};
|
|
9477
|
-
/**
|
|
9478
|
-
* A `polygon` series. If the [type](#series.polygon.type) option is
|
|
9479
|
-
* not specified, it is inherited from [chart.type](#chart.type).
|
|
9480
|
-
*
|
|
9481
|
-
* @extends series,plotOptions.polygon
|
|
9482
|
-
* @excluding dataParser, dataURL, stack, boostThreshold, boostBlending
|
|
9483
|
-
* @product highcharts highstock
|
|
9484
|
-
* @requires highcharts-more
|
|
9485
|
-
* @apioption series.polygon
|
|
9486
|
-
*/
|
|
9487
|
-
/**
|
|
9488
|
-
* An array of data points for the series. For the `polygon` series
|
|
9489
|
-
* type, points can be given in the following ways:
|
|
9490
|
-
*
|
|
9491
|
-
* 1. An array of numerical values. In this case, the numerical values will be
|
|
9492
|
-
* interpreted as `y` options. The `x` values will be automatically
|
|
9493
|
-
* calculated, either starting at 0 and incremented by 1, or from
|
|
9494
|
-
* `pointStart` and `pointInterval` given in the series options. If the axis
|
|
9495
|
-
* has categories, these will be used. Example:
|
|
9496
|
-
* ```js
|
|
9497
|
-
* data: [0, 5, 3, 5]
|
|
9498
|
-
* ```
|
|
9499
|
-
*
|
|
9500
|
-
* 2. An array of arrays with 2 values. In this case, the values correspond to
|
|
9501
|
-
* `x,y`. If the first value is a string, it is applied as the name of the
|
|
9502
|
-
* point, and the `x` value is inferred.
|
|
9503
|
-
* ```js
|
|
9504
|
-
* data: [
|
|
9505
|
-
* [0, 10],
|
|
9506
|
-
* [1, 3],
|
|
9507
|
-
* [2, 1]
|
|
9508
|
-
* ]
|
|
9509
|
-
* ```
|
|
9510
|
-
*
|
|
9511
|
-
* 3. An array of objects with named values. The following snippet shows only a
|
|
9512
|
-
* few settings, see the complete options set below. If the total number of
|
|
9513
|
-
* data points exceeds the series'
|
|
9514
|
-
* [turboThreshold](#series.polygon.turboThreshold), this option is not
|
|
9515
|
-
* available.
|
|
9516
|
-
* ```js
|
|
9517
|
-
* data: [{
|
|
9518
|
-
* x: 1,
|
|
9519
|
-
* y: 1,
|
|
9520
|
-
* name: "Point2",
|
|
9521
|
-
* color: "#00FF00"
|
|
9522
|
-
* }, {
|
|
9523
|
-
* x: 1,
|
|
9524
|
-
* y: 8,
|
|
9525
|
-
* name: "Point1",
|
|
9526
|
-
* color: "#FF00FF"
|
|
9527
|
-
* }]
|
|
9528
|
-
* ```
|
|
9529
|
-
*
|
|
9530
|
-
* @sample {highcharts} highcharts/chart/reflow-true/
|
|
9531
|
-
* Numerical values
|
|
9532
|
-
* @sample {highcharts} highcharts/series/data-array-of-arrays/
|
|
9533
|
-
* Arrays of numeric x and y
|
|
9534
|
-
* @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
|
|
9535
|
-
* Arrays of datetime x and y
|
|
9536
|
-
* @sample {highcharts} highcharts/series/data-array-of-name-value/
|
|
9537
|
-
* Arrays of point.name and y
|
|
9538
|
-
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
9539
|
-
* Config objects
|
|
9540
|
-
*
|
|
9541
|
-
* @basic
|
|
9542
|
-
* @type {Array<number|Array<(number|string),(number|null)>|null|*>}
|
|
9543
|
-
* @extends series.line.data
|
|
9544
|
-
* @product highcharts highstock
|
|
9545
|
-
* @apioption series.polygon.data
|
|
9546
|
-
*/
|
|
9547
|
-
''; // Keeps doclets above separate
|
|
9548
|
-
/* *
|
|
9549
|
-
*
|
|
9550
|
-
* Default Export
|
|
9551
|
-
*
|
|
9552
|
-
* */
|
|
9553
|
-
/* harmony default export */ const Polygon_PolygonSeriesDefaults = (PolygonSeriesDefaults);
|
|
9554
|
-
|
|
9555
|
-
;// ./code/es-modules/Series/Polygon/PolygonSeries.js
|
|
9556
|
-
/* *
|
|
9557
|
-
*
|
|
9558
|
-
* (c) 2010-2026 Highsoft AS
|
|
9559
|
-
* Author: Torstein Hønsi
|
|
9560
|
-
*
|
|
9561
|
-
* Integration of this software requires a license.
|
|
9562
|
-
* - For commercial use, see www.highcharts.com/license
|
|
9563
|
-
* - For non-commercial, see www.highcharts.com/license-eula
|
|
9564
|
-
*
|
|
9565
|
-
*
|
|
9566
|
-
* */
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
const { noop: PolygonSeries_noop } = (external_highcharts_src_js_default_default());
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
const { area: PolygonSeries_AreaSeries, line: LineSeries, scatter: PolygonSeries_ScatterSeries } = (external_highcharts_src_js_default_SeriesRegistry_default()).seriesTypes;
|
|
9573
|
-
|
|
9574
|
-
/* *
|
|
9575
|
-
*
|
|
9576
|
-
* Class
|
|
9577
|
-
*
|
|
9578
|
-
* */
|
|
9579
|
-
class PolygonSeries extends PolygonSeries_ScatterSeries {
|
|
9580
|
-
/* *
|
|
9581
|
-
*
|
|
9582
|
-
* Functions
|
|
9583
|
-
*
|
|
9584
|
-
* */
|
|
9585
|
-
getGraphPath() {
|
|
9586
|
-
const graphPath = LineSeries.prototype.getGraphPath.call(this);
|
|
9587
|
-
let i = graphPath.length + 1;
|
|
9588
|
-
// Close all segments
|
|
9589
|
-
while (i--) {
|
|
9590
|
-
if ((i === graphPath.length || graphPath[i][0] === 'M') && i > 0) {
|
|
9591
|
-
graphPath.splice(i, 0, ['Z']);
|
|
9592
|
-
}
|
|
9593
|
-
}
|
|
9594
|
-
this.areaPath = graphPath;
|
|
9595
|
-
return graphPath;
|
|
9596
|
-
}
|
|
9597
|
-
drawGraph() {
|
|
9598
|
-
// Hack into the fill logic in area.drawGraph
|
|
9599
|
-
this.options.fillColor = this.color;
|
|
9600
|
-
PolygonSeries_AreaSeries.prototype.drawGraph.call(this);
|
|
9601
|
-
}
|
|
9602
|
-
}
|
|
9603
|
-
/* *
|
|
9604
|
-
*
|
|
9605
|
-
* Static Properties
|
|
9606
|
-
*
|
|
9607
|
-
* */
|
|
9608
|
-
PolygonSeries.defaultOptions = (0,external_highcharts_src_js_default_namespaceObject.merge)(PolygonSeries_ScatterSeries.defaultOptions, Polygon_PolygonSeriesDefaults);
|
|
9609
|
-
(0,external_highcharts_src_js_default_namespaceObject.extend)(PolygonSeries.prototype, {
|
|
9610
|
-
type: 'polygon',
|
|
9611
|
-
drawTracker: LineSeries.prototype.drawTracker,
|
|
9612
|
-
setStackedPoints: PolygonSeries_noop // No stacking points on polygons (#5310)
|
|
9613
|
-
});
|
|
9614
|
-
external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('polygon', PolygonSeries);
|
|
9615
|
-
/* *
|
|
9616
|
-
*
|
|
9617
|
-
* Default Export
|
|
9618
|
-
*
|
|
9619
|
-
* */
|
|
9620
|
-
/* harmony default export */ const Polygon_PolygonSeries = ((/* unused pure expression or super */ null && (PolygonSeries)));
|
|
9621
|
-
|
|
9622
|
-
;// ./code/es-modules/Extensions/BorderRadius.js
|
|
9623
|
-
/* *
|
|
9624
|
-
*
|
|
9625
|
-
* Highcharts Border Radius module
|
|
9626
|
-
*
|
|
9986
|
+
* (c) 2010-2026 Highsoft AS
|
|
9627
9987
|
* Author: Torstein Hønsi
|
|
9628
9988
|
*
|
|
9629
9989
|
* Integration of this software requires a license.
|
|
@@ -9633,380 +9993,210 @@ external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('
|
|
|
9633
9993
|
*
|
|
9634
9994
|
* */
|
|
9635
9995
|
|
|
9636
|
-
|
|
9637
|
-
const { defaultOptions: BorderRadius_defaultOptions } = (external_highcharts_src_js_default_default());
|
|
9638
|
-
|
|
9639
|
-
const { noop: BorderRadius_noop } = (external_highcharts_src_js_default_default());
|
|
9640
|
-
|
|
9641
|
-
/* *
|
|
9642
|
-
*
|
|
9643
|
-
* Constants
|
|
9644
|
-
*
|
|
9645
|
-
* */
|
|
9646
|
-
const defaultBorderRadiusOptions = {
|
|
9647
|
-
radius: 0,
|
|
9648
|
-
scope: 'stack',
|
|
9649
|
-
where: void 0
|
|
9650
|
-
};
|
|
9651
9996
|
/* *
|
|
9652
9997
|
*
|
|
9653
|
-
*
|
|
9998
|
+
* API Options
|
|
9654
9999
|
*
|
|
9655
10000
|
* */
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
10001
|
+
/**
|
|
10002
|
+
* A polygon series can be used to draw any freeform shape in the cartesian
|
|
10003
|
+
* coordinate system. A fill is applied with the `color` option, and
|
|
10004
|
+
* stroke is applied through `lineWidth` and `lineColor` options.
|
|
9659
10005
|
*
|
|
9660
|
-
*
|
|
10006
|
+
* @sample {highcharts} highcharts/demo/polygon/
|
|
10007
|
+
* Polygon
|
|
10008
|
+
* @sample {highstock} highcharts/demo/polygon/
|
|
10009
|
+
* Polygon
|
|
9661
10010
|
*
|
|
9662
|
-
*
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
}
|
|
9670
|
-
let line, arc, fromLineToArc;
|
|
9671
|
-
// From straight line to arc
|
|
9672
|
-
if ((a[0] === 'M' || a[0] === 'L') && b[0] === 'A') {
|
|
9673
|
-
line = a;
|
|
9674
|
-
arc = b;
|
|
9675
|
-
fromLineToArc = true;
|
|
9676
|
-
// From arc to straight line
|
|
9677
|
-
}
|
|
9678
|
-
else if (a[0] === 'A' && (b[0] === 'M' || b[0] === 'L')) {
|
|
9679
|
-
line = b;
|
|
9680
|
-
arc = a;
|
|
9681
|
-
}
|
|
9682
|
-
if (line && arc && arc.params) {
|
|
9683
|
-
const bigR = arc[1],
|
|
9684
|
-
// In our use cases, outer pie slice arcs are clockwise and inner
|
|
9685
|
-
// arcs (donut/sunburst etc) are anti-clockwise
|
|
9686
|
-
clockwise = arc[5], params = arc.params, { start, end, cx, cy } = params;
|
|
9687
|
-
// Some geometric constants
|
|
9688
|
-
const relativeR = clockwise ? (bigR - r) : (bigR + r),
|
|
9689
|
-
// The angle, on the big arc, that the border radius arc takes up
|
|
9690
|
-
angleOfBorderRadius = relativeR ? Math.asin(r / relativeR) : 0, angleOffset = clockwise ?
|
|
9691
|
-
angleOfBorderRadius :
|
|
9692
|
-
-angleOfBorderRadius,
|
|
9693
|
-
// The distance along the radius of the big arc to the starting
|
|
9694
|
-
// point of the small border radius arc
|
|
9695
|
-
distanceBigCenterToStartArc = (Math.cos(angleOfBorderRadius) *
|
|
9696
|
-
relativeR);
|
|
9697
|
-
// From line to arc
|
|
9698
|
-
if (fromLineToArc) {
|
|
9699
|
-
// Update the cache
|
|
9700
|
-
params.start = start + angleOffset;
|
|
9701
|
-
// First move to the start position at the radial line. We want to
|
|
9702
|
-
// start one borderRadius closer to the center.
|
|
9703
|
-
line[1] = cx + distanceBigCenterToStartArc * Math.cos(start);
|
|
9704
|
-
line[2] = cy + distanceBigCenterToStartArc * Math.sin(start);
|
|
9705
|
-
// Now draw an arc towards the point where the small circle touches
|
|
9706
|
-
// the great circle.
|
|
9707
|
-
path.splice(i + 1, 0, [
|
|
9708
|
-
'A',
|
|
9709
|
-
r,
|
|
9710
|
-
r,
|
|
9711
|
-
0, // Slanting,
|
|
9712
|
-
0, // Long arc
|
|
9713
|
-
1, // Clockwise
|
|
9714
|
-
cx + bigR * Math.cos(params.start),
|
|
9715
|
-
cy + bigR * Math.sin(params.start)
|
|
9716
|
-
]);
|
|
9717
|
-
// From arc to line
|
|
9718
|
-
}
|
|
9719
|
-
else {
|
|
9720
|
-
// Update the cache
|
|
9721
|
-
params.end = end - angleOffset;
|
|
9722
|
-
// End the big arc a bit earlier
|
|
9723
|
-
arc[6] = cx + bigR * Math.cos(params.end);
|
|
9724
|
-
arc[7] = cy + bigR * Math.sin(params.end);
|
|
9725
|
-
// Draw a small arc towards a point on the end angle, but one
|
|
9726
|
-
// borderRadius closer to the center relative to the perimeter.
|
|
9727
|
-
path.splice(i + 1, 0, [
|
|
9728
|
-
'A',
|
|
9729
|
-
r,
|
|
9730
|
-
r,
|
|
9731
|
-
0,
|
|
9732
|
-
0,
|
|
9733
|
-
1,
|
|
9734
|
-
cx + distanceBigCenterToStartArc * Math.cos(end),
|
|
9735
|
-
cy + distanceBigCenterToStartArc * Math.sin(end)
|
|
9736
|
-
]);
|
|
9737
|
-
}
|
|
9738
|
-
// Long or short arc must be reconsidered because we have modified the
|
|
9739
|
-
// start and end points
|
|
9740
|
-
arc[4] = Math.abs(params.end - params.start) < Math.PI ? 0 : 1;
|
|
9741
|
-
}
|
|
9742
|
-
}
|
|
9743
|
-
/**
|
|
9744
|
-
* Extend arc with borderRadius.
|
|
9745
|
-
* @internal
|
|
10011
|
+
* @extends plotOptions.scatter
|
|
10012
|
+
* @since 4.1.0
|
|
10013
|
+
* @excluding jitter, softThreshold, threshold, cluster, boostThreshold,
|
|
10014
|
+
* boostBlending
|
|
10015
|
+
* @product highcharts highstock
|
|
10016
|
+
* @requires highcharts-more
|
|
10017
|
+
* @optionparent plotOptions.polygon
|
|
9746
10018
|
*/
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
/** @internal */
|
|
9774
|
-
function seriesOnAfterColumnTranslate() {
|
|
9775
|
-
if (this.options.borderRadius &&
|
|
9776
|
-
!(this.chart.is3d && this.chart.is3d())) {
|
|
9777
|
-
const { options, yAxis } = this, percent = options.stacking === 'percent', seriesDefault = BorderRadius_defaultOptions.plotOptions?.[this.type]
|
|
9778
|
-
?.borderRadius, borderRadius = optionsToObject(options.borderRadius, isObject(seriesDefault) ? seriesDefault : {}), reversed = yAxis.options.reversed;
|
|
9779
|
-
for (const point of this.points) {
|
|
9780
|
-
const { shapeArgs } = point;
|
|
9781
|
-
if (point.shapeType === 'roundedRect' && shapeArgs) {
|
|
9782
|
-
const { width = 0, height = 0, y = 0 } = shapeArgs;
|
|
9783
|
-
let brBoxY = y, brBoxHeight = height;
|
|
9784
|
-
// It would be nice to refactor StackItem.getStackBox/
|
|
9785
|
-
// setOffset so that we could get a reliable box out of
|
|
9786
|
-
// it. Currently it is close if we remove the label
|
|
9787
|
-
// offset, but we still need to run crispCol and also
|
|
9788
|
-
// flip it if inverted, so atm it is simpler to do it
|
|
9789
|
-
// like the below.
|
|
9790
|
-
if (borderRadius.scope === 'stack' &&
|
|
9791
|
-
point.stackTotal) {
|
|
9792
|
-
const stackEnd = yAxis.translate(percent ? 100 : point.stackTotal, false, true, false, true), stackThreshold = yAxis.translate(options.threshold || 0, false, true, false, true), box = this.crispCol(0, Math.min(stackEnd, stackThreshold), 0, Math.abs(stackEnd - stackThreshold));
|
|
9793
|
-
brBoxY = box.y;
|
|
9794
|
-
brBoxHeight = box.height;
|
|
9795
|
-
}
|
|
9796
|
-
const flip = (point.negative ? -1 : 1) *
|
|
9797
|
-
(reversed ? -1 : 1) === -1;
|
|
9798
|
-
// Handle the where option
|
|
9799
|
-
let where = borderRadius.where;
|
|
9800
|
-
// Waterfall, hanging columns should have rounding on
|
|
9801
|
-
// all sides
|
|
9802
|
-
if (!where &&
|
|
9803
|
-
this.is('waterfall') &&
|
|
9804
|
-
Math.abs((point.yBottom || 0) -
|
|
9805
|
-
(this.translatedThreshold || 0)) > this.borderWidth) {
|
|
9806
|
-
where = 'all';
|
|
9807
|
-
}
|
|
9808
|
-
if (!where) {
|
|
9809
|
-
where = 'end';
|
|
9810
|
-
}
|
|
9811
|
-
// Get the radius
|
|
9812
|
-
const r = Math.min(relativeLength(borderRadius.radius, width), width / 2,
|
|
9813
|
-
// Cap to the height, but not if where is `end`
|
|
9814
|
-
where === 'all' ? brBoxHeight / 2 : Infinity) || 0;
|
|
9815
|
-
// If the `where` option is 'end', cut off the
|
|
9816
|
-
// rectangles by making the border-radius box one r
|
|
9817
|
-
// greater, so that the imaginary radius falls outside
|
|
9818
|
-
// the rectangle.
|
|
9819
|
-
if (where === 'end') {
|
|
9820
|
-
if (flip) {
|
|
9821
|
-
brBoxY -= r;
|
|
9822
|
-
brBoxHeight += r;
|
|
9823
|
-
}
|
|
9824
|
-
else {
|
|
9825
|
-
brBoxHeight += r;
|
|
9826
|
-
}
|
|
9827
|
-
}
|
|
9828
|
-
extend(shapeArgs, { brBoxHeight, brBoxY, r });
|
|
10019
|
+
const PolygonSeriesDefaults = {
|
|
10020
|
+
/**
|
|
10021
|
+
* Fill opacity for the polygon. When you set an explicit `fillColor`,
|
|
10022
|
+
* the `fillOpacity` is not applied. Instead, you should define the
|
|
10023
|
+
* opacity in the `fillColor` with an rgba color definition.
|
|
10024
|
+
*
|
|
10025
|
+
* In styled mode, the fill opacity can be set with the
|
|
10026
|
+
* `.highcharts-area` class name.
|
|
10027
|
+
*
|
|
10028
|
+
* @see [color](#plotOptions.polygon.color)
|
|
10029
|
+
* @see [fillColor](#plotOptions.polygon.fillColor)
|
|
10030
|
+
*
|
|
10031
|
+
* @sample {highcharts} highcharts/demo/violin-plot/
|
|
10032
|
+
* Translucent violins
|
|
10033
|
+
*
|
|
10034
|
+
* @type {number}
|
|
10035
|
+
* @default 1
|
|
10036
|
+
* @since 13.0.1
|
|
10037
|
+
* @product highcharts highstock
|
|
10038
|
+
*/
|
|
10039
|
+
fillOpacity: 1,
|
|
10040
|
+
marker: {
|
|
10041
|
+
enabled: false,
|
|
10042
|
+
states: {
|
|
10043
|
+
hover: {
|
|
10044
|
+
enabled: false
|
|
9829
10045
|
}
|
|
9830
10046
|
}
|
|
9831
|
-
}
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
order: 9
|
|
9841
|
-
});
|
|
9842
|
-
addEvent(PieSeriesClass, 'afterTranslate', pieSeriesOnAfterTranslate);
|
|
9843
|
-
SVGElementClass.symbolCustomAttribs.push('borderRadius', 'brBoxHeight', 'brBoxY', 'brEnd', 'brStart');
|
|
9844
|
-
oldArc = symbols.arc;
|
|
9845
|
-
oldRoundedRect = symbols.roundedRect;
|
|
9846
|
-
symbols.arc = arc;
|
|
9847
|
-
symbols.roundedRect = roundedRect;
|
|
9848
|
-
}
|
|
9849
|
-
}
|
|
9850
|
-
/** @internal */
|
|
9851
|
-
function optionsToObject(options, seriesBROptions) {
|
|
9852
|
-
if (!(0,external_highcharts_src_js_default_namespaceObject.isObject)(options)) {
|
|
9853
|
-
options = { radius: options || 0 };
|
|
9854
|
-
}
|
|
9855
|
-
return (0,external_highcharts_src_js_default_namespaceObject.merge)(defaultBorderRadiusOptions, seriesBROptions, options);
|
|
9856
|
-
}
|
|
9857
|
-
/** @internal */
|
|
9858
|
-
function pieSeriesOnAfterTranslate() {
|
|
9859
|
-
const borderRadius = optionsToObject(this.options.borderRadius);
|
|
9860
|
-
for (const point of this.points) {
|
|
9861
|
-
const shapeArgs = point.shapeArgs;
|
|
9862
|
-
if (shapeArgs) {
|
|
9863
|
-
shapeArgs.borderRadius = relativeLength(borderRadius.radius, (shapeArgs.r || 0) - ((shapeArgs.innerR) || 0));
|
|
9864
|
-
}
|
|
9865
|
-
}
|
|
9866
|
-
}
|
|
10047
|
+
},
|
|
10048
|
+
stickyTracking: false,
|
|
10049
|
+
tooltip: {
|
|
10050
|
+
followPointer: true,
|
|
10051
|
+
pointFormat: ''
|
|
10052
|
+
},
|
|
10053
|
+
trackByArea: true,
|
|
10054
|
+
legendSymbol: 'rectangle'
|
|
10055
|
+
};
|
|
9867
10056
|
/**
|
|
9868
|
-
*
|
|
9869
|
-
*
|
|
10057
|
+
* A `polygon` series. If the [type](#series.polygon.type) option is
|
|
10058
|
+
* not specified, it is inherited from [chart.type](#chart.type).
|
|
10059
|
+
*
|
|
10060
|
+
* @extends series,plotOptions.polygon
|
|
10061
|
+
* @excluding dataParser, dataURL, stack, boostThreshold, boostBlending
|
|
10062
|
+
* @product highcharts highstock
|
|
10063
|
+
* @requires highcharts-more
|
|
10064
|
+
* @apioption series.polygon
|
|
9870
10065
|
*/
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
10066
|
+
/**
|
|
10067
|
+
* An array of data points for the series. For the `polygon` series
|
|
10068
|
+
* type, points can be given in the following ways:
|
|
10069
|
+
*
|
|
10070
|
+
* 1. An array of numerical values. In this case, the numerical values will be
|
|
10071
|
+
* interpreted as `y` options. The `x` values will be automatically
|
|
10072
|
+
* calculated, either starting at 0 and incremented by 1, or from
|
|
10073
|
+
* `pointStart` and `pointInterval` given in the series options. If the axis
|
|
10074
|
+
* has categories, these will be used. Example:
|
|
10075
|
+
* ```js
|
|
10076
|
+
* data: [0, 5, 3, 5]
|
|
10077
|
+
* ```
|
|
10078
|
+
*
|
|
10079
|
+
* 2. An array of arrays with 2 values. In this case, the values correspond to
|
|
10080
|
+
* `x,y`. If the first value is a string, it is applied as the name of the
|
|
10081
|
+
* point, and the `x` value is inferred.
|
|
10082
|
+
* ```js
|
|
10083
|
+
* data: [
|
|
10084
|
+
* [0, 10],
|
|
10085
|
+
* [1, 3],
|
|
10086
|
+
* [2, 1]
|
|
10087
|
+
* ]
|
|
10088
|
+
* ```
|
|
10089
|
+
*
|
|
10090
|
+
* 3. An array of objects with named values. The following snippet shows only a
|
|
10091
|
+
* few settings, see the complete options set below. If the total number of
|
|
10092
|
+
* data points exceeds the series'
|
|
10093
|
+
* [turboThreshold](#series.polygon.turboThreshold), this option is not
|
|
10094
|
+
* available.
|
|
10095
|
+
* ```js
|
|
10096
|
+
* data: [{
|
|
10097
|
+
* x: 1,
|
|
10098
|
+
* y: 1,
|
|
10099
|
+
* name: "Point2",
|
|
10100
|
+
* color: "#00FF00"
|
|
10101
|
+
* }, {
|
|
10102
|
+
* x: 1,
|
|
10103
|
+
* y: 8,
|
|
10104
|
+
* name: "Point1",
|
|
10105
|
+
* color: "#FF00FF"
|
|
10106
|
+
* }]
|
|
10107
|
+
* ```
|
|
10108
|
+
*
|
|
10109
|
+
* @sample {highcharts} highcharts/chart/reflow-true/
|
|
10110
|
+
* Numerical values
|
|
10111
|
+
* @sample {highcharts} highcharts/series/data-array-of-arrays/
|
|
10112
|
+
* Arrays of numeric x and y
|
|
10113
|
+
* @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
|
|
10114
|
+
* Arrays of datetime x and y
|
|
10115
|
+
* @sample {highcharts} highcharts/series/data-array-of-name-value/
|
|
10116
|
+
* Arrays of point.name and y
|
|
10117
|
+
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
10118
|
+
* Config objects
|
|
10119
|
+
*
|
|
10120
|
+
* @basic
|
|
10121
|
+
* @type {Array<number|Array<(number|string),(number|null)>|null|*>}
|
|
10122
|
+
* @extends series.line.data
|
|
10123
|
+
* @product highcharts highstock
|
|
10124
|
+
* @apioption series.polygon.data
|
|
10125
|
+
*/
|
|
10126
|
+
''; // Keeps doclets above separate
|
|
10127
|
+
/* *
|
|
10128
|
+
*
|
|
10129
|
+
* Default Export
|
|
10130
|
+
*
|
|
10131
|
+
* */
|
|
10132
|
+
/* harmony default export */ const Polygon_PolygonSeriesDefaults = (PolygonSeriesDefaults);
|
|
9878
10133
|
|
|
9879
|
-
|
|
10134
|
+
;// ./code/es-modules/Series/Polygon/PolygonSeries.js
|
|
10135
|
+
/* *
|
|
10136
|
+
*
|
|
10137
|
+
* (c) 2010-2026 Highsoft AS
|
|
10138
|
+
* Author: Torstein Hønsi
|
|
10139
|
+
*
|
|
10140
|
+
* Integration of this software requires a license.
|
|
10141
|
+
* - For commercial use, see www.highcharts.com/license
|
|
10142
|
+
* - For non-commercial, see www.highcharts.com/license-eula
|
|
10143
|
+
*
|
|
10144
|
+
*
|
|
10145
|
+
* */
|
|
9880
10146
|
|
|
9881
|
-
/ a -------- b \
|
|
9882
|
-
/ \
|
|
9883
|
-
h c
|
|
9884
|
-
| |
|
|
9885
|
-
| |
|
|
9886
|
-
| |
|
|
9887
|
-
g d
|
|
9888
|
-
\ /
|
|
9889
|
-
\ f -------- e /
|
|
9890
10147
|
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
|
|
9914
|
-
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
const base = applyPythagoras(rBtm, rBtm - cutBtm);
|
|
9919
|
-
e[0] += base;
|
|
9920
|
-
f[0] -= base;
|
|
9921
|
-
d[1] = g[1] = y + height - rBtm + cutBtm;
|
|
10148
|
+
const { noop: PolygonSeries_noop } = (external_highcharts_src_js_default_default());
|
|
10149
|
+
|
|
10150
|
+
|
|
10151
|
+
const { area: PolygonSeries_AreaSeries, line: LineSeries, scatter: PolygonSeries_ScatterSeries } = (external_highcharts_src_js_default_SeriesRegistry_default()).seriesTypes;
|
|
10152
|
+
|
|
10153
|
+
/* *
|
|
10154
|
+
*
|
|
10155
|
+
* Class
|
|
10156
|
+
*
|
|
10157
|
+
* */
|
|
10158
|
+
class PolygonSeries extends PolygonSeries_ScatterSeries {
|
|
10159
|
+
/* *
|
|
10160
|
+
*
|
|
10161
|
+
* Functions
|
|
10162
|
+
*
|
|
10163
|
+
* */
|
|
10164
|
+
getGraphPath() {
|
|
10165
|
+
const graphPath = LineSeries.prototype.getGraphPath.call(this);
|
|
10166
|
+
let i = graphPath.length + 1;
|
|
10167
|
+
// Close all segments
|
|
10168
|
+
while (i--) {
|
|
10169
|
+
if ((i === graphPath.length || graphPath[i][0] === 'M') && i > 0) {
|
|
10170
|
+
graphPath.splice(i, 0, ['Z']);
|
|
10171
|
+
}
|
|
10172
|
+
}
|
|
10173
|
+
this.areaPath = graphPath;
|
|
10174
|
+
return graphPath;
|
|
9922
10175
|
}
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
b[0] = Math.min(c[0], b[0]);
|
|
9928
|
-
a[0] = Math.max(d[0], a[0]);
|
|
9929
|
-
g[0] = h[0] = x + rBtm - base;
|
|
9930
|
-
d[1] = g[1] = y;
|
|
10176
|
+
drawGraph() {
|
|
10177
|
+
// Borrow the fill logic from area.drawGraph, honoring `fillOpacity`
|
|
10178
|
+
// and an optional `fillColor`
|
|
10179
|
+
PolygonSeries_AreaSeries.prototype.drawGraph.call(this);
|
|
9931
10180
|
}
|
|
9932
|
-
// Preserve the box for data labels
|
|
9933
|
-
path.length = 0;
|
|
9934
|
-
path.push(['M', ...a],
|
|
9935
|
-
// Top side
|
|
9936
|
-
['L', ...b],
|
|
9937
|
-
// Top right corner
|
|
9938
|
-
['A', rTop, rTop, 0, 0, 1, ...c],
|
|
9939
|
-
// Right side
|
|
9940
|
-
['L', ...d],
|
|
9941
|
-
// Bottom right corner
|
|
9942
|
-
['A', rBtm, rBtm, 0, 0, 1, ...e],
|
|
9943
|
-
// Bottom side
|
|
9944
|
-
['L', ...f],
|
|
9945
|
-
// Bottom left corner
|
|
9946
|
-
['A', rBtm, rBtm, 0, 0, 1, ...g],
|
|
9947
|
-
// Left side
|
|
9948
|
-
['L', ...h],
|
|
9949
|
-
// Top left corner
|
|
9950
|
-
['A', rTop, rTop, 0, 0, 1, ...a], ['Z']);
|
|
9951
|
-
return path;
|
|
9952
10181
|
}
|
|
9953
10182
|
/* *
|
|
9954
10183
|
*
|
|
9955
|
-
*
|
|
10184
|
+
* Static Properties
|
|
9956
10185
|
*
|
|
9957
10186
|
* */
|
|
9958
|
-
|
|
9959
|
-
|
|
10187
|
+
PolygonSeries.defaultOptions = (0,external_highcharts_src_js_default_namespaceObject.merge)(PolygonSeries_ScatterSeries.defaultOptions, Polygon_PolygonSeriesDefaults);
|
|
10188
|
+
(0,external_highcharts_src_js_default_namespaceObject.extend)(PolygonSeries.prototype, {
|
|
10189
|
+
type: 'polygon',
|
|
10190
|
+
drawTracker: LineSeries.prototype.drawTracker,
|
|
10191
|
+
setStackedPoints: PolygonSeries_noop // No stacking points on polygons (#5310)
|
|
10192
|
+
});
|
|
10193
|
+
external_highcharts_src_js_default_SeriesRegistry_default().registerSeriesType('polygon', PolygonSeries);
|
|
10194
|
+
/* *
|
|
9960
10195
|
*
|
|
9961
|
-
*
|
|
9962
|
-
* Rounded columns
|
|
9963
|
-
* @sample highcharts/plotoptions/series-border-radius
|
|
9964
|
-
* Column and pie with rounded border
|
|
10196
|
+
* Default Export
|
|
9965
10197
|
*
|
|
9966
|
-
*
|
|
9967
|
-
*/
|
|
9968
|
-
* The border radius. A number signifies pixels. A percentage string, like for
|
|
9969
|
-
* example `50%`, signifies a relative size. For columns this is relative to the
|
|
9970
|
-
* column width, for pies it is relative to the radius and the inner radius.
|
|
9971
|
-
*
|
|
9972
|
-
* @sample {highcharts} highcharts/plotoptions/column-borderradius/
|
|
9973
|
-
* Rounded columns
|
|
9974
|
-
* @sample highcharts/plotoptions/series-border-radius
|
|
9975
|
-
* Column and pie with rounded border
|
|
9976
|
-
*
|
|
9977
|
-
* @name Highcharts.BorderRadiusOptionsObject#radius
|
|
9978
|
-
* @type {string|number}
|
|
9979
|
-
*/ /**
|
|
9980
|
-
* The scope of the rounding for column charts or plot bands. In a stacked
|
|
9981
|
-
* column chart, the value `point` means each single point will get rounded
|
|
9982
|
-
* corners. The value `stack` means the rounding will apply to the full
|
|
9983
|
-
* stack, so that only points close to the top or bottom will receive
|
|
9984
|
-
* rounding.
|
|
9985
|
-
*
|
|
9986
|
-
* Similarly, for plot bands, the `individual` value means each plot band
|
|
9987
|
-
* will get rounded corners.
|
|
9988
|
-
*
|
|
9989
|
-
* @sample {highcharts} highcharts/plotoptions/column-borderradius/
|
|
9990
|
-
* Rounded columns
|
|
9991
|
-
*
|
|
9992
|
-
* @name Highcharts.BorderRadiusOptionsObject#scope
|
|
9993
|
-
* @validvalue ["individual", "point", "stack"]
|
|
9994
|
-
* @type {string}
|
|
9995
|
-
*/ /**
|
|
9996
|
-
* For column charts, where in the point or stack to apply rounding. The `end`
|
|
9997
|
-
* value means only those corners at the point value will be rounded, leaving
|
|
9998
|
-
* the corners at the base or threshold unrounded. This is the most intuitive
|
|
9999
|
-
* behavior. The `all` value means also the base will be rounded.
|
|
10000
|
-
*
|
|
10001
|
-
* @sample {highcharts} highcharts/plotoptions/column-borderradius-where-all
|
|
10002
|
-
* Rounding on all corners
|
|
10003
|
-
*
|
|
10004
|
-
* @name Highcharts.BorderRadiusOptionsObject#where
|
|
10005
|
-
* @validvalue ["all", "end"]
|
|
10006
|
-
* @type {string}
|
|
10007
|
-
* @default end
|
|
10008
|
-
*/
|
|
10009
|
-
(''); // Keeps doclets above in JS file
|
|
10198
|
+
* */
|
|
10199
|
+
/* harmony default export */ const Polygon_PolygonSeries = ((/* unused pure expression or super */ null && (PolygonSeries)));
|
|
10010
10200
|
|
|
10011
10201
|
;// external ["./highcharts.src.js","default","Series"]
|
|
10012
10202
|
const external_highcharts_src_js_default_Series_namespaceObject = __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_c57973fa__["default"].Series;
|
|
@@ -10425,7 +10615,7 @@ var RadialAxis;
|
|
|
10425
10615
|
return r;
|
|
10426
10616
|
}
|
|
10427
10617
|
return radius;
|
|
10428
|
-
}, center = this.center, { endAngleRad, startAngleRad } = this, borderRadius =
|
|
10618
|
+
}, center = this.center, { endAngleRad, startAngleRad } = this, borderRadius = borderRadiusObject(options.borderRadius ??
|
|
10429
10619
|
this.pane.options.borderRadius), fullRadius = center[2] / 2, offset = Math.min(this.offset || 0, 0), left = this.left || 0, top = this.top || 0, percentRegex = /%$/, isCircular = this.isCircular, // X axis in a polar chart
|
|
10430
10620
|
trueBands = this.options.plotBands || [], index = trueBands.indexOf(options);
|
|
10431
10621
|
let start, end, angle, xOnPerimeter, open, path, outerRadius = (0,external_highcharts_src_js_default_namespaceObject.pick)(radiusToPixels(options.outerRadius), fullRadius), innerRadius = radiusToPixels(options.innerRadius), thickness = radiusToPixels(options.thickness), brStart = true, brEnd = true;
|
|
@@ -10561,17 +10751,12 @@ var RadialAxis;
|
|
|
10561
10751
|
// Concentric circles
|
|
10562
10752
|
}
|
|
10563
10753
|
else {
|
|
10564
|
-
// Pick the right values depending if it is grid line or crosshair
|
|
10565
|
-
|
|
10566
|
-
//
|
|
10567
|
-
//
|
|
10568
|
-
//
|
|
10569
|
-
|
|
10570
|
-
if (transValue) {
|
|
10571
|
-
if (transValue < 0 || transValue > height) {
|
|
10572
|
-
transValue = 0;
|
|
10573
|
-
}
|
|
10574
|
-
}
|
|
10754
|
+
// Pick the right values depending if it is grid line or crosshair.
|
|
10755
|
+
// Clamp is required in case when xAxis is non-circular to prevent
|
|
10756
|
+
// grid lines (or crosshairs, if enabled) from rendering above the
|
|
10757
|
+
// center after they supposed to be displayed below the center
|
|
10758
|
+
// point.
|
|
10759
|
+
let transValue = (0,external_highcharts_src_js_default_namespaceObject.clamp)(this.translate(value), 0, height);
|
|
10575
10760
|
if (this.options.gridLineInterpolation === 'circle') {
|
|
10576
10761
|
// A value of 0 is in the center, so it won't be
|
|
10577
10762
|
// visible, but draw it anyway for update and animation
|
|
@@ -11135,7 +11320,6 @@ var RadialAxis;
|
|
|
11135
11320
|
* */
|
|
11136
11321
|
|
|
11137
11322
|
|
|
11138
|
-
const { animObject: PolarComposition_animObject } = (external_highcharts_src_js_default_default());
|
|
11139
11323
|
|
|
11140
11324
|
|
|
11141
11325
|
const { defaultOptions: PolarComposition_defaultOptions } = (external_highcharts_src_js_default_default());
|
|
@@ -11462,7 +11646,7 @@ function onSeriesAfterColumnTranslate() {
|
|
|
11462
11646
|
chart.polar &&
|
|
11463
11647
|
chart.inverted) {
|
|
11464
11648
|
const seriesDefault = PolarComposition_defaultOptions.plotOptions?.[this.type]
|
|
11465
|
-
?.borderRadius, { scope, where = 'end' } =
|
|
11649
|
+
?.borderRadius, { scope, where = 'end' } = borderRadiusObject(options.borderRadius, (0,external_highcharts_src_js_default_namespaceObject.isObject)(seriesDefault) ? seriesDefault : {});
|
|
11466
11650
|
for (const point of this.points) {
|
|
11467
11651
|
const { shapeArgs } = point;
|
|
11468
11652
|
if (point.shapeType === 'arc' && shapeArgs) {
|
|
@@ -11664,7 +11848,7 @@ function wrapColumnSeriesAlignDataLabel(proceed, point, dataLabel, options, alig
|
|
|
11664
11848
|
* @private
|
|
11665
11849
|
*/
|
|
11666
11850
|
function onAfterColumnTranslate() {
|
|
11667
|
-
const series = this,
|
|
11851
|
+
const series = this, { chart, options, xAxis, yAxis } = series, stacking = options.stacking, { center, reversed } = yAxis, { endAngleRad, startAngleRad } = xAxis, visibleRange = endAngleRad - startAngleRad;
|
|
11668
11852
|
let threshold = options.threshold, thresholdAngleRad = 0, points, point, i, yMin, yMax, start = 0, end = 0, tooltipPos, pointX, pointY, stackValues, stack, barX, innerR, r;
|
|
11669
11853
|
// Postprocess plot coordinates
|
|
11670
11854
|
if (xAxis.isRadial) {
|
|
@@ -11762,8 +11946,7 @@ function onAfterColumnTranslate() {
|
|
|
11762
11946
|
innerR = Math.max(barX, 0);
|
|
11763
11947
|
r = Math.max(barX + (point.pointWidth || 0), 0);
|
|
11764
11948
|
// Handle border radius
|
|
11765
|
-
const brOption = options.borderRadius,
|
|
11766
|
-
brOption.radius : brOption, borderRadius = (0,external_highcharts_src_js_default_namespaceObject.relativeLength)(brValue || 0, r - innerR);
|
|
11949
|
+
const brOption = borderRadiusObject(options.borderRadius), borderRadius = (0,external_highcharts_src_js_default_namespaceObject.relativeLength)(brOption.radius, r - innerR);
|
|
11767
11950
|
point.shapeArgs = {
|
|
11768
11951
|
x: center[0],
|
|
11769
11952
|
y: center[1],
|
|
@@ -11926,7 +12109,7 @@ function wrapSeriesAnimate(proceed, init) {
|
|
|
11926
12109
|
}
|
|
11927
12110
|
}
|
|
11928
12111
|
else {
|
|
11929
|
-
animation =
|
|
12112
|
+
animation = (0,external_highcharts_src_js_default_namespaceObject.animObject)(animation);
|
|
11930
12113
|
// A different animation needed for column like series
|
|
11931
12114
|
if (series.is('column')) {
|
|
11932
12115
|
if (!init) {
|
|
@@ -12705,7 +12888,7 @@ class WaterfallSeries extends WaterfallSeries_ColumnSeries {
|
|
|
12705
12888
|
pointAttribs(point, state) {
|
|
12706
12889
|
const upColor = this.options.upColor;
|
|
12707
12890
|
// Set or reset up color (#3710, update to negative)
|
|
12708
|
-
if (upColor && !point.options.color && (0,external_highcharts_src_js_default_namespaceObject.isNumber)(point.y)) {
|
|
12891
|
+
if (upColor && point && !point.options.color && (0,external_highcharts_src_js_default_namespaceObject.isNumber)(point.y)) {
|
|
12709
12892
|
point.color = point.y > 0 ? upColor : void 0;
|
|
12710
12893
|
}
|
|
12711
12894
|
const attr = WaterfallSeries_ColumnSeries.prototype.pointAttribs.call(this, point, state);
|