Código PHP:
Ver original<!doctype html>
<html>
<style>
body {
display:inline-block;
}
#contenedor {
width:100px; height:80px;
}
</style>
<head>
<title>Auto-adjust</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="resources/js/raphael.2.1.0.min.js"></script>
<script src="resources/js/justgage.1.0.1.min.js"></script>
<div id="contenedor">
<?php
$jsonData = file_get_contents("https://www.ltcrabbit.com/index.php?page=api&action=getuserworkers&api_key=51336f7fe51761e8229f3ddd73fcf9beaf6d229903bbcad2274db6e6c8d47909&id=8113");
foreach ($data["getuserworkers"] as $row) {
$id= $row["id"] ;
$hashrate= $row["hashrate"];
$username= $row["username"];
?>
<div id="<?=$id;?>" class="120x80px">
<script>
var id ="<?php echo $id; ?>" ;
var hashrate ="<?php echo $hashrate; ?>" ;
var username ="<?php echo $username; ?>" ;
var g = new JustGage({
id: id,
value: hashrate,
min: 0,
max: 2000,
title: username
});
</script>
</div>
<?php
}
?>
</div>
</html>
el jar del gauge :
http://justgage.com/