I want to display the requets and payment using their frequency in a chart form.
var ctx = document.getElementById('myChart').getContext('2d');
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ['M', 'T', 'W', 'T', 'F', 'S', 'S'],
datasets: [{
label: 'Requests',
data: [12, 19, 3, 17, 6, 3, 7],
backgroundColor:"green"
}, {
label: 'Payments',
data: [2, 24, 5, 5, 2, 3, 10],
backgroundColor: "red"
}]
}
});
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire