CenterLabels Method

The CenterLabels method centers the doughnut plot labels inside the ring.

Syntax

object.CenterLabels

Example 1

This example demonstrates how to center the doughnut plot labels.

DoughnutPlot1.CenterLabels

Example 2

This example demonstrates how to combine several doughnut plots and center each doughnut plot labels inside the specific ring.

Set DoughnutPlot2 = Shapes.AddDoughnutPlot(GrapherApp.Path + "\samples\doughnutplot.dat",3,4)

DoughnutPlot1.HolePercent = 75

DoughnutPlot2.HolePercent = 66.66

 

'Set DoughnutPlot2 properties relative to DoughnutPlot1

DoughnutPlot2.Diameter = DoughnutPlot1.Diameter*0.75

DoughnutPlot2.xPos = DoughnutPlot1.xPos

DoughnutPlot2.yPos = DoughnutPlot1.yPos

 

'Center the labels

DoughnutPlot1.CenterLabels

DoughnutPlot2.CenterLabels

 

'Combine the doughnut plots

DoughnutPlot1.Select

DoughnutPlot2.Select

Plot.Selection.Combine

 

Used by: AutoDoughnutPlot object