Results 1 to 3 of 3

Thread: Add PieChart to View

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    10
    Vote Rating
    0
      0  

    Default Add PieChart to View

    Hello,

    I've followed the Getting Started Guide (http://vimeo.com/37974749) to the end, and now I want to replace the Blog-view with a simple PieChart.
    In the future I'd like to read the Chart Data from a store ..

    I'm a bit Puzzled now as for what Sencha Touch Version supports Charts at all? It seems there are differences in the commercial and the GPL versions. Which one should I use?

    Then, the next step would be to add a chart to the view. So far my view looks like this:
    Code:
    Ext.define('todon.view.Chart', {    extend: "Ext.Panel",
        xtype: "chart",
        requires: [
            'Ext.chart.Chart'
       ],
        
       config: 
       {
            title: 'Chart',
            iconCls: 'chart1',
            background: 'white',
            layout:'fit',
       }
    });
    Where and how do I add the chart now?
    I've found the documentation at http://docs.sencha.com/touch/2-1/#!/....AbstractChart but it I don't get how I can add a simple Pie Chart to my view?

    Any starters in the right direction are welcome. I'm a newbie at Sencha Touch - starting to build my first app! :-)

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The commercial version doesn't have charts, you would need to have Sencha Complete to get the commercial version of charts.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    10
    Vote Rating
    0
      0  

    Default

    Well that doesn't exactly answer my question as to how I include a chart but as I'm going with the sencha-commercial version I will do my own thing. Thanks!

    Can I set the status to answered? If not, somebody do it please

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •