diff --git a/docs/examples/plot/index.js b/docs/examples/plot/index.js index 8cba914..cb8741e 100644 --- a/docs/examples/plot/index.js +++ b/docs/examples/plot/index.js @@ -9,8 +9,38 @@ const langs = _(repos.items) .countBy() .toPairs() .map(([language, count]) => ({language, count})) + .value() import {barY} from "https://cdn.jsdelivr.net/npm/@observablehq/plot@0.6/+esm"; barY(langs, {x: "language", y: "count", sort: {x: "y", reverse: true}, fill: 'purple'}) .plot() + + + + + + + + + + + + + + + + + + + + + + + + + + + + +