ooodev.format.chart2.direct.axis.positioning package
Module contents
- class ooodev.format.chart2.direct.axis.positioning.AxisLine(cross=None, value=<object object>)[source]
Bases:
StyleBase
Chart Axis Line.
Select where to cross the other axis: at start, at end, at a specified value, or at a category.
See also
New in version 0.9.4.
- __init__(cross=None, value=<object object>)[source]
Constructor
- Parameters:
cross (ChartAxisPosition, optional) – The position where the axis crosses the other axis.
value (float, None, optional) – The value where the axis crosses the other axis.
- Return type:
None
See also
- on_property_setting(source, event_args)[source]
Triggers for each property that is set
- Parameters:
source (Any) – Event Source.
event_args (KeyValueCancelArgs) – Event Args
- Return type:
None
- property prop_cross: ChartAxisPosition | None
- Return type:
ChartAxisPosition | None
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_value: Any
- Return type:
Any
- class ooodev.format.chart2.direct.axis.positioning.IntervalMarks(major=None, minor=None, pos=None)[source]
Bases:
StyleBase
Chart Axis Interval Marks.
See also
New in version 0.9.4.
- __init__(major=None, minor=None, pos=None)[source]
Constructor
- Parameters:
- Return type:
None
See also
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_pos: ChartAxisMarkPosition | None
- Return type:
ChartAxisMarkPosition | None
- class ooodev.format.chart2.direct.axis.positioning.LabelPosition(pos=ChartAxisLabelPosition.NEAR_AXIS)[source]
Bases:
StyleBase
Chart Axis Label placement.
See also
New in version 0.9.4.
- __init__(pos=ChartAxisLabelPosition.NEAR_AXIS)[source]
Constructor
- Parameters:
pos (ChartAxisLabelPosition, optional) – Specifies where to place the labels: near axis, near axis (other side), outside start, or outside end. Default is
ChartAxisLabelPosition.NEAR_AXIS
.- Return type:
None
See also
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_pos: ChartAxisLabelPosition
- Return type:
ChartAxisLabelPosition
- class ooodev.format.chart2.direct.axis.positioning.PositionAxis(on_mark=True)[source]
Bases:
StyleBase
Chart Axis Line Position.
Note
Does not apply to all axis types.
See also
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. IfFalse
, 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 isTrue
.- Return type:
None
See also
- 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:
- Events:
- Return type:
None
Note
If Event data
obj
,data_values
orallow_update
are changed then the new values are used.Add update object to instance if not already set and
allow_update
isTrue
(default).Changed in version 0.27.0: Event data is now a dictionary with keys
source
,obj
,data_values
andallow_update
.Changed in version 0.9.4: Added
validate
keyword arguments.
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_on_mark: bool
- Return type:
bool