extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
71 lines (66 loc) • 1.72 kB
JavaScript
Ext.define('Admin.view.dashboard.Sales', {
extend: 'Ext.panel.Panel',
xtype: 'sales',
requires: [
'Ext.chart.CartesianChart',
'Ext.chart.axis.Category',
'Ext.chart.axis.Numeric',
'Ext.chart.series.Bar'
],
title: 'Sales',
ui: 'light',
iconCls: 'x-fa fa-briefcase',
headerPosition: 'bottom',
cls: 'quick-graph-panel shadow',
height: 130,
layout: 'fit',
items: [
{
xtype: 'cartesian',
animation : !Ext.isIE9m && Ext.os.is.Desktop,
height: 75,
background: '#8561c5',
colors: [
'#ffffff'
],
bind: '{quarterlyGrowth}',
axes: [
{
type: 'category',
fields: [
'xvalue'
],
hidden: true,
position: 'bottom'
},
{
type: 'numeric',
fields: [
'yvalue'
],
grid: {
odd: {
fill: '#e8e8e8'
}
},
hidden: true,
position: 'left'
}
],
series: [
{
type: 'bar',
xField: 'xvalue',
yField: [
'yvalue'
]
}
],
interactions: [
{
type: 'panzoom'
}
]
}
]
});