Skip to content

Commit

Permalink
initialize dot positions on enter
Browse files Browse the repository at this point in the history
because d3v4 doesn't default to the transition position anymore
for #1400
  • Loading branch information
gordonwoodhull committed Apr 12, 2018
1 parent 471566a commit f30a27b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/line-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@ dc.lineChart = function (parent, chartGroup) {
.enter()
.append('circle')
.attr('class', DOT_CIRCLE_CLASS)
.attr('cx', function (d) {
return dc.utils.safeNumber(_chart.x()(d.x));
})
.attr('cy', function (d) {
return dc.utils.safeNumber(_chart.y()(d.y + d.y0));
})
.attr('r', getDotRadius())
.style('fill-opacity', _dataPointFillOpacity)
.style('stroke-opacity', _dataPointStrokeOpacity)
Expand Down

0 comments on commit f30a27b

Please sign in to comment.