I want to create two separate boxes side by side which shows like the image given below. My JavaScript code is written below. The issue is when I am trying to create the second box it comes down, whereas I want the box beside the first box.
//define your javascript libraries
resource = [
"//cdn.jsdelivr.net/raphael/2.1.0/raphael-min.js",
"//cdn.jsdelivr.net/justgage/1.0.1/justgage.min.js"
]
//add scripts to head
$.getScript(resource[0], function() {
$.getScript(resource[1], init)
})
//start your widget
init = function() {
var g = new JustGage({
id: "gauge",
value: parseInt($("#6becbadfe55c4b04a589afae48ea4843").text()),
min: -1000,
max: 1000,
title: "Net Income margin %"
});
//refresh gauge when calcvalue changes
$(calcValue).on('DOMSubtreeModified', function() {
g.refresh($(this).text())
})
}
<DIV id=gauge style="HEIGHT: 325px; WIDTH: 570px"></DIV>
<SPAN id=calcValue><SpotfireControl id="6becbadfe55c4b04a589afae48ea4843" /></SPAN>
Now the output which I am seeking for is look like:
Need help how to do this?