Visualize: render Ad Hoc View

Test plugins

HTML

<script src="http://code.jquery.com/jquery-2.1.0.js"></script>
<!--Provide URL to visualize.js-->

<script type='text/javascript' src="http://localhost:7080/jasperserver-pro/client/visualize.js"></script>
<!--<script type='text/javascript' src="http://localhost:8080/jrs/client/visualize.js"></script>-->

<link rel="stylesheet" href="http://localhost:8080/jasperserver-amber-adv/scripts/adhoc/api/css/adHocView.css" type="text/css" media="screen">
<!--Provide container to render your visualization-->
<div id="container">
    <p>Select Chart Type:</p>
    <div id="typeChooser"></div>
    <div id="chart"></div>
    <p>Properties:</p>
    <div id="properties"></div>
    <div id="filterPanels"></div>
</div>

CSS

.control {
    display: block;
}
.control.input.text > .wrap {
    display:block;
}
.control > input {
    width: 360px;
}
.error, .logout {
    color: red;
}
.success {
    color: green;
}
.message {
    display: none;
}
#properties{
    margin-left: 10px;
    width: 350px;
    margin-left: 10px !important;
}
#typeChooser{
    width: 350px;
    margin-bottom: 10px;
    margin-left: 5px;
}
#chart{
    height: 500px;
    margin-bottom: 40px;
    position: relative;
    margin-left: 5px;
}
#filterPanels{
    margin-top: 10px;
}

.control.checkBox input{
    position:relative !important;
}

JavaScript

visualize({
    auth: {
        name: "superuser",
        password: "superuser"
    }
}, function (v) {
    
    v.adhocView({
       // server: "http://localhost:7080/jasperserver-pro",
        resource: "/public/Users_Attributes_Info_View",
        container: "#chart",
     
        error: handleError
    });


    //show error
    function handleError(err){
        alert(err.message);
    }

});