ooodev.format.inner.partial.chart2.series.data_labels.data_labels.chart2_data_label_orientation_partial module

class ooodev.format.inner.partial.chart2.series.data_labels.data_labels.chart2_data_label_orientation_partial.Chart2DataLabelOrientationPartial(component)[source]

Bases: object

Partial class for Chart2 Data Labels Orientation.

Parameters:

component (Any) –

__init__(component)[source]
Parameters:

component (Any) –

Return type:

None

style_orientation(angle=None, mode=None, leaders=None)[source]

Style Chart2 Data Series Text Attributes.

Parameters:
  • angle (int, Angle, optional) – Rotation in degrees of the text.

  • mode (DirectionModeKind, optional) – Specifies the writing direction.

  • leaders (bool, optional) – Leader Lines. Connect displaced data points to data points.

Raises:

CancelEventError – If the event before_style_chart2_data_label_orientation is cancelled and not handled.

Returns:

Orientation Style instance or None if cancelled.

Return type:

Orientation | None

Hint

  • Angle can be imported from ooodev.units

  • DirectionModeKind can be imported from ooodev.format.inner.direct.chart2.title.alignment.direction

  • Orientation can be imported from ooodev.format.inner.direct.chart2.series.data_labels.data_labels.orientation