var displayLanguages = function(infoHash, selector){
  var dataset = [];

  for (language in infoHash) {
    if (infoHash.hasOwnProperty(language)) {
      dataset.push({"label":language, "value":parseInt(infoHash[language])});
    }
  }

  createPieChart(dataset, selector);
}

var displayLineActivity = function(infoHash, selector) {
  var dataset = [
    {"label":"lines added", "value":parseInt(infoHash.lineAdditions)},
    {"label":"lines deleted", "value":parseInt(infoHash.lineDeletions)}
  ];
  createPieChart(dataset, selector);
}

var createPieChart = function(dataset, selector){
  var width = $(selector).width();
  var height = width;
  var radius = width/2;
  var color = d3.scale.category20b();

  var vis = d3.select(selector)
    .append("svg:svg")
    .data([dataset])
    .attr("width", width)
    .attr("height", height)
    .append("svg:g")
    .attr("transform", "translate(" + radius + "," + radius + ")")

  var arc = d3.svg.arc()
      .outerRadius(radius);

  var pie = d3.layout.pie()
      .value(function(d) { return d.value; });

  var arcs = vis.selectAll("g.slice")
    .data(pie)
    .enter()
    .append("svg:g")
    .attr("class", "slice");

  arcs.append("svg:path")
    .attr("fill", function(d, i) { return color(i); } )
    .attr("d", arc);

  arcs.append("svg:text")
    .attr("fill","#000")
    .style("text-transform","uppercase")
    .style("font-size","0.8em")
    .style("font-family", "'Oswald', sans-serif")
    .attr("transform", function(d){
    d.innerRadius = 0;
    d.outerRadius = radius;
    return "translate(" + arc.centroid(d) + ")";})
      .attr("text-anchor", "middle").text(
        function(d, i) {
          if(dataset[i].value > 0){
            return dataset[i].label;
          }
        }
      );
}

@@ -66,17 +66,16 @@
 t = %5B%5D;%0A
-%0A
   for (l
@@ -138,24 +138,159 @@
 anguage)) %7B%0A
+      if (language === %22null%22) %7B%0A        dataset.push(%7B%22label%22:%22other%22, %22value%22:parseInt(infoHash%5Blanguage%5D)%7D);%0A      %7D%0A      else %7B%0A  
       datase
@@ -351,24 +351,32 @@
 nguage%5D)%7D);%0A
+      %7D%0A
     %7D%0A  %7D%0A%0A 

Replace the word null with other in languages displayed in pie charts.