anchor.diff:    <script class="include" language="javascript" type="text/javascript" src="/javascripts/jqplot.cursor.min.js"></script>
     <script class="include" language="javascript" type="text/javascript" src="/javascripts/jqplot.barRenderer.min.js"></script>
   
  -<%if @activity != nil%>
  +<%if @activity and @activity != [] %>
     <legend>Activity Measurements</legend>
     <script type="text/javascript">
     $(document).ready(function(){
  
positive.code:   <div id="chart2"></div>
  <%end%>
  
  <%if @body != nil%>
    <legend>Body Measurements</legend>
    <script type="text/javascript">
    $(document).ready(function(){
  
negative.code:   </script>
    <div id="chart3"></div>
  <%end%>
  
  <%if @sleep and  @sleep != [] %>
    <legend>Sleep Measurements</legend>
    <script type="text/javascript">
    $(document).ready(function(){
  