From 54460dba4f9d1de7eb2dc4bbd657b8d343d69694 Mon Sep 17 00:00:00 2001 From: Boorj Date: Mon, 8 Feb 2021 19:14:30 +0700 Subject: [PATCH] Update ScannerSeries.js - fix functor in renderSVG (#784) Fixes #784. Also, canvas rendering is looking forward to be fixed - to support for functors for markers: `stroke(d)` and `fill(d)` --- src/lib/series/ScatterSeries.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/series/ScatterSeries.js b/src/lib/series/ScatterSeries.js index fee6644e1..525250bc7 100644 --- a/src/lib/series/ScatterSeries.js +++ b/src/lib/series/ScatterSeries.js @@ -30,8 +30,8 @@ class ScatterSeries extends Component { return {points.map((point, idx) => { - const { marker: Marker } = point; - return ; + const { marker: Marker, stroke, fill, ...restPointData} = point; + return ; })} ; }