Click or drag to resize

IChartSerieDataFormat BarType Property

Represents the base data format.
Examples
The following code illustrates how to set BaseFormatType.Circle to BarShapeBase:
<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:C2"];</para><para>//Set chart type</para><para>chart.ChartType = ExcelChartType.Bar3DStacked;</para><para>//Set Bar shape base</para><para>chart.Series[0].Format.BarType = BaseFormatType.Circle;</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
BaseFormatType BarType { get; set; }

Property Value

Type: BaseFormatType
See Also