|
|
@@ -34,10 +34,10 @@ Ext.define('saas.view.home.charts.SaleTrend', {
|
|
|
|
|
|
// },
|
|
|
axes: [{
|
|
|
- title: {
|
|
|
- text: '月',
|
|
|
- fontSize: 14,
|
|
|
- },
|
|
|
+ // title: {
|
|
|
+ // text: '月',
|
|
|
+ // fontSize: 14,
|
|
|
+ // },
|
|
|
type: 'category',
|
|
|
fields: ['x'],
|
|
|
position: 'bottom',
|
|
|
@@ -45,6 +45,7 @@ Ext.define('saas.view.home.charts.SaleTrend', {
|
|
|
fill: '#E7EBEF',
|
|
|
strokeStyle: 'transparent'
|
|
|
},
|
|
|
+ renderer: me.categoryRender
|
|
|
},{
|
|
|
type: 'numeric',
|
|
|
fields: ['sale', 'saleback'],
|
|
|
@@ -94,4 +95,8 @@ Ext.define('saas.view.home.charts.SaleTrend', {
|
|
|
tooltip.setHtml(record.get('x') + title + record.get(item.series.getYField()) + '万元');
|
|
|
},
|
|
|
|
|
|
+ categoryRender: function(axis, label, layoutContext, lastLabel) {
|
|
|
+ return label + '月';
|
|
|
+ }
|
|
|
+
|
|
|
});
|