Base class for all plot types.
Parameter | Type | Description |
---|---|---|
chart | dojox/chart/Chart | The chart this plot belongs to. |
kwArgs | Object |
Optional An optional arguments object to help define the plot. |
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 |
Add a data series to this plot.
Parameter | Type | Description |
---|---|---|
run | dojox/charting/Series | The series to be added. |
A reference to this plot for functional chaining.
From an array of axes pick the ones that correspond to this plot and assign them to the plot using setAxis method.
Parameter | Type | Description |
---|---|---|
axes | Array | An array of dojox/charting/axis2d/Base |
Stub function for running the axis calculations (deprecated).
Parameter | Type | Description |
---|---|---|
dim | Object | An object of the form { width, height } |
A reference to this plot 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.
Clear out all of the information tied to this plot.
A reference to this plot 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.
Get how many data series we have, so we know how many colors to use.
The number of colors needed.
Calculate the min/max on all attached series in both directions.
{hmin, hmax, vmin, vmax} min/max in both directions.
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 }
Returns whether or not any of this plot's data series need to be rendered.
Flag indicating if any of this plot's series are invalid and need rendering.
Clear any elements out of our group, and destroy the group.
A reference to this object for functional chaining.
Render the plot on the chart.
Parameter | Type | Description |
---|---|---|
dim | Object | An object of the form { width, height }. |
offsets | Object | An object of the form { l, r, t, b }. |
A reference to this plot for functional chaining.
Parameter | Type | Description |
---|---|---|
group | undefined | |
x | undefined | |
y | undefined | |
label | undefined | |
theme | undefined | |
block | undefined | |
align | undefined |
Set an axis for this plot.
Parameter | Type | Description |
---|---|---|
axis | dojox/charting/axis2d/Base | The axis to set. |
A reference to this plot for functional chaining.