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 a candlestick/OHLC chart

Candlestick or OHLC (Open-High-Low-Close) are typically used to describe price movements of a security, derivative, or currency over time. This is a new chart introduced in Sencha Touch 2, and that we will cover in this recipe.

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.

How to do it...

Follow these steps to create a candlestick/OHLC chart:

  1. Create and open a new file, ch07_14.js, and paste the following code in it:
    Ext.application({ name: 'MyApp', launch: function() { var store = Ext.create(...); //defined in Area Chart ...

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