From 016da91b91ce348b83e373dbc7997448e8baaa84 Mon Sep 17 00:00:00 2001 From: Shane Loeffler Date: Tue, 12 Mar 2024 12:12:09 -0500 Subject: [PATCH] use l (line) instead of A (arc) to draw points --- src/scatter.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/scatter.js b/src/scatter.js index f2ea044..e74dbf4 100644 --- a/src/scatter.js +++ b/src/scatter.js @@ -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 (