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

Developing dynamic tooltips

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.

Getting ready

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:

  1. Edit bower.json to add underscore 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" ...

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