import { getComVal } from "../echart-method";

/**
 * 仪表盘
 */
export class Meter {
  /**
   * 仪表盘0
   * @returns 仪表盘0配置项
   */
  static meter0() {
    const option = {
      color: getComVal("colorData"),
      backgroundColor: getComVal("backgroundColor"),
      grid: getComVal("grid"),
      tooltip: getComVal("tooltip"),
      series: [
        {
          name: "Pressure",
          type: "gauge",
          progress: {
            show: true,
          },
          detail: {
            formatter: "{value}",
          },
          data: [
            {
              value: 50,
              name: "SCORE",
            },
          ],
        },
      ],
    };
    return option;
  }
}
