我指定了URL:
[code="java"]
Ext.chart.Chart.CHART_URL = basePath + '/Ext/resources/charts.swf';
[/code]
用firebug也看过URL路径是正确的,但是就是无法显示(一片空白,但是感觉有一个swf镶嵌在页面里的)。
在IE7下面显示都很正常。
[b]问题补充:[/b]
我随便插入一个flash动画都可以播放
[code="java"]
[/code]
flash的插件也是安装了的。
[b]问题补充:[/b]
就是example里的:
[code="java"]
Ext.chart.Chart.CHART_URL = '/Ext/resources/charts.swf';
Ext.onReady(function(){
var store = new Ext.data.JsonStore({
fields: ['year', 'comedy', 'action', 'drama', 'thriller'],
data: [
{year: 2005, comedy: 34000000, action: 23890000, drama: 18450000, thriller: 20060000},
{year: 2006, comedy: 56703000, action: 38900000, drama: 12650000, thriller: 21000000},
{year: 2007, comedy: 42100000, action: 50410000, drama: 25780000, thriller: 23040000},
{year: 2008, comedy: 38910000, action: 56070000, drama: 24810000, thriller: 26940000}
]
});
new Ext.Panel({
width: 600,
height: 400,
renderTo: 'container',
title: 'Stacked Bar Chart - Movie Takings by Genre',
items: {
xtype: 'stackedbarchart',
store: store,
yField: 'year',
xAxis: new Ext.chart.NumericAxis({
stackingEnabled: true,
labelRenderer: Ext.util.Format.usMoney
}),
series: [{
xField: 'comedy',
displayName: 'Comedy'
},{
xField: 'action',
displayName: 'Action'
},{
xField: 'drama',
displayName: 'Drama'
},{
xField: 'thriller',
displayName: 'Thriller'
}]
}
});
});
[/code]
[b]问题补充:[/b]
我在想 chart组件是不是需要ActiveX控件,Firefox好像又不支持ActiveX。
[b]问题补充:[/b]
机器上已经装了4个浏览器:
1、IE7
2、遨游
3、Firefox3.5
4、谷歌
1和2可以展现。
3和4不能。
[b]问题补充:[/b]
在Chart源码中有一段
[code="java"]
disableCaching: Ext.isIE || Ext.isOpera
[/code]
是不是只认IE和Opera浏览器?
但是我直接把disableCaching设置成ture,在ff里还是显示不出来
[code="java"]
disableCaching: true
[/code]