Commit d376ee92 authored by 赵杰's avatar 赵杰

月度回报图数据单位

parent 0a7c69fb
...@@ -502,7 +502,7 @@ class UserCustomerResultAdaptor(UserCustomerDataAdaptor): ...@@ -502,7 +502,7 @@ class UserCustomerResultAdaptor(UserCustomerDataAdaptor):
def get_month_return_chart(self): def get_month_return_chart(self):
res = self.total_result_data["month_return"] res = self.total_result_data["month_return"]
xlabels = res["date"].values xlabels = res["date"].values
res["profit"] = res["profit"].apply(lambda x: round(x/100.0, 2)) res["profit"] = res["profit"].apply(lambda x: round(x/10000.0, 2))
res["ratio"] = res["ratio"].apply(lambda x: round((x-1)*100, 2)) res["ratio"] = res["ratio"].apply(lambda x: round((x-1)*100, 2))
product_list = {'name': '月度回报', 'data': res["profit"].values} product_list = {'name': '月度回报', 'data': res["profit"].values}
cumulative = {'name': '累积收益', 'data': res["ratio"].values} cumulative = {'name': '累积收益', 'data': res["ratio"].values}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment