anchor.diff:    data: <%=@data[:week][:visits_new_visits][:plot].to_json%>,
     ykeys: ['new_visits', 'returning_visits'],
     labels: ['New Visits', 'Returning Visits'],
  -  ymax: 'auto 20',
  -  events: ['2013-03-02', '2013-03-03'],
  +  ymax: 'auto',
  +  //events: ['2013-03-02', '2013-03-03'],
  +    grid: true,
     eventStrokeWidth: 2,
     eventLineColors: ['#ccc', '#eee'],
     smooth: true,
  -  hideHover: true,
  +  hideHover: 'auto',
     lineWidth: 2,
  -  pointSize: 1,
  +  pointSize: 0,
  +   //  xLabels: 'day',
  +    xLabelFormat: function(x) {return '';},
  +
     // hoverCallback: function(index, series)
     //   {
     // 	h = series.data[index];
  
positive.code: });
  
  
  unique_visits_line = Morris.Bar({
    element: 'unique_visits_line',
    xkey: 'day_of_week',
    data: <%=@data[:week][:unique_visits].to_json%>,
    ykeys: ['unique_visits_this', 'unique_visits_last'],
    labels: ['This Week', 'Last Week'],
    ymax: 'auto 20',
    hideHover: 'auto',
    stacked: true
  });
  
  function changeTimeFrame(range)
  
negative.code: switch(range)
  {
  case 'day':
      visits_area.setData(<%=@data[:day][:visits_new_visits][:plot].to_json%>);
      unique_visits_line.setData(<%=@data[:day][:unique_visits].to_json%>);
      break;
  case 'week':
      visits_area.setData(<%=@data[:week][:visits_new_visits][:plot].to_json%>);
      unique_visits_line.setData(<%=@data[:week][:unique_visits].to_json%>);
      break;
  case 'year':
      visits_area.setData(<%=@data[:year][:visits_new_visits][:plot].to_json%>);
      unique_visits_line.setData(<%=@data[:year][:unique_visits].to_json%>);
      break;
  }
  }
  