The locale could be set for whole chart using the code:
chart.setLocale(new Locale("es")); |
Then the numbers formatting and date formatting could be set individually for each chart element:
1 | DateListAxisMapper dateMapper; SimpleDateFormat df = new SimpleDateFormat(pattern, Locale.FR); dateMapper.setDateFormat(df, Calendar.YEAR); MathAxisMapper mm; mm.setNumberFormat(NumberFormat.getInstance(Locale.UK)); |