Skip to content

Instantly share code, notes, and snippets.

@eggei
Created August 5, 2020 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eggei/c54c59db22acebdb588aca0572a9d3ea to your computer and use it in GitHub Desktop.
Save eggei/c54c59db22acebdb588aca0572a9d3ea to your computer and use it in GitHub Desktop.
nivo-simple-line
type data = Array<{
id: string
data: Array<{
x: string
y: string
}>
}>
<Line
width={900}
height={400}
margin={{ top: 20, right: 20, bottom: 60, left: 80 }}
data={data}
xScale={{
type: 'linear',
min: 0,
max: 'auto',
}}
axisLeft={{
legend: 'linear scale',
legendOffset: 12,
}}
axisBottom={{
legend: 'linear scale',
legendOffset: -12,
}}
animate
enableSlices="x"
curve="monotoneX"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment