|
|
|
@ -122,15 +122,15 @@ |
|
|
|
|
<div class="row justify-content-center font-bold text-xl"> |
|
|
|
|
資產權重變化 |
|
|
|
|
</div> |
|
|
|
|
<div class="" id="weight" style="max-height:30vh"></div> |
|
|
|
|
<div class="mb-4" id="weight" style="max-height:50vh"></div> |
|
|
|
|
<div class="row justify-content-center font-bold text-xl"> |
|
|
|
|
投組價值走勢 |
|
|
|
|
</div> |
|
|
|
|
<div class="" id="price" style="max-height:30vh"></div> |
|
|
|
|
<div class="mb-4" id="price" style="max-height:40vh"></div> |
|
|
|
|
<div class="row justify-content-center font-bold text-xl"> |
|
|
|
|
投組季報酬率 |
|
|
|
|
</div> |
|
|
|
|
<div class="" id="bar" style="max-height:30vh"></div> |
|
|
|
|
<div class="mb-4" id="bar" style="max-height:40vh"></div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -153,7 +153,10 @@ |
|
|
|
|
'title': {'text': ''}, |
|
|
|
|
'xaxis': {'anchor': 'y', 'domain': [0.0, 1.0], 'title':''}, |
|
|
|
|
'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0], 'title':''}, |
|
|
|
|
'margin': {'l': 50, 'r': 50, 't': 20, 'b': 50} |
|
|
|
|
'margin': {'l': 50, 'r': 50, 't': 10, 'b': 50}, |
|
|
|
|
'legend': {'yanchor': 'bottom', 'y': 1.3, 'xanchor': 'left', 'x': 0, 'orientation':'h', |
|
|
|
|
'font': {'size':8} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
const rlayout = { |
|
|
|
|
'autosize': true, |
|
|
|
@ -161,7 +164,7 @@ |
|
|
|
|
'xaxis': {'anchor': 'y', 'domain': [0.0, 1.0], 'title':''}, |
|
|
|
|
'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0], 'title':''}, |
|
|
|
|
'margin': {'l': 20, 'r': 10, 't': 50, 'b': 50}, |
|
|
|
|
'legend': {'yanchor': 'top', 'y': 1.2, 'xanchor': 'left', 'x': 0.01, 'orientation':'h'} |
|
|
|
|
'legend': {'yanchor': 'top', 'y': 1.3, 'xanchor': 'left', 'x': 0.01, 'orientation':'h'} |
|
|
|
|
}; |
|
|
|
|
const blayout = { |
|
|
|
|
'autosize': true, |
|
|
|
@ -169,7 +172,7 @@ |
|
|
|
|
'xaxis': {'anchor': 'y', 'domain': [0.0, 1.0], 'title':''}, |
|
|
|
|
'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0], 'title':''}, |
|
|
|
|
'margin': {'l': 40, 'r': 10, 't': 50, 'b': 70}, |
|
|
|
|
'legend': {'yanchor': 'top', 'y': 1.2, 'xanchor': 'left', 'x': 0.01, 'orientation':'h'} |
|
|
|
|
'legend': {'yanchor': 'top', 'y': 1.3, 'xanchor': 'left', 'x': 0.01, 'orientation':'h'} |
|
|
|
|
}; |
|
|
|
|
var w = {{ data.weight|safe }}; |
|
|
|
|
var r = {{ data.ret|safe }}; |
|
|
|
|