MindFusion.Charting Programmer's Guide

PieChart Members

Constructors Properties Methods
 


A class specified for drawing pie charts.

The following tables list the members exposed by the PieChart type.

 Public Constructors

  Name Description

PieChart

Creates a new instance of the PieChart class.

 Public Properties

  Name Description

Data

Specifies the numerical data used for calculating the segments of the pie.

DivisionCoef

Specifies the division coefficient for pie data.

DivisionLabel

Specifies the unit of measure for data in the pie chart.

DoughnutThickness

Gets or sets the thickness of the doughnut as to the radius.

GetPiePieces

Returns a list with all PiePiece objects of the chart.

InnerLabelBackground

Gets or sets the pen for filling the border rectangle of pie inner labels.

InnerLabelBorder

Gets or sets the border drawn around inner labels.

InnerLabelBorderMargin

Gets or sets the margin of the border of inner labels.

InnerLabelFormat

Gets or sets the number format for numerical inner labels.

InnerLabelOutline

Gets or sets the pen for drawing the border rectangle of inner labels.

InnerLabelPosition

Specifies the position of labels inside pie pieces.

InnerLabels

Specifies the text drawn inside each pie piece.

InnerLabelType

Specifies the type of labels to be drawn inside pie pieces.

LabelPrefix

Gets or sets a string prefix for labels inside/outside the pie's pieces.

LabelSuffix

Gets or sets a string suffix for labels inside/outside the pie's pieces.

OuterLabelBackground

Gets or sets the Brush for filling the border rectangle of pie outer labels.

OuterLabelBorder

Gets or sets the border drawn around outer labels.

OuterLabelBorderMargin

Gets or sets the margin for the border of outer labels.

OuterLabelFormat

Gets or sets the number format for numerical outer labels.

OuterLabelOutline

Gets or sets the pen for drawing the border rectangle of outer labels.

OuterLabels

Specifies the text drawn outside each pie piece.

OuterLabelType

Specifies the type of labels drawn outside pie pieces.

OutlinePen

Specifies the chart pen used for drawing the pie outlining.

Pie3DTension

Specifies the flatness of 3D pies.

Pie3DThickness

Specifies the height of 3D pies.

PieceOutIndex

Specifies the index of the detached pie piece.

PieceOutPercent

Specifies the distance at which the detached pie piece is drawn from the center of the pie/doughnut.

PieMargins

Specifies the margins for the pie chart.

PieType

Gets or sets the type of the pie chart to be drawn.

PointerLength

Gets or sets the length of the piece pointers.

RadiusLength

Specifies the radius length of the pie chart.

StartAngle

Gets or sets the start angle for drawing the pieces of the pie.

 Inherited Public Properties

  Name Description

BackgroundBrush

Specifies the brush for the chart background. (Inherited from Chart.)

ChartBrushes

Specifies the brushes used to draw the charts. (Inherited from Chart.)

ChartGraphics

Specifies the Graphics object that is used to draw the chart. (Inherited from Chart.)

ChartMargins

Gets or sets the margins of the chart. (Inherited from Chart.)

ChartPens

Specifies the pens for the charts. (Inherited from Chart.)

ChartSize

Specifies the size of the chart's bounding rectangle. (Inherited from Chart.)

ChartType

Gets the type of the chart. (Inherited from Chart.)

EmptyBrush

Gets a neutral 'unset' brush to reset a Brush property when themes are used. (Inherited from Chart.)

EmptyPen

Gets a neutral 'unset' pen to reset a Pen property when themes are used. (Inherited from Chart.)

FontName

Gets or sets the name of the font for all chart labels. (Inherited from Chart.)

LabelBrush

Specifies the brush that is used for drawing chart labels. (Inherited from Chart.)

LabelFont

Specifies the font for drawing the chart labels. (Inherited from Chart.)

LegendAlignment

Gets or sets the alignment of the legend. (Inherited from Chart.)

LegendBackgroundBrush

Gets or sets the legend background brush. (Inherited from Chart.)

LegendBorder

Gets or sets the Border of the legend. (Inherited from Chart.)

LegendBorderMargin

Gets or sets the margin around the LegendBorder. (Inherited from Chart.)

LegendBrush

Gets or sets the brush for the legend's bounding rectangle. (Inherited from Chart.)

LegendColumns

Gets or sets the count of columns in the chart legend. (Inherited from Chart.)

LegendFont

Gets or sets the font for the chart legend. (Inherited from Chart.)

LegendGridType

Gets or sets the type of the legend grid. (Inherited from Chart.)

LegendLabels

Gets or sets the labels for the legend. (Inherited from Chart.)

LegendOffset

Gets or sets the offset of the chart legend. (Inherited from Chart.)

LegendPen

Gets or sets the pen for the legend's bounding rectangle. (Inherited from Chart.)

LegendPosition

Gets or sets the position of the chart legend. (Inherited from Chart.)

LegendWidth

Gets or sets the width of the legend's rectangle. (Inherited from Chart.)

LegendWordWrap

Gets or sets whether the words of the legend labels are wrapped. (Inherited from Chart.)

MultiColored

Specifies whether the chart is drawn in one color or in different colors. (Inherited from Chart.)

MultiColoredLabels

Specifies whether labels at the chart axes are drawn in different colors. (Inherited from Chart.)

SortOrder

Specifies the sort order of numbers in chart series. (Inherited from Chart.)

SortSeriesBy

Specifies the sort order of data series. (Inherited from Chart.)

SubTitleBrush

Specifies the brush that is used for drawing the chart subtitle. (Inherited from Chart.)

SubTitleFont

Specifies the font, which is used to draw the chart subtitle.  (Inherited from Chart.)

SubTitleOffset

Gets or sets the offset of the SubTitleText. (Inherited from Chart.)

SubTitleText

Specifies the text for the chart subtitle. (Inherited from Chart.)

TextRenderingHint

Specifies the quality, with which text is rendered. (Inherited from Chart.)

Theme

Gets or sets the chart Theme. (Inherited from Chart.)

TitleBrush

Specifies the brush that is used to draw the chart title. (Inherited from Chart.)

TitleFont

Specifies the font, which is used to draw the chart title. (Inherited from Chart.)

TitleOffset

Gets or sets the offset of the TitleText. (Inherited from Chart.)

TitleText

Specifies the text for the chart title. (Inherited from Chart.)

TopLeftPosition

Specifies the position of the chart in the graphics object. (Inherited from Chart.)

 Public Methods

  Name Description

CalculateSize

Calculates the size of the chart and initalizes the variables used back to normal values.

ClearData

Removes all data and labels.

ClearDataBoundLists

Clears all IList properties that support data binding.

Clone

Creates an exact copy of the current PieChart object.

DrawChart

Draws the chart. First, prepares everything needed for drawing the chart.

HitTest

Returns the chart element at the specified position

HitTestPie

Returns the PiePiece at the specified position.

LoadFromXml

Loads PieChart data from an XML document.

ResetThemeProperties

Sets pens and brushes used in themes by pie charts to their default values.

SaveToXml

Saves the PieChart to an XML document.

 Protected Methods

  Name Description

CreateChart

Creates a new PieChart object.

 Inherited Public Methods

  Name Description

CalculateSize

Calculates the size of the chart. (Inherited from Chart.)

ClearData

Removes all labels and numerical data from the chart. (Inherited from Chart.)

ClearDataBoundLists

Clears all IList properties that support data binding. (Inherited from Chart.)

Clone

Creates an exact copy of the current Chart object. (Inherited from Chart.)

DrawChart

Draws the chart in the object assigned to the Graphics property. (Inherited from Chart.)

HitTest

Checks whether a point with the particular coordinates is contained inside a chart element. (Inherited from Chart.)

LoadFromXml

Overloaded. Loads the Chart from an XML document. (Inherited from Chart.)

ResetThemeProperties

Sets pens and brushes used in themes by all chart types to their default values. (Inherited from Chart.)

SaveToXml

Overloaded. Saves the Chart to an XML file. (Inherited from Chart.)

 Inherited Protected Methods

  Name Description

CreateChart

Creates a new Chart object. (Inherited from Chart.)

IsDateTime

Checks if a list contains DateTime values. (Inherited from Chart.)

 See Also