  };
        return options
    }

    function initCPUCharts(){
        var cpu_chart = new ApexCharts(document.querySelector("#chart-cpu"), options('line'));
        cpu_chart.render();
        cpu_chart.updateSeries([{
            name: 'app',
            data: {{ cpu_charts.cpuAppData }}
        },{
            name: 'total',
            data: {{ cpu_charts.cpuSysData }}
        }])
    }

    
    function initMemoryCharts(){
        var mem_chart = new ApexCharts(document.querySelector("#chart-mem"), 