ooodev.format.inner.direct.chart2.axis.positioning.position_axis module

class ooodev.format.inner.direct.chart2.axis.positioning.position_axis.PositionAxis(on_mark=True)[source]

Bases: StyleBase

Chart Axis Line Position.

Note

Does not apply to all axis types.

New in version 0.9.4.

__init__(on_mark=True)[source]

Constructor

Parameters:

on_mark (bool, optional) – Specifies that the axis is position. If True, specifies that the axis is positioned on the first/last tickmarks. This makes the data points visual representation begin/end at the value axis. If False, specifies that the axis is positioned between the tickmarks. This makes the data points visual representation begin/end at a distance from the value axis. Default is True.

Return type:

None

apply(obj, **kwargs)[source]

Applies styles to object

Parameters:
  • obj (Any) – UNO Object that styles are to be applied.

  • kwargs (Any, optional) – Expandable list of key value pairs that may be used in child classes.

Keyword Arguments:
  • override_dv (Dic[str, Any], optional) – if passed in this dictionary is used to set properties instead of internal dictionary of property values.

  • validate (bool, optional) – if False then obj is not validated. Defaults to True.

Events:
Return type:

None

Note

If Event data obj, data_values or allow_update are changed then the new values are used.

Add update object to instance if not already set and allow_update is True (default).

Changed in version 0.27.0: Event data is now a dictionary with keys source, obj, data_values and allow_update.

Changed in version 0.9.4: Added validate keyword arguments.

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_on_mark: bool
Return type:

bool