Skip to content

Commit

Permalink
Prevent show ScatterSpot if show is false, #385.
Browse files Browse the repository at this point in the history
  • Loading branch information
imaNNeo committed Jul 10, 2020
1 parent 6d2d813 commit 9485404
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/chart/scatter_chart/scatter_chart_painter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ class ScatterChartPainter extends AxisChartPainter<ScatterChartData>
}
final chartUsableSize = getChartUsableDrawSize(viewSize);
for (final ScatterSpot scatterSpot in data.scatterSpots) {
if (!scatterSpot.show) {
continue;
}
final double pixelX = getPixelX(scatterSpot.x, chartUsableSize);
final double pixelY = getPixelY(scatterSpot.y, chartUsableSize);

Expand Down

0 comments on commit 9485404

Please sign in to comment.