anchor.diff:        legend: {
           xanchor:"center",
           yanchor:"top",
  -        y:-0.3, 
  +        y:-0.3,
           x:0.5
  -      }
  +      },
  +      shapes: shapes
       }
   
  -    datas = [bg] //,meds, carbs]
  +    datas = [bg] //,meds]
   
       Plotly.newPlot('chart', datas, layout, { displayModeBar: false })
     }
  
positive.code:       x: points(json['meds'], 'dose')['x'],
        y: points(json['meds'], 'dose')['y'],
        yaxis: 'y2',
        mode: 'markers', //+text',
      //  textposition: 'top right',
        name: 'Meds',
        text: json['meds'].map(function(item){ return item['insulin'] } )
      }
  
      var carbs = {
        x: points(json['carbs'], 'weight')['x'],
        y: points(json['carbs'], 'weight')['y'],
        mode: 'markers', //+text',
      //  textposition: 'top right',
        name: 'Carbs'
      }
  
      var layout = {
        xaxis: {
  
negative.code:   })
  
    function graph(json) {
      var bg = {
        x: points(json['glucose'], 'value')['x'],
        y: points(json['glucose'], 'value')['y'],
  