2. Agenda
• Let’s Get To Know Each Other
• Overview
• Getting Started with Sencha Touch Charts
• Interactivity in Sencha Touch Charts
• Case Study – Enterprise Analytics
• Demo & Code Walkthrough
• Q&A
3. Quick Intro
• Head – Mobility at Metacube, a premier product
engineering based company in Jaipur, India
• 14 years of development experience in web, mobile and
telecom domains
• Expert in hybrid development using Appcelerator
Titanium, Sencha Touch & PhoneGap
• Specialist in Salesforce mobile development using
Sencha Touch
7. Overview
Why/ When to use Charts In Your Apps?
• Quick and intuitive visualization for data
• Great way of showing relationships & comparisons
• Forceful & Convincing
• Compact & Interesting
Charts Bring Facts to Life!
8. Getting Started with
Sencha Touch Charts
• Separate Charts library till Sencha Touch 2.0.x
• Integrated in core Sencha Touch 2.1 core
• Supported in Sencha Architect
• Included in Sencha Complete Bundle
9. Key Concepts
• All chart components derived from
Ext.chart.AbstractChart which in turn derives from
Ext.draw.component
• 3 Major Chart Types
• Cartesian Charts
• Polar Charts
• Space Filling Charts
12. Key Concepts - Series
• Abstract master class for all chart types
• Each type defined by series:type attribute
• Area
• Bar
• Line
• Pie
• Radar
• Scatter
• Gauge
22. Interactions - Example
interactions: [
// If all you want is to use the default interaction,
// simply put its name here.
'panzoom',
'itemhighlight',
{
type: 'iteminfo',
// For some interactions, you can specify the gesture
// to trigger it.
gesture: 'itemtaphold',
// You can also attach listeners to an interaction.
listeners: {
show: function (me, item, panel) {
panel.setHtml("Current Item: " + item.record.data.name);
}
}
}
]
26. Case Study – Enterprise Analytics
Technology Stack
• J2EE
• Sencha Touch 2.2
• MySQL
• Hibernate
• Maven
• AWS-EC2
Demo deployed on Amazon EC2, scan the QR code
to get the URL
27. Case Study – Enterprise Analytics
• Can replace Hibernate with Spring Data JPA or
Play Framework
• One Controller for Each Chart Type
• One Store for Each Panel Settings
• Views Organized Hierarchically
Grab the source code by scanning this QR code
28. Case Study – Views
• Main Panel derived from Ext.Container
• Parent Panel consisting of Title Bar, Four-Panel
Layout & Bottom Toolbar
• Four-Panel Layout split into two sub-panels
• One Store for Each Panel Settings
• Views Organized Hierarchically
29. Case Study – Models
• Datamodel stores actual JSON data for all charts
• UserSetting model defines parameters for each
chart displayed
30. Case Study – Controllers
• One Master controller that loads stores, invokes
other controllers
• One controller per chart type
• One controller for each slider bar
31. Sencha Touch Charts & Google
Analytics – Made For Each Others
• Track hits to each page (or chart) of your app
• Identify which users want what data
• Identify demographics, traffic sources
• Identify your bread earning pages
* Endless possibilities to generate valuable
analytical information for your charts!
33. Q&A
Just in case you didn’t remember, Community
Pavilion Pub Crawl is next !
34. Take the Survey!
• Session survey
• Available on the
SenchaCon mobile
app
• http://app.senchacon.c
om
• Be social!
• @senchacon
• #senchacon
• @gauravkheterpal
Editor's Notes
Good Evening Ladies, Gentlemen & Developers! My name is Gaurav Kheterpal and I’m here to talk about how you can build an Enterprise Grade Analytics solution using Sencha Touch Charts
I’ll start off with a quick introduction about myself. I work as the Head of Mobility practice at Metacube, a premiere product based engineering based company in Jaipur, India. I have around 14 years of development experience in web, mobile and telecom domains. I’m an expert in hybrid development using Appcelerator Titanium, Sencha Touch & PhoneGap. I specialize in Salesforce mobile development using Sencha Touch. I am a Salesforce certified 401 developer, a Appcelerator Titanium Certified Developer and an Appcelerator Titan – I hope Sencha folksAs this presentation is all about charts and graphs, you’ll see a lot of visuals on each slides.