AreaRangeSeries.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. /* *
  2. *
  3. * (c) 2010-2020 Torstein Honsi
  4. *
  5. * License: www.highcharts.com/license
  6. *
  7. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  8. *
  9. * */
  10. import BaseSeries from '../Core/Series/Series.js';
  11. import H from '../Core/Globals.js';
  12. var noop = H.noop;
  13. import Point from '../Core/Series/Point.js';
  14. import U from '../Core/Utilities.js';
  15. var defined = U.defined, extend = U.extend, isArray = U.isArray, isNumber = U.isNumber, pick = U.pick;
  16. import './AreaSeries.js';
  17. import './ColumnSeries.js';
  18. import '../Core/Options.js';
  19. import '../Series/LineSeries.js';
  20. var Series = H.Series, areaProto = BaseSeries.seriesTypes.area.prototype, columnProto = BaseSeries.seriesTypes.column.prototype, pointProto = Point.prototype, seriesProto = Series.prototype;
  21. /**
  22. * The area range series is a carteseian series with higher and lower values for
  23. * each point along an X axis, where the area between the values is shaded.
  24. *
  25. * @sample {highcharts} highcharts/demo/arearange/
  26. * Area range chart
  27. * @sample {highstock} stock/demo/arearange/
  28. * Area range chart
  29. *
  30. * @extends plotOptions.area
  31. * @product highcharts highstock
  32. * @excluding stack, stacking
  33. * @requires highcharts-more
  34. * @optionparent plotOptions.arearange
  35. */
  36. BaseSeries.seriesType('arearange', 'area', {
  37. /**
  38. * @see [fillColor](#plotOptions.arearange.fillColor)
  39. * @see [fillOpacity](#plotOptions.arearange.fillOpacity)
  40. *
  41. * @apioption plotOptions.arearange.color
  42. */
  43. /**
  44. * @default low
  45. * @apioption plotOptions.arearange.colorKey
  46. */
  47. /**
  48. * @see [color](#plotOptions.arearange.color)
  49. * @see [fillOpacity](#plotOptions.arearange.fillOpacity)
  50. *
  51. * @apioption plotOptions.arearange.fillColor
  52. */
  53. /**
  54. * @see [color](#plotOptions.arearange.color)
  55. * @see [fillColor](#plotOptions.arearange.fillColor)
  56. *
  57. * @default {highcharts} 0.75
  58. * @default {highstock} 0.75
  59. * @apioption plotOptions.arearange.fillOpacity
  60. */
  61. /**
  62. * Whether to apply a drop shadow to the graph line. Since 2.3 the shadow
  63. * can be an object configuration containing `color`, `offsetX`, `offsetY`,
  64. * `opacity` and `width`.
  65. *
  66. * @type {boolean|Highcharts.ShadowOptionsObject}
  67. * @product highcharts
  68. * @apioption plotOptions.arearange.shadow
  69. */
  70. /**
  71. * Pixel width of the arearange graph line.
  72. *
  73. * @since 2.3.0
  74. *
  75. * @private
  76. */
  77. lineWidth: 1,
  78. threshold: null,
  79. tooltip: {
  80. pointFormat: '<span style="color:{series.color}">\u25CF</span> ' +
  81. '{series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'
  82. },
  83. /**
  84. * Whether the whole area or just the line should respond to mouseover
  85. * tooltips and other mouse or touch events.
  86. *
  87. * @since 2.3.0
  88. *
  89. * @private
  90. */
  91. trackByArea: true,
  92. /**
  93. * Extended data labels for range series types. Range series data labels use
  94. * no `x` and `y` options. Instead, they have `xLow`, `xHigh`, `yLow` and
  95. * `yHigh` options to allow the higher and lower data label sets
  96. * individually.
  97. *
  98. * @declare Highcharts.SeriesAreaRangeDataLabelsOptionsObject
  99. * @exclude x, y
  100. * @since 2.3.0
  101. * @product highcharts highstock
  102. *
  103. * @private
  104. */
  105. dataLabels: {
  106. align: void 0,
  107. verticalAlign: void 0,
  108. /**
  109. * X offset of the lower data labels relative to the point value.
  110. *
  111. * @sample highcharts/plotoptions/arearange-datalabels/
  112. * Data labels on range series
  113. * @sample highcharts/plotoptions/arearange-datalabels/
  114. * Data labels on range series
  115. */
  116. xLow: 0,
  117. /**
  118. * X offset of the higher data labels relative to the point value.
  119. *
  120. * @sample highcharts/plotoptions/arearange-datalabels/
  121. * Data labels on range series
  122. */
  123. xHigh: 0,
  124. /**
  125. * Y offset of the lower data labels relative to the point value.
  126. *
  127. * @sample highcharts/plotoptions/arearange-datalabels/
  128. * Data labels on range series
  129. */
  130. yLow: 0,
  131. /**
  132. * Y offset of the higher data labels relative to the point value.
  133. *
  134. * @sample highcharts/plotoptions/arearange-datalabels/
  135. * Data labels on range series
  136. */
  137. yHigh: 0
  138. }
  139. // Prototype members
  140. }, {
  141. pointArrayMap: ['low', 'high'],
  142. pointValKey: 'low',
  143. deferTranslatePolar: true,
  144. /* eslint-disable valid-jsdoc */
  145. /**
  146. * @private
  147. */
  148. toYData: function (point) {
  149. return [point.low, point.high];
  150. },
  151. /**
  152. * Translate a point's plotHigh from the internal angle and radius measures
  153. * to true plotHigh coordinates. This is an addition of the toXY method
  154. * found in Polar.js, because it runs too early for arearanges to be
  155. * considered (#3419).
  156. * @private
  157. */
  158. highToXY: function (point) {
  159. // Find the polar plotX and plotY
  160. var chart = this.chart, xy = this.xAxis.postTranslate(point.rectPlotX, this.yAxis.len - point.plotHigh);
  161. point.plotHighX = xy.x - chart.plotLeft;
  162. point.plotHigh = xy.y - chart.plotTop;
  163. point.plotLowX = point.plotX;
  164. },
  165. /**
  166. * Translate data points from raw values x and y to plotX and plotY.
  167. * @private
  168. */
  169. translate: function () {
  170. var series = this, yAxis = series.yAxis, hasModifyValue = !!series.modifyValue;
  171. areaProto.translate.apply(series);
  172. // Set plotLow and plotHigh
  173. series.points.forEach(function (point) {
  174. var high = point.high, plotY = point.plotY;
  175. if (point.isNull) {
  176. point.plotY = null;
  177. }
  178. else {
  179. point.plotLow = plotY;
  180. point.plotHigh = yAxis.translate(hasModifyValue ?
  181. series.modifyValue(high, point) :
  182. high, 0, 1, 0, 1);
  183. if (hasModifyValue) {
  184. point.yBottom = point.plotHigh;
  185. }
  186. }
  187. });
  188. // Postprocess plotHigh
  189. if (this.chart.polar) {
  190. this.points.forEach(function (point) {
  191. series.highToXY(point);
  192. point.tooltipPos = [
  193. (point.plotHighX + point.plotLowX) / 2,
  194. (point.plotHigh + point.plotLow) / 2
  195. ];
  196. });
  197. }
  198. },
  199. /**
  200. * Extend the line series' getSegmentPath method by applying the segment
  201. * path to both lower and higher values of the range.
  202. * @private
  203. */
  204. getGraphPath: function (points) {
  205. var highPoints = [], highAreaPoints = [], i, getGraphPath = areaProto.getGraphPath, point, pointShim, linePath, lowerPath, options = this.options, polar = this.chart.polar, connectEnds = polar && options.connectEnds !== false, connectNulls = options.connectNulls, step = options.step, higherPath, higherAreaPath;
  206. points = points || this.points;
  207. // Create the top line and the top part of the area fill. The area fill
  208. // compensates for null points by drawing down to the lower graph,
  209. // moving across the null gap and starting again at the lower graph.
  210. i = points.length;
  211. while (i--) {
  212. point = points[i];
  213. // Support for polar
  214. var highAreaPoint = polar ? {
  215. plotX: point.rectPlotX,
  216. plotY: point.yBottom,
  217. doCurve: false // #5186, gaps in areasplinerange fill
  218. } : {
  219. plotX: point.plotX,
  220. plotY: point.plotY,
  221. doCurve: false // #5186, gaps in areasplinerange fill
  222. };
  223. if (!point.isNull &&
  224. !connectEnds &&
  225. !connectNulls &&
  226. (!points[i + 1] || points[i + 1].isNull)) {
  227. highAreaPoints.push(highAreaPoint);
  228. }
  229. pointShim = {
  230. polarPlotY: point.polarPlotY,
  231. rectPlotX: point.rectPlotX,
  232. yBottom: point.yBottom,
  233. // plotHighX is for polar charts
  234. plotX: pick(point.plotHighX, point.plotX),
  235. plotY: point.plotHigh,
  236. isNull: point.isNull
  237. };
  238. highAreaPoints.push(pointShim);
  239. highPoints.push(pointShim);
  240. if (!point.isNull &&
  241. !connectEnds &&
  242. !connectNulls &&
  243. (!points[i - 1] || points[i - 1].isNull)) {
  244. highAreaPoints.push(highAreaPoint);
  245. }
  246. }
  247. // Get the paths
  248. lowerPath = getGraphPath.call(this, points);
  249. if (step) {
  250. if (step === true) {
  251. step = 'left';
  252. }
  253. options.step = {
  254. left: 'right',
  255. center: 'center',
  256. right: 'left'
  257. }[step]; // swap for reading in getGraphPath
  258. }
  259. higherPath = getGraphPath.call(this, highPoints);
  260. higherAreaPath = getGraphPath.call(this, highAreaPoints);
  261. options.step = step;
  262. // Create a line on both top and bottom of the range
  263. linePath = []
  264. .concat(lowerPath, higherPath);
  265. // For the area path, we need to change the 'move' statement
  266. // into 'lineTo'
  267. if (!this.chart.polar && higherAreaPath[0] && higherAreaPath[0][0] === 'M') {
  268. // This probably doesn't work for spline
  269. higherAreaPath[0] = ['L', higherAreaPath[0][1], higherAreaPath[0][2]];
  270. }
  271. this.graphPath = linePath;
  272. this.areaPath = lowerPath.concat(higherAreaPath);
  273. // Prepare for sideways animation
  274. linePath.isArea = true;
  275. linePath.xMap = lowerPath.xMap;
  276. this.areaPath.xMap = lowerPath.xMap;
  277. return linePath;
  278. },
  279. /**
  280. * Extend the basic drawDataLabels method by running it for both lower and
  281. * higher values.
  282. * @private
  283. */
  284. drawDataLabels: function () {
  285. var data = this.points, length = data.length, i, originalDataLabels = [], dataLabelOptions = this.options.dataLabels, point, up, inverted = this.chart.inverted, upperDataLabelOptions, lowerDataLabelOptions;
  286. // Split into upper and lower options. If data labels is an array, the
  287. // first element is the upper label, the second is the lower.
  288. //
  289. // TODO: We want to change this and allow multiple labels for both upper
  290. // and lower values in the future - introducing some options for which
  291. // point value to use as Y for the dataLabel, so that this could be
  292. // handled in Series.drawDataLabels. This would also improve performance
  293. // since we now have to loop over all the points multiple times to work
  294. // around the data label logic.
  295. if (isArray(dataLabelOptions)) {
  296. upperDataLabelOptions = dataLabelOptions[0] || { enabled: false };
  297. lowerDataLabelOptions = dataLabelOptions[1] || { enabled: false };
  298. }
  299. else {
  300. // Make copies
  301. upperDataLabelOptions = extend({}, dataLabelOptions);
  302. upperDataLabelOptions.x = dataLabelOptions.xHigh;
  303. upperDataLabelOptions.y = dataLabelOptions.yHigh;
  304. lowerDataLabelOptions = extend({}, dataLabelOptions);
  305. lowerDataLabelOptions.x = dataLabelOptions.xLow;
  306. lowerDataLabelOptions.y = dataLabelOptions.yLow;
  307. }
  308. // Draw upper labels
  309. if (upperDataLabelOptions.enabled || this._hasPointLabels) {
  310. // Set preliminary values for plotY and dataLabel
  311. // and draw the upper labels
  312. i = length;
  313. while (i--) {
  314. point = data[i];
  315. if (point) {
  316. up = upperDataLabelOptions.inside ?
  317. point.plotHigh < point.plotLow :
  318. point.plotHigh > point.plotLow;
  319. point.y = point.high;
  320. point._plotY = point.plotY;
  321. point.plotY = point.plotHigh;
  322. // Store original data labels and set preliminary label
  323. // objects to be picked up in the uber method
  324. originalDataLabels[i] = point.dataLabel;
  325. point.dataLabel = point.dataLabelUpper;
  326. // Set the default offset
  327. point.below = up;
  328. if (inverted) {
  329. if (!upperDataLabelOptions.align) {
  330. upperDataLabelOptions.align = up ? 'right' : 'left';
  331. }
  332. }
  333. else {
  334. if (!upperDataLabelOptions.verticalAlign) {
  335. upperDataLabelOptions.verticalAlign = up ?
  336. 'top' :
  337. 'bottom';
  338. }
  339. }
  340. }
  341. }
  342. this.options.dataLabels = upperDataLabelOptions;
  343. if (seriesProto.drawDataLabels) {
  344. // #1209:
  345. seriesProto.drawDataLabels.apply(this, arguments);
  346. }
  347. // Reset state after the upper labels were created. Move
  348. // it to point.dataLabelUpper and reassign the originals.
  349. // We do this here to support not drawing a lower label.
  350. i = length;
  351. while (i--) {
  352. point = data[i];
  353. if (point) {
  354. point.dataLabelUpper = point.dataLabel;
  355. point.dataLabel = originalDataLabels[i];
  356. delete point.dataLabels;
  357. point.y = point.low;
  358. point.plotY = point._plotY;
  359. }
  360. }
  361. }
  362. // Draw lower labels
  363. if (lowerDataLabelOptions.enabled || this._hasPointLabels) {
  364. i = length;
  365. while (i--) {
  366. point = data[i];
  367. if (point) {
  368. up = lowerDataLabelOptions.inside ?
  369. point.plotHigh < point.plotLow :
  370. point.plotHigh > point.plotLow;
  371. // Set the default offset
  372. point.below = !up;
  373. if (inverted) {
  374. if (!lowerDataLabelOptions.align) {
  375. lowerDataLabelOptions.align = up ? 'left' : 'right';
  376. }
  377. }
  378. else {
  379. if (!lowerDataLabelOptions.verticalAlign) {
  380. lowerDataLabelOptions.verticalAlign = up ?
  381. 'bottom' :
  382. 'top';
  383. }
  384. }
  385. }
  386. }
  387. this.options.dataLabels = lowerDataLabelOptions;
  388. if (seriesProto.drawDataLabels) {
  389. seriesProto.drawDataLabels.apply(this, arguments);
  390. }
  391. }
  392. // Merge upper and lower into point.dataLabels for later destroying
  393. if (upperDataLabelOptions.enabled) {
  394. i = length;
  395. while (i--) {
  396. point = data[i];
  397. if (point) {
  398. point.dataLabels = [
  399. point.dataLabelUpper,
  400. point.dataLabel
  401. ].filter(function (label) {
  402. return !!label;
  403. });
  404. }
  405. }
  406. }
  407. // Reset options
  408. this.options.dataLabels = dataLabelOptions;
  409. },
  410. alignDataLabel: function () {
  411. columnProto.alignDataLabel.apply(this, arguments);
  412. },
  413. drawPoints: function () {
  414. var series = this, pointLength = series.points.length, point, i;
  415. // Draw bottom points
  416. seriesProto.drawPoints
  417. .apply(series, arguments);
  418. // Prepare drawing top points
  419. i = 0;
  420. while (i < pointLength) {
  421. point = series.points[i];
  422. // Save original props to be overridden by temporary props for top
  423. // points
  424. point.origProps = {
  425. plotY: point.plotY,
  426. plotX: point.plotX,
  427. isInside: point.isInside,
  428. negative: point.negative,
  429. zone: point.zone,
  430. y: point.y
  431. };
  432. point.lowerGraphic = point.graphic;
  433. point.graphic = point.upperGraphic;
  434. point.plotY = point.plotHigh;
  435. if (defined(point.plotHighX)) {
  436. point.plotX = point.plotHighX;
  437. }
  438. point.y = point.high;
  439. point.negative = point.high < (series.options.threshold || 0);
  440. point.zone = (series.zones.length && point.getZone());
  441. if (!series.chart.polar) {
  442. point.isInside = point.isTopInside = (typeof point.plotY !== 'undefined' &&
  443. point.plotY >= 0 &&
  444. point.plotY <= series.yAxis.len && // #3519
  445. point.plotX >= 0 &&
  446. point.plotX <= series.xAxis.len);
  447. }
  448. i++;
  449. }
  450. // Draw top points
  451. seriesProto.drawPoints.apply(series, arguments);
  452. // Reset top points preliminary modifications
  453. i = 0;
  454. while (i < pointLength) {
  455. point = series.points[i];
  456. point.upperGraphic = point.graphic;
  457. point.graphic = point.lowerGraphic;
  458. extend(point, point.origProps);
  459. delete point.origProps;
  460. i++;
  461. }
  462. },
  463. /* eslint-enable valid-jsdoc */
  464. setStackedPoints: noop
  465. }, {
  466. /**
  467. * Range series only. The high or maximum value for each data point.
  468. * @name Highcharts.Point#high
  469. * @type {number|undefined}
  470. */
  471. /**
  472. * Range series only. The low or minimum value for each data point.
  473. * @name Highcharts.Point#low
  474. * @type {number|undefined}
  475. */
  476. /* eslint-disable valid-jsdoc */
  477. /**
  478. * @private
  479. */
  480. setState: function () {
  481. var prevState = this.state, series = this.series, isPolar = series.chart.polar;
  482. if (!defined(this.plotHigh)) {
  483. // Boost doesn't calculate plotHigh
  484. this.plotHigh = series.yAxis.toPixels(this.high, true);
  485. }
  486. if (!defined(this.plotLow)) {
  487. // Boost doesn't calculate plotLow
  488. this.plotLow = this.plotY = series.yAxis.toPixels(this.low, true);
  489. }
  490. if (series.stateMarkerGraphic) {
  491. series.lowerStateMarkerGraphic = series.stateMarkerGraphic;
  492. series.stateMarkerGraphic = series.upperStateMarkerGraphic;
  493. }
  494. // Change state also for the top marker
  495. this.graphic = this.upperGraphic;
  496. this.plotY = this.plotHigh;
  497. if (isPolar) {
  498. this.plotX = this.plotHighX;
  499. }
  500. // Top state:
  501. pointProto.setState.apply(this, arguments);
  502. this.state = prevState;
  503. // Now restore defaults
  504. this.plotY = this.plotLow;
  505. this.graphic = this.lowerGraphic;
  506. if (isPolar) {
  507. this.plotX = this.plotLowX;
  508. }
  509. if (series.stateMarkerGraphic) {
  510. series.upperStateMarkerGraphic = series.stateMarkerGraphic;
  511. series.stateMarkerGraphic = series.lowerStateMarkerGraphic;
  512. // Lower marker is stored at stateMarkerGraphic
  513. // to avoid reference duplication (#7021)
  514. series.lowerStateMarkerGraphic = void 0;
  515. }
  516. pointProto.setState.apply(this, arguments);
  517. },
  518. haloPath: function () {
  519. var isPolar = this.series.chart.polar, path = [];
  520. // Bottom halo
  521. this.plotY = this.plotLow;
  522. if (isPolar) {
  523. this.plotX = this.plotLowX;
  524. }
  525. if (this.isInside) {
  526. path = pointProto.haloPath.apply(this, arguments);
  527. }
  528. // Top halo
  529. this.plotY = this.plotHigh;
  530. if (isPolar) {
  531. this.plotX = this.plotHighX;
  532. }
  533. if (this.isTopInside) {
  534. path = path.concat(pointProto.haloPath.apply(this, arguments));
  535. }
  536. return path;
  537. },
  538. destroyElements: function () {
  539. var graphics = ['lowerGraphic', 'upperGraphic'];
  540. graphics.forEach(function (graphicName) {
  541. if (this[graphicName]) {
  542. this[graphicName] =
  543. this[graphicName].destroy();
  544. }
  545. }, this);
  546. // Clear graphic for states, removed in the above each:
  547. this.graphic = null;
  548. return pointProto.destroyElements.apply(this, arguments);
  549. },
  550. isValid: function () {
  551. return isNumber(this.low) && isNumber(this.high);
  552. }
  553. /* eslint-enable valid-jsdoc */
  554. });
  555. /**
  556. * A `arearange` series. If the [type](#series.arearange.type) option is not
  557. * specified, it is inherited from [chart.type](#chart.type).
  558. *
  559. *
  560. * @extends series,plotOptions.arearange
  561. * @excluding dataParser, dataURL, stack, stacking
  562. * @product highcharts highstock
  563. * @requires highcharts-more
  564. * @apioption series.arearange
  565. */
  566. /**
  567. * @see [fillColor](#series.arearange.fillColor)
  568. * @see [fillOpacity](#series.arearange.fillOpacity)
  569. *
  570. * @apioption series.arearange.color
  571. */
  572. /**
  573. * An array of data points for the series. For the `arearange` series type,
  574. * points can be given in the following ways:
  575. *
  576. * 1. An array of arrays with 3 or 2 values. In this case, the values
  577. * correspond to `x,low,high`. If the first value is a string, it is
  578. * applied as the name of the point, and the `x` value is inferred.
  579. * The `x` value can also be omitted, in which case the inner arrays
  580. * should be of length 2\. Then the `x` value is automatically calculated,
  581. * either starting at 0 and incremented by 1, or from `pointStart`
  582. * and `pointInterval` given in the series options.
  583. * ```js
  584. * data: [
  585. * [0, 8, 3],
  586. * [1, 1, 1],
  587. * [2, 6, 8]
  588. * ]
  589. * ```
  590. *
  591. * 2. An array of objects with named values. The following snippet shows only a
  592. * few settings, see the complete options set below. If the total number of
  593. * data points exceeds the series'
  594. * [turboThreshold](#series.arearange.turboThreshold),
  595. * this option is not available.
  596. * ```js
  597. * data: [{
  598. * x: 1,
  599. * low: 9,
  600. * high: 0,
  601. * name: "Point2",
  602. * color: "#00FF00"
  603. * }, {
  604. * x: 1,
  605. * low: 3,
  606. * high: 4,
  607. * name: "Point1",
  608. * color: "#FF00FF"
  609. * }]
  610. * ```
  611. *
  612. * @sample {highcharts} highcharts/series/data-array-of-arrays/
  613. * Arrays of numeric x and y
  614. * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
  615. * Arrays of datetime x and y
  616. * @sample {highcharts} highcharts/series/data-array-of-name-value/
  617. * Arrays of point.name and y
  618. * @sample {highcharts} highcharts/series/data-array-of-objects/
  619. * Config objects
  620. *
  621. * @type {Array<Array<(number|string),number>|Array<(number|string),number,number>|*>}
  622. * @extends series.line.data
  623. * @excluding marker, y
  624. * @product highcharts highstock
  625. * @apioption series.arearange.data
  626. */
  627. /**
  628. * @extends series.arearange.dataLabels
  629. * @product highcharts highstock
  630. * @apioption series.arearange.data.dataLabels
  631. */
  632. /**
  633. * @see [color](#series.arearange.color)
  634. * @see [fillOpacity](#series.arearange.fillOpacity)
  635. *
  636. * @apioption series.arearange.fillColor
  637. */
  638. /**
  639. * @see [color](#series.arearange.color)
  640. * @see [fillColor](#series.arearange.fillColor)
  641. *
  642. * @default {highcharts} 0.75
  643. * @default {highstock} 0.75
  644. * @apioption series.arearange.fillOpacity
  645. */
  646. /**
  647. * The high or maximum value for each data point.
  648. *
  649. * @type {number}
  650. * @product highcharts highstock
  651. * @apioption series.arearange.data.high
  652. */
  653. /**
  654. * The low or minimum value for each data point.
  655. *
  656. * @type {number}
  657. * @product highcharts highstock
  658. * @apioption series.arearange.data.low
  659. */
  660. ''; // adds doclets above to tranpiled file