class anychart.core.ui.Timeline Improve this Doc
Extends: anychart.core.VisualBaseWithBounds
Class for the Gantt chart timeline.
Methods Overview
Specific settings | |
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. |
Calendar coloring | |
holidaysFill() | Getter for holidays fill. |
notWorkingFill() | Getter for not working intervals fill. |
weekendsFill() | Getter for weekends fill. |
workingFill() | Getter for working intervals fill. |
Coloring | |
backgroundFill() | Background fill settings. |
columnStroke() | Column 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 | |
baselineMilestones() | Baseline milestones settings. |
baselines() | Baselines settings. |
connectors() | Connectors settings. |
elements() | Elements settings. |
groupingTasks() | Grouping tasks settings. |
milestones() | Milestones settings. |
periods() | Periods settings. |
tasks() | Tasks settings. |
Interactivity | |
edit() | Live edit settings. |
enabled() | Element state (enabled or disabled). |
horizontalScrollBar() | Horizontal scroll bar settings. |
tooltip() | Tooltip settings. |
verticalScrollBar() | Vertical scroll bar settings. |
zoomOnMouseWheel() | Enable or disable zoom on mouse wheel |
Labels | |
labels() | Labels settings. |
Size and Position | |
bottom() | Bottom bound settings. |
bounds() | Bounds settings. |
cropLabels() | Label crop state getter. |
getPixelBounds() | Returns pixel bounds. |
height() | Height settings. |
left() | Left bound settings. |
maxHeight() | Maximum height. |
maxWidth() | Maximum width. |
minHeight() | Minimum height. |
minWidth() | Minimum width. |
right() | Right bound settings. |
top() | Top bound settings. |
width() | Width settings. |
zIndex() | Z-index of the element. |
Methods Description
backgroundFill
Returns:
anychart.graphics.vector.Fill | string - Background fill.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
color | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | 'none' | Color as an array, an object or a string. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.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:
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:
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:
baselineMilestones
Returns:
anychart.core.gantt.elements.BaselineMilestonesElement - Baseline milestones instance.Params:
Name | Type | Description |
---|---|---|
settings | Object | Object with settings from anychart.core.gantt.elements.BaselineMilestonesElement. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.baselines
Returns:
anychart.core.gantt.elements.BaselinesElement - Baselines instance.Try it:
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:
bottom
Returns:
number | string | undefined - Element's bottom bound setting.Params:
Name | Type | Default | Description |
---|---|---|---|
bottom | number | string | null | null | Bottom bound settings for the element. |
Returns:
anychart.core.ui.Timeline - Returns self for method chaining.Try it:
bounds
Returns:
anychart.core.utils.Bounds - Bounds of the element.Params:
Name | Type | Description |
---|---|---|
bounds | anychart.utils.RectObj | anychart.math.Rect | anychart.core.utils.Bounds | Bounds of element. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
x | number | string | null | X-coordinate. |
y | number | string | null | Y-coordinate. |
width | number | string | null | Width. |
height | number | string | null | Height. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
columnStroke
Returns:
string | anychart.graphics.vector.Stroke - Column stroke.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | {color: "#ccd7e1", thickness: 1} | Value to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
settings | Object | Stroke settings from anychart.graphics.vector.Stroke. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
connectors
Returns:
anychart.core.gantt.elements.ConnectorElement - Connectors instance.Try it:
Params:
Name | Type | Description |
---|---|---|
settings | Object | Object with settings from anychart.core.gantt.elements.ConnectorElement. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
cropLabels
Returns:
boolean - Milestone previews labels cropping state.var isLabelsCropEnabled = timeline.cropLabels();
Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
value | boolean | false | Boolean flag. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.edit
Returns:
anychart.core.gantt.edit.StructureEdit - The live edit settings.Try it:
- boolean - disable or enable live edit.
- object - sets live edit settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | false | Live edit settings to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.elements
Returns:
anychart.core.gantt.elements.TimelineElement - Elements instance.Try it:
Params:
Name | Type | Description |
---|---|---|
settings | Object | Object with settings from anychart.core.gantt.elements.TimelineElement. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
enabled
Returns:
boolean - Element state.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Enabled state to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.if (!element.enabled()) element.enabled(true);
Try it:
getPixelBounds
Returns:
anychart.math.Rect - Pixel bounds of the element.groupingTasks
Returns:
anychart.core.gantt.elements.GroupingTasksElement - Grouping tasks instance.Try it:
Params:
Name | Type | Description |
---|---|---|
settings | Object | Object with settings from anychart.core.gantt.elements.GroupingTasksElement. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
header
Returns:
anychart.core.gantt.TimeLineHeader - The timeline header.Try it:
Params:
Name | Type | Description |
---|---|---|
value | Object | Object with settings. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
height
Returns:
number | string | undefined - Element's height setting.Params:
Name | Type | Default | Description |
---|---|---|---|
height | number | string | null | null | Height settings for the element. |
Returns:
anychart.core.ui.Timeline - Returns self for method chaining.Try it:
holidaysFill
Holidays intervals can be set with gantt calendar API.
NOTE:
- This fill will be visible only when gantt chart timeline is zoomed to days.
- Zooming to hours and below removes holidays fill and replaces it with coloring of working and not working intervals. Learn more about coloring.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Fill | "#cecece 0.5" | Fill settings. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
horizontalScrollBar
Params:
Name | Type | Description |
---|---|---|
value | Object | Object with settings. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
labels
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | true | Value to be set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
left
Returns:
number | string | undefined - Element's left bound setting.Params:
Name | Type | Default | Description |
---|---|---|---|
left | number | string | null | null | Left bound setting for the element. |
Returns:
anychart.core.ui.Timeline - Returns self for method chaining.Try it:
lineMarker
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:
- null/boolean - disable or enable line marker.
- object - sets line marker settings.
Params:
Name | Type | Description |
---|---|---|
value | Object | boolean | null | Line marker settings to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.- null/boolean - disable or enable line marker by index.
- object - sets line marker settings 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
Params:
Name | Type | Description |
---|---|---|
value | Object | Value to be set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
maxHeight
Returns:
number | string | null - Element's maximum height.Params:
Name | Type | Default | Description |
---|---|---|---|
height | number | string | null | null | Maximum height to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
maxWidth
Returns:
number | string | null - Element's maximum width.Params:
Name | Type | Default | Description |
---|---|---|---|
width | number | string | null | null | Maximum width to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
milestones
Returns:
anychart.core.gantt.elements.MilestonesElement - Milestones instance.Params:
Name | Type | Description |
---|---|---|
settings | Object | Object with settings from anychart.core.gantt.elements.MilestonesElement. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.minHeight
Returns:
number | string | null - Element's minimum height.Params:
Name | Type | Default | Description |
---|---|---|---|
height | number | string | null | null | Minimum height to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
minWidth
Returns:
number | string | null - Element's minimum width.Params:
Name | Type | Default | Description |
---|---|---|---|
width | number | string | null | null | Minimum width to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
notWorkingFill
Returns:
anychart.graphics.vector.Fill - Not working intervals fill.Try it:
Not working intervals can be set with gantt calendar API.
NOTE: This fill will be visible only when gantt chart timeline is zoomed to hours or below. Learn more about coloring.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Fill | "lightblue 0.5" | Fill settings. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
periods
Params:
Name | Type | Description |
---|---|---|
settings | Object | Object with settings from anychart.core.gantt.elements.PeriodsElement. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
rangeMarker
Params:
Name | Type | Description |
---|---|---|
index | number | Range marker index. |
Returns:
anychart.core.axisMarkers.GanttRange - Range marker instance by index.Try it:
- null/boolean - disable or enable range marker.
- object - sets range marker settings.
Params:
Name | Type | Description |
---|---|---|
value | Object | boolean | null | Range marker settings to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.- null/boolean - disable or enable range marker by index.
- object - sets range marker settings 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.right
Returns:
number | string | undefined - Element's right bound setting.Params:
Name | Type | Default | Description |
---|---|---|---|
right | number | string | null | null | Right bound setting for the element. |
Returns:
anychart.core.ui.Timeline - Returns self for method chaining.Try it:
rowEvenFill
Params:
Name | Type | Default | Description |
---|---|---|---|
color | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | "#fff" | Color as an object, an object or a string. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.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:
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:
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
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | "#fff" | Color as an array, an object or a string. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.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:
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:
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:
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | "#fff" | Color as an array, an object or a string. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.rowHoverFill
Returns:
anychart.graphics.vector.Fill | string - Row hover fill.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | "#edf8ff" | Color as an object, an array or a string. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.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:
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:
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
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | "#fff" | Color as an object, an array or a string. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.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:
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:
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
Returns:
anychart.graphics.vector.Fill | string - Row fill in selected mode.Try it:
Params:
Name | Type | Description |
---|---|---|
color | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | Color as an object, an array or a string. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.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:
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:
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
Returns:
anychart.scales.GanttDateTime - Default Gantt chart timeline scale value.Try it:
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
Params:
Name | Type | Description |
---|---|---|
settings | Object | Object with settings from anychart.core.gantt.elements.TasksElement. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
textMarker
Params:
Name | Type | Description |
---|---|---|
index | number | Text marker index. |
Returns:
anychart.core.axisMarkers.GanttText - Text marker instance by index.Try it:
- null/boolean - disable or enable text marker.
- object - sets text marker settings.
Params:
Name | Type | Description |
---|---|---|
value | Object | boolean | null | Text marker settings to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.- null/boolean - disable or enable text marker by index.
- object - sets text marker settings 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
timeline.tooltip() is an alias for timeline.elements().tooltip().
Returns:
anychart.core.ui.Tooltip - Tooltip instance.Try it:
timeline.tooltip() is an alias for timeline.elements().tooltip().
- null/boolean - disable or enable tooltip.
- object - sets tooltip settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | boolean | null | true | Tooltip settings. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.top
Returns:
number | string | undefined - Element's top bound setting.Params:
Name | Type | Default | Description |
---|---|---|---|
top | number | string | null | null | Top bound setting for the element. |
Returns:
anychart.core.ui.Timeline - Returns self for method chaining.Try it:
verticalScrollBar
Params:
Name | Type | Description |
---|---|---|
value | Object | Object with settings. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
weekendsFill
Weekends intervals can be set with gantt calendar API.
NOTE: This fill will be visible only when gantt chart timeline is zoomed to days or below. Learn more about coloring.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Fill | "#cecece 0.5" | Fill settings. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
width
Returns:
number | string | undefined - Element's width setting.Params:
Name | Type | Default | Description |
---|---|---|---|
width | number | string | null | null | Width settings for the element. |
Returns:
anychart.core.ui.Timeline - Returns self for method chaining.Try it:
workingFill
Returns:
anychart.graphics.vector.Fill - Working intervals fill.Try it:
Working intervals can be set with gantt calendar API.
NOTE: This fill will be visible only when gantt chart timeline is zoomed to hours or below. Learn more about coloring.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Fill | "none" | Fill settings. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
zIndex
Params:
Name | Type | Default | Description |
---|---|---|---|
zIndex | number | 0 | Value to set. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it:
zoomOnMouseWheel
Returns:
boolean - Is zoom on mouse wheel enabledParams:
Name | Type | Default | Description |
---|---|---|---|
isEnabled | boolean | false | Enable or disable zoom on mouse wheel. |
Returns:
anychart.core.ui.Timeline - Self instance for method chaining.Try it: