.enter().append("g");
        newbar.append("rect").style("fill", "green");
        //newbar.append("text");
        var bar = newbar.merge(bar);

        // Set the positions of the bars
        bar.attr("transform", function(d) {
            return "translate(" + thischart.xscale(d[0]) + "," +
                y(heightmap[d[2]]) + ")"; });

        // Set the sizes of the bars
        var rect = bar.select("rect")
            .attr("width", function(d) {
                return thischart.xscale(d[1]) - this