+ "," + margin.top + ")");

        var chartbody = chart.append("g")
            .attr("class", "chart body");

        var xscale = d3.scaleLinear()
            .domain([0, 10])
            .range([0, width]);
        var xaxis = d3.axisBottom(xscale);

        var xaxisbox = chart.append("g")
            .attr("class", "xaxis")
            .attr("transform", "translate(0," + height + ")")
            .call(xaxis);

        chartdata[i] = { 'xscale': xscale, 'xaxis': xaxis,
                         'body'