somehow-graph

Somehow Graph

Svelte infographics component

somehow-graph
— part of somehow
WIP svelte infographics
by Spencer Kelly

Work in progress!

somehow-graph creates SVG, using your data, that you can throw-into your webpage.

<script>
  import spacetime from 'spacetime'
  import { Graph, XAxis, YAxis, Bar } from './src'
  let start = spacetime('2019').startOf('year')
  let end = start.endOf('year')
</script>

<Graph height={2800} aspect={'golden'}>
  <YAxis every="hundred" />
  <XAxis />
  <Bar />
</Graph>

MIT

Top categories

Loading Svelte Themes