-
-
Save parzibyte/66455224f7f35c26d4b5201abe6950b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.grafica = new Chart( | |
document.querySelector("#graficaDispositivosVecesRentados"), | |
{ | |
type: "pie", | |
data: { | |
labels: reporte.map((dato) => dato.nombre), | |
datasets: [ | |
{ | |
label: `Dispositivos con ocasiones rentadas`, | |
data: reporte.map((dato) => dato.vecesRentado), | |
backgroundColor: Utiles.coloresFondoGraficas, | |
}, | |
], | |
}, | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment