ActiveReportsJS exposes the API that allows creating reports programmatically. These example show how to create a chart at runtime.