Top
You are looking at an outdated 7.4.0 version of this document. Switch to the 8.0.1 version to see the up to date information.

class anychart.core.gantt.Timeline Improve this Doc

Extends: anychart.core.VisualBaseWithBounds

Gantt timeline.

Methods Overview

Miscellaneous
backgroundFill()Getter for row background fill.
rowEvenFill()Getter for row even fill.
rowFill()Getter for row hover fill.
rowHoverFill()Getter for row hover fill.
rowOddFill()Getter for row odd fill.
tooltip()Getter for tooltip settings.

Methods Description

backgroundFill

Getter for row background fill.

Returns:

anychart.graphics.vector.Fill string - Current value row odd fill.

Try it:

Sets row background fill settings using an object or a string. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

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

Returns:

anychart.core.gantt.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.gantt.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

Image fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

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

Returns:

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

Try it:

rowEvenFill

Getter for row even fill.

Returns:

anychart.graphics.vector.Fill string - Current value row odd fill.

Try it:

Sets row even fill settings using an object or a string. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

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

Returns:

anychart.core.gantt.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.gantt.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

Image fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

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

Returns:

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

Try it:

rowFill

Getter for row hover fill.

Returns:

anychart.graphics.vector.Fill string - Current value row fill.

Try it:

Sets row hover fill settings using an object or a string.

Params:

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

Returns:

anychart.core.gantt.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.gantt.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

Image fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

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

Returns:

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

Try it:

rowHoverFill

Getter for row hover fill.

Returns:

anychart.graphics.vector.Fill string - Current value row odd fill.

Try it:

Sets row hover fill settings using an object or a string. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

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

Returns:

anychart.core.gantt.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.gantt.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

rowOddFill

Getter for row odd fill.

Returns:

anychart.graphics.vector.Fill string - Current value row odd fill.

Try it:

Sets row odd fill settings using an object or a string. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

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

Returns:

anychart.core.gantt.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.gantt.Timeline - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

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.gantt.Timeline - Self instance for method chaining.

Try it:

Image fill. Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

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

Returns:

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

Try it:

tooltip

Getter for tooltip settings.

Returns:

anychart.core.ui.Tooltip - Tooltip instance.

Try it:

Setter for tooltip.

Params:

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

Returns:

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