[]
Gets or sets the gap width for the chart group.
For bar and column charts, the gap width specifies the space between bar or column clusters as a percentage of the bar or column width. For Pie of Pie and Bar of Pie charts, it specifies the space between the primary and secondary sections of the chart.
int GapWidth { get; set; }
Property GapWidth As Integer
worksheet.Range["A1:B4"].Value = new object[,] {
{"Category", "Sales"},
{"North", 10},
{"South", 20},
{"West", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, true);
chart.ChartGroups[0].GapWidth = 150;
int gapWidth = chart.ChartGroups[0].GapWidth;