Plot.plot({
title: "Distribución de Repositorios por Cluster de Actividad",
marks: [
Plot.barY(
repos,
Plot.groupX(
{y: "count"},
{x: "activity_cluster", thresholds: 3}
)
),
Plot.text(
repos,
Plot.groupX(
{y: "count", text: "count"},
{x: "activity_cluster", thresholds: 3, textAnchor: "middle", dy: -10, fill: "white"}
)
)
],
x: {label: "Cluster de Actividad"},
y: {label: "Número de Repositorios"}
})