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.
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": "~1.6.0"
}
}
Next, we need to install our dependencies using the following command:
bower install
Lastly, we need to include underscore.js
to our page using the following code:
<script src='./bower_components/highcharts/highcharts...