业务量统计x轴显示样式调整
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -105,6 +105,7 @@ export default { | ... | @@ -105,6 +105,7 @@ export default { |
105 | // 初始化图表 | 105 | // 初始化图表 |
106 | this.chartData.length && this.echartInit(this.chartData) | 106 | this.chartData.length && this.echartInit(this.chartData) |
107 | }); | 107 | }); |
108 | |||
108 | }, | 109 | }, |
109 | // 重置 | 110 | // 重置 |
110 | resetForm () { | 111 | resetForm () { |
... | @@ -131,6 +132,7 @@ export default { | ... | @@ -131,6 +132,7 @@ export default { |
131 | }, | 132 | }, |
132 | grid: { | 133 | grid: { |
133 | top: 120, | 134 | top: 120, |
135 | bottom:100, | ||
134 | }, | 136 | }, |
135 | xAxis: [ | 137 | xAxis: [ |
136 | { | 138 | { |
... | @@ -138,6 +140,7 @@ export default { | ... | @@ -138,6 +140,7 @@ export default { |
138 | data: chartArr.map(item => item.recTypeName), | 140 | data: chartArr.map(item => item.recTypeName), |
139 | axisLabel: { | 141 | axisLabel: { |
140 | interval: 0, | 142 | interval: 0, |
143 | rotate: 40, | ||
141 | formatter: function (val) { | 144 | formatter: function (val) { |
142 | let c = document.createElement("canvas"); | 145 | let c = document.createElement("canvas"); |
143 | const ctx = c.getContext("2d"); | 146 | const ctx = c.getContext("2d"); | ... | ... |
-
Please register or sign in to post a comment