Skip to main content

Create Chart from JSON script

  • March 24, 2023
  • 1 reply
  • 150 views

Mike K102

I have json that describes the diagram.

How to create new document with the following json:
{
  "nodes": [
    {
      "id": "A"
      "type": "rectangle"
      "text": "App Manager"
    }
    {
      "id": "B"
      "type": "rectangle"
      "text": "Visual"
    }
    {
      "id": "C"
      "type": "rectangle"
      "text": "ClientFromServer"
    }
    {
      "id": "D"
      "type": "rectangle"
      "text": "ClientToServer"
    }
    {
      "id": "E"
      "type": "rectangle"
      "text": "ClientFromCtpty"
    }
    {
      "id": "F"
      "type": "rectangle"
      "text": "ClientToCtpy"
    }
  ]
  "edges": [
    {
      "type": "standard"
      "path": [
        {
          "node": "A"
          "port": "right"
        }
        {
          "node": "B"
          "port": "left"
        }
      ]
    }
    {
      "type": "standard"
      "path": [
        {
          "node": "A"
          "port": "bottom"
        }
        {
          "node": "C"
          "port": "top"
        }
      ]
    }
    {
      "type": "standard"
      "path": [
        {
          "node": "A"
          "port": "bottom"
        }
        {
          "node": "D"
          "port": "top"
        }
      ]
    }
    {
      "type": "standard"
      "path": [
        {
          "node": "C"
          "port": "bottom"
        }
        {
          "node": "E"
          "port": "top"
        }
      ]
    }
    {
      "type": "standard"
      "path": [
        {
          "node": "D"
          "port": "bottom"
        }
        {
          "node": "F"
          "port": "top"
        }
      ]
    }
  ]
}

Comments

Micah
Forum|alt.badge.img+20
  • Lucid community team
  • March 24, 2023

Hi Mike thanks for posting in the Lucid Community! Unfortunately automatic diagram creation via JSON import isn't currently supported in Lucidchart. 

However we're always looking for ways to improve Lucidchart and your feedback is the best way for us to do that. Would you mind adding your idea to our feature request form? Ideas submitted to this form are passed on to the product development team for their consideration. As a growing company we take our feature requests very seriously. We are continuously looking for how we can make our product more useful and effective for our users and we pass that information directly to our product development team. Thanks for your request and I apologize for any inconvenience this causes you.