anchor.diff:              .attr("stroke", "black"/*metricsMapData[metric].color*/)
               .attr("cx", function(d) { return x(d.date); })
               .attr("cy", function(d) { return y(d.value); })
  +            .on("mouseover", function(d) {
  +                tooltip.transition()
  +                    .duration(200)
  +                    .style("opacity", .9);
  +                tooltip.html(formatTime(d.date) + ": <b>" + d.value + "</b><br/>Metric:" + metric)
  +                    .style("left", (d3.event.pageX + 5) + "px")
  +                    .style("top", (d3.event.pageY ) + "px");
  +                event.stopPropagation();
  +            })
           ;
       }
   
  
positive.code:         return svg;
      }
  
      function drawLine(myData, svg, metric, stock) {
          var data = myData[metric][stock];
          var group = svg.append("g")
              .attr("id", metric+"_bseID"+stock)
              .attr("class", "graph graph_"+stock)
              .on("click", function(d){
                  var index = selectedBSE.indexOf(stock);
                  if (index > -1){
                      $(".graph_"+stock).removeClass("selected");
                      selectedBSE.splice(index, 1);
                  }else{
                      $(".graph_"+stock).addClass("selected");
                      selectedBSE.push(stock);
                  }
                  bseDiv.html(JSON.stringify(selectedBSE));
              })
              .on("mouseover", function(d) {
                  tooltip.transition()
                      .duration(200)
                      .style("opacity", .9);
                  tooltip.html("<b>" + "</b><br/>BSE:" + stock)
                      .style("left", (d3.event.pageX + 5) + "px")
                      .style("top", (d3.event.pageY ) + "px");
              })
  
negative.code:         .style("opacity", 0);
      var bseDiv = d3.select("body").append("div")
          .attr("class", "");
      var selectedMetrics = [];
      var minDate=parseTime("2011-01-01"), maxDate=parseTime("2017-12-31");
      var myDataCache = [];
  
  
  
  