Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active November 3, 2021 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/66455224f7f35c26d4b5201abe6950b4 to your computer and use it in GitHub Desktop.
Save parzibyte/66455224f7f35c26d4b5201abe6950b4 to your computer and use it in GitHub Desktop.
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