提交 69ce061e 编写于 作者: tony001's avatar tony001

解决雷达图呈现异常问题

上级 ce165d8b
...@@ -635,10 +635,11 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -635,10 +635,11 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
let seriesValues:Array<any> = item.seriesValues; let seriesValues:Array<any> = item.seriesValues;
if(seriesValues && seriesValues.length >0){ if(seriesValues && seriesValues.length >0){
seriesValues.forEach((singleSeriesName:any) =>{ seriesValues.forEach((singleSeriesName:any) =>{
let singleSeriesObj:any = {type:singleSeriesName}; let singleSeriesObj:any = {};
returnArray.forEach((item:any) =>{ returnArray.forEach((item:any) =>{
Object.assign(singleSeriesObj,{[item[groupField[0]]]:item[singleSeriesName]}); Object.assign(singleSeriesObj,{[item[groupField[0]]]:item[singleSeriesName]});
}) })
Object.assign(singleSeriesObj,{type:singleSeriesName});
tempReturnArray.push(singleSeriesObj); tempReturnArray.push(singleSeriesObj);
}) })
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册