Range r = renderer.findDomainBounds(dataset);
assertEquals(0.5, r.getLowerBound(), EPSILON);
assertEquals(4.1, r.getUpperBound(), EPSILON);
renderer.setSeriesVisible(1, Boolean.FALSE);
r = renderer.findDomainBounds(dataset);
assertEquals(0.5, r.getLowerBound(), EPSILON);
assertEquals(2.1, r.getUpperBound(), EPSILON);
}
private static final double EPSILON = 0.0000000001;