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

Connecting your chart to Ext.app.Controller

Being able to create a chart can be useful, but it is even better to be able to control the chart; for example, being able to take certain actions and listen for events on the chart. That is where Ext.app.Controller comes in, and this is what we'll be investigating in this recipe.

Getting ready

For setting up a basic ExtJS project with Highcharts, refer to the Getting ready section of the Using Highcharts in ExtJS recipe discussed earlier in this chapter.

How to do it...

To get started, perform the following steps:

  1. Set up the folder structure. We will also need to create an empty GenericController.js file as follows:
    my_project/
      app.js
      index.html
      extjs/
      resources/
      app/
        controller/
          GenericController.js
  2. Define ...

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