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.