The class for line chart.
Summary
Constructors |
ac.ACLineChart(width, height)
|
Methods |
|
addSecondaryAxis(axis, orientation,position) |
|
addToDom(domId) |
|
addValueSet(index, valueSet) |
|
addValueSetAxis(valueSet, firstAxis,secondAxis) |
|
clearValueSets() |
|
getCurrentRenderingPlatform() |
|
getPrimaryAxis(orientation) |
|
getSecondaryAxis(index, orientation) |
|
isAlignZeroLines() |
|
isDrawValuePoints() |
|
removeSecondaryAxis(axis, orientation,position) |
|
removeSecondaryAxisByIndexOrientation(index, orientation) |
|
setAlignZeroLines(alignZeroLines) |
|
setDrawValuePoints(drawValuePoints) |
|
setPrimaryAxis(axis, orientation,position) |
|
setValueSet(index, valueSet) |
Constructor detail
ac.ACLineChart(width, height)
Constructs a new GWTLineChart with the given width and height in pixels.
Parameters
* width the desired width in pixels.
* height the desired height in pixels.
Example
var chart = new ac.ACLineChart(500, 500);
Method detail
addSecondaryAxis(axis, orientation,position)
Adds a secondary axis.
Parameters
* axis (ac.Axis)
* orientation (ac.AxisOrientation)
* position (ac.AxisPosition)
addToDom(domId)
Add the completed line chart to the DOM by calling this method.
Parameters
String -- the id of the element to which you want to add the line
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()
getCurrentRenderingPlatform()
Returns
* renderingPlatform (ac.RenderingPlatform)
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
isAlignZeroLines()
isDrawValuePoints()
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)
setDrawValuePoints(drawValuePoints)
Parameters
* drawValuePoints (boolean)
setPrimaryAxis(axis, orientation,position)
Sets primary axis.
Parameters
* axis (ac.Axis)
* orientation (ac.AxisOrientation)
* position (ac.AxisPosition)
setValueSet(index, valueSet)
Sets the value set.
Parameters
* index (integer)
* valueSet (ac.ValueSet)