Skip to content

Instantly share code, notes, and snippets.

@kristw
Last active September 10, 2020 19:41
Show Gist options
  • Save kristw/1da8ac09375d088a9dc88280813bf5f6 to your computer and use it in GitHub Desktop.
Save kristw/1da8ac09375d088a9dc88280813bf5f6 to your computer and use it in GitHub Desktop.
blog example: nivo
import { Calendar } from '@nivo/calendar';
<Calendar
data={[
{ "day": "2016-02-05", "value": 397 },
{ "day": "2015-09-17", "value": 283 },
]}
from="2015-04-01"
to="2016-12-12"
emptyColor="#eeeeee"
colors={[ '#61cdbb', '#97e3d5', '#e8c1a0', '#f47560' ]}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment