class anychart.core.axes.MapSettings Improve this Doc
Extends: anychart.core.VisualBase
Map axes settings class.
Methods Overview
Specific settings | |
enabled() | Disable or enable axis. |
minorTicks() | Minor ticks settings. |
overlapMode() | Overlap mode for labels. |
ticks() | Ticks settings. |
title() | Title settings. |
Axes and Scales | |
bottom() | Bottom axis settings. |
left() | Left axis settings. |
right() | Right axis settings. |
top() | Top axis settings. |
Coloring | |
stroke() | Stroke settings. |
Labels | |
drawFirstLabel() | Drawing of the first label. |
drawLastLabel() | Drawing of the last label. |
labels() | Labels settings. |
minorLabels() | Minor labels settings. |
Size and Position | |
zIndex() | Z-index of the element. |
Methods Description
bottom
Setter for the bottom axis.
Detailed description
Sets bottom axis settings depending on parameter type:
- null/boolean - disable or enable bottom axis.
- object - sets bottom axis settings.
Params:
Name | Type | Description |
---|---|---|
settings | boolean | Object | Settings for axis. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.drawFirstLabel
Getter for the first label drawing flag.
Returns:
boolean - Drawing flag.Setter for the first label drawing flag.
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.Try it:
drawLastLabel
Getter for the last label drawing flag.
Returns:
boolean - Drawing flag.Setter for the last label drawing flag.
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.Try it:
enabled
Getter for the axis enabled state.
Returns:
boolean - Axis enabled state.Setter for the axis enabled state.
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | false | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.Try it:
labels
Setter for axis labels.
Detailed description
Sets axis labels settings depending on parameter type:
- null/boolean - disable or enable axis labels.
- object - sets axis labels settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | null | true | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.left
Setter for the left axis.
Detailed description
Sets left axis settings depending on parameter type:
- null/boolean - disable or enable left axis.
- object - sets left axis settings.
Params:
Name | Type | Description |
---|---|---|
settings | boolean | Object | Settings for axis. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.minorLabels
Setter for axis minor labels.
Detailed description
Sets axis minor labels settings depending on parameter type:
- null/boolean - disable or enable axis minor labels.
- object - sets axis minor labels settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | null | false | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.minorTicks
Setter for minor axis ticks.
Detailed description
Sets axis minor ticks settings depending on parameter type:
- null/boolean - disable or enable axis minor ticks.
- object - sets axis minor ticks settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | null | false | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.overlapMode
Getter for labels overlap mode.
Returns:
anychart.enums.LabelsOverlapMode | string - Overlap mode.Setter for labels overlap mode.
Params:
Name | Type | Default | Description |
---|---|---|---|
mode | anychart.enums.LabelsOverlapMode | string | 'noOverlap' | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.Try it:
right
Setter for the right axis.
Detailed description
Sets right axis settings depending on parameter type:
- null/boolean - disable or enable right axis.
- object - sets right axis settings.
Params:
Name | Type | Description |
---|---|---|
settings | boolean | Object | Settings for axis. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.stroke
Getter for axis stroke settings.
Returns:
anychart.graphics.vector.Stroke - Axis stroke settings.Setter for axis stroke settings.
Learn more about stroke settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null | '#CECECE' | Stroke settings. |
thickness | number | 1 | Line thickness. |
dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
lineJoin | string | anychart.graphics.vector.StrokeLineJoin | 'round' | Line join style. |
lineCap | string | anychart.graphics.vector.StrokeLineCap | 'square' | Line cap style. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.Try it:
Setter for axis stroke settings using an object.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Object with stroke settings from anychart.graphics.vector.Stroke |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.Try it:
ticks
Setter for axis ticks.
Detailed description
Sets axis ticks settings depending on parameter type:
- null/boolean - disable or enable axis ticks.
- object - sets axis ticks settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | null | true | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.title
Setter for the axis title.
Detailed description
Sets axis title settings depending on parameter type:
- null/boolean - disable or enable axis title.
- string - sets axis title text value.
- object - sets axis title settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | null | boolean | Object | string | false | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.top
Setter for the top axis.
Detailed description
Sets top axis settings depending on parameter type:
- null/boolean - disable or enable top axis.
- object - sets top axis settings.
Params:
Name | Type | Description |
---|---|---|
settings | boolean | Object | Settings for axis. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.zIndex
Setter for the Z-index of the element.
Detailed description
The bigger the index - the higher the element position is.
Params:
Name | Type | Default | Description |
---|---|---|---|
zIndex | number | 0 | Value to set. |
Returns:
anychart.core.axes.MapSettings - Self instance for method chaining.Try it: