Can someone point me to how I can localize the date-related Strings which are hardcoded in the HighCharts js-file. For instance, instead of the default 'Feb' date label in the x-axis, I would want the chart to display the localized value 'Fév'. I tried implementing the localization by setting the options on the language object before the chart is instantiated:
Highcharts.setOptions({
lang: {
months: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
weekdays: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi']
} });
but the chart still displays the default values.
jsFiddle with the problem.
Hungarian (magyar):
note for all: weekdays starts from Sunday!
In French:
In italiano
Russian translation for highchart
Русский перевод для highchart
To localize weekdays,
Highcharts.setOptions
should be called before chart creation and contain the new weekday names:Note that the array should start with the name for Sunday not Monday (the first day of the work week).
Example on jsFiddle
For Turkish (Türkçe olarak):