Click or drag to resize

IChartCategoryAxis AxisBetweenCategories Property

If true - cuts unused plot area. Default for area, surface charts.
Examples
The following code illustrates how to set AxisBetweenCategories to "false" so that chart serie would be plotted on the tick marks:
<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 and set range</para><para>IChart chart = worksheet.Charts.Add();</para><para>chart.DataRange = worksheet.Range["A1:C2"];</para><para>//Set chart category axis</para><para>IChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis;</para><para>//Set category axis IsBetween</para><para>categoryAxis.AxisBetweenCategories = false;</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
bool AxisBetweenCategories { get; set; }

Property Value

Type: Boolean
See Also