[height, 0]);

            xLinear = d3.scale.linear()
                    .domain([offsetX, offsetX + maxX])
                    .range([0, width]);

            var btcSamples = [];
            var scryptSamples = [];
            for(i in samples)
                if(samples[i].btc) btcSamples.push(samples[i]);
                else scryptSamples.push(samples[i]);

            if(!hasInited) {
                svg.remove();
                svg2.remove();
                hasInited = true;

                svg