Skip to content

Commit

Permalink
use l (line) instead of A (arc) to draw points
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane98c committed Mar 12, 2024
1 parent 3832ba3 commit 016da91
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/scatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ const Scatter = ({
x = x || ((d) => d[0])
y = y || ((d) => d[1])

const path = data
.map(
(d, i) =>
`M${_x(x(d))} ${_y(y(d))} A0 0 0 0 1 ${_x(x(d)) + 0.0001} ${
_y(y(d)) + 0.0001
}`
)
.join(' ')
const path = data.map((d) => `M${_x(x(d))},${_y(y(d))} l0.01,0.01`).join(' ')

return (
<Box
Expand Down

0 comments on commit 016da91

Please sign in to comment.