Как изменить ширину столбца один за другим в диаграмме столбцов extjs? - PullRequest
1 голос
/ 01 сентября 2011

Как изменить ширину столбца диаграммы столбцов один за другим? Мне нужны такие графики:

 _          __
| |  ____  |  |
| | |    | |  |
| | |    | |  |
|_| |____| |__|

Ответы [ 2 ]

2 голосов
/ 17 октября 2011
...

series: [
     {
             type: 'column',
             axis: 'left',
             gutter: 10,
             style: {
                   width: 50    //<-- Specify you Column width here
             },
             xField: 'title',                            
             yField: ['totaltodotime', 'workdone'],
             stacked: true,
...
0 голосов
/ 16 октября 2012
renderer: function(sprite, record, attr, index, store) {                       
                        var color = selectedColor;
                        if (unique condition to identify the column ) {
                            return Ext.apply(attr, {
                                fill: color,
                                width: 100,x:50,y:50

                            });

                        }
                        else(another condition) {
                            return Ext.apply(attr, {
                                fill: color
                                ,width: 50,

                            });
                        }

                    },
you can use record or index or store to identify the column being rendered
...