I found the way to show both of them. The trick is to define each parameters format sequentially. Here is the code:
renderer.setBaseItemLabelGenerator(
new StandardCategoryItemLabelGenerator("{0} {2}", NumberFormat.getInstance(),NumberFormat.getNumberInstance()));