gitbrent / PptxGenJS

Create PowerPoint presentations with a powerful, concise JavaScript API.
https://gitbrent.github.io/PptxGenJS/
MIT License
2.84k stars 625 forks source link

Enable showLegend separately for each chart in a mixed chart situation. #1260

Open Becavalier opened 1 year ago

Becavalier commented 1 year ago

Hi team,

Can we set this "showLegend" separately for each different chart when I render these charts in a mixed manner?

I have tried it by adding the attribute to the chart options bundled inside chartConfigs, but it was not working.

addChart(chartConfigs, options);

https://github.com/gitbrent/PptxGenJS/blob/035cf6b26239e2ea1f27eefbcdb8134e504eb4f4/src/gen-charts.ts#L707