From 676aaf3485af6e36ce352be7fa6bc97adb207398 Mon Sep 17 00:00:00 2001 From: Pan Date: Tue, 4 Sep 2018 15:03:47 +0800 Subject: [PATCH] perf[Charts]: refine style --- src/components/Charts/keyboard.vue | 4 ++++ src/components/Charts/lineMarker.vue | 4 ++-- src/components/Charts/mixChart.vue | 4 +++- src/views/charts/keyboard.vue | 3 +-- src/views/charts/line.vue | 3 +-- src/views/charts/mixChart.vue | 3 +-- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/Charts/keyboard.vue b/src/components/Charts/keyboard.vue index 15cc3432..857b26ae 100644 --- a/src/components/Charts/keyboard.vue +++ b/src/components/Charts/keyboard.vue @@ -56,6 +56,10 @@ export default { this.chart.setOption( { backgroundColor: '#08263a', + grid: { + left: '5%', + right: '5%' + }, xAxis: [{ show: false, data: xAxisData diff --git a/src/components/Charts/lineMarker.vue b/src/components/Charts/lineMarker.vue index 9f56e613..5d41b022 100644 --- a/src/components/Charts/lineMarker.vue +++ b/src/components/Charts/lineMarker.vue @@ -80,8 +80,8 @@ export default { }, grid: { top: 100, - left: '3%', - right: '4%', + left: '2%', + right: '2%', bottom: '2%', containLabel: true }, diff --git a/src/components/Charts/mixChart.vue b/src/components/Charts/mixChart.vue index 40aee7a0..a8e271ca 100644 --- a/src/components/Charts/mixChart.vue +++ b/src/components/Charts/mixChart.vue @@ -75,8 +75,10 @@ export default { } }, grid: { + left: '5%', + right: '5%', borderWidth: 0, - top: 110, + top: 150, bottom: 95, textStyle: { color: '#fff' diff --git a/src/views/charts/keyboard.vue b/src/views/charts/keyboard.vue index 98087ab0..3ea21397 100644 --- a/src/views/charts/keyboard.vue +++ b/src/views/charts/keyboard.vue @@ -16,9 +16,8 @@ export default { diff --git a/src/views/charts/line.vue b/src/views/charts/line.vue index da0b5bba..2034d4c7 100644 --- a/src/views/charts/line.vue +++ b/src/views/charts/line.vue @@ -16,9 +16,8 @@ export default { diff --git a/src/views/charts/mixChart.vue b/src/views/charts/mixChart.vue index 568bae7b..7ccc7fa0 100644 --- a/src/views/charts/mixChart.vue +++ b/src/views/charts/mixChart.vue @@ -16,9 +16,8 @@ export default {