Use dojox.gfx to create any text.
Parameter | Type | Description |
---|---|---|
chart | dojox.charting.Chart | The chart to create the text into. |
creator | Object | The graphics surface to use for creating the text. |
x | Number | Where to create the text along the x axis (CSS left). |
y | Number | Where to create the text along the y axis (CSS top). |
align | String | How to align the text. Can be "left", "right", "center". |
text | String | The text to render. |
font | String | The font definition, a la CSS "font". |
fontColor | String | dojo.Color | The color of the resultant text. |
The resultant GFX object.
Use the HTML DOM to create any text.
Parameter | Type | Description |
---|---|---|
chart | dojox.charting.Chart | The chart to create the text into. |
creator | Object | The graphics surface to use for creating the text. |
x | Number | Where to create the text along the x axis (CSS left). |
y | Number | Where to create the text along the y axis (CSS top). |
align | String | How to align the text. Can be "left", "right", "center". |
text | String | The text to render. |
font | String | The font definition, a la CSS "font". |
fontColor | String | dojo.Color | The color of the resultant text. |
labelWidth | Number |
Optional The maximum width of the resultant DOM node. |
The resultant DOMNode (a "div" element).