updown_bars.py 936 B

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