[]
Represents a chart object in a worksheet.
public interface IChart
Returns the IChartGroup object that represents the area chart group on a 3-D chart.
IChartGroup Area3DGroup { get; }
Returns an object that represents a collection of the area chart groups IChartGroups, on a 2D chart.
IChartGroups AreaGroups { get; }
Gets or sets the scaling (True to scale a 3-D chart so that it's closer in size to the equivalent 2-D chart. The RightAngleAxes property must be True).
bool AutoScaling { get; set; }
Returns an object that represents a collection of the axes on the chart.
IAxes Axes { get; }
Returns the IWall object that allows the user to individually format the back wall of a 3-D chart.
IWall BackWall { get; }
Returns the IChartGroup object that represents the bar chart group on a 3-D chart.
IChartGroup Bar3DGroup { get; }
Returns an object that represents a collection of the bar chart groups IChartGroups, on a 2D chart.
IChartGroups BarGroups { get; }
Returns or sets the shape used with the 3-D bar or column chart.
BarShape BarShape { get; set; }
Returns the IChartArea object that represents the complete chart area for the chart.
IChartArea ChartArea { get; }
Returns an object that represents a collection of all the chart groups in the chart IChartGroups. The returned collection includes every type of group.
IChartGroups ChartGroups { get; }
Returns the IChartTitle object that represents the title of the specified chart.
IChartTitle ChartTitle { get; }
Returns or sets the chart type.
ChartType ChartType { get; set; }
Returns the IChartGroup object that represents the column chart group on a 3-D chart.
IChartGroup Column3DGroup { get; }
Returns an object that represents a collection of the column chart groups IChartGroups, on a 2D chart.
IChartGroups ColumnGroups { get; }
Returns the IDataTable object that represents the chart data table.
IDataTable DataTable { get; }
Returns or sets the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent).
int DepthPercent { get; set; }
Returns or sets the way that blank cells are plotted on a chart. Can be one of the following: DisplayBlanksAs constants: NotPlotted, Interpolated, or Zero.
DisplayBlanksAs DisplayBlanksAs { get; set; }
specifies whether to treat cells containing #N/A as if they were blank cells.
bool DisplayNaAsBlank { get; set; }
Returns an object that represents a collection of the doughnut chart groups IChartGroups, on a 2D chart.
IChartGroups DoughnutGroups { get; }
Returns or sets the elevation of the 3-D chart view in degrees.
double Elevation { get; set; }
Returns the IFloor object that represents the floor of the 3-D chart.
IFloor Floor { get; }
Returns or sets the distance between the data series in a 3-D chart as a percentage of the marker width. The value of this property must be between 0 and 500.
int GapDepth { get; set; }
Gets or sets a value indicating whether the chart displays a data table.
bool HasDataTable { get; set; }
Gets or sets whether the chart has a legend.
bool HasLegend { get; set; }
Gets or sets whether the axis or chart has a visible title.
bool HasTitle { get; set; }
Returns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent).
int HeightPercent { get; set; }
Returns the ILegend object that represents the legend for the chart.
ILegend Legend { get; }
Returns the IChartGroup object that represents the line chart group on a 3-D chart.
IChartGroup Line3DGroup { get; }
Returns an object that represents a collection of the line chart groups IChartGroups, on a 2D chart.
IChartGroups LineGroups { get; }
Returns the name of the object.
string Name { get; }
Returns the parent IShape of the chart.
IShape Parent { get; }
Returns or sets the perspective for the 3-D chart view. Must be between 0 and 100. This property is ignored if the RightAngleAxes property is True.
int Perspective { get; set; }
Returns the IChartGroup object that represents the pie chart group on a 3-D chart.
IChartGroup Pie3DGroup { get; }
Returns an object that represents a collection of the pie chart groups IChartGroups, on a 2D chart.
IChartGroups PieGroups { get; }
Returns a IPivotOptions object that represents the options whether to display pivot chart buttons.
IPivotOptions PivotOptions { get; }
Returns a IPivotTable object that represents the PivotTable report containing the upper-left corner of the specified range, or the PivotTable report associated with the PivotChart report.
IPivotTable PivotTable { get; }
Returns the IPlotArea object that represents the plot area of a chart.
IPlotArea PlotArea { get; }
Gets or sets whether visible cells are plotted. True if only visible cells are plotted. False if both visible and hidden cells are plotted.
bool PlotVisibleOnly { get; set; }
Returns an object that represents a collection of the radar chart groups IChartGroups, on a 2D chart.
IChartGroups RadarGroups { get; }
Gets or sets whether the chart axes are at right angles, independent of chart rotation or elevation. Applies only to 3-D line, column, and bar charts.
bool RightAngleAxes { get; set; }
Returns or sets the rotation of the 3-D chart view (the rotation of the plot area around the z-axis in degrees). The value of this property must be from 0 to 360, except for 3-D bar charts, where the value must be from 0 to 44. The default value is 20. Applies only to 3-D charts.
double Rotation { get; set; }
Returns an object that represents a collection of all the series in the chart.
ISeriesCollection SeriesCollection { get; }
Returns all drawing shapes in this chart.
IEnumerable<IShape> Shapes { get; }
Gets or sets whether to show the data labels when the value is greater than the maximum value on the value axis.
bool ShowDataLabelsOverMaximum { get; set; }
Returns the IWall object that allows the user to individually format the side wall of a 3-D chart.
IWall SideWall { get; }
Returns the IChartGroup object that represents the surface chart group of a 3-D chart.
IChartGroup SurfaceGroup { get; }
Returns the IWall object that represents the walls of the 3-D chart.
IWall Walls { get; }
Returns an object that represents a collection of the scatter chart groups IChartGroups, on a 2D chart.
IChartGroups XYGroups { get; }
Creates a chart at the specified location on the chart.
IShape AddChart(ChartType chartType, double left, double top, double width, double height)
chartType
ChartTypeThe chart type
left
doubleThe distance from the left edge of the chart to the left edge of the chart area, in points.
top
doubleThe distance from the top edge of the chart to the top edge of the chart area, in points.
width
doubleThe width of the chart, in points.
height
doubleThe height of the chart, in points.
Creates a chart at the specified location on the active sheet.
IShape AddChartInPixel(ChartType chartType, double left, double top, double width, double height)
chartType
ChartTypeThe chart type
left
doubleThe distance from the left edge of the chart to the left edge of the chart area, in pixels.
top
doubleThe distance from the top edge of the chart to the top edge of the chart area, in pixels.
width
doubleThe width of the chart, in pixels.
height
doubleThe height of the chart, in pixels.
Creates a connector. Returns the IShape object that represents the new connector.
IShape AddConnector(ConnectorType type, double beginX, double beginY, double endX, double endY)
type
ConnectorTypeThe connector type to add.
beginX
doubleThe horizontal position of the connector's starting point relative to the upper-left corner of the chart area, in points.
beginY
doubleThe vertical position of the connector's starting point relative to the upper-left corner of the chart area, in points.
endX
doubleThe horizontal position of the connector's end point relative to the upper-left corner of the chart area, in points.
endY
doubleThe veritcal position of the connector's end point relative to the upper-left corner of the chart area, in points.
Creates a connector. Returns the IShape object that represents the new connector.
IShape AddConnectorInPixel(ConnectorType type, double beginX, double beginY, double endX, double endY)
type
ConnectorTypeThe connector type to add.
beginX
doubleThe horizontal position of the connector's starting point relative to the upper-left corner of the chart area, in pixels.
beginY
doubleThe vertical position of the connector's starting point relative to the upper-left corner of the chart area, in pixels.
endX
doubleThe horizontal position of the connector's end point relative to the upper-left corner of the chart area, in pixels.
endY
doubleThe veritcal position of the connector's end point relative to the upper-left corner of the chart area, in pixels.
Creates a picture from an existing stream. Returns the IShape object that represents the new picture.
IShape AddPicture(Stream stream, ImageType type, double left, double top, double width, double height)
stream
System.IO.StreamThe stream from which the object is to be created.
type
ImageTypeSpecifies the type of picture to create.
left
doubleThe distance from the left edge of the picture to the left edge of the chart area, in points.
top
doubleThe distance from the top edge of the picture to the top edge of the chart area, in points.
width
doubleThe width of the picture, in points.
height
doubleThe height of the picture, in points.
Creates a picture from an existing file. Returns the IShape object that represents the new picture.
IShape AddPicture(string filename, double left, double top, double width, double height)
filename
stringThe file from which the object is to be created
left
doubleThe distance from the left edge of the picture to the left edge of the chart area, in points.
top
doubleThe distance from the top edge of the picture to the top edge of the chart area, in points.
width
doubleThe width of the picture, in points.
height
doubleThe height of the picture, in points.
Creates a picture from an existing stream. Returns the IShape object that represents the new picture.
IShape AddPictureInPixel(Stream stream, ImageType type, double left, double top, double width, double height)
stream
System.IO.StreamThe stream from which the object is to be created.
type
ImageTypeSpecifies the type of picture to create.
left
doubleThe distance from the left edge of the picture to the left edge of the chart area, in pixels.
top
doubleThe distance from the top edge of the picture to the top edge of the chart area, in pixels.
width
doubleThe width of the picture, in pixels.
height
doubleThe height of the picture, in pixels.
Creates a picture from an existing file. Returns the IShape object that represents the new picture.
IShape AddPictureInPixel(string filename, double left, double top, double width, double height)
filename
stringThe file from which the object is to be created
left
doubleThe distance from the left edge of the picture to the left edge of the chart area, in pixels.
top
doubleThe distance from the top edge of the picture to the top edge of the chart area, in pixels.
width
doubleThe width of the picture, in pixels.
height
doubleThe height of the picture, in pixels.
Returns the IShape object that represents the new AutoShape in the chart.
IShape AddShape(AutoShapeType type, double left, double top, double width, double height)
type
AutoShapeTypeSpecifies the type of AutoShape to create.
left
doubleThe distance from the left edge of the AutoShape's boundary box to the left edge of the chart area, in points.
top
doubleThe distance from the top edge of the AutoShape's boundary box to the top edge of the chart area, in points.
width
doubleThe width of the AutoShape's boundary box, in points.
height
doubleThe height of the AutoShape's boundary box, in points.
Returns the IShape object that represents the new AutoShape in a worksheet.
IShape AddShapeInPixel(AutoShapeType type, double left, double top, double width, double height)
type
AutoShapeTypeSpecifies the type of AutoShape to create.
left
doubleThe distance from the left edge of the AutoShape's boundary box to the left edge of the chart area, in pixels.
top
doubleThe distance from the top edge of the AutoShape's boundary box to the top edge of the chart area, in pixels.
width
doubleThe width of the AutoShape's boundary box, in pixels.
height
doubleThe height of the AutoShape's boundary box, in pixels.
Deletes the object.
void Delete()
Sets the source data range for the chart.
void SetSourceData(IRange source, RowCol plotBy)
source
IRangeThe range that contains the source data.
plotBy
RowColSpecifies the way the data is to be plotted. Can be either of the following RowCol constants: Columns or Rows.
Sets the source data range for the chart.
void SetSourceData(IRange source)
source
IRangeThe range that contains the source data.