Class

ac.ACPieChart

GWT-dependent implementation of the ac.PieChart2D.

Summary

Constructors
ac.ACPieChart(width, height)
Methods
addToDom(domId)
addValueSet(valueSet)
clearValueSets()
ac.RenderingPlatform getCurrentRenderingPlatform()
Float getEndAngle()
Float getStartAngle()
resetSliceOffsets()
setAllSliceOffsets(sliceOffset)
setDonutRadius(donutRadiusProportion)
setEndAngle(endAngle)
setLabelText(labelText)
setSliceLabelOffset(labelOffset)
setSliceOffset(sliceIndex, sliceOffset)
setStartAngle(startAngle)
setSummarizeLabel(summarizeLabel)
setSummarizeThresholdAbsolute(summarizeThresholdAbsolute)
setSummarizeThresholdPercent(summarizeThresholdPercent)
setValueSet(index, valueSet)

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()

Clears all value sets.

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)