Fixed formatting.

This commit is contained in:
Adam Fourney 2025-03-12 11:22:21 -07:00
parent 2ad7207423
commit 92169da2fd

View file

@ -220,13 +220,13 @@ class PptxConverter(DocumentConverter):
category_names = [c.label for c in chart.plots[0].categories]
series_names = [s.name for s in chart.series]
data.append(["Category"] + series_names)
for idx, category in enumerate(category_names):
row = [category]
for series in chart.series:
row.append(series.values[idx])
data.append(row)
markdown_table = []
for row in data:
markdown_table.append("| " + " | ".join(map(str, row)) + " |")