domainAxis.setLowerMargin(0.01);
domainAxis.setUpperMargin(0.01);
NumberAxis rangeAxis = new NumberAxis("Response Time");
rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
rangeAxis.setUpperMargin(0.10); // leave some space for item labels
StackedXYBarRenderer renderer = new StackedXYBarRenderer(0.15);
renderer.setDrawBarOutline(true);
renderer.setBaseItemLabelsVisible(true);
renderer.setBaseItemLabelGenerator(new StandardXYItemLabelGenerator());
/*int r=0, g=200, b=0;
int inc = 200 / CMBControllerServlet.NUM_BUCKETS;
for (int i=0; i<CMBControllerServlet.NUM_BUCKETS; i++) {
renderer.setSeriesPaint(i, new Color(r,g,b));
r+=inc;
g-=inc;
}*/
renderer.setSeriesPaint(0, new Color(47,133,18));
renderer.setSeriesPaint(1, new Color(151,195,30));
renderer.setSeriesPaint(2, new Color(253,249,50));
renderer.setSeriesPaint(3, new Color(253,191,35));
renderer.setSeriesPaint(4, new Color(253,123,26));
renderer.setSeriesPaint(5, new Color(216,106,20));
renderer.setSeriesPaint(6, new Color(181,97,28));
renderer.setSeriesPaint(7, new Color(208,56,20));
renderer.setSeriesPaint(8, new Color(253,30,19));
renderer.setSeriesPaint(9, new Color(120,54,210));
XYPlot plot = new XYPlot(dataset, domainAxis, rangeAxis, renderer);
String title = "Response Time Percentiles";
if (activeMinutes > 0) {