Highcharts tooltips are fairly powerful by default, but they do have some limitations. It can be difficult to attach different controls inside tooltips. For that reason, we can develop dynamic tooltips.
For setting up a basic page and installing jQuery and Highcharts, refer to the Getting ready section of the Creating your first chart recipe in Chapter 1, Getting Started with Highcharts.
In addition to this basic setup, we will need to install underscore
, a functional programming library for JavaScript:
Edit
bower.json
to addunderscore
as a dependency, as shown in the following code:{ "name": "highcharts-cookbook-chapter-3", "dependencies": { "highcharts": "~3.0", "jquery": "^1.9", "underscore": "~1.5.2" } }
Install your dependencies using
bower
, as shown in the following code:bower install