docs: function updateAllData() {
      let resX = [], resY = [], resZ = [], resA = [], resB = [], resG = [], resC = [];
      for(let i = 1,  j = 0; i < NN; i++, j++ ) {
          resX[j] = dataX[i][1]; // resに待避
          resY[j] = dataY[i][1]; // resに待避
          resZ[j] = dataZ[i][1]; // resに待避
          resA[j] = dataA[i][1]; // resに待避
          resB[j] = dataB[i][1]; // resに待避
          resG[j] = dataG[i][1]; // resに待避
  //        resC[j] = dataC[i][1]; // resに待避
      }
      dataX = [], dataY = [], dataZ = [], dataA = [], dataB = [], dataG = [], dataC = []; // clear
  
      let px = gra.x;
      let py = gra.y;
      let pz = gra.z;
  
      /*
       let n = 10; // 単純移動平均をとる回数
       let pMax = Math.max(px, py, pz);
       let ps = resS[NN - 2] - ( resS[NN - 1 - n + 1] ) / n + pMax / n;
       let pm = calcMagnitude(px, py, pz);
       */
  
      let pa = axis.alpha;
      let pb = axis.beta;
      let pg = axis.gamma;
      let pc = axis.compass;
  
      $('#xx').html(px);
      $('#yy').html(py);
      $('#zz').html(pz);
      $('#aa').html(pa);
      $('#bb').html(pb);
      $('#gg').html(pg);
      $('#cc').html(pc);
  
      resX[NN - 1 ] = px;
      resY[NN - 1 ] = py;
      resZ[NN - 1 ] = pz;
      resA[NN - 1 ] = pa / 10;
      resB[NN - 1 ] = pb / 10;
      resG[NN - 1 ] = pg / 10;
      resC[NN - 1 ] = pc;
  
      for( let i=0; i < NN; ++i) {
          dataX[i] = [ i, resX[i] ]; // 復帰
          dataY[i] = [ i, resY[i] ]; // 復帰
          dataZ[i] = [ i, resZ[i] ]; // 復帰
          dataA[i] = [ i, resA[i] ]; // 復帰
          dataB[i] = [ i, resB[i] ]; // 復帰
          dataG[i] = [ i, resG[i] ]; // 復帰
          dataC[i] = [ i, resC[i] ]; // 復帰
      }
  }