var ctx = document.getElementById("myChart").getContext("2d");
var chart = new Chart(ctx, {
  // The type of chart we want to create
  type: "line",
  // The data for our dataset
  data: {
    labels: [0], // подписи снизу
    datasets: [
      {
        label: labelEdit || "Популяция существ", // название
        backgroundColor: "rgb(255, 99, 132)",
        borderColor: "rgb(255, 99, 132)",
        data: [0], // значения
      },
    ],
  },
  // Configuration options go here
  options: {},
});
btnNextStep.onclick = () => {
  console.log(1);
  chart.addData(40, 60);
  chart.update();
};