Skip to content

Commit

Permalink
bug fix in ScatterPlot, phetsims/calculus-grapher#256
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 6, 2023
1 parent 2658608 commit 15497c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/ScatterPlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ScatterPlot extends Path {
const dataPoint = this.dataSet[ i ];
if ( dataPoint.isFinite() ) {
const viewPoint = this.chartTransform.modelToViewPosition( dataPoint );
shape.moveToPoint( viewPoint );
shape.moveTo( viewPoint.x + this.radius, viewPoint.y ); // need to move to where circle actually starts
shape.circle( viewPoint.x, viewPoint.y, this.radius );
}
}
Expand Down

0 comments on commit 15497c7

Please sign in to comment.