anchor.diff:  
         var margin = {top: 20, right: 20, bottom: 30, left: 70},
         width = 720 - margin.left - margin.right,
  -      height = 1000 - margin.top - margin.bottom;
  +      height = 500 - margin.top - margin.bottom;
   
         var x = d3.scale.linear()
  -          .domain([0, 100])
  +          .domain([0, d3.max(cumSums)])
             .range([0, width]);
   
         var y = d3.scale.ordinal()
  -          .domain(y2values)
  -          .rangeRoundBands([0, height], 5);
  +          .domain(yAxisLabels)
  +          .rangeRoundBands([0, height], .1);
   
         var xAxis = d3.svg.axis()
             .scale(x)
  
positive.code: 
  
        //number based categorys from json, besides NDB_No, 27 entries
        var yAxisLabels = ["Water","Kcal", "Protein", "Tot_Fat", "Carbs", "Fiber", "Ash",
        "Calcium", "Phos", "Iron", "Sodium", "Potas", "Magnes", "Zinc", "Copper", "Vit_A", "Vit_E",
        "Thiamin", "Ribofl", "Niacin", "Vit_C", "FA_Sat","FA_Mono","FA_Poly", "Choles", "GmWt_1", "Refuse%"];
        // 28 entries total
        var yvalues = [];
        var y2values = [];
        var yMaxes = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
        var majorGroups = ["Dairy and Egg", "Fruit, Nut and Vegetable", "Processed Foods", "Fats and Oils",
                           "Meat and Fish", "Soups, Sauces, and Gravies", "Starches", "Beverages"]
        var subGroups = ["Dairy and Egg Products", "Spices and Herbs", "Baby Foods", "Fats and Oils",
              "Poultry Products", "Soups, Sauces, and Gravies", "Sausages and Luncheon Meats",
              "Breakfast Cereals", "Fruits and Fruit Juices", "Pork Products", "Vegetables and Vegetable Products",
              "Nut and Seed Products", "Beef Products", "Beverages", "Finfish and Shellfish Products",
              "Legumes and Legume Products", "Lamb, Veal, and Game Products", "Baked Products", "Snacks and Sweets",
              "Cereal Grains and Pasta", "Fast Foods", "Meals, Entrees, and Sidedishes"];
  
        function contains(a, obj) {
          var i = a.length;
  
negative.code:       41.80646084337349, 155.8459002677344, 5.924866131191433]
        var averagesRaw = [];
        var cumSums = [];
        for(var y = 1; y < y2values.length / 100; y++) {
          var sum = 0;
          var frac = y * 100;
          for (var x = (y - 1) * 100; x < frac; x++) {
            sum += y2values[x]
          }
          cumSums.push(sum / 100);
        }
        //remove NDB_No from array
  
  
        $(document).ready(function() {
          $("input#foodFilter").autocomplete({
  