SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Sencha Touch Charts 2.0
  For the Mobile Web



              Saad Ulde
Introduction to Sencha
               Touch


    Cross-platform
    Javascript framework for
    building rich mobile apps
    with web standards

    Faster, cheaper

    Highly customizable

    Resolution Independent

    Open Source
    (application), free
    (commercial)
A complete framework


    Components
    
        Lists, Carousel, Pickers, Slider, Toolbar, Forms etc

    MVC

    Layouts

    Device detection

    Animations

    Scrolling (hardware accelerated)

    Data Package (easily consumes JSON/P, XML, YQL)

    Theming (CSS3, SASS and Compass)
Touch Events



    Built on native browser events and abstracted for
    performance

    Supports
    
        Tap
    
        Double Tap
    
        Tap and hold
    
        Swipe
    
        Rotate
    
        Pinch
Charts on Mobiles


  In mobile web world most of the charting libraries use
flash

    Flash isn't supported on many devices

 The few that are javascripts based ( amCharts,
Highcharts, Raphael ) don't support gestures ( swipe,
pinch etc ).

 Gestures are quintessential when operating from
mobile.
Enter Sencha Touch Charts




 Enables developers to easily build interactive and
animated charts and graphs in HTML5

 New add-on to Sencha Touch that will change how
people interact with mobile web data
Features


    Abstraction for SVG, VML and Canvas engines

    Graceful fallbacks when not supported

    Supported all basic types of charts and provides some
    special charts like :
    
        Gauge
    
        Treemap
    
        Sunburst
    
        Wordmap
    
        World Data/Census
Components of Charts
Components explained

Store
  
      It is a client side cache and loads data via a Proxy
  
      Code snippet of a store -
  var myStore = Ext.create('Ext.data.Store', {
      model: ' ',
      proxy: {
         type: 'ajax',
         url : ' ',
         reader: { type: 'json' }
      } });
Axis
   Defines axis for charts
   Position, type, style can be configured
   Not applicable to pie/donut or similar charts
   Code snippet of an axis -
{
    type: 'Numeric',
    grid: true,
    position: 'left',
    fields: ['data1', 'data2', 'data3'],
    title: 'Number of Hits'
    }
}
Series
  
      Series is the type of chart to be displayed
  
      Besides the basic types of charts, the new ones
      that Touch Charts supports are :
  Sunburst, Wordmap, Treemap etc
  
      Code snippet of a series -
  {
        type: 'area',
        axis: 'left',
        xField: ' ',
        yField: [ ],
        title: [ ]
  }
Interactions
  
      Plugged in to a chart to allow the user to interact
      with the chart and its data in special ways
  
      Panzoom, itemcompare, itemhighlight, iteminfo,
      rotate, togglestacked are some of the itneractions
      supported.
  
      Code snippet for an interaction -
  {
      type: 'iteminfo',
      event:'itemtap',
      listeners: {
          show: function (interaction, item, panel) {
              panel.setHtml( );
          }
      }
  }
Getting started with Touch
              Charts

    Download the Sencha Touch Charts and extract its
    contents in your local web server folder.


    Create an HTML file give the paths to Sencha Touch
    and Charts framework and the index.js file that has
    the code for your charts.
<script type="text/javascript" src="sencha-touch.js"></script>
<script type="text/javascript" src="touch-charts.js"></script>
<script type="text/javascript" src="src/index.js"></script>
Demo
References


    Sencha Touch 2 -
    http://docs.sencha.com/touch/2-0/

    Sencha Touch Charts 2.0(beta) -
http://docs.sencha.com/touch-charts/1-0/

    Kitchen Sink Demo (Sencha Touch 2)
http://docs.sencha.com/touch/2-0/touch-build
  /examples/production/kitchensink/

Weitere ähnliche Inhalte

Ähnlich wie Sencha Touch Charts

Bd conf sencha touch workshop
Bd conf sencha touch workshopBd conf sencha touch workshop
Bd conf sencha touch workshop
James Pearce
 
OUR PROJECT PRESENTATION
OUR PROJECT PRESENTATIONOUR PROJECT PRESENTATION
OUR PROJECT PRESENTATION
keshvi singh
 
WAD - WaveMaker tutorial
WAD - WaveMaker tutorial WAD - WaveMaker tutorial
WAD - WaveMaker tutorial
marina2207
 
WaveMaker tutorial with Flash
WaveMaker tutorial with FlashWaveMaker tutorial with Flash
WaveMaker tutorial with Flash
marina2207
 
PPT with Flash ry
PPT with Flash ryPPT with Flash ry
PPT with Flash ry
marina2207
 

Ähnlich wie Sencha Touch Charts (20)

Bd conf sencha touch workshop
Bd conf sencha touch workshopBd conf sencha touch workshop
Bd conf sencha touch workshop
 
A mobile web app for Android in 75 minutes
A mobile web app for Android in 75 minutesA mobile web app for Android in 75 minutes
A mobile web app for Android in 75 minutes
 
Introduction to the ExtJS Javascript framework for rich apps in every browser
Introduction to the ExtJS Javascript framework for rich apps in every browserIntroduction to the ExtJS Javascript framework for rich apps in every browser
Introduction to the ExtJS Javascript framework for rich apps in every browser
 
Silverlight Developer Introduction
Silverlight   Developer IntroductionSilverlight   Developer Introduction
Silverlight Developer Introduction
 
Programming with JavaFX
Programming with JavaFXProgramming with JavaFX
Programming with JavaFX
 
An Introduction to Sencha Touch
An Introduction to Sencha TouchAn Introduction to Sencha Touch
An Introduction to Sencha Touch
 
Lekhoniya Documentation.pdf
Lekhoniya Documentation.pdfLekhoniya Documentation.pdf
Lekhoniya Documentation.pdf
 
Component Art
Component ArtComponent Art
Component Art
 
WSO2 Analytics Platform - The one stop shop for all your data needs
WSO2 Analytics Platform - The one stop shop for all your data needsWSO2 Analytics Platform - The one stop shop for all your data needs
WSO2 Analytics Platform - The one stop shop for all your data needs
 
Data Visualization Tools for web - An introduction to FusionCharts Suite
Data Visualization Tools for web - An introduction to FusionCharts SuiteData Visualization Tools for web - An introduction to FusionCharts Suite
Data Visualization Tools for web - An introduction to FusionCharts Suite
 
WSO2Con EU 2016: An Introduction to the WSO2 Analytics Platform
WSO2Con EU 2016: An Introduction to the WSO2 Analytics PlatformWSO2Con EU 2016: An Introduction to the WSO2 Analytics Platform
WSO2Con EU 2016: An Introduction to the WSO2 Analytics Platform
 
WaveMaker Presentation
WaveMaker PresentationWaveMaker Presentation
WaveMaker Presentation
 
How to use lekhoniya.pdf
How to use lekhoniya.pdfHow to use lekhoniya.pdf
How to use lekhoniya.pdf
 
OUR PROJECT PRESENTATION
OUR PROJECT PRESENTATIONOUR PROJECT PRESENTATION
OUR PROJECT PRESENTATION
 
Jit abhishek sarkar
Jit abhishek sarkarJit abhishek sarkar
Jit abhishek sarkar
 
WAD - WaveMaker tutorial
WAD - WaveMaker tutorial WAD - WaveMaker tutorial
WAD - WaveMaker tutorial
 
WaveMaker tutorial with Flash
WaveMaker tutorial with FlashWaveMaker tutorial with Flash
WaveMaker tutorial with Flash
 
Introduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RIntroduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in R
 
Dynamic Graph Plotting with WPF
Dynamic Graph Plotting with WPFDynamic Graph Plotting with WPF
Dynamic Graph Plotting with WPF
 
PPT with Flash ry
PPT with Flash ryPPT with Flash ry
PPT with Flash ry
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Sencha Touch Charts

  • 1. Sencha Touch Charts 2.0 For the Mobile Web Saad Ulde
  • 2. Introduction to Sencha Touch  Cross-platform Javascript framework for building rich mobile apps with web standards  Faster, cheaper  Highly customizable  Resolution Independent  Open Source (application), free (commercial)
  • 3. A complete framework  Components  Lists, Carousel, Pickers, Slider, Toolbar, Forms etc  MVC  Layouts  Device detection  Animations  Scrolling (hardware accelerated)  Data Package (easily consumes JSON/P, XML, YQL)  Theming (CSS3, SASS and Compass)
  • 4. Touch Events  Built on native browser events and abstracted for performance  Supports  Tap  Double Tap  Tap and hold  Swipe  Rotate  Pinch
  • 5. Charts on Mobiles  In mobile web world most of the charting libraries use flash  Flash isn't supported on many devices  The few that are javascripts based ( amCharts, Highcharts, Raphael ) don't support gestures ( swipe, pinch etc ).  Gestures are quintessential when operating from mobile.
  • 6. Enter Sencha Touch Charts  Enables developers to easily build interactive and animated charts and graphs in HTML5  New add-on to Sencha Touch that will change how people interact with mobile web data
  • 7. Features  Abstraction for SVG, VML and Canvas engines  Graceful fallbacks when not supported  Supported all basic types of charts and provides some special charts like :  Gauge  Treemap  Sunburst  Wordmap  World Data/Census
  • 9. Components explained Store  It is a client side cache and loads data via a Proxy  Code snippet of a store - var myStore = Ext.create('Ext.data.Store', { model: ' ', proxy: { type: 'ajax', url : ' ', reader: { type: 'json' } } });
  • 10. Axis  Defines axis for charts  Position, type, style can be configured  Not applicable to pie/donut or similar charts  Code snippet of an axis - { type: 'Numeric', grid: true, position: 'left', fields: ['data1', 'data2', 'data3'], title: 'Number of Hits' } }
  • 11. Series  Series is the type of chart to be displayed  Besides the basic types of charts, the new ones that Touch Charts supports are : Sunburst, Wordmap, Treemap etc  Code snippet of a series - { type: 'area', axis: 'left', xField: ' ', yField: [ ], title: [ ] }
  • 12. Interactions  Plugged in to a chart to allow the user to interact with the chart and its data in special ways  Panzoom, itemcompare, itemhighlight, iteminfo, rotate, togglestacked are some of the itneractions supported.  Code snippet for an interaction - { type: 'iteminfo', event:'itemtap', listeners: { show: function (interaction, item, panel) { panel.setHtml( ); } } }
  • 13. Getting started with Touch Charts  Download the Sencha Touch Charts and extract its contents in your local web server folder.  Create an HTML file give the paths to Sencha Touch and Charts framework and the index.js file that has the code for your charts. <script type="text/javascript" src="sencha-touch.js"></script> <script type="text/javascript" src="touch-charts.js"></script> <script type="text/javascript" src="src/index.js"></script>
  • 14. Demo
  • 15. References  Sencha Touch 2 - http://docs.sencha.com/touch/2-0/  Sencha Touch Charts 2.0(beta) - http://docs.sencha.com/touch-charts/1-0/  Kitchen Sink Demo (Sencha Touch 2) http://docs.sencha.com/touch/2-0/touch-build /examples/production/kitchensink/