This example is outdated, you can check out the many other new examples in this category.Dashboards.JS provides ready-made framework components, so a dashboard is shown by placing the viewer element and giving it a dashboard object.

Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
import { Viewer, Stimulsoft } from 'stimulsoft-dashboards-js-react/viewer';

function App() {
    var report = Stimulsoft.Report.StiReport.createNewDashboard();
    report.loadFile('Dashboards/Christmas.mrt');
    return <Viewer report={report} />;
}

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.