Is used to construct a bar chart.
Summary
Constructors |
ac.ACBarChart(width, height)
|
Methods |
|
addSecondaryAxis(axis, orientation,position) |
|
addToDom(domId) |
|
addValueSet(index, valueSet) |
|
addValueSetAxis(valueSet, firstAxis,secondAxis) |
|
clearValueSets() |
|
getBarType() |
|
getPrimaryAxis(orientation) |
|
getSecondaryAxis(index, orientation) |
|
getSubType() |
|
isAlignZeroLines() |
|
removeSecondaryAxis(axis, orientation,position) |
|
removeSecondaryAxisByIndexOrientation(index, orientation) |
|
setAlignZeroLines(alignZeroLines) |
|
setBarType(barType) |
|
setPrimaryAxis(axis, orientation,position) |
|
setSubType(subType) |
|
setValueSet(index, valueSet) |
Constructor detail
ac.ACBarChart(width, height)
Constructs a new ac.GWTLineChart with the given width and height in pixels.
Parameters
* width (integer) the desired width in pixels.
* height (integer) the desired height in pixels.
Example
var chart = new ac.ACBarChart(500, 500);
Method detail
addSecondaryAxis(axis, orientation,position)
Adds a secondary axis.
Parameters
addToDom(domId)
Add the completed bar chart to the DOM by calling this method.
Parameters
String -- the id of the element to which you want to add the bar
chart. You can think of it as a CSS / jQuery selector
without the hash (#) character, e.g. 'myDiv'.
addValueSet(index, valueSet)
Adds a value set to the chart.
Parameters
* index (integer)
* valueSet (ac.ValueSet)
addValueSetAxis(valueSet, firstAxis,secondAxis)
Adds a value set to the chart.
Parameters
* valueSet (ac.ValueSet)
* firstAxis (ac.Axis)
* secondAxis (ac.Axis)
clearValueSets()
getBarType()
Retrieves the bar type.
Returns
* ac.BarType
getPrimaryAxis(orientation)
Retrieves the primary axis.
Parameters
* orientation (ac.AxisOrientation)
Returns
* ac.Axis
getSecondaryAxis(index, orientation)
Retrieves the secondary axis.
Parameters
* index (integer) index of the axis
* orientation (ac.AxisOrientation)
Returns
* ac.Axis
getSubType()
Retrieves the bar sub type.
Returns
* ac.BarSubtype
isAlignZeroLines()
removeSecondaryAxis(axis, orientation,position)
Removes the socondary axis.
Parameters
* axis (ac.Axis)
* orientation (ac.AxisOrientation)
* position (ac.AxisPosition)
removeSecondaryAxisByIndexOrientation(index, orientation)
Removes the socondary axis by index and orientation.
Parameters
* index (integer)
* orientation (ac.AxisOrientation)
setAlignZeroLines(alignZeroLines)
Parameters
* alignZeroLines (boolean)
setBarType(barType)
Sets the bar sub type of the chart.
Parameters
* style (ac.BarSubtype)
setPrimaryAxis(axis, orientation,position)
Sets primary axis.
Parameters
* axis (ac.Axis)
* orientation (ac.AxisOrientation)
* position (ac.AxisPosition)
setSubType(subType)
Sets the bar sub type of the chart.
Parameters
* style (ac.BarSubtype)
setValueSet(index, valueSet)
Sets the value set.
Parameters
* index (integer)
* valueSet (ac.ValueSet)