Source code for

from __future__ import annotations
from typing import Tuple
import uno
from import XChartDocument
from ooo.dyn.i18n.number_format_index import NumberFormatIndexEnum
from ooo.dyn.lang.locale import Locale
from ooo.dyn.util.number_format import NumberFormatEnum

from import (
    NumberFormat as DataLabelsNumberFormat,

[docs]class Numbers(DataLabelsNumberFormat): """ Chart Axis Numbers format. .. seealso:: - :ref:`help_chart2_format_direct_axis_numbers` .. versionadded:: 0.9.4 """
[docs] def __init__( self, chart_doc: XChartDocument, *, source_format: bool = True, num_format: NumberFormatEnum | int = 0, num_format_index: NumberFormatIndexEnum | int = -1, lang_locale: Locale | None = None, ) -> None: """ Constructor Args: chart_doc (XChartDocument): Chart document. source_format (bool, optional): Specifies whether the number format should be linked to the source format. Defaults to ``True``. num_format (NumberFormatEnum, int, optional): specifies the number format. Defaults to ``0``. num_format_index (NumberFormatIndexEnum | int, optional): Specifies the number format index. Defaults to ``-1``. lang_locale (Locale, optional): Specifies the language locale. Defaults to ``None``. Returns: None: See Also: - :ref:`help_chart2_format_direct_axis_numbers` - `API NumberFormat <>`__ - `API NumberFormatIndex <>`__ """ super().__init__( chart_doc=chart_doc, source_format=source_format, num_format=num_format, num_format_index=num_format_index, lang_locale=lang_locale, )
def _supported_services(self) -> Tuple[str, ...]: try: return self._supported_services_values except AttributeError: self._supported_services_values = ("",) return self._supported_services_values