class anychart.scales.Geo Improve this Doc
Extends: anychart.core.Base
The Geo class contains methods for configuring Geo scale in the Map.
Methods Overview
Specific settings | |
getType() | Returns scale type. |
maxTicksCount() | Maximum ticks count. |
maximumX() | Scale maximum X settings. |
maximumY() | Scale maximum Y settings. |
minimumX() | Scale minimum X settings. |
minimumY() | Scale minimum Y settings. |
precision() | Precision settings. |
xMinorTicks() | X ticks settings. |
xTicks() | X ticks settings. |
yMinorTicks() | Y minor ticks settings. |
yTicks() | Y ticks settings. |
Size and Position | |
gap() | Gap settings. |
Miscellaneous | |
extendDataRange() | Extends the current input domain with the passed values (if such don't exist in the domain). |
Methods Description
extendDataRange
Extends the current input domain with the passed values (if such don't exist in the domain).
Detailed description
Note: Attention! anychart.scales.Base#finishAutoCalc drops all passed values.
Method extendDataRange should be used after drawing chart.
Method extendDataRange should be used after drawing chart.
Params:
Name | Type | Description |
---|---|---|
x | number | X value that is supposed to extend the input domain. |
y | number | Y value that is supposed to extend the input domain. |
var_args | * | Values that are supposed to extend the input domain. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
gap
Getter for the gap settings.
Returns:
number - Gap value. See listing
var scale = chart.scale(); var gap = scale.gap();
Setter for the gap settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
gap | number | 0 | Gap value to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
getType
maxTicksCount
Getter for maximum ticks count.
Returns:
number - Maximum ticks count. See listing
var maxTicksCount = mapScale.maxTicksCount();
Setter for maximum ticks count.
Use the maxTicksCount() method for interval-mode ticks calculation.
If the number of ticks is greater than set in maxTicksCount(), the scale calculates from 4 to 6 ticks.
Use the maxTicksCount() method for interval-mode ticks calculation.
If the number of ticks is greater than set in maxTicksCount(), the scale calculates from 4 to 6 ticks.
Params:
Name | Type | Description |
---|---|---|
count | number | Count to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
maximumX
Getter for the maximum X.
Returns:
number - Scale maximum X. See listing
var mapScale = australiaMap.scale(); var maximum = mapScale.maximumX();
Setter for the maximum X.
Params:
Name | Type | Description |
---|---|---|
maximumX | number | Maximum X to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
maximumY
Getter for the maximum Y.
Returns:
number - Scale maximum. See listing
var scale = chart.scale(); var maximum = scale.maximumY();
Setter for the maximum Y.
Params:
Name | Type | Description |
---|---|---|
maximumY | number | Maximum Y to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
minimumX
Getter for the minimum X.
Returns:
number - Scale minimum X. See listing
var scale = chart.scale(); var minimum = scale.minimumX();
Setter for the minimum X.
Params:
Name | Type | Description |
---|---|---|
minimumX | number | Minimum X to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
minimumY
Getter for the minimum Y.
Returns:
number - Scale minimum Y. See listing
var mapScale = australiaMap.scale(); var minimum = mapScale.minimumY();
Setter for the minimum Y.
Params:
Name | Type | Description |
---|---|---|
minimumY | number | Minimum Y to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
precision
Getter for the precision.
Returns:
Array.<number> - Precision.Setter for the precision using one value.
Params:
Name | Type | Description |
---|---|---|
precision | Array.<number> | Value to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
Setter for the precision using several values.
Params:
Name | Type | Description |
---|---|---|
xPrecision | number | Precision by x. |
yPrecision | number | Precision by y. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
xMinorTicks
Setter for the set of scale x minor ticks.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Array | An array or object of ticks to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
xTicks
Setter for the set of scale x ticks.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Array | An array or object of ticks to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
yMinorTicks
Setter for the set of scale y minor ticks.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Array | An array or object of ticks to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it:
yTicks
Setter for the set of scale y ticks.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Array | An array or object of ticks to set. |
Returns:
anychart.scales.Geo - Self instance for method chaining.Try it: