pyramid3d.src.js 5.6 KB

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