From db02b00252e16e249d338d7c673649eb7ea1705b Mon Sep 17 00:00:00 2001 From: yiliuyan Date: Thu, 29 Aug 2024 14:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AB=96=E7=BA=BF=E5=8F=A0?= =?UTF-8?q?=E5=8A=A0=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chartspy/express/echarts.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/chartspy/express/echarts.py b/chartspy/express/echarts.py index a7fb880..52936f5 100644 --- a/chartspy/express/echarts.py +++ b/chartspy/express/echarts.py @@ -1588,9 +1588,17 @@ def mark_vertical_line_echarts(data_frame: pd.DataFrame, x: str, label: str, tit 'distance': label_distance, 'fontSize': label_font_size, 'color': label_font_color, - 'show': True, - 'formatter': "{b}" + 'borderWidth':1, + 'borderColor':'#000', + 'backgroundColor':"white", + 'padding':5, + 'width':150, + 'overflow':'breakAll', + 'show': False, + 'formatter': "{b}", + 'rotate': 0 # 设置为0度以横向显示 }, + 'emphasis':{'label':{'show':True}}, 'symbol': [None, None], 'data': data }