import * as echarts from "echarts";

const styleName1 = {
  xAxis: {
    type: "category",
    axisTick: {
      show: false,
    },
    axisLine: {
      lineStyle: {
        color: "rgba(185,185,185,0.3)",
      },
    },
    axisLabel: {
      show: true,
      color: "rgba(255,255,255,0.6)",
      margin: 5,
    },
    data: ["正常", "较大", "异常"],
  },
  yAxis: {
    type: "value",
    show: false,
    axisLine: {
      show: false,
    },
  },
  grid: {
    top: "0%",
    left: "-10%",
    right: "0%",
    bottom: "0%",
    containLabel: true,
  },
  series: [
    {
      data: [32, 40, 42],
      type: "bar",
      barWidth: 26,
      label: {
        show: true,
        color: "#fff",
        position: "insideTop",
      },
      itemStyle: {
        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
          {
            offset: 0,
            color: "#BBA269",
          },
          {
            offset: 1,
            color: "#3D3523",
          },
        ]),
        borderRadius: [2, 2, 0, 0],
      },
    },
  ],
};

export const pieOption = {styleName1};