Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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