Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用extjs在一个窗口的一行中对两个图表进行分组?_Extjs - Fatal编程技术网

如何使用extjs在一个窗口的一行中对两个图表进行分组?

如何使用extjs在一个窗口的一行中对两个图表进行分组?,extjs,Extjs,我在一个窗口里有四张图表。它们在“一”列中依次显示。我怎么能有两列,每列包含两个图表?简单示例: var panel = Ext.create('Ext.Panel', { width: 600, height: 500, title: 'Line Chart', renderTo: Ext.getBody(), layout: 'column', items:[{ height: 500, columnWidth:

我在一个窗口里有四张图表。它们在“一”列中依次显示。我怎么能有两列,每列包含两个图表?

简单示例:

var panel = Ext.create('Ext.Panel', {
    width: 600,
    height: 500,
    title: 'Line Chart',
    renderTo: Ext.getBody(),
    layout: 'column',
    items:[{
        height: 500,
        columnWidth:.5,
        items:[{
            height:250,
            layout:'fit',    
            items:createChart()
        },{
            height:250,
            layout:'fit',    
            items:createChart()
        }]
    },{
        height: 500,
        columnWidth:.5,
        items:[{
            height:250,
            layout:'fit',    
            items:createChart()
        },{
            height:250,
            layout:'fit',    
            items:createChart()
        }]
    }]
});
示例的其余部分: