|
|
@ -129,8 +129,8 @@ export default {
|
|
|
|
return this.stackChartFn(params.chartProperties, data)
|
|
|
|
return this.stackChartFn(params.chartProperties, data)
|
|
|
|
} else if (chartType == "widget-coord") {
|
|
|
|
} else if (chartType == "widget-coord") {
|
|
|
|
return this.coordChartFn(params.chartProperties, data)
|
|
|
|
return this.coordChartFn(params.chartProperties, data)
|
|
|
|
} else if (chartType == "widget-mapline") {
|
|
|
|
} else if (chartType == "widget-linemap") {
|
|
|
|
return this.maplineChartFn(params.chartProperties, data)
|
|
|
|
return this.linemapChartFn(params.chartProperties, data)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return data
|
|
|
|
return data
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -251,7 +251,7 @@ export default {
|
|
|
|
return ananysicData;
|
|
|
|
return ananysicData;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 中国地图。路线图数据解析,适合source、target、value
|
|
|
|
// 中国地图。路线图数据解析,适合source、target、value
|
|
|
|
maplineChartFn(chartProperties, data) {
|
|
|
|
linemapChartFn(chartProperties, data) {
|
|
|
|
const ananysicData = [];
|
|
|
|
const ananysicData = [];
|
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
|
const obj = {};
|
|
|
|
const obj = {};
|
|
|
|