fix: 导出PPTX图表缺少背景填充

This commit is contained in:
pipipi-pikachu 2021-08-27 14:05:20 +08:00
parent 1b31abb230
commit 678e7ea48b

View File

@ -399,6 +399,8 @@ export default () => {
chartColors: el.chartType === 'pie' ? chartColors : chartColors.slice(0, el.data.series.length),
}
if (el.fill) options.fill = formatColor(el.fill).color
let type = pptx.ChartType.bar
if (el.chartType === 'bar') {
type = pptx.ChartType.bar