|
|
@@ -3,9 +3,10 @@ Ext.define('saas.view.home.charts.MonthIO', {
|
|
|
xtype: 'month-io',
|
|
|
id: 'month_io',
|
|
|
|
|
|
- bind: {
|
|
|
- title: '本月收入支出额(万元)<div style="text-align: right;"><span style="font-weight:bold;">收入:{month_in}</span><span style="font-weight:bold;margin-left: 10px;">支出:{month_out}</span></div>'
|
|
|
- },
|
|
|
+ // bind: {
|
|
|
+ // title: '本月收入支出额(万元)<div style="text-align: right;"><span style="font-weight:bold;">收入:{month_in}</span><span style="font-weight:bold;margin-left: 10px;">支出:{month_out}</span></div>'
|
|
|
+ // },
|
|
|
+ title: '本月收入支出额(万元)',
|
|
|
|
|
|
initComponent: function () {
|
|
|
var me = this;
|
|
|
@@ -18,27 +19,18 @@ Ext.define('saas.view.home.charts.MonthIO', {
|
|
|
'#82CCFF'
|
|
|
],
|
|
|
bind: {
|
|
|
- // captions: {
|
|
|
- // title: {
|
|
|
- // text: '收入:{month_in}\t支出:{month_out}',
|
|
|
- // style: {
|
|
|
- // 'color': '#485465',
|
|
|
- // 'letter-spacing': '-0.07px'
|
|
|
- // },
|
|
|
- // align: 'left'
|
|
|
- // },
|
|
|
- // },
|
|
|
+ legend: {
|
|
|
+ type: 'dom',
|
|
|
+ docked: 'top',
|
|
|
+ padding: 0,
|
|
|
+ bodyPadding: 0,
|
|
|
+ border: 0,
|
|
|
+ cls: 'x-monthio-legend',
|
|
|
+ html: '<div class="sumtip"><span>收入:{month_in}</span><span>支出:{month_out}</span></div>'
|
|
|
+ },
|
|
|
insetPadding: '{insetPadding}',
|
|
|
store: '{month_io}'
|
|
|
},
|
|
|
- legend: {
|
|
|
- type: 'dom',
|
|
|
- docked: 'top',
|
|
|
- padding: 0,
|
|
|
- bodyPadding: 0,
|
|
|
- border: 0,
|
|
|
- cls: 'x-monthio-legend'
|
|
|
- },
|
|
|
axes: [{
|
|
|
type: 'numeric',
|
|
|
position: 'left',
|
|
|
@@ -51,10 +43,10 @@ Ext.define('saas.view.home.charts.MonthIO', {
|
|
|
},
|
|
|
grid: {
|
|
|
even: {
|
|
|
- stroke: '#E2E7ED'
|
|
|
+ stroke: '#E5EAEF'
|
|
|
},
|
|
|
odd: {
|
|
|
- stroke: '#E2E7ED',
|
|
|
+ stroke: '#E5EAEF',
|
|
|
}
|
|
|
},
|
|
|
style: {
|
|
|
@@ -70,7 +62,7 @@ Ext.define('saas.view.home.charts.MonthIO', {
|
|
|
fillStyle: '#485465'
|
|
|
},
|
|
|
style: {
|
|
|
- fill: '#E2E7ED',
|
|
|
+ fill: '#E5EAEF',
|
|
|
strokeStyle: 'transparent'
|
|
|
},
|
|
|
}],
|