I want to push an array multidimensional using javascript. I need this to set dataset for chartJs.
I want the result like this :
datasets: [{
label: 'Manajemen Informatika',
data: [100, 105, 203, 160, 200],
backgroundColor: 'rgba(189, 99, 132, 0.2)',
borderColor: 'rgba(189, 99, 132, 1)',
borderWidth: 1
}, {
label: 'Teknik Informatika',
data: [105, 100, 250, 170, 190],
backgroundColor: 'rgba(94, 126, 189, 0.2)',
borderColor: 'rgba(94, 126, 189, 1)',
borderWidth: 1
}, {
label: 'Sistem Informasi',
data: [90, 120, 225, 185, 200],
backgroundColor: 'rgba(72, 189, 122, 0.2)',
borderColor: 'rgba(72, 189, 122, 1)',
borderWidth: 1
}]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…