1. #1
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    174
    Vote Rating
    2
    Bleak is on a distinguished road

      0  

    Default Pie Chart

    Pie Chart


    I am creating a simple pie chart using the code below. The challenge I am having is that I can not seem to be able to change the color of the series and the legend does not render.

    Any suggestions or feedback?

    Thanks, Dean.


    PHP Code:
    var store = new Ext.data.JsonStore({
                
    fields: ['status''total'],
                
    data: [{
                    
    status'Red',
                    
    total150
                
    },{
                    
    status'Yellow',
                    
    total245
                
    },{
                    
    status'Green',
                    
    total117
                
    }]
            });

            var 
    statusChart = new Ext.Window({
                
    width400,
                
    height400,
                
    title'Pie Chart with Legend - Favorite Season',
                
    items: {
                    
    storestore,
                    
    xtype'piechart',
                    
    dataField'total',
                    
    categoryField'status',
                    
    series : [{
                        
    style : {
                            
    colors : [0xC5FF6B0xFFFF6B0xFFB56B0xFF6B6B// 3
                        
    }
                    }],
                    
    //extra styles get applied to the chart defaults
                    
    extraStyle:
                    {
                        
    legend:
                        {
                            
    display'bottom',
                            
    padding5,
                            
    font:
                            {
                                
    family'Tahoma',
                                
    size13
                            
    }
                        }
                    }
                }
            }); 

  2. #2
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    174
    Vote Rating
    2
    Bleak is on a distinguished road

      0  

    Default


    The problem was I was using the wrong charts.swf, it was from the RC1 of ExtJS 3.0

    Once I updated that, things came together.

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..." hd porno faketaxi