class anychart.standalones.ProjectTimeline Improve this Doc
Extends: anychart.core.ui.Timeline
The ProjectTimeline class contains methods for configuring standalones project 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. |
Chart Coloring | |
palette() | Palette settings. |
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. |
rowStroke() | Row stroke settings. |
Data | |
data() | Data settings. |
Elements | |
baselines() | Baselines settings. |
connectors() | Connectors settings. |
elements() | Elements settings. |
groupingTasks() | Grouping tasks settings. |
milestones() | Milestones settings. |
periods() | Periods settings. |
tasks() | Tasks settings. |
Events | |
listen() | Adds an event listener |
listenOnce() | Adds a single time event listener |
removeAllListeners() | Removes all listeners |
unlisten() | Removes the listener |
unlistenByKey() | Removes the listener by the key |
Interactivity | |
edit() | Live edit settings. |
enabled() | Element state (enabled or disabled). |
horizontalScrollBar() | Horizontal scroll bar settings. |
tooltip() | Tooltip settings. |
verticalScrollBar() | Vertical scroll bar settings. |
Labels | |
labels() | Labels settings. |
Size and Position | |
bottom() | Bottom bound settings. |
bounds() | Bounds settings. |
defaultRowHeight() | Default row height settings. |
getPixelBounds() | Returns pixel bounds. |
headerHeight() | Header height. |
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. |
Miscellaneous | |
container() | Container for the elements. |
draw() | Draws timeline. |
parentBounds() | Getter for the parent bounds. |
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.standalones.ProjectTimeline - Self instance for method chaining.Params:
Name | Type | Default | Description |
---|---|---|---|
color | string | 'none' | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.Try it:
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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
settings | Object | Stroke settings from anychart.graphics.vector.Stroke. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
container
Returns:
anychart.graphics.vector.Layer | anychart.graphics.vector.Stage - An instance of the class for method chaining.Params:
Name | Type | Description |
---|---|---|
element | anychart.graphics.vector.Layer | anychart.graphics.vector.Stage | string | Element | The value to set. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.data
var data = timeLine.data();
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.Tree | anychart.data.TreeView | Data tree. |
fillMethod | anychart.enums.TreeFillingMethod | string | Fill method. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.Try it:
defaultRowHeight
Returns:
number - Default row height.var defaultRowHeight = timeLine.defaultRowHeight();
Params:
Name | Type | Default | Description |
---|---|---|---|
height | number | 20 | Default row height to set. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.Try it:
draw
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.Try it:
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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
headerHeight
Returns:
number - Returns the header height.var headerHeight = timeLine.headerHeight();
Params:
Name | Type | Description |
---|---|---|
height | number | Header height to be set. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Returns self for method chaining.Try it:
horizontalScrollBar
Params:
Name | Type | Description |
---|---|---|
value | Object | Object with settings. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.Try it:
labels
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | true | Value to be set. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.listen
Note Notice that if the existing listener is one-off (added using listenOnce), it will cease to be such after calling the listen() method.
Params:
Name | Type | Default | Description |
---|---|---|---|
type | string | The event type id. | |
listener | function(e:Object) | Callback method. Function that looks like: function(event){ // event.actualTarget - actual event target // event.currentTarget - current event target // event.iterator - event iterator // event.originalEvent - original event // event.point - event point // event.pointIndex - event point index } | |
useCapture | boolean | false | Whether to fire in capture phase. Learn more about capturing https://javascript.info/bubbling-and-capturing |
listenerScope | Object | Object in whose scope to call the listener. |
Returns:
Object - Unique key for the listener.Try it:
listenOnce
If the event handler being added already exists, listenOnce will do nothing.
Note In particular, if the handler is already registered using listen(), listenOnce() will not make it one-off. Similarly, if a one-off listener already exists, listenOnce will not change it (it wil remain one-off).
Params:
Name | Type | Default | Description |
---|---|---|---|
type | string | The event type id. | |
listener | function(e:Object) | Callback method. | |
useCapture | boolean | false | Whether to fire in capture phase. Learn more about capturing https://javascript.info/bubbling-and-capturing |
listenerScope | Object | Object in whose scope to call the listener. |
Returns:
Object - Unique key for the listener.Try it:
markers
Params:
Name | Type | Description |
---|---|---|
value | Object | Value to be set. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
palette
var palette = timeline.palette();
Params:
Name | Type | Description |
---|---|---|
paletteSettings | anychart.palettes.RangeColors | anychart.palettes.DistinctColors | Object | Array.<string> | Timeline colors palette settings to set. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.parentBounds
Bounds that would be used in case of percent size calculations. Expects pixel values only.
Returns:
anychart.math.Rect - The parent bounds of the element.Bounds that would be used in case of percent size calculations. Expects pixel values only.
Params:
Name | Type | Description |
---|---|---|
bounds | anychart.math.Rect | Object | number | null | Bounds to set. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.Bounds that would be used in case of percent size calculations. Expects pixel values only.
Params:
Name | Type | Description |
---|---|---|
left | number | Left space. |
top | number | Top space. |
width | number | Element width. |
height | number | Element height. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.periods
Params:
Name | Type | Description |
---|---|---|
settings | Object | Object with settings from anychart.core.gantt.elements.PeriodsElement. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.removeAllListeners
Params:
Name | Type | Description |
---|---|---|
type | string | Type of event to remove, default is to remove all types. |
Returns:
number - Number of listeners removed.Try it:
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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.Try it:
rowStroke
Returns:
string | anychart.graphics.vector.Stroke - Row stroke.var rowStroke = timeline.rowStroke();
Params:
Name | Type | Description |
---|---|---|
color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | 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.standalones.ProjectTimeline - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
settings | Object | Stroke settings from anychart.graphics.vector.Stroke. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Returns self for method chaining.Try it:
unlisten
Params:
Name | Type | Default | Description |
---|---|---|---|
type | string | The event type id. | |
listener | function(e:Object):boolean|undefined | Callback method. | |
useCapture | boolean | false | Whether to fire in capture phase. Learn more about capturing https://javascript.info/bubbling-and-capturing |
listenerScope | Object | Object in whose scope to call the listener. |
Returns:
boolean - Whether any listener was removed.Try it:
unlistenByKey
Params:
Name | Type | Description |
---|---|---|
key | Object | The key returned by listen() or listenOnce(). |
Returns:
boolean - Whether any listener was removed.Try it:
verticalScrollBar
Params:
Name | Type | Description |
---|---|---|
value | Object | Object with settings. |
Returns:
anychart.standalones.ProjectTimeline - 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.standalones.ProjectTimeline - Returns self for method chaining.Try it:
zIndex
Params:
Name | Type | Default | Description |
---|---|---|---|
zIndex | number | 0 | Value to set. |
Returns:
anychart.standalones.ProjectTimeline - Self instance for method chaining.Try it: