From 15497c730f982db3886d8535426871fc713c8908 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Mon, 6 Mar 2023 12:45:16 -0700 Subject: [PATCH] bug fix in ScatterPlot, https://github.com/phetsims/calculus-grapher/issues/256 --- js/ScatterPlot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ScatterPlot.ts b/js/ScatterPlot.ts index cc858f2..27224c9 100644 --- a/js/ScatterPlot.ts +++ b/js/ScatterPlot.ts @@ -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 ); } }