ChartSection object, Subcomponents object
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.
This example shows how to change the chart axis type to the X-axis category:
ActiveDocument.Sections["Chart"].Legend.Focus=bqChartXAxis
This example shows how to show the trafficlight object legend.
TrafficLight.Legend.Visible = true
The Legend (Object) uses the BqChartAxisType constant group, which consists of these values:
Property Focus as BqChartAxisType (ChartSection object only), Visible as Boolean (gauge and (Live) chart objects only)
Items as Legend Items (ChartSection object only)
Font (gauge and (Live) chart objects only)