var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => {
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
  return value;
};
import { echartOptionProfixHandle } from "../../../../public/chart.mjs";
import { PublicConfigClass } from "../../../../public/publicConfig.mjs";
import { LineGradientsConfig } from "./index.mjs";
import { chartColorsSearch, defaultTheme } from "../../../../../settings/chartThemes/index.mjs";
import cloneDeep from "../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.mjs";
import dataJson from "./data.json.mjs";
import LinearGradient from "../../../../../../node_modules/.pnpm/zrender@5.4.4/node_modules/zrender/lib/graphic/LinearGradient.mjs";
const includes = ["legend", "xAxis", "yAxis", "grid"];
const option = {
  tooltip: {
    show: true,
    trigger: "axis",
    axisPointer: {
      type: "line"
    }
  },
  xAxis: {
    show: true,
    type: "category"
  },
  yAxis: {
    show: true,
    type: "value"
  },
  dataset: { ...dataJson },
  series: [
    {
      type: "line",
      smooth: false,
      symbolSize: 5,
      //设定实心点的大小
      label: {
        show: true,
        position: "top",
        color: "#fff",
        fontSize: 12
      },
      lineStyle: {
        width: 3,
        type: "solid"
      },
      areaStyle: {
        opacity: 0.8,
        color: new LinearGradient(0, 0, 0, 1, [
          {
            offset: 0,
            color: chartColorsSearch[defaultTheme][3]
          },
          {
            offset: 1,
            color: "rgba(0,0,0,0)"
          }
        ])
      }
    },
    {
      type: "line",
      smooth: false,
      label: {
        show: true,
        position: "top",
        color: "#fff",
        fontSize: 12
      },
      lineStyle: {
        width: 3,
        type: "solid"
      },
      areaStyle: {
        opacity: 0.8,
        color: new LinearGradient(0, 0, 0, 1, [
          {
            offset: 0,
            color: chartColorsSearch[defaultTheme][4]
          },
          {
            offset: 1,
            color: "rgba(0,0,0,0)"
          }
        ])
      }
    }
  ]
};
class Config extends PublicConfigClass {
  constructor() {
    super(...arguments);
    __publicField(this, "key", LineGradientsConfig.key);
    __publicField(this, "chartConfig", cloneDeep(LineGradientsConfig));
    // 图表配置项
    __publicField(this, "option", echartOptionProfixHandle(option, includes));
  }
}
export {
  Config as default,
  includes
};
