aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/openpyxl/chart/stock_chart.py
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/openpyxl/chart/stock_chart.py')
-rw-r--r--.venv/lib/python3.12/site-packages/openpyxl/chart/stock_chart.py54
1 files changed, 54 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/openpyxl/chart/stock_chart.py b/.venv/lib/python3.12/site-packages/openpyxl/chart/stock_chart.py
new file mode 100644
index 00000000..119c7901
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/openpyxl/chart/stock_chart.py
@@ -0,0 +1,54 @@
+# Copyright (c) 2010-2024 openpyxl
+
+from openpyxl.descriptors.serialisable import Serialisable
+from openpyxl.descriptors import (
+ Typed,
+ Sequence,
+ Alias,
+)
+from openpyxl.descriptors.excel import ExtensionList
+
+from ._chart import ChartBase
+from .axis import TextAxis, NumericAxis, ChartLines
+from .updown_bars import UpDownBars
+from .label import DataLabelList
+from .series import Series
+
+
+class StockChart(ChartBase):
+
+ tagname = "stockChart"
+
+ ser = Sequence(expected_type=Series) #min 3, max4
+ dLbls = Typed(expected_type=DataLabelList, allow_none=True)
+ dataLabels = Alias('dLbls')
+ dropLines = Typed(expected_type=ChartLines, allow_none=True)
+ hiLowLines = Typed(expected_type=ChartLines, allow_none=True)
+ upDownBars = Typed(expected_type=UpDownBars, allow_none=True)
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
+
+ x_axis = Typed(expected_type=TextAxis)
+ y_axis = Typed(expected_type=NumericAxis)
+
+ _series_type = "line"
+
+ __elements__ = ('ser', 'dLbls', 'dropLines', 'hiLowLines', 'upDownBars',
+ 'axId')
+
+ def __init__(self,
+ ser=(),
+ dLbls=None,
+ dropLines=None,
+ hiLowLines=None,
+ upDownBars=None,
+ extLst=None,
+ **kw
+ ):
+ self.ser = ser
+ self.dLbls = dLbls
+ self.dropLines = dropLines
+ self.hiLowLines = hiLowLines
+ self.upDownBars = upDownBars
+ self.x_axis = TextAxis()
+ self.y_axis = NumericAxis()
+ super().__init__(**kw)