diff --git a/src/components/charts/stack/StackDots.js b/src/components/charts/stack/StackDots.js index 12e6adf48..03999c6eb 100644 --- a/src/components/charts/stack/StackDots.js +++ b/src/components/charts/stack/StackDots.js @@ -60,6 +60,13 @@ class StackDots extends Component { .style('pointer-events', 'all') ; + newSlices.selectAll('line').data(d => d).enter().append('line') + .attr('y1', d => yScale(d.y0 + d.y)) + .attr('y2', d => yScale(d.y0)) + .style('stroke-width', props.borderWidth) + .style('stroke', (d, i) => borderColorFn({ color: color(i) })) + ; + newSlices.selectAll('circle').data(d => d).enter().append('circle') .attr('r', props.radius) .attr('transform', d => { @@ -113,6 +120,17 @@ class StackDots extends Component { .style('stroke-width', props.borderWidth) .style('stroke', (d, i) => borderColorFn({ color: color(i) })) ; + + elements + .selectAll('line').data(d => d) + .transition() + .duration(transitionDuration) + .ease(transitionEasing) + .attr('y1', d => yScale(d.y0 + d.y)) + .attr('y2', d => yScale(d.y0)) + .style('stroke-width', props.borderWidth) + .style('stroke', (d, i) => borderColorFn({ color: color(i) })) + ; }; }