<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> </head> <script src="raphael-2.1.4.min.js"></script> <script src="justgage.js"></script> <script> window.onload = function() { var g = new JustGage({ id: "gauge",value: 75,title: "Visitors",min: 0,max: 100,decimals: 2,gaugeWidthScale: 0.6,customSectors: [{ color : "#00ff00",lo : 0,hi : 50 },{ color : "#ff0000",lo : 50,hi : 100 }],counter: true }); } </script> <body> <div id="gauge" ></div> </body> </html>