In this post I’ll be explaining how to “roll your own” SVG Line Charts in React using Server-side rendering. https://cdn.thenewstack.io/media/2022/10/a3d42d67-open-graph-100.jpgScreenshots of Gatsby and Nextjs GitHub Repository Activity Line Charts
To create the points for the Polyline line you can use the x and y values from the properties array and return them as an array of x, y positions.
Using the returned values from the properties array you can now add and position svg elements to display the total(s) from the data array.
The element is also positioned using the x and y property using the x and y attributes.