Legend (Object)

Member of:

ChartSection object, Subcomponents object

Description:

For a ChartSection object, the Legend (Property) represents all of the methods and properties applicable to a chart legend.

For a gauge or (Live) chart, the Legend (Property) represents the legend associated with a selected gauge or (Live) chart.

Example 1:

This example shows how to change the chart axis type to the X-axis category:

ActiveDocument.Sections["Chart"].Legend.Focus=bqChartXAxis

Example 2:

This example shows how to show the trafficlight object legend.

TrafficLight.Legend.Visible = true

Constants:

The Legend (Object) uses the BqChartAxisType constant group, which consists of these values:

Methods:

None

Properties:

Property Focus as BqChartAxisType (ChartSection object only), Visible as Boolean (gauge and (Live) chart objects only)

Objects and Collections:

Items as Legend Items (ChartSection object only)

Font (gauge and (Live) chart objects only)