highcharts 7.1.1 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/annotations/popup.css +3 -3
- package/css/annotations/popup.scss +1 -1
- package/css/stocktools/gui.css +5 -5
- package/css/stocktools/gui.scss +1 -1
- package/es-modules/annotations/ControlPoint.js +1 -1
- package/es-modules/annotations/MockPoint.js +45 -12
- package/es-modules/annotations/annotations.src.js +203 -166
- package/es-modules/annotations/controllable/ControllableCircle.js +2 -10
- package/es-modules/annotations/controllable/ControllableImage.js +2 -10
- package/es-modules/annotations/controllable/ControllableLabel.js +54 -9
- package/es-modules/annotations/controllable/ControllableRect.js +2 -10
- package/es-modules/annotations/controllable/controllableMixin.js +32 -4
- package/es-modules/annotations/controllable/markerMixin.js +1 -0
- package/es-modules/annotations/eventEmitterMixin.js +1 -0
- package/es-modules/annotations/navigationBindings.js +15 -11
- package/es-modules/annotations/popup.js +59 -81
- package/es-modules/annotations/types/CrookedLine.js +19 -7
- package/es-modules/annotations/types/ElliottWave.js +7 -6
- package/es-modules/annotations/types/Fibonacci.js +14 -14
- package/es-modules/annotations/types/InfinityLine.js +4 -4
- package/es-modules/annotations/types/Measure.js +41 -41
- package/es-modules/annotations/types/Pitchfork.js +5 -4
- package/es-modules/annotations/types/VerticalLine.js +6 -5
- package/es-modules/error-messages.js +6 -1
- package/es-modules/indicators/indicators.src.js +5 -3
- package/es-modules/mixins/nodes.js +16 -8
- package/es-modules/modules/accessibility/AccessibilityComponent.js +4 -4
- package/es-modules/modules/accessibility/KeyboardNavigation.js +17 -4
- package/es-modules/modules/accessibility/components/RangeSelectorComponent.js +3 -2
- package/es-modules/modules/accessibility/components/SeriesComponent.js +110 -2
- package/es-modules/modules/accessibility/components/ZoomComponent.js +1 -1
- package/es-modules/modules/accessibility/options.js +2 -1
- package/es-modules/modules/bellcurve.src.js +27 -29
- package/es-modules/modules/boost/boost-init.js +14 -0
- package/es-modules/modules/boost/boost-overrides.js +13 -3
- package/es-modules/modules/boost/wgl-renderer.js +30 -15
- package/es-modules/modules/boost/wgl-shader.js +33 -16
- package/es-modules/modules/boost/wgl-vbuffer.js +8 -4
- package/es-modules/modules/broken-axis.src.js +1 -1
- package/es-modules/modules/bullet.src.js +68 -68
- package/es-modules/modules/cylinder.src.js +3 -1
- package/es-modules/modules/data.src.js +9 -5
- package/es-modules/modules/draggable-points.src.js +1 -1
- package/es-modules/modules/drilldown.src.js +1 -1
- package/es-modules/modules/export-data.src.js +7 -8
- package/es-modules/modules/exporting.src.js +9 -1
- package/es-modules/modules/full-screen.src.js +1 -1
- package/es-modules/modules/funnel3d.src.js +10 -3
- package/es-modules/modules/histogram.src.js +162 -164
- package/es-modules/modules/item-series.src.js +10 -10
- package/es-modules/modules/networkgraph/layouts.js +16 -12
- package/es-modules/modules/networkgraph/networkgraph.src.js +147 -51
- package/es-modules/modules/offline-exporting.src.js +15 -2
- package/es-modules/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/modules/organization.src.js +65 -20
- package/es-modules/modules/pareto.src.js +52 -51
- package/es-modules/modules/pattern-fill.src.js +1 -1
- package/es-modules/modules/price-indicator.src.js +1 -1
- package/es-modules/modules/pyramid3d.src.js +1 -1
- package/es-modules/modules/sankey.src.js +22 -10
- package/es-modules/modules/series-label.src.js +16 -8
- package/es-modules/modules/solid-gauge.src.js +128 -79
- package/es-modules/modules/static-scale.src.js +8 -1
- package/es-modules/modules/stock-tools-gui.js +1 -1
- package/es-modules/modules/streamgraph.src.js +11 -11
- package/es-modules/modules/sunburst.src.js +23 -2
- package/es-modules/modules/tilemap.src.js +58 -57
- package/es-modules/modules/timeline.src.js +17 -12
- package/es-modules/modules/treemap.src.js +6 -6
- package/es-modules/modules/variwide.src.js +39 -39
- package/es-modules/modules/vector.src.js +108 -107
- package/es-modules/modules/venn.src.js +4 -2
- package/es-modules/modules/windbarb.src.js +43 -43
- package/es-modules/modules/wordcloud.src.js +1 -0
- package/es-modules/modules/xrange.src.js +112 -104
- package/es-modules/parts/AreaSeries.js +4 -1
- package/es-modules/parts/Axis.js +809 -1870
- package/es-modules/parts/Chart.js +254 -743
- package/es-modules/parts/Color.js +160 -113
- package/es-modules/parts/ColumnSeries.js +9 -3
- package/es-modules/parts/DataLabels.js +31 -2
- package/es-modules/parts/Dynamics.js +73 -26
- package/es-modules/parts/FlagsSeries.js +6 -4
- package/es-modules/parts/Globals.js +20 -36
- package/es-modules/parts/Html.js +116 -235
- package/es-modules/parts/Interaction.js +17 -7
- package/es-modules/parts/Legend.js +277 -632
- package/es-modules/parts/MSPointer.js +62 -106
- package/es-modules/parts/Options.js +128 -367
- package/es-modules/parts/OrdinalAxis.js +12 -0
- package/es-modules/parts/PieSeries.js +61 -44
- package/es-modules/parts/PlotLineOrBand.js +38 -3
- package/es-modules/parts/Point.js +117 -227
- package/es-modules/parts/Pointer.js +273 -558
- package/es-modules/parts/RangeSelector.js +5 -3
- package/es-modules/parts/Responsive.js +8 -4
- package/es-modules/parts/ScrollablePlotArea.js +215 -81
- package/es-modules/parts/Scrollbar.js +38 -23
- package/es-modules/parts/Series.js +151 -47
- package/es-modules/parts/Stacking.js +8 -3
- package/es-modules/parts/StockChart.js +42 -29
- package/es-modules/parts/SvgRenderer.js +1080 -2100
- package/es-modules/parts/Tick.js +11 -4
- package/es-modules/parts/Time.js +179 -363
- package/es-modules/parts/Tooltip.js +23 -12
- package/es-modules/parts/TouchPointer.js +69 -187
- package/es-modules/parts/Utilities.js +593 -846
- package/es-modules/parts-3d/Axis.js +2 -2
- package/es-modules/parts-3d/Column.js +18 -8
- package/es-modules/parts-gantt/GanttSeries.js +17 -21
- package/es-modules/parts-gantt/GridAxis.js +183 -101
- package/es-modules/parts-gantt/PathfinderAlgorithms.js +2 -2
- package/es-modules/parts-gantt/TreeGrid.js +53 -36
- package/es-modules/parts-map/ColorAxis.js +35 -14
- package/es-modules/parts-map/MapBubbleSeries.js +2 -1
- package/es-modules/parts-map/MapSeries.js +29 -18
- package/es-modules/parts-more/AreaRangeSeries.js +13 -12
- package/es-modules/parts-more/ColumnRangeSeries.js +8 -2
- package/es-modules/parts-more/GaugeSeries.js +9 -9
- package/es-modules/parts-more/PackedBubbleSeries.js +152 -115
- package/es-modules/parts-more/RadialAxis.js +102 -8
- package/es-modules/parts-more/WaterfallSeries.js +148 -35
- package/highcharts-3d.js +68 -67
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +21 -11
- package/highcharts-gantt.d.ts +5 -3
- package/highcharts-gantt.js +618 -610
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.d.ts +5 -3
- package/highcharts-gantt.src.js +5185 -8892
- package/highcharts-more.js +144 -140
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +449 -194
- package/highcharts.d.ts +3943 -5236
- package/highcharts.js +454 -449
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +3943 -5236
- package/highcharts.src.js +4767 -8601
- package/highmaps.d.ts +5 -3
- package/highmaps.js +498 -494
- package/highmaps.js.map +1 -1
- package/highmaps.src.d.ts +5 -3
- package/highmaps.src.js +4547 -8507
- package/highstock.d.ts +5 -3
- package/highstock.js +597 -590
- package/highstock.js.map +1 -1
- package/highstock.src.d.ts +5 -3
- package/highstock.src.js +4871 -8661
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +1 -1
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.src.js +1 -1
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +105 -105
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +6 -4
- package/indicators/indicators.js +9 -9
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +6 -4
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/macd.js +1 -1
- package/indicators/macd.src.js +1 -1
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.src.js +1 -1
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +1 -1
- package/indicators/supertrend.src.js +1 -1
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +1 -1
- package/indicators/volume-by-price.src.js +1 -1
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +92 -89
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +138 -15
- package/modules/annotations-advanced.js +128 -127
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +514 -396
- package/modules/annotations.d.ts +36 -0
- package/modules/annotations.js +81 -81
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.d.ts +36 -0
- package/modules/annotations.src.js +418 -315
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +1 -1
- package/modules/boost-canvas.src.js +1 -1
- package/modules/boost.js +63 -63
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +99 -39
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +2 -2
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +69 -69
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +4 -2
- package/modules/data.js +4 -4
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +10 -6
- package/modules/datagrouping.js +1 -1
- package/modules/datagrouping.src.js +1 -1
- package/modules/debugger.js +4 -4
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +7 -2
- package/modules/dependency-wheel.js +1 -1
- package/modules/dependency-wheel.src.js +1 -1
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.src.js +2 -2
- package/modules/drilldown.js +1 -1
- package/modules/drilldown.src.js +2 -2
- package/modules/export-data.js +2 -2
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +8 -9
- package/modules/exporting.js +25 -25
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +11 -3
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +2 -2
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +11 -4
- package/modules/gantt.js +166 -164
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +422 -295
- package/modules/grid-axis.js +18 -16
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +184 -102
- package/modules/heatmap.js +22 -22
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +36 -15
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +186 -183
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +11 -11
- package/modules/map-parser.js +1 -1
- package/modules/map-parser.src.js +1 -1
- package/modules/map.js +83 -83
- package/modules/map.js.map +1 -1
- package/modules/map.src.js +67 -34
- package/modules/networkgraph.js +10 -9
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +180 -72
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/offline-exporting.js +15 -15
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +17 -4
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +2 -2
- package/modules/oldie.js +2 -2
- package/modules/oldie.src.js +2 -2
- package/modules/organization.js +1 -1
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +66 -21
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.js +1 -1
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +53 -52
- package/modules/pathfinder.js +3 -3
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +3 -3
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.src.js +2 -2
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +2 -2
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +2 -2
- package/modules/sankey.js +14 -14
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +39 -19
- package/modules/series-label.js +16 -16
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +17 -9
- package/modules/solid-gauge.js +5 -5
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +129 -80
- package/modules/sonification.js +1 -1
- package/modules/sonification.src.js +1 -1
- package/modules/static-scale.js +4 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +9 -2
- package/modules/stock-tools.js +2 -2
- package/modules/stock-tools.src.js +3 -3
- package/modules/stock.js +146 -145
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +105 -61
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +12 -12
- package/modules/sunburst.js +40 -40
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +30 -9
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +59 -58
- package/modules/timeline.js +12 -11
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +18 -13
- package/modules/treegrid.js +45 -43
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +238 -139
- package/modules/treemap.js +1 -1
- package/modules/treemap.src.js +7 -7
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +40 -40
- package/modules/vector.js +1 -1
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +109 -108
- package/modules/venn.js +23 -23
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +5 -3
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +44 -44
- package/modules/wordcloud.js +10 -10
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +2 -1
- package/modules/xrange.js +12 -12
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +113 -105
- package/package.json +1 -1
- package/themes/avocado.js +21 -37
- package/themes/avocado.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +21 -37
- package/themes/sunset.src.js +1 -1
- package/.DS_Store +0 -0
- package/es-modules/.DS_Store +0 -0
- package/es-modules/modules/annotations-legacy.src.js +0 -1977
- package/js/.DS_Store +0 -0
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/* *
|
|
2
|
-
* (c) 2010-2019 Torstein Honsi
|
|
3
2
|
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
* (c) 2010-2019 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
'use strict';
|
|
11
|
+
import H from './Globals.js';
|
|
7
12
|
/**
|
|
8
13
|
* @typedef {"plotBox"|"spacingBox"} Highcharts.ButtonRelativeToValue
|
|
9
14
|
*/
|
|
10
|
-
|
|
11
15
|
/**
|
|
12
16
|
* Gets fired when a series is added to the chart after load time, using the
|
|
13
17
|
* `addSeries` method. Returning `false` prevents the series from being added.
|
|
@@ -19,31 +23,31 @@
|
|
|
19
23
|
*
|
|
20
24
|
* @param {Highcharts.ChartAddSeriesEventObject} event
|
|
21
25
|
* The event that occured.
|
|
26
|
+
*
|
|
27
|
+
* @return {void}
|
|
22
28
|
*/
|
|
23
|
-
|
|
24
29
|
/**
|
|
25
30
|
* Conaints common event information. Through the `options` property you can
|
|
26
31
|
* access the series options that were passed to the `addSeries` method.
|
|
27
32
|
*
|
|
28
33
|
* @interface Highcharts.ChartAddSeriesEventObject
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
*/ /**
|
|
35
|
+
* The series options that were passed to the `addSeries` method.
|
|
36
|
+
* @name Highcharts.ChartAddSeriesEventObject#options
|
|
37
|
+
* @type {Highcharts.SeriesOptionsType}
|
|
38
|
+
*/ /**
|
|
39
|
+
* Prevents the default behaviour of the event.
|
|
40
|
+
* @name Highcharts.ChartAddSeriesEventObject#preventDefault
|
|
41
|
+
* @type {Function}
|
|
42
|
+
*/ /**
|
|
43
|
+
* The event target.
|
|
44
|
+
* @name Highcharts.ChartAddSeriesEventObject#target
|
|
45
|
+
* @type {Highcharts.Chart}
|
|
46
|
+
*/ /**
|
|
47
|
+
* The event type.
|
|
48
|
+
* @name Highcharts.ChartAddSeriesEventObject#type
|
|
49
|
+
* @type {"addSeries"}
|
|
50
|
+
*/
|
|
47
51
|
/**
|
|
48
52
|
* Gets fired when clicking on the plot background.
|
|
49
53
|
*
|
|
@@ -54,42 +58,41 @@
|
|
|
54
58
|
*
|
|
55
59
|
* @param {Highcharts.PointerEventObject} event
|
|
56
60
|
* The event that occured.
|
|
61
|
+
*
|
|
62
|
+
* @return {void}
|
|
57
63
|
*/
|
|
58
|
-
|
|
59
64
|
/**
|
|
60
65
|
* Contains an axes of the clicked spot.
|
|
61
66
|
*
|
|
62
67
|
* @interface Highcharts.ChartClickEventAxisObject
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
*/ /**
|
|
69
|
+
* Axis at the clicked spot.
|
|
70
|
+
* @name Highcharts.ChartClickEventAxisObject#axis
|
|
71
|
+
* @type {Highcharts.Axis}
|
|
72
|
+
*/ /**
|
|
73
|
+
* Axis value at the clicked spot.
|
|
74
|
+
* @name Highcharts.ChartClickEventAxisObject#value
|
|
75
|
+
* @type {number}
|
|
76
|
+
*/
|
|
73
77
|
/**
|
|
74
78
|
* Contains information about the clicked spot on the chart. Remember the unit
|
|
75
79
|
* of a datetime axis is milliseconds since 1970-01-01 00:00:00.
|
|
76
80
|
*
|
|
77
81
|
* @interface Highcharts.ChartClickEventObject
|
|
78
82
|
* @extends Highcharts.PointerEventObject
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
*/ /**
|
|
84
|
+
* Information about the x-axis on the clicked spot.
|
|
85
|
+
* @name Highcharts.ChartClickEventObject#xAxis
|
|
86
|
+
* @type {Array<Highcharts.ChartClickEventAxisObject>}
|
|
87
|
+
*/ /**
|
|
88
|
+
* Information about the y-axis on the clicked spot.
|
|
89
|
+
* @name Highcharts.ChartClickEventObject#yAxis
|
|
90
|
+
* @type {Array<Highcharts.ChartClickEventAxisObject>}
|
|
91
|
+
*/ /**
|
|
92
|
+
* Information about the z-axis on the clicked spot.
|
|
93
|
+
* @name Highcharts.ChartClickEventObject#zAxis
|
|
94
|
+
* @type {Array<Highcharts.ChartClickEventAxisObject>|undefined}
|
|
95
|
+
*/
|
|
93
96
|
/**
|
|
94
97
|
* Gets fired when the chart is finished loading.
|
|
95
98
|
*
|
|
@@ -100,8 +103,9 @@
|
|
|
100
103
|
*
|
|
101
104
|
* @param {global.Event} event
|
|
102
105
|
* The event that occured.
|
|
106
|
+
*
|
|
107
|
+
* @return {void}
|
|
103
108
|
*/
|
|
104
|
-
|
|
105
109
|
/**
|
|
106
110
|
* Fires when the chart is redrawn, either after a call to `chart.redraw()` or
|
|
107
111
|
* after an axis, series or point is modified with the `redraw` option set to
|
|
@@ -114,8 +118,9 @@
|
|
|
114
118
|
*
|
|
115
119
|
* @param {global.Event} event
|
|
116
120
|
* The event that occured.
|
|
121
|
+
*
|
|
122
|
+
* @return {void}
|
|
117
123
|
*/
|
|
118
|
-
|
|
119
124
|
/**
|
|
120
125
|
* Gets fired after initial load of the chart (directly after the `load` event),
|
|
121
126
|
* and after each redraw (directly after the `redraw` event).
|
|
@@ -127,8 +132,9 @@
|
|
|
127
132
|
*
|
|
128
133
|
* @param {global.Event} event
|
|
129
134
|
* The event that occured.
|
|
135
|
+
*
|
|
136
|
+
* @return {void}
|
|
130
137
|
*/
|
|
131
|
-
|
|
132
138
|
/**
|
|
133
139
|
* Gets fired when an area of the chart has been selected. The default action
|
|
134
140
|
* for the selection event is to zoom the chart to the selected area. It can be
|
|
@@ -145,69 +151,56 @@
|
|
|
145
151
|
* @return {boolean|undefined}
|
|
146
152
|
* Return false to prevent the default action, usually zoom.
|
|
147
153
|
*/
|
|
148
|
-
|
|
149
154
|
/**
|
|
150
155
|
* The primary axes are `xAxis[0]` and `yAxis[0]`. Remember the unit of a
|
|
151
156
|
* datetime axis is milliseconds since 1970-01-01 00:00:00.
|
|
152
157
|
*
|
|
153
158
|
* @interface Highcharts.ChartSelectionContextObject
|
|
154
159
|
* @extends global.Event
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
*/ /**
|
|
161
|
+
* Arrays containing the axes of each dimension and each axis' min and max
|
|
162
|
+
* values.
|
|
163
|
+
* @name Highcharts.ChartSelectionContextObject#xAxis
|
|
164
|
+
* @type {Array<Highcharts.ChartSelectionAxisContextObject>}
|
|
165
|
+
*/ /**
|
|
166
|
+
* Arrays containing the axes of each dimension and each axis' min and max
|
|
167
|
+
* values.
|
|
168
|
+
* @name Highcharts.ChartSelectionContextObject#yAxis
|
|
169
|
+
* @type {Array<Highcharts.ChartSelectionAxisContextObject>}
|
|
170
|
+
*/
|
|
167
171
|
/**
|
|
168
172
|
* Axis context of the selection.
|
|
169
173
|
*
|
|
170
174
|
* @interface Highcharts.ChartSelectionAxisContextObject
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
'use strict';
|
|
186
|
-
|
|
187
|
-
import H from './Globals.js';
|
|
175
|
+
*/ /**
|
|
176
|
+
* The selected Axis.
|
|
177
|
+
* @name Highcharts.ChartSelectionAxisContextObject#axis
|
|
178
|
+
* @type {Highcharts.Axis}
|
|
179
|
+
*/ /**
|
|
180
|
+
* The maximum axis value, either automatic or set manually.
|
|
181
|
+
* @name Highcharts.ChartSelectionAxisContextObject#max
|
|
182
|
+
* @type {number}
|
|
183
|
+
*/ /**
|
|
184
|
+
* The minimum axis value, either automatic or set manually.
|
|
185
|
+
* @name Highcharts.ChartSelectionAxisContextObject#min
|
|
186
|
+
* @type {number}
|
|
187
|
+
*/
|
|
188
188
|
import './Color.js';
|
|
189
189
|
import './Utilities.js';
|
|
190
190
|
import './Time.js';
|
|
191
|
-
|
|
192
|
-
var color = H.color,
|
|
193
|
-
isTouchDevice = H.isTouchDevice,
|
|
194
|
-
merge = H.merge,
|
|
195
|
-
svg = H.svg;
|
|
196
|
-
|
|
191
|
+
var color = H.color, isTouchDevice = H.isTouchDevice, merge = H.merge, svg = H.svg;
|
|
197
192
|
/* ************************************************************************** *
|
|
198
193
|
* Handle the options *
|
|
199
194
|
* ************************************************************************** */
|
|
200
|
-
|
|
201
195
|
/**
|
|
202
196
|
* Global default settings.
|
|
203
197
|
*
|
|
204
198
|
* @name Highcharts.defaultOptions
|
|
205
199
|
* @type {Highcharts.Options}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
200
|
+
*/ /**
|
|
201
|
+
* @optionparent
|
|
202
|
+
*/
|
|
209
203
|
H.defaultOptions = {
|
|
210
|
-
|
|
211
204
|
/**
|
|
212
205
|
* An array containing the default colors for the chart's series. When
|
|
213
206
|
* all colors are used, new colors are pulled from the start again.
|
|
@@ -241,8 +234,6 @@ H.defaultOptions = {
|
|
|
241
234
|
* "#f15c80", "#e4d354", "#2b908f", "#f45b5b", "#91e8e1"]
|
|
242
235
|
*/
|
|
243
236
|
colors: '#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1'.split(' '),
|
|
244
|
-
|
|
245
|
-
|
|
246
237
|
/**
|
|
247
238
|
* Styled mode only. Configuration object for adding SVG definitions for
|
|
248
239
|
* reusable elements. See [gradients, shadows and
|
|
@@ -253,12 +244,10 @@ H.defaultOptions = {
|
|
|
253
244
|
* @since 5.0.0
|
|
254
245
|
* @apioption defs
|
|
255
246
|
*/
|
|
256
|
-
|
|
257
247
|
/**
|
|
258
248
|
* @ignore-option
|
|
259
249
|
*/
|
|
260
250
|
symbols: ['circle', 'diamond', 'square', 'triangle', 'triangle-down'],
|
|
261
|
-
|
|
262
251
|
/**
|
|
263
252
|
* The language object is global and it can't be set on each chart
|
|
264
253
|
* initialization. Instead, use `Highcharts.setOptions` to set it before any
|
|
@@ -279,13 +268,11 @@ H.defaultOptions = {
|
|
|
279
268
|
* });</pre>
|
|
280
269
|
*/
|
|
281
270
|
lang: {
|
|
282
|
-
|
|
283
271
|
/**
|
|
284
272
|
* The loading text that appears when the chart is set into the loading
|
|
285
273
|
* state following a call to `chart.showLoading`.
|
|
286
274
|
*/
|
|
287
275
|
loading: 'Loading...',
|
|
288
|
-
|
|
289
276
|
/**
|
|
290
277
|
* An array containing the months names. Corresponds to the `%B` format
|
|
291
278
|
* in `Highcharts.dateFormat()`.
|
|
@@ -299,7 +286,6 @@ H.defaultOptions = {
|
|
|
299
286
|
'January', 'February', 'March', 'April', 'May', 'June', 'July',
|
|
300
287
|
'August', 'September', 'October', 'November', 'December'
|
|
301
288
|
],
|
|
302
|
-
|
|
303
289
|
/**
|
|
304
290
|
* An array containing the months names in abbreviated form. Corresponds
|
|
305
291
|
* to the `%b` format in `Highcharts.dateFormat()`.
|
|
@@ -312,7 +298,6 @@ H.defaultOptions = {
|
|
|
312
298
|
'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul',
|
|
313
299
|
'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
|
|
314
300
|
],
|
|
315
|
-
|
|
316
301
|
/**
|
|
317
302
|
* An array containing the weekday names.
|
|
318
303
|
*
|
|
@@ -324,7 +309,6 @@ H.defaultOptions = {
|
|
|
324
309
|
'Sunday', 'Monday', 'Tuesday', 'Wednesday',
|
|
325
310
|
'Thursday', 'Friday', 'Saturday'
|
|
326
311
|
],
|
|
327
|
-
|
|
328
312
|
/**
|
|
329
313
|
* Short week days, starting Sunday. If not specified, Highcharts uses
|
|
330
314
|
* the first three letters of the `lang.weekdays` option.
|
|
@@ -336,7 +320,6 @@ H.defaultOptions = {
|
|
|
336
320
|
* @since 4.2.4
|
|
337
321
|
* @apioption lang.shortWeekdays
|
|
338
322
|
*/
|
|
339
|
-
|
|
340
323
|
/**
|
|
341
324
|
* What to show in a date field for invalid dates. Defaults to an empty
|
|
342
325
|
* string.
|
|
@@ -346,7 +329,6 @@ H.defaultOptions = {
|
|
|
346
329
|
* @product highcharts highstock
|
|
347
330
|
* @apioption lang.invalidDate
|
|
348
331
|
*/
|
|
349
|
-
|
|
350
332
|
/**
|
|
351
333
|
* The title appearing on hovering the zoom in button. The text itself
|
|
352
334
|
* defaults to "+" and can be changed in the button options.
|
|
@@ -356,7 +338,6 @@ H.defaultOptions = {
|
|
|
356
338
|
* @product highmaps
|
|
357
339
|
* @apioption lang.zoomIn
|
|
358
340
|
*/
|
|
359
|
-
|
|
360
341
|
/**
|
|
361
342
|
* The title appearing on hovering the zoom out button. The text itself
|
|
362
343
|
* defaults to "-" and can be changed in the button options.
|
|
@@ -366,7 +347,6 @@ H.defaultOptions = {
|
|
|
366
347
|
* @product highmaps
|
|
367
348
|
* @apioption lang.zoomOut
|
|
368
349
|
*/
|
|
369
|
-
|
|
370
350
|
/**
|
|
371
351
|
* The default decimal point used in the `Highcharts.numberFormat`
|
|
372
352
|
* method unless otherwise specified in the function arguments.
|
|
@@ -374,7 +354,6 @@ H.defaultOptions = {
|
|
|
374
354
|
* @since 1.2.2
|
|
375
355
|
*/
|
|
376
356
|
decimalPoint: '.',
|
|
377
|
-
|
|
378
357
|
/**
|
|
379
358
|
* [Metric prefixes](http://en.wikipedia.org/wiki/Metric_prefix) used
|
|
380
359
|
* to shorten high numbers in axis labels. Replacing any of the
|
|
@@ -391,7 +370,6 @@ H.defaultOptions = {
|
|
|
391
370
|
* @since 2.3.0
|
|
392
371
|
*/
|
|
393
372
|
numericSymbols: ['k', 'M', 'G', 'T', 'P', 'E'],
|
|
394
|
-
|
|
395
373
|
/**
|
|
396
374
|
* The magnitude of [numericSymbols](#lang.numericSymbol) replacements.
|
|
397
375
|
* Use 10000 for Japanese, Korean and various Chinese locales, which
|
|
@@ -405,21 +383,18 @@ H.defaultOptions = {
|
|
|
405
383
|
* @since 5.0.3
|
|
406
384
|
* @apioption lang.numericSymbolMagnitude
|
|
407
385
|
*/
|
|
408
|
-
|
|
409
386
|
/**
|
|
410
387
|
* The text for the label appearing when a chart is zoomed.
|
|
411
388
|
*
|
|
412
389
|
* @since 1.2.4
|
|
413
390
|
*/
|
|
414
391
|
resetZoom: 'Reset zoom',
|
|
415
|
-
|
|
416
392
|
/**
|
|
417
393
|
* The tooltip title for the label appearing when a chart is zoomed.
|
|
418
394
|
*
|
|
419
395
|
* @since 1.2.4
|
|
420
396
|
*/
|
|
421
397
|
resetZoomTitle: 'Reset zoom level 1:1',
|
|
422
|
-
|
|
423
398
|
/**
|
|
424
399
|
* The default thousands separator used in the `Highcharts.numberFormat`
|
|
425
400
|
* method unless otherwise specified in the function arguments. Defaults
|
|
@@ -432,7 +407,6 @@ H.defaultOptions = {
|
|
|
432
407
|
*/
|
|
433
408
|
thousandsSep: ' '
|
|
434
409
|
},
|
|
435
|
-
|
|
436
410
|
/**
|
|
437
411
|
* Global options that don't apply to each chart. These options, like
|
|
438
412
|
* the `lang` options, must be set using the `Highcharts.setOptions`
|
|
@@ -445,7 +419,6 @@ H.defaultOptions = {
|
|
|
445
419
|
* });</pre>
|
|
446
420
|
*
|
|
447
421
|
*/
|
|
448
|
-
|
|
449
422
|
/**
|
|
450
423
|
* _Canvg rendering for Android 2.x is removed as of Highcharts 5.0\.
|
|
451
424
|
* Use the [libURL](#exporting.libURL) option to configure exporting._
|
|
@@ -464,7 +437,6 @@ H.defaultOptions = {
|
|
|
464
437
|
* @product highcharts highmaps
|
|
465
438
|
* @apioption global.canvasToolsURL
|
|
466
439
|
*/
|
|
467
|
-
|
|
468
440
|
/**
|
|
469
441
|
* This option is deprecated since v6.0.5. Instead, use
|
|
470
442
|
* [time.useUTC](#time.useUTC) that supports individual time settings
|
|
@@ -475,7 +447,6 @@ H.defaultOptions = {
|
|
|
475
447
|
* @type {boolean}
|
|
476
448
|
* @apioption global.useUTC
|
|
477
449
|
*/
|
|
478
|
-
|
|
479
450
|
/**
|
|
480
451
|
* This option is deprecated since v6.0.5. Instead, use
|
|
481
452
|
* [time.Date](#time.Date) that supports individual time settings
|
|
@@ -487,7 +458,6 @@ H.defaultOptions = {
|
|
|
487
458
|
* @product highcharts highstock
|
|
488
459
|
* @apioption global.Date
|
|
489
460
|
*/
|
|
490
|
-
|
|
491
461
|
/**
|
|
492
462
|
* This option is deprecated since v6.0.5. Instead, use
|
|
493
463
|
* [time.getTimezoneOffset](#time.getTimezoneOffset) that supports
|
|
@@ -499,7 +469,6 @@ H.defaultOptions = {
|
|
|
499
469
|
* @product highcharts highstock
|
|
500
470
|
* @apioption global.getTimezoneOffset
|
|
501
471
|
*/
|
|
502
|
-
|
|
503
472
|
/**
|
|
504
473
|
* This option is deprecated since v6.0.5. Instead, use
|
|
505
474
|
* [time.timezone](#time.timezone) that supports individual time
|
|
@@ -511,7 +480,6 @@ H.defaultOptions = {
|
|
|
511
480
|
* @product highcharts highstock
|
|
512
481
|
* @apioption global.timezone
|
|
513
482
|
*/
|
|
514
|
-
|
|
515
483
|
/**
|
|
516
484
|
* This option is deprecated since v6.0.5. Instead, use
|
|
517
485
|
* [time.timezoneOffset](#time.timezoneOffset) that supports individual
|
|
@@ -523,16 +491,12 @@ H.defaultOptions = {
|
|
|
523
491
|
* @product highcharts highstock
|
|
524
492
|
* @apioption global.timezoneOffset
|
|
525
493
|
*/
|
|
526
|
-
|
|
527
494
|
global: {},
|
|
528
|
-
|
|
529
495
|
time: H.Time.prototype.defaultOptions,
|
|
530
|
-
|
|
531
496
|
/**
|
|
532
497
|
* General options for the chart.
|
|
533
498
|
*/
|
|
534
499
|
chart: {
|
|
535
|
-
|
|
536
500
|
/**
|
|
537
501
|
* Default `mapData` for all series. If set to a string, it functions
|
|
538
502
|
* as an index into the `Highcharts.maps` array. Otherwise it is
|
|
@@ -550,7 +514,6 @@ H.defaultOptions = {
|
|
|
550
514
|
* @product highmaps
|
|
551
515
|
* @apioption chart.map
|
|
552
516
|
*/
|
|
553
|
-
|
|
554
517
|
/**
|
|
555
518
|
* Set lat/lon transformation definitions for the chart. If not defined,
|
|
556
519
|
* these are extracted from the map data.
|
|
@@ -560,7 +523,6 @@ H.defaultOptions = {
|
|
|
560
523
|
* @product highmaps
|
|
561
524
|
* @apioption chart.mapTransforms
|
|
562
525
|
*/
|
|
563
|
-
|
|
564
526
|
/**
|
|
565
527
|
* When using multiple axis, the ticks of two or more opposite axes
|
|
566
528
|
* will automatically be aligned by adding ticks to the axis or axes
|
|
@@ -589,7 +551,6 @@ H.defaultOptions = {
|
|
|
589
551
|
* @product highcharts highstock gantt
|
|
590
552
|
* @apioption chart.alignTicks
|
|
591
553
|
*/
|
|
592
|
-
|
|
593
554
|
/**
|
|
594
555
|
* Set the overall animation for all chart updating. Animation can be
|
|
595
556
|
* disabled throughout the chart by setting it to false here. It can
|
|
@@ -633,7 +594,6 @@ H.defaultOptions = {
|
|
|
633
594
|
* @default true
|
|
634
595
|
* @apioption chart.animation
|
|
635
596
|
*/
|
|
636
|
-
|
|
637
597
|
/**
|
|
638
598
|
* A CSS class name to apply to the charts container `div`, allowing
|
|
639
599
|
* unique CSS styling for each chart.
|
|
@@ -641,13 +601,11 @@ H.defaultOptions = {
|
|
|
641
601
|
* @type {string}
|
|
642
602
|
* @apioption chart.className
|
|
643
603
|
*/
|
|
644
|
-
|
|
645
604
|
/**
|
|
646
605
|
* Event listeners for the chart.
|
|
647
606
|
*
|
|
648
607
|
* @apioption chart.events
|
|
649
608
|
*/
|
|
650
|
-
|
|
651
609
|
/**
|
|
652
610
|
* Fires when a series is added to the chart after load time, using the
|
|
653
611
|
* `addSeries` method. One parameter, `event`, is passed to the
|
|
@@ -666,7 +624,6 @@ H.defaultOptions = {
|
|
|
666
624
|
* @context Highcharts.Chart
|
|
667
625
|
* @apioption chart.events.addSeries
|
|
668
626
|
*/
|
|
669
|
-
|
|
670
627
|
/**
|
|
671
628
|
* Fires when clicking on the plot background. One parameter, `event`,
|
|
672
629
|
* is passed to the function, containing common event information.
|
|
@@ -702,8 +659,6 @@ H.defaultOptions = {
|
|
|
702
659
|
* @context Highcharts.Chart
|
|
703
660
|
* @apioption chart.events.click
|
|
704
661
|
*/
|
|
705
|
-
|
|
706
|
-
|
|
707
662
|
/**
|
|
708
663
|
* Fires when the chart is finished loading. Since v4.2.2, it also waits
|
|
709
664
|
* for images to be loaded, for example from point markers. One
|
|
@@ -724,7 +679,6 @@ H.defaultOptions = {
|
|
|
724
679
|
* @context Highcharts.Chart
|
|
725
680
|
* @apioption chart.events.load
|
|
726
681
|
*/
|
|
727
|
-
|
|
728
682
|
/**
|
|
729
683
|
* Fires when the chart is redrawn, either after a call to
|
|
730
684
|
* `chart.redraw()` or after an axis, series or point is modified with
|
|
@@ -744,7 +698,6 @@ H.defaultOptions = {
|
|
|
744
698
|
* @context Highcharts.Chart
|
|
745
699
|
* @apioption chart.events.redraw
|
|
746
700
|
*/
|
|
747
|
-
|
|
748
701
|
/**
|
|
749
702
|
* Fires after initial load of the chart (directly after the `load`
|
|
750
703
|
* event), and after each redraw (directly after the `redraw` event).
|
|
@@ -754,7 +707,6 @@ H.defaultOptions = {
|
|
|
754
707
|
* @context Highcharts.Chart
|
|
755
708
|
* @apioption chart.events.render
|
|
756
709
|
*/
|
|
757
|
-
|
|
758
710
|
/**
|
|
759
711
|
* Fires when an area of the chart has been selected. Selection is
|
|
760
712
|
* enabled by setting the chart's zoomType. One parameter, `event`, is
|
|
@@ -798,7 +750,6 @@ H.defaultOptions = {
|
|
|
798
750
|
* @type {Highcharts.ChartSelectionCallbackFunction}
|
|
799
751
|
* @apioption chart.events.selection
|
|
800
752
|
*/
|
|
801
|
-
|
|
802
753
|
/**
|
|
803
754
|
* The margin between the outer edge of the chart and the plot area.
|
|
804
755
|
* The numbers in the array designate top, right, bottom and left
|
|
@@ -818,7 +769,6 @@ H.defaultOptions = {
|
|
|
818
769
|
* @type {number|Array<number>}
|
|
819
770
|
* @apioption chart.margin
|
|
820
771
|
*/
|
|
821
|
-
|
|
822
772
|
/**
|
|
823
773
|
* The margin between the bottom outer edge of the chart and the plot
|
|
824
774
|
* area. Use this to set a fixed pixel value for the margin as opposed
|
|
@@ -835,7 +785,6 @@ H.defaultOptions = {
|
|
|
835
785
|
* @since 2.0
|
|
836
786
|
* @apioption chart.marginBottom
|
|
837
787
|
*/
|
|
838
|
-
|
|
839
788
|
/**
|
|
840
789
|
* The margin between the left outer edge of the chart and the plot
|
|
841
790
|
* area. Use this to set a fixed pixel value for the margin as opposed
|
|
@@ -852,7 +801,6 @@ H.defaultOptions = {
|
|
|
852
801
|
* @since 2.0
|
|
853
802
|
* @apioption chart.marginLeft
|
|
854
803
|
*/
|
|
855
|
-
|
|
856
804
|
/**
|
|
857
805
|
* The margin between the right outer edge of the chart and the plot
|
|
858
806
|
* area. Use this to set a fixed pixel value for the margin as opposed
|
|
@@ -869,7 +817,6 @@ H.defaultOptions = {
|
|
|
869
817
|
* @since 2.0
|
|
870
818
|
* @apioption chart.marginRight
|
|
871
819
|
*/
|
|
872
|
-
|
|
873
820
|
/**
|
|
874
821
|
* The margin between the top outer edge of the chart and the plot area.
|
|
875
822
|
* Use this to set a fixed pixel value for the margin as opposed to
|
|
@@ -885,7 +832,6 @@ H.defaultOptions = {
|
|
|
885
832
|
* @since 2.0
|
|
886
833
|
* @apioption chart.marginTop
|
|
887
834
|
*/
|
|
888
|
-
|
|
889
835
|
/**
|
|
890
836
|
* Allows setting a key to switch between zooming and panning. Can be
|
|
891
837
|
* one of `alt`, `ctrl`, `meta` (the command key on Mac and Windows
|
|
@@ -899,7 +845,6 @@ H.defaultOptions = {
|
|
|
899
845
|
* @validvalue ["alt", "ctrl", "meta", "shift"]
|
|
900
846
|
* @apioption chart.panKey
|
|
901
847
|
*/
|
|
902
|
-
|
|
903
848
|
/**
|
|
904
849
|
* Allow panning in a chart. Best used with [panKey](#chart.panKey)
|
|
905
850
|
* to combine zooming and panning.
|
|
@@ -918,8 +863,6 @@ H.defaultOptions = {
|
|
|
918
863
|
* @product highcharts highstock gantt
|
|
919
864
|
* @apioption chart.panning
|
|
920
865
|
*/
|
|
921
|
-
|
|
922
|
-
|
|
923
866
|
/**
|
|
924
867
|
* Equivalent to [zoomType](#chart.zoomType), but for multitouch
|
|
925
868
|
* gestures only. By default, the `pinchType` is the same as the
|
|
@@ -937,8 +880,6 @@ H.defaultOptions = {
|
|
|
937
880
|
* @validvalue ["x", "y", "xy"]
|
|
938
881
|
* @apioption chart.pinchType
|
|
939
882
|
*/
|
|
940
|
-
|
|
941
|
-
|
|
942
883
|
/**
|
|
943
884
|
* Whether to apply styled mode. When in styled mode, no presentational
|
|
944
885
|
* attributes or CSS are applied to the chart SVG. Instead, CSS rules
|
|
@@ -951,7 +892,6 @@ H.defaultOptions = {
|
|
|
951
892
|
* @apioption chart.styledMode
|
|
952
893
|
*/
|
|
953
894
|
styledMode: false,
|
|
954
|
-
|
|
955
895
|
/**
|
|
956
896
|
* The corner radius of the outer chart border.
|
|
957
897
|
*
|
|
@@ -964,7 +904,6 @@ H.defaultOptions = {
|
|
|
964
904
|
*
|
|
965
905
|
*/
|
|
966
906
|
borderRadius: 0,
|
|
967
|
-
|
|
968
907
|
/**
|
|
969
908
|
* In styled mode, this sets how many colors the class names
|
|
970
909
|
* should rotate between. With ten colors, series (or points) are
|
|
@@ -975,7 +914,6 @@ H.defaultOptions = {
|
|
|
975
914
|
* @since 5.0.0
|
|
976
915
|
*/
|
|
977
916
|
colorCount: 10,
|
|
978
|
-
|
|
979
917
|
/**
|
|
980
918
|
* Alias of `type`.
|
|
981
919
|
*
|
|
@@ -987,7 +925,6 @@ H.defaultOptions = {
|
|
|
987
925
|
* @product highcharts
|
|
988
926
|
*/
|
|
989
927
|
defaultSeriesType: 'line',
|
|
990
|
-
|
|
991
928
|
/**
|
|
992
929
|
* If true, the axes will scale to the remaining visible series once
|
|
993
930
|
* one series is hidden. If false, hiding and showing a series will
|
|
@@ -1010,8 +947,6 @@ H.defaultOptions = {
|
|
|
1010
947
|
* @product highcharts highstock gantt
|
|
1011
948
|
*/
|
|
1012
949
|
ignoreHiddenSeries: true,
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
950
|
/**
|
|
1016
951
|
* Whether to invert the axes so that the x axis is vertical and y axis
|
|
1017
952
|
* is horizontal. When `true`, the x axis is [reversed](#xAxis.reversed)
|
|
@@ -1033,7 +968,6 @@ H.defaultOptions = {
|
|
|
1033
968
|
* @product highcharts highstock gantt
|
|
1034
969
|
* @apioption chart.inverted
|
|
1035
970
|
*/
|
|
1036
|
-
|
|
1037
971
|
/**
|
|
1038
972
|
* The distance between the outer edge of the chart and the content,
|
|
1039
973
|
* like title or legend, or axis title and labels if present. The
|
|
@@ -1047,13 +981,11 @@ H.defaultOptions = {
|
|
|
1047
981
|
* @since 3.0.6
|
|
1048
982
|
*/
|
|
1049
983
|
spacing: [10, 10, 15, 10],
|
|
1050
|
-
|
|
1051
984
|
/**
|
|
1052
985
|
* The button that appears after a selection zoom, allowing the user
|
|
1053
986
|
* to reset zoom.
|
|
1054
987
|
*/
|
|
1055
988
|
resetZoomButton: {
|
|
1056
|
-
|
|
1057
989
|
/**
|
|
1058
990
|
* What frame the button placement should be related to. Can be
|
|
1059
991
|
* either `plotBox` or `spacingBox`.
|
|
@@ -1068,7 +1000,6 @@ H.defaultOptions = {
|
|
|
1068
1000
|
* @since 2.2
|
|
1069
1001
|
* @apioption chart.resetZoomButton.relativeTo
|
|
1070
1002
|
*/
|
|
1071
|
-
|
|
1072
1003
|
/**
|
|
1073
1004
|
* A collection of attributes for the button. The object takes SVG
|
|
1074
1005
|
* attributes like `fill`, `stroke`, `stroke-width` or `r`, the
|
|
@@ -1089,7 +1020,6 @@ H.defaultOptions = {
|
|
|
1089
1020
|
/** @ignore-option */
|
|
1090
1021
|
zIndex: 6
|
|
1091
1022
|
},
|
|
1092
|
-
|
|
1093
1023
|
/**
|
|
1094
1024
|
* The position of the button.
|
|
1095
1025
|
*
|
|
@@ -1104,17 +1034,14 @@ H.defaultOptions = {
|
|
|
1104
1034
|
* @since 2.2
|
|
1105
1035
|
*/
|
|
1106
1036
|
position: {
|
|
1107
|
-
|
|
1108
1037
|
/**
|
|
1109
1038
|
* The horizontal alignment of the button.
|
|
1110
1039
|
*/
|
|
1111
1040
|
align: 'right',
|
|
1112
|
-
|
|
1113
1041
|
/**
|
|
1114
1042
|
* The horizontal offset of the button.
|
|
1115
1043
|
*/
|
|
1116
1044
|
x: -10,
|
|
1117
|
-
|
|
1118
1045
|
/**
|
|
1119
1046
|
* The vertical alignment of the button.
|
|
1120
1047
|
*
|
|
@@ -1122,14 +1049,12 @@ H.defaultOptions = {
|
|
|
1122
1049
|
* @default top
|
|
1123
1050
|
* @apioption chart.resetZoomButton.position.verticalAlign
|
|
1124
1051
|
*/
|
|
1125
|
-
|
|
1126
1052
|
/**
|
|
1127
1053
|
* The vertical offset of the button.
|
|
1128
1054
|
*/
|
|
1129
1055
|
y: 10
|
|
1130
1056
|
}
|
|
1131
1057
|
},
|
|
1132
|
-
|
|
1133
1058
|
/**
|
|
1134
1059
|
* The pixel width of the plot area border.
|
|
1135
1060
|
*
|
|
@@ -1144,7 +1069,6 @@ H.defaultOptions = {
|
|
|
1144
1069
|
* @default 0
|
|
1145
1070
|
* @apioption chart.plotBorderWidth
|
|
1146
1071
|
*/
|
|
1147
|
-
|
|
1148
1072
|
/**
|
|
1149
1073
|
* Whether to apply a drop shadow to the plot area. Requires that
|
|
1150
1074
|
* plotBackgroundColor be set. The shadow can be an object configuration
|
|
@@ -1161,7 +1085,6 @@ H.defaultOptions = {
|
|
|
1161
1085
|
* @default false
|
|
1162
1086
|
* @apioption chart.plotShadow
|
|
1163
1087
|
*/
|
|
1164
|
-
|
|
1165
1088
|
/**
|
|
1166
1089
|
* When true, cartesian charts like line, spline, area and column are
|
|
1167
1090
|
* transformed into the polar coordinate system. This produces _polar
|
|
@@ -1183,7 +1106,6 @@ H.defaultOptions = {
|
|
|
1183
1106
|
* @product highcharts
|
|
1184
1107
|
* @apioption chart.polar
|
|
1185
1108
|
*/
|
|
1186
|
-
|
|
1187
1109
|
/**
|
|
1188
1110
|
* Whether to reflow the chart to fit the width of the container div
|
|
1189
1111
|
* on resizing the window.
|
|
@@ -1206,7 +1128,6 @@ H.defaultOptions = {
|
|
|
1206
1128
|
* @since 2.1
|
|
1207
1129
|
* @apioption chart.reflow
|
|
1208
1130
|
*/
|
|
1209
|
-
|
|
1210
1131
|
/**
|
|
1211
1132
|
* The HTML element where the chart will be rendered. If it is a string,
|
|
1212
1133
|
* the element by that id is used. The HTML element can also be passed
|
|
@@ -1229,7 +1150,6 @@ H.defaultOptions = {
|
|
|
1229
1150
|
* @type {string|Highcharts.HTMLDOMElement}
|
|
1230
1151
|
* @apioption chart.renderTo
|
|
1231
1152
|
*/
|
|
1232
|
-
|
|
1233
1153
|
/**
|
|
1234
1154
|
* The background color of the marker square when selecting (zooming
|
|
1235
1155
|
* in on) an area of the chart.
|
|
@@ -1242,7 +1162,6 @@ H.defaultOptions = {
|
|
|
1242
1162
|
* @since 2.1.7
|
|
1243
1163
|
* @apioption chart.selectionMarkerFill
|
|
1244
1164
|
*/
|
|
1245
|
-
|
|
1246
1165
|
/**
|
|
1247
1166
|
* Whether to apply a drop shadow to the outer chart area. Requires
|
|
1248
1167
|
* that backgroundColor be set. The shadow can be an object
|
|
@@ -1260,7 +1179,6 @@ H.defaultOptions = {
|
|
|
1260
1179
|
* @default false
|
|
1261
1180
|
* @apioption chart.shadow
|
|
1262
1181
|
*/
|
|
1263
|
-
|
|
1264
1182
|
/**
|
|
1265
1183
|
* Whether to show the axes initially. This only applies to empty charts
|
|
1266
1184
|
* where series are added dynamically, as axes are automatically added
|
|
@@ -1276,7 +1194,6 @@ H.defaultOptions = {
|
|
|
1276
1194
|
* @product highcharts gantt
|
|
1277
1195
|
* @apioption chart.showAxes
|
|
1278
1196
|
*/
|
|
1279
|
-
|
|
1280
1197
|
/**
|
|
1281
1198
|
* The space between the bottom edge of the chart and the content (plot
|
|
1282
1199
|
* area, axis title and labels, title, subtitle or legend in top
|
|
@@ -1294,7 +1211,6 @@ H.defaultOptions = {
|
|
|
1294
1211
|
* @since 2.1
|
|
1295
1212
|
* @apioption chart.spacingBottom
|
|
1296
1213
|
*/
|
|
1297
|
-
|
|
1298
1214
|
/**
|
|
1299
1215
|
* The space between the left edge of the chart and the content (plot
|
|
1300
1216
|
* area, axis title and labels, title, subtitle or legend in top
|
|
@@ -1312,7 +1228,6 @@ H.defaultOptions = {
|
|
|
1312
1228
|
* @since 2.1
|
|
1313
1229
|
* @apioption chart.spacingLeft
|
|
1314
1230
|
*/
|
|
1315
|
-
|
|
1316
1231
|
/**
|
|
1317
1232
|
* The space between the right edge of the chart and the content (plot
|
|
1318
1233
|
* area, axis title and labels, title, subtitle or legend in top
|
|
@@ -1332,7 +1247,6 @@ H.defaultOptions = {
|
|
|
1332
1247
|
* @since 2.1
|
|
1333
1248
|
* @apioption chart.spacingRight
|
|
1334
1249
|
*/
|
|
1335
|
-
|
|
1336
1250
|
/**
|
|
1337
1251
|
* The space between the top edge of the chart and the content (plot
|
|
1338
1252
|
* area, axis title and labels, title, subtitle or legend in top
|
|
@@ -1353,7 +1267,6 @@ H.defaultOptions = {
|
|
|
1353
1267
|
* @since 2.1
|
|
1354
1268
|
* @apioption chart.spacingTop
|
|
1355
1269
|
*/
|
|
1356
|
-
|
|
1357
1270
|
/**
|
|
1358
1271
|
* Additional CSS styles to apply inline to the container `div`. Note
|
|
1359
1272
|
* that since the default font styles are applied in the renderer, it
|
|
@@ -1374,7 +1287,6 @@ H.defaultOptions = {
|
|
|
1374
1287
|
* @default {"fontFamily": "\"Lucida Grande\", \"Lucida Sans Unicode\", Verdana, Arial, Helvetica, sans-serif","fontSize":"12px"}
|
|
1375
1288
|
* @apioption chart.style
|
|
1376
1289
|
*/
|
|
1377
|
-
|
|
1378
1290
|
/**
|
|
1379
1291
|
* The default series type for the chart. Can be any of the chart types
|
|
1380
1292
|
* listed under [plotOptions](#plotOptions) and [series](#series) or can
|
|
@@ -1397,7 +1309,6 @@ H.defaultOptions = {
|
|
|
1397
1309
|
* @since 2.1.0
|
|
1398
1310
|
* @apioption chart.type
|
|
1399
1311
|
*/
|
|
1400
|
-
|
|
1401
1312
|
/**
|
|
1402
1313
|
* Decides in what dimensions the user can zoom by dragging the mouse.
|
|
1403
1314
|
* Can be one of `x`, `y` or `xy`.
|
|
@@ -1426,7 +1337,6 @@ H.defaultOptions = {
|
|
|
1426
1337
|
* @validvalue ["x", "y", "xy"]
|
|
1427
1338
|
* @apioption chart.zoomType
|
|
1428
1339
|
*/
|
|
1429
|
-
|
|
1430
1340
|
/**
|
|
1431
1341
|
* An explicit width for the chart. By default (when `null`) the width
|
|
1432
1342
|
* is calculated from the offset width of the containing element.
|
|
@@ -1438,10 +1348,9 @@ H.defaultOptions = {
|
|
|
1438
1348
|
* @sample {highmaps} maps/chart/size/
|
|
1439
1349
|
* Chart with explicit size
|
|
1440
1350
|
*
|
|
1441
|
-
* @type {number|
|
|
1351
|
+
* @type {null|number|string}
|
|
1442
1352
|
*/
|
|
1443
1353
|
width: null,
|
|
1444
|
-
|
|
1445
1354
|
/**
|
|
1446
1355
|
* An explicit height for the chart. If a _number_, the height is
|
|
1447
1356
|
* given in pixels. If given a _percentage string_ (for example
|
|
@@ -1462,10 +1371,9 @@ H.defaultOptions = {
|
|
|
1462
1371
|
* @sample highcharts/chart/height-percent/
|
|
1463
1372
|
* Highcharts with percentage height
|
|
1464
1373
|
*
|
|
1465
|
-
* @type {number|string
|
|
1374
|
+
* @type {null|number|string}
|
|
1466
1375
|
*/
|
|
1467
1376
|
height: null,
|
|
1468
|
-
|
|
1469
1377
|
/**
|
|
1470
1378
|
* The color of the outer chart border.
|
|
1471
1379
|
*
|
|
@@ -1482,7 +1390,6 @@ H.defaultOptions = {
|
|
|
1482
1390
|
* @type {Highcharts.ColorString}
|
|
1483
1391
|
*/
|
|
1484
1392
|
borderColor: '#335cad',
|
|
1485
|
-
|
|
1486
1393
|
/**
|
|
1487
1394
|
* The pixel width of the outer chart border.
|
|
1488
1395
|
*
|
|
@@ -1500,7 +1407,6 @@ H.defaultOptions = {
|
|
|
1500
1407
|
* @default 0
|
|
1501
1408
|
* @apioption chart.borderWidth
|
|
1502
1409
|
*/
|
|
1503
|
-
|
|
1504
1410
|
/**
|
|
1505
1411
|
* The background color or gradient for the outer chart area.
|
|
1506
1412
|
*
|
|
@@ -1523,7 +1429,6 @@ H.defaultOptions = {
|
|
|
1523
1429
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
1524
1430
|
*/
|
|
1525
1431
|
backgroundColor: '#ffffff',
|
|
1526
|
-
|
|
1527
1432
|
/**
|
|
1528
1433
|
* The background color or gradient for the plot area.
|
|
1529
1434
|
*
|
|
@@ -1543,10 +1448,9 @@ H.defaultOptions = {
|
|
|
1543
1448
|
* @sample {highmaps} maps/chart/plotbackgroundcolor-gradient/
|
|
1544
1449
|
* Gradient
|
|
1545
1450
|
*
|
|
1546
|
-
* @type {Highcharts.ColorString}
|
|
1451
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
1547
1452
|
* @apioption chart.plotBackgroundColor
|
|
1548
1453
|
*/
|
|
1549
|
-
|
|
1550
1454
|
/**
|
|
1551
1455
|
* The URL for an image to use as the plot background. To set an image
|
|
1552
1456
|
* as the background for the entire chart, set a CSS background image
|
|
@@ -1566,7 +1470,6 @@ H.defaultOptions = {
|
|
|
1566
1470
|
* @type {string}
|
|
1567
1471
|
* @apioption chart.plotBackgroundImage
|
|
1568
1472
|
*/
|
|
1569
|
-
|
|
1570
1473
|
/**
|
|
1571
1474
|
* The color of the inner chart or plot area border.
|
|
1572
1475
|
*
|
|
@@ -1583,9 +1486,7 @@ H.defaultOptions = {
|
|
|
1583
1486
|
* @type {Highcharts.ColorString}
|
|
1584
1487
|
*/
|
|
1585
1488
|
plotBorderColor: '#cccccc'
|
|
1586
|
-
|
|
1587
1489
|
},
|
|
1588
|
-
|
|
1589
1490
|
/**
|
|
1590
1491
|
* The chart's main title.
|
|
1591
1492
|
*
|
|
@@ -1593,7 +1494,6 @@ H.defaultOptions = {
|
|
|
1593
1494
|
* Title options demonstrated
|
|
1594
1495
|
*/
|
|
1595
1496
|
title: {
|
|
1596
|
-
|
|
1597
1497
|
/**
|
|
1598
1498
|
* When the title is floating, the plot area will not move to make space
|
|
1599
1499
|
* for it.
|
|
@@ -1610,7 +1510,6 @@ H.defaultOptions = {
|
|
|
1610
1510
|
* @since 2.1
|
|
1611
1511
|
* @apioption title.floating
|
|
1612
1512
|
*/
|
|
1613
|
-
|
|
1614
1513
|
/**
|
|
1615
1514
|
* CSS styles for the title. Use this for font styling, but use `align`,
|
|
1616
1515
|
* `x` and `y` for text alignment.
|
|
@@ -1630,7 +1529,6 @@ H.defaultOptions = {
|
|
|
1630
1529
|
* @default {highstock} { "color": "#333333", "fontSize": "16px" }
|
|
1631
1530
|
* @apioption title.style
|
|
1632
1531
|
*/
|
|
1633
|
-
|
|
1634
1532
|
/**
|
|
1635
1533
|
* Whether to
|
|
1636
1534
|
* [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
|
|
@@ -1640,7 +1538,6 @@ H.defaultOptions = {
|
|
|
1640
1538
|
* @default false
|
|
1641
1539
|
* @apioption title.useHTML
|
|
1642
1540
|
*/
|
|
1643
|
-
|
|
1644
1541
|
/**
|
|
1645
1542
|
* The vertical alignment of the title. Can be one of `"top"`,
|
|
1646
1543
|
* `"middle"` and `"bottom"`. When a value is given, the title behaves
|
|
@@ -1655,7 +1552,6 @@ H.defaultOptions = {
|
|
|
1655
1552
|
* @since 2.1
|
|
1656
1553
|
* @apioption title.verticalAlign
|
|
1657
1554
|
*/
|
|
1658
|
-
|
|
1659
1555
|
/**
|
|
1660
1556
|
* The x position of the title relative to the alignment within
|
|
1661
1557
|
* `chart.spacingLeft` and `chart.spacingRight`.
|
|
@@ -1672,7 +1568,6 @@ H.defaultOptions = {
|
|
|
1672
1568
|
* @since 2.0
|
|
1673
1569
|
* @apioption title.x
|
|
1674
1570
|
*/
|
|
1675
|
-
|
|
1676
1571
|
/**
|
|
1677
1572
|
* The y position of the title relative to the alignment within
|
|
1678
1573
|
* [chart.spacingTop](#chart.spacingTop) and [chart.spacingBottom](
|
|
@@ -1687,7 +1582,6 @@ H.defaultOptions = {
|
|
|
1687
1582
|
* @since 2.0
|
|
1688
1583
|
* @apioption title.y
|
|
1689
1584
|
*/
|
|
1690
|
-
|
|
1691
1585
|
/**
|
|
1692
1586
|
* The title of the chart. To disable the title, set the `text` to
|
|
1693
1587
|
* `undefined`.
|
|
@@ -1701,7 +1595,6 @@ H.defaultOptions = {
|
|
|
1701
1595
|
* @default {highstock} undefined
|
|
1702
1596
|
*/
|
|
1703
1597
|
text: 'Chart title',
|
|
1704
|
-
|
|
1705
1598
|
/**
|
|
1706
1599
|
* The horizontal alignment of the title. Can be one of "left", "center"
|
|
1707
1600
|
* and "right".
|
|
@@ -1717,7 +1610,6 @@ H.defaultOptions = {
|
|
|
1717
1610
|
* @since 2.0
|
|
1718
1611
|
*/
|
|
1719
1612
|
align: 'center',
|
|
1720
|
-
|
|
1721
1613
|
/**
|
|
1722
1614
|
* The margin between the title and the plot area, or if a subtitle
|
|
1723
1615
|
* is present, the margin between the subtitle and the plot area.
|
|
@@ -1732,7 +1624,6 @@ H.defaultOptions = {
|
|
|
1732
1624
|
* @since 2.1
|
|
1733
1625
|
*/
|
|
1734
1626
|
margin: 15,
|
|
1735
|
-
|
|
1736
1627
|
/**
|
|
1737
1628
|
* Adjustment made to the title width, normally to reserve space for
|
|
1738
1629
|
* the exporting burger menu.
|
|
@@ -1743,9 +1634,7 @@ H.defaultOptions = {
|
|
|
1743
1634
|
* @since 4.2.5
|
|
1744
1635
|
*/
|
|
1745
1636
|
widthAdjust: -44
|
|
1746
|
-
|
|
1747
1637
|
},
|
|
1748
|
-
|
|
1749
1638
|
/**
|
|
1750
1639
|
* The chart's subtitle. This can be used both to display a subtitle below
|
|
1751
1640
|
* the main title, and to display random text anywhere in the chart. The
|
|
@@ -1756,7 +1645,6 @@ H.defaultOptions = {
|
|
|
1756
1645
|
* Subtitle options demonstrated
|
|
1757
1646
|
*/
|
|
1758
1647
|
subtitle: {
|
|
1759
|
-
|
|
1760
1648
|
/**
|
|
1761
1649
|
* When the subtitle is floating, the plot area will not move to make
|
|
1762
1650
|
* space for it.
|
|
@@ -1771,7 +1659,6 @@ H.defaultOptions = {
|
|
|
1771
1659
|
* @since 2.1
|
|
1772
1660
|
* @apioption subtitle.floating
|
|
1773
1661
|
*/
|
|
1774
|
-
|
|
1775
1662
|
/**
|
|
1776
1663
|
* CSS styles for the title.
|
|
1777
1664
|
*
|
|
@@ -1793,7 +1680,6 @@ H.defaultOptions = {
|
|
|
1793
1680
|
* @default {"color": "#666666"}
|
|
1794
1681
|
* @apioption subtitle.style
|
|
1795
1682
|
*/
|
|
1796
|
-
|
|
1797
1683
|
/**
|
|
1798
1684
|
* Whether to
|
|
1799
1685
|
* [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
|
|
@@ -1803,7 +1689,6 @@ H.defaultOptions = {
|
|
|
1803
1689
|
* @default false
|
|
1804
1690
|
* @apioption subtitle.useHTML
|
|
1805
1691
|
*/
|
|
1806
|
-
|
|
1807
1692
|
/**
|
|
1808
1693
|
* The vertical alignment of the title. Can be one of `"top"`,
|
|
1809
1694
|
* `"middle"` and `"bottom"`. When a value is given, the title behaves
|
|
@@ -1818,7 +1703,6 @@ H.defaultOptions = {
|
|
|
1818
1703
|
* @since 2.1
|
|
1819
1704
|
* @apioption subtitle.verticalAlign
|
|
1820
1705
|
*/
|
|
1821
|
-
|
|
1822
1706
|
/**
|
|
1823
1707
|
* The x position of the subtitle relative to the alignment within
|
|
1824
1708
|
* `chart.spacingLeft` and `chart.spacingRight`.
|
|
@@ -1833,7 +1717,6 @@ H.defaultOptions = {
|
|
|
1833
1717
|
* @since 2.0
|
|
1834
1718
|
* @apioption subtitle.x
|
|
1835
1719
|
*/
|
|
1836
|
-
|
|
1837
1720
|
/**
|
|
1838
1721
|
* The y position of the subtitle relative to the alignment within
|
|
1839
1722
|
* `chart.spacingTop` and `chart.spacingBottom`. By default the subtitle
|
|
@@ -1848,7 +1731,6 @@ H.defaultOptions = {
|
|
|
1848
1731
|
* @since 2.0
|
|
1849
1732
|
* @apioption subtitle.y
|
|
1850
1733
|
*/
|
|
1851
|
-
|
|
1852
1734
|
/**
|
|
1853
1735
|
* The subtitle of the chart.
|
|
1854
1736
|
*
|
|
@@ -1858,7 +1740,6 @@ H.defaultOptions = {
|
|
|
1858
1740
|
* Formatted and linked text.
|
|
1859
1741
|
*/
|
|
1860
1742
|
text: '',
|
|
1861
|
-
|
|
1862
1743
|
/**
|
|
1863
1744
|
* The horizontal alignment of the subtitle. Can be one of "left",
|
|
1864
1745
|
* "center" and "right".
|
|
@@ -1872,7 +1753,6 @@ H.defaultOptions = {
|
|
|
1872
1753
|
* @since 2.0
|
|
1873
1754
|
*/
|
|
1874
1755
|
align: 'center',
|
|
1875
|
-
|
|
1876
1756
|
/**
|
|
1877
1757
|
* Adjustment made to the subtitle width, normally to reserve space
|
|
1878
1758
|
* for the exporting burger menu.
|
|
@@ -1886,7 +1766,6 @@ H.defaultOptions = {
|
|
|
1886
1766
|
*/
|
|
1887
1767
|
widthAdjust: -44
|
|
1888
1768
|
},
|
|
1889
|
-
|
|
1890
1769
|
/**
|
|
1891
1770
|
* The plotOptions is a wrapper object for config objects for each series
|
|
1892
1771
|
* type. The config objects for each series can also be overridden for
|
|
@@ -1900,26 +1779,30 @@ H.defaultOptions = {
|
|
|
1900
1779
|
* [the series array](#series).
|
|
1901
1780
|
*/
|
|
1902
1781
|
plotOptions: {},
|
|
1903
|
-
|
|
1904
1782
|
/**
|
|
1905
1783
|
* HTML labels that can be positioned anywhere in the chart area.
|
|
1784
|
+
*
|
|
1785
|
+
* This option is deprecated since v7.1.2. Instead, use
|
|
1786
|
+
* [annotations](#annotations) that support labels.
|
|
1787
|
+
*
|
|
1788
|
+
* @deprecated
|
|
1789
|
+
* @product highcharts highstock
|
|
1906
1790
|
*/
|
|
1907
1791
|
labels: {
|
|
1908
|
-
|
|
1909
1792
|
/**
|
|
1910
1793
|
* An HTML label that can be positioned anywhere in the chart area.
|
|
1911
1794
|
*
|
|
1795
|
+
* @deprecated
|
|
1912
1796
|
* @type {Array<*>}
|
|
1913
1797
|
* @apioption labels.items
|
|
1914
1798
|
*/
|
|
1915
|
-
|
|
1916
1799
|
/**
|
|
1917
1800
|
* Inner HTML or text for the label.
|
|
1918
1801
|
*
|
|
1802
|
+
* @deprecated
|
|
1919
1803
|
* @type {string}
|
|
1920
1804
|
* @apioption labels.items.html
|
|
1921
1805
|
*/
|
|
1922
|
-
|
|
1923
1806
|
/**
|
|
1924
1807
|
* CSS styles for each label. To position the label, use left and top
|
|
1925
1808
|
* like this:
|
|
@@ -1929,28 +1812,28 @@ H.defaultOptions = {
|
|
|
1929
1812
|
* top: '100px'
|
|
1930
1813
|
* }</pre>
|
|
1931
1814
|
*
|
|
1815
|
+
* @deprecated
|
|
1932
1816
|
* @type {Highcharts.CSSObject}
|
|
1933
1817
|
* @apioption labels.items.style
|
|
1934
1818
|
*/
|
|
1935
|
-
|
|
1936
1819
|
/**
|
|
1937
1820
|
* Shared CSS styles for all labels.
|
|
1938
1821
|
*
|
|
1822
|
+
* @deprecated
|
|
1939
1823
|
* @type {Highcharts.CSSObject}
|
|
1940
1824
|
* @default {"color": "#333333", "position": "absolute"}
|
|
1941
1825
|
*/
|
|
1942
1826
|
style: {
|
|
1943
1827
|
/**
|
|
1944
|
-
* @ignore
|
|
1828
|
+
* @ignore-option
|
|
1945
1829
|
*/
|
|
1946
1830
|
position: 'absolute',
|
|
1947
1831
|
/**
|
|
1948
|
-
* @ignore
|
|
1832
|
+
* @ignore-option
|
|
1949
1833
|
*/
|
|
1950
1834
|
color: '#333333'
|
|
1951
1835
|
}
|
|
1952
1836
|
},
|
|
1953
|
-
|
|
1954
1837
|
/**
|
|
1955
1838
|
* The legend is a box containing a symbol and name for each series
|
|
1956
1839
|
* item or point item in the chart. Each series (or points in case
|
|
@@ -1965,7 +1848,6 @@ H.defaultOptions = {
|
|
|
1965
1848
|
* Either as a gradient, or as multiple legend items for `dataClasses`.
|
|
1966
1849
|
*/
|
|
1967
1850
|
legend: {
|
|
1968
|
-
|
|
1969
1851
|
/**
|
|
1970
1852
|
* The background color of the legend.
|
|
1971
1853
|
*
|
|
@@ -1982,7 +1864,6 @@ H.defaultOptions = {
|
|
|
1982
1864
|
* @type {Highcharts.ColorString}
|
|
1983
1865
|
* @apioption legend.backgroundColor
|
|
1984
1866
|
*/
|
|
1985
|
-
|
|
1986
1867
|
/**
|
|
1987
1868
|
* The width of the drawn border around the legend.
|
|
1988
1869
|
*
|
|
@@ -2000,7 +1881,6 @@ H.defaultOptions = {
|
|
|
2000
1881
|
* @default 0
|
|
2001
1882
|
* @apioption legend.borderWidth
|
|
2002
1883
|
*/
|
|
2003
|
-
|
|
2004
1884
|
/**
|
|
2005
1885
|
* Enable or disable the legend. There is also a series-specific option,
|
|
2006
1886
|
* [showInLegend](#plotOptions.series.showInLegend), that can hide the
|
|
@@ -2017,7 +1897,6 @@ H.defaultOptions = {
|
|
|
2017
1897
|
* @default {gantt} false
|
|
2018
1898
|
*/
|
|
2019
1899
|
enabled: true,
|
|
2020
|
-
|
|
2021
1900
|
/**
|
|
2022
1901
|
* The horizontal alignment of the legend box within the chart area.
|
|
2023
1902
|
* Valid values are `left`, `center` and `right`.
|
|
@@ -2037,7 +1916,6 @@ H.defaultOptions = {
|
|
|
2037
1916
|
* @since 2.0
|
|
2038
1917
|
*/
|
|
2039
1918
|
align: 'center',
|
|
2040
|
-
|
|
2041
1919
|
/**
|
|
2042
1920
|
* If the [layout](legend.layout) is `horizontal` and the legend items
|
|
2043
1921
|
* span over two lines or more, whether to align the items into vertical
|
|
@@ -2047,7 +1925,6 @@ H.defaultOptions = {
|
|
|
2047
1925
|
* @since 6.1.0
|
|
2048
1926
|
*/
|
|
2049
1927
|
alignColumns: true,
|
|
2050
|
-
|
|
2051
1928
|
/**
|
|
2052
1929
|
* When the legend is floating, the plot area ignores it and is allowed
|
|
2053
1930
|
* to be placed below it.
|
|
@@ -2064,7 +1941,6 @@ H.defaultOptions = {
|
|
|
2064
1941
|
* @since 2.1
|
|
2065
1942
|
* @apioption legend.floating
|
|
2066
1943
|
*/
|
|
2067
|
-
|
|
2068
1944
|
/**
|
|
2069
1945
|
* The layout of the legend items. Can be one of `horizontal` or
|
|
2070
1946
|
* `vertical` or `proximate`. When `proximate`, the legend items will be
|
|
@@ -2088,7 +1964,6 @@ H.defaultOptions = {
|
|
|
2088
1964
|
* @validvalue ["horizontal", "vertical", "proximate"]
|
|
2089
1965
|
*/
|
|
2090
1966
|
layout: 'horizontal',
|
|
2091
|
-
|
|
2092
1967
|
/**
|
|
2093
1968
|
* In a legend with horizontal layout, the itemDistance defines the
|
|
2094
1969
|
* pixel distance between each item.
|
|
@@ -2105,7 +1980,6 @@ H.defaultOptions = {
|
|
|
2105
1980
|
* @since 3.0.3
|
|
2106
1981
|
* @apioption legend.itemDistance
|
|
2107
1982
|
*/
|
|
2108
|
-
|
|
2109
1983
|
/**
|
|
2110
1984
|
* The pixel bottom margin for each legend item.
|
|
2111
1985
|
*
|
|
@@ -2119,7 +1993,6 @@ H.defaultOptions = {
|
|
|
2119
1993
|
* @since 2.2.0
|
|
2120
1994
|
* @apioption legend.itemMarginBottom
|
|
2121
1995
|
*/
|
|
2122
|
-
|
|
2123
1996
|
/**
|
|
2124
1997
|
* The pixel top margin for each legend item.
|
|
2125
1998
|
*
|
|
@@ -2133,7 +2006,6 @@ H.defaultOptions = {
|
|
|
2133
2006
|
* @since 2.2.0
|
|
2134
2007
|
* @apioption legend.itemMarginTop
|
|
2135
2008
|
*/
|
|
2136
|
-
|
|
2137
2009
|
/**
|
|
2138
2010
|
* The width for each legend item. By default the items are laid out
|
|
2139
2011
|
* successively. In a [horizontal layout](legend.layout), if the items
|
|
@@ -2149,7 +2021,6 @@ H.defaultOptions = {
|
|
|
2149
2021
|
* @since 2.0
|
|
2150
2022
|
* @apioption legend.itemWidth
|
|
2151
2023
|
*/
|
|
2152
|
-
|
|
2153
2024
|
/**
|
|
2154
2025
|
* A [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)
|
|
2155
2026
|
* for each legend label. Available variables relates to properties on
|
|
@@ -2160,7 +2031,7 @@ H.defaultOptions = {
|
|
|
2160
2031
|
* @since 1.3
|
|
2161
2032
|
* @apioption legend.labelFormat
|
|
2162
2033
|
*/
|
|
2163
|
-
|
|
2034
|
+
/* eslint-disable valid-jsdoc */
|
|
2164
2035
|
/**
|
|
2165
2036
|
* Callback function to format each of the series' labels. The `this`
|
|
2166
2037
|
* keyword refers to the series object, or the point object in case of
|
|
@@ -2178,9 +2049,9 @@ H.defaultOptions = {
|
|
|
2178
2049
|
* @context {Highcharts.Series|Highcharts.Point}
|
|
2179
2050
|
*/
|
|
2180
2051
|
labelFormatter: function () {
|
|
2052
|
+
/** eslint-enable valid-jsdoc */
|
|
2181
2053
|
return this.name;
|
|
2182
2054
|
},
|
|
2183
|
-
|
|
2184
2055
|
/**
|
|
2185
2056
|
* Line height for the legend items. Deprecated as of 2.1\. Instead,
|
|
2186
2057
|
* the line height for each item can be set using itemStyle.lineHeight,
|
|
@@ -2198,7 +2069,6 @@ H.defaultOptions = {
|
|
|
2198
2069
|
* @product highcharts gantt
|
|
2199
2070
|
* @apioption legend.lineHeight
|
|
2200
2071
|
*/
|
|
2201
|
-
|
|
2202
2072
|
/**
|
|
2203
2073
|
* If the plot area sized is calculated automatically and the legend is
|
|
2204
2074
|
* not floating, the legend margin is the space between the legend and
|
|
@@ -2214,7 +2084,6 @@ H.defaultOptions = {
|
|
|
2214
2084
|
* @since 2.1
|
|
2215
2085
|
* @apioption legend.margin
|
|
2216
2086
|
*/
|
|
2217
|
-
|
|
2218
2087
|
/**
|
|
2219
2088
|
* Maximum pixel height for the legend. When the maximum height is
|
|
2220
2089
|
* extended, navigation will show.
|
|
@@ -2223,7 +2092,6 @@ H.defaultOptions = {
|
|
|
2223
2092
|
* @since 2.3.0
|
|
2224
2093
|
* @apioption legend.maxHeight
|
|
2225
2094
|
*/
|
|
2226
|
-
|
|
2227
2095
|
/**
|
|
2228
2096
|
* The color of the drawn border around the legend.
|
|
2229
2097
|
*
|
|
@@ -2240,7 +2108,6 @@ H.defaultOptions = {
|
|
|
2240
2108
|
* @type {Highcharts.ColorString}
|
|
2241
2109
|
*/
|
|
2242
2110
|
borderColor: '#999999',
|
|
2243
|
-
|
|
2244
2111
|
/**
|
|
2245
2112
|
* The border corner radius of the legend.
|
|
2246
2113
|
*
|
|
@@ -2252,7 +2119,6 @@ H.defaultOptions = {
|
|
|
2252
2119
|
* Border and background options
|
|
2253
2120
|
*/
|
|
2254
2121
|
borderRadius: 0,
|
|
2255
|
-
|
|
2256
2122
|
/**
|
|
2257
2123
|
* Options for the paging or navigation appearing when the legend is
|
|
2258
2124
|
* overflown. Navigation works well on screen, but not in static
|
|
@@ -2261,7 +2127,6 @@ H.defaultOptions = {
|
|
|
2261
2127
|
* export](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/legend/navigation-enabled-false/).
|
|
2262
2128
|
*/
|
|
2263
2129
|
navigation: {
|
|
2264
|
-
|
|
2265
2130
|
/**
|
|
2266
2131
|
* How to animate the pages when navigating up or down. A value of
|
|
2267
2132
|
* `true` applies the default navigation given in the
|
|
@@ -2278,7 +2143,6 @@ H.defaultOptions = {
|
|
|
2278
2143
|
* @since 2.2.4
|
|
2279
2144
|
* @apioption legend.navigation.animation
|
|
2280
2145
|
*/
|
|
2281
|
-
|
|
2282
2146
|
/**
|
|
2283
2147
|
* The pixel size of the up and down arrows in the legend paging
|
|
2284
2148
|
* navigation.
|
|
@@ -2293,7 +2157,6 @@ H.defaultOptions = {
|
|
|
2293
2157
|
* @since 2.2.4
|
|
2294
2158
|
* @apioption legend.navigation.arrowSize
|
|
2295
2159
|
*/
|
|
2296
|
-
|
|
2297
2160
|
/**
|
|
2298
2161
|
* Whether to enable the legend navigation. In most cases, disabling
|
|
2299
2162
|
* the navigation results in an unwanted overflow.
|
|
@@ -2308,7 +2171,6 @@ H.defaultOptions = {
|
|
|
2308
2171
|
* @since 4.2.4
|
|
2309
2172
|
* @apioption legend.navigation.enabled
|
|
2310
2173
|
*/
|
|
2311
|
-
|
|
2312
2174
|
/**
|
|
2313
2175
|
* Text styles for the legend page navigation.
|
|
2314
2176
|
*
|
|
@@ -2324,7 +2186,6 @@ H.defaultOptions = {
|
|
|
2324
2186
|
* @since 2.2.4
|
|
2325
2187
|
* @apioption legend.navigation.style
|
|
2326
2188
|
*/
|
|
2327
|
-
|
|
2328
2189
|
/**
|
|
2329
2190
|
* The color for the active up or down arrow in the legend page
|
|
2330
2191
|
* navigation.
|
|
@@ -2341,7 +2202,6 @@ H.defaultOptions = {
|
|
|
2341
2202
|
* @since 2.2.4
|
|
2342
2203
|
*/
|
|
2343
2204
|
activeColor: '#003399',
|
|
2344
|
-
|
|
2345
2205
|
/**
|
|
2346
2206
|
* The color of the inactive up or down arrow in the legend page
|
|
2347
2207
|
* navigation. .
|
|
@@ -2359,7 +2219,6 @@ H.defaultOptions = {
|
|
|
2359
2219
|
*/
|
|
2360
2220
|
inactiveColor: '#cccccc'
|
|
2361
2221
|
},
|
|
2362
|
-
|
|
2363
2222
|
/**
|
|
2364
2223
|
* The inner padding of the legend box.
|
|
2365
2224
|
*
|
|
@@ -2373,7 +2232,6 @@ H.defaultOptions = {
|
|
|
2373
2232
|
* @since 2.2.0
|
|
2374
2233
|
* @apioption legend.padding
|
|
2375
2234
|
*/
|
|
2376
|
-
|
|
2377
2235
|
/**
|
|
2378
2236
|
* Whether to reverse the order of the legend items compared to the
|
|
2379
2237
|
* order of the series or points as defined in the configuration object.
|
|
@@ -2389,7 +2247,6 @@ H.defaultOptions = {
|
|
|
2389
2247
|
* @since 1.2.5
|
|
2390
2248
|
* @apioption legend.reversed
|
|
2391
2249
|
*/
|
|
2392
|
-
|
|
2393
2250
|
/**
|
|
2394
2251
|
* Whether to show the symbol on the right side of the text rather than
|
|
2395
2252
|
* the left side. This is common in Arabic and Hebraic.
|
|
@@ -2402,7 +2259,6 @@ H.defaultOptions = {
|
|
|
2402
2259
|
* @since 2.2
|
|
2403
2260
|
* @apioption legend.rtl
|
|
2404
2261
|
*/
|
|
2405
|
-
|
|
2406
2262
|
/**
|
|
2407
2263
|
* CSS styles for the legend area. In the 1.x versions the position
|
|
2408
2264
|
* of the legend area was determined by CSS. In 2.x, the position is
|
|
@@ -2415,7 +2271,6 @@ H.defaultOptions = {
|
|
|
2415
2271
|
* @product highcharts highstock
|
|
2416
2272
|
* @apioption legend.style
|
|
2417
2273
|
*/
|
|
2418
|
-
|
|
2419
2274
|
/**
|
|
2420
2275
|
* CSS styles for each legend item. Only a subset of CSS is supported,
|
|
2421
2276
|
* notably those options related to text. The default `textOverflow`
|
|
@@ -2456,7 +2311,6 @@ H.defaultOptions = {
|
|
|
2456
2311
|
*/
|
|
2457
2312
|
textOverflow: 'ellipsis'
|
|
2458
2313
|
},
|
|
2459
|
-
|
|
2460
2314
|
/**
|
|
2461
2315
|
* CSS styles for each legend item in hover mode. Only a subset of
|
|
2462
2316
|
* CSS is supported, notably those options related to text. Properties
|
|
@@ -2479,7 +2333,6 @@ H.defaultOptions = {
|
|
|
2479
2333
|
*/
|
|
2480
2334
|
color: '#000000'
|
|
2481
2335
|
},
|
|
2482
|
-
|
|
2483
2336
|
/**
|
|
2484
2337
|
* CSS styles for each legend item when the corresponding series or
|
|
2485
2338
|
* point is hidden. Only a subset of CSS is supported, notably those
|
|
@@ -2501,7 +2354,6 @@ H.defaultOptions = {
|
|
|
2501
2354
|
*/
|
|
2502
2355
|
color: '#cccccc'
|
|
2503
2356
|
},
|
|
2504
|
-
|
|
2505
2357
|
/**
|
|
2506
2358
|
* Whether to apply a drop shadow to the legend. A `backgroundColor`
|
|
2507
2359
|
* also needs to be applied for this to take effect. The shadow can be
|
|
@@ -2518,7 +2370,6 @@ H.defaultOptions = {
|
|
|
2518
2370
|
* @type {boolean|Highcharts.CSSObject}
|
|
2519
2371
|
*/
|
|
2520
2372
|
shadow: false,
|
|
2521
|
-
|
|
2522
2373
|
/**
|
|
2523
2374
|
* Default styling for the checkbox next to a legend item when
|
|
2524
2375
|
* `showCheckbox` is true.
|
|
@@ -2534,14 +2385,13 @@ H.defaultOptions = {
|
|
|
2534
2385
|
/**
|
|
2535
2386
|
* @ignore
|
|
2536
2387
|
*/
|
|
2537
|
-
width: '13px',
|
|
2388
|
+
width: '13px',
|
|
2538
2389
|
/**
|
|
2539
2390
|
* @ignore
|
|
2540
2391
|
*/
|
|
2541
2392
|
height: '13px'
|
|
2542
2393
|
},
|
|
2543
2394
|
// itemWidth: undefined,
|
|
2544
|
-
|
|
2545
2395
|
/**
|
|
2546
2396
|
* When this is true, the legend symbol width will be the same as
|
|
2547
2397
|
* the symbol height, which in turn defaults to the font size of the
|
|
@@ -2550,7 +2400,6 @@ H.defaultOptions = {
|
|
|
2550
2400
|
* @since 5.0.0
|
|
2551
2401
|
*/
|
|
2552
2402
|
squareSymbol: true,
|
|
2553
|
-
|
|
2554
2403
|
/**
|
|
2555
2404
|
* The pixel height of the symbol for series types that use a rectangle
|
|
2556
2405
|
* in the legend. Defaults to the font size of legend items.
|
|
@@ -2568,7 +2417,6 @@ H.defaultOptions = {
|
|
|
2568
2417
|
* @since 3.0.8
|
|
2569
2418
|
* @apioption legend.symbolHeight
|
|
2570
2419
|
*/
|
|
2571
|
-
|
|
2572
2420
|
/**
|
|
2573
2421
|
* The border radius of the symbol for series types that use a rectangle
|
|
2574
2422
|
* in the legend. Defaults to half the `symbolHeight`.
|
|
@@ -2584,7 +2432,6 @@ H.defaultOptions = {
|
|
|
2584
2432
|
* @since 3.0.8
|
|
2585
2433
|
* @apioption legend.symbolRadius
|
|
2586
2434
|
*/
|
|
2587
|
-
|
|
2588
2435
|
/**
|
|
2589
2436
|
* The pixel width of the legend item symbol. When the `squareSymbol`
|
|
2590
2437
|
* option is set, this defaults to the `symbolHeight`, otherwise 16.
|
|
@@ -2603,7 +2450,6 @@ H.defaultOptions = {
|
|
|
2603
2450
|
* @type {number}
|
|
2604
2451
|
* @apioption legend.symbolWidth
|
|
2605
2452
|
*/
|
|
2606
|
-
|
|
2607
2453
|
/**
|
|
2608
2454
|
* Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
|
|
2609
2455
|
* to render the legend item texts.
|
|
@@ -2615,7 +2461,6 @@ H.defaultOptions = {
|
|
|
2615
2461
|
* @default false
|
|
2616
2462
|
* @apioption legend.useHTML
|
|
2617
2463
|
*/
|
|
2618
|
-
|
|
2619
2464
|
/**
|
|
2620
2465
|
* The width of the legend box. If a number is set, it translates to
|
|
2621
2466
|
* pixels. Since v7.0.2 it allows setting a percent string of the full
|
|
@@ -2633,7 +2478,6 @@ H.defaultOptions = {
|
|
|
2633
2478
|
* @since 2.0
|
|
2634
2479
|
* @apioption legend.width
|
|
2635
2480
|
*/
|
|
2636
|
-
|
|
2637
2481
|
/**
|
|
2638
2482
|
* The pixel padding between the legend item symbol and the legend
|
|
2639
2483
|
* item text.
|
|
@@ -2642,7 +2486,6 @@ H.defaultOptions = {
|
|
|
2642
2486
|
* Greater symbol width and padding
|
|
2643
2487
|
*/
|
|
2644
2488
|
symbolPadding: 5,
|
|
2645
|
-
|
|
2646
2489
|
/**
|
|
2647
2490
|
* The vertical alignment of the legend box. Can be one of `top`,
|
|
2648
2491
|
* `middle` or `bottom`. Vertical position can be further determined
|
|
@@ -2666,9 +2509,7 @@ H.defaultOptions = {
|
|
|
2666
2509
|
* @since 2.0
|
|
2667
2510
|
*/
|
|
2668
2511
|
verticalAlign: 'bottom',
|
|
2669
|
-
|
|
2670
2512
|
// width: undefined,
|
|
2671
|
-
|
|
2672
2513
|
/**
|
|
2673
2514
|
* The x offset of the legend relative to its horizontal alignment
|
|
2674
2515
|
* `align` within chart.spacingLeft and chart.spacingRight. Negative
|
|
@@ -2680,7 +2521,6 @@ H.defaultOptions = {
|
|
|
2680
2521
|
* @since 2.0
|
|
2681
2522
|
*/
|
|
2682
2523
|
x: 0,
|
|
2683
|
-
|
|
2684
2524
|
/**
|
|
2685
2525
|
* The vertical offset of the legend relative to it's vertical alignment
|
|
2686
2526
|
* `verticalAlign` within chart.spacingTop and chart.spacingBottom.
|
|
@@ -2696,7 +2536,6 @@ H.defaultOptions = {
|
|
|
2696
2536
|
* @since 2.0
|
|
2697
2537
|
*/
|
|
2698
2538
|
y: 0,
|
|
2699
|
-
|
|
2700
2539
|
/**
|
|
2701
2540
|
* A title to be added on top of the legend.
|
|
2702
2541
|
*
|
|
@@ -2715,7 +2554,6 @@ H.defaultOptions = {
|
|
|
2715
2554
|
* @since 3.0
|
|
2716
2555
|
* @apioption legend.title.text
|
|
2717
2556
|
*/
|
|
2718
|
-
|
|
2719
2557
|
/**
|
|
2720
2558
|
* Generic CSS styles for the legend title.
|
|
2721
2559
|
*
|
|
@@ -2734,8 +2572,6 @@ H.defaultOptions = {
|
|
|
2734
2572
|
}
|
|
2735
2573
|
}
|
|
2736
2574
|
},
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
2575
|
/**
|
|
2740
2576
|
* The loading options control the appearance of the loading screen
|
|
2741
2577
|
* that covers the plot area on chart operations. This screen only
|
|
@@ -2746,7 +2582,6 @@ H.defaultOptions = {
|
|
|
2746
2582
|
* object, but part of the `lang` object.
|
|
2747
2583
|
*/
|
|
2748
2584
|
loading: {
|
|
2749
|
-
|
|
2750
2585
|
/**
|
|
2751
2586
|
* The duration in milliseconds of the fade out effect.
|
|
2752
2587
|
*
|
|
@@ -2758,7 +2593,6 @@ H.defaultOptions = {
|
|
|
2758
2593
|
* @since 1.2.0
|
|
2759
2594
|
* @apioption loading.hideDuration
|
|
2760
2595
|
*/
|
|
2761
|
-
|
|
2762
2596
|
/**
|
|
2763
2597
|
* The duration in milliseconds of the fade in effect.
|
|
2764
2598
|
*
|
|
@@ -2770,7 +2604,6 @@ H.defaultOptions = {
|
|
|
2770
2604
|
* @since 1.2.0
|
|
2771
2605
|
* @apioption loading.showDuration
|
|
2772
2606
|
*/
|
|
2773
|
-
|
|
2774
2607
|
/**
|
|
2775
2608
|
* CSS styles for the loading label `span`.
|
|
2776
2609
|
*
|
|
@@ -2800,7 +2633,6 @@ H.defaultOptions = {
|
|
|
2800
2633
|
*/
|
|
2801
2634
|
top: '45%'
|
|
2802
2635
|
},
|
|
2803
|
-
|
|
2804
2636
|
/**
|
|
2805
2637
|
* CSS styles for the loading screen that covers the plot area.
|
|
2806
2638
|
*
|
|
@@ -2835,15 +2667,11 @@ H.defaultOptions = {
|
|
|
2835
2667
|
textAlign: 'center'
|
|
2836
2668
|
}
|
|
2837
2669
|
},
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
2670
|
/**
|
|
2841
2671
|
* Options for the tooltip that appears when the user hovers over a
|
|
2842
2672
|
* series or point.
|
|
2843
2673
|
*/
|
|
2844
2674
|
tooltip: {
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
2675
|
/**
|
|
2848
2676
|
* The color of the tooltip border. When `undefined`, the border takes
|
|
2849
2677
|
* the color of the corresponding series or point.
|
|
@@ -2860,7 +2688,6 @@ H.defaultOptions = {
|
|
|
2860
2688
|
* @type {Highcharts.ColorString}
|
|
2861
2689
|
* @apioption tooltip.borderColor
|
|
2862
2690
|
*/
|
|
2863
|
-
|
|
2864
2691
|
/**
|
|
2865
2692
|
* Since 4.1, the crosshair definitions are moved to the Axis object
|
|
2866
2693
|
* in order for a better separation from the tooltip. See
|
|
@@ -2875,7 +2702,6 @@ H.defaultOptions = {
|
|
|
2875
2702
|
* @default true
|
|
2876
2703
|
* @apioption tooltip.crosshairs
|
|
2877
2704
|
*/
|
|
2878
|
-
|
|
2879
2705
|
/**
|
|
2880
2706
|
* Whether the tooltip should follow the mouse as it moves across
|
|
2881
2707
|
* columns, pie slices and other point types with an extent.
|
|
@@ -2893,7 +2719,6 @@ H.defaultOptions = {
|
|
|
2893
2719
|
* @since 3.0
|
|
2894
2720
|
* @apioption tooltip.followPointer
|
|
2895
2721
|
*/
|
|
2896
|
-
|
|
2897
2722
|
/**
|
|
2898
2723
|
* Whether the tooltip should update as the finger moves on a touch
|
|
2899
2724
|
* device. If this is `true` and [chart.panning](#chart.panning) is
|
|
@@ -2913,7 +2738,6 @@ H.defaultOptions = {
|
|
|
2913
2738
|
* @since 3.0.1
|
|
2914
2739
|
* @apioption tooltip.followTouchMove
|
|
2915
2740
|
*/
|
|
2916
|
-
|
|
2917
2741
|
/**
|
|
2918
2742
|
* Callback function to format the text of the tooltip from scratch. In
|
|
2919
2743
|
* case of single or [shared](#tooltip.shared) tooltips, a string should
|
|
@@ -2992,8 +2816,6 @@ H.defaultOptions = {
|
|
|
2992
2816
|
* @type {Highcharts.TooltipFormatterCallbackFunction}
|
|
2993
2817
|
* @apioption tooltip.formatter
|
|
2994
2818
|
*/
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
2819
|
/**
|
|
2998
2820
|
* Callback function to format the text of the tooltip for
|
|
2999
2821
|
* visible null points.
|
|
@@ -3005,8 +2827,6 @@ H.defaultOptions = {
|
|
|
3005
2827
|
* @type {Highcharts.TooltipFormatterCallbackFunction}
|
|
3006
2828
|
* @apioption tooltip.nullFormatter
|
|
3007
2829
|
*/
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
2830
|
/**
|
|
3011
2831
|
* The number of milliseconds to wait until the tooltip is hidden when
|
|
3012
2832
|
* mouse out from a point or chart.
|
|
@@ -3016,7 +2836,6 @@ H.defaultOptions = {
|
|
|
3016
2836
|
* @since 3.0
|
|
3017
2837
|
* @apioption tooltip.hideDelay
|
|
3018
2838
|
*/
|
|
3019
|
-
|
|
3020
2839
|
/**
|
|
3021
2840
|
* Whether to allow the tooltip to render outside the chart's SVG
|
|
3022
2841
|
* element box. By default (`false`), the tooltip is rendered within the
|
|
@@ -3026,15 +2845,17 @@ H.defaultOptions = {
|
|
|
3026
2845
|
* overlaid on the page, allowing the tooltip to be aligned inside the
|
|
3027
2846
|
* page itself.
|
|
3028
2847
|
*
|
|
2848
|
+
* Defaults to `true` if `chart.scrollablePlotArea` is activated,
|
|
2849
|
+
* otherwise `false`.
|
|
2850
|
+
*
|
|
3029
2851
|
* @sample highcharts/tooltip/outside
|
|
3030
2852
|
* Small charts with tooltips outside
|
|
3031
2853
|
*
|
|
3032
|
-
* @type {boolean}
|
|
3033
|
-
* @default
|
|
2854
|
+
* @type {boolean|undefined}
|
|
2855
|
+
* @default undefined
|
|
3034
2856
|
* @since 6.1.1
|
|
3035
2857
|
* @apioption tooltip.outside
|
|
3036
2858
|
*/
|
|
3037
|
-
|
|
3038
2859
|
/**
|
|
3039
2860
|
* A callback function for formatting the HTML output for a single point
|
|
3040
2861
|
* in the tooltip. Like the `pointFormat` string, but with more
|
|
@@ -3045,7 +2866,6 @@ H.defaultOptions = {
|
|
|
3045
2866
|
* @context Highcharts.Point
|
|
3046
2867
|
* @apioption tooltip.pointFormatter
|
|
3047
2868
|
*/
|
|
3048
|
-
|
|
3049
2869
|
/**
|
|
3050
2870
|
* A callback function to place the tooltip in a default position. The
|
|
3051
2871
|
* callback receives three parameters: `labelWidth`, `labelHeight` and
|
|
@@ -3076,7 +2896,6 @@ H.defaultOptions = {
|
|
|
3076
2896
|
* @since 2.2.4
|
|
3077
2897
|
* @apioption tooltip.positioner
|
|
3078
2898
|
*/
|
|
3079
|
-
|
|
3080
2899
|
/**
|
|
3081
2900
|
* The name of a symbol to use for the border around the tooltip. Can
|
|
3082
2901
|
* be one of: `"callout"`, `"circle"`, or `"square"`. When
|
|
@@ -3094,7 +2913,6 @@ H.defaultOptions = {
|
|
|
3094
2913
|
* @since 4.0
|
|
3095
2914
|
* @apioption tooltip.shape
|
|
3096
2915
|
*/
|
|
3097
|
-
|
|
3098
2916
|
/**
|
|
3099
2917
|
* The name of a symbol to use for the border around the tooltip
|
|
3100
2918
|
* header. Applies only when [tooltip.split](#tooltip.split) is
|
|
@@ -3105,15 +2923,16 @@ H.defaultOptions = {
|
|
|
3105
2923
|
* [series.marker.symbol](plotOptions.line.marker.symbol).
|
|
3106
2924
|
*
|
|
3107
2925
|
* @see [tooltip.shape](#tooltip.shape)
|
|
3108
|
-
*
|
|
3109
|
-
* @default callout
|
|
2926
|
+
*
|
|
3110
2927
|
* @sample {highstock} stock/tooltip/split-positioner/
|
|
3111
2928
|
* Different shapes for header and split boxes
|
|
2929
|
+
*
|
|
2930
|
+
* @type {Highcharts.TooltipShapeValue}
|
|
2931
|
+
* @default callout
|
|
3112
2932
|
* @validvalue ["callout", "square"]
|
|
3113
|
-
* @since
|
|
3114
|
-
* @apioption
|
|
2933
|
+
* @since 7.0
|
|
2934
|
+
* @apioption tooltip.headerShape
|
|
3115
2935
|
*/
|
|
3116
|
-
|
|
3117
2936
|
/**
|
|
3118
2937
|
* When the tooltip is shared, the entire plot area will capture mouse
|
|
3119
2938
|
* movement or touch events. Tooltip texts for series types with ordered
|
|
@@ -3140,7 +2959,6 @@ H.defaultOptions = {
|
|
|
3140
2959
|
* @product highcharts highstock
|
|
3141
2960
|
* @apioption tooltip.shared
|
|
3142
2961
|
*/
|
|
3143
|
-
|
|
3144
2962
|
/**
|
|
3145
2963
|
* Split the tooltip into one label per series, with the header close
|
|
3146
2964
|
* to the axis. This is recommended over [shared](#tooltip.shared)
|
|
@@ -3164,7 +2982,6 @@ H.defaultOptions = {
|
|
|
3164
2982
|
* @product highcharts highstock
|
|
3165
2983
|
* @apioption tooltip.split
|
|
3166
2984
|
*/
|
|
3167
|
-
|
|
3168
2985
|
/**
|
|
3169
2986
|
* Use HTML to render the contents of the tooltip instead of SVG. Using
|
|
3170
2987
|
* HTML allows advanced formatting like tables and images in the
|
|
@@ -3183,7 +3000,6 @@ H.defaultOptions = {
|
|
|
3183
3000
|
* @since 2.2
|
|
3184
3001
|
* @apioption tooltip.useHTML
|
|
3185
3002
|
*/
|
|
3186
|
-
|
|
3187
3003
|
/**
|
|
3188
3004
|
* How many decimals to show in each series' y value. This is
|
|
3189
3005
|
* overridable in each series' tooltip options object. The default is to
|
|
@@ -3198,7 +3014,6 @@ H.defaultOptions = {
|
|
|
3198
3014
|
* @since 2.2
|
|
3199
3015
|
* @apioption tooltip.valueDecimals
|
|
3200
3016
|
*/
|
|
3201
|
-
|
|
3202
3017
|
/**
|
|
3203
3018
|
* A string to prepend to each series' y value. Overridable in each
|
|
3204
3019
|
* series' tooltip options object.
|
|
@@ -3212,7 +3027,6 @@ H.defaultOptions = {
|
|
|
3212
3027
|
* @since 2.2
|
|
3213
3028
|
* @apioption tooltip.valuePrefix
|
|
3214
3029
|
*/
|
|
3215
|
-
|
|
3216
3030
|
/**
|
|
3217
3031
|
* A string to append to each series' y value. Overridable in each
|
|
3218
3032
|
* series' tooltip options object.
|
|
@@ -3226,7 +3040,6 @@ H.defaultOptions = {
|
|
|
3226
3040
|
* @since 2.2
|
|
3227
3041
|
* @apioption tooltip.valueSuffix
|
|
3228
3042
|
*/
|
|
3229
|
-
|
|
3230
3043
|
/**
|
|
3231
3044
|
* The format for the date in the tooltip header if the X axis is a
|
|
3232
3045
|
* datetime axis. The default is a best guess based on the smallest
|
|
@@ -3239,7 +3052,6 @@ H.defaultOptions = {
|
|
|
3239
3052
|
* @product highcharts highstock gantt
|
|
3240
3053
|
* @apioption tooltip.xDateFormat
|
|
3241
3054
|
*/
|
|
3242
|
-
|
|
3243
3055
|
/**
|
|
3244
3056
|
* How many decimals to show for the `point.change` value when the
|
|
3245
3057
|
* `series.compare` option is set. This is overridable in each series'
|
|
@@ -3250,7 +3062,6 @@ H.defaultOptions = {
|
|
|
3250
3062
|
* @product highstock
|
|
3251
3063
|
* @apioption tooltip.changeDecimals
|
|
3252
3064
|
*/
|
|
3253
|
-
|
|
3254
3065
|
/**
|
|
3255
3066
|
* Enable or disable the tooltip.
|
|
3256
3067
|
*
|
|
@@ -3260,7 +3071,6 @@ H.defaultOptions = {
|
|
|
3260
3071
|
* Disable tooltip and show values on chart instead
|
|
3261
3072
|
*/
|
|
3262
3073
|
enabled: true,
|
|
3263
|
-
|
|
3264
3074
|
/**
|
|
3265
3075
|
* Enable or disable animation of the tooltip.
|
|
3266
3076
|
*
|
|
@@ -3269,7 +3079,6 @@ H.defaultOptions = {
|
|
|
3269
3079
|
* @since 2.3.0
|
|
3270
3080
|
*/
|
|
3271
3081
|
animation: svg,
|
|
3272
|
-
|
|
3273
3082
|
/**
|
|
3274
3083
|
* The radius of the rounded border corners.
|
|
3275
3084
|
*
|
|
@@ -3281,7 +3090,6 @@ H.defaultOptions = {
|
|
|
3281
3090
|
* Background and border demo
|
|
3282
3091
|
*/
|
|
3283
3092
|
borderRadius: 3,
|
|
3284
|
-
|
|
3285
3093
|
/**
|
|
3286
3094
|
* For series on a datetime axes, the date format in the tooltip's
|
|
3287
3095
|
* header will by default be guessed based on the closest data points.
|
|
@@ -3304,7 +3112,6 @@ H.defaultOptions = {
|
|
|
3304
3112
|
month: '%B %Y',
|
|
3305
3113
|
year: '%Y'
|
|
3306
3114
|
},
|
|
3307
|
-
|
|
3308
3115
|
/**
|
|
3309
3116
|
* A string to append to the tooltip format.
|
|
3310
3117
|
*
|
|
@@ -3316,14 +3123,12 @@ H.defaultOptions = {
|
|
|
3316
3123
|
* @since 2.2
|
|
3317
3124
|
*/
|
|
3318
3125
|
footerFormat: '',
|
|
3319
|
-
|
|
3320
3126
|
/**
|
|
3321
3127
|
* Padding inside the tooltip, in pixels.
|
|
3322
3128
|
*
|
|
3323
3129
|
* @since 5.0.0
|
|
3324
3130
|
*/
|
|
3325
3131
|
padding: 8,
|
|
3326
|
-
|
|
3327
3132
|
/**
|
|
3328
3133
|
* Proximity snap for graphs or single points. It defaults to 10 for
|
|
3329
3134
|
* mouse-powered devices and 25 for touch devices.
|
|
@@ -3365,17 +3170,16 @@ H.defaultOptions = {
|
|
|
3365
3170
|
* @apioption tooltip.headerFormat
|
|
3366
3171
|
*/
|
|
3367
3172
|
headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
|
|
3368
|
-
|
|
3369
3173
|
/**
|
|
3370
3174
|
* The HTML of the null point's line in the tooltip. Works analogously
|
|
3371
3175
|
* to [pointFormat](#tooltip.pointFormat).
|
|
3372
3176
|
*
|
|
3373
|
-
* @type {string}
|
|
3374
3177
|
* @sample {highcharts} highcharts/plotoptions/series-nullformat
|
|
3375
3178
|
* Format data label and tooltip for null point.
|
|
3179
|
+
*
|
|
3180
|
+
* @type {string}
|
|
3376
3181
|
* @apioption tooltip.nullFormat
|
|
3377
3182
|
*/
|
|
3378
|
-
|
|
3379
3183
|
/**
|
|
3380
3184
|
* The HTML of the point's line in the tooltip. Variables are enclosed
|
|
3381
3185
|
* by curly brackets. Available variables are point.x, point.y, series.
|
|
@@ -3398,7 +3202,6 @@ H.defaultOptions = {
|
|
|
3398
3202
|
* @apioption tooltip.pointFormat
|
|
3399
3203
|
*/
|
|
3400
3204
|
pointFormat: '<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>',
|
|
3401
|
-
|
|
3402
3205
|
/**
|
|
3403
3206
|
* The background color or gradient for the tooltip.
|
|
3404
3207
|
*
|
|
@@ -3420,11 +3223,10 @@ H.defaultOptions = {
|
|
|
3420
3223
|
* @sample {highmaps} highcharts/css/tooltip-border-background/
|
|
3421
3224
|
* Tooltip in styled mode
|
|
3422
3225
|
*
|
|
3423
|
-
* @type {Highcharts.ColorString}
|
|
3226
|
+
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
3424
3227
|
*/
|
|
3425
3228
|
backgroundColor: color('#f7f7f7')
|
|
3426
3229
|
.setOpacity(0.85).get(),
|
|
3427
|
-
|
|
3428
3230
|
/**
|
|
3429
3231
|
* The pixel width of the tooltip border.
|
|
3430
3232
|
*
|
|
@@ -3447,7 +3249,6 @@ H.defaultOptions = {
|
|
|
3447
3249
|
* Tooltip in styled mode
|
|
3448
3250
|
*/
|
|
3449
3251
|
borderWidth: 1,
|
|
3450
|
-
|
|
3451
3252
|
/**
|
|
3452
3253
|
* Whether to apply a drop shadow to the tooltip.
|
|
3453
3254
|
*
|
|
@@ -3459,7 +3260,6 @@ H.defaultOptions = {
|
|
|
3459
3260
|
* Fixed tooltip position, border and shadow disabled
|
|
3460
3261
|
*/
|
|
3461
3262
|
shadow: true,
|
|
3462
|
-
|
|
3463
3263
|
/**
|
|
3464
3264
|
* CSS styles for the tooltip. The tooltip can also be styled through
|
|
3465
3265
|
* the CSS class `.highcharts-tooltip`.
|
|
@@ -3497,14 +3297,11 @@ H.defaultOptions = {
|
|
|
3497
3297
|
whiteSpace: 'nowrap'
|
|
3498
3298
|
}
|
|
3499
3299
|
},
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
3300
|
/**
|
|
3503
3301
|
* Highchart by default puts a credits label in the lower right corner
|
|
3504
3302
|
* of the chart. This can be changed using these options.
|
|
3505
3303
|
*/
|
|
3506
3304
|
credits: {
|
|
3507
|
-
|
|
3508
3305
|
/**
|
|
3509
3306
|
* Credits for map source to be concatenated with conventional credit
|
|
3510
3307
|
* text. By default this is a format string that collects copyright
|
|
@@ -3519,7 +3316,6 @@ H.defaultOptions = {
|
|
|
3519
3316
|
* @product highmaps
|
|
3520
3317
|
* @apioption credits.mapText
|
|
3521
3318
|
*/
|
|
3522
|
-
|
|
3523
3319
|
/**
|
|
3524
3320
|
* Detailed credits for map source to be displayed on hover of credits
|
|
3525
3321
|
* text. By default this is a format string that collects copyright
|
|
@@ -3534,7 +3330,6 @@ H.defaultOptions = {
|
|
|
3534
3330
|
* @product highmaps
|
|
3535
3331
|
* @apioption credits.mapTextFull
|
|
3536
3332
|
*/
|
|
3537
|
-
|
|
3538
3333
|
/**
|
|
3539
3334
|
* Whether to show the credits text.
|
|
3540
3335
|
*
|
|
@@ -3546,7 +3341,6 @@ H.defaultOptions = {
|
|
|
3546
3341
|
* Credits disabled
|
|
3547
3342
|
*/
|
|
3548
3343
|
enabled: true,
|
|
3549
|
-
|
|
3550
3344
|
/**
|
|
3551
3345
|
* The URL for the credits label.
|
|
3552
3346
|
*
|
|
@@ -3556,7 +3350,6 @@ H.defaultOptions = {
|
|
|
3556
3350
|
* Custom URL and text
|
|
3557
3351
|
*/
|
|
3558
3352
|
href: 'https://www.highcharts.com?credits',
|
|
3559
|
-
|
|
3560
3353
|
/**
|
|
3561
3354
|
* Position configuration for the credits label.
|
|
3562
3355
|
*
|
|
@@ -3569,37 +3362,20 @@ H.defaultOptions = {
|
|
|
3569
3362
|
* @sample {highmaps} maps/credits/customized/
|
|
3570
3363
|
* Left aligned
|
|
3571
3364
|
*
|
|
3572
|
-
* @type
|
|
3573
|
-
* @
|
|
3365
|
+
* @type {Highcharts.AlignObject}
|
|
3366
|
+
* @default {"align": "right", "verticalAlign": "bottom", "x": -10, "y": -5}
|
|
3367
|
+
* @since 2.1
|
|
3574
3368
|
*/
|
|
3575
3369
|
position: {
|
|
3576
|
-
|
|
3577
|
-
/**
|
|
3578
|
-
* Horizontal alignment of the credits.
|
|
3579
|
-
*
|
|
3580
|
-
* @type {Highcharts.AlignValue}
|
|
3581
|
-
*/
|
|
3370
|
+
/** @ignore-option */
|
|
3582
3371
|
align: 'right',
|
|
3583
|
-
|
|
3584
|
-
/**
|
|
3585
|
-
* Horizontal pixel offset of the credits.
|
|
3586
|
-
*/
|
|
3372
|
+
/** @ignore-option */
|
|
3587
3373
|
x: -10,
|
|
3588
|
-
|
|
3589
|
-
/**
|
|
3590
|
-
* Vertical alignment of the credits.
|
|
3591
|
-
*
|
|
3592
|
-
* @type {Highcharts.VerticalAlignValue}
|
|
3593
|
-
*/
|
|
3374
|
+
/** @ignore-option */
|
|
3594
3375
|
verticalAlign: 'bottom',
|
|
3595
|
-
|
|
3596
|
-
/**
|
|
3597
|
-
* Vertical pixel offset of the credits.
|
|
3598
|
-
*/
|
|
3376
|
+
/** @ignore-option */
|
|
3599
3377
|
y: -5
|
|
3600
|
-
|
|
3601
3378
|
},
|
|
3602
|
-
|
|
3603
3379
|
/**
|
|
3604
3380
|
* CSS styles for the credits label.
|
|
3605
3381
|
*
|
|
@@ -3623,7 +3399,6 @@ H.defaultOptions = {
|
|
|
3623
3399
|
*/
|
|
3624
3400
|
fontSize: '9px'
|
|
3625
3401
|
},
|
|
3626
|
-
|
|
3627
3402
|
/**
|
|
3628
3403
|
* The text for the credits label.
|
|
3629
3404
|
*
|
|
@@ -3638,10 +3413,8 @@ H.defaultOptions = {
|
|
|
3638
3413
|
* Custom URL and text
|
|
3639
3414
|
*/
|
|
3640
3415
|
text: 'Highcharts.com'
|
|
3641
|
-
|
|
3642
3416
|
}
|
|
3643
3417
|
};
|
|
3644
|
-
|
|
3645
3418
|
/**
|
|
3646
3419
|
* Merge the default options with custom options and return the new options
|
|
3647
3420
|
* structure. Commonly used for defining reusable templates.
|
|
@@ -3658,19 +3431,12 @@ H.defaultOptions = {
|
|
|
3658
3431
|
* Updated options.
|
|
3659
3432
|
*/
|
|
3660
3433
|
H.setOptions = function (options) {
|
|
3661
|
-
|
|
3662
3434
|
// Copy in the default options
|
|
3663
3435
|
H.defaultOptions = merge(true, H.defaultOptions, options);
|
|
3664
|
-
|
|
3665
3436
|
// Update the time object
|
|
3666
|
-
H.time.update(
|
|
3667
|
-
merge(H.defaultOptions.global, H.defaultOptions.time),
|
|
3668
|
-
false
|
|
3669
|
-
);
|
|
3670
|
-
|
|
3437
|
+
H.time.update(merge(H.defaultOptions.global, H.defaultOptions.time), false);
|
|
3671
3438
|
return H.defaultOptions;
|
|
3672
3439
|
};
|
|
3673
|
-
|
|
3674
3440
|
/**
|
|
3675
3441
|
* Get the updated default options. Until 3.0.7, merely exposing defaultOptions
|
|
3676
3442
|
* for outside modules wasn't enough because the setOptions method created a new
|
|
@@ -3683,12 +3449,8 @@ H.setOptions = function (options) {
|
|
|
3683
3449
|
H.getOptions = function () {
|
|
3684
3450
|
return H.defaultOptions;
|
|
3685
3451
|
};
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
3452
|
// Series defaults
|
|
3689
3453
|
H.defaultPlotOptions = H.defaultOptions.plotOptions;
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
3454
|
/**
|
|
3693
3455
|
* Global `Time` object with default options. Since v6.0.5, time settings can be
|
|
3694
3456
|
* applied individually for each chart. If no individual settings apply, this
|
|
@@ -3698,7 +3460,6 @@ H.defaultPlotOptions = H.defaultOptions.plotOptions;
|
|
|
3698
3460
|
* @type {Highcharts.Time}
|
|
3699
3461
|
*/
|
|
3700
3462
|
H.time = new H.Time(merge(H.defaultOptions.global, H.defaultOptions.time));
|
|
3701
|
-
|
|
3702
3463
|
/**
|
|
3703
3464
|
* Formats a JavaScript date timestamp (milliseconds since Jan 1st 1970) into a
|
|
3704
3465
|
* human readable date string. The format is a subset of the formats for PHP's
|
|
@@ -3728,6 +3489,6 @@ H.time = new H.Time(merge(H.defaultOptions.global, H.defaultOptions.time));
|
|
|
3728
3489
|
H.dateFormat = function (format, timestamp, capitalize) {
|
|
3729
3490
|
return H.time.dateFormat(format, timestamp, capitalize);
|
|
3730
3491
|
};
|
|
3492
|
+
/* eslint-disable spaced-comment */
|
|
3731
3493
|
|
|
3732
|
-
|
|
3733
|
-
|
|
3494
|
+
'';
|