"use strict";
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.option = void 0;
var rich = {
    white: {
      color: "black",
      align: "center",
      padding: [5, 0]
    }
  },
  placeHolderStyle = {
    normal: {
      label: {
        show: !1
      },
      labelLine: {
        show: !1
      },
      color: "rgba(0, 0, 0, 0)",
      borderColor: "rgba(0, 0, 0, 0)",
      borderWidth: 0
    }
  },
  getData = function(e, o, r) {
    for (var l = [{
        name: "一级",
        value: e,
        color: "#0099cc"
      }, {
        name: "二级",
        value: o,
        color: "#ff9900"
      }, {
        name: "三级",
        value: r,
        color: "#009966"
      }], a = [], t = 0; t < l.length; t++) a.push({
      value: l[t].value,
      name: l[t].name,
      itemStyle: {
        normal: {
          borderWidth: 4,
          shadowBlur: 10,
          color: "black",
          borderColor: l[t].color,
          shadowColor: "rgba(142, 152, 241, 0.6)"
        }
      }
    }, {
      value: 0,
      name: "",
      itemStyle: placeHolderStyle
    });
    return a
  },
  seriesObj = function(e, o, r) {
    return [{
      name: "",
      type: "pie",
      clockWise: !1,
      radius: [33, 36],
      hoverAnimation: !1,
      itemStyle: {
        normal: {
          label: {
            show: !1
          },
          labelLine: {
            show: !1
          }
        }
      },
      data: getData(e, o, r)
    }]
  },
  option = function(e, o, r) {
    return {
      tooltip: {
        show: !1
      },
      legend: {
        show: !1
      },
      toolbox: {
        show: !1
      },
      series: seriesObj(e, o, r)
    }
  };
exports.option = option;
