Render multiple ApexCharts with JS in one file

Good evening,
in order not to insert single scripts on each page, I would like to merge all the JS rendering graphics into one file.

ApexCharts uses the following code to render a single chart.

var options = {
    
    series: [3, 5],
    labels: ['Item1', 'Item2'],
    
    colors: ['#747679', '#e83323'],
    
    chart: {
        type: 'donut',
        height: 200,
        width: 200
    }
}

var chart = new ApexCharts(document.querySelector("#apexchart1"), options);
chart.render();

How can I change it?