我正在使用這個爲我當前的應用程序http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/portal/portal.html。我嘗試用條形圖和餅圖(在面板和窗口中工作)替換當前的圖表(第三列),但在控制檯中出現「h is undefined」錯誤。我已經確認圖表的每一行代碼幾次,以找出任何錯誤,但沒有。請指導我.....您的幫助深表謝意。 我的chartportlet需要此「需要:[」Ext.data.JsonStore「,」Ext.chart。*「,」Ext.layout.container.Fit「]」extJS門戶問題
這是我的代碼chartportlet(第三列)
xtype: 'chart',
id: 'chartCmp',
animate: true,
store: Ext.create('Ext.data.JsonStore', {
fields: ['year', 'comedy', 'action', 'drama', 'thriller'],
data: [
{year: 2005, action: 23890000},
{year: 2006, action: 38900000},
{year: 2007, action: 50410000},
{year: 2008, action: 56070000}
]
}),
shadow: true,
legend: {
position: 'right'
},
insetPadding: 60,
theme: 'Base:gradients',
series: [{
type: 'pie',
field: 'action',
showInLegend: true,
donut: false,
highlight: {
segment: {
margin: 20
}
},
label: {
field: 'year',
display: 'rotate',
contrast: true,
font: '18px Arial'
}
}]
你是沙箱Extjs? – 2012-08-09 12:44:58