Skip to main content

Hello,

Is it possible to draw diagrams programmatically by importing data? For example, I could have data in an Excel/CSV or could import data via API. Then I would want to programmatically use the data and draw the diagram without having to create the diagram manually.  Is it possible to use Lucid Developers tools to achieve this? If yes, can you pls share some reference links and examples? 

Hello Akshayj,

 

Yes, it is absolutely possible to programmatically generate diagrams with incoming data. This would most easily be achieved using Lucid’s Extension API. With the extension API, you are able to add shapes and lines, move them around the canvas, and attach data to the document. For more specifics on how you visualize data, I would recommend reading through some of our documentation, specifically going through the data visualization section. For code examples of how this is done through the Extension API, I would recommend going through some of our examples found on github (more specifically, the car manager example).

 

Let me know if you have any other questions,

Connor


Thanks for the response, Connor. This is helpful. I will go through the links you shared.

For the use-case I am exploring I want to integrate with LeanIX application to get data via calling LeanIX Rest API and then integrate with Lucidchart to automate the diagram/programmatically create the diagram. I am thinking to implement diagram as a code. Will you be able to share any LeanIX integration example? If not, any example that would get data via API and then integrate with Lucid? 


Reply