zoukankan      html  css  js  c++  java
  • v-charts

     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: ""
                  }
                ]
              }
            ]
          },
  • 相关阅读:
    Guava教程
    Spring Aop基于注解的实现
    简单易懂设计模式——策略模式
    Hibernate入门总结
    mybatis入门详解
    Mybatis【入门总结】
    手把手教你做一个缓存工具
    超简洁!利用easyExcel导出,读入Excel
    飞越面试官(四)--类加载过程
    飞越面试官(三)--JVM
  • 原文地址:https://www.cnblogs.com/provedl/p/10593319.html
Copyright © 2011-2022 走看看