|
@@ -283,30 +283,25 @@ function getPie3D(pieData, internalDiameterRatio) {
|
|
|
// 准备待返回的配置项,把准备好的 legendData、series 传入。
|
|
|
const option = {
|
|
|
color: [ "#5ef8c9", "#5ed3f8", "#EDE400"],
|
|
|
- legend: {
|
|
|
- // type: "scroll",
|
|
|
- data: legendData,
|
|
|
- icon: "roundRect",
|
|
|
- // orient: "vertical",
|
|
|
- padding: 5,
|
|
|
- itemGap: 20,
|
|
|
- bottom:'5%',
|
|
|
- left:'2%',
|
|
|
- itemWidth: 10, // 设置宽度
|
|
|
- itemHeight: 10, // 设置高度
|
|
|
- selectedMode: true,
|
|
|
- textStyle: {
|
|
|
- color: "#FFFFFF",
|
|
|
- fontSize: 14,
|
|
|
- lineHeight: 14,
|
|
|
- rich: {
|
|
|
- a: {
|
|
|
- // verticalAlign: "middle",
|
|
|
- },
|
|
|
- },
|
|
|
- padding: [0, 0, -3, 0],
|
|
|
- },
|
|
|
- },
|
|
|
+ // legend: {
|
|
|
+ // // type: "scroll",
|
|
|
+ // data: legendData,
|
|
|
+ // icon: "roundRect",
|
|
|
+ // // orient: "vertical",
|
|
|
+ // padding: 5,
|
|
|
+ // itemGap: 20,
|
|
|
+ // bottom:'5%',
|
|
|
+ // left:'2%',
|
|
|
+ // itemWidth: 10, // 设置宽度
|
|
|
+ // itemHeight: 10, // 设置高度
|
|
|
+ // selectedMode: true,
|
|
|
+ // textStyle: {
|
|
|
+ // color: "#FFFFFF",
|
|
|
+ // fontSize: 14,
|
|
|
+ // lineHeight: 14,
|
|
|
+ // padding: [0, 0, -3, 0],
|
|
|
+ // },
|
|
|
+ // },
|
|
|
tooltip: {
|
|
|
formatter: (params) => {
|
|
|
if (params.seriesName !== "mouseoutSeries") {
|
|
@@ -385,20 +380,20 @@ function getPie3D(pieData, internalDiameterRatio) {
|
|
|
<style scoped lang="less">
|
|
|
.container {
|
|
|
width: 440px;
|
|
|
- height: 264px;
|
|
|
+ height: 184px;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.container::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
- width: 290px;
|
|
|
- height: 198px;
|
|
|
+ width: 190px;
|
|
|
+ height: 138px;
|
|
|
background: url("../assets/images/1.png") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
// left: calc(50% - 145px);
|
|
|
- bottom: 10px;
|
|
|
- left: 70px;
|
|
|
+ bottom:10px;
|
|
|
+ left: 124px;
|
|
|
}
|
|
|
|
|
|
.container::before {
|