class anychart.core.pert.Milestones Improve this Doc
Pert milestones settings collector.
Methods Overview
Specific settings | |
hoverLabels() | Labels settings in hover mode. |
labels() | Labels settings. |
selectLabels() | Labels settings in selected mode. |
shape() | Milestones shape. |
Coloring | |
color() | Color settings. |
fill() | Fill settings. |
hoverFill() | Fill settings in hover mode. |
hoverStroke() | Stroke settings in hover mode. |
selectFill() | Fill settings for selected point. |
selectStroke() | Stroke settings in selected state. |
stroke() | Stroke settings. |
Interactivity | |
tooltip() | Tooltip settings. |
Size and Position | |
size() | Milestones size settings |
Methods Description
color
Learn more about coloring.
Params:
Name | Type | Description |
---|---|---|
value | string | Color as a string. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.Try it:
fill
Returns:
anychart.graphics.vector.Fill | function - Current fill color.Try it:
Params:
Name | Type | Description |
---|---|---|
value | anychart.graphics.vector.Fill | Color as an array or a string. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.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.Milestones - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.core.pert.Milestones - 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.core.pert.Milestones - 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.core.pert.Milestones - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.Try it:
hoverFill
Returns:
anychart.graphics.vector.Fill | function - Current fill color.Try it:
Params:
Name | Type | Description |
---|---|---|
value | anychart.graphics.vector.Fill | Color as an array or a string. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.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.Milestones - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.core.pert.Milestones - 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.core.pert.Milestones - 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.core.pert.Milestones - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.Try it:
hoverLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable milestones hover labels.
- object - sets milestones hover labels settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | boolean | null | false | Series data labels settings. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.hoverStroke
Returns:
anychart.graphics.vector.Stroke - The milestones stroke in the hover state.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.Milestones - 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.Milestones - Self instance for method chaining.Try it:
labels
- null/boolean - disable or enable milestones labels.
- object - sets milestones labels settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | boolean | null | false | Milestones data labels settings. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.selectFill
Returns:
anychart.graphics.vector.Fill - Current fill color.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Fill | {color: '#64b5f6'} | Color as an array or a string. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.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.Milestones - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.core.pert.Milestones - 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.core.pert.Milestones - 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.core.pert.Milestones - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.Try it:
selectLabels
Returns:
anychart.core.ui.LabelsFactory - Labels instance.Try it:
- null/boolean - disable or enable labels in selected state.
- object - sets selected labels settings.
Params:
Name | Type | Description |
---|---|---|
value | Object | boolean | null | Milestones data labels settings. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.selectStroke
Returns:
anychart.graphics.vector.Stroke - The milestones stroke in selected state.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.Milestones - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null | Stroke settings. |
thickness | number | 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.Milestones - Self instance for method chaining.Try it:
shape
Returns:
anychart.enums.MilestoneShape | string - The milestones shape.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.enums.MilestoneShape | string | "circle" | Value to set. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.Try it:
size
Params:
Name | Type | Default | Description |
---|---|---|---|
value | number | string | "5%" | Value to set. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.Try it:
stroke
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.Milestones - 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.Milestones - Self instance for method chaining.Try it:
tooltip
- null/boolean - disable or enable milestones tooltip.
- object - sets milestones tooltip settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | boolean | null | true | Tooltip settings. |
Returns:
anychart.core.pert.Milestones - Self instance for method chaining.