1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    10
    Vote Rating
    0
    ashiso is on a distinguished road

      0  

    Default Unanswered: Add PieChart to View

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,117
    Vote Rating
    453
    Answers
    3160
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

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

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    10
    Vote Rating
    0
    ashiso is on a distinguished road

      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