Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1006 Outlier has wrong y coordinate (BoxAndWhiskerRenderer)

1.0.x
open
nobody
None
5
2012-11-27
2010-07-27
Urs
No

If you have a BoxAndWhiskerRenderer and have outlier. The outlier will be painted on the wrong y coordinate. I think the error can be found in the class BoxAndWhiskerRenderer:

Original:
private void drawEllipse(Point2D point, double oRadius, Graphics2D g2) {
Ellipse2D dot = new Ellipse2D.Double(point.getX() + oRadius / 2,
point.getY(), oRadius, oRadius);
g2.draw(dot);
}

Sould be changed to:
private void drawEllipse(Point2D point, double oRadius, Graphics2D g2) {
Ellipse2D dot = new Ellipse2D.Double(point.getX() + oRadius / 2, point.getY() + oRadius / 2, oRadius, oRadius);
g2.draw(dot);
}

Discussion