From bd877e20a3da57b7577bcf0cf2621bb05d62cd2d Mon Sep 17 00:00:00 2001 From: Timothy Watson Date: Tue, 25 Aug 2020 11:25:35 +0100 Subject: [PATCH] Modify secondary axis param check. Only throw if number of valAxes is greater than 1. --- src/gen-charts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') }