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
Learn more about coloring.
Params:
| Name | Type | Description |
|---|---|---|
| value | string | Color as a string. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.Try it:
dummyFill
Returns:
anychart.graphics.vector.Fill - The current fill color.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| fillFunction | function | // 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.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| fillOrColorOrKeys | anychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | null | Color as an object or a string or function. |
| opacityOrAngleOrCx | number | X ratio of center radial gradient. |
| modeOrCy | number | boolean | anychart.math.Rect | Object | If defined then userSpaceOnUse mode, else objectBoundingBox, or Y ratio of center radial gradient. |
| opacityOrMode | number | anychart.math.Rect | Object | null | Opacity. If defined then userSpaceOnUse mode, else objectBoundingBox. |
| opacity | number | Color opacity. |
| fx | number | X ratio of focal point. |
| fy | number | Y ratio of focal point. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.Try it:
dummyStroke
Returns:
anychart.graphics.vector.Stroke - The milestones stroke.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| strokeFunction | function | 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.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | Stroke settings. | |
| thickness | number | 1 | Line thickness. |
| dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
| lineJoin | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
| lineCap | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.Try it:
fill
Returns:
anychart.graphics.vector.Fill - The tasks fill color.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| fillFunction | function | // 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.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| fillOrColorOrKeys | anychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | null | Color as an object or a string or function. |
| opacityOrAngleOrCx | number | X ratio of center radial gradient. |
| modeOrCy | number | boolean | anychart.math.Rect | Object | If defined then userSpaceOnUse mode, else objectBoundingBox, or Y ratio of center radial gradient. |
| opacityOrMode | number | anychart.math.Rect | Object | null | Opacity. If defined then userSpaceOnUse mode, else objectBoundingBox. |
| opacity | number | Color opacity. |
| fx | number | X ratio of focal point. |
| fy | number | Y ratio of focal point. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.Try it:
hoverFill
Returns:
anychart.graphics.vector.Fill | function - The tasks hover fill color.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| fillFunction | function | // 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.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| fillOrColorOrKeys | anychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | null | Color as an object or a string or function. |
| opacityOrAngleOrCx | number | X ratio of center radial gradient. |
| modeOrCy | number | boolean | anychart.math.Rect | Object | If defined then userSpaceOnUse mode, else objectBoundingBox, or Y ratio of center radial gradient. |
| opacityOrMode | number | anychart.math.Rect | Object | null | Opacity. If defined then userSpaceOnUse mode, else objectBoundingBox. |
| opacity | number | Color opacity. |
| fx | number | X ratio of focal point. |
| fy | number | Y ratio of focal point. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.Try it:
hoverLowerLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable hover lower labels.
- object - sets hover hover labels settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Labels settings. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.hoverStroke
Returns:
anychart.graphics.vector.Stroke - The tasks hover stroke settings.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| strokeFunction | function | 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.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | Stroke settings. | |
| thickness | number | 1 | Line thickness. |
| dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
| lineJoin | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
| lineCap | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.Try it:
hoverUpperLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable select upper labels.
- object - sets select upper labels settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Labels settings. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.lowerLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable lower labels.
- object - sets lower labels settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Labels settings. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.selectFill
Returns:
anychart.graphics.vector.Fill - The current fill color.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| fillFunction | function | // 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.Try it:
Params:
| Name | Type | Description |
|---|---|---|
| fillOrColorOrKeys | anychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | null | Color as an object or a string or function. |
| opacityOrAngleOrCx | number | X ratio of center radial gradient. |
| modeOrCy | number | boolean | anychart.math.Rect | Object | If defined then userSpaceOnUse mode, else objectBoundingBox, or Y ratio of center radial gradient. |
| opacityOrMode | number | anychart.math.Rect | Object | null | Opacity. If defined then userSpaceOnUse mode, else objectBoundingBox. |
| opacity | number | Color opacity. |
| fx | number | X ratio of focal point. |
| fy | number | Y ratio of focal point. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.Try it:
selectLowerLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable select lower labels.
- object - sets select lower labels settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Labels settings. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.selectStroke
Returns:
anychart.graphics.vector.Stroke - The select stroke settings.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| strokeFunction | function | 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.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null | Stroke settings. | |
| thickness | number | 1 | Line thickness. |
| dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
| lineJoin | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
| lineCap | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.Try it:
selectUpperLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable select upper labels.
- object - sets select upper labels settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Labels settings. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.stroke
Returns:
anychart.graphics.vector.Stroke - The tasks stroke settings.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| strokeFunction | function | 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.Try it:
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | Stroke settings. | |
| thickness | number | 1 | Line thickness. |
| dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
| lineJoin | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
| lineCap | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.Try it:
tooltip
- null/boolean - disable or enable tasks tooltip.
- object - sets tasks tooltip settings.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| value | Object | boolean | null | true | Tooltip settings. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.upperLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable upper labels.
- object - sets upper labels settings.
Params:
| Name | Type | Description |
|---|---|---|
| value | Object | boolean | null | Labels settings. |
Returns:
anychart.core.pert.Tasks - Self instance for method chaining.