O'Reilly logo

Sencha Touch Cookbook 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.

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

var store = new Ext.data.JsonStore({ fields: ['name', 'data1', 'data2', 'data3', 'data4', 'data5'], data: [ {'name':'House Rent', 'data1':10, 'data2':12, 'data3':14, 'data4':8, 'data5':13}, {'name':'Books', 'data1':7, 'data2':8, 'data3':16, 'data4':10, 'data5':3}, {'name':'Petrol', 'data1':5, 'data2':2, 'data3':14, ...

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