When I ran the sample code below, a blank page was generated.
The sample data named org-chart-data.csv
has already been stored in the data link.
Is it possible to create an organizational chart document from the organizational chart data via the API?
I apologize for the inconvenience, but I would greatly appreciate it if you could check this.
--------------------------------------------------------------------------------------------------------------------------------------------
{
"version": 1,
"product": "lucidchart",
"pages": p
{
"id": "page1",
"title": "Org Chart Example",
"dataBackedShapes": d
{
"id": "orgChart1",
"type": "orgChart",
"position": {
"x": 150,
"y": 150
},
"collectionId": "org-chart-data",
"idField": "Employee ID",
"foreignKeyField": "Supervisor ID",
"nameField": "Full Name",
"roleField": "Role",
"imageUrlField": "Image",
"extraFields":
"Email",
"Cell Phone",
"Building"
]
}
]
}
],
"collections":
{
"id": "org-chart-data",
"dataSource": "org-chart-data.csv"
}
]
}
response
https://lucid.app/lucidchart/ab7edbd2-ddef-4ee3-b2f3-1e0843a99175/view