yAxis.setFixedDimension(100.0);
BufferedImage image = new BufferedImage(500, 300,
BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = image.createGraphics();
ChartRenderingInfo info = new ChartRenderingInfo();
chart.draw(g2, new Rectangle2D.Double(0, 0, 500, 300), info);
g2.dispose();
Rectangle2D rect = info.getPlotInfo().getDataArea();
double x = rect.getMinX();
assertEquals(100.0, x, 1.0);
}