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
c7462000
Commit
c7462000
authored
Jan 19, 2021
by
李宗熹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改index_id作为列名
parent
234af552
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fund_service.py
app/service/fund_service.py
+1
-1
No files found.
app/service/fund_service.py
View file @
c7462000
...
@@ -179,7 +179,7 @@ def fund_index_compare(fund_id, invest_type=2, index_id='000905.SH'):
...
@@ -179,7 +179,7 @@ def fund_index_compare(fund_id, invest_type=2, index_id='000905.SH'):
index_name
=
get_index_name
(
index_id
)
.
values
[
0
][
0
]
index_name
=
get_index_name
(
index_id
)
.
values
[
0
][
0
]
chart_data
=
{
chart_data
=
{
"xlabels"
:
xlabels
,
"xlabels"
:
xlabels
,
"index"
:
{
'name'
:
index_name
,
'data'
:
compare
[
"index
_return_ratio"
]
.
values
},
"index"
:
{
'name'
:
index_name
,
'data'
:
compare
[
index_id
+
"
_return_ratio"
]
.
values
},
"fund"
:
{
'name'
:
fund_id
,
'data'
:
compare
[
fund_id
+
"_return_ratio"
]
.
values
},
"fund"
:
{
'name'
:
fund_id
,
'data'
:
compare
[
fund_id
+
"_return_ratio"
]
.
values
},
}
}
r
=
draw_index_combination_chart
(
chart_data
)
r
=
draw_index_combination_chart
(
chart_data
)
...
...
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