CategoryAxis (Object)

Member of:

Subcomponents object

Description:

Represents attributes of the X and Y axes of a (Live) Chart object, including the associated X/Y axis titles. Setting properties for this object is the equivalent of setting properties for the Category Axis Label and Category Axis Title on the Font dialog box, and the Label Axis fields on the properties dialog box of the specific chart.

Example:

This example shows how to set the category axis title to “Market Share”, enables the visible property, and sets the title to red:

BarChart.CategoryAxis.Title.Text = "Market Share"
BarChart.CategoryAxis.Title.Visible = true
BarChart.CategoryAxis.Title.Font.Color = 16711680

Methods:

None

Properties:

None

Objects:

Labels object, Font object