+ " 'Sea-Level Pressure': 'mb'"
+ " }[this.series.name];"
+ " return '' + this.x + ': ' + this.y + ' ' + unit; "
+ "}");
Legend legend = new Legend();
legend.setLayout(Layout.VERTICAL);
legend.setPosition(new Position());
legend.getPosition().setAlign(HorzAlign.LEFT);
legend.getPosition().setVertAlign(VertAlign.TOP);
legend.getPosition().setX(120);
legend.getPosition().setY(80);
legend.setFloating(true);
legend.setBackgroundColor(new RGB(255, 255, 255));
chartConfig.setLegend(legend);
CategoryAxis xAxis = new CategoryAxis();
xAxis.setCategories(Arrays.asList("Jan", "Feb", "Mar", "Apr", "May",
"Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"));