anchor.diff:  		  });
   	}
   
  -    function appendTimeSeries(parentSelector, graphparams, points){
  +   
  +	function appendTimeSeries(parentSelector, graphparams, points){
   		
       	$(parentSelector).addClass("timeSeries");
  -		/*
  -		var dataset = [{
  -						"varId": 2300,
  -						"title": "Depression Over Time",
  -						"numberOfMonths": 12,   // TBD after Liz question is answered
  -						"timeSeriesParams":  {
  -												"ticks": [
  -															{"value": "100", "date": "01/01/2014"},
  -															{"value": "50", "date": "02/01/2014"},
  -															{"value": "60", "date": "03/01/2014"},
  -															{"value": "70", "date": "04/01/2014" },
  -															{"value": "120", "date": "05/01/2014"},
  -															{"value": "60", "date": "06/01/2014"},
  -															{"value": "60", "date": "07/01/2014"},
  -															{"value": "60", "date": "08/01/2014"}
  -												],
  -												"intervals": [
  -															{"key": "Normal Range 20-44", 				"range": "44", "color": "#75cc51"},
  -															{"key": "Mildly Depressed 45-59", 			"range": "60", "color": "#f4e800" },
  -															{"key": "Moderately Depressed 60-69", 		"range": "69", "color": "#ff9e58"},
  -															{"key": "Severely Depressed 70 and above", 	"range": "120" , "color": "#e46a69" }						
  -												]
  -											}
  -		
  -						}];
  -		*/
  -		
  +
   		var ticks = [];
   		var maxValue;
  +		
  +		var series   = graphparams.legends;
  +		
  +		
   		$.each(points, function(date, valueStr){
   			//TODO: Add check if can't be parsed
   			var value = parseFloat(valueStr);
  
positive.code: 			})
  				.attr("width", 8)
  				.attr("height", 30)
  				.style("fill", function (d, i) {
  				var color = intervals[i].color;
  				return color;
  			});
  	
  			// Add Legend Started Here
  			legend.append("g")
  				.attr("class", "legendBar")
  				.attr("transform", "translate(" + xLegendTextPosition + ", 0)")
  				.selectAll('text')
  				.data(intervals)
  				.enter()
  				.append("text")
  				.attr("x", xLegendTextPosition)
  
negative.code: 		      xMax            = d3.max(ticks),
  		      xCurrent        = graphparams.score, //4,
  		      ticks           = ticks, //[0, 4, 10, 20, 27],
  		      // colors          = ['#cfd8e0', '#b7c4d0', '#879cb2', '#577593', '#3f6184', '#0f3a65', '#0d3054', '#0a2845', '#082038', "#000000"],
  		      series          = graphparams.legends,
  		      dataset         = graphparams.dataset,
  		      pointerColor    = '#0f3a65',
  		      pointerWidth    = 36,
  		      pointerHeight   = 36,
  		      stack = d3.layout.stack();
  		
  	    stack(dataset);
  	    var dataset = dataset.map(
  