anchor.diff:  			})
   				.attr("dy", 0)
   				.text(function (d, i) {
  -				var text = intervals[i].key;
  -				return text;
  -			})
  +					
  +					var text = graphparams.legends[i];
  +					return text;
  +				})
   			.call(wrap, 100);
   	
   			legend.append("circle")
  
positive.code: 			.scale(x)
  			.orient("bottom")
  			.ticks(d3.time.days, 100)
  			.tickFormat(d3.time.format("%m/%d/%Y"));
  	
  		var yAxis = d3.svg.axis()
  			.scale(y)
  
negative.code: 				.range([height, 0]);
  	
  			// Add Rectangles
  			
  			console.log("graphparams.dataset---");
  			console.log(graphparams.dataset);
  			this.append('g')
  				.attr("class", "bars")
  				.selectAll(".bar")
  				.data(graphparams.dataset.reverse())
  				.enter()
  				.append("rect")
  				.attr("class", "bar")
  				.style('fill', function(d, i) {
  			            return colors[i];
  			     })
  				.attr("x", 0)
  				.attr("y", function (d, i) {
  					console.log("d[0].y ----------------");
  					console.log(d[0].y);
  					return yScale(+d[0].y);
  			})
  				.attr("width", xScale.rangeBand()) //returns rangeRoundBands width
  				.attr("height", function (d) {
  					if( maxValue >= +d[0].y){
  						return height - yScale(+d[0].y) + 0;
  					}else{
  						return height - yScale(+maxValue) + 0 ;
  					}
  