Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

Commit 968c3c94 authored by CharlieC's avatar CharlieC
Browse files

Charts can be series.

--HG--
branch : 2.5
parent 58170b738fba
......@@ -152,7 +152,7 @@ class PlotArea(Serialisable):
# at least one chart
areaChart = Typed(expected_type=AreaChart, allow_none=True)
area3DChart = Typed(expected_type=AreaChart3D, allow_none=True)
lineChart = Typed(expected_type=LineChart, allow_none=True)
lineChart = Sequence(expected_type=LineChart)
line3DChart = Typed(expected_type=LineChart3D, allow_none=True)
stockChart = Typed(expected_type=StockChart, allow_none=True)
radarChart = Typed(expected_type=RadarChart, allow_none=True)
......@@ -185,7 +185,7 @@ class PlotArea(Serialisable):
spPr=None,
areaChart=None,
area3DChart=None,
lineChart=None,
lineChart=(),
line3DChart=None,
stockChart=None,
radarChart=None,
......
......@@ -22,11 +22,11 @@ _axes = ('valAx', 'catAx', 'dateAx', 'serAx',)
def read_chart(chartspace):
cs = chartspace
plot = cs.chart.plotArea
charts = []
for t in _types:
chart = getattr(plot, t, None)
if chart is not None:
charts.append(chart)
charts = getattr(plot, t, None)
if charts is not None:
break
chart = charts[0]
chart._charts = charts
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment