ypt = 1;
    var offsetX = 0;

    var maxX = 200;

    window.setInterval(function() {
        $.get("http://localhost:8077/metrics.json", function( json ) {
            var hps = {};

            var totY = 0;

            var newDeviceFound = false;

            for(key in json) {
                if(keyToN[key] || keyToN[key] === 0) continue;

                keyToN[key] = nJsKeys;
                samples[nJsKeys] = {
                    name: key,
                    color: nJsKeys,
                    