pyramid3d.src.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /**
  2. * @license Highcharts JS v8.2.0 (2020-08-20)
  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/Utilities.js']], function (U) {
  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. var seriesType = U.seriesType;
  45. /**
  46. * The pyramid3d series type.
  47. *
  48. * @constructor seriesTypes.pyramid3d
  49. * @augments seriesTypes.funnel3d
  50. * @requires highcharts-3d
  51. * @requires modules/cylinder
  52. * @requires modules/funnel3d
  53. * @requires modules/pyramid3d
  54. */
  55. seriesType('pyramid3d', 'funnel3d',
  56. /**
  57. * A pyramid3d is a 3d version of pyramid series type. Pyramid charts are
  58. * a type of chart often used to visualize stages in a sales project,
  59. * where the top are the initial stages with the most clients.
  60. *
  61. * @sample highcharts/demo/pyramid3d/
  62. * Pyramid3d
  63. *
  64. * @extends plotOptions.funnel3d
  65. * @excluding neckHeight, neckWidth, dataSorting
  66. * @product highcharts
  67. * @since 7.1.0
  68. * @requires highcharts-3d
  69. * @requires modules/cylinder
  70. * @requires modules/funnel3d
  71. * @requires modules/pyramid3d
  72. * @optionparent plotOptions.pyramid3d
  73. */
  74. {
  75. /**
  76. * A reversed pyramid3d is funnel3d, but the latter supports neck
  77. * related options: neckHeight and neckWidth
  78. *
  79. * @product highcharts
  80. */
  81. reversed: true,
  82. neckHeight: 0,
  83. neckWidth: 0,
  84. dataLabels: {
  85. verticalAlign: 'top'
  86. }
  87. });
  88. /**
  89. * A `pyramid3d` series. If the [type](#series.pyramid3d.type) option is
  90. * not specified, it is inherited from [chart.type](#chart.type).
  91. *
  92. * @since 7.1.0
  93. * @extends series.pyramid,plotOptions.pyramid3d
  94. * @excluding allAreas,boostThreshold,colorAxis,compare,compareBase,dataSorting
  95. * @product highcharts
  96. * @sample {highcharts} highcharts/demo/pyramid3d/ Pyramid3d
  97. * @requires modules/pyramid3d
  98. * @apioption series.pyramid3d
  99. */
  100. /**
  101. * An array of data points for the series. For the `pyramid3d` series
  102. * type, points can be given in the following ways:
  103. *
  104. * 1. An array of numerical values. In this case, the numerical values
  105. * will be interpreted as `y` options. The `x` values will be automatically
  106. * calculated, either starting at 0 and incremented by 1, or from `pointStart`
  107. * and `pointInterval` given in the series options. If the axis has
  108. * categories, these will be used. Example:
  109. *
  110. * ```js
  111. * data: [0, 5, 3, 5]
  112. * ```
  113. *
  114. * 2. An array of objects with named values. The following snippet shows only a
  115. * few settings, see the complete options set below. If the total number of data
  116. * points exceeds the series'
  117. * [turboThreshold](#series.pyramid3d.turboThreshold),
  118. * this option is not available.
  119. *
  120. * ```js
  121. * data: [{
  122. * y: 2,
  123. * name: "Point2",
  124. * color: "#00FF00"
  125. * }, {
  126. * y: 4,
  127. * name: "Point1",
  128. * color: "#FF00FF"
  129. * }]
  130. * ```
  131. *
  132. * @sample {highcharts} highcharts/chart/reflow-true/
  133. * Numerical values
  134. * @sample {highcharts} highcharts/series/data-array-of-arrays/
  135. * Arrays of numeric x and y
  136. * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
  137. * Arrays of datetime x and y
  138. * @sample {highcharts} highcharts/series/data-array-of-name-value/
  139. * Arrays of point.name and y
  140. * @sample {highcharts} highcharts/series/data-array-of-objects/
  141. * Config objects
  142. *
  143. * @type {Array<number|Array<number>|*>}
  144. * @extends series.funnel3d.data
  145. * @product highcharts
  146. * @apioption series.pyramid3d.data
  147. */
  148. ''; // adds doclets above to the transpiled file
  149. });
  150. _registerModule(_modules, 'masters/modules/pyramid3d.src.js', [], function () {
  151. });
  152. }));