|
|
@@ -99,7 +99,12 @@ export default (option) => {
|
|
|
};
|
|
|
}else if(viewType === 'pie') { // 饼图
|
|
|
_option.series = _option.series.map(s => ({
|
|
|
- ...s, label: { show: false }, labelLine: { show: false }, silent: true
|
|
|
+ ...s,
|
|
|
+ center: ['50%', '50%'],
|
|
|
+ radius: [(s.radius ? s.radius[0] || 0 : 0), '85%'],
|
|
|
+ label: { show: false },
|
|
|
+ labelLine: { show: false },
|
|
|
+ silent: true
|
|
|
}));
|
|
|
}else if(viewType === 'scatter') { // 散点图
|
|
|
_option.series = _option.series.map(s => ({
|