This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit 67904bc1 authored by CharlieC's avatar CharlieC
Browse files

Start treating charts as lists of charts

branch : 2.5
parent 19153449dd09
......@@ -22,10 +22,14 @@ _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:
break # this ignores multiple charts
chart = charts[0]
chart._charts = charts
chart.title = cs.chart.title
chart.layout = plot.layout
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