Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
84c48d3f
Commit
84c48d3f
authored
Jan 22, 2021
by
李宗熹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改折线图中的指数名称
parent
16dd7851
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
fund_service.py
app/service/fund_service.py
+5
-3
No files found.
app/service/fund_service.py
View file @
84c48d3f
...
...
@@ -176,10 +176,11 @@ def fund_index_compare(fund_id, invest_type=2, index_id='000905.SH'):
xlabels
=
[
""
for
i
in
range
(
len
(
compare
))]
index_name
=
get_index_name
(
index_id
)
.
values
[
0
][
0
]
# index_name = get_index_name(index_id).values[0][0]
# fund_name = get_fund_name(fund_id).values[0][0]
chart_data
=
{
"xlabels"
:
xlabels
,
"index"
:
{
'name'
:
index_name
,
'data'
:
compare
[
index_id
+
"_return_ratio"
]
.
values
},
"index"
:
{
'name'
:
'中证500'
,
'data'
:
compare
[
index_id
+
"_return_ratio"
]
.
values
},
"fund"
:
{
'name'
:
fund_id
,
'data'
:
compare
[
fund_id
+
"_return_ratio"
]
.
values
},
}
r
=
draw_index_combination_chart
(
chart_data
)
...
...
@@ -187,4 +188,5 @@ def fund_index_compare(fund_id, invest_type=2, index_id='000905.SH'):
if
__name__
==
'__main__'
:
print
(
single_evaluation
(
fund_id
=
'HF00005AFK'
))
\ No newline at end of file
# print(single_evaluation(fund_id='HF00005AFK'))
print
(
fund_index_compare
(
fund_id
=
'HF00002G4A'
))
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment