AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

class anychart.core.gantt.TimelineHeader.Level Improve this Doc

Extends: anychart.core.VisualBaseWithBounds

Single timeline header level.

Methods Overview

Coloring
tileFill()Tile fill settings
tilesSeparationStroke()Tile fill settings
Labels
labels()Labels settings

Methods Description

labels

Getter for the labels factory.

Returns:

anychart.core.ui.LabelsFactory - The labels factory.
Setter for the labels factory.

Params:

NameTypeDescription
valueObjectLabels object.

Returns:

anychart.core.gantt.TimelineHeader.Level - Self instance for method chaining.

tileFill

Getter for the tile fill.

Returns:

anychart.graphics.vector.Fill | string - The background fill.
See listing
var tileFill = header.tileFill();
Setter for fill settings using an array or a string. Learn more about coloring.

Params:

NameTypeDescription
valueanychart.graphics.vector.FillColor as an object or a string.

Returns:

anychart.core.gantt.TimelineHeader.Level - Self instance for method chaining.
Fill color with opacity.

Params:

NameTypeDescription
colorstringColor as a string.
opacitynumberColor opacity.

Returns:

anychart.core.gantt.TimelineHeader.Level - Self instance for method chaining.
Linear gradient fill. Learn more about coloring.

Params:

NameTypeDescription
keysArray.<(anychart.graphics.vector.GradientKey|string)>Gradient keys.
anglenumberGradient angle.
modeboolean | anychart.graphics.vector.Rect | ObjectGradient mode.
opacitynumberGradient opacity.

Returns:

anychart.core.gantt.TimelineHeader.Level - Self instance for method chaining.
Radial gradient fill. Learn more about coloring.

Params:

NameTypeDescription
keysArray.<(anychart.graphics.vector.GradientKey|string)>Color-stop gradient keys.
cxnumberX ratio of center radial gradient.
cynumberY ratio of center radial gradient.
modeanychart.graphics.math.RectIf defined then userSpaceOnUse mode, else objectBoundingBox.
opacitynumberOpacity of the gradient.
fxnumberX ratio of focal point.
fynumberY ratio of focal point.

Returns:

anychart.core.gantt.TimelineHeader.Level - Self instance for method chaining.

Params:

NameTypeDescription
imageSettingsanychart.graphics.vector.FillObject with settings.

Returns:

anychart.core.gantt.TimelineHeader.Level - Self instance for method chaining.

tilesSeparationStroke

Getter for the connector preview stroke.

Returns:

anychart.graphics.vector.Stroke | string - The connector preview stroke.
See listing
var tilesSeparationStroke = header.tilesSeparationStroke();
Setter for the connector preview stroke.

Params:

NameTypeDefaultDescription
strokeanychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
'#DC0A0A 1'
Stroke settings.
thicknessnumber
1
Line thickness.
dashpatternstring
Controls the pattern of dashes and gaps used to stroke paths.
lineJoinanychart.graphics.vector.StrokeLineJoin
Line joint style.
lineCapanychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.gantt.TimelineHeader.Level - Self instance for method chaining.