"use strict";
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;
};
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const chart = require("../../../../public/chart.js");
const publicConfig = require("../../../../public/publicConfig.js");
const index$1 = require("./index.js");
const index = require("../../../../../settings/chartThemes/index.js");
const cloneDeep = require("../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.js");
const data = require("./data.json.js");
const LinearGradient = require("../../../../../../node_modules/.pnpm/zrender@5.4.4/node_modules/zrender/lib/graphic/LinearGradient.js");
const includes = ["legend", "xAxis", "yAxis", "grid"];
const options = {
  tooltip: {
    show: true,
    trigger: "axis",
    axisPointer: {
      type: "line"
    }
  },
  xAxis: {
    show: true,
    type: "category"
  },
  yAxis: {
    show: true,
    type: "value"
  },
  dataset: { ...data.default },
  series: [
    {
      type: "line",
      smooth: false,
      symbolSize: 5,
      //设定实心点的大小
      label: {
        show: true,
        position: "top",
        color: "#fff",
        fontSize: 12
      },
      lineStyle: {
        type: "solid",
        width: 3
      },
      areaStyle: {
        opacity: 0.8,
        color: new LinearGradient.default(0, 0, 0, 1, [
          {
            offset: 0,
            color: index.chartColorsSearch[index.defaultTheme][3]
          },
          {
            offset: 1,
            color: "rgba(0,0,0,0)"
          }
        ])
      }
    }
  ]
};
class Config extends publicConfig.PublicConfigClass {
  constructor() {
    super(...arguments);
    __publicField(this, "key", index$1.LineGradientSingleConfig.key);
    __publicField(this, "chartConfig", cloneDeep.default(index$1.LineGradientSingleConfig));
    // 图表配置项
    __publicField(this, "option", chart.echartOptionProfixHandle(options, includes));
  }
}
exports.default = Config;
exports.includes = includes;
