jqxBarGauge Fluid Size Example. The width and height of the jqxBarGauge in this demo are in percentages.
A live JavaScript/jQuery example of jqxBarGauge, the jQWidgets BarGauge component, with its complete source code below. It is one of 8 jqxBarGauge demos for jQuery.
colorScheme property – Sets the jqxBarGauge's color palette.height property – Sets or gets the BarGauge's height.values property – Sets or gets array of values for the BarGauge.width property – Sets or gets the BarGauge's width.To run it in your own page, load jqx.base.css, a theme and the library files below from npm (npm install jqwidgets-scripts) or the jsDelivr CDN, then add the markup and the script. jQuery is not required: jqxcore.js provides $.
The page loads jqx.base.css, a theme and these library files: jqxcore.js, jqxdraw.js, jqxbargauge.js.
$(document).ready(function myfunction()
{
$('#barGauge').jqxBarGauge({
width: '75%',
height: '75%',
colorScheme: 'scheme11',
values: [32, 11, 100, 49, 69, 20]
});
});
<div id="barGauge"></div>