Skip to content

Commit

Permalink
Update ScannerSeries.js - fix functor in renderSVG (rrag#784)
Browse files Browse the repository at this point in the history
Fixes rrag#784. Also, canvas rendering is looking forward to be fixed - to support for functors for markers: `stroke(d)` and `fill(d)`
  • Loading branch information
Boorj authored Feb 8, 2021
1 parent a32e656 commit 54460db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/series/ScatterSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class ScatterSeries extends Component {

return <g className={className}>
{points.map((point, idx) => {
const { marker: Marker } = point;
return <Marker key={idx} {...markerProps} point={point} />;
const { marker: Marker, stroke, fill, ...restPointData} = point;
return <Marker key={idx} {...markerProps} stroke={stroke} fill={fill} point={restPointData} />;
})}
</g>;
}
Expand Down

0 comments on commit 54460db

Please sign in to comment.