
What, like with a cloth or something?
' }
// {
// xtype: 'list',
// margin:40,
// items: {
// xtype: 'toolbar',
// docked: 'top',
// title: 'Who??'
// },
// store: {
// fields: ['name'],
// data: [
// {name: 'Donald'},
// {name: 'Barack'},
// {name: 'Hillary'}
// ]
// },
// itemTpl: '{name}'
// }
]
this.carouselConfig = {
left: 0, top: 40,
style: { width: '100%', height: 'calc(100% - 40px)', xmargin: '10px 10px -10px 10px' },
items: items
// listeners:
// {
// 'show': function(carousel) {
// carousel.pageTurner = new Ext.util.DelayedTask(function() {
// if (carousel.getActiveIndex() == carousel.items.length - 2) {
// carousel.setActiveItem(0, 'slide');
// }
// else {
// carousel.next();
// }
// }, carousel);
// carousel.pageTurner.delay(1000);
// },
// 'activeitemchange': function(carousel){
// if (carousel.getActiveIndex() == 0) {
// carousel.fireEvent('show',this);
// } else
// carousel.pageTurner.delay(1000);
// },
// },
}
this.pivotgridConfig = {
left: 0, top: 40,
style: { width: '100%', height: 'calc(100% - 40px)' },
matrix: {
type: 'local',
store: agencyService.getAgencyPortfolioStore(),
topAxis: [],
leftAxis: [{ dataIndex: 'typeOfInvestment', locked : true, header: 'Type Of Investment', width: 250 }],
aggregate: [{ dataIndex: 'totalITspendingCYB', id: 'totalITspendingCYB', header: 'Total IT spending', width: 250 }],
}
};
this.polarConfig = {
left: 0, top: 40,
style: { width: '100%', height: 'calc(100% - 40px)' },
store: this.agencyService.getSampleData1(),
series: {
type: 'pie',
//label: { field: 'name', display: 'rotate' },
xField: 'data3',
donut: 30
}
};
this.cartesianConfig = {
left: 0, top: 40,
style: { width: '100%', height: 'calc(100% - 40px)' },
store: this.agencyService.getSampleData1(),
series: [
{
type: 'bar',
xField: 'name',
yField: ['data1', 'data2', 'data3', 'data4', 'data5', 'data6'],
title: ['Apples', 'Oranges', 'Bananas', 'Plums', 'Mangos', 'Pears'],
stacked: false,
style: { lineWidth: 2 }
}
],
axes: [
{
type: 'numeric',
position: 'left',
fields: ['data1', 'data2', 'data3', 'data4', 'data5', 'data6'],
label: {
rotate: {
degrees: -30
}
}
},
{
type: 'category',
position: 'bottom',
fields: 'name'
}
]
};
this.listConfig = {
left: 0, top: 40,
style: { width: '100%', height: 'calc(100% - 40px)' },
store: new AgencyStore().extjsObject,
//store: agencyService.getAgencyStore(),
itemTpl: '{agencyCode} - {agencyName} ({agencyAbbreviation})',
};
}
}