-
Notifications
You must be signed in to change notification settings - Fork 16
/
net_asset.html
executable file
·40 lines (36 loc) · 3.27 KB
/
net_asset.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>净值</title>
<script src="https://go-echarts.github.io/go-echarts-assets/assets/echarts.min.js"></script>
<link href="https://go-echarts.github.io/go-echarts-assets/assets/bulma.min.css" rel="stylesheet">
</head>
<body>
<div class="select" style="margin-right:10px; margin-top:10px; position:fixed; right:10px;"></div>
<div class="container">
<div class="item" id="SXqNJvAOxGNg"
style="width:1080px;height:500px;"></div>
</div>
<script type="text/javascript">
"use strict";
var myChart_SXqNJvAOxGNg = echarts.init(document.getElementById('SXqNJvAOxGNg'), "white");
var option_SXqNJvAOxGNg = {
title: {"text":"回测","subtext":"https://github.com/nntaoli-project/goex_backtest",},
tooltip: {},
legend: {},
xAxis: [{"data":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121],"splitArea":{"show":false,},"splitLine":{"show":false,}}],
yAxis: [{"axisLabel":{"show":true},"scale":true,"splitArea":{"show":false,},"splitLine":{"show":true,}}],
series: [
{"name":"净值","type":"line","data":[100000,100096.62,100096.62,100091.068,100091.068,100129.548,100129.548,100111.596,100111.596,100067.008,100067.008,99900.512,99900.512,99750.172,99750.172,99715.312,99715.312,99888.504,99888.504,100244.764,100244.764,100180.068,100180.068,100344.12,100344.12,100308.936,100308.936,100303.28,100303.28,100248.2,100248.2,100323.768,100323.768,100279.536,100279.536,100355.12,100355.12,100278.956,100278.956,100250.232,100250.232,100317.392,100317.392,100319.088,100319.088,100275.228,100275.228,100269.272,100269.272,100311.24,100311.24,100421.448,100421.448,100411.704,100411.704,100449.428,100449.428,100373.08,100373.08,100367.024,100367.024,100381.904,100381.904,100371.6,100371.6,100368.448,100368.448,100351.28,100351.28,100327.996,100327.996,100720.116,100720.116,100721.44,100721.44,100829.84,100829.84,100829.916,100829.916,101180.012,101180.012,101133.708,101133.708,101103.4,101103.4,101142.004,101142.004,101248.952,101248.952,101224.048,101224.048,101277.46,101277.46,101238.38,101238.38,101160.38,101160.38,101181.688,101181.688,101131.636,101131.636,101096.472,101096.472,101246.448,101246.448,101230.636,101230.636,101206.032,101206.032,101187.568,101187.568,101214.116,101214.116,101211.116,101211.116,101202.224,101202.224,101174.368,101174.368,101182.612,101182.612,101157.936],"label":{"show":false},"emphasis":{"label":{"show":false},},"markLine":{"label":{"show":false}},"markPoint":{"data":[{"name":"最大值","type":"max"},{"name":"最小值","type":"min"}],"label":{"show":true}},},
],
color: ["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],
};
myChart_SXqNJvAOxGNg.setOption(option_SXqNJvAOxGNg);
</script>
<style>
.container {margin-top:30px; display: flex;justify-content: center;align-items: center;}
.item {margin: auto;}
</style>
</body>
</html>