Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/openpyxl/chart/updown_bars.py: 82%

17 statements  

« prev     ^ index     » next       coverage.py v7.3.3, created at 2023-12-20 06:34 +0000

1# Copyright (c) 2010-2023 openpyxl 

2 

3from openpyxl.descriptors.serialisable import Serialisable 

4from openpyxl.descriptors import Typed 

5from openpyxl.descriptors.excel import ExtensionList 

6 

7from .shapes import GraphicalProperties 

8from .axis import ChartLines 

9from .descriptors import NestedGapAmount 

10 

11 

12class UpDownBars(Serialisable): 

13 

14 tagname = "upbars" 

15 

16 gapWidth = NestedGapAmount() 

17 upBars = Typed(expected_type=ChartLines, allow_none=True) 

18 downBars = Typed(expected_type=ChartLines, allow_none=True) 

19 extLst = Typed(expected_type=ExtensionList, allow_none=True) 

20 

21 __elements__ = ('gapWidth', 'upBars', 'downBars') 

22 

23 def __init__(self, 

24 gapWidth=150, 

25 upBars=None, 

26 downBars=None, 

27 extLst=None, 

28 ): 

29 self.gapWidth = gapWidth 

30 self.upBars = upBars 

31 self.downBars = downBars