AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.pert.Tasks Improve this Doc

Pert tasks settings collector.

Methods Overview

Specific settings
lowerLabels()Lower labels settings.
upperLabels()Upper labels settings.
Coloring
color()Color settings.
dummyFill()Fill settings.
dummyStroke()Stroke settings.
fill()Fill settings.
stroke()Stroke settings.
Interactivity
hovered()Hovered state settings.
normal()Normal state settings.
selected()Selected state settings.
tooltip()Tooltip settings.

Methods Description

color

Getter for tasks color.

Returns:

string - The tasks color.
Setter for tasks color.

Params:

NameTypeDescription
colorstringColor as a string.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

dummyFill

Getter for the dummy fill color.

Returns:

anychart.graphics.vector.Fill - Fill color.
Setter for the dummy fill using function. Learn more about coloring.

Params:

NameTypeDefaultDescription
fillFunctionfunction():anychart.graphics.vector.Fill
// return the fill from the default palette.
function() {
  return this.sourceColor;
};
Fill-function, which should look like this:
function() {
 //  this: {
 //  index : number  - the index of the current point
 //  sourceColor : anychart.graphics.vector.Fill - fill of the current point
 // }
 return fillValue; //anychart.graphics.vector.Fill
};

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for dummy fill settings using a string. Learn more about coloring.

Params:

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

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Dummy fill color with opacity.

Params:

NameTypeDescription
colorstringColor as a string.
opacitynumberColor opacity.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Linear gradient dummy 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.pert.Tasks - Self instance for method chaining.
Radial gradient dummy 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.pert.Tasks - Self instance for method chaining.
Image dummy fill. Learn more about coloring.

Params:

NameTypeDescription
imageSettingsanychart.graphics.vector.FillObject with settings.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

dummyStroke

Getter for tasks dummy stroke.

Returns:

anychart.graphics.vector.Stroke - The milestones stroke.
Setter for tasks dummy stroke by function.

Params:

NameTypeDefaultDescription
strokeFunctionfunction():anychart.graphics.vector.Stroke|anychart.graphics.vector.ColoredFill
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like:
function(){
   // this.index - series index.
   // this.sourceColor -  color returned by fill() getter.
   // this.iterator - series point iterator.
   return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill
}

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for tasks dummy stroke. Learn more about stroke settings.

Params:

NameTypeDefaultDescription
coloranychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
Stroke settings.
thicknessnumber
1
Line thickness.
dashpatternstring
Controls the pattern of dashes and gaps used to stroke paths.
lineJoinstring | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCapstring | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for stroke using an object.

Params:

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

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

fill

Getter for the fill color.

Returns:

anychart.graphics.vector.Fill - The tasks fill color.
Setter for the fill using function. Learn more about coloring.

Params:

NameTypeDefaultDescription
fillFunctionfunction():anychart.graphics.vector.Fill
// return the fill from the default palette.
function() {
  return this.sourceColor;
};
Fill-function, which should look like this:
function() {
 //  this: {
 //  index : number  - the index of the current point
 //  sourceColor : anychart.graphics.vector.Fill - fill of the current point
 // }
 return fillValue; //anychart.graphics.vector.Fill
};

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for fill settings using a string. Learn more about coloring.

Params:

NameTypeDescription
coloranychart.graphics.vector.FillColor as a string.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Fill color with opacity.

Params:

NameTypeDescription
colorstringColor as a string.
opacitynumberColor opacity.

Returns:

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

Params:

NameTypeDescription
imageSettingsanychart.graphics.vector.FillObject with settings.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

hovered

Getter for hovered state settings.

Returns:

anychart.core.pert.Tasks - Hovered state settings
Setter for hovered state settings.

Params:

NameTypeDescription
settingsObjectState settings to set.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

lowerLabels

Getter for the lower labels settings.

Returns:

anychart.core.ui.LabelsFactory - Labels instance.
Setter for the lower labels settings.

Params:

NameTypeDescription
settingsObject | boolean | nullLabels settings to set.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

normal

Getter for normal state settings.

Returns:

anychart.core.pert.Tasks - Normal state settings.
Setter for normal state settings.

Params:

NameTypeDescription
settingsObjectState settings to set.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

selected

Getter for selected state settings.

Returns:

anychart.core.pert.Tasks - Selected state settings
Setter for selected state settings.

Params:

NameTypeDescription
settingsObjectState settings to set.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

stroke

Getter for tasks stroke settings.

Returns:

anychart.graphics.vector.Stroke - The tasks stroke settings.
Setter for tasks stroke by function.

Params:

NameTypeDefaultDescription
strokeFunctionfunction():anychart.graphics.vector.Stroke|anychart.graphics.vector.ColoredFill
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like:
function(){
   // this.index - series index.
   // this.sourceColor -  color returned by fill() getter.
   // this.iterator - series point iterator.
   return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill
}

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for tasks stroke settings. Learn more about stroke settings.

Params:

NameTypeDefaultDescription
coloranychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
Stroke settings.
thicknessnumber
1
Line thickness.
dashpatternstring
Controls the pattern of dashes and gaps used to stroke paths.
lineJoinstring | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCapstring | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for tasks stroke using an object.

Params:

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

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

tooltip

Getter for tasks data tooltip.

Returns:

anychart.core.ui.Tooltip - Tooltip instance.
Setter for tasks data tooltip.

Params:

NameTypeDefaultDescription
settingsObject | boolean | null
true
Tooltip settings.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.

upperLabels

Getter for the upper labels settings.

Returns:

anychart.core.ui.LabelsFactory - Labels instance.
Setter for the upper labels settings.

Params:

NameTypeDescription
settingsObject | boolean | nullLabels settings to set.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.