From d4042238de0e827949b6110fce3a17cb0f5d2c32 Mon Sep 17 00:00:00 2001 From: region Date: Thu, 28 Mar 2019 20:17:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5Echarts=20grid=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决markline超出问题,https://v-charts.js.org/#/props-demo1?id=%E8%AE%BE%E7%BD%AE%E5%9B%BE%E8%A1%A8%E6%A0%87%E7%BA%BF%E4%B8%8E%E6%A0%87%E7%82%B9,官方demo的markline也展示不完整 --- src/constants.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants.js b/src/constants.js index 5e7f829..17734bf 100644 --- a/src/constants.js +++ b/src/constants.js @@ -12,8 +12,8 @@ export const DEFAULT_THEME = { }, grid: { containLabel: true, - left: 10, - right: 10 + left: '10%', + right: '10%' } }