elect.selectedIndex - 1, true);
          }
        });

        data.forEach(d => {
          const option = document.createElement('option');
          option.innerHTML = `Point #${i + 1}`
          option.value = i + 1;
          select.appendChild(
            option
          );
          i++;
        });

        const
          f = document.querySelector('fieldset'),
          inputs = Array.from(f.querySelectorAll('input,select'));

        inputs.forEach(i => {
          i.setAttribute('disabled', 