The base class for any axis. This is more of an interface/API definition than anything else; see dojox.charting.axis2d.Default for more details.
| Parameter | Type | Description |
|---|---|---|
| chart | dojox/charting/Chart | The chart this axis belongs to. |
| kwArgs | Object |
Optional An optional arguments object to define the axis parameters. |
A flag indicating whether or not this element needs to be rendered.
Any DOMNodes used as a part of this element (such as HTML-based labels).
| Parameter | Type | Description |
|---|---|---|
| fill | undefined | |
| dim | undefined | |
| offsets | undefined |
| Parameter | Type | Description |
|---|---|---|
| fill | undefined | |
| center | undefined | |
| radius | undefined | |
| start | undefined | |
| end | undefined |
| Parameter | Type | Description |
|---|---|---|
| fill | undefined | |
| bbox | undefined |
Stub function to run the calculations needed for drawing this axis.
| Parameter | Type | Description |
|---|---|---|
| min | undefined | |
| max | undefined | |
| span | undefined |
A reference to the axis for functional chaining.
Clean any elements (HTML or GFX-based) out of our group, and create a new one.
| Parameter | Type | Description |
|---|---|---|
| creator | dojox/gfx/shape.Surface |
Optional An optional surface to work with. |
A reference to this object for functional chaining.
Stub function for clearing the axis.
A reference to the axis for functional chaining.
API addition to conform to the rest of the Dojo Toolkit's standard.
Destroy any DOMNodes that may have been created as a part of this element.
A stub function to return any offsets needed for axis and series rendering.
An object of the form { l, r, t, b }.
A stub function to return the scaler object created during calculate.
The scaler object (see dojox.charting.scaler.linear for more information)
| Parameter | Type | Description |
|---|---|---|
| s | undefined | |
| font | undefined |
Get the truncated string based on the limited character count(dichotomy algorithm)
| Parameter | Type | Description |
|---|---|---|
| s | String |
Optional candidate text. |
| font | String |
Optional text's font style. |
| wcLimit | Number |
Optional text limited character count. |
| truncated | Boolean |
Optional whether the input text(s) has already been truncated. |
{
text: processed text, maybe truncated or not,
truncated: whether text has been truncated
}
Get the truncated string based on the limited width in px(dichotomy algorithm)
| Parameter | Type | Description |
|---|---|---|
| s | String |
Optional candidate text. |
| font | String |
Optional text's font style. |
| limitWidth | Number |
Optional text limited width in px. |
| truncated | Boolean |
Optional whether the input text(s) has already been truncated. |
{
text: processed text, maybe truncated or not,
truncated: whether text has been truncated
}
A stub function to return the object that helps define how ticks are rendered.
The ticks object.
Return a flag as to whether or not this axis has been initialized.
If the axis is initialized or not.
Clear any elements out of our group, and destroy the group.
A reference to this object for functional chaining.
Stub function to render this axis.
| Parameter | Type | Description |
|---|---|---|
| dim | undefined | |
| offsets | undefined |
A reference to the axis for functional chaining.