Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
yiliuyan161 committed Aug 29, 2024
1 parent 0c2a5c6 commit 835e246
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions chartspy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,10 @@ def json_type_convert(o: object):
return o1.isoformat()
elif isinstance(o, np.bool_):
return bool(o)
elif isinstance(o, np.integer):
elif isinstance(o, (np.int_, np.intc, np.intp, np.int8, np.int16, np.int32, np.int64,
np.uint8, np.uint16, np.uint32, np.uint64)):
return int(o)
elif isinstance(o, np.floating):
return float(o)
elif isinstance(o, np.complexfloating):
elif isinstance(o, (np.float_, np.float16, np.float32, np.float64,np.complexfloating)):
return float(o)
elif isinstance(o, np.character):
return str(o)
Expand Down
2 changes: 1 addition & 1 deletion chartspy/express/echarts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ def mark_label_echarts(data_frame: pd.DataFrame, x: str, y: str, label: str, tit


def mark_vertical_line_echarts(data_frame: pd.DataFrame, x: str, label: str, title="vertical_line",
label_position: str = 'middle', label_font_size: int = 10, label_distance: int = 10,
label_position: str = 'insideStartTop', label_font_size: int = 10, label_distance: int = 10,
label_font_color: str = 'inherit',**kwargs):
"""
在现有图表上叠加竖线,不能单独显示
Expand Down

0 comments on commit 835e246

Please sign in to comment.