# GrapeCity.Documents.Excel.Drawing.IChartGroup.GapWidth

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Drawing_IChartGroup_GapWidth_" data-uid="GrapeCity.Documents.Excel.Drawing.IChartGroup.GapWidth*">GapWidth Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Drawing_IChartGroup_GapWidth_" data-uid="GrapeCity.Documents.Excel.Drawing.IChartGroup.GapWidth*"></a>
<h4 id="GrapeCity_Documents_Excel_Drawing_IChartGroup_GapWidth" data-uid="GrapeCity.Documents.Excel.Drawing.IChartGroup.GapWidth">GapWidth</h4>
<div class="markdown level1 summary"><p>Gets or sets the gap width for the chart group.</p>
<p>
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.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">int GapWidth { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Property GapWidth As Integer</code></pre>
</div>
<h5 id="GrapeCity_Documents_Excel_Drawing_IChartGroup_GapWidth_examples">Examples</h5>
<pre><code class="lang-csharp">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;</code></pre>

</div>
