props.stats.forEach((item) => {
        if (max < item.doc_count) {
            max = item.doc_count;
        }
    });