1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| const data = {
labels: labels,
datasets: [
{
label: 'Vues',
data: JSON.parse(ChartValues.vues),
borderColor: "#7E2E84",
backgroundColor: "#7E2E84",
},
{
label: 'Téléphone',
data: JSON.parse(ChartValues.phone),
borderColor: "#1F2648",
backgroundColor: "#1F2648",
},
{
label: 'Mobile',
data: JSON.parse(ChartValues.mobil),
borderColor: "#FAB313",
backgroundColor: "#FAB313",
},
{
label: 'Whatsapp',
data: JSON.parse(ChartValues.whatsapp),
borderColor: "#856A5D",
backgroundColor: "#856A5D",
},
{
label: 'Email',
data: JSON.parse(ChartValues.booking),
borderColor: "#4D5FB3",
backgroundColor: "#4D5FB3",
},
{
label: 'Site Web',
data: JSON.parse(ChartValues.website),
borderColor: "#89AAE6",
backgroundColor: "#89AAE6",
}
]
}; |
Partager