Stimulsoft Dashboards.JS is a dashboards tool for Node.js and JavaScript applications. You can create new and load already created dashboards, easily connect to various databases, and export the dashboards to PDF, Excel, Data and other formats.
Ceate a project folder and install Dashboards.JS module using the specified command:
npm install stimulsoft-dashboards-js
Create index.js file in the folder, and add the required code:
// Stimulsoft dashboards module loading
var Stimulsoft = require('stimulsoft-dashboards-js');
// Loading fonts
Stimulsoft.Base.StiFontCollection.addOpentypeFontFile("Roboto-Black.ttf");
// Creating a new report object
var dashboard = Stimulsoft.Report.StiReport.createNewDashboard();
// Loading a dashboard template (MRT) into the dashboard object
dashboard.loadFile("dashboard1.mrt");
// Exporting the dashboard to PDF
dashboard.exportDocumentAsync((pdfData) => {
}
// Saving the dashboard object into a template file (MRT)
dashboard.saveFile("dashboard2.mrt");
Open console and run index.js
node index
The free trial versions of Stimulsoft Dashboards.JS for Node.js are fully functional and will work for an unlimited time. The only limitation is a Trial watermark displayed on each dashboard page. To activate the product, you do not need to install a special version, just add a license key.
Read more about Stimulsoft Dashboards.JS
You can try the Live Demo
More information in the Online Documentation