Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
192 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* File: app/view/CompanyBarChart.js | ||
* | ||
* This file was generated by Sencha Architect version 2.2.0. | ||
* http://www.sencha.com/products/architect/ | ||
* | ||
* This file requires use of the Sencha Touch 2.1.x library, under independent license. | ||
* License of Sencha Architect does not include license for Sencha Touch 2.1.x. For more | ||
* details see http://www.sencha.com/license or contact license@sencha.com. | ||
* | ||
* This file will be auto-generated each and everytime you save your project. | ||
* | ||
* Do NOT hand edit this file. | ||
*/ | ||
|
||
Ext.define('ComStat.view.CompanyBarChart', { | ||
extend: 'Ext.chart.CartesianChart', | ||
alias: 'widget.companybarchart', | ||
|
||
config: { | ||
store: 'CompanyStore', | ||
colors: [ | ||
'#115fa6', | ||
'#94ae0a', | ||
'#a61120' | ||
], | ||
axes: [ | ||
{ | ||
type: 'category', | ||
fields: [ | ||
'name' | ||
] | ||
}, | ||
{ | ||
type: 'numeric', | ||
fields: [ | ||
'revenue' | ||
], | ||
grid: { | ||
odd: { | ||
fill: '#e8e8e8' | ||
} | ||
}, | ||
position: 'left' | ||
} | ||
], | ||
series: [ | ||
{ | ||
type: 'bar', | ||
xField: 'name', | ||
yField: [ | ||
'revenue' | ||
] | ||
} | ||
], | ||
interactions: [ | ||
{ | ||
type: 'panzoom' | ||
} | ||
] | ||
} | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"type": "Ext.chart.CartesianChart", | ||
"reference": { | ||
"name": "items", | ||
"type": "array" | ||
}, | ||
"codeClass": null, | ||
"userConfig": { | ||
"designer|userClassName": "CompanyBarChart", | ||
"designer|userAlias": "companybarchart", | ||
"colors": [ | ||
"[", | ||
" \"#115fa6\", ", | ||
" \"#94ae0a\", ", | ||
" \"#a61120\"", | ||
"]" | ||
], | ||
"store": "CompanyStore" | ||
}, | ||
"designerId": "028ad664-e816-43e4-b7b4-194958487411", | ||
"iconCls": "icon-bar-chart", | ||
"cn": [ | ||
{ | ||
"type": "Ext.chart.axis.Category", | ||
"reference": { | ||
"name": "axes", | ||
"type": "array" | ||
}, | ||
"codeClass": null, | ||
"userConfig": { | ||
"fields": [ | ||
"name" | ||
], | ||
"grid": null, | ||
"designer|userClassName": "MyCategoryAxis" | ||
}, | ||
"designerId": "e6e8a8e7-b14a-4625-98fe-908d347727d2" | ||
}, | ||
{ | ||
"type": "Ext.chart.axis.Numeric", | ||
"reference": { | ||
"name": "axes", | ||
"type": "array" | ||
}, | ||
"codeClass": null, | ||
"userConfig": { | ||
"fields": [ | ||
"revenue" | ||
], | ||
"grid": [ | ||
"{", | ||
" odd: {", | ||
" fill: '#e8e8e8'", | ||
" }", | ||
"}" | ||
], | ||
"position": "left", | ||
"designer|userClassName": "MyNumericAxis" | ||
}, | ||
"designerId": "5cbcd515-300c-4244-b89c-eb1463274a0f" | ||
}, | ||
{ | ||
"type": "Ext.chart.series.Bar", | ||
"reference": { | ||
"name": "series", | ||
"type": "array" | ||
}, | ||
"codeClass": null, | ||
"userConfig": { | ||
"designer|userClassName": "MyBarSeries", | ||
"xField": "name", | ||
"yField": [ | ||
"revenue" | ||
] | ||
}, | ||
"designerId": "e34b4987-4514-498d-bbfa-26d69d9f0f43" | ||
}, | ||
{ | ||
"type": "Ext.chart.interactions.PanZoom", | ||
"reference": { | ||
"name": "interactions", | ||
"type": "array" | ||
}, | ||
"codeClass": null, | ||
"userConfig": { | ||
"designer|userClassName": "MyPanZoomInteraction" | ||
}, | ||
"designerId": "370a9ea3-c00b-4538-9767-4662c786d869" | ||
} | ||
] | ||
} |