ChartDirector 7.0 (Python Edition)

BaseChart.getLegend


Usage

getLegend()

Description

Gets the LegendBox object representing the legend box in the chart.

The LegendBox obtains using this method is not fixed. This allows you to add more keys to the legend box, and change the legend box fonts, etc. However, this also means that the legend box size (Box.getWidth and Box.getHeight) is undefined.

To obtain the width and height of the legend box, use BaseChart.layoutLegend.

Arguments

None

Return Value

The LegendBox object representing the legend box in the chart.