
const getGraph = () => {
  return {
    series: [{
      type: 'graph',
      layout: 'force',
      symbolSize: 60,
      roam: true,
      label: { show: true },
      edgeSymbol: ['arrow', 'none'],
      edgeSymbolSize: [8, 4],
      force: {
        repulsion: 800, // 适当调大
        gravity: 0.1,   // 适当调小
        edgeLength: 240 // 可适当调整
      },
      // { name: '宁德时代', symbolSize: 80, symbol: 'image://your_center.png', label: { fontWeight: 'bold' } },
      data: [
        { name: '宁德时代', draggable: true, itemStyle: { color: '#ccc' }, label: { color: '#333', fontWeight: 'bold' } },
        { name: '泰丰先行' }, { name: '国轩高科' }, { name: '晶科能源' }, { name: '容百科技' },
        { name: '江西紫宸' }, { name: '比亚迪' }, { name: '长盈精密' }, { name: '昆仑化学' },
        { name: '海辰储能' }, { name: '华阳集团' }, { name: '嘉源科技' }, { name: '天合光能' },
        { name: '铜陵有色' }, { name: '紫江企业' }, { name: '格林美' }, { name: '德方纳米' }
      ],
      links: [
        { source: 0, target: 1 }, { source: 0, target: 2 }, { source: 0, target: 3 },
        { source: 0, target: 4, lineStyle: { type: 'dashed', color: '#d32f2f' } },
        { source: 0, target: 5 }, { source: 0, target: 6 }, { source: 0, target: 7 },
        { source: 0, target: 8 }, { source: 0, target: 9, lineStyle: { type: 'dashed', color: '#d32f2f' } },
        { source: 0, target: 10, lineStyle: { type: 'dashed', color: '#d32f2f' } },
        { source: 0, target: 11 }, { source: 0, target: 12 }, { source: 0, target: 13 },
        { source: 0, target: 14 }, { source: 0, target: 15 }, { source: 0, target: 16 }
      ]
    }]
  }
}

export default getGraph