.length - 1][d]) - td(datasets[0][datasets[0].length - 1][d]);
        // value = tc(datasets[0][datasets[0].length - 1][d]);
        if (datasets[6]["columns"].includes(d)) { //china
          // console.log(value);
          // console.log(top["china"]);
          top["china"] += +value;
          cntop[d] = value;

        } else if (datasets[5]["columns"].includes(d)) { //canada
          ;
        } else if (datasets[4]["columns"].includes(d)) { //us
          ustop[d] = value;
        } else if (d != 