From 05e49de1a2d4a0db51ecc05cfc168bc6a2c25003 Mon Sep 17 00:00:00 2001 From: jeffreykong Date: Mon, 29 Oct 2018 14:36:49 -0700 Subject: [PATCH] Fix bug 241 - drop color function or radius is not called again to fill or resize on merge --- src/drop.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/drop.js b/src/drop.js index b277f0e5..783813e3 100644 --- a/src/drop.js +++ b/src/drop.js @@ -1,7 +1,7 @@ import uniqBy from 'lodash.uniqby'; const filterOverlappingDrop = (xScale, dropDate) => d => - uniqBy(d.data, data => Math.round(xScale(dropDate(data)))); + uniqBy(d.data, data => xScale(dropDate(data))); export default (config, xScale) => selection => { const { @@ -31,6 +31,10 @@ export default (config, xScale) => selection => { .merge(drops) .attr('cx', d => xScale(dropDate(d))); + drops + .attr('r', dropRadius) + .attr('fill', dropColor); + drops .exit() .on('click', null)