Reference Source
public class | source

Axis

The Axis object is used to instantiate x and y axes, as well as labels

Constructor Summary

Public Constructor
public

constructor(oParams: Object)

Constructor function which sets up the local object.

Member Summary

Public Members
public

Collection of axis labels

public

d3 object for axis container

public

The current calculated height of the chart

public

Amount to truncate axis labels to

public

The current calculated width of the chart

public

The padding for the chart within the container

public

Scale object for the x axis

public

Scale object for the y axis

public

Chart's tooltip object

Method Summary

Public Methods
public

render(): *

Master render to call all rendering methods

public

Render only the x axis

public

Render only the y axis

public

Render only the labels

Public Constructors

public constructor(oParams: Object) source

Constructor function which sets up the local object.

Params:

NameTypeAttributeDescription
oParams Object

configuration parameters object

Throw:

Error

invalid parameters

Public Members

public aAxisLabels: Array source

Collection of axis labels

Properties:

NameTypeAttributeDescription
aAxisLabels *

public d3Container: Object source

d3 object for axis container

Properties:

NameTypeAttributeDescription
d3Container *

public iHeight: Number source

The current calculated height of the chart

Properties:

NameTypeAttributeDescription
iHeight *

public iTruncate: Object source

Amount to truncate axis labels to

Properties:

NameTypeAttributeDescription
iTruncate *

public iWidth: Number source

The current calculated width of the chart

Properties:

NameTypeAttributeDescription
iWidth *

public jPadding: Object source

The padding for the chart within the container

Properties:

NameTypeAttributeDescription
jPadding *

public oScaleX: Object source

Scale object for the x axis

Properties:

NameTypeAttributeDescription
oScaleX *

public oScaleY: Object source

Scale object for the y axis

Properties:

NameTypeAttributeDescription
oScaleY *

public oTooltip: Object source

Chart's tooltip object

Properties:

NameTypeAttributeDescription
oTooltip *

Public Methods

public render(): * source

Master render to call all rendering methods

Return:

*

public renderAxisX() source

Render only the x axis

public renderAxisY() source

Render only the y axis

public renderLabels() source

Render only the labels