#841 XYDifferenceRenderer does not check series count

1.0.x
open
nobody
General (896)
5
2012-11-27
2008-03-11
Richard West
No

The XYDifferenceRenderer does not check to ensure that the dataset contains either one (1) or two (2) series before rendering. This leads to problems/confusion as described in forum thread 'Question about XYDifferenceRenderer' (http://www.jfree.org/phpBB2/viewtopic.php?t=24044&start=0&postdays=0&postorder=asc&highlight=). The most obvious location to insert this check would be in the draw(...) method, but the method does not throw exceptions so reporting the error may be difficult.

Discussion