在使用chart绘制图表时可以在chorme和FireFox中 正常的显示 但是在IE9中却无法显示 只是显示出一个图表的标题
这个是在chorme中显示的效果
以下是在FireFox中显示的效果
以下是在IE9中显示的效果 (只显示出图表的标题 以及X轴的标题)
一下是源代码
Ext.onReady(function(){ var dataStore = new Ext.data.JsonStore({ fields:['name','percentAge','xxoo'], data:[ {name:'A',percentAge:3,xxoo:9}, {name:'B',percentAge:3,xxoo:6}, {name:'C',percentAge:2,xxoo:4}, {name:'D',percentAge:2,xxoo:3} ] }); Ext.create('Ext.panel.Panel',{ title:'XXOO图', height:'600', width:'600', renderTo:Ext.getBody(), layout:'fit', animate:true, shadow: true, items:[{ xtype:'chart', store:dataStore, legend:{ position:'right' }, axes:[{ type:'Numeric', fields:['percentAge','xxoo'], title:'百分比', position:'left', minimum:0, maximum:10 }, { type:'Category', position:'bottom', fields:['name'], title:'XXOO' }], series:[{ type:'line', xField:'name', yField:'percentAge' },{ type:'line', xField:'name', yField:'xxoo' }] }] }) })
jsp页面
请参考http://docs.sencha.com/ext-js/4-0/#!/example/charts/TipsChart.html
你看下IE9 是否可以正常显示。若是不能显示就是bug,若是可以显示的话,可以点击查看源码。