A convenience constructor to create a typical line chart.
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 |
---|---|---|
o | undefined |
Parameter | Type | Description |
---|---|---|
o | undefined | |
eventName | undefined |
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 |
---|---|---|
seriesName | 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 |
Parameter | Type | Description |
---|---|---|
i | undefined | |
indexed | undefined |
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.
Helper function to connect any object's method to our plotEvent.
Parameter | Type | Description |
---|---|---|
object | Object | The object to connect to. |
method | String | Function | The method to fire when our plotEvent is fired. |
The handle as returned from dojo.connect (see dojo.connect).
Parameter | Type | Description |
---|---|---|
group | undefined | |
value | undefined | |
bbox | undefined | |
theme | undefined |
Parameter | Type | Description |
---|---|---|
run | undefined | |
creator | undefined | |
params | 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.
Find out if any event handlers have been connected to our plotEvent.
A flag indicating that there are handlers attached.
Emulates firing an event for a given data value (specified by an index) of a given series.
Parameter | Type | Description |
---|---|---|
seriesName | String | Series name. |
eventName | String | Event name to emulate. |
index | Number | Valid data value index used to raise an event. |
eventObject | Object |
Optional Optional event object. Especially useful for synthetic events. Default: null. |
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.
Stub function for use by specific plots.
Parameter | Type | Description |
---|---|---|
o | Object | An object intended to represent event parameters. |
Raises events in predefined order
Parameter | Type | Description |
---|---|---|
o | Object | An object intended to represent event parameters. |
Render/draw everything 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.
Parameter | Type | Description |
---|---|---|
group | undefined | |
x | undefined | |
y | undefined | |
label | undefined | |
theme | undefined | |
block | undefined | |
align | undefined |
Reset all events attached to our plotEvent (i.e. disconnect).
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 }