anchor.diff:                  
                 },
                 shadowSize: 0, // Drawing is faster without shadows
  -              
               },
               colors: ["#edc240","#2B65EC", "#cb4b4b", "#4da74d", "#9440ed", "#B2912F"],
  -            yaxis: {
  -              min: 0,
  -              max: 1024
  -            },
  -            xaxis: {
  -              show: true
  +            //yaxis: {
  +            //  min: 0,
  +            //  max: 1024
  +            //},
  +            yaxes: [  { position: "left" , min: 0, max: 1024 }, 
  +                      { position: "right", min: 0, max: 14 } 
  +                  ],
  +            xaxes: {  show: true },
  +            grid: {
  +              markings: [
  +                { color: "#f00", lineWidth: 1, yaxis: { from: 512, to: 512 } }
  +              ]
               }
             });
               // Since the axes don't change, we don't need to call plot.setupGrid()
  
positive.code:           an3 = data.an3;
            an4 = data.an4;
            an5 = data.an5;
            $('#div_an0').text(an0 +":A0");
            $('#div_an1').text(an1 +":A1");
            $('#div_an2').text(an2 +":A2");
            $('#div_an3').text(an3 +":A3");
            $('#div_an4').text(an4 +":A4");
            $('#div_an5').text(an5 +":A5");
            if(d0.length>totalPoints){
              d0 = d0.splice(1,totalPoints);
              d1 = d1.slice(0-totalPoints);
  
negative.code:             show: false,
              mode:'time'
            }
          });*/
          function update() {
            //d0=[[1,1],[2,2],[3,3]];
            var d=[
  