Version

PieChart Property

Returns an Appearance object that you can use to access all the formatting properties of a Pie Chart.
Syntax
'Declaration
 
Public Property PieChart As PieChartAppearance
public PieChartAppearance PieChart {get; set;}
Example
'the following shows PieChart Setting, but also applies to Doughnut chart and PieChart3D
'in the following code PieChart can be replaced by Doughnut chart to set the same properties
'sets whether to break all the slices in the pie chart
UltraChart1.PieChart.BreakAllSlices = True
'determines whether to break alternating slices
UltraChart1.PieChart.BreakAlternatingSlices = True
'sets the distance to break slices
UltraChart1.PieChart.BreakDistancePercentage = 25
'determines whether to break the "others" slice
UltraChart1.PieChart.BreakOthersSlice = False
'Method that explicitly breaks a certain slice/or places it back in the pie
UltraChart1.PieChart.BreakSlice(2, True)
'resets all slices that are broken
UltraChart1.PieChart.BreakSliceReset()
'see ChartTextObject
'UltraChart1.PieChart.ChartText
'sets the column of data to use for the pie
UltraChart1.PieChart.ColumnIndex = 2
'see Pie Labels object
'UltraChart1.PieChart.Labels
'determines what percentage or less is considered part of the others category
UltraChart1.PieChart.OthersCategoryPercent = 2
'3D only, sets the thickness of the pie
UltraChart1.PieChart.PieThickness = 23
'sets the column of data to use for the pie
UltraChart1.PieChart.SetDataColumnIndex(2)
'sets the angle at which to start the first slice
UltraChart1.PieChart.StartAngle = 45
'Dougnut chart only, sets the size of the hole
UltraChart1.DoughnutChart.InnerRadius = 35
// the following shows PieChart Setting, but also applies to Doughnut chart and PieChart3D
// in the following code PieChart can be replaced by Doughnut chart to set the same properties
// sets whether to break all the slices in the pie chart
UltraChart1.PieChart.BreakAllSlices = True;
// determines whether to break alternating slices
UltraChart1.PieChart.BreakAlternatingSlices = True;
// sets the distance to break slices
UltraChart1.PieChart.BreakDistancePercentage = 25;
// determines whether to break the "others" slice
UltraChart1.PieChart.BreakOthersSlice = False;
// method that explicitly breaks a certain slice/or places it back in the pie
UltraChart1.PieChart.BreakSlice(2, True);
// resets all slices that are broken
UltraChart1.PieChart.BreakSliceReset();
// see ChartTextObject
// ultrachart1.piechart.charttext
// sets the column of data to use for the pie
UltraChart1.PieChart.ColumnIndex = 2;
// see Pie Labels object
// ultrachart1.piechart.labels
// determines what percentage or less is considered part of the others category
UltraChart1.PieChart.OthersCategoryPercent = 2;
// 3d only, sets the thickness of the pie
UltraChart1.PieChart.PieThickness = 23;
// sets the column of data to use for the pie
UltraChart1.PieChart.SetDataColumnIndex(2);
// sets the angle at which to start the first slice
UltraChart1.PieChart.StartAngle = 45;
//Dougnut chart only, sets the size of the hole
UltraChart1.DoughnutChart.InnerRadius = 35;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also