Skip to content

spencermountain/somehow-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

somehow-graph
— part of somehow
WIP svelte infographics

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