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

/**
 * 计量器
 */
export class Meter {
  /**
   * 计量器0
   * @returns 计量器0配置项
   */
  static meter0() {
    const option = {
      color: getComVal("color_data"),
      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;
  }
}
