dojox/charting/axis2d/common.createText (version 1.10)

Method Summary

  • gfx(chart,creator,x,y,align,text,font,fontColor) Use dojox.gfx to create any text.
  • html(chart,creator,x,y,align,text,font,fontColor,labelWidth) Use the HTML DOM to create any text.

Methods

gfx(chart,creator,x,y,align,text,font,fontColor)

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.

Returns:dojox.gfx.Text | undefined

The resultant GFX object.

html(chart,creator,x,y,align,text,font,fontColor,labelWidth)

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.

Returns:DOMNode | undefined

The resultant DOMNode (a "div" element).

Error in the documentation? Can’t find what you are looking for? Let us know!