Internationalization of CCC Charts
We already saw that all the values coming from the database should not need to be translated. There are some ways in Pentaho to do this, but we may still need to set the title of a chart, where the title should be also internationalized. Another case is when you have dates where the month is represented by numbers in the base axis, but you want to display the month's abbreviated name. This name could be also translated to different languages, which is not hard.
For the title, sub-title, and legend, the way to do it is to use the instructions on how to set properties on preExecution
and the instructions that we already covered in an earlier Chapter 6, Tables, Templates, Exports, and Text Components about i18n. First, you will need to define the properties files for the internationalization and set the properties/translations:
var cd = this.chartDefinition; cd.title = this.dashboard.i18nSupport.prop('BOTTOMCHART.TITLE');
To change the title of the chart based...