ooodev.format.chart2.direct.axis.numbers package

Module contents

class ooodev.format.chart2.direct.axis.numbers.Numbers(chart_doc, *, source_format=True, num_format=0, num_format_index=-1, lang_locale=None)[source]

Bases: NumberFormat

Chart Axis Numbers format.

New in version 0.9.4.

__init__(chart_doc, *, source_format=True, num_format=0, num_format_index=-1, lang_locale=None)[source]

Constructor

Parameters:
  • 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.

Return type:

None