Class XlsChartFormat
- Namespace
- Spire.Xls.Core.Spreadsheet.Charts
- Assembly
- Spire.XLS.dll
public class XlsChartFormat : XlsObject, IExcelApplication, IDisposable, IChartFormat, ICloneParent
- Inheritance
-
XlsChartFormat
- Implements
- Derived
- Inherited Members
Properties
AutoScaling
True if Microsoft Excel scales a 3-D chart so that it's closer in size to the equivalent 2-D chart..
public bool AutoScaling { get; set; }
Property Value
BubbleScale
Percent of largest bubble compared to chart in general. ( 0 - 300 ).
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add(ExcelChartType.Bubble3D);chart.DataRange = worksheet.Range["A1:C2"];chart.Series[0].Bubbles = worksheet.Range["A2:C3"];//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set bubble scaleformat.BubbleScale = 50;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public int BubbleScale { get; set; }
Property Value
DataFormatOrNull
[Obsolete("get and set are not implemented")]
public XlsChartSerieDataFormat DataFormatOrNull { get; }
Property Value
Delimiter
[Obsolete("get and set are not implemented")]
public string Delimiter { get; set; }
Property Value
DelimiterLength
[Obsolete("get and set are not implemented")]
public int DelimiterLength { get; }
Property Value
DepthPercent
Returns or sets the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent).
public int DepthPercent { get; set; }
Property Value
DoughnutHoleSize
Size of center hole in a doughnut chart (as a percentage).( 10 - 90 ).
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:C2"];//Set chart typechart.ChartType = ExcelChartType.Doughnut;//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set Doughnut hole sizeformat.DoughnutHoleSize = 60;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public int DoughnutHoleSize { get; set; }
Property Value
DrawingZOrder
Drawing order (0 = bottom of the z-order).
public int DrawingZOrder { get; set; }
Property Value
Elevation
Gets or sets the elevation of the 3-D chart view, in degrees (0 to +90 degrees).
public int Elevation { get; set; }
Property Value
FirstDropBar
Returns object that represents first drop bar.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:C3"];//Set chart typechart.ChartType = ExcelChartType.Line;//Set chart drop barIChartDropBar dropBar = chart.Series[0].Format.Options.FirstDropBar;
public IChartDropBar FirstDropBar { get; }
Property Value
FirstSliceAngle
Angle of the first pie slice expressed in degrees. ( 0 - 360 ).
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:C2"];//Set chart typechart.ChartType = ExcelChartType.Pie;//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set Gap widthformat.FirstSliceAngle = 60;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public int FirstSliceAngle { get; set; }
Property Value
Gap
[Obsolete("get and set are not implemented")]
public int Gap { get; set; }
Property Value
GapDepth
Returns or sets the distance between the data series in a 3-D chart, as a percentage of the marker width.( 0 - 500 )
public int GapDepth { get; set; }
Property Value
GapWidth
Space between categories (percent of bar width), default = 50.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:C3"];//Set chart typechart.ChartType = ExcelChartType.Column3DStacked;//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set Gap widthformat.GapWidth = 400;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public int GapWidth { get; set; }
Property Value
HasRadarAxisLabels
True if a radar chart has axis labels. Applies only to radar charts.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:C2"];//Set chart typechart.ChartType = ExcelChartType.Radar;//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set radar label visibilityformat.HasRadarAxisLabels = false;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public bool HasRadarAxisLabels { get; set; }
Property Value
HasShadowBar
public bool HasShadowBar { get; set; }
Property Value
HasShadowBoppop
public bool HasShadowBoppop { get; set; }
Property Value
HasShadowLine
True if this line has a shadow.
public bool HasShadowLine { get; set; }
Property Value
HasShadowPie
True if this pie has a shadow.
public bool HasShadowPie { get; set; }
Property Value
HasShadowRadar
True if this radar series has a shadow.
public bool HasShadowRadar { get; set; }
Property Value
HasShadowScatter
True if bubble series has a shadow.
public bool HasShadowScatter { get; set; }
Property Value
HasValue
[Obsolete("get and set are not implemented")]
public bool HasValue { get; set; }
Property Value
HasWedgeCallout
[Obsolete("get and set are not implemented")]
public bool HasWedgeCallout { get; set; }
Property Value
HeightPercent
Returns or sets the height of a 3-D chart as a percentage of the chart width
public int HeightPercent { get; set; }
Property Value
Is3D
If true - serie 3D; otherwise serie 2D. Read-only.
public bool Is3D { get; }
Property Value
Is3DPhongShade
True if this surface chart has shading.
public bool Is3DPhongShade { get; set; }
Property Value
IsAreaShadowed
This area has a shadow.
public bool IsAreaShadowed { get; set; }
Property Value
IsBubbleSize
[Obsolete("get and set are not implemented")]
public bool IsBubbleSize { get; set; }
Property Value
IsBubbles
[Obsolete("get and set are not implemented")]
public bool IsBubbles { get; set; }
Property Value
IsCategoryBrokenDown
[Obsolete("get and set are not implemented")]
public bool IsCategoryBrokenDown { get; set; }
Property Value
IsCategoryName
[Obsolete("get and set are not implemented")]
public bool IsCategoryName { get; set; }
Property Value
IsChartChartLine
[Obsolete("get and set are not implemented")]
public bool IsChartChartLine { get; }
Property Value
IsChartLineFormat
If true - format contains series line. Read-only.
public bool IsChartLineFormat { get; }
Property Value
IsClustered
[Obsolete("get and set are not implemented")]
public bool IsClustered { get; set; }
Property Value
IsDefaultElevation
Indicates whether elevation has default value.
public bool IsDefaultElevation { get; }
Property Value
IsDefaultRotation
Indicates whether rotation has default value.
public bool IsDefaultRotation { get; }
Property Value
IsDropBar
If true - format contains drop bar record. Read-only.
public bool IsDropBar { get; }
Property Value
IsFillSurface
[Obsolete("get and set are not implemented")]
public bool IsFillSurface { get; set; }
Property Value
IsHorizontalBar
[Obsolete("get and set are not implemented")]
public bool IsHorizontalBar { get; set; }
Property Value
IsLine
[Obsolete("get and set are not implemented")]
public bool IsLine { get; }
Property Value
IsMarker
If true - format has marker; otherwise false. Read-only.
public bool IsMarker { get; }
Property Value
IsPercentage
[Obsolete("get and set are not implemented")]
public bool IsPercentage { get; set; }
Property Value
IsPrimaryAxis
public bool IsPrimaryAxis { get; }
Property Value
IsSeriesName
[Obsolete("get and set are not implemented")]
public bool IsSeriesName { get; set; }
Property Value
IsShowLeaderLines
[Obsolete("get and set are not implemented")]
public bool IsShowLeaderLines { get; set; }
Property Value
IsSmoothed
If true - format has smothed line; otherwise false. Read-only.
public bool IsSmoothed { get; }
Property Value
IsStacked
[Obsolete("get and set are not implemented")]
public bool IsStacked { get; set; }
Property Value
IsVaryColor
Vary color for each data point.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:C2"];//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set vary colorformat.IsVaryColor = true;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public bool IsVaryColor { get; set; }
Property Value
IsVeryColor
public bool IsVeryColor { get; set; }
Property Value
LineStyle
[Obsolete("get and set are not implemented")]
public DropLineStyleType LineStyle { get; set; }
Property Value
NumSplitValue
[Obsolete("get and set are not implemented")]
public int NumSplitValue { get; set; }
Property Value
Overlap
Space between bars ( -100 : 100 ).
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:C3"];//Set chart typechart.ChartType = ExcelChartType.ColumnStacked;//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set overlapformat.Overlap = 20;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public int Overlap { get; set; }
Property Value
Perspective
Returns or sets the perspective for the 3-D chart view.( 0 - 100 )
public int Perspective { get; set; }
Property Value
PieChartType
[Obsolete("get and set are not implemented")]
public ChartPieType PieChartType { get; set; }
Property Value
PieSecondSize
Returns or sets the size of the secondary section of either a pie of pie chart or a bar of pie chart,
as a percentage of the size of the primary pie. ( 5 - 200 ).
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:F2"];//Set chart typechart.ChartType = ExcelChartType.PieOfPie;//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set second pie sizeformat.PieSecondSize = 40;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public int PieSecondSize { get; set; }
Property Value
PieSeriesLine
Represents series line properties. ( For pie of pie or pie of bar chart types only. ) Read only.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:F2"];//Set chart typechart.ChartType = ExcelChartType.PieOfPie;//Set pie series line borderIChartBorder border = chart.Series[0].Format.Options.PieSeriesLine;//Set colorborder.Color = Color.Red;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public IChartBorder PieSeriesLine { get; }
Property Value
RightAngleAxes
True if the chart axes are at right angles, independent of chart rotation or elevation.
public bool RightAngleAxes { get; set; }
Property Value
Rotation
Returns or sets the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees).(0 to 360 degrees).
public int Rotation { get; set; }
Property Value
SecondDropBar
Returns object that represents second drop bar.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:C3"];//Set chart typechart.ChartType = ExcelChartType.Line;//Set chart first drop barIChartDropBar dropBar = chart.Series[0].Format.Options.FirstDropBar;//Set chart second drop bardropBar = chart.Series[0].Format.Options.SecondDropBar;
public IChartDropBar SecondDropBar { get; }
Property Value
ShowAsPercentsBar
[Obsolete("get and set are not implemented")]
public bool ShowAsPercentsBar { get; set; }
Property Value
ShowAsPercentsLine
[Obsolete("get and set are not implemented")]
public bool ShowAsPercentsLine { get; set; }
Property Value
ShowNegativeBubbles
True to show negative bubbles.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add(ExcelChartType.Bubble3D);chart.DataRange = worksheet.Range["A1:D2"];chart.Series[0].Bubbles = worksheet.Range["A2:C3"];//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set negative bubble visibilityformat.ShowNegativeBubbles = true;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public bool ShowNegativeBubbles { get; set; }
Property Value
SizeRepresents
Returns or sets what the bubble size represents on a bubble chart.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add(ExcelChartType.Bubble3D);chart.DataRange = worksheet.Range["A1:C2"];chart.Series[0].Bubbles = worksheet.Range["A2:C3"];//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set bubble scale and size representsformat.BubbleScale = 50;format.SizeRepresents = BubbleSizeType.Width;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public BubbleSizeType SizeRepresents { get; set; }
Property Value
SplitPercent
[Obsolete("get and set are not implemented")]
public int SplitPercent { get; set; }
Property Value
SplitType
Returns or sets the way the two sections of either a pie of pie chart or a bar
of pie chart are split.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:F2"];//Set chart typechart.ChartType = ExcelChartType.PieOfPie;//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set split typeformat.SplitType = SplitType.Value;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public SplitType SplitType { get; set; }
Property Value
SplitValue
Returns or sets the threshold value separating the two sections of either a pie of pie chart or a bar of pie chart.
//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["A1:F2"];//Set chart typechart.ChartType = ExcelChartType.PieOfPie;//Set chart formatIChartFormat format = chart.Series[0].Format.Options;//Set split valueformat.SplitValue = 20;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public int SplitValue { get; set; }
Property Value
StackValuesBar
[Obsolete("get and set are not implemented")]
public bool StackValuesBar { get; set; }
Property Value
StackValuesLine
[Obsolete("get and set are not implemented")]
public bool StackValuesLine { get; set; }
Property Value
UseDefaultSplitValue
[Obsolete("get and set are not implemented")]
public bool UseDefaultSplitValue { get; set; }
Property Value
WallsAndGridlines2D
[Obsolete("get and set are not implemented")]
public bool WallsAndGridlines2D { get; set; }
Property Value
Methods
Clone(object)
public object Clone(object parent)
Parameters
parent
object