Untitled

 avatar
unknown
plain_text
a year ago
1.0 kB
8
Indexable
option = {
  tooltip: {
    trigger: 'item',
    triggerOn: 'mousemove'
  },
  animation: false,
  series: [
    {
      type: 'sankey',
      bottom: '10%',
      emphasis: {
        focus: 'adjacency'
      },
      data: [
        { name: "All PO" },
    { name: "Distributed" },
    { name: "Undistributed" },
    { name: "Merchant" },
    { name: "SP Stock" },
    { name: "In Delivery" },
    { name: "In Vendor" }
      ],
      links: [
        { source: "All PO", target: "Distributed", value: 60000 },
    { source: "All PO", target: "Undistributed", value: 40000 },
    { source: "Distributed", target: "Merchant", value: 40000 },
    { source: "Distributed", target: "SP Stock", value: 20000 },
    { source: "Undistributed", target: "In Delivery", value: 15000 },
    { source: "Undistributed", target: "In Vendor", value: 25000 }
      ],
      orient: 'vertical',
      label: {
        position: 'top'
      },
      lineStyle: {
        color: 'source',
        curveness: 0.5
      }
    }
  ]
};
Editor is loading...
Leave a Comment