Click or drag to resize

IChart GapDepth Property

Returns or sets the distance between the data series in a 3-D chart, as a percentage of the marker width.( 0 - 500 )
Examples
The following code illustrates how to set GapDepth to a Column 3D chart:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Add data</para><para>worksheet.Range["A1"].Text = "Jan";
 worksheet.Range["B1"].Text = "Feb";
 worksheet.Range["C1"].Text = "Mar";
 worksheet.Range["A2"].Text = "10";
 worksheet.Range["B2"].Text = "20";
 worksheet.Range["C2"].Text = "30";</para><para>//Create chart and range</para><para>Chart chart = worksheet.Charts.Add();</para><para>chart.DataRange = worksheet.Range["A1:C2"];</para><para>//Set gap depth</para><para>chart.ChartType = ExcelChartType.Column3DClustered;</para><para>chart.GapDepth = 450;</para><para>//Save to file</para><para>workbook.SaveToFile("Chart.xlsx");</para>

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
int GapDepth { get; set; }

Property Value

Type: Int32
See Also