Below is a JSON
result structured like this :
[{"Januari":"0","Februari":"0","Maret":"0","April":"0","Mei":"7","Juni":"0","Juli":"0","Agustus":"0","September":"0","Oktober":"0","November":"0","Desember":"0"}]
What is the best method to input these values from the JSON
into a JavaScript
object?
var ctx = document.getElementById("myAreaChart");
var myLineChart = new Chart(ctx, {
type: 'line',
data: {
datasets: [{
label: "Visitor",
data: [0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0], //<-- place values here
}],
},