perf[Charts]: refine style

This commit is contained in:
Pan 2018-09-04 15:03:47 +08:00
parent 44e4bddc21
commit 676aaf3485
6 changed files with 12 additions and 9 deletions

View File

@ -56,6 +56,10 @@ export default {
this.chart.setOption( this.chart.setOption(
{ {
backgroundColor: '#08263a', backgroundColor: '#08263a',
grid: {
left: '5%',
right: '5%'
},
xAxis: [{ xAxis: [{
show: false, show: false,
data: xAxisData data: xAxisData

View File

@ -80,8 +80,8 @@ export default {
}, },
grid: { grid: {
top: 100, top: 100,
left: '3%', left: '2%',
right: '4%', right: '2%',
bottom: '2%', bottom: '2%',
containLabel: true containLabel: true
}, },

View File

@ -75,8 +75,10 @@ export default {
} }
}, },
grid: { grid: {
left: '5%',
right: '5%',
borderWidth: 0, borderWidth: 0,
top: 110, top: 150,
bottom: 95, bottom: 95,
textStyle: { textStyle: {
color: '#fff' color: '#fff'

View File

@ -16,9 +16,8 @@ export default {
<style scoped> <style scoped>
.chart-container{ .chart-container{
position: relative; position: relative;
padding: 20px;
width: 100%; width: 100%;
height: 85vh; height: calc(100vh - 84px);
} }
</style> </style>

View File

@ -16,9 +16,8 @@ export default {
<style scoped> <style scoped>
.chart-container{ .chart-container{
position: relative; position: relative;
padding:20px;
width: 100%; width: 100%;
height:85vh; height: calc(100vh - 84px);
} }
</style> </style>

View File

@ -16,9 +16,8 @@ export default {
<style scoped> <style scoped>
.chart-container{ .chart-container{
position: relative; position: relative;
padding: 20px;
width: 100%; width: 100%;
height:85vh; height: calc(100vh - 84px);
} }
</style> </style>