ooodev.adapter.chart2.diagram_comp module

class ooodev.adapter.chart2.diagram_comp.DiagramComp(component)[source]

Bases: ComponentBase, DiagramPartial, CoordinateSystemContainerPartial, TitledPartial

Class for managing Chart2 Diagram Component.

Parameters:

component (Diagram) –

__init__(component)[source]

Constructor

Parameters:

component (Diagram) – UNO component that implements com.sun.star.chart2.Diagram service.

Return type:

None

property component: com.sun.star.chart2.Diagram

Diagram Component

Return type:

Diagram

property connect_bars: bool | None

Gets/Sets - Draw connection lines for stacked bar charts.

optional

Return type:

bool | None

property data_table_h_border: bool | None

Gets/Sets - Chart Data table flags.

optional

Return type:

bool | None

property data_table_outline: bool | None

Gets/Sets the Data Table Outline property.

optional

Return type:

bool | None

property data_table_v_border: bool | None

Gets/Sets the Data Table V Border property.

optional

Return type:

bool | None

property external_data: str | None

Gets/Sets the External Data property.

optional

Return type:

str | None

property group_bars_per_axis: bool | None

Gets/Sets if bars of a bar or column chart are attached to different axis, this property determines how to display those.

If True, the bars are grouped together in one block for each axis, thus they are painted one group over the other.

If False, the bars are displayed side-by-side, as if they were all attached to the same axis.

If all data series of a bar or column chart are attached to only one axis, this property has no effect.

optional

Return type:

bool | None

property missing_value_treatment: int | None

Gets/Sets how empty or invalid cells in the provided data should be handled when displayed.

optional

Return type:

int | None

property perspective: int | None

Gets/Sets perspective of 3D charts ( [0,100] ).

optional

Return type:

int | None

property pos_size_exclude_labels: bool | None

The attributes RelativePosition and RelativeSize should be used for the inner coordinate region without axis labels and without data labels.

optional

Return type:

bool | None

property relative_position: RelativePosition | None

The position is as a relative position on the page.

If a relative position is given the diagram is not automatically placed, but instead is placed relative on the page.

May be None

Return type:

RelativePosition | None

property relative_size: com.sun.star.chart2.RelativeSize

The size of the diagram as relative size of the page size.

Return type:

RelativeSize

property right_angled_axes: bool | None

Gets/Sets Right Angled Axes property.

optional

Return type:

bool | None

property rotation_horizontal: int | None

Gets/Sets horizontal rotation of 3D charts in degrees ( [-180,180] ).

optional

Return type:

int | None

property rotation_vertical: int | None

Gets/Sets vertical rotation of 3D charts in degrees ( ]-180,180] ).

optional

Return type:

int | None

property sort_by_x_values: bool | None

Gets/Sets - Sort data points by x values for rendering.

optional

Return type:

bool | None

property starting_angle: int | None

Gets/Sets - Starting angle in degrees for pie charts and doughnut charts.

optional

Return type:

int | None