// 直接替换原配置即可
const getMultiLineChart = (dataX, dataY1, dataY2, dataY3, dataY4, dataY5, dataY6) => {
  return {
    tooltip: {
      trigger: "axis",
      axisPointer: { type: "cross", label: { backgroundColor: "#6a7985" } }
    },
    grid: { top: "22%", right: "5%", bottom: "5%", left: "5%", containLabel: true },
    legend: {
      data: ["科技法案", "出口管制", "科技政令", "合作限制", "市场准入", "人才限制"],
      icon: "circle", // 圆点图例
      itemWidth: 10,
      itemHeight: 10,
      textStyle: {
        fontSize: "14px"
      }
    },
    color: ["#055FC2", "#14A8A8", "#722FD1", "#FA8C15", "#69B2FF", "#D35E61"],
    xAxis: [
      {
        type: "category",
        boundaryGap: false,
        data: dataX,
        axisLabel: { rotate: 45 } // 文字向右倾斜
      }
    ],
    yAxis: [{ type: "value" }],
    graphic: [
      {
        // 右上角单位
        type: "text",
        right: 20,
        top: 50,
        style: { text: "单位：次", font: "14px sans-serif", fill: "#666" }
      }
    ],
    series: [
      {
        name: "科技法案",
        type: "line",
        lineStyle: {
          width: 1.5// 设置折线颜色
        },
        emphasis: { focus: "series" },
        data: dataY1
      },
      {
        name: "出口管制", type: "line", lineStyle: {
          width: 1.5// 设置折线颜色
        }, emphasis: { focus: "series" }, data: dataY2
      },
      {
        name: "科技政令", type: "line", lineStyle: {
          width: 1.5// 设置折线颜色
        }, emphasis: { focus: "series" }, data: dataY3
      },
      {
        name: "合作限制", type: "line", lineStyle: {
          width: 1.5// 设置折线颜色
        }, emphasis: { focus: "series" }, data: dataY4
      },
      {
        name: "市场准入", type: "line", lineStyle: {
          width: 1.5// 设置折线颜色
        }, emphasis: { focus: "series" }, data: dataY5
      },
      {
        name: "人才限制", type: "line", lineStyle: {
          width: 1.5// 设置折线颜色
        }, emphasis: { focus: "series" }, data: dataY6
      }
    ]
  };
};
export default getMultiLineChart;
