pyramid3d.src.js 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /**
  2. * @license Highcharts JS v9.1.1 (2021-06-04)
  3. *
  4. * Highcharts 3D funnel module
  5. *
  6. * (c) 2010-2021 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/Pyramid3D/Pyramid3DSeries.js', [_modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (SeriesRegistry, U) {
  32. /* *
  33. *
  34. * Highcharts pyramid3d series module
  35. *
  36. * (c) 2010-2021 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. var __extends = (this && this.__extends) || (function () {
  45. var extendStatics = function (d,
  46. b) {
  47. extendStatics = Object.setPrototypeOf ||
  48. ({ __proto__: [] } instanceof Array && function (d,
  49. b) { d.__proto__ = b; }) ||
  50. function (d,
  51. b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  52. return extendStatics(d, b);
  53. };
  54. return function (d, b) {
  55. extendStatics(d, b);
  56. function __() { this.constructor = d; }
  57. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  58. };
  59. })();
  60. var Funnel3DSeries = SeriesRegistry.seriesTypes.funnel3d;
  61. var merge = U.merge;
  62. /* *
  63. *
  64. * Class
  65. *
  66. * */
  67. /**
  68. * The pyramid3d series type.
  69. *
  70. * @constructor seriesTypes.pyramid3d
  71. * @augments seriesTypes.funnel3d
  72. * @requires highcharts-3d
  73. * @requires modules/cylinder
  74. * @requires modules/funnel3d
  75. * @requires modules/pyramid3d
  76. */
  77. var Pyramid3DSeries = /** @class */ (function (_super) {
  78. __extends(Pyramid3DSeries, _super);
  79. function Pyramid3DSeries() {
  80. /* *
  81. *
  82. * Static Properties
  83. *
  84. * */
  85. var _this = _super !== null && _super.apply(this,
  86. arguments) || this;
  87. /* *
  88. *
  89. * Properties
  90. *
  91. * */
  92. _this.data = void 0;
  93. _this.options = void 0;
  94. _this.points = void 0;
  95. return _this;
  96. }
  97. /**
  98. * A pyramid3d is a 3d version of pyramid series type. Pyramid charts are
  99. * a type of chart often used to visualize stages in a sales project,
  100. * where the top are the initial stages with the most clients.
  101. *
  102. * @sample highcharts/demo/pyramid3d/
  103. * Pyramid3d
  104. *
  105. * @extends plotOptions.funnel3d
  106. * @excluding neckHeight, neckWidth, dataSorting
  107. * @product highcharts
  108. * @since 7.1.0
  109. * @requires highcharts-3d
  110. * @requires modules/cylinder
  111. * @requires modules/funnel3d
  112. * @requires modules/pyramid3d
  113. * @optionparent plotOptions.pyramid3d
  114. */
  115. Pyramid3DSeries.defaultOptions = merge(Funnel3DSeries.defaultOptions, {
  116. /**
  117. * A reversed pyramid3d is funnel3d, but the latter supports neck
  118. * related options: neckHeight and neckWidth
  119. *
  120. * @product highcharts
  121. */
  122. reversed: true,
  123. neckHeight: 0,
  124. neckWidth: 0,
  125. dataLabels: {
  126. verticalAlign: 'top'
  127. }
  128. });
  129. return Pyramid3DSeries;
  130. }(Funnel3DSeries));
  131. SeriesRegistry.registerSeriesType('pyramid3d', Pyramid3DSeries);
  132. /* *
  133. *
  134. * Default Export
  135. *
  136. * */
  137. /* *
  138. *
  139. * API Options
  140. *
  141. * */
  142. /**
  143. * A `pyramid3d` series. If the [type](#series.pyramid3d.type) option is
  144. * not specified, it is inherited from [chart.type](#chart.type).
  145. *
  146. * @since 7.1.0
  147. * @extends series.pyramid,plotOptions.pyramid3d
  148. * @excluding allAreas,boostThreshold,colorAxis,compare,compareBase,dataSorting
  149. * @product highcharts
  150. * @sample {highcharts} highcharts/demo/pyramid3d/ Pyramid3d
  151. * @requires modules/pyramid3d
  152. * @apioption series.pyramid3d
  153. */
  154. /**
  155. * An array of data points for the series. For the `pyramid3d` series
  156. * type, points can be given in the following ways:
  157. *
  158. * 1. An array of numerical values. In this case, the numerical values
  159. * will be interpreted as `y` options. The `x` values will be automatically
  160. * calculated, either starting at 0 and incremented by 1, or from `pointStart`
  161. * and `pointInterval` given in the series options. If the axis has
  162. * categories, these will be used. Example:
  163. *
  164. * ```js
  165. * data: [0, 5, 3, 5]
  166. * ```
  167. *
  168. * 2. An array of objects with named values. The following snippet shows only a
  169. * few settings, see the complete options set below. If the total number of data
  170. * points exceeds the series'
  171. * [turboThreshold](#series.pyramid3d.turboThreshold),
  172. * this option is not available.
  173. *
  174. * ```js
  175. * data: [{
  176. * y: 2,
  177. * name: "Point2",
  178. * color: "#00FF00"
  179. * }, {
  180. * y: 4,
  181. * name: "Point1",
  182. * color: "#FF00FF"
  183. * }]
  184. * ```
  185. *
  186. * @sample {highcharts} highcharts/chart/reflow-true/
  187. * Numerical values
  188. * @sample {highcharts} highcharts/series/data-array-of-arrays/
  189. * Arrays of numeric x and y
  190. * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
  191. * Arrays of datetime x and y
  192. * @sample {highcharts} highcharts/series/data-array-of-name-value/
  193. * Arrays of point.name and y
  194. * @sample {highcharts} highcharts/series/data-array-of-objects/
  195. * Config objects
  196. *
  197. * @type {Array<number|Array<number>|*>}
  198. * @extends series.funnel3d.data
  199. * @product highcharts
  200. * @apioption series.pyramid3d.data
  201. */
  202. ''; // adds doclets above to the transpiled file
  203. return Pyramid3DSeries;
  204. });
  205. _registerModule(_modules, 'masters/modules/pyramid3d.src.js', [], function () {
  206. });
  207. }));