Chart Members (Excel)
Represents a chart in a workbook.
Methods
Name |
Description |
---|---|
Makes the current chart the active chart. |
|
Applies a standard or custom chart type to a chart. |
|
Applies data labels to all the series in a chart. |
|
Applies the layouts shown in the ribbon. |
|
Returns an object that represents either a single axis or a collection of the axes on the chart. |
|
Returns an object that represents either a single chart group (a ChartGroup object) or a collection of all the chart groups in the chart (a ChartGroups object). The returned collection includes every type of group. |
|
Returns an object that represents either a single embedded chart (a ChartObject object) or a collection of all the embedded charts (a ChartObjects object) on the sheet. |
|
Modifies the properties of the given chart. You can use this method to quickly format a chart without setting all the individual properties. This method is noninteractive, and it changes only the specified properties. |
|
Checks the spelling of an object. |
|
Clears the chart elements formatting to automatic. |
|
Copies the sheet to another location in the workbook. |
|
Copies the selected object to the Clipboard as a picture. |
|
Deletes the object. |
|
Converts a Microsoft Excel name to an object or a value. |
|
Exports the chart in a graphic format. |
|
Exports to a file of the specified format. |
|
Returns information about the chart element at specified X and Y coordinates. This method is unusual in that you specify values for only the first two arguments. Microsoft Excel fills in the other arguments, and your code should examine those values when the method returns. |
|
Moves the chart to a new location. |
|
Moves the chart to another location in the workbook. |
|
Returns an object that represents either a single OLE object (an OLEObject ) or a collection of all OLE objects (an OLEObjects collection) on the chart or sheet. Read-only. |
|
Pastes chart data from the Clipboard into the specified chart. |
|
Prints the object. |
|
Shows a preview of the object as it would look when printed. |
|
Protects a chart so that it cannot be modified. |
|
Causes the specified chart to be redrawn immediately. |
|
Saves changes to the chart or worksheet in a different file. |
|
Saves a custom chart template to the list of available chart templates. |
|
Selects the object. |
|
Returns an object that represents either a single series (a Series object) or a collection of all the series (a SeriesCollection collection) in the chart or chart group. |
|
Sets the background graphic for a chart. |
|
Specifies the name of the chart template that Microsoft Excel uses when creating new charts. |
|
Sets chart elements on a chart. Read/write MsoChartElementType. |
|
Sets the source data range for the chart. |
|
Removes protection from a sheet or workbook. This method has no effect if the sheet or workbook isn't protected. |
Properties
Name |
Description |
---|---|
When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only. |
|
True if Microsoft Excel scales a 3-D chart so that it's closer in size to the equivalent 2-D chart. The RightAngleAxes property must be True. Read/write Boolean. |
|
Returns a Walls object that allows the user to individually format the back wall of a 3-D chart. Read-only. |
|
Returns or sets the shape used with the 3-D bar or column chart. Read/write XlBarShape. |
|
Returns a ChartArea object that represents the complete chart area for the chart. Read-only. |
|
Returns or sets the chart style for the chart. Read/write Variant. |
|
Returns a ChartTitle object that represents the title of the specified chart. Read-only. |
|
Returns or sets the chart type. Read/write XlChartType. |
|
Returns the code name for the object. Read-only String. |
|
Returns a 32-bit integer that indicates the application in which this object was created. Read-only Long. |
|
Returns a DataTable object that represents the chart data table. Read-only. |
|
Returns or sets the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent). Read/write Long. |
|
Returns or sets the way that blank cells are plotted on a chart. Can be one of the XlDisplayBlanksAs constants. Read/write Long. |
|
Returns or sets the elevation of the 3-D chart view, in degrees. Read/write Long. |
|
Returns a Floor object that represents the floor of the 3-D chart. Read-only. |
|
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. Read/write Long. |
|
Returns or sets which axes exist on the chart. Read/write Variant. |
|
True if the chart has a data table. Read/write Boolean. |
|
True if the chart has a legend. Read/write Boolean. |
|
True if the axis or chart has a visible title. Read/write Boolean. |
|
Returns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent). Read/write Long. |
|
Returns a Hyperlinks collection that represents the hyperlinks for the chart. |
|
Returns a Long value that represents the index number of the object within the collection of similar objects. |
|
Returns a Legend object that represents the legend for the chart. Read-only. |
|
Rrepresents an e-mail header for a document. |
|
Returns or sets a String value representing the name of the object. |
|
Returns a Worksheet object that represents the next sheet. |
|
Returns a PageSetup object that contains all the page setup settings for the specified object. Read-only. |
|
Returns the parent object for the specified object. Read-only. |
|
Returns or sets a Long value that represents the perspective for the 3-D chart view. |
|
Returns a PivotLayout object that represents the placement of fields in a PivotTable report and the placement of axes in a PivotChart report. Read-only. |
|
Returns a PlotArea object that represents the plot area of a chart. Read-only. |
|
Returns or sets the way columns or rows are used as data series on the chart. Can be one of the following XlRowCol constants: xlColumns or xlRows. Read/write Long. |
|
True if only visible cells are plotted. False if both visible and hidden cells are plotted. Read/write Boolean. |
|
Returns a Worksheet object that represents the next sheet. |
|
Returns the number of comment pages that will be printed for the current chart. Read-only |
|
True if the contents of the sheet are protected. For a chart, this protects the entire chart. To turn on content protection, use the Protect method with the Contents argument set to True. Read-only Boolean. |
|
True if series formulas cannot be modified by the user. Read/write Boolean. |
|
True if shapes are protected. To turn on shape protection, use the Protect method with the DrawingObjects argument set to True. Read-only Boolean. |
|
True if chart formatting cannot be modified by the user. Read/write Boolean. |
|
True if user-interface-only protection is turned on. To turn on user interface protection, use the Protect method with the UserInterfaceOnly argument set to True. Read-only Boolean. |
|
True if chart elements cannot be selected. Read/write Boolean. |
|
True if the chart axes are at right angles, independent of chart rotation or elevation. Applies only to 3-D line, column, and bar charts. Read/write Boolean. |
|
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. Read/write Variant. |
|
Returns a Shapes collection that represents all the shapes on the chart sheet. Read-only. |
|
Returns or sets whether to display all field buttons on a PivotChart. Read/write |
|
Returns or sets whether to display axis field buttons on a PivotChart. Read/write |
|
Returns or sets whether to show the data labels when the value is greater than the maximum value on the value axis. Read/write Boolean. |
|
Returns or sets whether to display legend field buttons on a PivotChart. Read/write |
|
Returns or sets whether to display the report filter field buttons on a PivotChart. Read/write |
|
Returns or sets whether to display the value field buttons on a PivotChart. Read/write |
|
Returns a Walls object that allows the user to individually format the side wall of a 3-D chart. Read-only. |
|
Returns a Tab object for a chart. |
|
Returns or sets an XlSheetVisibility value that determines whether the object is visible. |
|
Returns a Walls object that represents the walls of the 3-D chart. Read-only. |
Events
Name |
Description |
---|---|
Occurs when a workbook, worksheet, chart sheet, or embedded chart is activated. |
|
Occurs when a chart element is double-clicked, before the default double-click action. |
|
Occurs when a chart element is right-clicked, before the default right-click action. |
|
Occurs after the chart plots new or changed data, for the Chart object. |
|
Occurs when the chart, worksheet, or workbook is deactivated. |
|
Occurs when a mouse button is pressed while the pointer is over a chart. |
|
Occurs when the position of the mouse pointer changes over a chart. |
|
Occurs when a mouse button is released while the pointer is over a chart. |
|
Occurs when the chart is resized. |
|
Occurs when a chart element is selected. |
|
Occurs when the user changes the value of a chart data point by clicking a bar in the chart and dragging the top edge up or down thus changing the value of the data point. |