AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.ui.Timeline Improve this Doc

Class for the Gantt chart timeline.

Methods Overview

Specific settings
editFinishConnectorMarkerHorizontalOffset()Finish edit connector control horizontal offset.
editFinishConnectorMarkerType()Finish edit connector control type.
editFinishConnectorMarkerVerticalOffset()Finish edit connector control vertical offset.
editIntervalWidth()Interval edit control width.
editStartConnectorMarkerHorizontalOffset()Start edit connector control horizontal offset.
editStartConnectorMarkerType()Start edit connector control type.
editStartConnectorMarkerVerticalOffset()Start edit connector control vertical offset.
header()Timeline header settings.
markers()Markers settings.
Axes and Scales
lineMarker()Line marker settings.
rangeMarker()Range marker settings.
scale()Scale settings.
textMarker()Text marker settings.
Coloring
backgroundFill()Background fill settings.
columnStroke()Column stroke settings.
connectorPreviewStroke()Connector preview stroke settings.
editConnectorThumbFill()Edit connector thumb fill settings.
editConnectorThumbStroke()Edit connector thumb stroke settings.
editIntervalThumbFill()Edit interval preview fill settings.
editIntervalThumbStroke()Edit interval thumb stroke settings.
editPreviewFill()Edit preview fill settings.
editPreviewStroke()Edit preview stroke settings.
editProgressFill()Edit progress preview fill settings.
editProgressStroke()Edit progress preview stroke settings.
editStructurePreviewDashStroke()Connector preview stroke settings.
editStructurePreviewFill()Edit structure fill settings.
editStructurePreviewStroke()Connector preview stroke settings.
rowEvenFill()Row even settings.
rowFill()Row fill settings.
rowHoverFill()Row settings on hover fill.
rowOddFill()Row odd fill settings.
rowSelectedFill()Row settings in selected mode.
Elements
baselines()Baselines settings.
connectors()Connectors settings.
elements()Elements settings.
groupingTasks()Grouping tasks settings.
milestones()Milestones settings.
periods()Periods settings.
tasks()Tasks settings.
Interactivity
editing()Live edit mode.
horizontalScrollBar()Horizontal scroll bar settings.
tooltip()Tooltip settings.
verticalScrollBar()Vertical scroll bar settings.
Labels
labels()Labels settings.
Size and Position
baselineBarAnchor()Baseline bar anchor.
baselineBarHeight()Baseline bar height.
baselineBarOffset()Baseline bar offset.
baselineBarPosition()Baseline bar position.
editFinishConnectorMarkerSize()Finish edit connector control size.
editStartConnectorMarkerSize()Start edit connector control size.
Miscellaneous
baseBarOffset()Setter for the base bar offset.

Methods Description

backgroundFill

Getter for the background fill.

Returns:

anychart.graphics.vector.Fill string - Background fill.

Try it:

Setter for fill settings using an array or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
"none"
Color as an array or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity.

Params:

Name Type Default Description
color string
"none"
Color as a string.
opacity number
Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

baseBarOffset

Setter for the base bar offset.

Params:

Name Type Description
value string | number Value to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

baselineBarAnchor

Getter for the baseline bar anchor.

Returns:

string anychart.enums.Anchor - Baseline bar anchor.
See listing
var baselineBarAnchor = timeLine.baselineBarAnchor();
Setter for the baseline bar anchor.

Params:

Name Type Description
value string | anychart.enums.Anchor Value to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

baselineBarHeight

Getter for the baseline bar height.

Returns:

string number - Baseline bar height.
See listing
var baselineBarHeight = timeLine.baselineBarHeight();
Setter for the baseline bar height.

Params:

Name Type Description
value string | number Value to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

baselineBarOffset

Getter for the baseline bar offset.

Returns:

string number - Baseline bar offset.
See listing
var baselineBarOffset = timeLine.baselineBarOffset();
Setter for the baseline bar offset.

Params:

Name Type Description
value string | number Value to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

baselineBarPosition

Getter for the baseline bar position.

Returns:

string anychart.enums.Anchor - Base bar position.
See listing
var baselineBarPosition = timeLine.baselineBarPosition();
Setter for the baseline bar position.

Params:

Name Type Description
value string | anychart.enums.Anchor Value to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

baselines

Getter for baselines.

Returns:

anychart.core.gantt.elements.BaselinesElement - Baselines instance.

Try it:

Setter for baselines.

Params:

Name Type Description
settings Object Object with settings from anychart.core.gantt.elements.BaselinesElement.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

columnStroke

Getter for the column stroke.

Returns:

string anychart.graphics.vector.Stroke - Column stroke.

Try it:

Setter for the column stroke.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | string
{color: "#ccd7e1", thickness: 1}
Value to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

connectorPreviewStroke

Getter for the connector preview stroke.

Returns:

anychart.graphics.vector.Stroke string - Connector preview stroke.

Try it:

Setter for the connector preview stroke. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
{color: "#0000ff",
opacity: 0.6, dash: "3 3"}
Stroke settings.
thickness number
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin string | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap string | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

connectors

Getter for connectors.

Returns:

anychart.core.gantt.elements.ConnectorElement - Connectors instance.

Try it:

Setter for connectors.

Params:

Name Type Description
setting Object Object with settings from anychart.core.gantt.elements.ConnectorElement.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editConnectorThumbFill

Getter for the edit connector thumb fill.

Returns:

anychart.graphics.vector.Fill string - Edit connector thumb fill.

Try it:

Setter for fill settings using an array or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
"#fff"
Color as an array or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Default Description
color string
"#fff"
Color as a string.
opacity number
Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editConnectorThumbStroke

Getter for the edit connector thumb stroke.

Returns:

anychart.graphics.vector.Stroke string - Edit connector thumb stroke.

Try it:

Setter for the edit connector thumb stroke. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
"#000"
Stroke settings.
thickness number
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin string | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap string | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editFinishConnectorMarkerHorizontalOffset

Getter for the finish edit connector control horizontal offset.

Returns:

number - The horizontal offset.
See listing
var offset = timeLine.editFinishConnectorMarkerHorizontalOffset();
Setter for the finish edit connector control horizontal offset.

Params:

Name Type Default Description
value number
0
Value to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editFinishConnectorMarkerSize

Getter for the finish edit connector control size.

Returns:

number - The control size.
See listing
var size = timeLine.editFinishConnectorMarkerSize();
Setter for the finish edit connector control size.

Params:

Name Type Default Description
value number
10
The control size.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editFinishConnectorMarkerType

Getter for the finish edit connector control type.

Returns:

anychart.enums.MarkerType string - The control type.
See listing
var type = timeLine.editFinishConnectorMarkerType();
Setter for the finish edit connector control type.

Params:

Name Type Default Description
value anychart.enums.MarkerType | string
"circle"
The control type.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editFinishConnectorMarkerVerticalOffset

Getter for the finish edit connector control vertical offset.

Returns:

number - The vertical offset.
See listing
var offset = timeLine.editFinishConnectorMarkerVerticalOffset();
Setter for the finish edit connector control vertical offset.

Params:

Name Type Default Description
value number
0
The vertical offset.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editIntervalThumbFill

Getter for the edit interval thumb fill.

Returns:

anychart.graphics.vector.Fill string - The current edit interval fill.

Try it:

Setter for fill settings using an array or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
"#fff"
Color as an array or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Default Description
color string
"#fff"
Color as a string.
opacity number
Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editIntervalThumbStroke

Getter for the edit interval thumb stroke.

Returns:

anychart.graphics.vector.Stroke string - Edit interval thumb stroke.

Try it:

Setter for the edit interval thumb stroke. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
"#000"
Stroke settings.
thickness number
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin string | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap string | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editIntervalWidth

Getter for the interval edit control width.

Returns:

number - The control width.
See listing
var offset = timeLine.editIntervalWidth();
Setter for the interval edit control width.

Params:

Name Type Description
value number The control width.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editPreviewFill

Getter for the edit preview fill.

Returns:

anychart.graphics.vector.Fill string - Edit preview fill.

Try it:

Setter for fill settings using an array or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
{color: "#fff", opacity: 0.00001}
Color as an object or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Default Description
color string
"none"
Color as a string.
opacity number
Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editPreviewStroke

Getter for the edit preview stroke.

Returns:

anychart.graphics.vector.Stroke string - Edit preview stroke.

Try it:

Setter for the edit preview stroke. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
{color: "#aaa",
dash: "3 3"}
Stroke settings.
thickness number
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin string | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap string | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editProgressFill

Getter for the edit progress fill.

Returns:

anychart.graphics.vector.Fill string - Edit progress fill.

Try it:

Setter for fill settings using an array or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
"#fff"
Color as an array or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Default Description
color string
"#fff"
Color as a string.
opacity number
Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editProgressStroke

Getter for the edit progress stroke.

Returns:

anychart.graphics.vector.Stroke string - Edit progress stroke.

Try it:

Setter for the edit progress stroke. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
"#000"
Stroke settings.
thickness number
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin string | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap string | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editStartConnectorMarkerHorizontalOffset

Getter for the start edit connector control horizontal offset.

Returns:

number - The horizontal offset.
See listing
var offset = timeLine.editStartConnectorMarkerHorizontalOffset();
Setter for the start edit connector control horizontal offset.

Params:

Name Type Default Description
value number
0
The horizontal offset.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editStartConnectorMarkerSize

Getter for the start edit connector control size.

Returns:

number - The control size.
See listing
var size = timeLine.editStartConnectorMarkerSize();
Setter for the start edit connector control size.

Params:

Name Type Default Description
value number
10
The control size.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editStartConnectorMarkerType

Getter for the start edit connector control type.

Returns:

anychart.enums.MarkerType string - The control type.
See listing
var type = timeLine.editStartConnectorMarkerType();
Setter for the start edit connector control type.

Params:

Name Type Default Description
value anychart.enums.MarkerType | string
"circle"
The control type.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editStartConnectorMarkerVerticalOffset

Getter for the start edit connector control vertical offset.

Returns:

number - The vertical offset.
See listing
var offset = timeLine.editStartConnectorMarkerVerticalOffset();
Setter for the start edit connector control vertical offset.

Params:

Name Type Default Description
value number
0
The vertical offset.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editStructurePreviewDashStroke

Getter for the preview dash stroke when editing structure.

Returns:

anychart.graphics.vector.Stroke string - Preview dash stroke when editing structure

Try it:

Setter for the preview dash stroke when editing structure. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
{color: "#4285F4", dash: "4 4"}
Stroke settings.
thickness number
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin string | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap string | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editStructurePreviewFill

Getter for the preview fill when editing structure.

Returns:

anychart.graphics.vector.Fill string - Preview fill when editing structure.

Try it:

Setter for fill settings using an array or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
{color: "#4285F4", opacity: 0.2}
Color as an object or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Default Description
color string
"none"
Color as a string.
opacity number
Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editStructurePreviewStroke

Getter for the preview stroke when editing structure.

Returns:

anychart.graphics.vector.Stroke string - Preview stroke when editing structure

Try it:

Setter for the preview stroke when editing structure. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
"#545f69"
Stroke settings.
thickness number
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin string | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap string | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

editing

Gets the live edit mode.

Returns:

boolean - Live edit mode.

Try it:

Enables or disables live edit mode.

Params:

Name Type Default Description
value boolean
false
Value to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

elements

Getter for elements.

Returns:

anychart.core.gantt.elements.TimelineElement - Elements instance.

Try it:

Setter for elements.

Params:

Name Type Description
setting Object Object with settings from anychart.core.gantt.elements.TimelineElement.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

groupingTasks

Getter for grouping tasks.

Returns:

anychart.core.gantt.elements.GroupingTasksElement - Grouping tasks instance.

Try it:

Setter for grouping tasks.

Params:

Name Type Description
setting Object Object with settings from anychart.core.gantt.elements.GroupingTasksElement.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Getter for the timeline header.

Returns:

anychart.core.gantt.TimeLineHeader - The timeline header.

Try it:

Setter for the timeline header.

Params:

Name Type Description
value Object Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

horizontalScrollBar

Getter for the horizontal scroll bar.

Returns:

anychart.core.ui.ScrollBar - Scroll bar.

Try it:

Setter for the horizontal scroll bar.

Params:

Name Type Description
value Object Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

labels

Getter for the labels factory.

Returns:

anychart.core.ui.LabelsFactory - Labels factory

Try it:

Setter for the labels factory.

Params:

Name Type Default Description
value Object
true
Value to be set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

lineMarker

Getter for the line marker.

Params:

Name Type Default Description
index number
0
Line marker index. If not set - creates a new instance and adds it to the end of array.

Returns:

anychart.core.axisMarkers.GanttLine - Line marker instance by index.

Try it:

Setter for the line marker.

Params:

Name Type Description
value Object | boolean | null Line marker settings to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Setter for the line marker by index.

Params:

Name Type Description
index number Line marker index.
value Object | boolean | null | anychart.enums.GanttDateTimeMarkers | string Line marker settings to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

markers

Getter for the markers factory.

Returns:

anychart.core.ui.MarkersFactory - Markers factory.

Try it:

Setter for the markers factory.

Params:

Name Type Description
value Object Value to be set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

milestones

Getter for milestones.

Returns:

anychart.core.gantt.elements.MilestonesElement - Milestones instance.

Try it:

Setter for milestones.

Params:

Name Type Description
setting Object Object with settings from anychart.core.gantt.elements.MilestonesElement.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

periods

Getter for periods.

Returns:

anychart.core.gantt.elements.PeriodsElement - Periods instance.

Try it:

Setter for periods.

Params:

Name Type Description
setting Object Object with settings from anychart.core.gantt.elements.PeriodsElement.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

rangeMarker

Getter for the range marker.

Params:

Name Type Description
index number Range marker index.

Returns:

anychart.core.axisMarkers.GanttRange - Range marker instance by index.

Try it:

Setter for the range marker.

Params:

Name Type Description
value Object | boolean | null Range marker settings to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Setter for the range marker by index.

Params:

Name Type Description
index number Range marker index.
value Object | boolean | null | anychart.enums.GanttDateTimeMarkers | string Range marker settings to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

rowEvenFill

Getter for the row even fill.

Returns:

anychart.graphics.vector.Fill string - Row even fill.

Try it:

Setter for row even fill settings using an object or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
"#fff"
Color as an object or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

rowFill

Getter for the row fill.

Returns:

anychart.graphics.vector.Fill string - Row fill.

Try it:

Setter for row fill settings using an array or a string. Resets odd fill and even fill. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
"#fff"
Color as an array or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

rowHoverFill

Getter for the row hover fill.

Returns:

anychart.graphics.vector.Fill string - Row hover fill.

Try it:

Setter for row hover fill settings using an array or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
"#edf8ff"
Color as an object or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

rowOddFill

Getter for the row odd fill.

Returns:

anychart.graphics.vector.Fill string - Row odd fill.

Try it:

Setter for row odd fill settings using an object or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
"#fff"
Color as an object or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

rowSelectedFill

Getter for row fill in selected mode.

Returns:

anychart.graphics.vector.Fill string - Row fill in selected mode.

Try it:

Setter for row fill settings in selected mode using an array or a string. Learn more about coloring.

Params:

Name Type Description
value anychart.graphics.vector.Fill Color as an object or a string.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Fill color in selected mode with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill in selected mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill in selected mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

scale

Getter for the timeline scale.

Returns:

anychart.scales.GanttDateTime - Default Gantt chart timeline scale value.

Try it:

Setter for the timeline scale.

Params:

Name Type Default Description
value Object
anychart.scales.GanttDateTime
Scale object.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

tasks

Getter for tasks.

Returns:

anychart.core.gantt.elements.TasksElement - Tasks instance.

Try it:

Setter for tasks.

Params:

Name Type Description
setting Object Object with settings from anychart.core.gantt.elements.TasksElement.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it:

textMarker

Getter for the text marker.

Params:

Name Type Description
index number Text marker index.

Returns:

anychart.core.axisMarkers.GanttText - Text marker instance by index.

Try it:

Setter for the text marker.

Params:

Name Type Description
value Object | boolean | null Text marker settings to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.
Setter for text marker by index.

Params:

Name Type Description
index number Text marker index.
value Object | boolean | null | anychart.enums.GanttDateTimeMarkers | string Text marker settings to set.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

tooltip

Getter for tooltip settings.

Returns:

anychart.core.ui.Tooltip - Tooltip instance.

Try it:

Setter for the tooltip.

Params:

Name Type Default Description
value Object | boolean | null
true
Tooltip settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

verticalScrollBar

Getter for the vertical scroll bar.

Returns:

anychart.core.ui.ScrollBar - Scroll bar.

Try it:

Setter for the vertical scroll bar.

Params:

Name Type Description
value Object Object with settings.

Returns:

anychart.core.ui.Timeline - Self instance for method chaining.

Try it: