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.pert.Tasks Improve this Doc

Pert tasks settings collector.

Methods Overview

Specific settings
hoverLowerLabels()Hover lower labels settings.
hoverUpperLabels()Hover upper labels settings.
lowerLabels()Lower labels settings.
selectLowerLabels()Select lower labels settings.
selectUpperLabels()Select upper labels settings.
upperLabels()Upper labels settings.
Coloring
color()Color settings.
dummyFill()Fill settings.
dummyStroke()Stroke settings.
fill()Fill settings.
hoverFill()Fill settings.
hoverStroke()Stroke settings in hover mode.
selectFill()Fill settings in selected mode.
selectStroke()Stroke settings in selected mode.
stroke()Stroke settings.
Interactivity
tooltip()Tooltip settings.

Methods Description

color

Getter for tasks color.

Returns:

string - The tasks color.
Setter for tasks color.

Params:

NameTypeDescription
valuestringColor 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 - The current fill color.
Setter for the dummy fill using function. Learn more about coloring.

Params:

NameTypeDefaultDescription
fillFunctionfunction
// 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 myFill; //anychart.graphics.vector.Fill };.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for the dummy fill. Learn more about coloring.

Params:

NameTypeDescription
fillOrColorOrKeysanychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | nullColor as an object or a string or function.
opacityOrAngleOrCxnumberX ratio of center radial gradient.
modeOrCynumber | boolean | anychart.math.Rect | ObjectIf defined then userSpaceOnUse mode, else objectBoundingBox, or Y ratio of center radial gradient.
opacityOrModenumber | anychart.math.Rect | Object | nullOpacity. If defined then userSpaceOnUse mode, else objectBoundingBox.
opacitynumberColor opacity.
fxnumberX ratio of focal point.
fynumberY ratio of focal point.

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
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.
lineJoinanychart.graphics.vector.StrokeLineJoin
Line join style.
lineCapanychart.graphics.vector.StrokeLineCap
Line cap style.

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
// 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 myFill; //anychart.graphics.vector.Fill };.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for the fill. Learn more about coloring.

Params:

NameTypeDescription
fillOrColorOrKeysanychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | nullColor as an object or a string or function.
opacityOrAngleOrCxnumberX ratio of center radial gradient.
modeOrCynumber | boolean | anychart.math.Rect | ObjectIf defined then userSpaceOnUse mode, else objectBoundingBox, or Y ratio of center radial gradient.
opacityOrModenumber | anychart.math.Rect | Object | nullOpacity. If defined then userSpaceOnUse mode, else objectBoundingBox.
opacitynumberColor opacity.
fxnumberX ratio of focal point.
fynumberY ratio of focal point.

Returns:

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

hoverFill

Getter for the hover fill color.

Returns:

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

Params:

NameTypeDefaultDescription
fillFunctionfunction
// 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 myFill; //anychart.graphics.vector.Fill };.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for the hover fill.

Params:

NameTypeDescription
fillOrColorOrKeysanychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | nullColor as an object or a string or function.
opacityOrAngleOrCxnumberX ratio of center radial gradient.
modeOrCynumber | boolean | anychart.math.Rect | ObjectIf defined then userSpaceOnUse mode, else objectBoundingBox, or Y ratio of center radial gradient.
opacityOrModenumber | anychart.math.Rect | Object | nullOpacity. If defined then userSpaceOnUse mode, else objectBoundingBox.
opacitynumberColor opacity.
fxnumberX ratio of focal point.
fynumberY ratio of focal point.

Returns:

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

hoverLowerLabels

Getter for the hover lower labels settings.

Returns:

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

Params:

NameTypeDescription
valueObject | boolean | nullLabels settings.

Returns:

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

hoverStroke

Getter for tasks stroke settings in hover mode.

Returns:

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

Params:

NameTypeDefaultDescription
strokeFunctionfunction
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 in hover mode. 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.
lineJoinanychart.graphics.vector.StrokeLineJoin
Line join style.
lineCapanychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

hoverUpperLabels

Getter for the hover upper labels settings.

Returns:

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

Params:

NameTypeDescription
valueObject | boolean | nullLabels settings.

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
valueObject | boolean | nullLabels settings.

Returns:

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

selectFill

Getter for tasks fill color in selected mode.

Returns:

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

Params:

NameTypeDefaultDescription
fillFunctionfunction
// 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 myFill; //anychart.graphics.vector.Fill };.

Returns:

anychart.core.pert.Tasks - Self instance for method chaining.
Setter for tasks fill settings in selected mode. Learn more about coloring.

Params:

NameTypeDescription
fillOrColorOrKeysanychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | nullColor as an object or a string or function.
opacityOrAngleOrCxnumberX ratio of center radial gradient.
modeOrCynumber | boolean | anychart.math.Rect | ObjectIf defined then userSpaceOnUse mode, else objectBoundingBox, or Y ratio of center radial gradient.
opacityOrModenumber | anychart.math.Rect | Object | nullOpacity. If defined then userSpaceOnUse mode, else objectBoundingBox.
opacitynumberColor opacity.
fxnumberX ratio of focal point.
fynumberY ratio of focal point.

Returns:

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

selectLowerLabels

Getter for the select lower labels settings.

Returns:

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

Params:

NameTypeDescription
valueObject | boolean | nullLabels settings.

Returns:

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

selectStroke

Getter for the stroke settings in selected mode.

Returns:

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

Params:

NameTypeDefaultDescription
strokeFunctionfunction
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 stroke settings in selected mode. Learn more about stroke settings.

Params:

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

Returns:

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

selectUpperLabels

Getter for the select upper labels settings.

Returns:

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

Params:

NameTypeDescription
valueObject | boolean | nullLabels settings.

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
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.
lineJoinanychart.graphics.vector.StrokeLineJoin
Line join style.
lineCapanychart.graphics.vector.StrokeLineCap
Line cap style.

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
valueObject | boolean | null
true
Tooltip settings.

Returns:

anychart.core.pert.Milestones - 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
valueObject | boolean | nullLabels settings.

Returns:

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