Pyramid3DSeries.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /* *
  2. *
  3. * Highcharts pyramid3d series module
  4. *
  5. * (c) 2010-2020 Highsoft AS
  6. * Author: Kacper Madej
  7. *
  8. * License: www.highcharts.com/license
  9. *
  10. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  11. *
  12. * */
  13. import BaseSeries from '../Core/Series/Series.js';
  14. import '../Core/Renderer/SVG/SVGRenderer.js';
  15. import './Funnel3DSeries.js';
  16. /**
  17. * The pyramid3d series type.
  18. *
  19. * @constructor seriesTypes.pyramid3d
  20. * @augments seriesTypes.funnel3d
  21. * @requires highcharts-3d
  22. * @requires modules/cylinder
  23. * @requires modules/funnel3d
  24. * @requires modules/pyramid3d
  25. */
  26. BaseSeries.seriesType('pyramid3d', 'funnel3d',
  27. /**
  28. * A pyramid3d is a 3d version of pyramid series type. Pyramid charts are
  29. * a type of chart often used to visualize stages in a sales project,
  30. * where the top are the initial stages with the most clients.
  31. *
  32. * @sample highcharts/demo/pyramid3d/
  33. * Pyramid3d
  34. *
  35. * @extends plotOptions.funnel3d
  36. * @excluding neckHeight, neckWidth, dataSorting
  37. * @product highcharts
  38. * @since 7.1.0
  39. * @requires highcharts-3d
  40. * @requires modules/cylinder
  41. * @requires modules/funnel3d
  42. * @requires modules/pyramid3d
  43. * @optionparent plotOptions.pyramid3d
  44. */
  45. {
  46. /**
  47. * A reversed pyramid3d is funnel3d, but the latter supports neck
  48. * related options: neckHeight and neckWidth
  49. *
  50. * @product highcharts
  51. */
  52. reversed: true,
  53. neckHeight: 0,
  54. neckWidth: 0,
  55. dataLabels: {
  56. verticalAlign: 'top'
  57. }
  58. });
  59. /**
  60. * A `pyramid3d` series. If the [type](#series.pyramid3d.type) option is
  61. * not specified, it is inherited from [chart.type](#chart.type).
  62. *
  63. * @since 7.1.0
  64. * @extends series.pyramid,plotOptions.pyramid3d
  65. * @excluding allAreas,boostThreshold,colorAxis,compare,compareBase,dataSorting
  66. * @product highcharts
  67. * @sample {highcharts} highcharts/demo/pyramid3d/ Pyramid3d
  68. * @requires modules/pyramid3d
  69. * @apioption series.pyramid3d
  70. */
  71. /**
  72. * An array of data points for the series. For the `pyramid3d` series
  73. * type, points can be given in the following ways:
  74. *
  75. * 1. An array of numerical values. In this case, the numerical values
  76. * will be interpreted as `y` options. The `x` values will be automatically
  77. * calculated, either starting at 0 and incremented by 1, or from `pointStart`
  78. * and `pointInterval` given in the series options. If the axis has
  79. * categories, these will be used. Example:
  80. *
  81. * ```js
  82. * data: [0, 5, 3, 5]
  83. * ```
  84. *
  85. * 2. An array of objects with named values. The following snippet shows only a
  86. * few settings, see the complete options set below. If the total number of data
  87. * points exceeds the series'
  88. * [turboThreshold](#series.pyramid3d.turboThreshold),
  89. * this option is not available.
  90. *
  91. * ```js
  92. * data: [{
  93. * y: 2,
  94. * name: "Point2",
  95. * color: "#00FF00"
  96. * }, {
  97. * y: 4,
  98. * name: "Point1",
  99. * color: "#FF00FF"
  100. * }]
  101. * ```
  102. *
  103. * @sample {highcharts} highcharts/chart/reflow-true/
  104. * Numerical values
  105. * @sample {highcharts} highcharts/series/data-array-of-arrays/
  106. * Arrays of numeric x and y
  107. * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
  108. * Arrays of datetime x and y
  109. * @sample {highcharts} highcharts/series/data-array-of-name-value/
  110. * Arrays of point.name and y
  111. * @sample {highcharts} highcharts/series/data-array-of-objects/
  112. * Config objects
  113. *
  114. * @type {Array<number|Array<number>|*>}
  115. * @extends series.funnel3d.data
  116. * @product highcharts
  117. * @apioption series.pyramid3d.data
  118. */
  119. ''; // adds doclets above to the transpiled file