chartConfig.getGeneralChartConfig().getMargin().setBottom(100);
chartConfig.getGeneralChartConfig().getMargin().setLeft(80);
chartConfig.getTitle().setText("World\'s largest cities per 2008");
CategoryAxis xAxis = new CategoryAxis();
xAxis.setCategories(Arrays.asList("Tokyo", "Jakarta", "New York",
"Seoul", "Manila", "Mumbai", "Sao Paulo", "Mexico City",
"Dehli", "Osaka", "Cairo", "Kolkata", "Los Angeles",
"Shanghai", "Moscow", "Beijing", "Buenos Aires", "Guangzhou",
"Shenzhen", "Istanbul"));
xAxis.setLabel(new XAxisDataLabel());
xAxis.getLabel().setRotation(-45);
xAxis.getLabel().setAlign(HorzAlign.RIGHT);
xAxis.getLabel()
.setStyle("{ font: 'normal 13px Verdana, sans-serif' }");
LinkedHashSet<XAxis> xAxesSet = new LinkedHashSet<InvientChartsConfig.XAxis>();
xAxesSet.add(xAxis);
chartConfig.setXAxes(xAxesSet);