diff --git a/src/gen-charts.ts b/src/gen-charts.ts index e1cb30f67..282303819 100644 --- a/src/gen-charts.ts +++ b/src/gen-charts.ts @@ -499,7 +499,7 @@ export function makeXmlCharts(rel: ISlideRelChart): string { // B: Axes ----------------------------------------------------------- if (rel.opts._type !== CHART_TYPE.PIE && rel.opts._type !== CHART_TYPE.DOUGHNUT) { // Param check - if (rel.opts.valAxes && !usesSecondaryValAxis) { + if (rel.opts.valAxes && rel.opts.valAxes.length > 1 && !usesSecondaryValAxis) { throw new Error('Secondary axis must be used by one of the multiple charts') }