chevron_right Demos chevron_right Building Graphs From Data
Discover More
Book a live Demo

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

  • Quick-start walkthrough + a real integration example
  • Live Q&A with next-step recommendations

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

Build Graph from Data

This demo shows how to build a graph using the data stored in JSON-format.

This demo utilizes the IGraph API to create graph elements, which can be useful for handling special cases.

However, for general use cases, we recommend using the GraphBuilder for creating graphs from data. It simplifies the process and is the recommended approach for most scenarios.

The input data structure itself is arbitrary. It just needs to contain all the necessary information to build the graph. This demo uses the following structure:

{
  "nodesSource" = [
    {"id": "0", "label": "Source"},
    {"id": "1", "group": "group0"},
    ...
  ],
  "edgesSource": [
    {"from": "0", "to": "group0"},
    ...
  ],
  "groupsSource": [
    {
      "id": "group0",
      "label": "Group 1"
    },
    ...
  ]
}