AreaSplineRangeSeries.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 '../Core/Options.js';
  12. /**
  13. * The area spline range is a cartesian series type with higher and
  14. * lower Y values along an X axis. The area inside the range is colored, and
  15. * the graph outlining the area is a smoothed spline.
  16. *
  17. * @sample {highstock|highstock} stock/demo/areasplinerange/
  18. * Area spline range
  19. *
  20. * @extends plotOptions.arearange
  21. * @since 2.3.0
  22. * @excluding step, boostThreshold, boostBlending
  23. * @product highcharts highstock
  24. * @requires highcharts-more
  25. * @apioption plotOptions.areasplinerange
  26. */
  27. BaseSeries.seriesType('areasplinerange', 'arearange',
  28. /**
  29. * @see [fillColor](#plotOptions.areasplinerange.fillColor)
  30. * @see [fillOpacity](#plotOptions.areasplinerange.fillOpacity)
  31. *
  32. * @apioption plotOptions.areasplinerange.color
  33. */
  34. /**
  35. * @see [color](#plotOptions.areasplinerange.color)
  36. * @see [fillOpacity](#plotOptions.areasplinerange.fillOpacity)
  37. *
  38. * @apioption plotOptions.areasplinerange.fillColor
  39. */
  40. /**
  41. * @see [color](#plotOptions.areasplinerange.color)
  42. * @see [fillColor](#plotOptions.areasplinerange.fillColor)
  43. *
  44. * @default {highcharts} 0.75
  45. * @default {highstock} 0.75
  46. * @apioption plotOptions.areasplinerange.fillOpacity
  47. */
  48. null, {
  49. getPointSpline: BaseSeries.seriesTypes.spline.prototype.getPointSpline
  50. });
  51. /**
  52. * A `areasplinerange` series. If the [type](#series.areasplinerange.type)
  53. * option is not specified, it is inherited from [chart.type](#chart.type).
  54. *
  55. * @extends series,plotOptions.areasplinerange
  56. * @excluding dataParser, dataURL, stack, step, boostThreshold, boostBlending
  57. * @product highcharts highstock
  58. * @requires highcharts-more
  59. * @apioption series.areasplinerange
  60. */
  61. /**
  62. * @see [fillColor](#series.areasplinerange.fillColor)
  63. * @see [fillOpacity](#series.areasplinerange.fillOpacity)
  64. *
  65. * @apioption series.areasplinerange.color
  66. */
  67. /**
  68. * An array of data points for the series. For the `areasplinerange`
  69. * series type, points can be given in the following ways:
  70. *
  71. * 1. An array of arrays with 3 or 2 values. In this case, the values correspond
  72. * to `x,low,high`. If the first value is a string, it is applied as the name
  73. * of the point, and the `x` value is inferred. The `x` value can also be
  74. * omitted, in which case the inner arrays should be of length 2\. Then the
  75. * `x` value is automatically calculated, either starting at 0 and
  76. * incremented by 1, or from `pointStart` and `pointInterval` given in the
  77. * series options.
  78. * ```js
  79. * data: [
  80. * [0, 0, 5],
  81. * [1, 9, 1],
  82. * [2, 5, 2]
  83. * ]
  84. * ```
  85. *
  86. * 2. An array of objects with named values. The following snippet shows only a
  87. * few settings, see the complete options set below. If the total number of
  88. * data points exceeds the series'
  89. * [turboThreshold](#series.areasplinerange.turboThreshold), this option is
  90. * not available.
  91. * ```js
  92. * data: [{
  93. * x: 1,
  94. * low: 5,
  95. * high: 0,
  96. * name: "Point2",
  97. * color: "#00FF00"
  98. * }, {
  99. * x: 1,
  100. * low: 4,
  101. * high: 1,
  102. * name: "Point1",
  103. * color: "#FF00FF"
  104. * }]
  105. * ```
  106. *
  107. * @sample {highcharts} highcharts/series/data-array-of-arrays/
  108. * Arrays of numeric x and y
  109. * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
  110. * Arrays of datetime x and y
  111. * @sample {highcharts} highcharts/series/data-array-of-name-value/
  112. * Arrays of point.name and y
  113. * @sample {highcharts} highcharts/series/data-array-of-objects/
  114. * Config objects
  115. *
  116. * @type {Array<Array<(number|string),number>|Array<(number|string),number,number>|*>}
  117. * @extends series.arearange.data
  118. * @product highcharts highstock
  119. * @apioption series.areasplinerange.data
  120. */
  121. /**
  122. * @see [color](#series.areasplinerange.color)
  123. * @see [fillOpacity](#series.areasplinerange.fillOpacity)
  124. *
  125. * @apioption series.areasplinerange.fillColor
  126. */
  127. /**
  128. * @see [color](#series.areasplinerange.color)
  129. * @see [fillColor](#series.areasplinerange.fillColor)
  130. *
  131. * @default {highcharts} 0.75
  132. * @default {highstock} 0.75
  133. * @apioption series.areasplinerange.fillOpacity
  134. */
  135. ''; // adds doclets above to transpiled file