cluster_size));

    [...document.getElementById('selectors_run').querySelectorAll('a')].map(elem => elem.addEventListener('click', e => {
        [...e.target.parentElement.querySelectorAll('a')].map(elem => {
            elem.className = elem == e.target ? 'selector selector-active' : 'selector'
        });
    }));

    document.getElementById('selector-metric-cold').addEventListener('click', e => {
        selectors.metric = 'cold';
        render();
        updateHistory();
    });
    document.getElem