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)