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 { BarLineConfig } from "./index.mjs";
import cloneDeep from "../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.mjs";
import dataJson from "./data.json.mjs";
const includes = ["legend", "xAxis", "yAxis", "grid"];
const barSeriesItem = {
  type: "bar",
  barWidth: 15,
  label: {
    show: true,
    position: "top",
    color: "#fff",
    fontSize: 12
  },
  itemStyle: {
    color: null,
    borderRadius: 2
  }
};
const lineSeriesItem = {
  type: "line",
  symbol: "circle",
  label: {
    show: true,
    position: "top",
    color: "#fff",
    fontSize: 12
  },
  symbolSize: 5,
  //设定实心点的大小
  itemStyle: {
    color: "#FFE47A",
    borderWidth: 1
  },
  lineStyle: {
    type: "solid",
    width: 3,
    color: null
  }
};
const option = {
  tooltip: {
    show: true,
    trigger: "axis",
    axisPointer: {
      show: true,
      type: "shadow"
    }
  },
  legend: {
    data: null
  },
  xAxis: {
    show: true,
    type: "category"
  },
  yAxis: {
    show: true,
    type: "value"
  },
  dataset: { ...dataJson },
  series: [barSeriesItem, lineSeriesItem]
};
class Config extends PublicConfigClass {
  constructor() {
    super(...arguments);
    __publicField(this, "key", BarLineConfig.key);
    __publicField(this, "chartConfig", cloneDeep(BarLineConfig));
    // 图表配置项
    __publicField(this, "option", echartOptionProfixHandle(option, includes));
  }
}
export {
  barSeriesItem,
  Config as default,
  includes,
  lineSeriesItem,
  option
};
