Hybrid View

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    27
    Answers
    1
    Vote Rating
    1
    RuBenKlunZ is on a distinguished road

      0  

    Default Answered: Touch-2.1.0-RC1 pie chart performLayout

    Answered: Touch-2.1.0-RC1 pie chart performLayout


    Hi all,

    Today I tried the rc1 of touch-2.1.0 and I wanted to render a pie chart, but all I get is this error:
    Code:
    Uncaught TypeError: Object [object Object] has no method 'performLayout'
    Which I find quite odd, since the only forum post about this I found was that the issue was fixed in beta3 of this release.

    The chart I use is build like this:

    Code:
    var store = new Ext.data.JsonStore({
        fields:    ['period', 'value'],
        data:    [{'period': '10-2011','value': '42'},
                  {'period': '11-2011',    'value': '18'},
                  {'period': '12-2011',    'value': '27'},
                  {'period': '01-2012',    'value': '8'},
                  {'period': '02-2012',    'value': '19'}]
    });
    
    
    Ext.define('MCT.view.TestChart', {
        extend:    'Ext.chart.AbstractChart',
        alias:    'widget.testchart',
        
        config: {
            width:        500,
            height:        300,
            animate:        false,
            store:            store,
            theme:            'Base',
            insetPadding:    20,
            showMarkers:    true,
            series:    [{
                type:        'pie',
                angleField:    'value',
                highlight: {
                    margin:    20
                },
                label: {
                    field:        'period',
                    display:    'rotate',
                    contrast:    true,
                    font:        '18px Arial'
                }
            }]
        }
    });
    Is there anyone else who still has this problem?

  2. The Pie chart the kitchensink is using doesn't use AbstractChart, it uses the PolarChart.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    827
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The Pie chart the kitchensink is using doesn't use AbstractChart, it uses the PolarChart.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."