1. #1
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    171
    Vote Rating
    1
    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
    171
    Vote Rating
    1
    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.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar