timeline.src.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. /**
  2. * @license Highcharts JS v8.0.0 (2019-12-10)
  3. *
  4. * Timeline series
  5. *
  6. * (c) 2010-2019 Highsoft AS
  7. * Author: Daniel Studencki
  8. *
  9. * License: www.highcharts.com/license
  10. */
  11. 'use strict';
  12. (function (factory) {
  13. if (typeof module === 'object' && module.exports) {
  14. factory['default'] = factory;
  15. module.exports = factory;
  16. } else if (typeof define === 'function' && define.amd) {
  17. define('highcharts/modules/timeline', ['highcharts'], function (Highcharts) {
  18. factory(Highcharts);
  19. factory.Highcharts = Highcharts;
  20. return factory;
  21. });
  22. } else {
  23. factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
  24. }
  25. }(function (Highcharts) {
  26. var _modules = Highcharts ? Highcharts._modules : {};
  27. function _registerModule(obj, path, args, fn) {
  28. if (!obj.hasOwnProperty(path)) {
  29. obj[path] = fn.apply(null, args);
  30. }
  31. }
  32. _registerModule(_modules, 'modules/timeline.src.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {
  33. /* *
  34. *
  35. * Timeline Series.
  36. *
  37. * (c) 2010-2019 Highsoft AS
  38. *
  39. * Author: Daniel Studencki
  40. *
  41. * License: www.highcharts.com/license
  42. *
  43. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  44. *
  45. * */
  46. /**
  47. * Callback JavaScript function to format the data label as a string. Note that
  48. * if a `format` is defined, the format takes precedence and the formatter is
  49. * ignored.
  50. *
  51. * @callback Highcharts.TimelineDataLabelsFormatterCallbackFunction
  52. *
  53. * @param {Highcharts.DataLabelsFormatterContextObject|Highcharts.TimelineDataLabelsFormatterContextObject} this
  54. * Data label context to format
  55. *
  56. * @return {number|string|null|undefined}
  57. * Formatted data label text
  58. */
  59. /**
  60. * @interface Highcharts.TimelineDataLabelsFormatterContextObject
  61. * @extends Highcharts.DataLabelsFormatterContextObject
  62. */ /**
  63. * @name Highcharts.TimelineDataLabelsFormatterContextObject#key
  64. * @type {string|undefined}
  65. */ /**
  66. * @name Highcharts.TimelineDataLabelsFormatterContextObject#point
  67. * @type {Highcharts.Point}
  68. */ /**
  69. * @name Highcharts.TimelineDataLabelsFormatterContextObject#series
  70. * @type {Highcharts.Series}
  71. */
  72. var arrayMax = U.arrayMax, arrayMin = U.arrayMin, defined = U.defined, isNumber = U.isNumber, objectEach = U.objectEach, pick = U.pick;
  73. var addEvent = H.addEvent, LegendSymbolMixin = H.LegendSymbolMixin, TrackerMixin = H.TrackerMixin, merge = H.merge, Point = H.Point, Series = H.Series, seriesType = H.seriesType, seriesTypes = H.seriesTypes;
  74. /**
  75. * The timeline series type.
  76. *
  77. * @private
  78. * @class
  79. * @name Highcharts.seriesTypes.timeline
  80. *
  81. * @augments Highcharts.Series
  82. */
  83. seriesType('timeline', 'line',
  84. /**
  85. * The timeline series presents given events along a drawn line.
  86. *
  87. * @sample highcharts/series-timeline/alternate-labels
  88. * Timeline series
  89. * @sample highcharts/series-timeline/inverted
  90. * Inverted timeline
  91. * @sample highcharts/series-timeline/datetime-axis
  92. * With true datetime axis
  93. *
  94. * @extends plotOptions.line
  95. * @since 7.0.0
  96. * @product highcharts
  97. * @excluding animationLimit, boostThreshold, connectEnds, connectNulls,
  98. * cropThreshold, dashStyle, findNearestPointBy,
  99. * getExtremesFromAll, lineWidth, negativeColor,
  100. * pointInterval, pointIntervalUnit, pointPlacement,
  101. * pointStart, softThreshold, stacking, step, threshold,
  102. * turboThreshold, zoneAxis, zones
  103. * @requires modules/timeline
  104. * @optionparent plotOptions.timeline
  105. */
  106. {
  107. colorByPoint: true,
  108. stickyTracking: false,
  109. ignoreHiddenPoint: true,
  110. legendType: 'point',
  111. lineWidth: 4,
  112. tooltip: {
  113. headerFormat: '<span style="color:{point.color}">\u25CF</span> ' +
  114. '<span style="font-size: 10px"> {point.key}</span><br/>',
  115. pointFormat: '{point.description}'
  116. },
  117. states: {
  118. hover: {
  119. lineWidthPlus: 0
  120. }
  121. },
  122. /**
  123. * @declare Highcharts.TimelineDataLabelsOptionsObject
  124. */
  125. dataLabels: {
  126. enabled: true,
  127. allowOverlap: true,
  128. /**
  129. * Whether to position data labels alternately. For example, if
  130. * [distance](#plotOptions.timeline.dataLabels.distance)
  131. * is set equal to `100`, then data labels will be positioned
  132. * alternately (on both sides of the point) at a distance of 100px.
  133. *
  134. * @sample {highcharts} highcharts/series-timeline/alternate-disabled
  135. * Alternate disabled
  136. */
  137. alternate: true,
  138. backgroundColor: '#ffffff',
  139. borderWidth: 1,
  140. borderColor: '#999999',
  141. borderRadius: 3,
  142. color: '#333333',
  143. /**
  144. * The color of the line connecting the data label to the point.
  145. * The default color is the same as the point's color.
  146. *
  147. * In styled mode, the connector stroke is given in the
  148. * `.highcharts-data-label-connector` class.
  149. *
  150. * @sample {highcharts} highcharts/series-timeline/connector-styles
  151. * Custom connector width and color
  152. *
  153. * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
  154. * @apioption plotOptions.timeline.dataLabels.connectorColor
  155. */
  156. /**
  157. * The width of the line connecting the data label to the point.
  158. *
  159. * In styled mode, the connector stroke width is given in the
  160. * `.highcharts-data-label-connector` class.
  161. *
  162. * @sample {highcharts} highcharts/series-timeline/connector-styles
  163. * Custom connector width and color
  164. */
  165. connectorWidth: 1,
  166. /**
  167. * A pixel value defining the distance between the data label and
  168. * the point. Negative numbers puts the label on top of the point.
  169. */
  170. distance: 100,
  171. // eslint-disable-next-line valid-jsdoc
  172. /**
  173. * @type {Highcharts.TimelineDataLabelsFormatterCallbackFunction}
  174. * @default function () {
  175. * var format;
  176. *
  177. * if (!this.series.chart.styledMode) {
  178. * format = '<span style="color:' + this.point.color +
  179. * '">● </span>';
  180. * } else {
  181. * format = '<span>● </span>';
  182. * }
  183. * format += '<span>' + (this.key || '') + '</span><br/>' +
  184. * (this.point.label || '');
  185. * return format;
  186. * }
  187. */
  188. formatter: function () {
  189. var format;
  190. if (!this.series.chart.styledMode) {
  191. format = '<span style="color:' + this.point.color +
  192. '">● </span>';
  193. }
  194. else {
  195. format = '<span>● </span>';
  196. }
  197. format += '<span class="highcharts-strong">' +
  198. (this.key || '') + '</span><br/>' +
  199. (this.point.label || '');
  200. return format;
  201. },
  202. style: {
  203. /** @internal */
  204. textOutline: 'none',
  205. /** @internal */
  206. fontWeight: 'normal',
  207. /** @internal */
  208. fontSize: '12px'
  209. },
  210. /**
  211. * Shadow options for the data label.
  212. *
  213. * @type {boolean|Highcharts.CSSObject}
  214. */
  215. shadow: false,
  216. /**
  217. * @type {number}
  218. * @apioption plotOptions.timeline.dataLabels.width
  219. */
  220. verticalAlign: 'middle'
  221. },
  222. marker: {
  223. enabledThreshold: 0,
  224. symbol: 'square',
  225. radius: 6,
  226. lineWidth: 2,
  227. height: 15
  228. },
  229. showInLegend: false,
  230. colorKey: 'x'
  231. },
  232. /**
  233. * @lends Highcharts.Series#
  234. */
  235. {
  236. trackerGroups: ['markerGroup', 'dataLabelsGroup'],
  237. // Use a simple symbol from LegendSymbolMixin
  238. drawLegendSymbol: LegendSymbolMixin.drawRectangle,
  239. // Use a group of trackers from TrackerMixin
  240. drawTracker: TrackerMixin.drawTrackerPoint,
  241. init: function () {
  242. var series = this;
  243. Series.prototype.init.apply(series, arguments);
  244. addEvent(series, 'afterTranslate', function () {
  245. var lastPlotX, closestPointRangePx = Number.MAX_VALUE;
  246. series.points.forEach(function (point) {
  247. // Set the isInside parameter basing also on the real point
  248. // visibility, in order to avoid showing hidden points
  249. // in drawPoints method.
  250. point.isInside = point.isInside && point.visible;
  251. // New way of calculating closestPointRangePx value, which
  252. // respects the real point visibility is needed.
  253. if (point.visible && !point.isNull) {
  254. if (defined(lastPlotX)) {
  255. closestPointRangePx = Math.min(closestPointRangePx, Math.abs(point.plotX - lastPlotX));
  256. }
  257. lastPlotX = point.plotX;
  258. }
  259. });
  260. series.closestPointRangePx = closestPointRangePx;
  261. });
  262. // Distribute data labels before rendering them. Distribution is
  263. // based on the 'dataLabels.distance' and 'dataLabels.alternate'
  264. // property.
  265. addEvent(series, 'drawDataLabels', function () {
  266. // Distribute data labels basing on defined algorithm.
  267. series.distributeDL(); // @todo use this scope for series
  268. });
  269. addEvent(series, 'afterDrawDataLabels', function () {
  270. var dataLabel; // @todo use this scope for series
  271. // Draw or align connector for each point.
  272. series.points.forEach(function (point) {
  273. dataLabel = point.dataLabel;
  274. if (dataLabel) {
  275. // Within this wrap method is necessary to save the
  276. // current animation params, because the data label
  277. // target position (after animation) is needed to align
  278. // connectors.
  279. dataLabel.animate = function (params) {
  280. if (this.targetPosition) {
  281. this.targetPosition = params;
  282. }
  283. return H.SVGElement.prototype.animate.apply(this, arguments);
  284. };
  285. // Initialize the targetPosition field within data label
  286. // object. It's necessary because there is need to know
  287. // expected position of specific data label, when
  288. // aligning connectors. This field is overrided inside
  289. // of SVGElement.animate() wrapped method.
  290. if (!dataLabel.targetPosition) {
  291. dataLabel.targetPosition = {};
  292. }
  293. return point.drawConnector();
  294. }
  295. });
  296. });
  297. addEvent(series.chart, 'afterHideOverlappingLabel', function () {
  298. series.points.forEach(function (p) {
  299. if (p.connector &&
  300. p.dataLabel &&
  301. p.dataLabel.oldOpacity !== p.dataLabel.newOpacity) {
  302. p.alignConnector();
  303. }
  304. });
  305. });
  306. },
  307. alignDataLabel: function (point, dataLabel, options, alignTo) {
  308. var series = this, isInverted = series.chart.inverted, visiblePoints = series.visibilityMap.filter(function (point) {
  309. return point;
  310. }), visiblePointsCount = series.visiblePointsCount, pointIndex = visiblePoints.indexOf(point), isFirstOrLast = (!pointIndex || pointIndex === visiblePointsCount - 1), dataLabelsOptions = series.options.dataLabels, userDLOptions = point.userDLOptions || {},
  311. // Define multiplier which is used to calculate data label
  312. // width. If data labels are alternate, they have two times more
  313. // space to adapt (excepting first and last ones, which has only
  314. // one and half), than in case of placing all data labels side
  315. // by side.
  316. multiplier = dataLabelsOptions.alternate ?
  317. (isFirstOrLast ? 1.5 : 2) :
  318. 1, distance, availableSpace = Math.floor(series.xAxis.len / visiblePointsCount), pad = dataLabel.padding, targetDLWidth, styles;
  319. // Adjust data label width to the currently available space.
  320. if (point.visible) {
  321. distance = Math.abs(userDLOptions.x || point.options.dataLabels.x);
  322. if (isInverted) {
  323. targetDLWidth = ((distance - pad) * 2 - (point.itemHeight / 2));
  324. styles = {
  325. width: targetDLWidth,
  326. // Apply ellipsis when data label height is exceeded.
  327. textOverflow: dataLabel.width / targetDLWidth *
  328. dataLabel.height / 2 > availableSpace * multiplier ?
  329. 'ellipsis' : 'none'
  330. };
  331. }
  332. else {
  333. styles = {
  334. width: userDLOptions.width ||
  335. dataLabelsOptions.width ||
  336. availableSpace * multiplier - (pad * 2)
  337. };
  338. }
  339. dataLabel.css(styles);
  340. if (!series.chart.styledMode) {
  341. dataLabel.shadow(dataLabelsOptions.shadow);
  342. }
  343. }
  344. Series.prototype.alignDataLabel.apply(series, arguments);
  345. },
  346. processData: function () {
  347. var series = this, visiblePoints = 0, i;
  348. series.visibilityMap = series.getVisibilityMap();
  349. // Calculate currently visible points.
  350. series.visibilityMap.forEach(function (point) {
  351. if (point) {
  352. visiblePoints++;
  353. }
  354. });
  355. series.visiblePointsCount = visiblePoints;
  356. for (i = 0; i < series.xData.length; i++) {
  357. series.yData[i] = 1;
  358. }
  359. Series.prototype.processData.call(this, arguments);
  360. return;
  361. },
  362. getXExtremes: function (xData) {
  363. var series = this, filteredData = xData.filter(function (x, i) {
  364. return series.points[i].isValid() &&
  365. series.points[i].visible;
  366. });
  367. return {
  368. min: arrayMin(filteredData),
  369. max: arrayMax(filteredData)
  370. };
  371. },
  372. generatePoints: function () {
  373. var series = this;
  374. Series.prototype.generatePoints.apply(series);
  375. series.points.forEach(function (point, i) {
  376. point.applyOptions({
  377. x: series.xData[i]
  378. }, series.xData[i]);
  379. });
  380. },
  381. getVisibilityMap: function () {
  382. var series = this, map = (series.data.length ?
  383. series.data : series.userOptions.data).map(function (point) {
  384. return (point &&
  385. point.visible !== false &&
  386. !point.isNull) ? point : false;
  387. });
  388. return map;
  389. },
  390. distributeDL: function () {
  391. var series = this, dataLabelsOptions = series.options.dataLabels, options, pointDLOptions, newOptions = {}, visibilityIndex = 1, distance = dataLabelsOptions.distance;
  392. series.points.forEach(function (point) {
  393. if (point.visible && !point.isNull) {
  394. options = point.options;
  395. pointDLOptions = point.options.dataLabels;
  396. if (!series.hasRendered) {
  397. point.userDLOptions =
  398. merge({}, pointDLOptions);
  399. }
  400. newOptions[series.chart.inverted ? 'x' : 'y'] =
  401. dataLabelsOptions.alternate && visibilityIndex % 2 ?
  402. -distance : distance;
  403. options.dataLabels = merge(newOptions, point.userDLOptions);
  404. visibilityIndex++;
  405. }
  406. });
  407. },
  408. markerAttribs: function (point, state) {
  409. var series = this, seriesMarkerOptions = series.options.marker, seriesStateOptions, pointMarkerOptions = point.marker || {}, symbol = (pointMarkerOptions.symbol || seriesMarkerOptions.symbol), pointStateOptions, width = pick(pointMarkerOptions.width, seriesMarkerOptions.width, series.closestPointRangePx), height = pick(pointMarkerOptions.height, seriesMarkerOptions.height), radius = 0, attribs;
  410. // Call default markerAttribs method, when the xAxis type
  411. // is set to datetime.
  412. if (series.xAxis.isDatetimeAxis) {
  413. return seriesTypes.line.prototype.markerAttribs
  414. .call(this, point, state);
  415. }
  416. // Handle hover and select states
  417. if (state) {
  418. seriesStateOptions =
  419. seriesMarkerOptions.states[state] || {};
  420. pointStateOptions = pointMarkerOptions.states &&
  421. pointMarkerOptions.states[state] || {};
  422. radius = pick(pointStateOptions.radius, seriesStateOptions.radius, radius + (seriesStateOptions.radiusPlus || 0));
  423. }
  424. point.hasImage = (symbol && symbol.indexOf('url') === 0);
  425. attribs = {
  426. x: Math.floor(point.plotX) - (width / 2) - (radius / 2),
  427. y: point.plotY - (height / 2) - (radius / 2),
  428. width: width + radius,
  429. height: height + radius
  430. };
  431. return attribs;
  432. },
  433. bindAxes: function () {
  434. var series = this;
  435. Series.prototype.bindAxes.call(series);
  436. ['xAxis', 'yAxis'].forEach(function (axis) {
  437. // Initially set the linked xAxis type to category.
  438. if (axis === 'xAxis' && !series[axis].userOptions.type) {
  439. series[axis].categories = series[axis].hasNames = true;
  440. }
  441. });
  442. }
  443. },
  444. /**
  445. * @lends Highcharts.Point#
  446. */
  447. {
  448. init: function () {
  449. var point = Point.prototype.init.apply(this, arguments);
  450. point.name = pick(point.name, 'Event');
  451. point.y = 1;
  452. return point;
  453. },
  454. isValid: function () {
  455. return this.options.y !== null;
  456. },
  457. setVisible: function (vis, redraw) {
  458. var point = this, series = point.series;
  459. redraw = pick(redraw, series.options.ignoreHiddenPoint);
  460. seriesTypes.pie.prototype.pointClass.prototype
  461. .setVisible.call(point, vis, false);
  462. // Process new data
  463. series.processData();
  464. if (redraw) {
  465. series.chart.redraw();
  466. }
  467. },
  468. setState: function () {
  469. var proceed = Series.prototype.pointClass.prototype.setState;
  470. // Prevent triggering the setState method on null points.
  471. if (!this.isNull) {
  472. proceed.apply(this, arguments);
  473. }
  474. },
  475. getConnectorPath: function () {
  476. var point = this, chart = point.series.chart, xAxisLen = point.series.xAxis.len, inverted = chart.inverted, direction = inverted ? 'x2' : 'y2', dl = point.dataLabel, targetDLPos = dl.targetPosition, coords = {
  477. x1: point.plotX,
  478. y1: point.plotY,
  479. x2: point.plotX,
  480. y2: isNumber(targetDLPos.y) ? targetDLPos.y : dl.y
  481. }, negativeDistance = ((dl.alignAttr || dl)[direction[0]] <
  482. point.series.yAxis.len / 2), path;
  483. // Recalculate coords when the chart is inverted.
  484. if (inverted) {
  485. coords = {
  486. x1: point.plotY,
  487. y1: xAxisLen - point.plotX,
  488. x2: targetDLPos.x || dl.x,
  489. y2: xAxisLen - point.plotX
  490. };
  491. }
  492. // Subtract data label width or height from expected coordinate so
  493. // that the connector would start from the appropriate edge.
  494. if (negativeDistance) {
  495. coords[direction] += dl[inverted ? 'width' : 'height'];
  496. }
  497. // Change coordinates so that they will be relative to data label.
  498. objectEach(coords, function (_coord, i) {
  499. coords[i] -= (dl.alignAttr || dl)[i[0]];
  500. });
  501. path = chart.renderer.crispLine([
  502. 'M',
  503. coords.x1,
  504. coords.y1,
  505. 'L',
  506. coords.x2,
  507. coords.y2
  508. ], dl.options.connectorWidth);
  509. return path;
  510. },
  511. drawConnector: function () {
  512. var point = this, series = point.series;
  513. if (!point.connector) {
  514. point.connector = series.chart.renderer
  515. .path(point.getConnectorPath())
  516. .attr({
  517. zIndex: -1
  518. })
  519. .add(point.dataLabel);
  520. }
  521. if (point.series.chart.isInsidePlot(// #10507
  522. point.dataLabel.x, point.dataLabel.y)) {
  523. point.alignConnector();
  524. }
  525. },
  526. alignConnector: function () {
  527. var point = this, series = point.series, connector = point.connector, dl = point.dataLabel, dlOptions = point.dataLabel.options = merge(series.options.dataLabels, point.options.dataLabels), chart = point.series.chart, bBox = connector.getBBox(), plotPos = {
  528. x: bBox.x + dl.translateX,
  529. y: bBox.y + dl.translateY
  530. }, isVisible;
  531. // Include a half of connector width in order to run animation,
  532. // when connectors are aligned to the plot area edge.
  533. if (chart.inverted) {
  534. plotPos.y -= dl.options.connectorWidth / 2;
  535. }
  536. else {
  537. plotPos.x += dl.options.connectorWidth / 2;
  538. }
  539. isVisible = chart.isInsidePlot(plotPos.x, plotPos.y);
  540. connector[isVisible ? 'animate' : 'attr']({
  541. d: point.getConnectorPath()
  542. });
  543. if (!series.chart.styledMode) {
  544. connector.attr({
  545. stroke: dlOptions.connectorColor || point.color,
  546. 'stroke-width': dlOptions.connectorWidth,
  547. opacity: dl[defined(dl.newOpacity) ? 'newOpacity' : 'opacity']
  548. });
  549. }
  550. }
  551. });
  552. /**
  553. * The `timeline` series. If the [type](#series.timeline.type) option is
  554. * not specified, it is inherited from [chart.type](#chart.type).
  555. *
  556. * @extends series,plotOptions.timeline
  557. * @excluding animationLimit, boostThreshold, connectEnds, connectNulls,
  558. * cropThreshold, dashStyle, dataParser, dataURL, findNearestPointBy,
  559. * getExtremesFromAll, lineWidth, negativeColor,
  560. * pointInterval, pointIntervalUnit, pointPlacement, pointStart,
  561. * softThreshold, stacking, stack, step, threshold, turboThreshold,
  562. * zoneAxis, zones
  563. * @product highcharts
  564. * @requires modules/timeline
  565. * @apioption series.timeline
  566. */
  567. /**
  568. * An array of data points for the series. For the `timeline` series type,
  569. * points can be given with three general parameters, `name`, `label`,
  570. * and `description`:
  571. *
  572. * Example:
  573. *
  574. * ```js
  575. * series: [{
  576. * type: 'timeline',
  577. * data: [{
  578. * name: 'Jan 2018',
  579. * label: 'Some event label',
  580. * description: 'Description to show in tooltip'
  581. * }]
  582. * }]
  583. * ```
  584. * If all points additionally have the `x` values, and xAxis type is set to
  585. * `datetime`, then events are laid out on a true time axis, where their
  586. * placement reflects the actual time between them.
  587. *
  588. * @sample {highcharts} highcharts/series-timeline/alternate-labels
  589. * Alternate labels
  590. * @sample {highcharts} highcharts/series-timeline/datetime-axis
  591. * Real time intervals
  592. *
  593. * @type {Array<*>}
  594. * @extends series.line.data
  595. * @excluding marker, y
  596. * @product highcharts
  597. * @apioption series.timeline.data
  598. */
  599. /**
  600. * The name of event.
  601. *
  602. * @type {string}
  603. * @product highcharts
  604. * @apioption series.timeline.data.name
  605. */
  606. /**
  607. * The label of event.
  608. *
  609. * @type {string}
  610. * @product highcharts
  611. * @apioption series.timeline.data.label
  612. */
  613. /**
  614. * The description of event. This description will be shown in tooltip.
  615. *
  616. * @type {string}
  617. * @product highcharts
  618. * @apioption series.timeline.data.description
  619. */
  620. ''; // adds doclets above to transpiled file
  621. });
  622. _registerModule(_modules, 'masters/modules/timeline.src.js', [], function () {
  623. });
  624. }));