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.
Parameter | Type | Description |
---|---|---|
creator | undefined | |
noClip | undefined |
Clear out all of the information tied to this plot.
A reference to this plot for functional chaining.
Parameter | Type | Description |
---|---|---|
group | undefined | |
value | undefined | |
bbox | undefined | |
theme | undefined |
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 }
Initializes scalers using attached axes.
Parameter | Type | Description |
---|---|---|
dim | Object | Size of a plot area in pixels as {width, height}. |
stats | Object | Min/max of data in both directions as {hmin, hmax, vmin, vmax}. |
A reference to this plot for functional chaining.
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.
Returns whether or not this plot needs to be rendered.
The state of the plot.
Create/alter any zooming windows on this plot.
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.
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.
Compute plot axis data coordinates from page coordinates.
Parameter | Type | Description |
---|---|---|
coord | Object | The pixel coordinate in page coordinate space. That is of the following form:
|
The resulting plot axis data coordinates. For cartesian charts that is of the following form:
{ hAxisName: 50, vAxisName: 200 }
Compute page coordinates from plot axis data coordinates.
Parameter | Type | Description |
---|---|---|
coord | Object |
Optional The coordinates in plot axis data coordinate space. For cartesian charts that is of the following form:
|
The resulting page pixel coordinates. That is of the following form:
{ x: 50, y: 200 }