AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.gantt.edit.StructureEdit Improve this Doc

Extends: anychart.core.Base

Structure edit class. The StructureEdit class defines editing setting on the Gantt chart, DataGrid, Timeline. Drag a row on the chart, datagrid, or timeline to edit the structure of the tree data.

Methods Overview

Specific settings
enabled()Disable or enable enabled state.
Coloring
fill()Row fill settings.
placementStroke()Placement line stroke settings.
stroke()Row stroke settings.

Methods Description

enabled

Getter for the enabled state of the edit chart, datagrid, timeline.

Returns:

boolean - Enabled state.
Setter for the enabled state of the edit chart, datagrid, timeline.
Enabled state of the datagrid and timeline has priority over enabled state of the chart. Note: anychart.core.gantt.edit.ElementEdit#enabled method of the timeline has more priority over anychart.core.gantt.edit.StructureEdit#enabled of the timeline.

Params:

NameTypeDefaultDescription
enabledboolean
false
Enabled state to set.

Returns:

anychart.core.gantt.edit.StructureEdit - Self instance for method chaining.

fill

Getter for the row fill while editing structure of the data tree.

Returns:

anychart.graphics.vector.Fill - Element fill settings.
See listing
var edit = chart.edit();
edit.enabled(true);
var fill = edit.fill();
Setter for the row fill while editing structure of a chart using an array, an object or a string. Learn more about coloring.

Params:

NameTypeDescription
coloranychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)>Color as an object, an array or a string.

Returns:

anychart.core.gantt.edit.StructureEdit - Self instance for method chaining.
Row fill while editing structure of a chart color with opacity. Fill as a string or an object.

Params:

NameTypeDefaultDescription
colorstring
'none'
Color as a string.
opacitynumber
Color opacity.

Returns:

anychart.core.gantt.edit.StructureEdit - Self instance for method chaining.
Linear gradient row fill while editing structure of a chart. 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.edit.StructureEdit - Self instance for method chaining.
Radial gradient row fill while editing structure of a chart. 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.edit.StructureEdit - Self instance for method chaining.
Image row fill while editing structure of a chart. Learn more about coloring.

Params:

NameTypeDescription
imageSettingsanychart.graphics.vector.FillObject with settings.

Returns:

anychart.core.gantt.edit.StructureEdit - Self instance for method chaining.

placementStroke

Getter for the placement stroke while editing structure of a chart.

Returns:

anychart.graphics.vector.Stroke - Placement line stroke settings.
See listing
var edit = chart.edit();
edit.enabled(true);
var placementStroke = edit.placementStroke();
Setter for the placement stroke while editing structure of a chart.
The placement stroke is a line to place a row to root item while editing. Learn more about stroke settings.

Params:

NameTypeDescription
coloranychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | nullStroke settings.
thicknessnumberLine thickness.
dashpatternstringControls the pattern of dashes and gaps used to stroke paths.
lineJoinstring | anychart.graphics.vector.StrokeLineJoinLine join style.
lineCapstring | anychart.graphics.vector.StrokeLineCapLine cap style.

Returns:

anychart.core.gantt.edit.StructureEdit - Self instance for method chaining.

stroke

Getter for the row stroke while editing structure of a chart.

Returns:

anychart.graphics.vector.Stroke - Element stroke settings.
See listing
var edit = chart.edit();
edit.enabled(true);
var stroke = edit.stroke();
Setter for the row stroke while editing structure of a chart. Learn more about stroke settings.

Params:

NameTypeDescription
coloranychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | nullStroke settings.
thicknessnumberLine thickness.
dashpatternstringControls the pattern of dashes and gaps used to stroke paths.
lineJoinstring | anychart.graphics.vector.StrokeLineJoinLine join style.
lineCapstring | anychart.graphics.vector.StrokeLineCapLine cap style.

Returns:

anychart.core.gantt.edit.StructureEdit - Self instance for method chaining.
Setter for the row stroke while editing structure of a chart using an object.

Params:

NameTypeDescription
settingsObjectStroke settings from anychart.graphics.vector.Stroke.

Returns:

anychart.core.gantt.edit.StructureEdit - Self instance for method chaining.