|
|
@@ -88,7 +88,7 @@ export default { |
|
|
|
}); |
|
|
|
chart.legend({ |
|
|
|
position: "right-center", |
|
|
|
offsetX: this.$root.$options.filters.filterPx(0.8,this.fontSize), |
|
|
|
offsetX: this.$root.$options.filters.filterPx(0.46,this.fontSize), |
|
|
|
textStyle: { |
|
|
|
fill: "#ffffff", |
|
|
|
fontSize: this.$root.$options.filters.filterPx(0.16,this.fontSize), |
|
|
@@ -98,7 +98,7 @@ export default { |
|
|
|
chart |
|
|
|
.intervalStack() |
|
|
|
.position("totalNum") |
|
|
|
.color("name", ["#10BF79", "#0A9EBF", "#065ABF", "#BD2B4A", "#BCBF33"]) |
|
|
|
.color("code", ["#10BF79", "#0A9EBF", "#065ABF", "#BD2B4A", "#BCBF33",'#9340FF']) |
|
|
|
.shape("sliceShape") |
|
|
|
.label("totalNum", { |
|
|
|
textStyle: { |
|
|
@@ -106,7 +106,7 @@ export default { |
|
|
|
fontSize: this.$root.$options.filters.filterPx(0.16,this.fontSize), |
|
|
|
fontWeight: 300 |
|
|
|
}, |
|
|
|
offset: this.$root.$options.filters.filterPx(0.42,this.fontSize), |
|
|
|
offset: this.$root.$options.filters.filterPx(0.44,this.fontSize), |
|
|
|
formatter: (val, item) => { |
|
|
|
return parseInt((val/total)*100) + "%"; |
|
|
|
} |