highcharts 6.1.1 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +29 -0
- package/css/highcharts.scss +25 -1
- package/css/themes/dark-unica.css +29 -0
- package/css/themes/grid-light.css +29 -0
- package/css/themes/sand-signika.css +29 -0
- package/es-modules/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/indicators/atr.src.js +1 -1
- package/es-modules/indicators/bollinger-bands.src.js +2 -2
- package/es-modules/indicators/cci.src.js +1 -1
- package/es-modules/indicators/cmf.src.js +1 -1
- package/es-modules/indicators/ema.src.js +1 -1
- package/es-modules/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/indicators/indicators.src.js +29 -14
- package/es-modules/indicators/macd.src.js +4 -4
- package/es-modules/indicators/mfi.src.js +1 -1
- package/es-modules/indicators/momentum.src.js +2 -2
- package/es-modules/indicators/pivot-points.src.js +7 -2
- package/es-modules/indicators/price-envelopes.src.js +2 -2
- package/es-modules/indicators/psar.src.js +1 -1
- package/es-modules/indicators/roc.src.js +1 -1
- package/es-modules/indicators/rsi.src.js +1 -1
- package/es-modules/indicators/stochastic.src.js +9 -7
- package/es-modules/indicators/volume-by-price.src.js +1 -1
- package/es-modules/indicators/vwap.src.js +1 -1
- package/es-modules/indicators/wma.src.js +1 -1
- package/es-modules/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +11 -0
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +12 -0
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +12 -0
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +9 -0
- 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/funnel.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +2 -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/item-series.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +12 -0
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +12 -0
- 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/windbarb.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/mixins/centered-series.js +36 -5
- package/es-modules/mixins/on-series.js +1 -1
- package/es-modules/mixins/polygon.js +4 -4
- package/es-modules/modules/annotations.src.js +2 -2
- package/es-modules/modules/boost-canvas.src.js +19 -8
- package/es-modules/modules/boost.src.js +300 -137
- package/es-modules/modules/broken-axis.src.js +169 -134
- package/es-modules/modules/bullet.src.js +2 -2
- package/es-modules/modules/data.src.js +8 -6
- package/es-modules/modules/draggable-points.src.js +2257 -0
- package/es-modules/modules/drilldown.src.js +4 -2
- package/es-modules/modules/export-data.src.js +11 -1
- package/es-modules/modules/exporting.src.js +62 -36
- package/es-modules/modules/funnel.src.js +5 -5
- package/es-modules/modules/histogram.src.js +30 -28
- package/es-modules/modules/item-series.src.js +36 -11
- package/es-modules/modules/keyboard-navigation.src.js +81 -44
- package/es-modules/modules/no-data-to-display.src.js +5 -5
- package/es-modules/modules/oldie.src.js +14 -9
- package/es-modules/modules/overlapping-datalabels.src.js +45 -21
- package/es-modules/modules/parallel-coordinates.src.js +4 -3
- package/es-modules/modules/pareto.src.js +1 -1
- package/es-modules/modules/sankey.src.js +28 -10
- package/es-modules/modules/series-label.src.js +6 -6
- package/es-modules/modules/solid-gauge.src.js +10 -7
- package/es-modules/modules/static-scale.src.js +67 -28
- package/es-modules/modules/streamgraph.src.js +4 -4
- package/es-modules/modules/sunburst.src.js +4 -4
- package/es-modules/modules/tilemap.src.js +231 -134
- package/es-modules/modules/treemap.src.js +30 -27
- package/es-modules/modules/variable-pie.src.js +3 -3
- package/es-modules/modules/variwide.src.js +36 -24
- package/es-modules/modules/vector.src.js +98 -28
- package/es-modules/modules/windbarb.src.js +4 -4
- package/es-modules/modules/wordcloud.src.js +133 -48
- package/es-modules/modules/xrange.src.js +258 -78
- package/es-modules/parts/AreaSeries.js +83 -50
- package/es-modules/parts/AreaSplineSeries.js +66 -29
- package/es-modules/parts/Axis.js +2184 -745
- package/es-modules/parts/BarSeries.js +70 -53
- package/es-modules/parts/CandlestickSeries.js +20 -10
- package/es-modules/parts/Chart.js +349 -157
- package/es-modules/parts/Color.js +74 -25
- package/es-modules/parts/ColumnSeries.js +274 -147
- package/es-modules/parts/DataGrouping.js +36 -3
- package/es-modules/parts/DataLabels.js +318 -144
- package/es-modules/parts/DateTimeAxis.js +27 -5
- package/es-modules/parts/Dynamics.js +236 -144
- package/es-modules/parts/FlagsSeries.js +49 -7
- package/es-modules/parts/Globals.js +4 -3
- package/es-modules/parts/Html.js +82 -16
- package/es-modules/parts/Interaction.js +198 -65
- package/es-modules/parts/Legend.js +181 -31
- package/es-modules/parts/LogarithmicAxis.js +36 -3
- package/es-modules/parts/MSPointer.js +31 -4
- package/es-modules/parts/Navigator.js +479 -187
- package/es-modules/parts/OHLCSeries.js +11 -5
- package/es-modules/parts/Options.js +1052 -686
- package/es-modules/parts/OrdinalAxis.js +20 -6
- package/es-modules/parts/PieSeries.js +258 -142
- package/es-modules/parts/PlotBandSeries.experimental.js +2 -2
- package/es-modules/parts/PlotLineOrBand.js +671 -35
- package/es-modules/parts/Point.js +189 -73
- package/es-modules/parts/Pointer.js +263 -62
- package/es-modules/parts/RangeSelector.js +601 -91
- package/es-modules/parts/Responsive.js +82 -36
- package/es-modules/parts/ScatterSeries.js +59 -27
- package/es-modules/parts/ScrollablePlotArea.js +30 -9
- package/es-modules/parts/Scrollbar.js +284 -113
- package/es-modules/parts/Series.js +1105 -836
- package/es-modules/parts/SplineSeries.js +53 -31
- package/es-modules/parts/Stacking.js +108 -7
- package/es-modules/parts/StockChart.js +26 -8
- package/es-modules/parts/SvgRenderer.js +1251 -613
- package/es-modules/parts/Tick.js +164 -30
- package/es-modules/parts/Time.js +171 -71
- package/es-modules/parts/Tooltip.js +271 -49
- package/es-modules/parts/TouchPointer.js +70 -3
- package/es-modules/parts/Utilities.js +1024 -429
- package/es-modules/parts-3d/Axis.js +4 -3
- package/es-modules/parts-3d/Chart.js +8 -9
- package/es-modules/parts-3d/Column.js +1 -1
- package/es-modules/parts-3d/Math.js +1 -1
- package/es-modules/parts-3d/Pie.js +1 -1
- package/es-modules/parts-3d/SVGRenderer.js +13 -10
- package/es-modules/parts-3d/Scatter.js +4 -4
- package/es-modules/parts-3d/Series.js +1 -1
- package/es-modules/parts-3d/VMLRenderer.js +1 -1
- package/es-modules/parts-gantt/ArrowSymbols.js +110 -0
- package/es-modules/parts-gantt/CurrentDateIndicator.js +92 -0
- package/es-modules/parts-gantt/GanttChart.js +111 -0
- package/es-modules/parts-gantt/GanttSeries.js +376 -0
- package/es-modules/parts-gantt/GridAxis.js +965 -0
- package/es-modules/parts-gantt/Pathfinder.js +1247 -0
- package/es-modules/parts-gantt/PathfinderAlgorithms.js +746 -0
- package/es-modules/parts-gantt/Tree.js +146 -0
- package/es-modules/parts-gantt/TreeGrid.js +917 -0
- package/es-modules/parts-map/ColorAxis.js +4 -5
- package/es-modules/parts-map/ColorSeriesMixin.js +3 -1
- package/es-modules/parts-map/GeoJSON.js +1 -1
- package/es-modules/parts-map/HeatmapSeries.js +126 -55
- package/es-modules/parts-map/Map.js +144 -51
- package/es-modules/parts-map/MapAxis.js +1 -1
- package/es-modules/parts-map/MapBubbleSeries.js +6 -5
- package/es-modules/parts-map/MapLineSeries.js +4 -4
- package/es-modules/parts-map/MapNavigation.js +50 -12
- package/es-modules/parts-map/MapPointSeries.js +3 -3
- package/es-modules/parts-map/MapPointer.js +1 -1
- package/es-modules/parts-map/MapSeries.js +7 -7
- package/es-modules/parts-more/AreaRangeSeries.js +82 -40
- package/es-modules/parts-more/AreaSplineRangeSeries.js +3 -3
- package/es-modules/parts-more/BoxPlotSeries.js +3 -3
- package/es-modules/parts-more/BubbleSeries.js +9 -4
- package/es-modules/parts-more/ColumnRangeSeries.js +3 -3
- package/es-modules/parts-more/ErrorBarSeries.js +6 -4
- package/es-modules/parts-more/GaugeSeries.js +3 -3
- package/es-modules/parts-more/Pane.js +3 -2
- package/es-modules/parts-more/Polar.js +1 -1
- package/es-modules/parts-more/PolygonSeries.js +3 -3
- package/es-modules/parts-more/RadialAxis.js +5 -4
- package/es-modules/parts-more/WaterfallSeries.js +9 -4
- package/es-modules/supplemental.docs.js +0 -1955
- package/es-modules/themes/dark-blue.js +1 -1
- package/es-modules/themes/dark-green.js +1 -1
- package/es-modules/themes/dark-unica.js +1 -1
- package/es-modules/themes/gray.js +1 -1
- package/es-modules/themes/grid-light.js +1 -1
- package/es-modules/themes/grid.js +1 -1
- package/es-modules/themes/sand-signika.js +1 -1
- package/es-modules/themes/skies.js +1 -1
- package/highcharts-3d.js +77 -75
- package/highcharts-3d.js.map +1 -8
- package/highcharts-3d.src.js +39 -32
- package/highcharts-gantt.js +503 -0
- package/highcharts-gantt.js.map +1 -0
- package/highcharts-gantt.src.js +49289 -0
- package/highcharts-more.js +66 -64
- package/highcharts-more.js.map +1 -8
- package/highcharts-more.src.js +135 -75
- package/highcharts.js +413 -403
- package/highcharts.js.map +1 -8
- package/highcharts.src.js +11114 -4781
- package/highmaps.js +442 -433
- package/highmaps.js.map +1 -8
- package/highmaps.src.js +10740 -4598
- package/highstock.js +553 -540
- package/highstock.js.map +1 -8
- package/highstock.src.js +12807 -5343
- package/indicators/accumulation-distribution.js +4 -3
- package/indicators/accumulation-distribution.js.map +1 -8
- package/indicators/accumulation-distribution.src.js +6 -2
- package/indicators/atr.js +4 -3
- package/indicators/atr.js.map +1 -8
- package/indicators/atr.src.js +6 -2
- package/indicators/bollinger-bands.js +7 -6
- package/indicators/bollinger-bands.js.map +1 -8
- package/indicators/bollinger-bands.src.js +7 -3
- package/indicators/cci.js +4 -3
- package/indicators/cci.js.map +1 -8
- package/indicators/cci.src.js +6 -2
- package/indicators/cmf.js +5 -4
- package/indicators/cmf.js.map +1 -8
- package/indicators/cmf.src.js +6 -2
- package/indicators/ema.js +4 -3
- package/indicators/ema.js.map +1 -8
- package/indicators/ema.src.js +6 -2
- package/indicators/ichimoku-kinko-hyo.js +10 -9
- package/indicators/ichimoku-kinko-hyo.js.map +1 -8
- package/indicators/ichimoku-kinko-hyo.src.js +6 -2
- package/indicators/indicators.js +6 -5
- package/indicators/indicators.js.map +1 -8
- package/indicators/indicators.src.js +34 -15
- package/indicators/macd.js +11 -10
- package/indicators/macd.js.map +1 -8
- package/indicators/macd.src.js +10 -6
- package/indicators/mfi.js +5 -3
- package/indicators/mfi.js.map +1 -8
- package/indicators/mfi.src.js +6 -2
- package/indicators/momentum.js +4 -3
- package/indicators/momentum.js.map +1 -8
- package/indicators/momentum.src.js +7 -3
- package/indicators/pivot-points.js +8 -7
- package/indicators/pivot-points.js.map +1 -8
- package/indicators/pivot-points.src.js +12 -3
- package/indicators/price-envelopes.js +7 -6
- package/indicators/price-envelopes.js.map +1 -8
- package/indicators/price-envelopes.src.js +7 -3
- package/indicators/psar.js +5 -4
- package/indicators/psar.js.map +1 -8
- package/indicators/psar.src.js +6 -2
- package/indicators/roc.js +4 -3
- package/indicators/roc.js.map +1 -8
- package/indicators/roc.src.js +6 -2
- package/indicators/rsi.js +4 -3
- package/indicators/rsi.js.map +1 -8
- package/indicators/rsi.src.js +6 -2
- package/indicators/stochastic.js +7 -5
- package/indicators/stochastic.js.map +1 -8
- package/indicators/stochastic.src.js +14 -8
- package/indicators/volume-by-price.js +13 -12
- package/indicators/volume-by-price.js.map +1 -8
- package/indicators/volume-by-price.src.js +6 -2
- package/indicators/vwap.js +4 -3
- package/indicators/vwap.js.map +1 -8
- package/indicators/vwap.src.js +6 -2
- package/indicators/wma.js +4 -3
- package/indicators/wma.js.map +1 -8
- package/indicators/wma.src.js +6 -2
- package/indicators/zigzag.js +5 -3
- package/indicators/zigzag.js.map +1 -8
- package/indicators/zigzag.src.js +6 -2
- package/js/es-modules/indicators/accumulation-distribution.src.js +1 -1
- package/js/es-modules/indicators/atr.src.js +1 -1
- package/js/es-modules/indicators/bollinger-bands.src.js +2 -2
- package/js/es-modules/indicators/cci.src.js +1 -1
- package/js/es-modules/indicators/cmf.src.js +1 -1
- package/js/es-modules/indicators/ema.src.js +1 -1
- package/js/es-modules/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/js/es-modules/indicators/indicators.src.js +29 -14
- package/js/es-modules/indicators/macd.src.js +4 -4
- package/js/es-modules/indicators/mfi.src.js +1 -1
- package/js/es-modules/indicators/momentum.src.js +2 -2
- package/js/es-modules/indicators/pivot-points.src.js +7 -2
- package/js/es-modules/indicators/price-envelopes.src.js +2 -2
- package/js/es-modules/indicators/psar.src.js +1 -1
- package/js/es-modules/indicators/roc.src.js +1 -1
- package/js/es-modules/indicators/rsi.src.js +1 -1
- package/js/es-modules/indicators/stochastic.src.js +9 -7
- package/js/es-modules/indicators/volume-by-price.src.js +1 -1
- package/js/es-modules/indicators/vwap.src.js +1 -1
- package/js/es-modules/indicators/wma.src.js +1 -1
- package/js/es-modules/indicators/zigzag.src.js +1 -1
- package/js/es-modules/masters/highcharts-gantt.src.js +11 -0
- package/js/es-modules/masters/modules/annotations.src.js +1 -1
- package/js/es-modules/masters/modules/arrow-symbols.src.js +12 -0
- package/js/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/js/es-modules/masters/modules/current-date-indicator.src.js +12 -0
- package/js/es-modules/masters/modules/data.src.js +1 -1
- package/js/es-modules/masters/modules/draggable-points.src.js +9 -0
- package/js/es-modules/masters/modules/export-data.src.js +1 -1
- package/js/es-modules/masters/modules/exporting.src.js +1 -1
- package/js/es-modules/masters/modules/funnel.src.js +1 -1
- package/js/es-modules/masters/modules/gantt.src.js +2 -1
- package/js/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/js/es-modules/masters/modules/heatmap.src.js +1 -1
- package/js/es-modules/masters/modules/item-series.src.js +1 -1
- package/js/es-modules/masters/modules/map.src.js +1 -1
- package/js/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/js/es-modules/masters/modules/pathfinder.src.js +12 -0
- package/js/es-modules/masters/modules/sankey.src.js +1 -1
- package/js/es-modules/masters/modules/series-label.src.js +1 -1
- package/js/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/js/es-modules/masters/modules/stock.src.js +1 -1
- package/js/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/js/es-modules/masters/modules/treegrid.src.js +12 -0
- package/js/es-modules/masters/modules/variwide.src.js +1 -1
- package/js/es-modules/masters/modules/vector.src.js +1 -1
- package/js/es-modules/masters/modules/windbarb.src.js +1 -1
- package/js/es-modules/masters/modules/xrange.src.js +1 -1
- package/js/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/js/es-modules/masters/themes/dark-green.src.js +1 -1
- package/js/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/js/es-modules/masters/themes/gray.src.js +1 -1
- package/js/es-modules/masters/themes/grid-light.src.js +1 -1
- package/js/es-modules/masters/themes/grid.src.js +1 -1
- package/js/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/js/es-modules/masters/themes/skies.src.js +1 -1
- package/js/es-modules/mixins/centered-series.js +36 -5
- package/js/es-modules/mixins/on-series.js +1 -1
- package/js/es-modules/mixins/polygon.js +4 -4
- package/js/es-modules/modules/annotations.src.js +2 -2
- package/js/es-modules/modules/boost-canvas.src.js +19 -8
- package/js/es-modules/modules/boost.src.js +300 -137
- package/js/es-modules/modules/broken-axis.src.js +169 -134
- package/js/es-modules/modules/bullet.src.js +2 -2
- package/js/es-modules/modules/data.src.js +8 -6
- package/js/es-modules/modules/draggable-points.src.js +2257 -0
- package/js/es-modules/modules/drilldown.src.js +4 -2
- package/js/es-modules/modules/export-data.src.js +11 -1
- package/js/es-modules/modules/exporting.src.js +62 -36
- package/js/es-modules/modules/funnel.src.js +5 -5
- package/js/es-modules/modules/histogram.src.js +30 -28
- package/js/es-modules/modules/item-series.src.js +36 -11
- package/js/es-modules/modules/keyboard-navigation.src.js +81 -44
- package/js/es-modules/modules/no-data-to-display.src.js +5 -5
- package/js/es-modules/modules/oldie.src.js +14 -9
- package/js/es-modules/modules/overlapping-datalabels.src.js +45 -21
- package/js/es-modules/modules/parallel-coordinates.src.js +4 -3
- package/js/es-modules/modules/pareto.src.js +1 -1
- package/js/es-modules/modules/sankey.src.js +23 -7
- package/js/es-modules/modules/series-label.src.js +6 -6
- package/js/es-modules/modules/solid-gauge.src.js +8 -5
- package/js/es-modules/modules/static-scale.src.js +67 -28
- package/js/es-modules/modules/streamgraph.src.js +4 -4
- package/js/es-modules/modules/sunburst.src.js +4 -4
- package/js/es-modules/modules/tilemap.src.js +231 -134
- package/js/es-modules/modules/treemap.src.js +29 -26
- package/js/es-modules/modules/variable-pie.src.js +3 -3
- package/js/es-modules/modules/variwide.src.js +36 -24
- package/js/es-modules/modules/vector.src.js +98 -28
- package/js/es-modules/modules/windbarb.src.js +4 -4
- package/js/es-modules/modules/wordcloud.src.js +133 -48
- package/js/es-modules/modules/xrange.src.js +256 -69
- package/js/es-modules/parts/AreaSeries.js +83 -50
- package/js/es-modules/parts/AreaSplineSeries.js +66 -29
- package/js/es-modules/parts/Axis.js +2089 -694
- package/js/es-modules/parts/BarSeries.js +70 -53
- package/js/es-modules/parts/CandlestickSeries.js +20 -10
- package/js/es-modules/parts/Chart.js +349 -157
- package/js/es-modules/parts/Color.js +74 -25
- package/js/es-modules/parts/ColumnSeries.js +241 -128
- package/js/es-modules/parts/DataGrouping.js +36 -3
- package/js/es-modules/parts/DataLabels.js +287 -116
- package/js/es-modules/parts/DateTimeAxis.js +27 -5
- package/js/es-modules/parts/Dynamics.js +236 -144
- package/js/es-modules/parts/FlagsSeries.js +49 -7
- package/js/es-modules/parts/Globals.js +4 -3
- package/js/es-modules/parts/Html.js +82 -16
- package/js/es-modules/parts/Interaction.js +187 -67
- package/js/es-modules/parts/Legend.js +181 -31
- package/js/es-modules/parts/LogarithmicAxis.js +36 -3
- package/js/es-modules/parts/MSPointer.js +31 -4
- package/js/es-modules/parts/Navigator.js +432 -162
- package/js/es-modules/parts/OHLCSeries.js +5 -5
- package/js/es-modules/parts/Options.js +855 -592
- package/js/es-modules/parts/OrdinalAxis.js +20 -6
- package/js/es-modules/parts/PieSeries.js +247 -134
- package/js/es-modules/parts/PlotBandSeries.experimental.js +2 -2
- package/js/es-modules/parts/PlotLineOrBand.js +671 -35
- package/js/es-modules/parts/Point.js +182 -70
- package/js/es-modules/parts/Pointer.js +263 -62
- package/js/es-modules/parts/RangeSelector.js +579 -91
- package/js/es-modules/parts/Responsive.js +82 -36
- package/js/es-modules/parts/ScatterSeries.js +58 -27
- package/js/es-modules/parts/ScrollablePlotArea.js +30 -9
- package/js/es-modules/parts/Scrollbar.js +201 -71
- package/js/es-modules/parts/Series.js +995 -745
- package/js/es-modules/parts/SplineSeries.js +53 -31
- package/js/es-modules/parts/Stacking.js +108 -7
- package/js/es-modules/parts/StockChart.js +26 -8
- package/js/es-modules/parts/SvgRenderer.js +1208 -598
- package/js/es-modules/parts/Tick.js +164 -30
- package/js/es-modules/parts/Time.js +171 -71
- package/js/es-modules/parts/Tooltip.js +276 -49
- package/js/es-modules/parts/TouchPointer.js +70 -3
- package/js/es-modules/parts/Utilities.js +1024 -429
- package/js/es-modules/parts-3d/Axis.js +4 -3
- package/js/es-modules/parts-3d/Chart.js +8 -9
- package/js/es-modules/parts-3d/Column.js +1 -1
- package/js/es-modules/parts-3d/Math.js +1 -1
- package/js/es-modules/parts-3d/Pie.js +1 -1
- package/js/es-modules/parts-3d/SVGRenderer.js +13 -10
- package/js/es-modules/parts-3d/Scatter.js +4 -4
- package/js/es-modules/parts-3d/Series.js +1 -1
- package/js/es-modules/parts-3d/VMLRenderer.js +1 -1
- package/js/es-modules/parts-gantt/ArrowSymbols.js +110 -0
- package/js/es-modules/parts-gantt/CurrentDateIndicator.js +92 -0
- package/js/es-modules/parts-gantt/GanttChart.js +111 -0
- package/js/es-modules/parts-gantt/GanttSeries.js +371 -0
- package/js/es-modules/parts-gantt/GridAxis.js +962 -0
- package/js/es-modules/parts-gantt/Pathfinder.js +1225 -0
- package/js/es-modules/parts-gantt/PathfinderAlgorithms.js +746 -0
- package/js/es-modules/parts-gantt/Tree.js +146 -0
- package/js/es-modules/parts-gantt/TreeGrid.js +891 -0
- package/js/es-modules/parts-map/ColorAxis.js +4 -5
- package/js/es-modules/parts-map/ColorSeriesMixin.js +3 -1
- package/js/es-modules/parts-map/GeoJSON.js +1 -1
- package/js/es-modules/parts-map/HeatmapSeries.js +124 -54
- package/js/es-modules/parts-map/Map.js +136 -47
- package/js/es-modules/parts-map/MapAxis.js +1 -1
- package/js/es-modules/parts-map/MapBubbleSeries.js +6 -5
- package/js/es-modules/parts-map/MapLineSeries.js +4 -4
- package/js/es-modules/parts-map/MapNavigation.js +50 -12
- package/js/es-modules/parts-map/MapPointSeries.js +3 -3
- package/js/es-modules/parts-map/MapPointer.js +1 -1
- package/js/es-modules/parts-map/MapSeries.js +5 -5
- package/js/es-modules/parts-more/AreaRangeSeries.js +82 -40
- package/js/es-modules/parts-more/AreaSplineRangeSeries.js +3 -3
- package/js/es-modules/parts-more/BoxPlotSeries.js +3 -3
- package/js/es-modules/parts-more/BubbleSeries.js +9 -4
- package/js/es-modules/parts-more/ColumnRangeSeries.js +3 -3
- package/js/es-modules/parts-more/ErrorBarSeries.js +6 -4
- package/js/es-modules/parts-more/GaugeSeries.js +3 -3
- package/js/es-modules/parts-more/Pane.js +3 -2
- package/js/es-modules/parts-more/Polar.js +1 -1
- package/js/es-modules/parts-more/PolygonSeries.js +3 -3
- package/js/es-modules/parts-more/RadialAxis.js +5 -4
- package/js/es-modules/parts-more/WaterfallSeries.js +9 -4
- package/js/es-modules/supplemental.docs.js +0 -1955
- package/js/es-modules/themes/dark-blue.js +1 -1
- package/js/es-modules/themes/dark-green.js +1 -1
- package/js/es-modules/themes/dark-unica.js +1 -1
- package/js/es-modules/themes/gray.js +1 -1
- package/js/es-modules/themes/grid-light.js +1 -1
- package/js/es-modules/themes/grid.js +1 -1
- package/js/es-modules/themes/sand-signika.js +1 -1
- package/js/es-modules/themes/skies.js +1 -1
- package/js/highcharts-3d.js +75 -74
- package/js/highcharts-3d.js.map +1 -8
- package/js/highcharts-3d.src.js +39 -32
- package/js/highcharts-gantt.js +480 -0
- package/js/highcharts-gantt.js.map +1 -0
- package/js/highcharts-gantt.src.js +47011 -0
- package/js/highcharts-more.js +63 -61
- package/js/highcharts-more.js.map +1 -8
- package/js/highcharts-more.src.js +135 -75
- package/js/highcharts.js +396 -387
- package/js/highcharts.js.map +1 -8
- package/js/highcharts.src.js +10765 -4659
- package/js/highmaps.js +419 -411
- package/js/highmaps.js.map +1 -8
- package/js/highmaps.src.js +10198 -4285
- package/js/highstock.js +529 -516
- package/js/highstock.js.map +1 -8
- package/js/highstock.src.js +12108 -4962
- package/js/indicators/accumulation-distribution.js +4 -3
- package/js/indicators/accumulation-distribution.js.map +1 -8
- package/js/indicators/accumulation-distribution.src.js +6 -2
- package/js/indicators/atr.js +4 -3
- package/js/indicators/atr.js.map +1 -8
- package/js/indicators/atr.src.js +6 -2
- package/js/indicators/bollinger-bands.js +7 -6
- package/js/indicators/bollinger-bands.js.map +1 -8
- package/js/indicators/bollinger-bands.src.js +7 -3
- package/js/indicators/cci.js +4 -3
- package/js/indicators/cci.js.map +1 -8
- package/js/indicators/cci.src.js +6 -2
- package/js/indicators/cmf.js +5 -4
- package/js/indicators/cmf.js.map +1 -8
- package/js/indicators/cmf.src.js +6 -2
- package/js/indicators/ema.js +4 -3
- package/js/indicators/ema.js.map +1 -8
- package/js/indicators/ema.src.js +6 -2
- package/js/indicators/ichimoku-kinko-hyo.js +10 -9
- package/js/indicators/ichimoku-kinko-hyo.js.map +1 -8
- package/js/indicators/ichimoku-kinko-hyo.src.js +6 -2
- package/js/indicators/indicators.js +6 -5
- package/js/indicators/indicators.js.map +1 -8
- package/js/indicators/indicators.src.js +34 -15
- package/js/indicators/macd.js +11 -10
- package/js/indicators/macd.js.map +1 -8
- package/js/indicators/macd.src.js +10 -6
- package/js/indicators/mfi.js +5 -3
- package/js/indicators/mfi.js.map +1 -8
- package/js/indicators/mfi.src.js +6 -2
- package/js/indicators/momentum.js +4 -3
- package/js/indicators/momentum.js.map +1 -8
- package/js/indicators/momentum.src.js +7 -3
- package/js/indicators/pivot-points.js +8 -7
- package/js/indicators/pivot-points.js.map +1 -8
- package/js/indicators/pivot-points.src.js +12 -3
- package/js/indicators/price-envelopes.js +7 -6
- package/js/indicators/price-envelopes.js.map +1 -8
- package/js/indicators/price-envelopes.src.js +7 -3
- package/js/indicators/psar.js +5 -4
- package/js/indicators/psar.js.map +1 -8
- package/js/indicators/psar.src.js +6 -2
- package/js/indicators/roc.js +4 -3
- package/js/indicators/roc.js.map +1 -8
- package/js/indicators/roc.src.js +6 -2
- package/js/indicators/rsi.js +4 -3
- package/js/indicators/rsi.js.map +1 -8
- package/js/indicators/rsi.src.js +6 -2
- package/js/indicators/stochastic.js +7 -5
- package/js/indicators/stochastic.js.map +1 -8
- package/js/indicators/stochastic.src.js +14 -8
- package/js/indicators/volume-by-price.js +13 -12
- package/js/indicators/volume-by-price.js.map +1 -8
- package/js/indicators/volume-by-price.src.js +6 -2
- package/js/indicators/vwap.js +4 -3
- package/js/indicators/vwap.js.map +1 -8
- package/js/indicators/vwap.src.js +6 -2
- package/js/indicators/wma.js +4 -3
- package/js/indicators/wma.js.map +1 -8
- package/js/indicators/wma.src.js +6 -2
- package/js/indicators/zigzag.js +5 -3
- package/js/indicators/zigzag.js.map +1 -8
- package/js/indicators/zigzag.src.js +6 -2
- package/js/modules/accessibility.js +52 -51
- package/js/modules/accessibility.js.map +1 -8
- package/js/modules/accessibility.src.js +86 -45
- package/js/modules/annotations.js +22 -21
- package/js/modules/annotations.js.map +1 -8
- package/js/modules/annotations.src.js +8 -4
- package/js/modules/arrow-symbols.js +13 -0
- package/js/modules/arrow-symbols.js.map +1 -0
- package/js/modules/arrow-symbols.src.js +138 -0
- package/js/modules/boost-canvas.js +15 -13
- package/js/modules/boost-canvas.js.map +1 -8
- package/js/modules/boost-canvas.src.js +24 -9
- package/js/modules/boost.js +57 -52
- package/js/modules/boost.js.map +1 -8
- package/js/modules/boost.src.js +305 -138
- package/js/modules/broken-axis.js +12 -10
- package/js/modules/broken-axis.js.map +1 -8
- package/js/modules/broken-axis.src.js +175 -136
- package/js/modules/bullet.js +3 -2
- package/js/modules/bullet.js.map +1 -8
- package/js/modules/bullet.src.js +7 -3
- package/js/modules/current-date-indicator.js +13 -0
- package/js/modules/current-date-indicator.js.map +1 -0
- package/js/modules/current-date-indicator.src.js +120 -0
- package/js/modules/data.js +25 -24
- package/js/modules/data.js.map +1 -8
- package/js/modules/data.src.js +14 -8
- package/js/modules/drag-panes.js +9 -8
- package/js/modules/drag-panes.js.map +1 -8
- package/js/modules/drag-panes.src.js +5 -1
- package/js/modules/draggable-points.js +38 -0
- package/js/modules/draggable-points.js.map +1 -0
- package/js/modules/draggable-points.src.js +2281 -0
- package/js/modules/drilldown.js +20 -19
- package/js/modules/drilldown.js.map +1 -8
- package/js/modules/drilldown.src.js +9 -3
- package/js/modules/export-data.js +20 -19
- package/js/modules/export-data.js.map +1 -8
- package/js/modules/export-data.src.js +17 -3
- package/js/modules/exporting.js +24 -23
- package/js/modules/exporting.js.map +1 -8
- package/js/modules/exporting.src.js +68 -38
- package/js/modules/funnel.js +8 -6
- package/js/modules/funnel.js.map +1 -8
- package/js/modules/funnel.src.js +11 -7
- package/js/modules/gantt.js +81 -18
- package/js/modules/gantt.js.map +1 -8
- package/js/modules/gantt.src.js +5494 -372
- package/js/modules/grid-axis.js +16 -10
- package/js/modules/grid-axis.js.map +1 -8
- package/js/modules/grid-axis.src.js +735 -293
- package/js/modules/heatmap.js +22 -21
- package/js/modules/heatmap.js.map +1 -8
- package/js/modules/heatmap.src.js +137 -62
- package/js/modules/histogram-bellcurve.js +9 -8
- package/js/modules/histogram-bellcurve.js.map +1 -8
- package/js/modules/histogram-bellcurve.src.js +35 -29
- package/js/modules/item-series.js +6 -4
- package/js/modules/item-series.js.map +1 -8
- package/js/modules/item-series.src.js +42 -13
- package/js/modules/map.js +63 -62
- package/js/modules/map.js.map +1 -8
- package/js/modules/map.src.js +353 -145
- package/js/modules/no-data-to-display.js +5 -4
- package/js/modules/no-data-to-display.js.map +1 -8
- package/js/modules/no-data-to-display.src.js +10 -6
- package/js/modules/offline-exporting.js +14 -13
- package/js/modules/offline-exporting.js.map +1 -8
- package/js/modules/offline-exporting.src.js +6 -2
- package/js/modules/oldie.js +29 -27
- package/js/modules/oldie.js.map +1 -8
- package/js/modules/oldie.src.js +20 -11
- package/js/modules/overlapping-datalabels.js +4 -3
- package/js/modules/overlapping-datalabels.js.map +1 -8
- package/js/modules/overlapping-datalabels.src.js +6 -2
- package/js/modules/parallel-coordinates.js +10 -9
- package/js/modules/parallel-coordinates.js.map +1 -8
- package/js/modules/parallel-coordinates.src.js +9 -4
- package/js/modules/pareto.js +5 -4
- package/js/modules/pareto.js.map +1 -8
- package/js/modules/pareto.src.js +6 -2
- package/js/modules/pathfinder.js +34 -0
- package/js/modules/pathfinder.js.map +1 -0
- package/js/modules/pathfinder.src.js +2106 -0
- package/js/modules/pattern-fill.js +13 -12
- package/js/modules/pattern-fill.js.map +1 -8
- package/js/modules/pattern-fill.src.js +5 -1
- package/js/modules/sankey.js +13 -12
- package/js/modules/sankey.js.map +1 -8
- package/js/modules/sankey.src.js +29 -9
- package/js/modules/series-label.js +17 -15
- package/js/modules/series-label.js.map +1 -8
- package/js/modules/series-label.src.js +12 -8
- package/js/modules/solid-gauge.js +9 -8
- package/js/modules/solid-gauge.js.map +1 -8
- package/js/modules/solid-gauge.src.js +14 -7
- package/js/modules/static-scale.js +4 -3
- package/js/modules/static-scale.js.map +1 -8
- package/js/modules/static-scale.src.js +69 -26
- package/js/modules/stock.js +136 -132
- package/js/modules/stock.js.map +1 -8
- package/js/modules/stock.src.js +1543 -499
- package/js/modules/streamgraph.js +4 -3
- package/js/modules/streamgraph.js.map +1 -8
- package/js/modules/streamgraph.src.js +10 -6
- package/js/modules/sunburst.js +40 -39
- package/js/modules/sunburst.js.map +1 -8
- package/js/modules/sunburst.src.js +38 -31
- package/js/modules/tilemap.js +19 -18
- package/js/modules/tilemap.js.map +1 -8
- package/js/modules/tilemap.src.js +363 -190
- package/js/modules/treegrid.js +51 -0
- package/js/modules/treegrid.js.map +1 -0
- package/js/modules/treegrid.src.js +2759 -0
- package/js/modules/treemap.js +27 -26
- package/js/modules/treemap.js.map +1 -8
- package/js/modules/treemap.src.js +34 -27
- package/js/modules/variable-pie.js +8 -7
- package/js/modules/variable-pie.js.map +1 -8
- package/js/modules/variable-pie.src.js +8 -4
- package/js/modules/variwide.js +8 -7
- package/js/modules/variwide.js.map +1 -8
- package/js/modules/variwide.src.js +42 -26
- package/js/modules/vector.js +7 -6
- package/js/modules/vector.js.map +1 -8
- package/js/modules/vector.src.js +104 -30
- package/js/modules/windbarb.js +11 -10
- package/js/modules/windbarb.js.map +1 -8
- package/js/modules/windbarb.src.js +11 -7
- package/js/modules/wordcloud.js +18 -15
- package/js/modules/wordcloud.js.map +1 -8
- package/js/modules/wordcloud.src.js +142 -53
- package/js/modules/xrange.js +12 -10
- package/js/modules/xrange.js.map +1 -8
- package/js/modules/xrange.src.js +262 -71
- package/js/themes/avocado.js +3 -2
- package/js/themes/avocado.js.map +1 -8
- package/js/themes/avocado.src.js +5 -1
- package/js/themes/dark-blue.js +9 -8
- package/js/themes/dark-blue.js.map +1 -8
- package/js/themes/dark-blue.src.js +7 -3
- package/js/themes/dark-green.js +9 -8
- package/js/themes/dark-green.js.map +1 -8
- package/js/themes/dark-green.src.js +7 -3
- package/js/themes/dark-unica.js +9 -7
- package/js/themes/dark-unica.js.map +1 -8
- package/js/themes/dark-unica.src.js +7 -3
- package/js/themes/gray.js +10 -8
- package/js/themes/gray.js.map +1 -8
- package/js/themes/gray.src.js +7 -3
- package/js/themes/grid-light.js +5 -4
- package/js/themes/grid-light.js.map +1 -8
- package/js/themes/grid-light.src.js +7 -3
- package/js/themes/grid.js +6 -5
- package/js/themes/grid.js.map +1 -8
- package/js/themes/grid.src.js +7 -3
- package/js/themes/sand-signika.js +6 -5
- package/js/themes/sand-signika.js.map +1 -8
- package/js/themes/sand-signika.src.js +7 -3
- package/js/themes/skies.js +6 -5
- package/js/themes/skies.js.map +1 -8
- package/js/themes/skies.src.js +7 -3
- package/js/themes/sunset.js +3 -2
- package/js/themes/sunset.js.map +1 -8
- package/js/themes/sunset.src.js +5 -1
- package/modules/accessibility.js +53 -51
- package/modules/accessibility.js.map +1 -8
- package/modules/accessibility.src.js +86 -45
- package/modules/annotations.js +24 -22
- package/modules/annotations.js.map +1 -8
- package/modules/annotations.src.js +8 -4
- package/modules/arrow-symbols.js +13 -0
- package/modules/arrow-symbols.js.map +1 -0
- package/modules/arrow-symbols.src.js +138 -0
- package/modules/boost-canvas.js +15 -13
- package/modules/boost-canvas.js.map +1 -8
- package/modules/boost-canvas.src.js +24 -9
- package/modules/boost.js +57 -52
- package/modules/boost.js.map +1 -8
- package/modules/boost.src.js +305 -138
- package/modules/broken-axis.js +12 -10
- package/modules/broken-axis.js.map +1 -8
- package/modules/broken-axis.src.js +175 -136
- package/modules/bullet.js +6 -5
- package/modules/bullet.js.map +1 -8
- package/modules/bullet.src.js +7 -3
- package/modules/current-date-indicator.js +13 -0
- package/modules/current-date-indicator.js.map +1 -0
- package/modules/current-date-indicator.src.js +120 -0
- package/modules/data.js +25 -24
- package/modules/data.js.map +1 -8
- package/modules/data.src.js +14 -8
- package/modules/drag-panes.js +9 -8
- package/modules/drag-panes.js.map +1 -8
- package/modules/drag-panes.src.js +5 -1
- package/modules/draggable-points.js +38 -0
- package/modules/draggable-points.js.map +1 -0
- package/modules/draggable-points.src.js +2281 -0
- package/modules/drilldown.js +16 -15
- package/modules/drilldown.js.map +1 -8
- package/modules/drilldown.src.js +9 -3
- package/modules/export-data.js +20 -19
- package/modules/export-data.js.map +1 -8
- package/modules/export-data.src.js +17 -3
- package/modules/exporting.js +23 -21
- package/modules/exporting.js.map +1 -8
- package/modules/exporting.src.js +68 -38
- package/modules/funnel.js +8 -7
- package/modules/funnel.js.map +1 -8
- package/modules/funnel.src.js +11 -7
- package/modules/gantt.js +84 -19
- package/modules/gantt.js.map +1 -8
- package/modules/gantt.src.js +5557 -379
- package/modules/grid-axis.js +17 -10
- package/modules/grid-axis.js.map +1 -8
- package/modules/grid-axis.src.js +736 -293
- package/modules/heatmap.js +22 -21
- package/modules/heatmap.js.map +1 -8
- package/modules/heatmap.src.js +139 -63
- package/modules/histogram-bellcurve.js +9 -8
- package/modules/histogram-bellcurve.js.map +1 -8
- package/modules/histogram-bellcurve.src.js +35 -29
- package/modules/item-series.js +6 -4
- package/modules/item-series.js.map +1 -8
- package/modules/item-series.src.js +42 -13
- package/modules/map.js +65 -64
- package/modules/map.js.map +1 -8
- package/modules/map.src.js +365 -152
- package/modules/no-data-to-display.js +5 -4
- package/modules/no-data-to-display.js.map +1 -8
- package/modules/no-data-to-display.src.js +10 -6
- package/modules/offline-exporting.js +14 -12
- package/modules/offline-exporting.js.map +1 -8
- package/modules/offline-exporting.src.js +6 -2
- package/modules/oldie.js +29 -27
- package/modules/oldie.js.map +1 -8
- package/modules/oldie.src.js +20 -11
- package/modules/overlapping-datalabels.js +4 -3
- package/modules/overlapping-datalabels.js.map +1 -8
- package/modules/overlapping-datalabels.src.js +6 -2
- package/modules/parallel-coordinates.js +10 -9
- package/modules/parallel-coordinates.js.map +1 -8
- package/modules/parallel-coordinates.src.js +9 -4
- package/modules/pareto.js +5 -4
- package/modules/pareto.js.map +1 -8
- package/modules/pareto.src.js +6 -2
- package/modules/pathfinder.js +35 -0
- package/modules/pathfinder.js.map +1 -0
- package/modules/pathfinder.src.js +2128 -0
- package/modules/pattern-fill.js +13 -12
- package/modules/pattern-fill.js.map +1 -8
- package/modules/pattern-fill.src.js +5 -1
- package/modules/sankey.js +13 -12
- package/modules/sankey.js.map +1 -8
- package/modules/sankey.src.js +34 -12
- package/modules/series-label.js +17 -15
- package/modules/series-label.js.map +1 -8
- package/modules/series-label.src.js +12 -8
- package/modules/solid-gauge.js +9 -8
- package/modules/solid-gauge.js.map +1 -8
- package/modules/solid-gauge.src.js +16 -9
- package/modules/static-scale.js +4 -3
- package/modules/static-scale.js.map +1 -8
- package/modules/static-scale.src.js +69 -26
- package/modules/stock.js +143 -139
- package/modules/stock.js.map +1 -8
- package/modules/stock.src.js +1701 -566
- package/modules/streamgraph.js +4 -3
- package/modules/streamgraph.js.map +1 -8
- package/modules/streamgraph.src.js +10 -6
- package/modules/sunburst.js +42 -41
- package/modules/sunburst.js.map +1 -8
- package/modules/sunburst.src.js +39 -32
- package/modules/tilemap.js +18 -17
- package/modules/tilemap.js.map +1 -8
- package/modules/tilemap.src.js +365 -191
- package/modules/treegrid.js +52 -0
- package/modules/treegrid.js.map +1 -0
- package/modules/treegrid.src.js +2797 -0
- package/modules/treemap.js +29 -28
- package/modules/treemap.js.map +1 -8
- package/modules/treemap.src.js +35 -28
- package/modules/variable-pie.js +8 -7
- package/modules/variable-pie.js.map +1 -8
- package/modules/variable-pie.src.js +8 -4
- package/modules/variwide.js +8 -7
- package/modules/variwide.js.map +1 -8
- package/modules/variwide.src.js +42 -26
- package/modules/vector.js +7 -6
- package/modules/vector.js.map +1 -8
- package/modules/vector.src.js +104 -30
- package/modules/windbarb.js +11 -10
- package/modules/windbarb.js.map +1 -8
- package/modules/windbarb.src.js +11 -7
- package/modules/wordcloud.js +18 -15
- package/modules/wordcloud.js.map +1 -8
- package/modules/wordcloud.src.js +142 -53
- package/modules/xrange.js +13 -11
- package/modules/xrange.js.map +1 -8
- package/modules/xrange.src.js +264 -80
- package/package.json +1 -1
- package/themes/avocado.js +3 -2
- package/themes/avocado.js.map +1 -8
- package/themes/avocado.src.js +5 -1
- package/themes/dark-blue.js +9 -8
- package/themes/dark-blue.js.map +1 -8
- package/themes/dark-blue.src.js +7 -3
- package/themes/dark-green.js +9 -8
- package/themes/dark-green.js.map +1 -8
- package/themes/dark-green.src.js +7 -3
- package/themes/dark-unica.js +9 -7
- package/themes/dark-unica.js.map +1 -8
- package/themes/dark-unica.src.js +7 -3
- package/themes/gray.js +10 -8
- package/themes/gray.js.map +1 -8
- package/themes/gray.src.js +7 -3
- package/themes/grid-light.js +5 -4
- package/themes/grid-light.js.map +1 -8
- package/themes/grid-light.src.js +7 -3
- package/themes/grid.js +6 -5
- package/themes/grid.js.map +1 -8
- package/themes/grid.src.js +7 -3
- package/themes/sand-signika.js +6 -5
- package/themes/sand-signika.js.map +1 -8
- package/themes/sand-signika.src.js +7 -3
- package/themes/skies.js +6 -5
- package/themes/skies.js.map +1 -8
- package/themes/skies.src.js +7 -3
- package/themes/sunset.js +3 -2
- package/themes/sunset.js.map +1 -8
- package/themes/sunset.src.js +5 -1
|
@@ -1,15 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (c) 2010-
|
|
2
|
+
* (c) 2010-2018 Torstein Honsi
|
|
3
3
|
*
|
|
4
4
|
* License: www.highcharts.com/license
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Translation and scale for the plot area of a series.
|
|
9
|
+
*
|
|
10
|
+
* @typedef Highcharts.SeriesPlotBoxObject
|
|
11
|
+
*
|
|
12
|
+
* @property {number} translateX
|
|
13
|
+
*
|
|
14
|
+
* @property {number} translateY
|
|
15
|
+
*
|
|
16
|
+
* @property {number} scaleX
|
|
17
|
+
*
|
|
18
|
+
* @property {number} scaleY
|
|
19
|
+
*/
|
|
20
|
+
|
|
6
21
|
'use strict';
|
|
22
|
+
|
|
7
23
|
import H from './Globals.js';
|
|
8
24
|
import './Utilities.js';
|
|
9
25
|
import './Options.js';
|
|
10
26
|
import './Legend.js';
|
|
11
27
|
import './Point.js';
|
|
12
28
|
import './SvgRenderer.js';
|
|
29
|
+
|
|
13
30
|
var addEvent = H.addEvent,
|
|
14
31
|
animObject = H.animObject,
|
|
15
32
|
arrayMax = H.arrayMax,
|
|
@@ -40,8 +57,8 @@ var addEvent = H.addEvent,
|
|
|
40
57
|
/**
|
|
41
58
|
* This is the base series prototype that all other series types inherit from.
|
|
42
59
|
* A new series is initialized either through the
|
|
43
|
-
* {@link https://api.highcharts.com/highcharts/series|series}
|
|
44
|
-
* or after the chart is initialized, through
|
|
60
|
+
* {@link https://api.highcharts.com/highcharts/series|series}
|
|
61
|
+
* option structure, or after the chart is initialized, through
|
|
45
62
|
* {@link Highcharts.Chart#addSeries}.
|
|
46
63
|
*
|
|
47
64
|
* The object can be accessed in a number of ways. All series and point event
|
|
@@ -51,8 +68,8 @@ var addEvent = H.addEvent,
|
|
|
51
68
|
* reference.
|
|
52
69
|
*
|
|
53
70
|
* Another way to reference the series programmatically is by `id`. Add an id
|
|
54
|
-
* in the series configuration options, and get the series object by
|
|
55
|
-
* Highcharts.Chart#get}.
|
|
71
|
+
* in the series configuration options, and get the series object by
|
|
72
|
+
* {@link Highcharts.Chart#get}.
|
|
56
73
|
*
|
|
57
74
|
* Configuration options for the series are given in three levels. Options for
|
|
58
75
|
* all series in a chart are given in the
|
|
@@ -65,34 +82,51 @@ var addEvent = H.addEvent,
|
|
|
65
82
|
* The data in the series is stored in various arrays.
|
|
66
83
|
*
|
|
67
84
|
* - First, `series.options.data` contains all the original config options for
|
|
68
|
-
*
|
|
85
|
+
* each point whether added by options or methods like `series.addPoint`.
|
|
86
|
+
*
|
|
69
87
|
* - Next, `series.data` contains those values converted to points, but in case
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
88
|
+
* the series data length exceeds the `cropThreshold`, or if the data is
|
|
89
|
+
* grouped, `series.data` doesn't contain all the points. It only contains the
|
|
90
|
+
* points that have been created on demand.
|
|
91
|
+
*
|
|
73
92
|
* - Then there's `series.points` that contains all currently visible point
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
93
|
+
* objects. In case of cropping, the cropped-away points are not part of this
|
|
94
|
+
* array. The `series.points` array starts at `series.cropStart` compared to
|
|
95
|
+
* `series.data` and `series.options.data`. If however the series data is
|
|
96
|
+
* grouped, these can't be correlated one to one.
|
|
97
|
+
*
|
|
78
98
|
* - `series.xData` and `series.processedXData` contain clean x values,
|
|
79
|
-
*
|
|
99
|
+
* equivalent to `series.data` and `series.points`.
|
|
100
|
+
*
|
|
80
101
|
* - `series.yData` and `series.processedYData` contain clean y values,
|
|
81
|
-
*
|
|
102
|
+
* equivalent to `series.data` and `series.points`.
|
|
103
|
+
*
|
|
104
|
+
* @class
|
|
105
|
+
* @name Highcharts.Series
|
|
106
|
+
*
|
|
107
|
+
* @param {Highcharts.Chart} chart
|
|
108
|
+
* The chart instance.
|
|
109
|
+
*
|
|
110
|
+
* @param {Highcharts.PlotSeriesOptions} options
|
|
111
|
+
* The series options.
|
|
112
|
+
*//**
|
|
113
|
+
* The line series is the base type and is therefor the series base prototype.
|
|
82
114
|
*
|
|
83
|
-
* @
|
|
84
|
-
* @
|
|
85
|
-
*
|
|
86
|
-
* @param {Options.plotOptions.series} options
|
|
87
|
-
* The series options.
|
|
115
|
+
* @private
|
|
116
|
+
* @class
|
|
117
|
+
* @name Highcharts.seriesTypes.line
|
|
88
118
|
*
|
|
119
|
+
* @augments Highcharts.Series
|
|
89
120
|
*/
|
|
121
|
+
H.Series = H.seriesType('line', null
|
|
90
122
|
|
|
91
123
|
/**
|
|
92
124
|
* General options for all series types.
|
|
125
|
+
*
|
|
93
126
|
* @optionparent plotOptions.series
|
|
94
127
|
*/
|
|
95
|
-
|
|
128
|
+
, { // base series options
|
|
129
|
+
|
|
96
130
|
|
|
97
131
|
|
|
98
132
|
/**
|
|
@@ -102,7 +136,7 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
102
136
|
* run if there is more than 250 points totally. To disable this cap, set
|
|
103
137
|
* `animationLimit` to `Infinity`.
|
|
104
138
|
*
|
|
105
|
-
* @type
|
|
139
|
+
* @type {number}
|
|
106
140
|
* @apioption plotOptions.series.animationLimit
|
|
107
141
|
*/
|
|
108
142
|
|
|
@@ -110,13 +144,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
110
144
|
* Allow this series' points to be selected by clicking on the graphic
|
|
111
145
|
* (columns, point markers, pie slices, map areas etc).
|
|
112
146
|
*
|
|
113
|
-
* @see
|
|
147
|
+
* @see {@link Highcharts.Chart#getSelectedPoints}.
|
|
114
148
|
*
|
|
115
|
-
* @type {Boolean}
|
|
116
149
|
* @sample {highcharts} highcharts/plotoptions/series-allowpointselect-line/
|
|
117
150
|
* Line
|
|
118
|
-
* @sample {highcharts}
|
|
119
|
-
* highcharts/plotoptions/series-allowpointselect-column/
|
|
151
|
+
* @sample {highcharts} highcharts/plotoptions/series-allowpointselect-column/
|
|
120
152
|
* Column
|
|
121
153
|
* @sample {highcharts} highcharts/plotoptions/series-allowpointselect-pie/
|
|
122
154
|
* Pie
|
|
@@ -124,13 +156,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
124
156
|
* Map area
|
|
125
157
|
* @sample {highmaps} maps/plotoptions/mapbubble-allowpointselect/
|
|
126
158
|
* Map bubble
|
|
127
|
-
*
|
|
159
|
+
*
|
|
128
160
|
* @since 1.2.0
|
|
129
161
|
*/
|
|
130
162
|
allowPointSelect: false,
|
|
131
163
|
|
|
132
|
-
|
|
133
|
-
|
|
134
164
|
/**
|
|
135
165
|
* If true, a checkbox is displayed next to the legend item to allow
|
|
136
166
|
* selecting the series. The state of the checkbox is determined by
|
|
@@ -140,16 +170,13 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
140
170
|
* Note that if a `colorAxis` is defined, the color axis is represented in
|
|
141
171
|
* the legend, not the series.
|
|
142
172
|
*
|
|
143
|
-
* @type {Boolean}
|
|
144
173
|
* @sample {highcharts} highcharts/plotoptions/series-showcheckbox-true/
|
|
145
174
|
* Show select box
|
|
146
|
-
*
|
|
175
|
+
*
|
|
147
176
|
* @since 1.2.0
|
|
148
177
|
*/
|
|
149
178
|
showCheckbox: false,
|
|
150
179
|
|
|
151
|
-
|
|
152
|
-
|
|
153
180
|
/**
|
|
154
181
|
* Enable or disable the initial animation when a series is displayed.
|
|
155
182
|
* The animation can also be set as a configuration object. Please
|
|
@@ -166,15 +193,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
166
193
|
*
|
|
167
194
|
* <dt>easing</dt>
|
|
168
195
|
*
|
|
169
|
-
* <dd>
|
|
170
|
-
* See the _Custom easing function_ demo below.</dd>
|
|
196
|
+
* <dd>Can be a string reference to an easing function set on the `Math`
|
|
197
|
+
* object or a function. See the _Custom easing function_ demo below.</dd>
|
|
171
198
|
*
|
|
172
199
|
* </dl>
|
|
173
200
|
*
|
|
174
201
|
* Due to poor performance, animation is disabled in old IE browsers
|
|
175
202
|
* for several chart types.
|
|
176
203
|
*
|
|
177
|
-
* @type {Boolean}
|
|
178
204
|
* @sample {highcharts} highcharts/plotoptions/series-animation-disabled/
|
|
179
205
|
* Animation disabled
|
|
180
206
|
* @sample {highcharts} highcharts/plotoptions/series-animation-slower/
|
|
@@ -189,22 +215,47 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
189
215
|
* Animation enabled on map series
|
|
190
216
|
* @sample {highmaps} maps/plotoptions/mapbubble-animation-false/
|
|
191
217
|
* Disabled on mapbubble series
|
|
218
|
+
*
|
|
219
|
+
* @type {boolean|Highcharts.AnimationOptionsObject}
|
|
192
220
|
* @default {highcharts} true
|
|
193
221
|
* @default {highstock} true
|
|
194
222
|
* @default {highmaps} false
|
|
195
223
|
*/
|
|
196
224
|
animation: {
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @type {number}
|
|
228
|
+
* @default 1000
|
|
229
|
+
* @apioption plotOptions.series.animation.duration
|
|
230
|
+
*/
|
|
197
231
|
duration: 1000
|
|
198
232
|
},
|
|
199
233
|
|
|
200
234
|
/**
|
|
201
235
|
* An additional class name to apply to the series' graphical elements. This
|
|
202
236
|
* option does not replace default class names of the graphical element.
|
|
203
|
-
*
|
|
204
|
-
* @
|
|
237
|
+
*
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @since 5.0.0
|
|
205
240
|
* @apioption plotOptions.series.className
|
|
206
241
|
*/
|
|
207
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Disable this option to allow series rendering in the whole plotting
|
|
245
|
+
* area.
|
|
246
|
+
*
|
|
247
|
+
* **Note:** Clipping should be always enabled when
|
|
248
|
+
* [chart.zoomType](#chart.zoomType) is set
|
|
249
|
+
*
|
|
250
|
+
* @sample {highcharts} highcharts/plotoptions/series-clip/
|
|
251
|
+
* Disabled clipping
|
|
252
|
+
*
|
|
253
|
+
* @default true
|
|
254
|
+
* @type {boolean}
|
|
255
|
+
* @since 3.0.0
|
|
256
|
+
* @apioption plotOptions.series.clip
|
|
257
|
+
*/
|
|
258
|
+
|
|
208
259
|
/**
|
|
209
260
|
* The main color of the series. In line type series it applies to the
|
|
210
261
|
* line and the point markers unless otherwise specified. In bar type
|
|
@@ -222,15 +273,18 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
222
273
|
* color to denote the value of each point. The series color can however be
|
|
223
274
|
* used in a map with multiple series holding categorized data.
|
|
224
275
|
*
|
|
225
|
-
* @type {Color}
|
|
226
276
|
* @sample {highcharts} highcharts/plotoptions/series-color-general/
|
|
227
277
|
* General plot option
|
|
228
278
|
* @sample {highcharts} highcharts/plotoptions/series-color-specific/
|
|
229
279
|
* One specific series
|
|
230
280
|
* @sample {highcharts} highcharts/plotoptions/series-color-area/
|
|
231
281
|
* Area color
|
|
282
|
+
* @sample {highcharts} highcharts/series/infographic/
|
|
283
|
+
* Pattern fill
|
|
232
284
|
* @sample {highmaps} maps/demo/category-map/
|
|
233
285
|
* Category map by multiple series
|
|
286
|
+
*
|
|
287
|
+
* @type {Highcharts.ColorString}
|
|
234
288
|
* @apioption plotOptions.series.color
|
|
235
289
|
*/
|
|
236
290
|
|
|
@@ -238,8 +292,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
238
292
|
* Styled mode only. A specific color index to use for the series, so its
|
|
239
293
|
* graphic representations are given the class name `highcharts-color-{n}`.
|
|
240
294
|
*
|
|
241
|
-
* @type
|
|
242
|
-
* @since
|
|
295
|
+
* @type {number}
|
|
296
|
+
* @since 5.0.0
|
|
243
297
|
* @apioption plotOptions.series.colorIndex
|
|
244
298
|
*/
|
|
245
299
|
|
|
@@ -248,13 +302,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
248
302
|
* Whether to connect a graph line across null points, or render a gap
|
|
249
303
|
* between the two points on either side of the null.
|
|
250
304
|
*
|
|
251
|
-
* @type {Boolean}
|
|
252
|
-
* @default false
|
|
253
305
|
* @sample {highcharts} highcharts/plotoptions/series-connectnulls-false/
|
|
254
306
|
* False by default
|
|
255
307
|
* @sample {highcharts} highcharts/plotoptions/series-connectnulls-true/
|
|
256
308
|
* True
|
|
257
|
-
*
|
|
309
|
+
*
|
|
310
|
+
* @type {boolean}
|
|
311
|
+
* @default false
|
|
312
|
+
* @product highcharts highstock
|
|
258
313
|
* @apioption plotOptions.series.connectNulls
|
|
259
314
|
*/
|
|
260
315
|
|
|
@@ -264,10 +319,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
264
319
|
* to the series, to signal to the user that the points and lines can
|
|
265
320
|
* be clicked.
|
|
266
321
|
*
|
|
267
|
-
*
|
|
268
|
-
* @type {String}
|
|
269
|
-
* @see In styled mode, the series cursor can be set with the same classes
|
|
322
|
+
* In styled mode, the series cursor can be set with the same classes
|
|
270
323
|
* as listed under [series.color](#plotOptions.series.color).
|
|
324
|
+
*
|
|
271
325
|
* @sample {highcharts} highcharts/plotoptions/series-cursor-line/
|
|
272
326
|
* On line graph
|
|
273
327
|
* @sample {highcharts} highcharts/plotoptions/series-cursor-column/
|
|
@@ -280,31 +334,18 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
280
334
|
* Map area
|
|
281
335
|
* @sample {highmaps} maps/plotoptions/mapbubble-allowpointselect/
|
|
282
336
|
* Map bubble
|
|
283
|
-
*
|
|
337
|
+
*
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @validvalue ["crosshair","default","help","none","pointer"]
|
|
340
|
+
* @apioption plotOptions.series.cursor
|
|
284
341
|
*/
|
|
285
342
|
|
|
286
343
|
|
|
287
344
|
/**
|
|
288
345
|
* A name for the dash style to use for the graph, or for some series types
|
|
289
|
-
* the outline of each shape.
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
* * ShortDash
|
|
293
|
-
* * ShortDot
|
|
294
|
-
* * ShortDashDot
|
|
295
|
-
* * ShortDashDotDot
|
|
296
|
-
* * Dot
|
|
297
|
-
* * Dash
|
|
298
|
-
* * LongDash
|
|
299
|
-
* * DashDot
|
|
300
|
-
* * LongDashDot
|
|
301
|
-
* * LongDashDotDot
|
|
302
|
-
*
|
|
303
|
-
* @validvalue ["Solid", "ShortDash", "ShortDot", "ShortDashDot",
|
|
304
|
-
* "ShortDashDotDot", "Dot", "Dash" ,"LongDash", "DashDot",
|
|
305
|
-
* "LongDashDot", "LongDashDotDot"]
|
|
306
|
-
* @type {String}
|
|
307
|
-
* @see In styled mode, the [stroke dash-array](http://jsfiddle.net/gh/get/
|
|
346
|
+
* the outline of each shape.
|
|
347
|
+
*
|
|
348
|
+
* In styled mode, the [stroke dash-array](https://jsfiddle.net/gh/get/
|
|
308
349
|
* library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/
|
|
309
350
|
* series-dashstyle/) can be set with the same classes as listed under
|
|
310
351
|
* [series.color](#plotOptions.series.color).
|
|
@@ -319,9 +360,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
319
360
|
* Possible values demonstrated
|
|
320
361
|
* @sample {highmaps} maps/plotoptions/series-dashstyle/
|
|
321
362
|
* Dotted borders on a map
|
|
322
|
-
*
|
|
323
|
-
* @
|
|
324
|
-
* @
|
|
363
|
+
*
|
|
364
|
+
* @type {string}
|
|
365
|
+
* @default Solid
|
|
366
|
+
* @since 2.1
|
|
367
|
+
* @validvalue ["Dash","DashDot","Dot","LongDash","LongDashDot",
|
|
368
|
+
* "LongDashDotDot","ShortDash","ShortDashDot",
|
|
369
|
+
* "ShortDashDotDot","ShortDot","Solid"]
|
|
370
|
+
* @apioption plotOptions.series.dashStyle
|
|
325
371
|
*/
|
|
326
372
|
|
|
327
373
|
/**
|
|
@@ -330,29 +376,23 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
330
376
|
* A description of the series to add to the screen reader information
|
|
331
377
|
* about the series.
|
|
332
378
|
*
|
|
333
|
-
* @type
|
|
334
|
-
* @
|
|
335
|
-
* @since 5.0.0
|
|
379
|
+
* @type {string}
|
|
380
|
+
* @since 5.0.0
|
|
336
381
|
* @apioption plotOptions.series.description
|
|
337
382
|
*/
|
|
338
383
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
384
|
/**
|
|
344
385
|
* Enable or disable the mouse tracking for a specific series. This
|
|
345
386
|
* includes point tooltips and click events on graphs and points. For
|
|
346
387
|
* large datasets it improves performance.
|
|
347
388
|
*
|
|
348
|
-
* @
|
|
349
|
-
* @sample {highcharts}
|
|
350
|
-
* highcharts/plotoptions/series-enablemousetracking-false/
|
|
389
|
+
* @sample {highcharts} highcharts/plotoptions/series-enablemousetracking-false/
|
|
351
390
|
* No mouse tracking
|
|
352
|
-
* @sample {highmaps}
|
|
353
|
-
* maps/plotoptions/series-enablemousetracking-false/
|
|
391
|
+
* @sample {highmaps} maps/plotoptions/series-enablemousetracking-false/
|
|
354
392
|
* No mouse tracking
|
|
355
|
-
*
|
|
393
|
+
*
|
|
394
|
+
* @type {boolean}
|
|
395
|
+
* @default true
|
|
356
396
|
* @apioption plotOptions.series.enableMouseTracking
|
|
357
397
|
*/
|
|
358
398
|
|
|
@@ -365,11 +405,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
365
405
|
*
|
|
366
406
|
* Requires the Accessibility module.
|
|
367
407
|
*
|
|
368
|
-
* @type {Boolean}
|
|
369
408
|
* @sample highcharts/accessibility/art-grants/
|
|
370
409
|
* Accessible data visualization
|
|
371
|
-
*
|
|
372
|
-
* @
|
|
410
|
+
*
|
|
411
|
+
* @type {boolean}
|
|
412
|
+
* @since 5.0.12
|
|
373
413
|
* @apioption plotOptions.series.exposeElementToA11y
|
|
374
414
|
*/
|
|
375
415
|
|
|
@@ -379,69 +419,38 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
379
419
|
* Y axis adjusts to the min and max of the visible data. Cartesian
|
|
380
420
|
* series only.
|
|
381
421
|
*
|
|
382
|
-
* @type
|
|
383
|
-
* @default
|
|
384
|
-
* @since
|
|
385
|
-
* @product
|
|
422
|
+
* @type {boolean}
|
|
423
|
+
* @default false
|
|
424
|
+
* @since 4.1.6
|
|
425
|
+
* @product highcharts highstock gantt
|
|
386
426
|
* @apioption plotOptions.series.getExtremesFromAll
|
|
387
427
|
*/
|
|
388
428
|
|
|
389
|
-
/**
|
|
390
|
-
* An id for the series. This can be used after render time to get a
|
|
391
|
-
* pointer to the series object through `chart.get()`.
|
|
392
|
-
*
|
|
393
|
-
* @type {String}
|
|
394
|
-
* @sample {highcharts} highcharts/plotoptions/series-id/ Get series by id
|
|
395
|
-
* @since 1.2.0
|
|
396
|
-
* @apioption series.id
|
|
397
|
-
*/
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* The index of the series in the chart, affecting the internal index
|
|
401
|
-
* in the `chart.series` array, the visible Z index as well as the order
|
|
402
|
-
* in the legend.
|
|
403
|
-
*
|
|
404
|
-
* @type {Number}
|
|
405
|
-
* @default undefined
|
|
406
|
-
* @since 2.3.0
|
|
407
|
-
* @apioption series.index
|
|
408
|
-
*/
|
|
409
|
-
|
|
410
429
|
/**
|
|
411
430
|
* An array specifying which option maps to which key in the data point
|
|
412
431
|
* array. This makes it convenient to work with unstructured data arrays
|
|
413
432
|
* from different sources.
|
|
414
433
|
*
|
|
415
|
-
* @type {Array<String>}
|
|
416
434
|
* @see [series.data](#series.line.data)
|
|
435
|
+
*
|
|
417
436
|
* @sample {highcharts|highstock} highcharts/series/data-keys/
|
|
418
437
|
* An extended data array with keys
|
|
419
438
|
* @sample {highcharts|highstock} highcharts/series/data-nested-keys/
|
|
420
439
|
* Nested keys used to access object properties
|
|
421
|
-
* @since 4.1.6
|
|
422
|
-
* @product highcharts highstock
|
|
423
|
-
* @apioption plotOptions.series.keys
|
|
424
|
-
*/
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* The sequential index of the series in the legend.
|
|
428
440
|
*
|
|
429
|
-
* @
|
|
430
|
-
*
|
|
431
|
-
* @
|
|
432
|
-
* @see [legend.reversed](#legend.reversed),
|
|
433
|
-
* [yAxis.reversedStacks](#yAxis.reversedStacks)
|
|
434
|
-
* @apioption series.legendIndex
|
|
441
|
+
* @type {Array<string>}
|
|
442
|
+
* @since 4.1.6
|
|
443
|
+
* @apioption plotOptions.series.keys
|
|
435
444
|
*/
|
|
436
445
|
|
|
437
446
|
/**
|
|
438
447
|
* The line cap used for line ends and line joins on the graph.
|
|
439
448
|
*
|
|
449
|
+
* @type {string}
|
|
450
|
+
* @default round
|
|
451
|
+
* @product highcharts highstock
|
|
440
452
|
* @validvalue ["round", "square"]
|
|
441
|
-
* @
|
|
442
|
-
* @default round
|
|
443
|
-
* @product highcharts highstock
|
|
444
|
-
* @apioption plotOptions.series.linecap
|
|
453
|
+
* @apioption plotOptions.series.linecap
|
|
445
454
|
*/
|
|
446
455
|
|
|
447
456
|
/**
|
|
@@ -450,30 +459,39 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
450
459
|
* two series are linked, only the first one appears in the legend.
|
|
451
460
|
* Toggling the visibility of this also toggles the linked series.
|
|
452
461
|
*
|
|
453
|
-
* @
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
* @
|
|
457
|
-
* @
|
|
462
|
+
* @sample {highcharts|highstock} highcharts/demo/arearange-line/
|
|
463
|
+
* Linked series
|
|
464
|
+
*
|
|
465
|
+
* @type {string}
|
|
466
|
+
* @since 3.0
|
|
467
|
+
* @product highcharts highstock gantt
|
|
458
468
|
* @apioption plotOptions.series.linkedTo
|
|
459
469
|
*/
|
|
460
470
|
|
|
461
471
|
/**
|
|
462
|
-
*
|
|
472
|
+
* Options for the corresponding navigator series if `showInNavigator`
|
|
473
|
+
* is `true` for this series. Available options are the same as any
|
|
474
|
+
* series, documented at [plotOptions](#plotOptions.series) and
|
|
475
|
+
* [series](#series).
|
|
463
476
|
*
|
|
464
|
-
*
|
|
465
|
-
*
|
|
466
|
-
*
|
|
467
|
-
*
|
|
477
|
+
* These options are merged with options in [navigator.series](
|
|
478
|
+
* #navigator.series), and will take precedence if the same option is
|
|
479
|
+
* defined both places.
|
|
480
|
+
*
|
|
481
|
+
* @see [navigator.series](#navigator.series)
|
|
482
|
+
*
|
|
483
|
+
* @type {*}
|
|
484
|
+
* @since 5.0.0
|
|
485
|
+
* @product highstock
|
|
486
|
+
* @apioption plotOptions.series.navigatorOptions
|
|
468
487
|
*/
|
|
469
488
|
|
|
470
489
|
/**
|
|
471
490
|
* The color for the parts of the graph or points that are below the
|
|
472
491
|
* [threshold](#plotOptions.series.threshold).
|
|
473
492
|
*
|
|
474
|
-
* @
|
|
475
|
-
*
|
|
476
|
-
* option to `true` combined with the `.highcharts-negative` class name.
|
|
493
|
+
* @see In styled mode, a negative color is applied by setting this option
|
|
494
|
+
* to `true` combined with the `.highcharts-negative` class name.
|
|
477
495
|
*
|
|
478
496
|
* @sample {highcharts} highcharts/plotoptions/series-negative-color/
|
|
479
497
|
* Spline, area and column
|
|
@@ -489,8 +507,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
489
507
|
* Spline, area and column
|
|
490
508
|
* @sample {highmaps} highcharts/plotoptions/arearange-negativecolor/
|
|
491
509
|
* Arearange
|
|
492
|
-
*
|
|
493
|
-
* @
|
|
510
|
+
*
|
|
511
|
+
* @type {Highcharts.ColorString}
|
|
512
|
+
* @since 3.0
|
|
494
513
|
* @apioption plotOptions.series.negativeColor
|
|
495
514
|
*/
|
|
496
515
|
|
|
@@ -499,8 +518,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
499
518
|
* #accessibility.pointDescriptionFormatter), but for an individual series.
|
|
500
519
|
* Overrides the chart wide configuration.
|
|
501
520
|
*
|
|
502
|
-
* @type
|
|
503
|
-
* @since
|
|
521
|
+
* @type {Function}
|
|
522
|
+
* @since 5.0.12
|
|
504
523
|
* @apioption plotOptions.series.pointDescriptionFormatter
|
|
505
524
|
*/
|
|
506
525
|
|
|
@@ -517,13 +536,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
517
536
|
* Please note that this options applies to the _series data_, not the
|
|
518
537
|
* interval of the axis ticks, which is independent.
|
|
519
538
|
*
|
|
520
|
-
* @type {Number}
|
|
521
539
|
* @sample {highcharts} highcharts/plotoptions/series-pointstart-datetime/
|
|
522
540
|
* Datetime X axis
|
|
523
541
|
* @sample {highstock} stock/plotoptions/pointinterval-pointstart/
|
|
524
542
|
* Using pointStart and pointInterval
|
|
525
|
-
*
|
|
526
|
-
* @
|
|
543
|
+
*
|
|
544
|
+
* @type {number}
|
|
545
|
+
* @default 1
|
|
546
|
+
* @product highcharts highstock gantt
|
|
527
547
|
* @apioption plotOptions.series.pointInterval
|
|
528
548
|
*/
|
|
529
549
|
|
|
@@ -538,19 +558,20 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
538
558
|
* Please note that this options applies to the _series data_, not the
|
|
539
559
|
* interval of the axis ticks, which is independent.
|
|
540
560
|
*
|
|
541
|
-
* @validvalue [null, "day", "month", "year"]
|
|
542
|
-
* @type {String}
|
|
543
561
|
* @sample {highcharts} highcharts/plotoptions/series-pointintervalunit/
|
|
544
562
|
* One point a month
|
|
545
563
|
* @sample {highstock} highcharts/plotoptions/series-pointintervalunit/
|
|
546
564
|
* One point a month
|
|
547
|
-
*
|
|
548
|
-
* @
|
|
549
|
-
* @
|
|
565
|
+
*
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @since 4.1.0
|
|
568
|
+
* @product highcharts highstock gantt
|
|
569
|
+
* @validvalue ["day", "month", "year"]
|
|
570
|
+
* @apioption plotOptions.series.pointIntervalUnit
|
|
550
571
|
*/
|
|
551
572
|
|
|
552
573
|
/**
|
|
553
|
-
* Possible values: `
|
|
574
|
+
* Possible values: `"on"`, `"between"`, `number`.
|
|
554
575
|
*
|
|
555
576
|
* In a column chart, when pointPlacement is `"on"`, the point will
|
|
556
577
|
* not create any padding of the X axis. In a polar column chart this
|
|
@@ -569,20 +590,22 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
569
590
|
* #plotOptions.series.pointRange) to work. For column series this is
|
|
570
591
|
* computed, but for line-type series it needs to be set.
|
|
571
592
|
*
|
|
572
|
-
*
|
|
593
|
+
* For the `xrange` series type and gantt charts, if the Y axis is a
|
|
594
|
+
* category axis, the `pointPlacement` applies to the Y axis rather than
|
|
595
|
+
* the (typically datetime) X axis.
|
|
596
|
+
*
|
|
597
|
+
* Defaults to `undefined` in cartesian charts, `"between"` in polar charts.
|
|
573
598
|
*
|
|
574
|
-
* @validvalue [null, "on", "between"]
|
|
575
|
-
* @type {String|Number}
|
|
576
599
|
* @see [xAxis.tickmarkPlacement](#xAxis.tickmarkPlacement)
|
|
577
|
-
*
|
|
578
|
-
*
|
|
600
|
+
*
|
|
601
|
+
* @sample {highcharts|highstock} highcharts/plotoptions/series-pointplacement-between/
|
|
579
602
|
* Between in a column chart
|
|
580
|
-
* @sample {highcharts|highstock}
|
|
581
|
-
* highcharts/plotoptions/series-pointplacement-numeric/
|
|
603
|
+
* @sample {highcharts|highstock} highcharts/plotoptions/series-pointplacement-numeric/
|
|
582
604
|
* Numeric placement for custom layout
|
|
583
|
-
*
|
|
584
|
-
* @
|
|
585
|
-
* @
|
|
605
|
+
*
|
|
606
|
+
* @type {string|number}
|
|
607
|
+
* @since 2.3.0
|
|
608
|
+
* @product highcharts highstock gantt
|
|
586
609
|
* @apioption plotOptions.series.pointPlacement
|
|
587
610
|
*/
|
|
588
611
|
|
|
@@ -591,15 +614,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
591
614
|
* on what value to start. For example, if a series contains one yearly
|
|
592
615
|
* value starting from 1945, set pointStart to 1945.
|
|
593
616
|
*
|
|
594
|
-
* @type {Number}
|
|
595
617
|
* @sample {highcharts} highcharts/plotoptions/series-pointstart-linear/
|
|
596
618
|
* Linear
|
|
597
619
|
* @sample {highcharts} highcharts/plotoptions/series-pointstart-datetime/
|
|
598
620
|
* Datetime
|
|
599
621
|
* @sample {highstock} stock/plotoptions/pointinterval-pointstart/
|
|
600
622
|
* Using pointStart and pointInterval
|
|
601
|
-
*
|
|
602
|
-
* @
|
|
623
|
+
*
|
|
624
|
+
* @type {number}
|
|
625
|
+
* @default 0
|
|
626
|
+
* @product highcharts highstock gantt
|
|
603
627
|
* @apioption plotOptions.series.pointStart
|
|
604
628
|
*/
|
|
605
629
|
|
|
@@ -608,22 +632,25 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
608
632
|
* the checkbox next to the series name in the legend will be checked for a
|
|
609
633
|
* selected series.
|
|
610
634
|
*
|
|
611
|
-
* @type {Boolean}
|
|
612
635
|
* @sample {highcharts} highcharts/plotoptions/series-selected/
|
|
613
636
|
* One out of two series selected
|
|
614
|
-
*
|
|
615
|
-
* @
|
|
637
|
+
*
|
|
638
|
+
* @type {boolean}
|
|
639
|
+
* @default false
|
|
640
|
+
* @since 1.2.0
|
|
616
641
|
* @apioption plotOptions.series.selected
|
|
617
642
|
*/
|
|
618
643
|
|
|
619
644
|
/**
|
|
620
645
|
* Whether to apply a drop shadow to the graph line. Since 2.3 the shadow
|
|
621
646
|
* can be an object configuration containing `color`, `offsetX`, `offsetY`,
|
|
622
|
-
*
|
|
647
|
+
* `opacity` and `width`.
|
|
623
648
|
*
|
|
624
|
-
* @
|
|
625
|
-
*
|
|
626
|
-
*
|
|
649
|
+
* @sample {highcharts} highcharts/plotoptions/series-shadow/
|
|
650
|
+
* Shadow enabled
|
|
651
|
+
*
|
|
652
|
+
* @type {boolean|Highcharts.ShadowOptionsObject}
|
|
653
|
+
* @default false
|
|
627
654
|
* @apioption plotOptions.series.shadow
|
|
628
655
|
*/
|
|
629
656
|
|
|
@@ -632,45 +659,42 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
632
659
|
* The default value is `true` for standalone series, `false` for linked
|
|
633
660
|
* series.
|
|
634
661
|
*
|
|
635
|
-
* @type {Boolean}
|
|
636
662
|
* @sample {highcharts} highcharts/plotoptions/series-showinlegend/
|
|
637
663
|
* One series in the legend, one hidden
|
|
638
|
-
*
|
|
664
|
+
*
|
|
665
|
+
* @type {boolean}
|
|
666
|
+
* @default true
|
|
639
667
|
* @apioption plotOptions.series.showInLegend
|
|
640
668
|
*/
|
|
641
669
|
|
|
642
670
|
/**
|
|
643
|
-
*
|
|
644
|
-
*
|
|
671
|
+
* Whether or not to show the series in the navigator. Takes precedence
|
|
672
|
+
* over [navigator.baseSeries](#navigator.baseSeries) if defined.
|
|
645
673
|
*
|
|
646
|
-
* @type
|
|
647
|
-
* @since
|
|
648
|
-
* @
|
|
674
|
+
* @type {boolean}
|
|
675
|
+
* @since 5.0.0
|
|
676
|
+
* @product highstock
|
|
677
|
+
* @apioption plotOptions.series.showInNavigator
|
|
649
678
|
*/
|
|
650
679
|
|
|
651
680
|
/**
|
|
652
|
-
*
|
|
653
|
-
*
|
|
654
|
-
*
|
|
655
|
-
*
|
|
656
|
-
* @
|
|
657
|
-
* @
|
|
658
|
-
* @default null
|
|
659
|
-
* @since 2.1
|
|
660
|
-
* @product highcharts highstock
|
|
661
|
-
* @apioption series.stack
|
|
681
|
+
* If set to `true`, the accessibility module will skip past the points
|
|
682
|
+
* in this series for keyboard navigation.
|
|
683
|
+
*
|
|
684
|
+
* @type {boolean}
|
|
685
|
+
* @since 5.0.12
|
|
686
|
+
* @apioption plotOptions.series.skipKeyboardNavigation
|
|
662
687
|
*/
|
|
663
688
|
|
|
664
689
|
/**
|
|
665
|
-
* Whether to stack the values of each series on top of each other.
|
|
666
|
-
*
|
|
690
|
+
* Whether to stack the values of each series on top of each other. Possible
|
|
691
|
+
* values are `undefined` to disable, `"normal"` to stack by value or
|
|
667
692
|
* `"percent"`. When stacking is enabled, data must be sorted in ascending
|
|
668
693
|
* X order. A special stacking option is with the streamgraph series type,
|
|
669
694
|
* where the stacking option is set to `"stream"`.
|
|
670
695
|
*
|
|
671
|
-
* @validvalue [null, "normal", "percent"]
|
|
672
|
-
* @type {String}
|
|
673
696
|
* @see [yAxis.reversedStacks](#yAxis.reversedStacks)
|
|
697
|
+
*
|
|
674
698
|
* @sample {highcharts} highcharts/plotoptions/series-stacking-line/
|
|
675
699
|
* Line
|
|
676
700
|
* @sample {highcharts} highcharts/plotoptions/series-stacking-column/
|
|
@@ -681,8 +705,7 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
681
705
|
* Area
|
|
682
706
|
* @sample {highcharts} highcharts/plotoptions/series-stacking-percent-line/
|
|
683
707
|
* Line
|
|
684
|
-
* @sample {highcharts}
|
|
685
|
-
* highcharts/plotoptions/series-stacking-percent-column/
|
|
708
|
+
* @sample {highcharts} highcharts/plotoptions/series-stacking-percent-column/
|
|
686
709
|
* Column
|
|
687
710
|
* @sample {highcharts} highcharts/plotoptions/series-stacking-percent-bar/
|
|
688
711
|
* Bar
|
|
@@ -690,28 +713,29 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
690
713
|
* Area
|
|
691
714
|
* @sample {highstock} stock/plotoptions/stacking/
|
|
692
715
|
* Area
|
|
693
|
-
*
|
|
694
|
-
* @
|
|
695
|
-
* @
|
|
716
|
+
*
|
|
717
|
+
* @type {string}
|
|
718
|
+
* @product highcharts highstock
|
|
719
|
+
* @validvalue ["normal", "percent"]
|
|
720
|
+
* @apioption plotOptions.series.stacking
|
|
696
721
|
*/
|
|
697
722
|
|
|
698
723
|
/**
|
|
699
724
|
* Whether to apply steps to the line. Possible values are `left`, `center`
|
|
700
725
|
* and `right`.
|
|
701
726
|
*
|
|
702
|
-
* @validvalue [null, "left", "center", "right"]
|
|
703
|
-
* @type {String}
|
|
704
727
|
* @sample {highcharts} highcharts/plotoptions/line-step/
|
|
705
728
|
* Different step line options
|
|
706
729
|
* @sample {highcharts} highcharts/plotoptions/area-step/
|
|
707
730
|
* Stepped, stacked area
|
|
708
731
|
* @sample {highstock} stock/plotoptions/line-step/
|
|
709
732
|
* Step line
|
|
710
|
-
*
|
|
711
|
-
* @
|
|
712
|
-
* @since
|
|
713
|
-
* @product
|
|
714
|
-
* @
|
|
733
|
+
*
|
|
734
|
+
* @type {string}
|
|
735
|
+
* @since 1.2.5
|
|
736
|
+
* @product highcharts highstock
|
|
737
|
+
* @validvalue ["left", "center", "right"]
|
|
738
|
+
* @apioption plotOptions.series.step
|
|
715
739
|
*/
|
|
716
740
|
|
|
717
741
|
/**
|
|
@@ -719,99 +743,43 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
719
743
|
* series this is only used in conjunction with
|
|
720
744
|
* [negativeColor](#plotOptions.series.negativeColor).
|
|
721
745
|
*
|
|
722
|
-
* @type {Number}
|
|
723
746
|
* @see [softThreshold](#plotOptions.series.softThreshold).
|
|
724
|
-
* @default 0
|
|
725
|
-
* @since 3.0
|
|
726
|
-
* @product highcharts highstock
|
|
727
|
-
* @apioption plotOptions.series.threshold
|
|
728
|
-
*/
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* The type of series, for example `line` or `column`. By default, the
|
|
732
|
-
* series type is inherited from [chart.type](#chart.type), so unless the
|
|
733
|
-
* chart is a combination of series types, there is no need to set it on the
|
|
734
|
-
* series level.
|
|
735
747
|
*
|
|
736
|
-
* @
|
|
737
|
-
*
|
|
738
|
-
*
|
|
739
|
-
*
|
|
740
|
-
* @
|
|
741
|
-
* @sample {highcharts} highcharts/series/type/
|
|
742
|
-
* Line and column in the same chart
|
|
743
|
-
* @sample {highmaps} maps/demo/mapline-mappoint/
|
|
744
|
-
* Multiple types in the same map
|
|
745
|
-
* @apioption series.type
|
|
748
|
+
* @type {number}
|
|
749
|
+
* @default 0
|
|
750
|
+
* @since 3.0
|
|
751
|
+
* @product highcharts highstock
|
|
752
|
+
* @apioption plotOptions.series.threshold
|
|
746
753
|
*/
|
|
747
754
|
|
|
748
755
|
/**
|
|
749
756
|
* Set the initial visibility of the series.
|
|
750
757
|
*
|
|
751
|
-
* @type {Boolean}
|
|
752
758
|
* @sample {highcharts} highcharts/plotoptions/series-visible/
|
|
753
759
|
* Two series, one hidden and one visible
|
|
754
760
|
* @sample {highstock} stock/plotoptions/series-visibility/
|
|
755
761
|
* Hidden series
|
|
756
|
-
* @default true
|
|
757
|
-
* @apioption plotOptions.series.visible
|
|
758
|
-
*/
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* When using dual or multiple x axes, this number defines which xAxis
|
|
762
|
-
* the particular series is connected to. It refers to either the [axis
|
|
763
|
-
* id](#xAxis.id) or the index of the axis in the xAxis array, with
|
|
764
|
-
* 0 being the first.
|
|
765
|
-
*
|
|
766
|
-
* @type {Number|String}
|
|
767
|
-
* @default 0
|
|
768
|
-
* @product highcharts highstock
|
|
769
|
-
* @apioption series.xAxis
|
|
770
|
-
*/
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* When using dual or multiple y axes, this number defines which yAxis
|
|
774
|
-
* the particular series is connected to. It refers to either the [axis
|
|
775
|
-
* id](#yAxis.id) or the index of the axis in the yAxis array, with
|
|
776
|
-
* 0 being the first.
|
|
777
762
|
*
|
|
778
|
-
* @type
|
|
779
|
-
* @
|
|
780
|
-
*
|
|
781
|
-
* @default 0
|
|
782
|
-
* @product highcharts highstock
|
|
783
|
-
* @apioption series.yAxis
|
|
763
|
+
* @type {boolean}
|
|
764
|
+
* @default true
|
|
765
|
+
* @apioption plotOptions.series.visible
|
|
784
766
|
*/
|
|
785
767
|
|
|
786
768
|
/**
|
|
787
769
|
* Defines the Axis on which the zones are applied.
|
|
788
770
|
*
|
|
789
|
-
* @type {String}
|
|
790
771
|
* @see [zones](#plotOptions.series.zones)
|
|
772
|
+
*
|
|
791
773
|
* @sample {highcharts} highcharts/series/color-zones-zoneaxis-x/
|
|
792
774
|
* Zones on the X-Axis
|
|
793
775
|
* @sample {highstock} highcharts/series/color-zones-zoneaxis-x/
|
|
794
776
|
* Zones on the X-Axis
|
|
795
|
-
* @default y
|
|
796
|
-
* @since 4.1.0
|
|
797
|
-
* @product highcharts highstock
|
|
798
|
-
* @apioption plotOptions.series.zoneAxis
|
|
799
|
-
*/
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* Define the visual z index of the series.
|
|
803
777
|
*
|
|
804
|
-
* @type
|
|
805
|
-
* @
|
|
806
|
-
*
|
|
807
|
-
* @
|
|
808
|
-
*
|
|
809
|
-
* @sample {highstock} highcharts/plotoptions/series-zindex-default/
|
|
810
|
-
* With no z index, the series defined last are on top
|
|
811
|
-
* @sample {highstock} highcharts/plotoptions/series-zindex/
|
|
812
|
-
* With a z index, the series with the highest z index is on top
|
|
813
|
-
* @product highcharts highstock
|
|
814
|
-
* @apioption series.zIndex
|
|
778
|
+
* @type {string}
|
|
779
|
+
* @default y
|
|
780
|
+
* @since 4.1.0
|
|
781
|
+
* @product highcharts highstock
|
|
782
|
+
* @apioption plotOptions.series.zoneAxis
|
|
815
783
|
*/
|
|
816
784
|
|
|
817
785
|
/**
|
|
@@ -819,21 +787,21 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
819
787
|
* be attached to the series at run time using the `Highcharts.addEvent`
|
|
820
788
|
* function.
|
|
821
789
|
*/
|
|
790
|
+
events: {},
|
|
822
791
|
|
|
823
792
|
/**
|
|
824
793
|
* Fires after the series has finished its initial animation, or in
|
|
825
794
|
* case animation is disabled, immediately as the series is displayed.
|
|
826
795
|
*
|
|
827
|
-
* @
|
|
828
|
-
* @context Series
|
|
829
|
-
* @sample {highcharts}
|
|
830
|
-
* highcharts/plotoptions/series-events-afteranimate/
|
|
796
|
+
* @sample {highcharts} highcharts/plotoptions/series-events-afteranimate/
|
|
831
797
|
* Show label after animate
|
|
832
|
-
* @sample {highstock}
|
|
833
|
-
* highcharts/plotoptions/series-events-afteranimate/
|
|
798
|
+
* @sample {highstock} highcharts/plotoptions/series-events-afteranimate/
|
|
834
799
|
* Show label after animate
|
|
835
|
-
*
|
|
836
|
-
* @
|
|
800
|
+
*
|
|
801
|
+
* @type {Function}
|
|
802
|
+
* @since 4.0
|
|
803
|
+
* @product highcharts highstock
|
|
804
|
+
* @context Series
|
|
837
805
|
* @apioption plotOptions.series.events.afterAnimate
|
|
838
806
|
*/
|
|
839
807
|
|
|
@@ -844,28 +812,29 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
844
812
|
* found by `event.item`. Return `false` to prevent the default action
|
|
845
813
|
* which is to toggle the select state of the series.
|
|
846
814
|
*
|
|
847
|
-
* @
|
|
848
|
-
* @context Series
|
|
849
|
-
* @sample {highcharts}
|
|
850
|
-
* highcharts/plotoptions/series-events-checkboxclick/
|
|
815
|
+
* @sample {highcharts} highcharts/plotoptions/series-events-checkboxclick/
|
|
851
816
|
* Alert checkbox status
|
|
852
|
-
*
|
|
817
|
+
*
|
|
818
|
+
* @type {Function}
|
|
819
|
+
* @since 1.2.0
|
|
820
|
+
* @context Series
|
|
853
821
|
* @apioption plotOptions.series.events.checkboxClick
|
|
854
822
|
*/
|
|
855
823
|
|
|
856
824
|
/**
|
|
857
|
-
* Fires when the series is clicked. One parameter, `event`, is passed
|
|
858
|
-
*
|
|
825
|
+
* Fires when the series is clicked. One parameter, `event`, is passed to
|
|
826
|
+
* the function, containing common event information. Additionally,
|
|
859
827
|
* `event.point` holds a pointer to the nearest point on the graph.
|
|
860
828
|
*
|
|
861
|
-
* @type {Function}
|
|
862
|
-
* @context Series
|
|
863
829
|
* @sample {highcharts} highcharts/plotoptions/series-events-click/
|
|
864
830
|
* Alert click info
|
|
865
831
|
* @sample {highstock} stock/plotoptions/series-events-click/
|
|
866
832
|
* Alert click info
|
|
867
833
|
* @sample {highmaps} maps/plotoptions/series-events-click/
|
|
868
834
|
* Display click info in subtitle
|
|
835
|
+
*
|
|
836
|
+
* @type {Function}
|
|
837
|
+
* @context Series
|
|
869
838
|
* @apioption plotOptions.series.events.click
|
|
870
839
|
*/
|
|
871
840
|
|
|
@@ -873,11 +842,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
873
842
|
* Fires when the series is hidden after chart generation time, either
|
|
874
843
|
* by clicking the legend item or by calling `.hide()`.
|
|
875
844
|
*
|
|
876
|
-
* @type {Function}
|
|
877
|
-
* @context Series
|
|
878
845
|
* @sample {highcharts} highcharts/plotoptions/series-events-hide/
|
|
879
846
|
* Alert when the series is hidden by clicking the legend item
|
|
880
|
-
*
|
|
847
|
+
*
|
|
848
|
+
* @type {Function}
|
|
849
|
+
* @since 1.2.0
|
|
850
|
+
* @context Series
|
|
881
851
|
* @apioption plotOptions.series.events.hide
|
|
882
852
|
*/
|
|
883
853
|
|
|
@@ -887,11 +857,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
887
857
|
* is to toggle the visibility of the series. This can be prevented
|
|
888
858
|
* by returning `false` or calling `event.preventDefault()`.
|
|
889
859
|
*
|
|
890
|
-
* @
|
|
891
|
-
* @context Series
|
|
892
|
-
* @sample {highcharts}
|
|
893
|
-
* highcharts/plotoptions/series-events-legenditemclick/
|
|
860
|
+
* @sample {highcharts} highcharts/plotoptions/series-events-legenditemclick/
|
|
894
861
|
* Confirm hiding and showing
|
|
862
|
+
*
|
|
863
|
+
* @type {Function}
|
|
864
|
+
* @context Series
|
|
895
865
|
* @apioption plotOptions.series.events.legendItemClick
|
|
896
866
|
*/
|
|
897
867
|
|
|
@@ -902,14 +872,13 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
902
872
|
* doesn't happen before the mouse enters another graph or leaves the
|
|
903
873
|
* plot area.
|
|
904
874
|
*
|
|
905
|
-
* @
|
|
906
|
-
*
|
|
907
|
-
* @sample {highcharts}
|
|
908
|
-
* highcharts/plotoptions/series-events-mouseover-sticky/
|
|
909
|
-
* With sticky tracking by default
|
|
910
|
-
* @sample {highcharts}
|
|
911
|
-
* highcharts/plotoptions/series-events-mouseover-no-sticky/
|
|
875
|
+
* @sample {highcharts} highcharts/plotoptions/series-events-mouseover-sticky/
|
|
876
|
+
* With sticky tracking by default
|
|
877
|
+
* @sample {highcharts} highcharts/plotoptions/series-events-mouseover-no-sticky/
|
|
912
878
|
* Without sticky tracking
|
|
879
|
+
*
|
|
880
|
+
* @type {Function}
|
|
881
|
+
* @context Series
|
|
913
882
|
* @apioption plotOptions.series.events.mouseOut
|
|
914
883
|
*/
|
|
915
884
|
|
|
@@ -917,14 +886,13 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
917
886
|
* Fires when the mouse enters the graph. One parameter, `event`, is
|
|
918
887
|
* passed to the function, containing common event information.
|
|
919
888
|
*
|
|
920
|
-
* @
|
|
921
|
-
* @context Series
|
|
922
|
-
* @sample {highcharts}
|
|
923
|
-
* highcharts/plotoptions/series-events-mouseover-sticky/
|
|
889
|
+
* @sample {highcharts} highcharts/plotoptions/series-events-mouseover-sticky/
|
|
924
890
|
* With sticky tracking by default
|
|
925
|
-
* @sample {highcharts}
|
|
926
|
-
* highcharts/plotoptions/series-events-mouseover-no-sticky/
|
|
891
|
+
* @sample {highcharts} highcharts/plotoptions/series-events-mouseover-no-sticky/
|
|
927
892
|
* Without sticky tracking
|
|
893
|
+
*
|
|
894
|
+
* @type {Function}
|
|
895
|
+
* @context Series
|
|
928
896
|
* @apioption plotOptions.series.events.mouseOver
|
|
929
897
|
*/
|
|
930
898
|
|
|
@@ -932,16 +900,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
932
900
|
* Fires when the series is shown after chart generation time, either
|
|
933
901
|
* by clicking the legend item or by calling `.show()`.
|
|
934
902
|
*
|
|
935
|
-
* @type {Function}
|
|
936
|
-
* @context Series
|
|
937
903
|
* @sample {highcharts} highcharts/plotoptions/series-events-show/
|
|
938
904
|
* Alert when the series is shown by clicking the legend item.
|
|
939
|
-
*
|
|
905
|
+
*
|
|
906
|
+
* @type {Function}
|
|
907
|
+
* @since 1.2.0
|
|
908
|
+
* @context Series
|
|
940
909
|
* @apioption plotOptions.series.events.show
|
|
941
910
|
*/
|
|
942
|
-
events: {},
|
|
943
|
-
|
|
944
|
-
|
|
945
911
|
|
|
946
912
|
/**
|
|
947
913
|
* Options for the point markers of line-like series. Properties like
|
|
@@ -954,22 +920,24 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
954
920
|
* class names.
|
|
955
921
|
*/
|
|
956
922
|
marker: {
|
|
923
|
+
|
|
957
924
|
|
|
958
925
|
|
|
959
926
|
/**
|
|
960
|
-
* Enable or disable the point marker. If `
|
|
961
|
-
* when the data is dense, and shown for more widespread data
|
|
927
|
+
* Enable or disable the point marker. If `undefined`, the markers are
|
|
928
|
+
* hidden when the data is dense, and shown for more widespread data
|
|
929
|
+
* points.
|
|
962
930
|
*
|
|
963
|
-
* @type {Boolean}
|
|
964
931
|
* @sample {highcharts} highcharts/plotoptions/series-marker-enabled/
|
|
965
932
|
* Disabled markers
|
|
966
|
-
* @sample {highcharts}
|
|
967
|
-
* highcharts/plotoptions/series-marker-enabled-false/
|
|
933
|
+
* @sample {highcharts} highcharts/plotoptions/series-marker-enabled-false/
|
|
968
934
|
* Disabled in normal state but enabled on hover
|
|
969
935
|
* @sample {highstock} stock/plotoptions/series-marker/
|
|
970
936
|
* Enabled markers
|
|
971
|
-
*
|
|
972
|
-
* @
|
|
937
|
+
*
|
|
938
|
+
* @type {boolean}
|
|
939
|
+
* @default {highcharts} undefined
|
|
940
|
+
* @default {highstock} false
|
|
973
941
|
* @apioption plotOptions.series.marker.enabled
|
|
974
942
|
*/
|
|
975
943
|
|
|
@@ -977,22 +945,20 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
977
945
|
* Image markers only. Set the image width explicitly. When using this
|
|
978
946
|
* option, a `width` must also be set.
|
|
979
947
|
*
|
|
980
|
-
* @
|
|
981
|
-
* @sample {highcharts}
|
|
982
|
-
* highcharts/plotoptions/series-marker-width-height/
|
|
948
|
+
* @sample {highcharts} highcharts/plotoptions/series-marker-width-height/
|
|
983
949
|
* Fixed width and height
|
|
984
|
-
* @sample {highstock}
|
|
985
|
-
* highcharts/plotoptions/series-marker-width-height/
|
|
950
|
+
* @sample {highstock} highcharts/plotoptions/series-marker-width-height/
|
|
986
951
|
* Fixed width and height
|
|
987
|
-
*
|
|
988
|
-
* @
|
|
952
|
+
*
|
|
953
|
+
* @type {number}
|
|
954
|
+
* @since 4.0.4
|
|
989
955
|
* @apioption plotOptions.series.marker.height
|
|
990
956
|
*/
|
|
991
957
|
|
|
992
958
|
/**
|
|
993
|
-
* A predefined shape or symbol for the marker. When
|
|
994
|
-
* is pulled from options.symbols. Other possible values are
|
|
995
|
-
* "square", "diamond", "triangle" and "triangle-down".
|
|
959
|
+
* A predefined shape or symbol for the marker. When undefined, the
|
|
960
|
+
* symbol is pulled from options.symbols. Other possible values are
|
|
961
|
+
* "circle", "square", "diamond", "triangle" and "triangle-down".
|
|
996
962
|
*
|
|
997
963
|
* Additionally, the URL to a graphic can be given on this form:
|
|
998
964
|
* "url(graphic.png)". Note that for the image to be applied to exported
|
|
@@ -1002,14 +968,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1002
968
|
* `Highcharts.SVGRenderer.prototype.symbols`. The callback is then
|
|
1003
969
|
* used by its method name, as shown in the demo.
|
|
1004
970
|
*
|
|
1005
|
-
* @validvalue [null, "circle", "square", "diamond", "triangle",
|
|
1006
|
-
* "triangle-down"]
|
|
1007
|
-
* @type {String}
|
|
1008
971
|
* @sample {highcharts} highcharts/plotoptions/series-marker-symbol/
|
|
1009
972
|
* Predefined, graphic and custom markers
|
|
1010
973
|
* @sample {highstock} highcharts/plotoptions/series-marker-symbol/
|
|
1011
974
|
* Predefined, graphic and custom markers
|
|
1012
|
-
*
|
|
975
|
+
*
|
|
976
|
+
* @type {string}
|
|
1013
977
|
* @apioption plotOptions.series.marker.symbol
|
|
1014
978
|
*/
|
|
1015
979
|
|
|
@@ -1020,9 +984,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1020
984
|
* as multiples of the `marker.radius`. In other words, the default
|
|
1021
985
|
* value of 2 means points are hidden if overlapping horizontally.
|
|
1022
986
|
*
|
|
1023
|
-
* @since 6.0.5
|
|
1024
987
|
* @sample highcharts/plotoptions/series-marker-enabledthreshold
|
|
1025
988
|
* A higher threshold
|
|
989
|
+
*
|
|
990
|
+
* @since 6.0.5
|
|
1026
991
|
*/
|
|
1027
992
|
enabledThreshold: 2,
|
|
1028
993
|
|
|
@@ -1038,19 +1003,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1038
1003
|
* Image markers only. Set the image width explicitly. When using this
|
|
1039
1004
|
* option, a `height` must also be set.
|
|
1040
1005
|
*
|
|
1041
|
-
* @
|
|
1042
|
-
* @sample {highcharts}
|
|
1043
|
-
* highcharts/plotoptions/series-marker-width-height/
|
|
1006
|
+
* @sample {highcharts} highcharts/plotoptions/series-marker-width-height/
|
|
1044
1007
|
* Fixed width and height
|
|
1045
|
-
* @sample {highstock}
|
|
1046
|
-
* highcharts/plotoptions/series-marker-width-height/
|
|
1008
|
+
* @sample {highstock} highcharts/plotoptions/series-marker-width-height/
|
|
1047
1009
|
* Fixed width and height
|
|
1048
|
-
*
|
|
1049
|
-
* @
|
|
1010
|
+
*
|
|
1011
|
+
* @type {number}
|
|
1012
|
+
* @since 4.0.4
|
|
1050
1013
|
* @apioption plotOptions.series.marker.width
|
|
1051
1014
|
*/
|
|
1052
1015
|
|
|
1053
|
-
|
|
1054
1016
|
/**
|
|
1055
1017
|
* States for a single point marker.
|
|
1056
1018
|
*/
|
|
@@ -1059,73 +1021,68 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1059
1021
|
/**
|
|
1060
1022
|
* The normal state of a single point marker. Currently only used
|
|
1061
1023
|
* for setting animation when returning to normal state from hover.
|
|
1062
|
-
*
|
|
1063
|
-
* @type {Object}
|
|
1064
1024
|
*/
|
|
1065
1025
|
normal: {
|
|
1066
1026
|
/**
|
|
1067
1027
|
* Animation when returning to normal state after hovering.
|
|
1068
1028
|
*
|
|
1069
|
-
* @type {
|
|
1029
|
+
* @type {boolean|Highcharts.AnimationOptionsObject}
|
|
1070
1030
|
*/
|
|
1071
1031
|
animation: true
|
|
1072
1032
|
},
|
|
1073
1033
|
|
|
1074
1034
|
/**
|
|
1075
1035
|
* The hover state for a single point marker.
|
|
1076
|
-
*
|
|
1077
|
-
* @type {Object}
|
|
1078
1036
|
*/
|
|
1079
1037
|
hover: {
|
|
1080
1038
|
|
|
1081
1039
|
/**
|
|
1082
1040
|
* Animation when hovering over the marker.
|
|
1083
1041
|
*
|
|
1084
|
-
* @type {
|
|
1042
|
+
* @type {boolean|Highcharts.AnimationOptionsObject}
|
|
1085
1043
|
*/
|
|
1086
1044
|
animation: {
|
|
1045
|
+
|
|
1087
1046
|
duration: 50
|
|
1047
|
+
|
|
1088
1048
|
},
|
|
1089
1049
|
|
|
1090
1050
|
/**
|
|
1091
1051
|
* Enable or disable the point marker.
|
|
1092
1052
|
*
|
|
1093
|
-
* @sample {highcharts}
|
|
1094
|
-
* highcharts/plotoptions/series-marker-states-hover-enabled/
|
|
1053
|
+
* @sample {highcharts} highcharts/plotoptions/series-marker-states-hover-enabled/
|
|
1095
1054
|
* Disabled hover state
|
|
1096
1055
|
*/
|
|
1097
1056
|
enabled: true,
|
|
1098
1057
|
|
|
1099
1058
|
/**
|
|
1100
|
-
* The fill color of the marker in hover state. When
|
|
1101
|
-
* series' or point's fillColor for normal
|
|
1059
|
+
* The fill color of the marker in hover state. When
|
|
1060
|
+
* `undefined`, the series' or point's fillColor for normal
|
|
1061
|
+
* state is used.
|
|
1102
1062
|
*
|
|
1103
|
-
* @type {
|
|
1104
|
-
* @default null
|
|
1063
|
+
* @type {Highcharts.ColorString}
|
|
1105
1064
|
* @apioption plotOptions.series.marker.states.hover.fillColor
|
|
1106
1065
|
*/
|
|
1107
1066
|
|
|
1108
1067
|
/**
|
|
1109
|
-
* The color of the point marker's outline. When `
|
|
1110
|
-
* series' or point's lineColor for normal state is used.
|
|
1068
|
+
* The color of the point marker's outline. When `undefined`,
|
|
1069
|
+
* the series' or point's lineColor for normal state is used.
|
|
1070
|
+
*
|
|
1071
|
+
* @sample {highcharts} highcharts/plotoptions/series-marker-states-hover-linecolor/
|
|
1072
|
+
* White fill color, black line color
|
|
1111
1073
|
*
|
|
1112
|
-
* @type {
|
|
1113
|
-
* @sample {highcharts}
|
|
1114
|
-
* highcharts/plotoptions/series-marker-states-hover-linecolor/
|
|
1115
|
-
* White fill color, black line color
|
|
1116
|
-
* @default null
|
|
1074
|
+
* @type {Highcharts.ColorString}
|
|
1117
1075
|
* @apioption plotOptions.series.marker.states.hover.lineColor
|
|
1118
1076
|
*/
|
|
1119
1077
|
|
|
1120
1078
|
/**
|
|
1121
|
-
* The width of the point marker's outline. When `
|
|
1122
|
-
* series' or point's lineWidth for normal state is used.
|
|
1079
|
+
* The width of the point marker's outline. When `undefined`,
|
|
1080
|
+
* the series' or point's lineWidth for normal state is used.
|
|
1081
|
+
*
|
|
1082
|
+
* @sample {highcharts} highcharts/plotoptions/series-marker-states-hover-linewidth/
|
|
1083
|
+
* 3px line width
|
|
1123
1084
|
*
|
|
1124
|
-
* @type {
|
|
1125
|
-
* @sample {highcharts}
|
|
1126
|
-
* highcharts/plotoptions/series-marker-states-hover-linewidth/
|
|
1127
|
-
* 3px line width
|
|
1128
|
-
* @default null
|
|
1085
|
+
* @type {number}
|
|
1129
1086
|
* @apioption plotOptions.series.marker.states.hover.lineWidth
|
|
1130
1087
|
*/
|
|
1131
1088
|
|
|
@@ -1135,10 +1092,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1135
1092
|
* #plotOptions.series.marker.states.hover.radiusPlus)
|
|
1136
1093
|
* option.
|
|
1137
1094
|
*
|
|
1138
|
-
* @
|
|
1139
|
-
* @sample {highcharts}
|
|
1140
|
-
* highcharts/plotoptions/series-marker-states-hover-radius/
|
|
1095
|
+
* @sample {highcharts} highcharts/plotoptions/series-marker-states-hover-radius/
|
|
1141
1096
|
* 10px radius
|
|
1097
|
+
*
|
|
1098
|
+
* @type {number}
|
|
1142
1099
|
* @apioption plotOptions.series.marker.states.hover.radius
|
|
1143
1100
|
*/
|
|
1144
1101
|
|
|
@@ -1146,30 +1103,29 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1146
1103
|
* The number of pixels to increase the radius of the hovered
|
|
1147
1104
|
* point.
|
|
1148
1105
|
*
|
|
1149
|
-
* @sample {highcharts}
|
|
1150
|
-
* highcharts/plotoptions/series-states-hover-linewidthplus/
|
|
1106
|
+
* @sample {highcharts} highcharts/plotoptions/series-states-hover-linewidthplus/
|
|
1151
1107
|
* 5 pixels greater radius on hover
|
|
1152
|
-
* @sample {highstock}
|
|
1153
|
-
* highcharts/plotoptions/series-states-hover-linewidthplus/
|
|
1108
|
+
* @sample {highstock} highcharts/plotoptions/series-states-hover-linewidthplus/
|
|
1154
1109
|
* 5 pixels greater radius on hover
|
|
1110
|
+
*
|
|
1155
1111
|
* @since 4.0.3
|
|
1156
1112
|
*/
|
|
1157
1113
|
radiusPlus: 2
|
|
1158
1114
|
|
|
1159
1115
|
|
|
1116
|
+
|
|
1160
1117
|
}
|
|
1118
|
+
|
|
1161
1119
|
|
|
1120
|
+
|
|
1162
1121
|
}
|
|
1163
1122
|
},
|
|
1164
1123
|
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
1124
|
/**
|
|
1168
1125
|
* Properties for each single point.
|
|
1169
1126
|
*/
|
|
1170
1127
|
point: {
|
|
1171
1128
|
|
|
1172
|
-
|
|
1173
1129
|
/**
|
|
1174
1130
|
* Fires when a point is clicked. One parameter, `event`, is passed
|
|
1175
1131
|
* to the function, containing common event information.
|
|
@@ -1178,23 +1134,19 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1178
1134
|
* action for the point's click event is to toggle the point's
|
|
1179
1135
|
* select state. Returning `false` cancels this action.
|
|
1180
1136
|
*
|
|
1181
|
-
* @
|
|
1182
|
-
* @context Point
|
|
1183
|
-
* @sample {highcharts}
|
|
1184
|
-
* highcharts/plotoptions/series-point-events-click/
|
|
1137
|
+
* @sample {highcharts} highcharts/plotoptions/series-point-events-click/
|
|
1185
1138
|
* Click marker to alert values
|
|
1186
|
-
* @sample {highcharts}
|
|
1187
|
-
* highcharts/plotoptions/series-point-events-click-column/
|
|
1139
|
+
* @sample {highcharts} highcharts/plotoptions/series-point-events-click-column/
|
|
1188
1140
|
* Click column
|
|
1189
|
-
* @sample {highcharts}
|
|
1190
|
-
* highcharts/plotoptions/series-point-events-click-url/
|
|
1141
|
+
* @sample {highcharts} highcharts/plotoptions/series-point-events-click-url/
|
|
1191
1142
|
* Go to URL
|
|
1192
|
-
* @sample {highmaps}
|
|
1193
|
-
* maps/plotoptions/series-point-events-click/
|
|
1143
|
+
* @sample {highmaps} maps/plotoptions/series-point-events-click/
|
|
1194
1144
|
* Click marker to display values
|
|
1195
|
-
* @sample {highmaps}
|
|
1196
|
-
* maps/plotoptions/series-point-events-click-url/
|
|
1145
|
+
* @sample {highmaps} maps/plotoptions/series-point-events-click-url/
|
|
1197
1146
|
* Go to URL
|
|
1147
|
+
*
|
|
1148
|
+
* @type {Function}
|
|
1149
|
+
* @context Point
|
|
1198
1150
|
* @apioption plotOptions.series.point.events.click
|
|
1199
1151
|
*/
|
|
1200
1152
|
|
|
@@ -1203,11 +1155,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1203
1155
|
* parameter, `event`, is passed to the function, containing common
|
|
1204
1156
|
* event information.
|
|
1205
1157
|
*
|
|
1206
|
-
* @
|
|
1207
|
-
* @context Point
|
|
1208
|
-
* @sample {highcharts}
|
|
1209
|
-
* highcharts/plotoptions/series-point-events-mouseover/
|
|
1158
|
+
* @sample {highcharts} highcharts/plotoptions/series-point-events-mouseover/
|
|
1210
1159
|
* Show values in the chart's corner on mouse over
|
|
1160
|
+
*
|
|
1161
|
+
* @type {Function}
|
|
1162
|
+
* @context Point
|
|
1211
1163
|
* @apioption plotOptions.series.point.events.mouseOut
|
|
1212
1164
|
*/
|
|
1213
1165
|
|
|
@@ -1216,11 +1168,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1216
1168
|
* parameter, `event`, is passed to the function, containing common
|
|
1217
1169
|
* event information.
|
|
1218
1170
|
*
|
|
1219
|
-
* @
|
|
1220
|
-
* @context Point
|
|
1221
|
-
* @sample {highcharts}
|
|
1222
|
-
* highcharts/plotoptions/series-point-events-mouseover/
|
|
1171
|
+
* @sample {highcharts} highcharts/plotoptions/series-point-events-mouseover/
|
|
1223
1172
|
* Show values in the chart's corner on mouse over
|
|
1173
|
+
*
|
|
1174
|
+
* @type {Function}
|
|
1175
|
+
* @context Point
|
|
1224
1176
|
* @apioption plotOptions.series.point.events.mouseOver
|
|
1225
1177
|
*/
|
|
1226
1178
|
|
|
@@ -1229,12 +1181,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1229
1181
|
* parameter, `event`, is passed to the function. Returning `false`
|
|
1230
1182
|
* cancels the operation.
|
|
1231
1183
|
*
|
|
1232
|
-
* @
|
|
1233
|
-
* @context Point
|
|
1234
|
-
* @sample {highcharts}
|
|
1235
|
-
* highcharts/plotoptions/series-point-events-remove/
|
|
1184
|
+
* @sample {highcharts} highcharts/plotoptions/series-point-events-remove/
|
|
1236
1185
|
* Remove point and confirm
|
|
1237
|
-
*
|
|
1186
|
+
*
|
|
1187
|
+
* @type {Function}
|
|
1188
|
+
* @since 1.2.0
|
|
1189
|
+
* @context Point
|
|
1238
1190
|
* @apioption plotOptions.series.point.events.remove
|
|
1239
1191
|
*/
|
|
1240
1192
|
|
|
@@ -1243,15 +1195,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1243
1195
|
* following a click on the point. One parameter, `event`, is passed
|
|
1244
1196
|
* to the function. Returning `false` cancels the operation.
|
|
1245
1197
|
*
|
|
1246
|
-
* @
|
|
1247
|
-
* @context Point
|
|
1248
|
-
* @sample {highcharts}
|
|
1249
|
-
* highcharts/plotoptions/series-point-events-select/
|
|
1198
|
+
* @sample {highcharts} highcharts/plotoptions/series-point-events-select/
|
|
1250
1199
|
* Report the last selected point
|
|
1251
|
-
* @sample {highmaps}
|
|
1252
|
-
* maps/plotoptions/series-allowpointselect/
|
|
1200
|
+
* @sample {highmaps} maps/plotoptions/series-allowpointselect/
|
|
1253
1201
|
* Report select and unselect
|
|
1254
|
-
*
|
|
1202
|
+
*
|
|
1203
|
+
* @type {Function}
|
|
1204
|
+
* @since 1.2.0
|
|
1205
|
+
* @context Point
|
|
1255
1206
|
* @apioption plotOptions.series.point.events.select
|
|
1256
1207
|
*/
|
|
1257
1208
|
|
|
@@ -1261,15 +1212,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1261
1212
|
* to the function.
|
|
1262
1213
|
* Returning `false` cancels the operation.
|
|
1263
1214
|
*
|
|
1264
|
-
* @
|
|
1265
|
-
* @context Point
|
|
1266
|
-
* @sample {highcharts}
|
|
1267
|
-
* highcharts/plotoptions/series-point-events-unselect/
|
|
1215
|
+
* @sample {highcharts} highcharts/plotoptions/series-point-events-unselect/
|
|
1268
1216
|
* Report the last unselected point
|
|
1269
|
-
* @sample {highmaps}
|
|
1270
|
-
* maps/plotoptions/series-allowpointselect/
|
|
1217
|
+
* @sample {highmaps} maps/plotoptions/series-allowpointselect/
|
|
1271
1218
|
* Report select and unselect
|
|
1272
|
-
*
|
|
1219
|
+
*
|
|
1220
|
+
* @type {Function}
|
|
1221
|
+
* @since 1.2.0
|
|
1222
|
+
* @context Point
|
|
1273
1223
|
* @apioption plotOptions.series.point.events.unselect
|
|
1274
1224
|
*/
|
|
1275
1225
|
|
|
@@ -1279,12 +1229,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1279
1229
|
* function. The new point options can be accessed through
|
|
1280
1230
|
* `event.options`. Returning `false` cancels the operation.
|
|
1281
1231
|
*
|
|
1282
|
-
* @
|
|
1283
|
-
* @context Point
|
|
1284
|
-
* @sample {highcharts}
|
|
1285
|
-
* highcharts/plotoptions/series-point-events-update/
|
|
1232
|
+
* @sample {highcharts} highcharts/plotoptions/series-point-events-update/
|
|
1286
1233
|
* Confirm point updating
|
|
1287
|
-
*
|
|
1234
|
+
*
|
|
1235
|
+
* @type {Function}
|
|
1236
|
+
* @since 1.2.0
|
|
1237
|
+
* @context Point
|
|
1288
1238
|
* @apioption plotOptions.series.point.events.update
|
|
1289
1239
|
*/
|
|
1290
1240
|
|
|
@@ -1297,12 +1247,19 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1297
1247
|
|
|
1298
1248
|
|
|
1299
1249
|
/**
|
|
1300
|
-
* Options for the series data labels, appearing next to each data
|
|
1301
|
-
* point.
|
|
1250
|
+
* Options for the series data labels, appearing next to each data point.
|
|
1302
1251
|
*
|
|
1303
|
-
*
|
|
1252
|
+
* Since v6.2.0, multiple data labels can be applied to each single point by
|
|
1253
|
+
* defining them as an array of configs.
|
|
1254
|
+
*
|
|
1255
|
+
* In styled mode, the data labels can be styled with the
|
|
1304
1256
|
* `.highcharts-data-label-box` and `.highcharts-data-label` class names
|
|
1305
|
-
* ([see example](
|
|
1257
|
+
* ([see example](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/series-datalabels)).
|
|
1258
|
+
*
|
|
1259
|
+
* @sample highcharts/plotoptions/series-datalabels-enabled
|
|
1260
|
+
* Data labels enabled
|
|
1261
|
+
* @sample highcharts/plotoptions/series-datalabels-multiple
|
|
1262
|
+
* Multiple data labels on a bar series
|
|
1306
1263
|
*/
|
|
1307
1264
|
dataLabels: {
|
|
1308
1265
|
|
|
@@ -1315,12 +1272,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1315
1272
|
* [inside](#plotOptions.column.dataLabels.inside) option. Can be one of
|
|
1316
1273
|
* `left`, `center` or `right`.
|
|
1317
1274
|
*
|
|
1318
|
-
* @
|
|
1319
|
-
* @type {String}
|
|
1320
|
-
* @sample {highcharts}
|
|
1321
|
-
* highcharts/plotoptions/series-datalabels-align-left/
|
|
1275
|
+
* @sample {highcharts} highcharts/plotoptions/series-datalabels-align-left/
|
|
1322
1276
|
* Left aligned
|
|
1323
|
-
*
|
|
1277
|
+
*
|
|
1278
|
+
* @validvalue ["left", "center", "right"]
|
|
1324
1279
|
*/
|
|
1325
1280
|
align: 'center',
|
|
1326
1281
|
|
|
@@ -1330,11 +1285,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1330
1285
|
* sensitive for overlapping, the [dataLabels.padding](
|
|
1331
1286
|
* #plotOptions.series.dataLabels.padding) can be set to 0.
|
|
1332
1287
|
*
|
|
1333
|
-
* @type {Boolean}
|
|
1334
1288
|
* @sample highcharts/plotoptions/series-datalabels-allowoverlap-false/
|
|
1335
1289
|
* Don't allow overlap
|
|
1336
|
-
*
|
|
1337
|
-
* @
|
|
1290
|
+
*
|
|
1291
|
+
* @type {boolean}
|
|
1292
|
+
* @default false
|
|
1293
|
+
* @since 4.1.0
|
|
1338
1294
|
* @apioption plotOptions.series.dataLabels.allowOverlap
|
|
1339
1295
|
*/
|
|
1340
1296
|
|
|
@@ -1342,15 +1298,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1342
1298
|
/**
|
|
1343
1299
|
* The border radius in pixels for the data label.
|
|
1344
1300
|
*
|
|
1345
|
-
* @type {Number}
|
|
1346
1301
|
* @sample {highcharts} highcharts/plotoptions/series-datalabels-box/
|
|
1347
1302
|
* Data labels box options
|
|
1348
1303
|
* @sample {highstock} highcharts/plotoptions/series-datalabels-box/
|
|
1349
1304
|
* Data labels box options
|
|
1350
1305
|
* @sample {highmaps} maps/plotoptions/series-datalabels-box/
|
|
1351
1306
|
* Data labels box options
|
|
1352
|
-
*
|
|
1353
|
-
* @
|
|
1307
|
+
*
|
|
1308
|
+
* @type {number}
|
|
1309
|
+
* @default 0
|
|
1310
|
+
* @since 2.2.1
|
|
1354
1311
|
* @apioption plotOptions.series.dataLabels.borderRadius
|
|
1355
1312
|
*/
|
|
1356
1313
|
|
|
@@ -1358,13 +1315,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1358
1315
|
/**
|
|
1359
1316
|
* The border width in pixels for the data label.
|
|
1360
1317
|
*
|
|
1361
|
-
* @type {Number}
|
|
1362
1318
|
* @sample {highcharts} highcharts/plotoptions/series-datalabels-box/
|
|
1363
1319
|
* Data labels box options
|
|
1364
1320
|
* @sample {highstock} highcharts/plotoptions/series-datalabels-box/
|
|
1365
1321
|
* Data labels box options
|
|
1366
|
-
*
|
|
1367
|
-
* @
|
|
1322
|
+
*
|
|
1323
|
+
* @type {number}
|
|
1324
|
+
* @default 0
|
|
1325
|
+
* @since 2.2.1
|
|
1368
1326
|
* @apioption plotOptions.series.dataLabels.borderWidth
|
|
1369
1327
|
*/
|
|
1370
1328
|
|
|
@@ -1373,30 +1331,35 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1373
1331
|
* can be used to give each series' or point's data label unique
|
|
1374
1332
|
* styling. In addition to this option, a default color class name is
|
|
1375
1333
|
* added so that we can give the labels a
|
|
1376
|
-
* [contrast text shadow](
|
|
1334
|
+
* [contrast text shadow](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/data-label-contrast/).
|
|
1335
|
+
*
|
|
1336
|
+
* @sample {highcharts} highcharts/css/series-datalabels/
|
|
1337
|
+
* Styling by CSS
|
|
1338
|
+
* @sample {highstock} highcharts/css/series-datalabels/
|
|
1339
|
+
* Styling by CSS
|
|
1340
|
+
* @sample {highmaps} highcharts/css/series-datalabels/
|
|
1341
|
+
* Styling by CSS
|
|
1377
1342
|
*
|
|
1378
|
-
* @type
|
|
1379
|
-
* @
|
|
1380
|
-
* @sample {highstock} highcharts/css/series-datalabels/ Styling by CSS
|
|
1381
|
-
* @sample {highmaps} highcharts/css/series-datalabels/ Styling by CSS
|
|
1382
|
-
* @since 5.0.0
|
|
1343
|
+
* @type {string}
|
|
1344
|
+
* @since 5.0.0
|
|
1383
1345
|
* @apioption plotOptions.series.dataLabels.className
|
|
1384
1346
|
*/
|
|
1385
1347
|
|
|
1386
1348
|
/**
|
|
1387
|
-
* The text color for the data labels. Defaults to `
|
|
1388
|
-
* series types, like column or map, the data labels can be
|
|
1389
|
-
* the points. In this case the data label will be drawn
|
|
1390
|
-
* contrast by default. Additionally, it will be given a
|
|
1391
|
-
* style with the opposite color, to further increase the
|
|
1392
|
-
* can be overridden by setting the `text-outline` style
|
|
1393
|
-
* the `dataLabels.style` option.
|
|
1349
|
+
* The text color for the data labels. Defaults to `undefined`. For
|
|
1350
|
+
* certain series types, like column or map, the data labels can be
|
|
1351
|
+
* drawn inside the points. In this case the data label will be drawn
|
|
1352
|
+
* with maximum contrast by default. Additionally, it will be given a
|
|
1353
|
+
* `text-outline` style with the opposite color, to further increase the
|
|
1354
|
+
* contrast. This can be overridden by setting the `text-outline` style
|
|
1355
|
+
* to `none` in the `dataLabels.style` option.
|
|
1394
1356
|
*
|
|
1395
|
-
* @type {Color}
|
|
1396
1357
|
* @sample {highcharts} highcharts/plotoptions/series-datalabels-color/
|
|
1397
1358
|
* Red data labels
|
|
1398
1359
|
* @sample {highmaps} maps/demo/color-axis/
|
|
1399
1360
|
* White data labels
|
|
1361
|
+
*
|
|
1362
|
+
* @type {Highcharts.ColorString}
|
|
1400
1363
|
* @apioption plotOptions.series.dataLabels.color
|
|
1401
1364
|
*/
|
|
1402
1365
|
|
|
@@ -1405,9 +1368,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1405
1368
|
* default, the data label is moved inside the plot area according to
|
|
1406
1369
|
* the [overflow](#plotOptions.series.dataLabels.overflow) option.
|
|
1407
1370
|
*
|
|
1408
|
-
* @type
|
|
1409
|
-
* @default
|
|
1410
|
-
* @since
|
|
1371
|
+
* @type {boolean}
|
|
1372
|
+
* @default true
|
|
1373
|
+
* @since 2.3.3
|
|
1411
1374
|
* @apioption plotOptions.series.dataLabels.crop
|
|
1412
1375
|
*/
|
|
1413
1376
|
|
|
@@ -1415,41 +1378,41 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1415
1378
|
* Whether to defer displaying the data labels until the initial series
|
|
1416
1379
|
* animation has finished.
|
|
1417
1380
|
*
|
|
1418
|
-
* @type
|
|
1419
|
-
* @default
|
|
1420
|
-
* @since
|
|
1421
|
-
* @product
|
|
1381
|
+
* @type {boolean}
|
|
1382
|
+
* @default true
|
|
1383
|
+
* @since 4.0
|
|
1384
|
+
* @product highcharts highstock gantt
|
|
1422
1385
|
* @apioption plotOptions.series.dataLabels.defer
|
|
1423
1386
|
*/
|
|
1424
1387
|
|
|
1425
1388
|
/**
|
|
1426
1389
|
* Enable or disable the data labels.
|
|
1427
1390
|
*
|
|
1428
|
-
* @
|
|
1429
|
-
* @sample {highcharts}
|
|
1430
|
-
* highcharts/plotoptions/series-datalabels-enabled/
|
|
1391
|
+
* @sample {highcharts} highcharts/plotoptions/series-datalabels-enabled/
|
|
1431
1392
|
* Data labels enabled
|
|
1432
|
-
* @sample {highmaps} maps/demo/color-axis/
|
|
1433
|
-
*
|
|
1393
|
+
* @sample {highmaps} maps/demo/color-axis/
|
|
1394
|
+
* Data labels enabled
|
|
1395
|
+
*
|
|
1396
|
+
* @type {boolean}
|
|
1397
|
+
* @default false
|
|
1434
1398
|
* @apioption plotOptions.series.dataLabels.enabled
|
|
1435
1399
|
*/
|
|
1436
1400
|
|
|
1437
1401
|
/**
|
|
1438
|
-
* A [format string](
|
|
1402
|
+
* A [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)
|
|
1439
1403
|
* for the data label. Available variables are the same as for
|
|
1440
1404
|
* `formatter`.
|
|
1441
1405
|
*
|
|
1442
|
-
* @
|
|
1443
|
-
* @sample {highcharts|highstock}
|
|
1444
|
-
* highcharts/plotoptions/series-datalabels-format/
|
|
1406
|
+
* @sample {highcharts|highstock} highcharts/plotoptions/series-datalabels-format/
|
|
1445
1407
|
* Add a unit
|
|
1446
|
-
* @sample {highmaps}
|
|
1447
|
-
* maps/plotoptions/series-datalabels-format/
|
|
1408
|
+
* @sample {highmaps} maps/plotoptions/series-datalabels-format/
|
|
1448
1409
|
* Formatted value in the data label
|
|
1449
|
-
*
|
|
1450
|
-
* @
|
|
1451
|
-
* @default
|
|
1452
|
-
* @
|
|
1410
|
+
*
|
|
1411
|
+
* @type {string}
|
|
1412
|
+
* @default {highcharts} {y}
|
|
1413
|
+
* @default {highstock} {y}
|
|
1414
|
+
* @default {highmaps} {point.value}
|
|
1415
|
+
* @since 3.0
|
|
1453
1416
|
* @apioption plotOptions.series.dataLabels.format
|
|
1454
1417
|
*/
|
|
1455
1418
|
|
|
@@ -1518,13 +1481,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1518
1481
|
*
|
|
1519
1482
|
* </table>
|
|
1520
1483
|
*
|
|
1521
|
-
* @type {Function}
|
|
1522
1484
|
* @sample {highmaps} maps/plotoptions/series-datalabels-format/
|
|
1523
1485
|
* Formatted value
|
|
1486
|
+
*
|
|
1487
|
+
* @type {Highcharts.FormatterCallbackFunction}
|
|
1488
|
+
* @default function () { return this.y; }
|
|
1524
1489
|
*/
|
|
1525
1490
|
formatter: function () {
|
|
1526
1491
|
return this.y === null ? '' : H.numberFormat(this.y, -1);
|
|
1527
1492
|
},
|
|
1493
|
+
|
|
1528
1494
|
|
|
1529
1495
|
|
|
1530
1496
|
/**
|
|
@@ -1532,23 +1498,23 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1532
1498
|
* align the data label inside the box or to the actual value point.
|
|
1533
1499
|
* Defaults to `false` in most cases, `true` in stacked columns.
|
|
1534
1500
|
*
|
|
1535
|
-
* @type
|
|
1536
|
-
* @since
|
|
1501
|
+
* @type {boolean}
|
|
1502
|
+
* @since 3.0
|
|
1537
1503
|
* @apioption plotOptions.series.dataLabels.inside
|
|
1538
1504
|
*/
|
|
1539
1505
|
|
|
1540
1506
|
/**
|
|
1541
1507
|
* How to handle data labels that flow outside the plot area. The
|
|
1542
|
-
* default is `justify`, which aligns them inside the plot area. For
|
|
1508
|
+
* default is `"justify"`, which aligns them inside the plot area. For
|
|
1543
1509
|
* columns and bars, this means it will be moved inside the bar. To
|
|
1544
1510
|
* display data labels outside the plot area, set `crop` to `false` and
|
|
1545
|
-
* `overflow` to `"
|
|
1511
|
+
* `overflow` to `"allow"`.
|
|
1546
1512
|
*
|
|
1547
|
-
* @
|
|
1548
|
-
* @
|
|
1549
|
-
* @
|
|
1550
|
-
* @
|
|
1551
|
-
* @apioption
|
|
1513
|
+
* @type {string}
|
|
1514
|
+
* @default justify
|
|
1515
|
+
* @since 3.0.6
|
|
1516
|
+
* @validvalue ["allow", "justify"]
|
|
1517
|
+
* @apioption plotOptions.series.dataLabels.overflow
|
|
1552
1518
|
*/
|
|
1553
1519
|
|
|
1554
1520
|
/**
|
|
@@ -1556,21 +1522,21 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1556
1522
|
* backgrounds, borders and padding will be lost on a rotated data
|
|
1557
1523
|
* label.
|
|
1558
1524
|
*
|
|
1559
|
-
* @
|
|
1560
|
-
* @sample {highcharts}
|
|
1561
|
-
* highcharts/plotoptions/series-datalabels-rotation/
|
|
1525
|
+
* @sample {highcharts} highcharts/plotoptions/series-datalabels-rotation/
|
|
1562
1526
|
* Vertical labels
|
|
1563
|
-
*
|
|
1527
|
+
*
|
|
1528
|
+
* @type {number}
|
|
1529
|
+
* @default 0
|
|
1564
1530
|
* @apioption plotOptions.series.dataLabels.rotation
|
|
1565
1531
|
*/
|
|
1566
1532
|
|
|
1567
1533
|
/**
|
|
1568
1534
|
* Whether to
|
|
1569
|
-
* [use HTML](
|
|
1535
|
+
* [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
|
|
1570
1536
|
* to render the labels.
|
|
1571
1537
|
*
|
|
1572
|
-
* @type
|
|
1573
|
-
* @default
|
|
1538
|
+
* @type {boolean}
|
|
1539
|
+
* @default false
|
|
1574
1540
|
* @apioption plotOptions.series.dataLabels.useHTML
|
|
1575
1541
|
*/
|
|
1576
1542
|
|
|
@@ -1580,9 +1546,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1580
1546
|
* in a column chart, the label is above positive values and below
|
|
1581
1547
|
* negative values.
|
|
1582
1548
|
*
|
|
1549
|
+
* @since 2.3.3
|
|
1583
1550
|
* @validvalue ["top", "middle", "bottom"]
|
|
1584
|
-
* @type {String}
|
|
1585
|
-
* @since 2.3.3
|
|
1586
1551
|
*/
|
|
1587
1552
|
verticalAlign: 'bottom', // above singular point
|
|
1588
1553
|
|
|
@@ -1590,11 +1555,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1590
1555
|
/**
|
|
1591
1556
|
* The x position offset of the label relative to the point in pixels.
|
|
1592
1557
|
*
|
|
1593
|
-
* @
|
|
1594
|
-
* @sample {highcharts}
|
|
1595
|
-
* highcharts/plotoptions/series-datalabels-rotation/
|
|
1558
|
+
* @sample {highcharts} highcharts/plotoptions/series-datalabels-rotation/
|
|
1596
1559
|
* Vertical and positioned
|
|
1597
|
-
* @default 0
|
|
1598
1560
|
*/
|
|
1599
1561
|
x: 0,
|
|
1600
1562
|
|
|
@@ -1602,11 +1564,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1602
1564
|
/**
|
|
1603
1565
|
* The y position offset of the label relative to the point in pixels.
|
|
1604
1566
|
*
|
|
1605
|
-
* @
|
|
1606
|
-
* @sample {highcharts}
|
|
1607
|
-
* highcharts/plotoptions/series-datalabels-rotation/
|
|
1567
|
+
* @sample {highcharts} highcharts/plotoptions/series-datalabels-rotation/
|
|
1608
1568
|
* Vertical and positioned
|
|
1609
|
-
* @default -6
|
|
1610
1569
|
*/
|
|
1611
1570
|
y: 0,
|
|
1612
1571
|
|
|
@@ -1615,17 +1574,15 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1615
1574
|
* When either the `borderWidth` or the `backgroundColor` is set,
|
|
1616
1575
|
* this is the padding within the box.
|
|
1617
1576
|
*
|
|
1618
|
-
* @
|
|
1619
|
-
* @sample {highcharts|highstock}
|
|
1620
|
-
* highcharts/plotoptions/series-datalabels-box/
|
|
1577
|
+
* @sample {highcharts|highstock} highcharts/plotoptions/series-datalabels-box/
|
|
1621
1578
|
* Data labels box options
|
|
1622
|
-
* @sample {highmaps}
|
|
1623
|
-
* maps/plotoptions/series-datalabels-box/
|
|
1579
|
+
* @sample {highmaps} maps/plotoptions/series-datalabels-box/
|
|
1624
1580
|
* Data labels box options
|
|
1581
|
+
*
|
|
1625
1582
|
* @default {highcharts} 5
|
|
1626
1583
|
* @default {highstock} 5
|
|
1627
1584
|
* @default {highmaps} 0
|
|
1628
|
-
* @since
|
|
1585
|
+
* @since 2.2.1
|
|
1629
1586
|
*/
|
|
1630
1587
|
padding: 5
|
|
1631
1588
|
},
|
|
@@ -1640,9 +1597,7 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1640
1597
|
* that fall within the plot area. The advantage of cropping away invisible
|
|
1641
1598
|
* points is to increase performance on large series.
|
|
1642
1599
|
*
|
|
1643
|
-
* @
|
|
1644
|
-
* @default 300
|
|
1645
|
-
* @since 2.2
|
|
1600
|
+
* @since 2.2
|
|
1646
1601
|
* @product highcharts highstock
|
|
1647
1602
|
*/
|
|
1648
1603
|
cropThreshold: 300,
|
|
@@ -1655,8 +1610,6 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1655
1610
|
* * 1000 milliseconds). This is normally computed automatically, but
|
|
1656
1611
|
* this option can be used to override the automatic value.
|
|
1657
1612
|
*
|
|
1658
|
-
* @type {Number}
|
|
1659
|
-
* @default 0
|
|
1660
1613
|
* @product highstock
|
|
1661
1614
|
*/
|
|
1662
1615
|
pointRange: 0,
|
|
@@ -1670,9 +1623,7 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1670
1623
|
* 3 will make the Y axis show negative values according to the `minPadding`
|
|
1671
1624
|
* option. If `softThreshold` is `true`, the Y axis starts at 0.
|
|
1672
1625
|
*
|
|
1673
|
-
* @
|
|
1674
|
-
* @default true
|
|
1675
|
-
* @since 4.1.9
|
|
1626
|
+
* @since 4.1.9
|
|
1676
1627
|
* @product highcharts highstock
|
|
1677
1628
|
*/
|
|
1678
1629
|
softThreshold: true,
|
|
@@ -1681,8 +1632,6 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1681
1632
|
|
|
1682
1633
|
/**
|
|
1683
1634
|
* A wrapper object for all the series options in specific states.
|
|
1684
|
-
*
|
|
1685
|
-
* @type {plotOptions.series.states}
|
|
1686
1635
|
*/
|
|
1687
1636
|
states: {
|
|
1688
1637
|
|
|
@@ -1690,12 +1639,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1690
1639
|
* The normal state of a series, or for point items in column, pie and
|
|
1691
1640
|
* similar series. Currently only used for setting animation when
|
|
1692
1641
|
* returning to normal state from hover.
|
|
1693
|
-
* @type {Object}
|
|
1694
1642
|
*/
|
|
1695
1643
|
normal: {
|
|
1696
1644
|
/**
|
|
1697
1645
|
* Animation when returning to normal state after hovering.
|
|
1698
|
-
*
|
|
1646
|
+
*
|
|
1647
|
+
* @type {boolean|Highcharts.AnimationOptionsObject}
|
|
1699
1648
|
*/
|
|
1700
1649
|
animation: true
|
|
1701
1650
|
},
|
|
@@ -1703,7 +1652,6 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1703
1652
|
/**
|
|
1704
1653
|
* Options for the hovered series. These settings override the normal
|
|
1705
1654
|
* state options when a series is moused over or touched.
|
|
1706
|
-
*
|
|
1707
1655
|
*/
|
|
1708
1656
|
hover: {
|
|
1709
1657
|
|
|
@@ -1711,18 +1659,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1711
1659
|
* Enable separate styles for the hovered series to visualize that
|
|
1712
1660
|
* the user hovers either the series itself or the legend. .
|
|
1713
1661
|
*
|
|
1714
|
-
* @
|
|
1715
|
-
* @sample {highcharts}
|
|
1716
|
-
* highcharts/plotoptions/series-states-hover-enabled/
|
|
1662
|
+
* @sample {highcharts} highcharts/plotoptions/series-states-hover-enabled/
|
|
1717
1663
|
* Line
|
|
1718
|
-
* @sample {highcharts}
|
|
1719
|
-
* highcharts/plotoptions/series-states-hover-enabled-column/
|
|
1664
|
+
* @sample {highcharts} highcharts/plotoptions/series-states-hover-enabled-column/
|
|
1720
1665
|
* Column
|
|
1721
|
-
* @sample {highcharts}
|
|
1722
|
-
* highcharts/plotoptions/series-states-hover-enabled-pie/
|
|
1666
|
+
* @sample {highcharts} highcharts/plotoptions/series-states-hover-enabled-pie/
|
|
1723
1667
|
* Pie
|
|
1724
|
-
*
|
|
1725
|
-
* @
|
|
1668
|
+
*
|
|
1669
|
+
* @type {boolean}
|
|
1670
|
+
* @default true
|
|
1671
|
+
* @since 1.2
|
|
1726
1672
|
* @apioption plotOptions.series.states.hover.enabled
|
|
1727
1673
|
*/
|
|
1728
1674
|
|
|
@@ -1730,12 +1676,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1730
1676
|
/**
|
|
1731
1677
|
* Animation setting for hovering the graph in line-type series.
|
|
1732
1678
|
*
|
|
1733
|
-
* @type
|
|
1734
|
-
* @
|
|
1735
|
-
* @since 5.0.8
|
|
1679
|
+
* @type {boolean|Highcharts.AnimationOptionsObject}
|
|
1680
|
+
* @since 5.0.8
|
|
1736
1681
|
* @product highcharts
|
|
1737
1682
|
*/
|
|
1738
1683
|
animation: {
|
|
1684
|
+
|
|
1739
1685
|
/**
|
|
1740
1686
|
* The duration of the hover animation in milliseconds. By
|
|
1741
1687
|
* default the hover state animates quickly in, and slowly back
|
|
@@ -1749,12 +1695,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1749
1695
|
* undefined, and the `lineWidthPlus` property dictates how much
|
|
1750
1696
|
* to increase the linewidth from normal state.
|
|
1751
1697
|
*
|
|
1752
|
-
* @
|
|
1753
|
-
* @sample {highcharts}
|
|
1754
|
-
* highcharts/plotoptions/series-states-hover-linewidth/
|
|
1698
|
+
* @sample {highcharts} highcharts/plotoptions/series-states-hover-linewidth/
|
|
1755
1699
|
* 5px line on hover
|
|
1756
|
-
*
|
|
1757
|
-
* @
|
|
1700
|
+
*
|
|
1701
|
+
* @type {number}
|
|
1702
|
+
* @product highcharts highstock
|
|
1758
1703
|
* @apioption plotOptions.series.states.hover.lineWidth
|
|
1759
1704
|
*/
|
|
1760
1705
|
|
|
@@ -1762,29 +1707,25 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1762
1707
|
/**
|
|
1763
1708
|
* The additional line width for the graph of a hovered series.
|
|
1764
1709
|
*
|
|
1765
|
-
* @
|
|
1766
|
-
* @sample {highcharts}
|
|
1767
|
-
* highcharts/plotoptions/series-states-hover-linewidthplus/
|
|
1710
|
+
* @sample {highcharts} highcharts/plotoptions/series-states-hover-linewidthplus/
|
|
1768
1711
|
* 5 pixels wider
|
|
1769
|
-
* @sample {highstock}
|
|
1770
|
-
* highcharts/plotoptions/series-states-hover-linewidthplus/
|
|
1712
|
+
* @sample {highstock} highcharts/plotoptions/series-states-hover-linewidthplus/
|
|
1771
1713
|
* 5 pixels wider
|
|
1772
|
-
*
|
|
1773
|
-
* @since
|
|
1714
|
+
*
|
|
1715
|
+
* @since 4.0.3
|
|
1774
1716
|
* @product highcharts highstock
|
|
1775
1717
|
*/
|
|
1776
1718
|
lineWidthPlus: 1,
|
|
1777
1719
|
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
1720
|
/**
|
|
1781
1721
|
* In Highcharts 1.0, the appearance of all markers belonging to the
|
|
1782
1722
|
* hovered series. For settings on the hover state of the individual
|
|
1783
1723
|
* point, see
|
|
1784
1724
|
* [marker.states.hover](#plotOptions.series.marker.states.hover).
|
|
1785
1725
|
*
|
|
1786
|
-
* @extends plotOptions.series.marker
|
|
1787
1726
|
* @deprecated
|
|
1727
|
+
*
|
|
1728
|
+
* @extends plotOptions.series.marker
|
|
1788
1729
|
* @product highcharts highstock
|
|
1789
1730
|
*/
|
|
1790
1731
|
marker: {
|
|
@@ -1792,8 +1733,6 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1792
1733
|
// radius: base + 1
|
|
1793
1734
|
},
|
|
1794
1735
|
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
1736
|
/**
|
|
1798
1737
|
* Options for the halo appearing around the hovered point in line-
|
|
1799
1738
|
* type series as well as outside the hovered slice in pie charts.
|
|
@@ -1804,10 +1743,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1804
1743
|
* In styled mode, the halo is styled with the `.highcharts-halo`
|
|
1805
1744
|
* class, with colors inherited from `.highcharts-color-{n}`.
|
|
1806
1745
|
*
|
|
1807
|
-
* @
|
|
1808
|
-
*
|
|
1809
|
-
* @sample {highstock} highcharts/plotoptions/halo/
|
|
1810
|
-
*
|
|
1746
|
+
* @sample {highcharts} highcharts/plotoptions/halo/
|
|
1747
|
+
* Halo options
|
|
1748
|
+
* @sample {highstock} highcharts/plotoptions/halo/
|
|
1749
|
+
* Halo options
|
|
1750
|
+
*
|
|
1751
|
+
* @since 4.0
|
|
1811
1752
|
* @product highcharts highstock
|
|
1812
1753
|
*/
|
|
1813
1754
|
halo: {
|
|
@@ -1816,9 +1757,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1816
1757
|
* A collection of SVG attributes to override the appearance of
|
|
1817
1758
|
* the halo, for example `fill`, `stroke` and `stroke-width`.
|
|
1818
1759
|
*
|
|
1819
|
-
* @type
|
|
1820
|
-
* @since
|
|
1821
|
-
* @product
|
|
1760
|
+
* @type {Highcharts.SVGAttributes}
|
|
1761
|
+
* @since 4.0
|
|
1762
|
+
* @product highcharts highstock
|
|
1822
1763
|
* @apioption plotOptions.series.states.hover.halo.attributes
|
|
1823
1764
|
*/
|
|
1824
1765
|
|
|
@@ -1829,13 +1770,13 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1829
1770
|
* halo outside the slice. For bubbles it defaults to 5 and is
|
|
1830
1771
|
* the width of the halo outside the bubble.
|
|
1831
1772
|
*
|
|
1832
|
-
* @
|
|
1833
|
-
* @default 10
|
|
1834
|
-
* @since 4.0
|
|
1773
|
+
* @since 4.0
|
|
1835
1774
|
* @product highcharts highstock
|
|
1836
1775
|
*/
|
|
1837
1776
|
size: 10
|
|
1777
|
+
|
|
1838
1778
|
|
|
1779
|
+
|
|
1839
1780
|
}
|
|
1840
1781
|
},
|
|
1841
1782
|
|
|
@@ -1845,15 +1786,15 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1845
1786
|
* by [allowPointSelect](#plotOptions.series.allowPointSelect) or
|
|
1846
1787
|
* programmatically.
|
|
1847
1788
|
*
|
|
1848
|
-
* @type {Object}
|
|
1849
|
-
* @extends plotOptions.series.states.hover
|
|
1850
|
-
* @excluding brightness
|
|
1851
1789
|
* @sample {highmaps} maps/plotoptions/series-allowpointselect/
|
|
1852
1790
|
* Allow point select demo
|
|
1853
|
-
*
|
|
1791
|
+
*
|
|
1792
|
+
* @extends plotOptions.series.states.hover
|
|
1793
|
+
* @excluding brightness
|
|
1794
|
+
* @product highmaps
|
|
1854
1795
|
*/
|
|
1855
1796
|
select: {
|
|
1856
|
-
marker: {}
|
|
1797
|
+
// marker: {}
|
|
1857
1798
|
}
|
|
1858
1799
|
},
|
|
1859
1800
|
|
|
@@ -1869,15 +1810,15 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1869
1810
|
* be hidden when moving the mouse between series. Defaults to true for line
|
|
1870
1811
|
* and area type series, but to false for columns, pies etc.
|
|
1871
1812
|
*
|
|
1872
|
-
* @type {Boolean}
|
|
1873
1813
|
* @sample {highcharts} highcharts/plotoptions/series-stickytracking-true/
|
|
1874
1814
|
* True by default
|
|
1875
1815
|
* @sample {highcharts} highcharts/plotoptions/series-stickytracking-false/
|
|
1876
1816
|
* False
|
|
1817
|
+
*
|
|
1877
1818
|
* @default {highcharts} true
|
|
1878
1819
|
* @default {highstock} true
|
|
1879
1820
|
* @default {highmaps} false
|
|
1880
|
-
* @since
|
|
1821
|
+
* @since 2.0
|
|
1881
1822
|
*/
|
|
1882
1823
|
stickyTracking: true,
|
|
1883
1824
|
|
|
@@ -1886,12 +1827,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1886
1827
|
* Properties are inherited from [tooltip](#tooltip), but only the
|
|
1887
1828
|
* following properties can be defined on a series level.
|
|
1888
1829
|
*
|
|
1889
|
-
* @
|
|
1890
|
-
* @extends
|
|
1830
|
+
* @since 2.3
|
|
1831
|
+
* @extends tooltip
|
|
1891
1832
|
* @excluding animation,backgroundColor,borderColor,borderRadius,
|
|
1892
1833
|
* borderWidth,crosshairs,enabled,formatter,positioner,shadow,
|
|
1893
1834
|
* shared,shape,snap,style,useHTML
|
|
1894
|
-
* @since 2.3
|
|
1895
1835
|
* @apioption plotOptions.series.tooltip
|
|
1896
1836
|
*/
|
|
1897
1837
|
|
|
@@ -1902,10 +1842,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1902
1842
|
* and the rest are assumed to be the same format. This saves expensive
|
|
1903
1843
|
* data checking and indexing in long series. Set it to `0` disable.
|
|
1904
1844
|
*
|
|
1905
|
-
* @
|
|
1906
|
-
* @
|
|
1907
|
-
* @since 2.2
|
|
1908
|
-
* @product highcharts highstock
|
|
1845
|
+
* @since 2.2
|
|
1846
|
+
* @product highcharts highstock gantt
|
|
1909
1847
|
*/
|
|
1910
1848
|
turboThreshold: 1000,
|
|
1911
1849
|
|
|
@@ -1918,56 +1856,65 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1918
1856
|
* In styled mode, the color zones are styled with the
|
|
1919
1857
|
* `.highcharts-zone-{n}` class, or custom classed from the `className`
|
|
1920
1858
|
* option
|
|
1921
|
-
* ([view live demo](
|
|
1859
|
+
* ([view live demo](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/color-zones/)).
|
|
1922
1860
|
*
|
|
1923
|
-
* @type {Array}
|
|
1924
1861
|
* @see [zoneAxis](#plotOptions.series.zoneAxis)
|
|
1925
|
-
*
|
|
1926
|
-
* @sample {
|
|
1927
|
-
*
|
|
1928
|
-
* @
|
|
1862
|
+
*
|
|
1863
|
+
* @sample {highcharts} highcharts/series/color-zones-simple/
|
|
1864
|
+
* Color zones
|
|
1865
|
+
* @sample {highstock} highcharts/series/color-zones-simple/
|
|
1866
|
+
* Color zones
|
|
1867
|
+
*
|
|
1868
|
+
* @type {Array<*>}
|
|
1869
|
+
* @since 4.1.0
|
|
1870
|
+
* @product highcharts highstock
|
|
1929
1871
|
* @apioption plotOptions.series.zones
|
|
1930
1872
|
*/
|
|
1931
1873
|
|
|
1932
1874
|
/**
|
|
1933
1875
|
* Styled mode only. A custom class name for the zone.
|
|
1934
1876
|
*
|
|
1935
|
-
* @
|
|
1936
|
-
*
|
|
1937
|
-
*
|
|
1877
|
+
* @sample highcharts/css/color-zones/
|
|
1878
|
+
* Zones styled by class name
|
|
1879
|
+
*
|
|
1880
|
+
* @type {string}
|
|
1881
|
+
* @since 5.0.0
|
|
1938
1882
|
* @apioption plotOptions.series.zones.className
|
|
1939
1883
|
*/
|
|
1940
1884
|
|
|
1941
1885
|
/**
|
|
1942
1886
|
* Defines the color of the series.
|
|
1943
1887
|
*
|
|
1944
|
-
* @type {Color}
|
|
1945
1888
|
* @see [series color](#plotOptions.series.color)
|
|
1946
|
-
*
|
|
1947
|
-
* @
|
|
1889
|
+
*
|
|
1890
|
+
* @type {Highcharts.ColorString}
|
|
1891
|
+
* @since 4.1.0
|
|
1892
|
+
* @product highcharts highstock
|
|
1948
1893
|
* @apioption plotOptions.series.zones.color
|
|
1949
1894
|
*/
|
|
1950
1895
|
|
|
1951
1896
|
/**
|
|
1952
1897
|
* A name for the dash style to use for the graph.
|
|
1953
1898
|
*
|
|
1954
|
-
* @type {String}
|
|
1955
1899
|
* @see [series.dashStyle](#plotOptions.series.dashStyle)
|
|
1956
|
-
*
|
|
1957
|
-
*
|
|
1900
|
+
*
|
|
1901
|
+
* @sample {highcharts|highstock} highcharts/series/color-zones-dashstyle-dot/
|
|
1958
1902
|
* Dashed line indicates prognosis
|
|
1959
|
-
*
|
|
1960
|
-
* @
|
|
1903
|
+
*
|
|
1904
|
+
* @type {string}
|
|
1905
|
+
* @since 4.1.0
|
|
1906
|
+
* @product highcharts highstock
|
|
1961
1907
|
* @apioption plotOptions.series.zones.dashStyle
|
|
1962
1908
|
*/
|
|
1963
1909
|
|
|
1964
1910
|
/**
|
|
1965
1911
|
* Defines the fill color for the series (in area type series)
|
|
1966
1912
|
*
|
|
1967
|
-
* @type {Color}
|
|
1968
1913
|
* @see [fillColor](#plotOptions.area.fillColor)
|
|
1969
|
-
*
|
|
1970
|
-
* @
|
|
1914
|
+
*
|
|
1915
|
+
* @type {Highcharts.ColorString}
|
|
1916
|
+
* @since 4.1.0
|
|
1917
|
+
* @product highcharts highstock
|
|
1971
1918
|
* @apioption plotOptions.series.zones.fillColor
|
|
1972
1919
|
*/
|
|
1973
1920
|
|
|
@@ -1975,15 +1922,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1975
1922
|
* The value up to where the zone extends, if undefined the zones stretches
|
|
1976
1923
|
* to the last value in the series.
|
|
1977
1924
|
*
|
|
1978
|
-
* @type
|
|
1979
|
-
* @
|
|
1980
|
-
* @
|
|
1981
|
-
* @product highcharts highstock
|
|
1925
|
+
* @type {number}
|
|
1926
|
+
* @since 4.1.0
|
|
1927
|
+
* @product highcharts highstock
|
|
1982
1928
|
* @apioption plotOptions.series.zones.value
|
|
1983
1929
|
*/
|
|
1984
1930
|
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
1931
|
/**
|
|
1988
1932
|
* Determines whether the series should look for the nearest point
|
|
1989
1933
|
* in both dimensions or just the x-dimension when hovering the series.
|
|
@@ -1994,19 +1938,158 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
1994
1938
|
* Applies only to series types using nearest neighbor search (not
|
|
1995
1939
|
* direct hover) for tooltip.
|
|
1996
1940
|
*
|
|
1997
|
-
* @validvalue ['x', 'xy']
|
|
1998
|
-
* @type {String}
|
|
1999
1941
|
* @sample {highcharts} highcharts/series/findnearestpointby/
|
|
2000
1942
|
* Different hover behaviors
|
|
2001
1943
|
* @sample {highstock} highcharts/series/findnearestpointby/
|
|
2002
1944
|
* Different hover behaviors
|
|
2003
1945
|
* @sample {highmaps} highcharts/series/findnearestpointby/
|
|
2004
1946
|
* Different hover behaviors
|
|
2005
|
-
*
|
|
1947
|
+
*
|
|
1948
|
+
* @since 5.0.10
|
|
1949
|
+
* @validvalue ["x", "xy"]
|
|
2006
1950
|
*/
|
|
2007
1951
|
findNearestPointBy: 'x'
|
|
2008
1952
|
|
|
2009
1953
|
}, /** @lends Highcharts.Series.prototype */ {
|
|
1954
|
+
|
|
1955
|
+
/**
|
|
1956
|
+
* Series options for specific data and the data itself. In TypeScript you
|
|
1957
|
+
* have to cast the series options to specific series types, to get all
|
|
1958
|
+
* possible options for a series.
|
|
1959
|
+
*
|
|
1960
|
+
* @example
|
|
1961
|
+
* // TypeScript example
|
|
1962
|
+
* Highcharts.chart('container', {
|
|
1963
|
+
* series: [{
|
|
1964
|
+
* color: '#06C',
|
|
1965
|
+
* data: [[0, 1], [2, 3]]
|
|
1966
|
+
* } as Highcharts.SeriesLineOptions ]
|
|
1967
|
+
* });
|
|
1968
|
+
*
|
|
1969
|
+
*
|
|
1970
|
+
* @type {Array<*>}
|
|
1971
|
+
* @apioption series
|
|
1972
|
+
*/
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* An id for the series. This can be used after render time to get a pointer
|
|
1976
|
+
* to the series object through `chart.get()`.
|
|
1977
|
+
*
|
|
1978
|
+
* @sample {highcharts} highcharts/plotoptions/series-id/
|
|
1979
|
+
* Get series by id
|
|
1980
|
+
*
|
|
1981
|
+
* @type {string}
|
|
1982
|
+
* @since 1.2.0
|
|
1983
|
+
* @apioption series.id
|
|
1984
|
+
*/
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* The index of the series in the chart, affecting the internal index in the
|
|
1988
|
+
* `chart.series` array, the visible Z index as well as the order in the
|
|
1989
|
+
* legend.
|
|
1990
|
+
*
|
|
1991
|
+
* @type {number}
|
|
1992
|
+
* @since 2.3.0
|
|
1993
|
+
* @apioption series.index
|
|
1994
|
+
*/
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* The sequential index of the series in the legend.
|
|
1998
|
+
*
|
|
1999
|
+
* @see [legend.reversed](#legend.reversed),
|
|
2000
|
+
* [yAxis.reversedStacks](#yAxis.reversedStacks)
|
|
2001
|
+
*
|
|
2002
|
+
* @sample {highcharts|highstock} highcharts/series/legendindex/
|
|
2003
|
+
* Legend in opposite order
|
|
2004
|
+
*
|
|
2005
|
+
* @type {number}
|
|
2006
|
+
* @apioption series.legendIndex
|
|
2007
|
+
*/
|
|
2008
|
+
/**
|
|
2009
|
+
* The name of the series as shown in the legend, tooltip etc.
|
|
2010
|
+
*
|
|
2011
|
+
* @sample {highcharts} highcharts/series/name/
|
|
2012
|
+
* Series name
|
|
2013
|
+
* @sample {highmaps} maps/demo/category-map/
|
|
2014
|
+
* Series name
|
|
2015
|
+
*
|
|
2016
|
+
* @type {string}
|
|
2017
|
+
* @apioption series.name
|
|
2018
|
+
*/
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* This option allows grouping series in a stacked chart. The stack option
|
|
2022
|
+
* can be a string or anything else, as long as the grouped series' stack
|
|
2023
|
+
* options match each other after conversion into a string.
|
|
2024
|
+
*
|
|
2025
|
+
* @sample {highcharts} highcharts/series/stack/
|
|
2026
|
+
* Stacked and grouped columns
|
|
2027
|
+
*
|
|
2028
|
+
* @type {string|*}
|
|
2029
|
+
* @since 2.1
|
|
2030
|
+
* @product highcharts highstock
|
|
2031
|
+
* @apioption series.stack
|
|
2032
|
+
*/
|
|
2033
|
+
|
|
2034
|
+
/**
|
|
2035
|
+
* The type of series, for example `line` or `column`. By default, the
|
|
2036
|
+
* series type is inherited from [chart.type](#chart.type), so unless the
|
|
2037
|
+
* chart is a combination of series types, there is no need to set it on the
|
|
2038
|
+
* series level.
|
|
2039
|
+
*
|
|
2040
|
+
* @sample {highcharts} highcharts/series/type/
|
|
2041
|
+
* Line and column in the same chart
|
|
2042
|
+
* @sample {highmaps} maps/demo/mapline-mappoint/
|
|
2043
|
+
* Multiple types in the same map
|
|
2044
|
+
*
|
|
2045
|
+
* @type {string}
|
|
2046
|
+
* @apioption series.type
|
|
2047
|
+
*/
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* When using dual or multiple x axes, this number defines which xAxis the
|
|
2051
|
+
* particular series is connected to. It refers to either the
|
|
2052
|
+
* {@link #xAxis.id|axis id}
|
|
2053
|
+
* or the index of the axis in the xAxis array, with 0 being the first.
|
|
2054
|
+
*
|
|
2055
|
+
* @type {number|string}
|
|
2056
|
+
* @default 0
|
|
2057
|
+
* @product highcharts highstock
|
|
2058
|
+
* @apioption series.xAxis
|
|
2059
|
+
*/
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* When using dual or multiple y axes, this number defines which yAxis the
|
|
2063
|
+
* particular series is connected to. It refers to either the
|
|
2064
|
+
* {@link #yAxis.id|axis id}
|
|
2065
|
+
* or the index of the axis in the yAxis array, with 0 being the first.
|
|
2066
|
+
*
|
|
2067
|
+
* @sample {highcharts} highcharts/series/yaxis/
|
|
2068
|
+
* Apply the column series to the secondary Y axis
|
|
2069
|
+
*
|
|
2070
|
+
* @type {number|string}
|
|
2071
|
+
* @default 0
|
|
2072
|
+
* @product highcharts highstock
|
|
2073
|
+
* @apioption series.yAxis
|
|
2074
|
+
*/
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* Define the visual z index of the series.
|
|
2078
|
+
*
|
|
2079
|
+
* @sample {highcharts} highcharts/plotoptions/series-zindex-default/
|
|
2080
|
+
* With no z index, the series defined last are on top
|
|
2081
|
+
* @sample {highcharts} highcharts/plotoptions/series-zindex/
|
|
2082
|
+
* With a z index, the series with the highest z index is on top
|
|
2083
|
+
* @sample {highstock} highcharts/plotoptions/series-zindex-default/
|
|
2084
|
+
* With no z index, the series defined last are on top
|
|
2085
|
+
* @sample {highstock} highcharts/plotoptions/series-zindex/
|
|
2086
|
+
* With a z index, the series with the highest z index is on top
|
|
2087
|
+
*
|
|
2088
|
+
* @type {number}
|
|
2089
|
+
* @product highcharts highstock
|
|
2090
|
+
* @apioption series.zIndex
|
|
2091
|
+
*/
|
|
2092
|
+
|
|
2010
2093
|
isCartesian: true,
|
|
2011
2094
|
pointClass: Point,
|
|
2012
2095
|
sorted: true, // requires the data to be sorted
|
|
@@ -2026,9 +2109,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2026
2109
|
/**
|
|
2027
2110
|
* Read only. The chart that the series belongs to.
|
|
2028
2111
|
*
|
|
2029
|
-
* @name chart
|
|
2030
|
-
* @
|
|
2031
|
-
* @type {Chart}
|
|
2112
|
+
* @name Highcharts.Series#chart
|
|
2113
|
+
* @type {Highcharts.Chart}
|
|
2032
2114
|
*/
|
|
2033
2115
|
series.chart = chart;
|
|
2034
2116
|
|
|
@@ -2037,18 +2119,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2037
2119
|
* type in the series options anc can be altered using {@link
|
|
2038
2120
|
* Series#update}.
|
|
2039
2121
|
*
|
|
2040
|
-
* @name type
|
|
2041
|
-
* @
|
|
2042
|
-
* @type String
|
|
2122
|
+
* @name Highcharts.Series#type
|
|
2123
|
+
* @type {string}
|
|
2043
2124
|
*/
|
|
2044
2125
|
|
|
2045
2126
|
/**
|
|
2046
2127
|
* Read only. The series' current options. To update, use {@link
|
|
2047
2128
|
* Series#update}.
|
|
2048
2129
|
*
|
|
2049
|
-
* @name options
|
|
2050
|
-
* @
|
|
2051
|
-
* @type SeriesOptions
|
|
2130
|
+
* @name Highcharts.Series#options
|
|
2131
|
+
* @type {Highcharts.PlotSeriesOptions}
|
|
2052
2132
|
*/
|
|
2053
2133
|
series.options = options = series.setOptions(options);
|
|
2054
2134
|
series.linkedSeries = [];
|
|
@@ -2062,9 +2142,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2062
2142
|
* The series name as given in the options. Defaults to
|
|
2063
2143
|
* "Series {n}".
|
|
2064
2144
|
*
|
|
2065
|
-
* @name name
|
|
2066
|
-
* @
|
|
2067
|
-
* @type {String}
|
|
2145
|
+
* @name Highcharts.Series#name
|
|
2146
|
+
* @type {string}
|
|
2068
2147
|
*/
|
|
2069
2148
|
name: options.name,
|
|
2070
2149
|
state: '',
|
|
@@ -2073,18 +2152,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2073
2152
|
* Series#show}, {@link Series#hide}, or in the initial
|
|
2074
2153
|
* configuration.
|
|
2075
2154
|
*
|
|
2076
|
-
* @name visible
|
|
2077
|
-
* @
|
|
2078
|
-
* @type {Boolean}
|
|
2155
|
+
* @name Highcharts.Series#visible
|
|
2156
|
+
* @type {boolean}
|
|
2079
2157
|
*/
|
|
2080
2158
|
visible: options.visible !== false, // true by default
|
|
2081
2159
|
/**
|
|
2082
2160
|
* Read only. The series' selected state as set by {@link
|
|
2083
2161
|
* Highcharts.Series#select}.
|
|
2084
2162
|
*
|
|
2085
|
-
* @name selected
|
|
2086
|
-
* @
|
|
2087
|
-
* @type {Boolean}
|
|
2163
|
+
* @name Highcharts.Series#selected
|
|
2164
|
+
* @type {boolean}
|
|
2088
2165
|
*/
|
|
2089
2166
|
selected: options.selected === true // false by default
|
|
2090
2167
|
});
|
|
@@ -2140,9 +2217,13 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2140
2217
|
* option. Used internally when adding series.
|
|
2141
2218
|
*
|
|
2142
2219
|
* @private
|
|
2143
|
-
* @
|
|
2144
|
-
*
|
|
2145
|
-
* @
|
|
2220
|
+
* @function Highcharts.Series#insert
|
|
2221
|
+
*
|
|
2222
|
+
* @param {Array<Highcharts.Series>} collection
|
|
2223
|
+
* A collection of series, like `chart.series` or `xAxis.series`.
|
|
2224
|
+
*
|
|
2225
|
+
* @return {number}
|
|
2226
|
+
* The index of the series in the collection.
|
|
2146
2227
|
*/
|
|
2147
2228
|
insert: function (collection) {
|
|
2148
2229
|
var indexOption = this.options.index,
|
|
@@ -2176,6 +2257,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2176
2257
|
* series in the `axis.series` array.
|
|
2177
2258
|
*
|
|
2178
2259
|
* @private
|
|
2260
|
+
* @function Highcharts.Series#bindAxes
|
|
2261
|
+
*
|
|
2262
|
+
* @exception 18
|
|
2179
2263
|
*/
|
|
2180
2264
|
bindAxes: function () {
|
|
2181
2265
|
var series = this,
|
|
@@ -2212,17 +2296,15 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2212
2296
|
* Read only. The unique xAxis object associated with the
|
|
2213
2297
|
* series.
|
|
2214
2298
|
*
|
|
2215
|
-
* @name xAxis
|
|
2216
|
-
* @
|
|
2217
|
-
* @type Axis
|
|
2299
|
+
* @name Highcharts.Series#xAxis
|
|
2300
|
+
* @type {Highcharts.Axis}
|
|
2218
2301
|
*/
|
|
2219
2302
|
/**
|
|
2220
2303
|
* Read only. The unique yAxis object associated with the
|
|
2221
2304
|
* series.
|
|
2222
2305
|
*
|
|
2223
|
-
* @name yAxis
|
|
2224
|
-
* @
|
|
2225
|
-
* @type Axis
|
|
2306
|
+
* @name Highcharts.Series#yAxis
|
|
2307
|
+
* @type {Highcharts.Axis}
|
|
2226
2308
|
*/
|
|
2227
2309
|
series[AXIS] = axis;
|
|
2228
2310
|
|
|
@@ -2247,6 +2329,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2247
2329
|
* `series.parallelArrays` array.
|
|
2248
2330
|
*
|
|
2249
2331
|
* @private
|
|
2332
|
+
* @function Highcharts.Series#updateParallelArrays
|
|
2333
|
+
*
|
|
2334
|
+
* @param {Highcharts.Point} point
|
|
2335
|
+
*
|
|
2336
|
+
* @param {number|string} i
|
|
2250
2337
|
*/
|
|
2251
2338
|
updateParallelArrays: function (point, i) {
|
|
2252
2339
|
var series = point.series,
|
|
@@ -2277,6 +2364,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2277
2364
|
* the point that calls autoIncrement.
|
|
2278
2365
|
*
|
|
2279
2366
|
* @private
|
|
2367
|
+
* @function Highcharts.Series#autoIncrement
|
|
2368
|
+
*
|
|
2369
|
+
* @return {number}
|
|
2280
2370
|
*/
|
|
2281
2371
|
autoIncrement: function () {
|
|
2282
2372
|
|
|
@@ -2332,8 +2422,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2332
2422
|
* internally on initiating and updating series. This function will not
|
|
2333
2423
|
* redraw the series. For API usage, use {@link Series#update}.
|
|
2334
2424
|
*
|
|
2335
|
-
* @
|
|
2336
|
-
*
|
|
2425
|
+
* @function Highcharts.Series#setOptions
|
|
2426
|
+
*
|
|
2427
|
+
* @param {Highcharts.PlotSeriesOptions} itemOptions
|
|
2428
|
+
* The series options.
|
|
2429
|
+
*
|
|
2430
|
+
* @return {Highcharts.PlotSeriesOptions}
|
|
2431
|
+
*
|
|
2432
|
+
* @fires Highcharts.Series#event:afterSetOptions
|
|
2337
2433
|
*/
|
|
2338
2434
|
setOptions: function (itemOptions) {
|
|
2339
2435
|
var chart = this.chart,
|
|
@@ -2427,12 +2523,25 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2427
2523
|
* user. This method can be simply overridden as series name format can
|
|
2428
2524
|
* vary (e.g. technical indicators).
|
|
2429
2525
|
*
|
|
2430
|
-
* @
|
|
2526
|
+
* @function Highcharts.Series#getName
|
|
2527
|
+
*
|
|
2528
|
+
* @return {string}
|
|
2529
|
+
* The series name.
|
|
2431
2530
|
*/
|
|
2432
2531
|
getName: function () {
|
|
2433
2532
|
return this.name || 'Series ' + (this.index + 1);
|
|
2434
2533
|
},
|
|
2435
2534
|
|
|
2535
|
+
/**
|
|
2536
|
+
* @private
|
|
2537
|
+
* @function Highcharts.Series#getCyclic
|
|
2538
|
+
*
|
|
2539
|
+
* @param {string} prop
|
|
2540
|
+
*
|
|
2541
|
+
* @param {*} value
|
|
2542
|
+
*
|
|
2543
|
+
* @param {*} [defaults]
|
|
2544
|
+
*/
|
|
2436
2545
|
getCyclic: function (prop, value, defaults) {
|
|
2437
2546
|
var i,
|
|
2438
2547
|
chart = this.chart,
|
|
@@ -2477,21 +2586,21 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2477
2586
|
* Get the series' color based on either the options or pulled from global
|
|
2478
2587
|
* options.
|
|
2479
2588
|
*
|
|
2480
|
-
* @
|
|
2589
|
+
* @function Highcharts.Series#getColor
|
|
2481
2590
|
*/
|
|
2482
2591
|
|
|
2483
2592
|
getColor: function () {
|
|
2484
2593
|
this.getCyclic('color');
|
|
2485
2594
|
},
|
|
2486
|
-
|
|
2487
2595
|
|
|
2488
2596
|
/**
|
|
2489
2597
|
* Get the series' symbol based on either the options or pulled from global
|
|
2490
2598
|
* options.
|
|
2599
|
+
*
|
|
2600
|
+
* @function Highcharts.Series#getSymbol
|
|
2491
2601
|
*/
|
|
2492
2602
|
getSymbol: function () {
|
|
2493
2603
|
var seriesMarkerOption = this.options.marker;
|
|
2494
|
-
|
|
2495
2604
|
this.getCyclic(
|
|
2496
2605
|
'symbol',
|
|
2497
2606
|
seriesMarkerOption.symbol,
|
|
@@ -2499,6 +2608,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2499
2608
|
);
|
|
2500
2609
|
},
|
|
2501
2610
|
|
|
2611
|
+
/**
|
|
2612
|
+
* @private
|
|
2613
|
+
* @borrows LegendSymbolMixin.drawLineMarker as Highcharts.Series#drawLegendSymbol
|
|
2614
|
+
*/
|
|
2502
2615
|
drawLegendSymbol: LegendSymbolMixin.drawLineMarker,
|
|
2503
2616
|
|
|
2504
2617
|
/**
|
|
@@ -2508,6 +2621,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2508
2621
|
* allows adding or removing points if the X-es don't match.
|
|
2509
2622
|
*
|
|
2510
2623
|
* @private
|
|
2624
|
+
* @function Highcharts.Series#updateData
|
|
2625
|
+
*
|
|
2626
|
+
* @param {Array<*>} data
|
|
2627
|
+
*
|
|
2628
|
+
* @return {boolean}
|
|
2511
2629
|
*/
|
|
2512
2630
|
updateData: function (data) {
|
|
2513
2631
|
var options = this.options,
|
|
@@ -2537,8 +2655,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2537
2655
|
// Search for the same X in the existing data set
|
|
2538
2656
|
pointIndex = H.inArray(x, this.xData, lastIndex);
|
|
2539
2657
|
|
|
2540
|
-
// Matching X not found
|
|
2541
|
-
|
|
2658
|
+
// Matching X not found
|
|
2659
|
+
// or used already due to ununique x values (#8995),
|
|
2660
|
+
// add point (but later)
|
|
2661
|
+
if (pointIndex === -1 || oldData[pointIndex].touched) {
|
|
2542
2662
|
pointsToAdd.push(pointOptions);
|
|
2543
2663
|
|
|
2544
2664
|
// Matching X found, update
|
|
@@ -2554,10 +2674,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2554
2674
|
// are not touched.
|
|
2555
2675
|
oldData[pointIndex].touched = true;
|
|
2556
2676
|
|
|
2557
|
-
// Speed optimize by only searching
|
|
2677
|
+
// Speed optimize by only searching after last known index.
|
|
2558
2678
|
// Performs ~20% bettor on large data sets.
|
|
2559
2679
|
if (requireSorting) {
|
|
2560
|
-
lastIndex = pointIndex;
|
|
2680
|
+
lastIndex = pointIndex + 1;
|
|
2561
2681
|
}
|
|
2562
2682
|
// Point exists, no changes, don't remove it
|
|
2563
2683
|
} else if (oldData[pointIndex]) {
|
|
@@ -2610,25 +2730,6 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2610
2730
|
* or a different amount of points, as handled by the `updatePoints`
|
|
2611
2731
|
* parameter.
|
|
2612
2732
|
*
|
|
2613
|
-
* @param {SeriesDataOptions} data
|
|
2614
|
-
* Takes an array of data in the same format as described under
|
|
2615
|
-
* `series.typedata` for the given series type.
|
|
2616
|
-
* @param {Boolean} [redraw=true]
|
|
2617
|
-
* Whether to redraw the chart after the series is altered. If doing
|
|
2618
|
-
* more operations on the chart, it is a good idea to set redraw to
|
|
2619
|
-
* false and call {@link Chart#redraw} after.
|
|
2620
|
-
* @param {AnimationOptions} [animation]
|
|
2621
|
-
* When the updated data is the same length as the existing data,
|
|
2622
|
-
* points will be updated by default, and animation visualizes how
|
|
2623
|
-
* the points are changed. Set false to disable animation, or a
|
|
2624
|
-
* configuration object to set duration or easing.
|
|
2625
|
-
* @param {Boolean} [updatePoints=true]
|
|
2626
|
-
* When the updated data is the same length as the existing data, or
|
|
2627
|
-
* points can be matched by X values, points will be updated instead
|
|
2628
|
-
* of replaced. This allows updating with animation and performs
|
|
2629
|
-
* better. In this case, the original array is not passed by
|
|
2630
|
-
* reference. Set `false` to prevent.
|
|
2631
|
-
*
|
|
2632
2733
|
* @sample highcharts/members/series-setdata/
|
|
2633
2734
|
* Set new data from a button
|
|
2634
2735
|
* @sample highcharts/members/series-setdata-pie/
|
|
@@ -2637,6 +2738,32 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2637
2738
|
* Set new data in Highstock
|
|
2638
2739
|
* @sample maps/members/series-setdata/
|
|
2639
2740
|
* Set new data in Highmaps
|
|
2741
|
+
*
|
|
2742
|
+
* @function Highcharts.Series#setData
|
|
2743
|
+
*
|
|
2744
|
+
* @param {Array<*>} data
|
|
2745
|
+
* Takes an array of data in the same format as described under
|
|
2746
|
+
* `series.{type}.data` for the given series type, for example a
|
|
2747
|
+
* line series would take data in the form described under
|
|
2748
|
+
* [series.line.data](https://api.highcharts.com/highcharts/series.line.data).
|
|
2749
|
+
*
|
|
2750
|
+
* @param {boolean} [redraw=true]
|
|
2751
|
+
* Whether to redraw the chart after the series is altered. If doing
|
|
2752
|
+
* more operations on the chart, it is a good idea to set redraw to
|
|
2753
|
+
* false and call {@link Chart#redraw} after.
|
|
2754
|
+
*
|
|
2755
|
+
* @param {Highcharts.AnimationOptionsObject} [animation]
|
|
2756
|
+
* When the updated data is the same length as the existing data,
|
|
2757
|
+
* points will be updated by default, and animation visualizes how
|
|
2758
|
+
* the points are changed. Set false to disable animation, or a
|
|
2759
|
+
* configuration object to set duration or easing.
|
|
2760
|
+
*
|
|
2761
|
+
* @param {boolean} [updatePoints=true]
|
|
2762
|
+
* When the updated data is the same length as the existing data, or
|
|
2763
|
+
* points can be matched by X values, points will be updated instead
|
|
2764
|
+
* of replaced. This allows updating with animation and performs
|
|
2765
|
+
* better. In this case, the original array is not passed by
|
|
2766
|
+
* reference. Set `false` to prevent.
|
|
2640
2767
|
*/
|
|
2641
2768
|
setData: function (data, redraw, animation, updatePoints) {
|
|
2642
2769
|
var series = this,
|
|
@@ -2668,7 +2795,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2668
2795
|
oldDataLength &&
|
|
2669
2796
|
!series.cropped &&
|
|
2670
2797
|
!series.hasGroupedData &&
|
|
2671
|
-
series.visible
|
|
2798
|
+
series.visible &&
|
|
2799
|
+
// Soft updating has no benefit in boost, and causes JS error
|
|
2800
|
+
// (#8355)
|
|
2801
|
+
!series.isSeriesBoosting
|
|
2672
2802
|
) {
|
|
2673
2803
|
updatedData = this.updateData(data);
|
|
2674
2804
|
}
|
|
@@ -2786,8 +2916,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2786
2916
|
* provide data grouping.
|
|
2787
2917
|
*
|
|
2788
2918
|
* @private
|
|
2789
|
-
* @
|
|
2790
|
-
*
|
|
2919
|
+
* @function Highcharts.Series#processData
|
|
2920
|
+
*
|
|
2921
|
+
* @param {boolean} force
|
|
2922
|
+
* Force data grouping.
|
|
2923
|
+
*
|
|
2924
|
+
* @return {boolean|undefined}
|
|
2791
2925
|
*/
|
|
2792
2926
|
processData: function (force) {
|
|
2793
2927
|
var series = this,
|
|
@@ -2851,8 +2985,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2851
2985
|
|
|
2852
2986
|
// only crop if it's actually spilling out
|
|
2853
2987
|
} else if (
|
|
2854
|
-
|
|
2855
|
-
|
|
2988
|
+
series.yData && (
|
|
2989
|
+
processedXData[0] < min ||
|
|
2990
|
+
processedXData[dataLength - 1] > max
|
|
2991
|
+
)
|
|
2856
2992
|
) {
|
|
2857
2993
|
croppedData = this.cropData(
|
|
2858
2994
|
series.xData,
|
|
@@ -2909,6 +3045,19 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2909
3045
|
* dataMin and dataMax within the cropped range.
|
|
2910
3046
|
*
|
|
2911
3047
|
* @private
|
|
3048
|
+
* @function Highcharts.Series#cropData
|
|
3049
|
+
*
|
|
3050
|
+
* @param {Array<number>} xData
|
|
3051
|
+
*
|
|
3052
|
+
* @param {Array<number>} yData
|
|
3053
|
+
*
|
|
3054
|
+
* @param {number} min
|
|
3055
|
+
*
|
|
3056
|
+
* @param {number} max
|
|
3057
|
+
*
|
|
3058
|
+
* @param {number} [cropShoulder]
|
|
3059
|
+
*
|
|
3060
|
+
* @return {*}
|
|
2912
3061
|
*/
|
|
2913
3062
|
cropData: function (xData, yData, min, max, cropShoulder) {
|
|
2914
3063
|
var dataLength = xData.length,
|
|
@@ -2950,6 +3099,7 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
2950
3099
|
* away unused points and optionally grouped in Highcharts Stock.
|
|
2951
3100
|
*
|
|
2952
3101
|
* @private
|
|
3102
|
+
* @function Highcharts.Series#generatePoints
|
|
2953
3103
|
*/
|
|
2954
3104
|
generatePoints: function () {
|
|
2955
3105
|
var series = this,
|
|
@@ -3008,12 +3158,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3008
3158
|
* in the group.
|
|
3009
3159
|
* - `dataGroup.length` is the amount of points in the group.
|
|
3010
3160
|
*
|
|
3011
|
-
* @name dataGroup
|
|
3012
|
-
* @
|
|
3013
|
-
* @type {Object}
|
|
3161
|
+
* @name Highcharts.Point#dataGroup
|
|
3162
|
+
* @type {Highcharts.SVGElement|undefined}
|
|
3014
3163
|
*
|
|
3164
|
+
* @product highstock
|
|
3015
3165
|
*/
|
|
3016
3166
|
point.dataGroup = series.groupMap[i];
|
|
3167
|
+
if (point.dataGroup.options) {
|
|
3168
|
+
point.options = point.dataGroup.options;
|
|
3169
|
+
extend(point, point.dataGroup.options);
|
|
3170
|
+
}
|
|
3017
3171
|
}
|
|
3018
3172
|
if (point) { // #6279
|
|
3019
3173
|
point.index = cursor; // For faster access in Point.update
|
|
@@ -3056,9 +3210,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3056
3210
|
* demand. To modify the data, use {@link Highcharts.Series#setData} or
|
|
3057
3211
|
* {@link Highcharts.Point#update}.
|
|
3058
3212
|
*
|
|
3059
|
-
* @
|
|
3060
|
-
*
|
|
3061
|
-
* @
|
|
3213
|
+
* @see Series.points
|
|
3214
|
+
*
|
|
3215
|
+
* @name Highcharts.Series#data
|
|
3062
3216
|
* @type {Array<Point>}
|
|
3063
3217
|
*/
|
|
3064
3218
|
series.data = data;
|
|
@@ -3071,9 +3225,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3071
3225
|
* is grouped, these can't be correlated one to one. To
|
|
3072
3226
|
* modify the data, use {@link Highcharts.Series#setData} or {@link
|
|
3073
3227
|
* Highcharts.Point#update}.
|
|
3074
|
-
*
|
|
3075
|
-
* @
|
|
3076
|
-
* @type {Array<Point>}
|
|
3228
|
+
*
|
|
3229
|
+
* @name Highcharts.Series#points
|
|
3230
|
+
* @type {Array<Highcharts.Point>}
|
|
3077
3231
|
*/
|
|
3078
3232
|
series.points = points;
|
|
3079
3233
|
},
|
|
@@ -3082,10 +3236,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3082
3236
|
* Calculate Y extremes for the visible data. The result is set as
|
|
3083
3237
|
* `dataMin` and `dataMax` on the Series item.
|
|
3084
3238
|
*
|
|
3085
|
-
* @
|
|
3086
|
-
* The data to inspect. Defaults to the current data within the
|
|
3087
|
-
* visible range.
|
|
3239
|
+
* @function Highcharts.Series#getExtremes
|
|
3088
3240
|
*
|
|
3241
|
+
* @param {Array<number>} [yData]
|
|
3242
|
+
* The data to inspect. Defaults to the current data within the
|
|
3243
|
+
* visible range.
|
|
3089
3244
|
*/
|
|
3090
3245
|
getExtremes: function (yData) {
|
|
3091
3246
|
var xAxis = this.xAxis,
|
|
@@ -3156,6 +3311,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3156
3311
|
* data needed later in the `drawPoints` and `drawGraph` functions. This
|
|
3157
3312
|
* function can be overridden in plugins and custom series type
|
|
3158
3313
|
* implementations.
|
|
3314
|
+
*
|
|
3315
|
+
* @function Highcharts.Series#translate
|
|
3316
|
+
*
|
|
3317
|
+
* @todo
|
|
3318
|
+
* Make events official: Fires the event `afterTranslate`.
|
|
3159
3319
|
*/
|
|
3160
3320
|
translate: function () {
|
|
3161
3321
|
if (!this.processedXData) { // hidden series
|
|
@@ -3333,13 +3493,14 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3333
3493
|
/**
|
|
3334
3494
|
* Return the series points with null points filtered out.
|
|
3335
3495
|
*
|
|
3336
|
-
* @param
|
|
3337
|
-
*
|
|
3338
|
-
* @param {Boolean} [insideOnly=false]
|
|
3339
|
-
* Whether to inspect only the points that are inside the visible
|
|
3340
|
-
* view.
|
|
3496
|
+
* @param {Array<Highcharts.Point>} [points]
|
|
3497
|
+
* The points to inspect, defaults to {@link Series.points}.
|
|
3341
3498
|
*
|
|
3342
|
-
* @
|
|
3499
|
+
* @param {boolean} [insideOnly=false]
|
|
3500
|
+
* Whether to inspect only the points that are inside the visible
|
|
3501
|
+
* view.
|
|
3502
|
+
*
|
|
3503
|
+
* @return {Array<Highcharts.Point>}
|
|
3343
3504
|
* The valid points.
|
|
3344
3505
|
*/
|
|
3345
3506
|
getValidPoints: function (points, insideOnly) {
|
|
@@ -3363,6 +3524,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3363
3524
|
* animation to set the final clip.
|
|
3364
3525
|
*
|
|
3365
3526
|
* @private
|
|
3527
|
+
* @function Highcharts.Series#setClip
|
|
3528
|
+
*
|
|
3529
|
+
* @param {boolean} [animation]
|
|
3366
3530
|
*/
|
|
3367
3531
|
setClip: function (animation) {
|
|
3368
3532
|
var chart = this.chart,
|
|
@@ -3453,8 +3617,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3453
3617
|
* order to perform the actual animation. After the second run, the function
|
|
3454
3618
|
* is removed.
|
|
3455
3619
|
*
|
|
3456
|
-
* @
|
|
3457
|
-
*
|
|
3620
|
+
* @function Highcharts.Series#animate
|
|
3621
|
+
*
|
|
3622
|
+
* @param {boolean} init
|
|
3623
|
+
* Initialize the animation.
|
|
3458
3624
|
*/
|
|
3459
3625
|
animate: function (init) {
|
|
3460
3626
|
var series = this,
|
|
@@ -3495,6 +3661,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3495
3661
|
* This runs after animation to land on the final plot clipping.
|
|
3496
3662
|
*
|
|
3497
3663
|
* @private
|
|
3664
|
+
* @function Highcharts.Series#afterAnimate
|
|
3665
|
+
*
|
|
3666
|
+
* @todo
|
|
3667
|
+
* Make events official: Fires the event `afterAnimate`.
|
|
3498
3668
|
*/
|
|
3499
3669
|
afterAnimate: function () {
|
|
3500
3670
|
this.setClip();
|
|
@@ -3508,6 +3678,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3508
3678
|
* types. The resulting element is typically stored as {@link
|
|
3509
3679
|
* Point.graphic}, and is created on the first call and updated and moved on
|
|
3510
3680
|
* subsequent calls.
|
|
3681
|
+
*
|
|
3682
|
+
* @function Highcharts.Series#drawPoints
|
|
3511
3683
|
*/
|
|
3512
3684
|
drawPoints: function () {
|
|
3513
3685
|
var series = this,
|
|
@@ -3615,14 +3787,15 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3615
3787
|
* Get non-presentational attributes for a point. Used internally for both
|
|
3616
3788
|
* styled mode and classic. Can be overridden for different series types.
|
|
3617
3789
|
*
|
|
3618
|
-
* @see
|
|
3790
|
+
* @see Series#pointAttribs
|
|
3791
|
+
*
|
|
3792
|
+
* @param {Highcharts.Point} point
|
|
3793
|
+
* The Point to inspect.
|
|
3619
3794
|
*
|
|
3620
|
-
* @param
|
|
3621
|
-
*
|
|
3622
|
-
* @param {String} [state]
|
|
3623
|
-
* The state, can be either `hover`, `select` or undefined.
|
|
3795
|
+
* @param {string} [state]
|
|
3796
|
+
* The state, can be either `hover`, `select` or undefined.
|
|
3624
3797
|
*
|
|
3625
|
-
* @return {SVGAttributes}
|
|
3798
|
+
* @return {Highcharts.SVGAttributes}
|
|
3626
3799
|
* A hash containing those attributes that are not settable from
|
|
3627
3800
|
* CSS.
|
|
3628
3801
|
*/
|
|
@@ -3674,10 +3847,15 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3674
3847
|
},
|
|
3675
3848
|
|
|
3676
3849
|
|
|
3850
|
+
|
|
3677
3851
|
/**
|
|
3678
3852
|
* Clear DOM objects and free up memory.
|
|
3679
3853
|
*
|
|
3680
3854
|
* @private
|
|
3855
|
+
* @function Highcharts.Series#destroy
|
|
3856
|
+
*
|
|
3857
|
+
* @todo
|
|
3858
|
+
* Make events official: Fires the event `destroy`.
|
|
3681
3859
|
*/
|
|
3682
3860
|
destroy: function () {
|
|
3683
3861
|
var series = this,
|
|
@@ -3754,6 +3932,15 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3754
3932
|
* Get the graph path.
|
|
3755
3933
|
*
|
|
3756
3934
|
* @private
|
|
3935
|
+
* @function Highcharts.Series#getGraphPath
|
|
3936
|
+
*
|
|
3937
|
+
* @param {Array<*>} points
|
|
3938
|
+
*
|
|
3939
|
+
* @param {boolean} nullsAsZeroes
|
|
3940
|
+
*
|
|
3941
|
+
* @param {boolean} connectCliffs
|
|
3942
|
+
*
|
|
3943
|
+
* @return {Array<number|string>}
|
|
3757
3944
|
*/
|
|
3758
3945
|
getGraphPath: function (points, nullsAsZeroes, connectCliffs) {
|
|
3759
3946
|
var series = this,
|
|
@@ -3879,6 +4066,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3879
4066
|
* The first time it generates the `series.graph` item and optionally other
|
|
3880
4067
|
* series-wide items like `series.area` for area charts. On subsequent calls
|
|
3881
4068
|
* these items are updated with new positions and attributes.
|
|
4069
|
+
*
|
|
4070
|
+
* @function Highcharts.Series#drawGraph
|
|
3882
4071
|
*/
|
|
3883
4072
|
drawGraph: function () {
|
|
3884
4073
|
var series = this,
|
|
@@ -3927,6 +4116,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3927
4116
|
* Extendable by series with multiple lines within one series.
|
|
3928
4117
|
*
|
|
3929
4118
|
* @private
|
|
4119
|
+
* @function Highcharts.Series#getZonesGraphs
|
|
4120
|
+
*
|
|
4121
|
+
* @param {Array<Array<string>>} props
|
|
4122
|
+
*
|
|
4123
|
+
* @return {Array<Array<string>>}
|
|
3930
4124
|
*/
|
|
3931
4125
|
getZonesGraphs: function (props) {
|
|
3932
4126
|
// Add the zone properties if any
|
|
@@ -3946,6 +4140,7 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
3946
4140
|
* Clip the graphs into zones for colors and styling.
|
|
3947
4141
|
*
|
|
3948
4142
|
* @private
|
|
4143
|
+
* @function Highcharts.Series#applyZones
|
|
3949
4144
|
*/
|
|
3950
4145
|
applyZones: function () {
|
|
3951
4146
|
var series = this,
|
|
@@ -4070,6 +4265,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4070
4265
|
* series.markerGroup.
|
|
4071
4266
|
*
|
|
4072
4267
|
* @private
|
|
4268
|
+
* @function Highcharts.Series#invertGroups
|
|
4269
|
+
*
|
|
4270
|
+
* @param {boolean} inverted
|
|
4073
4271
|
*/
|
|
4074
4272
|
invertGroups: function (inverted) {
|
|
4075
4273
|
var series = this,
|
|
@@ -4118,6 +4316,19 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4118
4316
|
* group will only be adjusted to the updated plot size.
|
|
4119
4317
|
*
|
|
4120
4318
|
* @private
|
|
4319
|
+
* @function Highcharts.Series#plotGroup
|
|
4320
|
+
*
|
|
4321
|
+
* @param {string} prop
|
|
4322
|
+
*
|
|
4323
|
+
* @param {string} name
|
|
4324
|
+
*
|
|
4325
|
+
* @param {string} visibility
|
|
4326
|
+
*
|
|
4327
|
+
* @param {number} zIndex
|
|
4328
|
+
*
|
|
4329
|
+
* @param {Highcharts.SVGElement} parent
|
|
4330
|
+
*
|
|
4331
|
+
* @return {Highcharts.SVGElement}
|
|
4121
4332
|
*/
|
|
4122
4333
|
plotGroup: function (prop, name, visibility, zIndex, parent) {
|
|
4123
4334
|
var group = this[prop],
|
|
@@ -4164,6 +4375,10 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4164
4375
|
|
|
4165
4376
|
/**
|
|
4166
4377
|
* Get the translation and scale for the plot area of this series.
|
|
4378
|
+
*
|
|
4379
|
+
* @function Highcharts.Series#getPlotBox
|
|
4380
|
+
*
|
|
4381
|
+
* @return {Highcharts.SeriesPlotBoxObject}
|
|
4167
4382
|
*/
|
|
4168
4383
|
getPlotBox: function () {
|
|
4169
4384
|
var chart = this.chart,
|
|
@@ -4187,6 +4402,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4187
4402
|
* Render the graph and markers. Called internally when first rendering and
|
|
4188
4403
|
* later when redrawing the chart. This function can be extended in plugins,
|
|
4189
4404
|
* but normally shouldn't be called directly.
|
|
4405
|
+
*
|
|
4406
|
+
* @function Highcharts.Series#render
|
|
4407
|
+
*
|
|
4408
|
+
* @todo
|
|
4409
|
+
* Make events official: Fires the event `afterRender`.
|
|
4190
4410
|
*/
|
|
4191
4411
|
render: function () {
|
|
4192
4412
|
var series = this,
|
|
@@ -4298,6 +4518,7 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4298
4518
|
* and normally shouldn't be called directly.
|
|
4299
4519
|
*
|
|
4300
4520
|
* @private
|
|
4521
|
+
* @function Highcharts.Series#redraw
|
|
4301
4522
|
*/
|
|
4302
4523
|
redraw: function () {
|
|
4303
4524
|
var series = this,
|
|
@@ -4332,6 +4553,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4332
4553
|
|
|
4333
4554
|
kdAxisArray: ['clientX', 'plotY'],
|
|
4334
4555
|
|
|
4556
|
+
/**
|
|
4557
|
+
* @private
|
|
4558
|
+
* @function Highcharts.Series#searchPoint
|
|
4559
|
+
*
|
|
4560
|
+
* @param {*} e
|
|
4561
|
+
*
|
|
4562
|
+
* @param {*} compareX
|
|
4563
|
+
*
|
|
4564
|
+
* @return {Highcharts.Point}
|
|
4565
|
+
*/
|
|
4335
4566
|
searchPoint: function (e, compareX) {
|
|
4336
4567
|
var series = this,
|
|
4337
4568
|
xAxis = series.xAxis,
|
|
@@ -4355,6 +4586,7 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4355
4586
|
* typically search in two dimensions, X and Y.
|
|
4356
4587
|
*
|
|
4357
4588
|
* @private
|
|
4589
|
+
* @function Highcharts.Series#buildKDTree
|
|
4358
4590
|
*/
|
|
4359
4591
|
buildKDTree: function () {
|
|
4360
4592
|
|
|
@@ -4418,6 +4650,16 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4418
4650
|
syncTimeout(startRecursive, series.options.kdNow ? 0 : 1);
|
|
4419
4651
|
},
|
|
4420
4652
|
|
|
4653
|
+
/**
|
|
4654
|
+
* @private
|
|
4655
|
+
* @function Highcharts.Series#searchKDTree
|
|
4656
|
+
*
|
|
4657
|
+
* @param {*} point
|
|
4658
|
+
*
|
|
4659
|
+
* @param {*} compareX
|
|
4660
|
+
*
|
|
4661
|
+
* @return {Highcharts.Point}
|
|
4662
|
+
*/
|
|
4421
4663
|
searchKDTree: function (point, compareX) {
|
|
4422
4664
|
var series = this,
|
|
4423
4665
|
kdX = this.kdAxisArray[0],
|
|
@@ -4496,22 +4738,25 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4496
4738
|
* A line series displays information as a series of data points connected by
|
|
4497
4739
|
* straight line segments.
|
|
4498
4740
|
*
|
|
4499
|
-
* @sample {highcharts} highcharts/demo/line-basic/
|
|
4500
|
-
*
|
|
4741
|
+
* @sample {highcharts} highcharts/demo/line-basic/
|
|
4742
|
+
* Line chart
|
|
4743
|
+
* @sample {highstock} stock/demo/basic-line/
|
|
4744
|
+
* Line chart
|
|
4501
4745
|
*
|
|
4502
|
-
* @extends
|
|
4503
|
-
* @product
|
|
4746
|
+
* @extends plotOptions.series
|
|
4747
|
+
* @product highcharts highstock
|
|
4504
4748
|
* @apioption plotOptions.line
|
|
4505
4749
|
*/
|
|
4506
4750
|
|
|
4751
|
+
|
|
4752
|
+
|
|
4507
4753
|
/**
|
|
4508
4754
|
* A `line` series. If the [type](#series.line.type) option is not
|
|
4509
4755
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
4510
4756
|
*
|
|
4511
|
-
* @
|
|
4512
|
-
* @extends series,plotOptions.line
|
|
4757
|
+
* @extends series,plotOptions.line
|
|
4513
4758
|
* @excluding dataParser,dataURL
|
|
4514
|
-
* @product
|
|
4759
|
+
* @product highcharts highstock
|
|
4515
4760
|
* @apioption series.line
|
|
4516
4761
|
*/
|
|
4517
4762
|
|
|
@@ -4541,8 +4786,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4541
4786
|
* ]
|
|
4542
4787
|
* ```
|
|
4543
4788
|
*
|
|
4544
|
-
* 3. An array of objects with named values. The
|
|
4545
|
-
*
|
|
4789
|
+
* 3. An array of objects with named values. The following snippet shows only a
|
|
4790
|
+
* few settings, see the complete options set below. If the total number of data
|
|
4546
4791
|
* points exceeds the series' [turboThreshold](#series.line.turboThreshold),
|
|
4547
4792
|
* this option is not available.
|
|
4548
4793
|
*
|
|
@@ -4560,7 +4805,6 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4560
4805
|
* }]
|
|
4561
4806
|
* ```
|
|
4562
4807
|
*
|
|
4563
|
-
* @type {Array<Object|Array|Number>}
|
|
4564
4808
|
* @sample {highcharts} highcharts/chart/reflow-true/
|
|
4565
4809
|
* Numerical values
|
|
4566
4810
|
* @sample {highcharts} highcharts/series/data-array-of-arrays/
|
|
@@ -4571,6 +4815,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4571
4815
|
* Arrays of point.name and y
|
|
4572
4816
|
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
4573
4817
|
* Config objects
|
|
4818
|
+
*
|
|
4819
|
+
* @type {Array<number|Array<number|string|Date>|*>}
|
|
4574
4820
|
* @apioption series.line.data
|
|
4575
4821
|
*/
|
|
4576
4822
|
|
|
@@ -4578,9 +4824,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4578
4824
|
* An additional, individual class name for the data point's graphic
|
|
4579
4825
|
* representation.
|
|
4580
4826
|
*
|
|
4581
|
-
* @type
|
|
4582
|
-
* @since
|
|
4583
|
-
* @product
|
|
4827
|
+
* @type {string}
|
|
4828
|
+
* @since 5.0.0
|
|
4829
|
+
* @product highcharts
|
|
4584
4830
|
* @apioption series.line.data.className
|
|
4585
4831
|
*/
|
|
4586
4832
|
|
|
@@ -4591,10 +4837,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4591
4837
|
* In styled mode, the `color` option doesn't take effect. Instead, use
|
|
4592
4838
|
* `colorIndex`.
|
|
4593
4839
|
*
|
|
4594
|
-
* @
|
|
4595
|
-
*
|
|
4596
|
-
*
|
|
4597
|
-
* @
|
|
4840
|
+
* @sample {highcharts} highcharts/point/color/
|
|
4841
|
+
* Mark the highest point
|
|
4842
|
+
*
|
|
4843
|
+
* @type {Highcharts.ColorString}
|
|
4844
|
+
* @product highcharts highstock
|
|
4598
4845
|
* @apioption series.line.data.color
|
|
4599
4846
|
*/
|
|
4600
4847
|
|
|
@@ -4605,9 +4852,9 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4605
4852
|
* the `fill` attribute, so the change in class name won't have a visual effect
|
|
4606
4853
|
* by default.
|
|
4607
4854
|
*
|
|
4608
|
-
* @type
|
|
4609
|
-
* @since
|
|
4610
|
-
* @product
|
|
4855
|
+
* @type {number}
|
|
4856
|
+
* @since 5.0.0
|
|
4857
|
+
* @product highcharts
|
|
4611
4858
|
* @apioption series.line.data.colorIndex
|
|
4612
4859
|
*/
|
|
4613
4860
|
|
|
@@ -4616,10 +4863,11 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4616
4863
|
* the ones for [plotOptions.series.dataLabels](
|
|
4617
4864
|
* #plotOptions.series.dataLabels).
|
|
4618
4865
|
*
|
|
4619
|
-
* @type {Object}
|
|
4620
4866
|
* @sample highcharts/point/datalabels/
|
|
4621
4867
|
* Show a label for the last value
|
|
4622
|
-
*
|
|
4868
|
+
*
|
|
4869
|
+
* @type {Highcharts.PlotSeriesDataLabelsOptions}
|
|
4870
|
+
* @product highcharts highstock
|
|
4623
4871
|
* @apioption series.line.data.dataLabels
|
|
4624
4872
|
*/
|
|
4625
4873
|
|
|
@@ -4627,9 +4875,8 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4627
4875
|
* A description of the point to add to the screen reader information
|
|
4628
4876
|
* about the point. Requires the Accessibility module.
|
|
4629
4877
|
*
|
|
4630
|
-
* @type
|
|
4631
|
-
* @
|
|
4632
|
-
* @since 5.0.0
|
|
4878
|
+
* @type {string}
|
|
4879
|
+
* @since 5.0.0
|
|
4633
4880
|
* @apioption series.line.data.description
|
|
4634
4881
|
*/
|
|
4635
4882
|
|
|
@@ -4637,11 +4884,12 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4637
4884
|
* An id for the point. This can be used after render time to get a
|
|
4638
4885
|
* pointer to the point object through `chart.get()`.
|
|
4639
4886
|
*
|
|
4640
|
-
* @
|
|
4641
|
-
*
|
|
4642
|
-
*
|
|
4643
|
-
* @
|
|
4644
|
-
* @
|
|
4887
|
+
* @sample {highcharts} highcharts/point/id/
|
|
4888
|
+
* Remove an id'd point
|
|
4889
|
+
*
|
|
4890
|
+
* @type {string}
|
|
4891
|
+
* @since 1.2.0
|
|
4892
|
+
* @product highcharts highstock
|
|
4645
4893
|
* @apioption series.line.data.id
|
|
4646
4894
|
*/
|
|
4647
4895
|
|
|
@@ -4650,7 +4898,7 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4650
4898
|
* data labels are about to overlap, only the one with the highest `labelrank`
|
|
4651
4899
|
* will be drawn.
|
|
4652
4900
|
*
|
|
4653
|
-
* @type
|
|
4901
|
+
* @type {number}
|
|
4654
4902
|
* @apioption series.line.data.labelrank
|
|
4655
4903
|
*/
|
|
4656
4904
|
|
|
@@ -4658,18 +4906,21 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4658
4906
|
* The name of the point as shown in the legend, tooltip, dataLabel
|
|
4659
4907
|
* etc.
|
|
4660
4908
|
*
|
|
4661
|
-
* @type {String}
|
|
4662
|
-
* @sample {highcharts} highcharts/series/data-array-of-objects/ Point names
|
|
4663
4909
|
* @see [xAxis.uniqueNames](#xAxis.uniqueNames)
|
|
4910
|
+
*
|
|
4911
|
+
* @sample {highcharts} highcharts/series/data-array-of-objects/
|
|
4912
|
+
* Point names
|
|
4913
|
+
*
|
|
4914
|
+
* @type {string}
|
|
4664
4915
|
* @apioption series.line.data.name
|
|
4665
4916
|
*/
|
|
4666
4917
|
|
|
4667
4918
|
/**
|
|
4668
4919
|
* Whether the data point is selected initially.
|
|
4669
4920
|
*
|
|
4670
|
-
* @type
|
|
4671
|
-
* @default
|
|
4672
|
-
* @product
|
|
4921
|
+
* @type {boolean}
|
|
4922
|
+
* @default false
|
|
4923
|
+
* @product highcharts highstock
|
|
4673
4924
|
* @apioption series.line.data.selected
|
|
4674
4925
|
*/
|
|
4675
4926
|
|
|
@@ -4677,30 +4928,29 @@ H.Series = H.seriesType('line', null, { // base series options
|
|
|
4677
4928
|
* The x value of the point. For datetime axes, the X value is the timestamp
|
|
4678
4929
|
* in milliseconds since 1970.
|
|
4679
4930
|
*
|
|
4680
|
-
* @type
|
|
4681
|
-
* @product
|
|
4931
|
+
* @type {number}
|
|
4932
|
+
* @product highcharts highstock
|
|
4682
4933
|
* @apioption series.line.data.x
|
|
4683
4934
|
*/
|
|
4684
4935
|
|
|
4685
4936
|
/**
|
|
4686
4937
|
* The y value of the point.
|
|
4687
4938
|
*
|
|
4688
|
-
* @type
|
|
4689
|
-
* @
|
|
4690
|
-
* @product highcharts highstock
|
|
4939
|
+
* @type {number}
|
|
4940
|
+
* @product highcharts highstock
|
|
4691
4941
|
* @apioption series.line.data.y
|
|
4692
4942
|
*/
|
|
4693
4943
|
|
|
4694
4944
|
/**
|
|
4695
4945
|
* Individual point events
|
|
4696
4946
|
*
|
|
4697
|
-
* @extends
|
|
4698
|
-
* @product
|
|
4947
|
+
* @extends plotOptions.series.point.events
|
|
4948
|
+
* @product highcharts highstock
|
|
4699
4949
|
* @apioption series.line.data.events
|
|
4700
4950
|
*/
|
|
4701
4951
|
|
|
4702
4952
|
/**
|
|
4703
|
-
* @extends
|
|
4704
|
-
* @product
|
|
4953
|
+
* @extends plotOptions.series.marker
|
|
4954
|
+
* @product highcharts highstock
|
|
4705
4955
|
* @apioption series.line.data.marker
|
|
4706
4956
|
*/
|