anchor.diff:          }
         },
         margin: {
  -       l: 50, r: 10
  +        l: 40, r: 10
  +      },
  +      legend: {
  +        xanchor:"center",
  +        yanchor:"top",
  +        y:-0.3, // play with it
  +        x:0.5   // play with it
         }
       }
   
  -    Plotly.newPlot('chart', p, layout, { displayModeBar: false })
  +    datas = [bg, meds, carbs]
  +
  +    Plotly.newPlot('chart', datas, layout, { displayModeBar: false })
     }
   </script>
  
positive.code:     return data.map(function(date){ return date.replace('T', ' ').replace('.000Z', '') })
    }
  
    function points(json) {
      return {
        x: fixTimeStamps(mapPoints(json, 'datetime')),
        y: mapPoints(json, 'value')
      }
    }
  
    function graph(json) {
      var p = [
        points(json)
      ]
      p[0]['type'] = 'scatter'
  
      var layout = {
        title: 'Glucose',
        xaxis: {
          type: 'datetime',
          tickangle: 315,
  
negative.code: 
  <script>
    $.getJSON(document.URL, function(json) {
      graph(json)
    })
  
    function ecks(json) {
  