<script type="text/javascript"> $(function(){ var percent = "${evICVDBean.resultString}"; console.log(percent); $("#evICVDChart").jQMeter({ goal:'80.0', raised: percent, meterOrientation:'horizontal', width:'260px', height:'40px', bgColor:'gray', displayTotal:false, barColor:'#ffd700', bgColor:'#cccccc' }); }) </script>