SciChart.js ships with ~60 JavaScript Chart Examples which you can browse, play with, view the source code and see related documentation. All of this is possible with the SciChart.js Examples Suite, which ships as part of the SciChart.js SDK
Demonstrates how to use the Builder Api to create a Chart from JSONusing SciChart.js, High Performance JavaScript Charts
Charts can be built from pure data, and also serialized to json.
This example simply passes the json you specify into the chartBuilder.build2DChart method
Call sciChartSurface.toJSON() to get definition object, rather than a string.
See the documentation links for the types and options you can specify.