ooodev.adapter.chart.chart_data_partial module
- class ooodev.adapter.chart.chart_data_partial.ChartDataPartial(component, interface=com.sun.star.chart.XChartData)[source]
Bases:
object
Partial class for XChartData.
- Parameters:
component (XChartData) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.chart.XChartData)[source]
Constructor
- Parameters:
component (XChartData) – UNO Component that implements
com.sun.star.chart.XChartData
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XChartData
.
- Return type:
None
- add_chart_data_change_event_listener(listener)[source]
allows a component supporting the XChartDataChangeEventListener interface to register as listener.
The component will be notified with a ChartDataChangeEvent every time the chart’s data changes.
- Return type:
None
- Parameters:
listener (com.sun.star.chart.XChartDataChangeEventListener) –
- get_not_a_number()[source]
In IEEE arithmetic format it is one of the NaN values, so there are no conflicts with existing numeric values.
- Return type:
float
- is_not_a_number(number)[source]
checks whether the value given is equal to the indicator value for a missing value.
In IEEE arithmetic format it is one of the NaN values, so there are no conflicts with existing numeric values.
Always use this method to check, if a value is not a number. If you compare the value returned by XChartData.getNotANumber() to another double value using the = operator, you may not get the desired result!
- Return type:
bool
- Parameters:
number (float) –