This example shows how to register JSON data from code:
<script type="text/javascript">
	// Set full screen mode for the viewer
	var options = new Stimulsoft.Viewer.StiViewerOptions();
	options.appearance.scrollbarsMode = true;
	options.appearance.fullScreenMode = true;
	// Create the dashboard viewer with specified options
	var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
	var report = Stimulsoft.Report.StiReport.createNewDashboard();
	// Load dashboard from url
	// Create new DataSet object
	var dataSet = new Stimulsoft.System.Data.DataSet("Demo");
	// Load JSON data file from specified URL to the DataSet object
	// Remove all connections from the dashboard template
	// Register DataSet object
	report.regData("Demo", "Demo", dataSet);
	// Show dashboard in the Viewer = report;

In the screenshot below you can see the result of the sample code:

Register Data for Dashboard Template