class anychart.core.axes.Polar Improve this Doc
Extends: anychart.core.VisualBase
Polar axis class.
Methods Overview
Specific settings | |
labels() | Labels settings. |
minorLabels() | Minor labels settings. |
minorTicks() | Minor ticks settings. |
overlapMode() | Overlap mode for labels. |
scale() | Scale settings. |
ticks() | Ticks settings. |
Coloring | |
stroke() | Stroke settings. |
Events | |
listen() | Adds an event listener. |
listenOnce() | Adds a single time event listener. |
removeAllListeners() | Removes all listeners. |
unlisten() | Removes the listener. |
unlistenByKey() | Removes the listener by the key. |
Export | |
print() | Prints all elements. |
Interactivity | |
enabled() | Element state (enabled or disabled). |
Size and Position | |
getRemainingBounds() | Returns remaining parent bounds to use elsewhere. |
zIndex() | Z-index of the element. |
Methods Description
enabled
Returns:
boolean - The current element state.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
value | boolean | true |
Value to set. |
Returns:
anychart.core.VisualBase - Self instance for method chaining.if (!element.enabled()) element.enabled(true);
Try it:
getRemainingBounds
Returns:
anychart.math.Rect - Parent bounds without the space used by the title.Try it:
labels
- null/boolean - disable or enable axis labels.
- object - sets axis labels settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | boolean | null | true |
Axis labels. |
Returns:
anychart.core.axes.Polar - Self instance for method chaining.Try it:
listen
Note Notice that if the existing listener is one-off (added using listenOnce), it will cease to be such after calling the listen() method.
Params:
Name | Type | Description |
---|---|---|
type | string | The event type id. |
listener | function | Callback method. Function that looks like function(event){
// event.actualTarget - actual event target
// event.currentTarget - current event target
// event.iterator - event iterator
// event.originalEvent - original event
// event.point - event point
// event.pointIndex - event point index
} . |
useCapture | boolean | Whether to fire in capture phase (defaults to false). |
listenerScope | Object | Object in whose scope to call the listener. |
Returns:
Object - Unique key for the listener.Try it:
listenOnce
If the event handler being added already exists, listenOnce will do nothing.
Note In particular, if the handler is already registered using listen(), listenOnce() will not make it one-off. Similarly, if a one-off listener already exists, listenOnce will not change it (it wil remain one-off).
Params:
Name | Type | Description |
---|---|---|
type | string | The event type id. |
listener | function | Callback method. |
useCapture | boolean | Whether to fire in capture phase (defaults to false). |
listenerScope | Object | Object in whose scope to call the listener. |
Returns:
Object - Unique key for the listener.Try it:
minorLabels
Returns:
anychart.core.ui.LabelsFactory - Axis labels instance.Try it:
- null/boolean - disable or enable axis minor labels.
- object - sets axis minor labels settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | boolean | null | false |
Axis labels. |
Returns:
anychart.core.axes.Polar - Self instance for method chaining.minorTicks
- null/boolean - disable or enable axis minor ticks.
- object - sets axis minor ticks settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | boolean | null | false |
Axis ticks. |
Returns:
anychart.core.axes.Polar - Self instance for method chaining.overlapMode
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.enums.LabelsOverlapMode | string | "noOverlap" |
Value to set. |
Returns:
anychart.core.axes.Polar - Self instance for method chaining.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
paperSize | anychart.graphics.vector.PaperSize | Paper size. | |
landscape | boolean | false |
Flag of landscape. |
Try it:
removeAllListeners
Params:
Name | Type | Description |
---|---|---|
type | string | Type of event to remove, default is to remove all types. |
Returns:
number - Number of listeners removed.Try it:
scale
Returns:
anychart.scales.ScatterBase - Axis scale.Params:
Name | Type | Description |
---|---|---|
value | anychart.scales.ScatterBase | Value to set. |
Returns:
anychart.core.axes.Polar - Self instance for method chaining.Try it:
stroke
Returns:
anychart.graphics.vector.Stroke - Axis line stroke settings.Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | "#eaeaea" |
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.axes.Polar - Self instance for method chaining.Try it:
ticks
- null/boolean - disable or enable axis ticks.
- object - sets axis ticks settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | Object | boolean | null | false |
Axis ticks. |
Returns:
anychart.core.axes.Polar - Self instance for method chaining.Try it:
unlisten
Params:
Name | Type | Description |
---|---|---|
type | string | The event type id. |
listener | function | Callback method. |
useCapture | boolean | Whether to fire in capture phase (defaults to false). |
listenerScope | Object | Object in whose scope to call the listener. |
Returns:
boolean - Whether any listener was removed.Try it:
unlistenByKey
Params:
Name | Type | Description |
---|---|---|
key | Object | The key returned by listen() or listenOnce(). |
Returns:
boolean - Whether any listener was removed.Try it:
zIndex
Returns:
number - The current zIndex.Try it:
Params:
Name | Type | Default | Description |
---|---|---|---|
value | number | 0 |
Value to set. |
Returns:
anychart.core.VisualBase - Self instance for method chaining.Try it: