diff --git a/packages/bi-report-design/src/controller/converter/echart-converter/pie-converter.ts b/packages/bi-report-design/src/controller/converter/echart-converter/pie-converter.ts index ef278ecfd721d0315ef4242f11d56c99cda0b021..9f46357d4c01b1d0d2640288d6664d0819e20bd5 100644 --- a/packages/bi-report-design/src/controller/converter/echart-converter/pie-converter.ts +++ b/packages/bi-report-design/src/controller/converter/echart-converter/pie-converter.ts @@ -97,14 +97,15 @@ export class PieConverter extends MultiSeriesConverter { }); tempModel.dechartSerieses.push(...models); - // 图例参数 - const legendParams = this.getChartLegendParams(data); - Object.assign(tempModel.userParam, legendParams); - // 处理图表参数 if (!tempModel.userParam) { tempModel.userParam = {}; } + + // 图例参数 + const legendParams = this.getChartLegendParams(data); + Object.assign(tempModel.userParam, legendParams); + // 图表颜色 const chartColorParams = this.getChartColorParams(data); Object.assign(tempModel.userParam, chartColorParams);