Click or drag to resize

IChartSeriesAxis TickLabelSpacing Property

Represents the number of categories or series between tick-mark labels.
Examples
The following code illustrates how to set TickLabelSpacing for IChartSeriesAxis:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Create chart</para><para>IChart chart = worksheet.Charts.Add();</para><para>//Set range</para><para>chart.DataRange = worksheet.Range["A1:C3"];</para><para>//Set chart type</para><para>chart.ChartType = ExcelChartType.Column3D;</para><para>//Set tick label spacing</para><para>chart.PrimarySerieAxis.TickLabelSpacing = 2;</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 TickLabelSpacing { get; set; }

Property Value

Type: Int32
See Also