diff --git a/src/gen-charts.ts b/src/gen-charts.ts index efe0c95e1..a5915b35d 100644 --- a/src/gen-charts.ts +++ b/src/gen-charts.ts @@ -725,6 +725,19 @@ export function makeXmlCharts (rel: ISlideRelChart): string { strXml += ' ' strXml += '' } + if (Array.isArray(rel.opts._type)) { + rel.opts._type.forEach(type => { + const showLegend = type.options.showLegend + if (!showLegend) { + type.data.forEach(obj => { + strXml += ' ' + strXml += ` ` + strXml += ' ' + strXml += ' ' + }) + } + }) + } strXml += '' } }