axis.setAutoRangeIncludesZero(false);
domainAxis = axis;
}
final ValueAxis valueAxis = new NumberAxis(yAxisLabel);
final StackedXYBarRenderer renderer = new StackedXYBarRenderer();
renderer.setUseYInterval(true);
if (tooltips)
{
final XYToolTipGenerator tt;
if (dateAxis)
{
tt = StandardXYToolTipGenerator.getTimeSeriesInstance();
}
else
{
tt = new StandardXYToolTipGenerator();
}
renderer.setBaseToolTipGenerator(tt);
}
if (urls)
{
renderer.setURLGenerator(new StandardXYURLGenerator());
}
final XYPlot plot = new XYPlot(dataset, domainAxis, valueAxis, renderer);
plot.setOrientation(orientation);