ooodev.format.inner.direct.chart2.series.data_series.options.orientation module

class ooodev.format.inner.direct.chart2.series.data_series.options.orientation.Orientation(chart_doc, clockwise=None, angle=None)[source]

Bases: StyleBase

Chart Orientation.

Available for pie and donut charts.

__init__(chart_doc, clockwise=None, angle=None)[source]

Constructor

Parameters:
  • chart_doc (XChartDocument) – Chart document.

  • clockwise (bool, optional) – Specifies he default direction in which the pieces of a pie chart are ordered is counterclockwise. Set to True to enable the Clockwise direction to draw the pieces in opposite direction.

  • angle (int, Angle, optional) – Sets the starting angle of a pie or donut chart.

Return type:

None

apply(obj: Any)[source]
apply(obj: Any, **kwargs)
apply(obj, **kwargs)

Applies styles to object

Parameters:

obj (object) – UNO Object that styles are to be applied.

Return type:

None

copy()[source]
copy(**kwargs)
copy(**kwargs)

Gets a copy of instance as a new instance

Return type:

TypeVar(_TOrientation, bound= Orientation)

Parameters:

self (_TOrientation) –

property prop_angle: Angle | None

Gets or sets the angle property

Return type:

Angle | None

property prop_clockwise: bool | None

Gets or sets the clockwise property

Return type:

bool | None

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind