Last active
August 27, 2020 20:20
-
-
Save eggei/8553e69f20e3d03d3cbff82140c2b5b6 to your computer and use it in GitHub Desktop.
viser-simple-line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type data = Array<{ | |
year: string | |
value: number | |
}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Chart height={400} data={data}> | |
<Axis /> | |
<Line position="year*value" /> | |
<Point position="year*value" shape="circle"/> | |
</Chart> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment