O'Reilly logo

Highcharts Cookbook by Nicholas Terwoord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making charts internationalizable/localizable

Making charts for our own purposes is fine; however, in a business environment, we may be working with people who need to view charts in a different language or localize the chart. Fortunately, Highcharts makes it possible to change language and display settings by changing Highcharts global settings.

Getting ready...

We will need to have access to some translated words. We could use Google Translate or a similar service; but for our purposes, we will use French, just to ensure that changes have been made.

How to do it...

To get started, follow the ensuing instructions:

  1. Define our chart options as shown in the following code:
    var options = { chart: { type: 'spline' }, xAxis: { type: 'datetime', dateTimeLabelFormats: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required