A dashboard can be built entirely from code — pages and elements are objects you create and add.

Building the dashboard. Construct the dashboard hierarchy in code, configure the required objects, add them to the template, and render the result.
var report = Stimulsoft.Report.StiReport.createNewDashboard();
var dashboard = report.pages.getByIndex(0);

var textElement = new Stimulsoft.Dashboard.Components.Text.StiTextElement();
textElement.backColor = Stimulsoft.System.Drawing.Color.lightGray;
dashboard.components.add(textElement);

var viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false);
viewer.report = report;
viewer.renderHtml();
Dashboard elements — text, tables, charts, gauges — live in the Stimulsoft.Dashboard.Components namespace. Creating them in code and adding them to the dashboard page lets you generate dashboards dynamically.

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.