0

enter image description here

This is my api response.So I have network data like this :

const data = {
    nodes: [
      {
        id: "ETH",
        svg:
          "https://cdn-icons-png.flaticon.com/512/2891/2891526.png",
        
      },
      {
        id: "BTC",
        svg:
          "https://cdn-icons-png.flaticon.com/512/3033/3033143.png",
          size :400
      },
    ],
    links: [
      { source: "ETH", target: "BTC" },

    ]
  };

What I want to do is the response of persons(persons.personalData) object that is the name of person I want that to be nodes of network. I cant make it work. Any idea?

Leo
  • 11
  • 1

0 Answers0