Why creating the chart in the afterrender event handler? Why not simply add it as container's item property, like this:


{
xtype: 'container',
//...
items: chartCfg
}

In this...