提交 4ee5d79b 编写于 作者: Z zengbin93

0.5.6 update

上级 d9fee895
...@@ -61,6 +61,7 @@ def kdj_gold_cross(kline: Union[List[dict], pd.DataFrame], just: bool = True): ...@@ -61,6 +61,7 @@ def kdj_gold_cross(kline: Union[List[dict], pd.DataFrame], just: bool = True):
traceback.print_exc() traceback.print_exc()
return False return False
def kdj_dead_cross(kline: Union[List[dict], pd.DataFrame], just: bool = True): def kdj_dead_cross(kline: Union[List[dict], pd.DataFrame], just: bool = True):
"""输入K线,判断KDJ是否死叉 """输入K线,判断KDJ是否死叉
......
...@@ -4,11 +4,10 @@ ...@@ -4,11 +4,10 @@
""" """
from pyecharts.options import HeatMapItem
from pyecharts import options as opts from pyecharts import options as opts
from pyecharts.charts import HeatMap, Kline, Line, Bar, Scatter, Grid from pyecharts.charts import HeatMap, Kline, Line, Bar, Scatter, Grid
from pyecharts.commons.utils import JsCode from pyecharts.commons.utils import JsCode
from typing import List, Callable from typing import List
def heat_map(data: List[dict], def heat_map(data: List[dict],
...@@ -33,7 +32,7 @@ def heat_map(data: List[dict], ...@@ -33,7 +32,7 @@ def heat_map(data: List[dict],
:return: 图表 :return: 图表
""" """
value = [HeatMapItem(value=[s['x'], s['y'], s['heat']]) for s in data] value = [opts.HeatMapItem(value=[s['x'], s['y'], s['heat']]) for s in data]
heat = [s['heat'] for s in data] heat = [s['heat'] for s in data]
if not x_label: if not x_label:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册