博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
v-charts
阅读量:6614 次
发布时间:2019-06-24

本文共 9313 字,大约阅读时间需要 31 分钟。

optionpie_top: {        title: {          x: "50%",          y: "45%",          textAlign: "center",          top: "75%", //字体的位置          text: "当日能源利用率",          textStyle: {            fontWeight: "normal",            color: "black",            fontSize: 16          },          subtextStyle: {            //副标题的文字的样式            fontWeight: "bold",            fontSize: 18,            color: "#3ea1ff"          }        },        series: [          {            name: " ",            type: "pie",            radius: ["50%", "70%"],            avoidLabelOverlap: false,            startAngle: 225,            color: ["#7EB8FF", "transparent"],            hoverAnimation: false,            legendHoverLink: false,            label: {              normal: {                show: false,                position: "center"              },              emphasis: {                show: true,                textStyle: {                  fontSize: "30",                  fontWeight: "bold"                }              }            },            labelLine: {              normal: {                show: false              }            },            data: [              {                value: 75,                name: "1"              },              {                value: 25,                name: "2"              }            ]          },          {            name: "",            type: "pie",            radius: ["52%", "68%"],            avoidLabelOverlap: false,            startAngle: 317,            color: ["#fff", "transparent"],            hoverAnimation: false,            legendHoverLink: false,            clockwise: false,            itemStyle: {              normal: {                borderColor: "transparent",                borderWidth: "20"              },              emphasis: {                borderColor: "transparent",                borderWidth: "20"              }            },            z: 10,            label: {              normal: {                show: false,                position: "center"              },              emphasis: {                show: true,                textStyle: {                  fontSize: "30",                  fontWeight: "bold"                }              }            },            labelLine: {              normal: {                show: false              }            },            data: [              {                value: ((100 - percent) * 270) / 360,                label: {                  normal: {                    formatter: percent + "%",                    position: "center",                    show: true,                    textStyle: {                      fontSize: "20",                      fontWeight: "normal",                      color: "black"                    }                  }                },                name: ""              },              {                value: 1,                name: ""              },              {                value: 100 - ((100 - percent) * 270) / 360,                name: ""              }            ]          }        ]      },      optionpie_center: {        title: {          x: "50%",          y: "45%",          textAlign: "center",          top: "75%", //字体的位置          text: "当月能源利用率",          textStyle: {            fontWeight: "normal",            color: "black",            fontSize: 16          },          subtextStyle: {            //副标题的文字的样式            fontWeight: "bold",            fontSize: 18,            color: "#3ea1ff"          }        },        series: [          {            name: " ",            type: "pie",            radius: ["50%", "70%"],            avoidLabelOverlap: false,            startAngle: 225,            color: ["#38D2BC", "transparent"],            hoverAnimation: false,            legendHoverLink: false,            label: {              normal: {                show: false,                position: "center"              },              emphasis: {                show: true,                textStyle: {                  fontSize: "30",                  fontWeight: "bold"                }              }            },            labelLine: {              normal: {                show: false              }            },            data: [              {                value: 75,                name: "1"              },              {                value: 25,                name: "2"              }            ]          },          {            name: "",            type: "pie",            radius: ["52%", "68%"],            avoidLabelOverlap: false,            startAngle: 317,            color: ["#fff", "transparent"],            hoverAnimation: false,            legendHoverLink: false,            clockwise: false,            itemStyle: {              normal: {                borderColor: "transparent",                borderWidth: "20"              },              emphasis: {                borderColor: "transparent",                borderWidth: "20"              }            },            z: 10,            label: {              normal: {                show: false,                position: "center"              },              emphasis: {                show: true,                textStyle: {                  fontSize: "30",                  fontWeight: "bold"                }              }            },            labelLine: {              normal: {                show: false              }            },            data: [              {                value: ((100 - percent_M) * 270) / 360,                label: {                  normal: {                    formatter: percent_M + "%",                    position: "center",                    show: true,                    textStyle: {                      fontSize: "20",                      fontWeight: "normal",                      color: "black"                    }                  }                },                name: ""              },              {                value: 1,                name: ""              },              {                value: 100 - ((100 - percent_M) * 270) / 360,                name: ""              }            ]          }        ]      },      optionpie_bottom: {        title: {          x: "50%",          y: "45%",          textAlign: "center",          top: "75%", //字体的位置          text: "当年能源利用率",          textStyle: {            fontWeight: "normal",            color: "black",            fontSize: 16          },          subtextStyle: {            //副标题的文字的样式            fontWeight: "bold",            fontSize: 18,            color: "#3ea1ff"          }        },        series: [          {            name: " ",            type: "pie",            radius: ["50%", "70%"],            avoidLabelOverlap: false,            startAngle: 225,            color: ["#F091B4", "transparent"],            hoverAnimation: false,            legendHoverLink: false,            label: {              normal: {                show: false,                position: "center"              },              emphasis: {                show: true,                textStyle: {                  fontSize: "30",                  fontWeight: "bold"                }              }            },            labelLine: {              normal: {                show: false              }            },            data: [              {                value: 75,                name: "1"              },              {                value: 25,                name: "2"              }            ]          },          {            name: "",            type: "pie",            radius: ["52%", "68%"],            avoidLabelOverlap: false,            startAngle: 317,            color: ["#fff", "transparent"],            hoverAnimation: false,            legendHoverLink: false,            clockwise: false,            itemStyle: {              normal: {                borderColor: "transparent",                borderWidth: "20"              },              emphasis: {                borderColor: "transparent",                borderWidth: "20"              }            },            z: 10,            label: {              normal: {                show: false,                position: "center"              },              emphasis: {                show: true,                textStyle: {                  fontSize: "30",                  fontWeight: "bold"                }              }            },            labelLine: {              normal: {                show: false              }            },            data: [              {                value: ((100 - percent_Y) * 270) / 360,                label: {                  normal: {                    formatter: percent_Y + "%",                    position: "center",                    show: true,                    textStyle: {                      fontSize: "20",                      fontWeight: "normal",                      color: "black"                    }                  }                },                name: ""              },              {                value: 1,                name: ""              },              {                value: 100 - ((100 - percent_Y) * 270) / 360,                name: ""              }            ]          }        ]      },

 

转载于:https://www.cnblogs.com/provedl/p/10593319.html

你可能感兴趣的文章
Rocket - diplomacy - LazyModuleImpLike
查看>>
如何取消OneNote的粘贴来源地址
查看>>
Nginx+Tomcat实现动静分离
查看>>
Exchange Server 2016管理系列课件25.管理安全通讯组
查看>>
考前必背的50个知识点——系统集成项目管理工程师考试
查看>>
计算机科学,大一学生怎样来爱你(文&PPT)
查看>>
linux中vmstat命令详解
查看>>
PHP 开发社区微信服务号实战图解
查看>>
Exchange Server 2013 系列八:邮箱服务器角色DAG实战
查看>>
php使用curl下载指定大小的文件
查看>>
strongswan
查看>>
Android Studio公布到Jcenter
查看>>
投资日历
查看>>
VS2013创建Node.js C++ Addons的过程
查看>>
[Python]南邮OJ代码备份爬虫
查看>>
【centos6】安装redis 以及 常用配置参数
查看>>
python 爬虫 糗百成人
查看>>
amaze ui中的icon button
查看>>
ivy 入门
查看>>
20个可用于商业用途的免费 CC0 授权的高分辨率图库
查看>>