|
|
@ -18,15 +18,10 @@ export default {
|
|
|
|
title: {},
|
|
|
|
title: {},
|
|
|
|
series: [
|
|
|
|
series: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: '外环1',
|
|
|
|
name: '最外环',
|
|
|
|
type: 'pie',
|
|
|
|
type: 'pie',
|
|
|
|
zlevel: 1,
|
|
|
|
|
|
|
|
silent: true,
|
|
|
|
silent: true,
|
|
|
|
radius: ['98%', '97%'],
|
|
|
|
radius: ['98%', '97%'],
|
|
|
|
hoverAnimation: false,
|
|
|
|
|
|
|
|
color: "#46d3f3",
|
|
|
|
|
|
|
|
//color: "rgba(88,142,197,0.5)",
|
|
|
|
|
|
|
|
// animation:false, //charts3 no
|
|
|
|
|
|
|
|
label: {
|
|
|
|
label: {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
show: false
|
|
|
|
show: false
|
|
|
@ -37,7 +32,23 @@ export default {
|
|
|
|
show: false
|
|
|
|
show: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data: [1]
|
|
|
|
itemStyle: {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
color: {
|
|
|
|
|
|
|
|
colorStops: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
offset: 0,
|
|
|
|
|
|
|
|
color: '#4FADFD', // 0% 处的颜色
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
offset: 1,
|
|
|
|
|
|
|
|
color: 'rgba(235, 10, 10, 1)', // 100% 处的颜色
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
data: [0]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: 'pie',
|
|
|
|
type: 'pie',
|
|
|
@ -303,7 +314,7 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
pie2() {
|
|
|
|
pie2() {
|
|
|
|
let dataArr = [];
|
|
|
|
let dataArr = [];
|
|
|
|
for (var i = 0; i < 8; i++) {
|
|
|
|
for (let i = 0; i < 8; i++) {
|
|
|
|
if (i % 2 === 0) {
|
|
|
|
if (i % 2 === 0) {
|
|
|
|
dataArr.push({
|
|
|
|
dataArr.push({
|
|
|
|
name: (i + 1).toString(),
|
|
|
|
name: (i + 1).toString(),
|
|
|
@ -329,13 +340,12 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return dataArr
|
|
|
|
return dataArr
|
|
|
|
},
|
|
|
|
},
|
|
|
|
pie3() {
|
|
|
|
pie3() {
|
|
|
|
let dataArr = [];
|
|
|
|
let dataArr = [];
|
|
|
|
for (var i = 0; i < 100; i++) {
|
|
|
|
for (let i = 0; i < 100; i++) {
|
|
|
|
if (i % 2 === 0) {
|
|
|
|
if (i % 2 === 0) {
|
|
|
|
dataArr.push({
|
|
|
|
dataArr.push({
|
|
|
|
name: (i + 1).toString(),
|
|
|
|
name: (i + 1).toString(),
|
|
|
@ -361,34 +371,59 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return dataArr
|
|
|
|
return dataArr
|
|
|
|
},
|
|
|
|
},
|
|
|
|
editorOptions() {
|
|
|
|
editorOptions() {
|
|
|
|
|
|
|
|
this.setOptionsLastRing();
|
|
|
|
//this.setOptionsTitle();
|
|
|
|
//this.setOptionsTitle();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 标题修改
|
|
|
|
// 最外外环1
|
|
|
|
setOptionsTitle() {
|
|
|
|
setOptionsLastRing() {
|
|
|
|
const optionsCollapse = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const title = {};
|
|
|
|
const series = this.options.series[0];
|
|
|
|
title.text = optionsCollapse.titleText;
|
|
|
|
if (optionsSetup.isLastRingShow) {
|
|
|
|
title.show = optionsCollapse.isNoTitle;
|
|
|
|
series.data = [0]
|
|
|
|
title.left = optionsCollapse.textAlign;
|
|
|
|
}else {
|
|
|
|
title.textStyle = {
|
|
|
|
series.data = ''
|
|
|
|
color: optionsCollapse.textColor,
|
|
|
|
}
|
|
|
|
fontSize: optionsCollapse.textFontSize,
|
|
|
|
const normal = {
|
|
|
|
fontWeight: optionsCollapse.textFontWeight
|
|
|
|
color: {
|
|
|
|
};
|
|
|
|
colorStops: [
|
|
|
|
title.subtext = optionsCollapse.subText;
|
|
|
|
{
|
|
|
|
title.subtextStyle = {
|
|
|
|
offset: 0,
|
|
|
|
color: optionsCollapse.subTextColor,
|
|
|
|
color: optionsSetup.lastRing0Color,
|
|
|
|
fontWeight: optionsCollapse.subTextFontWeight,
|
|
|
|
},
|
|
|
|
fontSize: optionsCollapse.subTextFontSize
|
|
|
|
{
|
|
|
|
|
|
|
|
offset: 1,
|
|
|
|
|
|
|
|
color: optionsSetup.lastRing100Color,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.options.title = title;
|
|
|
|
series.itemStyle['normal'] = normal;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
// 标题修改
|
|
|
|
|
|
|
|
setOptionsTitle() {
|
|
|
|
|
|
|
|
const optionsCollapse = this.optionsSetup;
|
|
|
|
|
|
|
|
const title = {};
|
|
|
|
|
|
|
|
title.text = optionsCollapse.titleText;
|
|
|
|
|
|
|
|
title.show = optionsCollapse.isNoTitle;
|
|
|
|
|
|
|
|
title.left = optionsCollapse.textAlign;
|
|
|
|
|
|
|
|
title.textStyle = {
|
|
|
|
|
|
|
|
color: optionsCollapse.textColor,
|
|
|
|
|
|
|
|
fontSize: optionsCollapse.textFontSize,
|
|
|
|
|
|
|
|
fontWeight: optionsCollapse.textFontWeight
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
title.subtext = optionsCollapse.subText;
|
|
|
|
|
|
|
|
title.subtextStyle = {
|
|
|
|
|
|
|
|
color: optionsCollapse.subTextColor,
|
|
|
|
|
|
|
|
fontWeight: optionsCollapse.subTextFontWeight,
|
|
|
|
|
|
|
|
fontSize: optionsCollapse.subTextFontSize
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
this.options.title = title;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|