SlideShare uma empresa Scribd logo
1 de 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/

Mais conteúdo relacionado

Semelhante a 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
 

Semelhante a 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
 

Último

Último (20)

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...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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
 
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...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

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/