Pyramid3DSeries.js 3.6 KB

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