/* *
*
* Experimental Timeline Series.
* Note: This API is in alpha stage and will be changed before final release.
*
* (c) 2010-2019 Highsoft AS
*
* Author: Daniel Studencki
*
* License: www.highcharts.com/license
*
* */
'use strict';
import H from '../parts/Globals.js';
var addEvent = H.addEvent,
extend = H.extend,
defined = H.defined,
LegendSymbolMixin = H.LegendSymbolMixin,
TrackerMixin = H.TrackerMixin,
merge = H.merge,
pick = H.pick,
Point = H.Point,
Series = H.Series,
undocumentedSeriesType = H.seriesType;
/* *
* The timeline series type.
*
* @private
* @class
* @name Highcharts.seriesTypes.timeline
*
* @augments Highcharts.Series
*/
undocumentedSeriesType('timeline', 'line'
/* *
* The timeline series presents given events along a drawn line.
*
* @sample highcharts/series-timeline/alternate-labels Timeline series
*
* @extends plotOptions.line
* @since 7.0.0
* @product highcharts
* @excluding animationLimit, boostThreshold, connectEnds, connectNulls,
* cropThreshold, dashStyle, findNearestPointBy,
* getExtremesFromAll, lineWidth, negativeColor, pointInterval,
* pointIntervalUnit, pointPlacement, pointStart, softThreshold,
* stacking, step, threshold, turboThreshold, zoneAxis, zones
* @optionparent plotOptions.timeline
*/
, {
colorByPoint: true,
stickyTracking: false,
ignoreHiddenPoint: true,
legendType: 'point',
lineWidth: 0,
tooltip: {
headerFormat: '● ' +
'{point.point.date}
',
pointFormat: '{point.description}'
},
states: {
hover: {
lineWidthPlus: 5,
halo: {
size: 0
}
}
},
dataLabels: {
enabled: true,
allowOverlap: true,
/* *
* The width of the line connecting the data label to the point.
*
*
* In styled mode, the connector stroke width is given in the
* `.highcharts-data-label-connector` class.
*
* @type {Number}
* @default 1
* @sample {highcharts} highcharts/series-timeline/connector-styles
* Custom connector width and color
*/
connectorWidth: 1,
/* *
* The color of the line connecting the data label to the point.
*
* In styled mode, the connector stroke is given in the
* `.highcharts-data-label-connector` class.
*
* @type {String}
* @sample {highcharts} highcharts/series-timeline/connector-styles
* Custom connector width and color
*/
connectorColor: '#000000',
backgroundColor: '#ffffff',
/* *
* @type {Highcharts.FormatterCallbackFunction