Skip to content

Commit

Permalink
Merge pull request #42 from carbonplan/scatter-fix
Browse files Browse the repository at this point in the history
fix scatter plots in safari
  • Loading branch information
Shane98c authored Mar 13, 2024
2 parents 3832ba3 + 016da91 commit aac6e26
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 aac6e26

Please sign in to comment.