本示例说明如何将仪表板分配给查看器。
Stimulsoft Dashboards.JS是一个功能齐全的工具,用于为JavaScript平台创建仪表板。要生成和查看仪表板,您需要任何支持HTML5和JavaScript的Web浏览器。当不需要服务器端时,它可以作为客户端工作,也可以在服务器端使用服务器端。该软件与Node.js完美兼容。
本示例说明如何将仪表板分配给查看器。
<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>
在下面的屏幕截图中,您可以看到示例代码的结果。

下载示例代码
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!