The VisualScript SDK provides an object model that allows a developer to write code that turns data into diagrams for SmartDraw. You can learn more about it here.
Once you have a script that generates VisualScript, you can import any generated VisualScript into SmartDraw to create a diagram.
To do, click on the Plus (+) icon to switch the SmartPanel to the Insert Content view.
Then choose VisualScript under Add Data Visualization.
You'll be prompted to upload a VisualScript file from your computer. You can drag and drop a file or browse your system to find a file.
This import accepts files in the following formats: JSON, SDON, VSON.
You can learn about how to create and format a file that will work here by studying the VisualScript SDK.
The file will be formatted something like this:
Attached to this article are some sample files you can use.
Clicking import will generate your visual that you can edit like any other SmartDraw diagram. Add text, change color, add and delete shapes.