Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.19 KB

Excel.ChartGroup.SecondPlotSize.md

File metadata and controls

42 lines (27 loc) · 1.19 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ChartGroup.SecondPlotSize property (Excel)
vbaxl10.chm568099
vbaxl10.chm568099
Excel.ChartGroup.SecondPlotSize
231541fa-0353-3533-6b4b-0653b6157568
04/20/2019
medium

ChartGroup.SecondPlotSize property (Excel)

Returns or sets the size of the secondary section of either a Pie of Pie chart or a Bar of Pie chart, as a percentage of the size of the primary pie. Can be a value from 5 to 200. Read/write Long.

Syntax

expression.SecondPlotSize

expression A variable that represents a ChartGroup object.

Example

This example must be run on either a Pie of Pie chart or a Bar of Pie chart. The example splits the two sections of the chart by value, combining all values under 10 in the primary pie and displaying them in the secondary section. The secondary section is 50 percent of the size of the primary pie.

With Worksheets(1).ChartObjects(1).Chart.ChartGroups(1) 
 .SplitType = xlSplitByValue 
 .SplitValue = 10 
 .VaryByCategories = True 
 .SecondPlotSize = 50 
End With

[!includeSupport and feedback]