

const getSankeyChart = () => {
  const option = {
    series: {
      type: 'sankey',
      layout: 'none',
      left: '5%',
      right: '5%',
      top: '5%',
      bottom: '5%',
      emphasis: {
        focus: 'adjacency'
      },
      nodeWidth: 50,
      label: {
        show: true,
        formatter: function (params) {
          return `${params.name} $${params.value}`;
        },
        position: 'right',
        textStyle: {
          fontSize: '16px',
          color: '#555'
        }
      },
      data: [
        {
          name: '马尔科·卢比奥',
          label: {
            position: 'left'
          }
        },
        {
          name: '成长俱乐部'
        },
        {
          name: '埃利奥特管理公司'
        },
        {
          name: '高盛集团'
        },
        {
          name: '黑石集团'
        },
        {
          name: '佛罗里达水晶'
        },
        {
          name: '美国银行'
        }

      ],
      links: [
        {
          source: '成长俱乐部',
          target: '马尔科·卢比奥',
          value: 680751
        },
        {
          source: '埃利奥特管理公司',
          target: '马尔科·卢比奥',
          value: 440120
        },
        {
          source: '高盛集团',
          target: '马尔科·卢比奥',
          value: 371517
        },
        {
          source: '黑石集团',
          target: '马尔科·卢比奥',
          value: 259321
        },
        {
          source: '佛罗里达水晶',
          target: '马尔科·卢比奥',
          value: 203775
        },
        {
          source: '美国银行',
          target: '马尔科·卢比奥',
          value: 150892
        }
      ]
    }
  };

  return option
}

export default getSankeyChart