GWT-dependent implementation of the ac.PieChart2D.
Summary
Constructor detail
ac.ACPieChart(width, height)
Constructs a new ac.ACPieChart 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.ACPieChart(500, 500);
Method detail
addToDom(domId)
Add the completed pie chart to the DOM by calling this method.
Parameters
String -- the id of the element to which you want to add the pie
chart. You can think of it as a CSS / jQuery selector
without the hash (#) character, e.g. 'myDiv'.
addValueSet(valueSet)
Adds a value set to the chart.
Parameters
* valueSet (ac.ValueSet)
clearValueSets()
getCurrentRenderingPlatform()
Returns
ac.RenderingPlatform -- renderingPlatform
getEndAngle()
Retrieves the end angle.
Returns
Float -- end angle
getStartAngle()
Retrieves the start angle.
Returns
Float -- start angle
resetSliceOffsets()
Resets the slice offsets.
setAllSliceOffsets(sliceOffset)
Parameters
* sliceOffset (numeric)
setDonutRadius(donutRadiusProportion)
Sets donut radius propertion.
Parameters
* donutRadiusProportion (numeric)
setEndAngle(endAngle)
Sets the end angle.
Parameters
Float -- end angle
setLabelText(labelText)
Parameters
* labelText (text)
setSliceLabelOffset(labelOffset)
Parameters
* labelOffset (numeric)
setSliceOffset(sliceIndex, sliceOffset)
Parameters
* sliceIndex (integer)
* sliceOffset (numeric)
setStartAngle(startAngle)
Sets start angle.
Parameters
Float -- start angle
setSummarizeLabel(summarizeLabel)
Parameters
* summarizeLabel (text)
setSummarizeThresholdAbsolute(summarizeThresholdAbsolute)
Parameters
* summarizeThresholdAbsolute (numeric)
setSummarizeThresholdPercent(summarizeThresholdPercent)
Parameters
* summarizeThresholdPercent (numeric)
setValueSet(index, valueSet)
Set the value set with passed index.
Parameters
* index (integer) a index of the value set to be set
* valueSet (ac.ValueSet)