// 直接替换原配置即可
const getMultiLineChart = (dataX, dataY1, dataY2, dataY3, dataY4, dataY5, dataY6) => {
  return {
    tooltip: {
      trigger: 'axis',
      axisPointer: { type: 'cross', label: { backgroundColor: '#6a7985' } }
    },
    grid: { top: '12%', right: '5%', bottom: '12%', left: '5%', containLabel: true },
    legend: {
      data: ['科技法案', '出口管制', '科技政令', '合作限制', '市场准入', '人才限制'],
      icon: 'circle',          // 圆点图例
      itemWidth: 10,
      itemHeight: 10
    },
    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: 30,
      style: { text: '次', font: '12px sans-serif', fill: '#666' }
    }],
    series: [
      { name: '科技法案', type: 'line', emphasis: { focus: 'series' }, data: dataY1 },
      { name: '出口管制', type: 'line', emphasis: { focus: 'series' }, data: dataY2 },
      { name: '科技政令', type: 'line', emphasis: { focus: 'series' }, data: dataY3 },
      { name: '合作限制', type: 'line', emphasis: { focus: 'series' }, data: dataY4 },
      { name: '市场准入', type: 'line', emphasis: { focus: 'series' }, data: dataY5 },
      { name: '人才限制', type: 'line', emphasis: { focus: 'series' }, data: dataY6 }
    ]
  }
}
export default getMultiLineChart