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

class ooodev.format.inner.direct.chart2.series.data_series.options.plot.MissingValueKind(value)[source]

Bases: IntEnum

This specifies how empty or invalid cells in the provided data should be handled when plotted.

CONTINUE = 2

Use the value of the previous cell for the empty or invalid cell.

LEAVE_GAP = 0

Leave a gap in the line or bar chart.

USE_ZERO = 1

Use zero as the value for the empty or invalid cell.

class ooodev.format.inner.direct.chart2.series.data_series.options.plot.Plot(chart_doc, *, missing_values=None, hidden_cell_values=None)[source]

Bases: PlotSimple

Chart Data Series Plot Options

__init__(chart_doc, *, missing_values=None, hidden_cell_values=None)[source]

Constructor

Parameters:
  • chart_doc (XChartDocument) – Chart document.

  • missing_values (MissingValueTreatmentEnum | None, optional) – Specifies plot missing values option. Defaults to None.

  • hidden_cell_values (bool | None, optional) – Specifies if values from hidden cells are to be included. Defaults to None.

Return type:

None

property prop_missing_values: MissingValueKind | None

Gets or sets the missing value treatment.

Return type:

MissingValueKind | None