Dart Documentationorson_chartsPiePlot3D

PiePlot3D class

A plot that is used for creating 3D pie charts.

Extends

AbstractPlot3D > PiePlot3D

Implements

Plot3D

Static Properties

final Font DEFAULT_SECTION_LABEL_FONT #

The default section label font.

Constructors

new PiePlot3D(PieDataset dataset) #

Creates a new plot using the specified dataset.

Properties

bool autoAdjustDimensions #

inherited from AbstractPlot3D

Chart3D get chart #

inherited from AbstractPlot3D

Returns the chart that the plot is assigned to.

void set chart(Chart3D chart) #

inherited from AbstractPlot3D

Sets the chart that the plot is assigned to.

PieDataset get dataset #

Returns the dataset for this plot.

void set dataset(PieDataset dataset) #

Sets the dataset for the plot and sends a Plot3DChangeEvent to all registered listeners.

num get depth #

Returns the depth of the pie chart in world units. The default value is 0.6.

void set depth(num depth) #

Sets the depth of the chart and sends a Plot3DChangeEvent to all registered listeners.

final Dimension3D dimensions #

Returns the dimensions of the plot (calculated from the radius and depth attributes).

final List<LegendItemInfo> legendInfo #

Returns a list of items to be displayed in the chart's legend. Typically there will be one item per series in the chart. The legendBuilder assigned to the chart will take this list and construct the elements for display.

docs inherited from Plot3D

PieLabelGenerator get legendLabelGenerator #

Returns the label generator used to create labels for the legend items.

void set legendLabelGenerator(PieLabelGenerator generator) #

Sets the label generator used to create labels for the legend and sends a Plot3DChangeEvent to all registered listeners.

num get radius #

Returns the radius of the pie chart in world units. The default value is 5.0.

void set radius(num radius) #

Sets the radius of the pie chart and sends a Plot3DChangeEvent to all registered listeners.

ColorSource sectionColorSource #

ColorSource sectionLabelColorSource #

FontSource sectionLabelFontSource #

PieLabelGenerator get sectionLabelGenerator #

Returns the object that generates labels for the pie sections.

void set sectionLabelGenerator(PieLabelGenerator generator) #

Sets the object that generates labels for the pie sections and sends a change event to all registered listeners.

int segments #

Methods

void addChangeListener(Plot3DChangeListener listener) #

inherited from AbstractPlot3D

Registers a listener to receive notification of changes to the plot.

docs inherited from Plot3D

void axis3DChanged(Axis3DChangeEvent event) #

inherited from AbstractPlot3D

Receives notification of a change to one of the plot's axes. The event contains information about the source of the event.

void compose(World world, num xOffset, num yOffset, num zOffset) #

Composes the objects that are required to display this plot, placing them in the specified world. Typically most of the composition work will be delegated to a renderer, although some plot subclasses (for example, PiePlot3D) will perform the composition directly.

docs inherited from Plot3D

void dataset3DChanged(Dataset3DChangeEvent event) #

inherited from AbstractPlot3D

Receives notification of a change to the plot's dataset.

void fireChangeEvent() #

inherited from AbstractPlot3D

Sends a Plot3DChangeEvent to all registered listeners.

List<Object3D> getLabelFaces(num xOffset, num yOffset, num zOffset) #

Returns a list of faces that are used to track the section label positions in 3D space. There is one on each side of a pie segment, and by looking at the orientation of the face we can tell which is the front side (and thus the correct face to use for the anchor of the pie section label).

void receive(ChartElementVisitor visitor) #

Receives a visitor. This is part of a general mechanism for traversing all the elements that make up a chart structure.

docs inherited from ChartElement

void removeChangeListener(Plot3DChangeListener listener) #

inherited from AbstractPlot3D

Deregisters a listener so that it no longer receives notification of changes to the plot.

docs inherited from Plot3D

void renderer3DChanged(Renderer3DChangeEvent event) #

inherited from AbstractPlot3D

Receives notification of a change to the renderer. The event contains information about the source of the event.