range = renderer.findRangeBounds(dataset);
assertEquals(new Range(-1.0, 4.0), range);
// try an empty dataset - should return a null range
dataset = new DefaultOHLCDataset("S1", new OHLCDataItem[] {});
range = renderer.findRangeBounds(dataset);
assertNull(range);
// try a null dataset - should return a null range
range = renderer.findRangeBounds(null);
assertNull(range);