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

Counting words per minute

In our previous recipes, we used gauge charts in "less-than-typical" scenarios. In this recipe, we will use a gauge for a more typical example, such as a speedometer in an automobile. In the case of a speedometer, we measure velocity; in our example, we'll be measuring words per minute.

Getting ready

To set up a basic page and install jQuery and Highcharts, refer to the instructions in the Getting ready section of the Creating your first chart recipe in Chapter 1, Getting Started with Highcharts.

We will also need to include underscore by adding it to our dependencies in bower.js, as shown in the following code:

{
  "name": "highcharts-cookbook-chapter-12",
  "dependencies": {
    "jquery": "~1.9",
    "highcharts": "~3.0",
 "underscore": ...

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