Skip to content

Commit

Permalink
bugfix missing data by positioning far outside visible substrate
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rind committed Sep 21, 2023
1 parent 89f83f6 commit 88e42c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scatterPlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export class ScatterPlot {
.classed('dot', true)
.attr('r', MARK_RADIUS)
.attr('fill', (d, i) => colorScale(cValues[i]))
.attr('cx', (d, i) => xScale(xValues[i]))
.attr('cy', (d, i) => yScale(yValues[i]));
.attr('cx', (d, i) => (isNaN(xValues[i]) ? -100 : xScale(xValues[i])))
.attr('cy', (d, i) => (isNaN(yValues[i]) ? -100 : yScale(yValues[i])));

// update the X Axis
gSubstrate.select('.x.axis').call(d3.axisBottom(xScale) as any);
Expand Down

0 comments on commit 88e42c7

Please sign in to comment.