updown_bars.py 897 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright (c) 2010-2024 openpyxl
  2. from openpyxl.descriptors.serialisable import Serialisable
  3. from openpyxl.descriptors import Typed
  4. from openpyxl.descriptors.excel import ExtensionList
  5. from .shapes import GraphicalProperties
  6. from .axis import ChartLines
  7. from .descriptors import NestedGapAmount
  8. class UpDownBars(Serialisable):
  9. tagname = "upbars"
  10. gapWidth = NestedGapAmount()
  11. upBars = Typed(expected_type=ChartLines, allow_none=True)
  12. downBars = Typed(expected_type=ChartLines, allow_none=True)
  13. extLst = Typed(expected_type=ExtensionList, allow_none=True)
  14. __elements__ = ('gapWidth', 'upBars', 'downBars')
  15. def __init__(self,
  16. gapWidth=150,
  17. upBars=None,
  18. downBars=None,
  19. extLst=None,
  20. ):
  21. self.gapWidth = gapWidth
  22. self.upBars = upBars
  23. self.downBars = downBars