O'Reilly logo

Sencha Touch Cookbook - Second Edition by Ajit Kumar

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

Working with an area chart

In this recipe, we will learn about the area chart provided by Sencha Touch. This creates a stacked area chart and is useful in displaying multiple aggregated layers of information.

Getting ready

Make sure that you have set up your development environment by following the recipes outlined in Chapter 1, Gear Up for the Journey.

Create a new folder, ch07, in the www folder. We will be using this new folder to keep the code.

In all the chart-related recipes, we will be using the following store definition to feed the data to our charts:

var store = Ext.create('Ext.data.Store', { fields: ['name', 'data1', 'data2', 'data3', 'data4', 'data5'], data: [ {'name':'House Rent', 'data1':10, 'data2':12, 'data3':14, 'data4':8, 'data5':13}, ...

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