timeline.src.js 28 KB

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