Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
1.0 kB
5
Indexable
Never
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
      }
    }
  ]
};
Leave a Comment