ooodev.adapter.chart2.diagram_partial module

class ooodev.adapter.chart2.diagram_partial.DiagramPartial(component, interface=com.sun.star.chart2.XDiagram)[source]

Bases: object

Partial class for XDiagram.

Parameters:
  • component (XDiagram) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.chart2.XDiagram)[source]

Constructor

Parameters:
  • component (XDiagram) – UNO Component that implements com.sun.star.chart2.XDiagram interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XDiagram.

Return type:

None

get_default_color_scheme()[source]

Gets an XColorScheme that defines the default colors for data series (or data points) in the diagram.

Return type:

XColorScheme

get_floor()[source]

Gets the property set that determines the visual appearance of the floor if any.

The floor is the bottom of a 3D diagram. For a 2D diagram None is returned.

Return type:

XPropertySet

get_legend()[source]

Gets the legend, which may represent data series and other information about a diagram in a separate box.

Return type:

XLegend

get_wall()[source]

Gets the property set that determines the visual appearance of the wall.

The wall is the area behind the union of all coordinate systems used in a diagram.

Return type:

XPropertySet

set_default_color_scheme(color_scheme)[source]

Sets an XColorScheme that defines the default colors for data series (or data points) in the diagram.

Return type:

None

Parameters:

color_scheme (com.sun.star.chart2.XColorScheme) –

set_diagram_data(data_source, *args)[source]

Sets new data to the diagram.

For standard parameters that may be used, see the service StandardDiagramCreationParameters.

Return type:

None

Parameters:
  • data_source (com.sun.star.chart2.data.XDataSource) –

  • args (PropertyValue) –

set_legend(legend)[source]

Sets a new legend.

Return type:

None

Parameters:

legend (com.sun.star.chart2.XLegend) –