Closed bjorn2404 closed 1 year ago
https://github.com/holtzy/react-graph-gallery/blob/bbb59038ca328772f6d3f08160d1a4fe4aff8f8b/pages/scatter-plot.tsx#L615
The points in the data appear to be plotted y,x vs. x,y.
Shouldn't this be the following?
cx={xScale(d.x)} cy={yScale(d.y)}
Good catch! Thanks just fixed it. 🙏
https://github.com/holtzy/react-graph-gallery/blob/bbb59038ca328772f6d3f08160d1a4fe4aff8f8b/pages/scatter-plot.tsx#L615
The points in the data appear to be plotted y,x vs. x,y.
Shouldn't this be the following?