boolean success = false;
try {
double[][] starts = new double[][] {{0.1, 0.2, 0.3},
{0.3, 0.4, 0.5}};
double[][] ends = new double[][] {{0.5, 0.6, 0.7}, {0.7, 0.8, 0.9}};
DefaultIntervalCategoryDataset dataset
= new DefaultIntervalCategoryDataset(starts, ends);
IntervalBarRenderer renderer = new IntervalBarRenderer();
CategoryPlot plot = new CategoryPlot(dataset,
new CategoryAxis("Category"), new NumberAxis("Value"),
renderer);
JFreeChart chart = new JFreeChart(plot);