ExcelFile.AddChartSheet Method
Adds a chart sheet to the file. You can then add series and customize the returned ExcelChart object. Note that as this is a chart sheet, the anchor is ignored. The ActiveSheet after adding the chart will be set to the newly inserted chart.
Important: This method only works in xlsx files.
Syntax
Namespace: FlexCel.Core
public abstract ExcelChart AddChartSheet(Int32 insertBefore, TChartType chartType, ChartStyle aChartStyle, Boolean roundedCorners, Boolean print, Boolean isLocked)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
insertBefore | Int32 | The sheet before which we will insert (1 based). This might be SheetCount + 1, to insert at the end of the Workbook. | |
chartType | TChartType | Kind of chart created. Note that you can have more than one type of chart in the same chart, so this just sets the base chart type. You can add other chart types over it. | |
aChartStyle | ChartStyle | Theme of the chart. This is a number between 1 and 48 which defines many standard properties for the chart, like the default line width for the series or the legend. The default style is 2. |
|
roundedCorners | Boolean | If true, the chart will have rounded corners. | |
Boolean | True if the chart should be printed. | ||
isLocked | Boolean | True if the chart is locked. |