ooodev.adapter.chart2.data.data_sink_partial module

class ooodev.adapter.chart2.data.data_sink_partial.DataSinkPartial(component, interface=com.sun.star.chart2.data.XDataSink)[source]

Bases: object

Partial class for XDataSink.

Parameters:
  • component (XDataSink) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.chart2.data.XDataSink)[source]

Constructor

Parameters:
  • component (XDataSink) – UNO Component that implements com.sun.star.chart2.data.XDataSink interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XDataSink.

Return type:

None

set_data(data)[source]

Sets new data sequences.

The elements set here must support the service DataSequence.

If the data consist only of floating point numbers (double values), the instances set here should also support the service NumericalDataSequence.

If the data consist only of strings, the instances set here should also support the service TextualDataSequence.

If one of the derived services is supported by one element of the sequence, it should be available for all elements in the sequence.

Return type:

None

Parameters:

data (Tuple[com.sun.star.chart2.data.XLabeledDataSequence, ...]) –