cm.setXAxis(xa);
YAxis ya = new YAxis();
ya.setSteps(16);
ya.setMax(160);
cm.setYAxis(ya);
CylinderBarChart bchart = new CylinderBarChart();
bchart.setColour("#440088");
bchart.setAlpha(.8f);
bchart.setTooltip("$#val#");
for (int t = 0; t < 4; t++) {
if ((t + 1) == (Math.ceil(segments / 3.0))) {
bchart.addBars(new BarChart.Bar(Random.nextInt(50) + 50, "#aa88ff"));
} else {
bchart.addValues(Random.nextInt(50) + 50);
}
}
cm.addChartConfig(bchart);
return cm;
}