This example shows how to assign the dashboard to the viewer:
<script type="text/javascript">
	// Create the dashboard viewer with default options
	var viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false);
	// Create a new dashboard instance
	var report = Stimulsoft.Report.StiReport.createNewDashboard();
	// Load dashboard from url
	report.loadFile("../dashboard/DashboardChristmas.mrt");
	// Assign dashboard to the viewer, the dashboard will be built automatically after rendering the viewer
	viewer.report = report;
</script>

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

Assigning a Dashboard to the Viewer

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.