JSFiddle - React, Tailwind, and code Playground

by vysohanych

HTML

<script src="http://build-master.jaspersoft.com:8580/jrs-pro-feature-dashboard-improvements-for-jasper-mobile/client/visualize.js"></script>
<div id="container"></div>

CSS

html, body, #container {
    height: 100%;
    width: 100%;
    margin: 0;
}

JavaScript

visualize({
    auth: {
        name: "jasperadmin",
        password: "jasperadmin",
        organization: "organization_1"
    }
}, function (v) {
    var dashboard = v.dashboard({
        resource: "/public/Samples/Dashboards/2._Performance_Summary_Dashboard",
        container: "#container",
        success: function(data) {
            console.log(data.components);
        },
        error: function(e) {
            alert(e);
        }
    });
});