V. chart size and resize. 100%container.
by Pavel Savushchyk
HTML
<script src="http://localhost:8080/jrs2p/client/visualize.js?_opt=false"></script>
<p>Visualize.js Highchart size. Height 100%.</p>
<div id="reportContainer">Loading..</div>
CSS
html, body, #reportContainer {
height: 100%;
}
JavaScript
visualize({
auth: {
name: "superuser",
password: "superuser"
}
}, function (v) {
v.report({
resource: "/public/Samples/Reports/01._Geographic_Results_by_Segment_Report",
container: "#reportContainer",
error: function (err) {
alert(err.message);
}
});
});