use of com.extjs.gxt.charts.client.model.axis.XAxis in project activityinfo by bedatadriven.
the class ChartOFCView method createXAxis.
private XAxis createXAxis(List<PivotTableData.Axis> categories) {
XAxis xa = new XAxis();
List<String> xLabels = PivotTableData.flattenLabels(categories);
xa.setLabels(xLabels);
xa.getLabels().setColour("009900");
xa.setGridColour("eeffee");
xa.setColour("009900");
if (xLabels.size() > 5) {
xa.getLabels().setRotationAngle(45);
}
return xa;
}
Aggregations