dojox/charting/axis2d/Default (version 1.10)

dojox/charting/axis2d/Invisible

Summary

The default axis object used in dojox.charting. See dojox.charting.Chart.addAxis for details.

Usage

var foo = new Default(chart,kwArgs);
dojox/charting/axis2d/Default
Parameter Type Description
chart dojox/charting/Chart

The chart the axis belongs to.

kwArgs Object
Optional

Any optional keyword arguments to be used to define this axis.

Property Summary

Method Summary

Properties

chart

The parent chart for this element.

defaultParams
dirty
group

The visual GFX group representing this element.

htmlElement

Any DOMNodes used as a part of this element (such as HTML-based labels).

htmlElements
offset
opt

The actual options used to define this axis, created at initialization.

optionalParams
renderingOptions
scale
scaler
ticks

Methods

_getMaxLabelSize(min,max,span,rotation,font,size)
Parameter Type Description
min undefined
max undefined
span undefined
rotation undefined
font undefined
size undefined
Returns:null
_groupLabelWidth(labels,font,wcLimit)
Parameter Type Description
labels undefined
font undefined
wcLimit undefined
Returns:number
_isRtl()
Returns:boolean
_plotFill(fill,dim,offsets)
Parameter Type Description
fill undefined
dim undefined
offsets undefined
Returns:undefined
_pseudoRadialFill(fill,center,radius,start,end)
Parameter Type Description
fill undefined
center undefined
radius undefined
start undefined
end undefined
Returns:undefined | object
_shapeFill(fill,bbox)
Parameter Type Description
fill undefined
bbox undefined
Returns:undefined
calculate(min,max,span)
Parameter Type Description
min undefined
max undefined
span undefined
Returns:function
cleanGroup(creator)
Parameter Type Description
creator undefined
clear()

Clear out all calculated properties on this axis;

The reference to the axis for functional chaining.

createLine(creator,params)
Parameter Type Description
creator undefined
params undefined
Returns:undefined
createText(labelType,creator,x,y,align,textContent,font,fontColor,labelWidth)
Parameter Type Description
labelType undefined
creator undefined
x undefined
y undefined
align undefined
textContent undefined
font undefined
fontColor undefined
labelWidth undefined
Returns:undefined
dependOnData()

Find out whether or not the axis options depend on the data in the axis.

Returns:boolean
destroy()

API addition to conform to the rest of the Dojo Toolkit's standard.

destroyHtmlElements()

Destroy any DOMNodes that may have been created as a part of this element.

getGroup()
Returns:undefined
getOffsets()

Get the physical offset values for this axis (used in drawing data series). This method is not supposed to be called by the users but internally.

Returns:Object | object

The calculated offsets in the form of { l, r, t, b } (left, right, top, bottom).

getScaler()

Get the pre-calculated scaler object.

Returns:undefined
getTextWidth(s,font)
Parameter Type Description
s undefined
font undefined
Returns:number
getTextWithLimitCharCount(s,font,wcLimit,truncated)

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.

Returns:Object | object
{
    text: processed text, maybe truncated or not,
    truncated: whether text has been truncated
}
getTextWithLimitLength(s,font,limitWidth,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.

Returns:Object | object
{
    text: processed text, maybe truncated or not,
    truncated: whether text has been truncated
}
getTicks()

Get the pre-calculated ticks object.

Returns:undefined
getWindowOffset()

Get the current windowing offset for the axis.

Returns:number
getWindowScale()

Get the current windowing scale of the axis.

Returns:number
initialized()

Finds out if this axis has been initialized or not.

Returns:Boolean | boolean

Whether a scaler has been calculated and if the axis is not dirty.

labelTooltip(elem,chart,label,truncatedLabel,font,elemType)
Parameter Type Description
elem undefined
chart undefined
label undefined
truncatedLabel undefined
font undefined
elemType undefined
purgeGroup()

Clear any elements out of our group, and destroy the group.

Returns:dojox/charting/Element | function

A reference to this object for functional chaining.

render(dim,offsets)

Render/draw the axis.

Parameter Type Description
dim Object

An object of the form { width, height}.

offsets Object

An object of the form { l, r, t, b }.

The reference to the axis for functional chaining.

setWindow(scale,offset)

Set the drawing "window" for the axis.

Parameter Type Description
scale Number

The new scale for the axis.

offset Number

The new offset for the axis.

Returns:dojox/charting/axis2d/Default | undefined

The reference to the axis for functional chaining.

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