113 lines
29 KiB
HTML
113 lines
29 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>FG 累计已实现盈亏曲线</title>
|
||
<script src="https://cdn.jsdelivr.net/npm/echarts@5.5.0/dist/echarts.min.js"></script>
|
||
<style>
|
||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f172a; color: #e2e8f0; display: flex; justify-content: center; align-items: center; min-height: 100vh; }
|
||
.wrap { width: 100%; max-width: 1100px; padding: 24px; }
|
||
h1 { font-size: 20px; font-weight: 600; margin-bottom: 2px; }
|
||
.sub { font-size: 13px; color: #64748b; margin-bottom: 20px; }
|
||
.cards { display: flex; gap: 12px; margin-bottom: 20px; }
|
||
.card { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 14px 20px; flex: 1; }
|
||
.card .label { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: .5px; }
|
||
.card .value { font-size: 24px; font-weight: 700; color: #22c55e; margin-top: 4px; }
|
||
.card .value.red { color: #f87171; }
|
||
.card .value.neutral { color: #e2e8f0; }
|
||
#chart { width: 100%; height: 520px; border: 1px solid #334155; border-radius: 8px; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="wrap">
|
||
<h1>玻璃期货 FG 主连 · 累计已实现盈亏曲线</h1>
|
||
<p class="sub">累仓+3锁清仓策略 · 开盘入场 · 2024-01-02 → 2026-07-22</p>
|
||
|
||
<div class="cards">
|
||
<div class="card"><div class="label">最终盈亏</div><div class="value">+23.26 万</div></div>
|
||
<div class="card"><div class="label">历史最高</div><div class="value neutral">23.26 万</div></div>
|
||
<div class="card"><div class="label">最大回撤</div><div class="value red">−0.30 万</div></div>
|
||
</div>
|
||
|
||
<div id="chart"></div>
|
||
</div>
|
||
|
||
<script>
|
||
var raw = {"dates": ["2024-01-02", "2024-01-03", "2024-01-04", "2024-01-05", "2024-01-08", "2024-01-09", "2024-01-10", "2024-01-11", "2024-01-12", "2024-01-15", "2024-01-16", "2024-01-17", "2024-01-18", "2024-01-19", "2024-01-22", "2024-01-23", "2024-01-24", "2024-01-25", "2024-01-26", "2024-01-29", "2024-01-30", "2024-01-31", "2024-02-01", "2024-02-02", "2024-02-05", "2024-02-06", "2024-02-07", "2024-02-08", "2024-02-19", "2024-02-20", "2024-02-21", "2024-02-22", "2024-02-23", "2024-02-26", "2024-02-27", "2024-02-28", "2024-02-29", "2024-03-01", "2024-03-04", "2024-03-05", "2024-03-06", "2024-03-07", "2024-03-08", "2024-03-11", "2024-03-12", "2024-03-13", "2024-03-14", "2024-03-15", "2024-03-18", "2024-03-19", "2024-03-20", "2024-03-21", "2024-03-22", "2024-03-25", "2024-03-26", "2024-03-27", "2024-03-28", "2024-03-29", "2024-04-01", "2024-04-02", "2024-04-03", "2024-04-08", "2024-04-09", "2024-04-10", "2024-04-11", "2024-04-12", "2024-04-15", "2024-04-16", "2024-04-17", "2024-04-18", "2024-04-19", "2024-04-22", "2024-04-23", "2024-04-24", "2024-04-25", "2024-04-26", "2024-04-29", "2024-04-30", "2024-05-06", "2024-05-07", "2024-05-08", "2024-05-09", "2024-05-10", "2024-05-13", "2024-05-14", "2024-05-15", "2024-05-16", "2024-05-17", "2024-05-20", "2024-05-21", "2024-05-22", "2024-05-23", "2024-05-24", "2024-05-27", "2024-05-28", "2024-05-29", "2024-05-30", "2024-05-31", "2024-06-03", "2024-06-04", "2024-06-05", "2024-06-06", "2024-06-07", "2024-06-11", "2024-06-12", "2024-06-13", "2024-06-14", "2024-06-17", "2024-06-18", "2024-06-19", "2024-06-20", "2024-06-21", "2024-06-24", "2024-06-25", "2024-06-26", "2024-06-27", "2024-06-28", "2024-07-01", "2024-07-02", "2024-07-03", "2024-07-04", "2024-07-05", "2024-07-08", "2024-07-09", "2024-07-10", "2024-07-11", "2024-07-12", "2024-07-15", "2024-07-16", "2024-07-17", "2024-07-18", "2024-07-19", "2024-07-22", "2024-07-23", "2024-07-24", "2024-07-25", "2024-07-26", "2024-07-29", "2024-07-30", "2024-07-31", "2024-08-01", "2024-08-02", "2024-08-05", "2024-08-06", "2024-08-07", "2024-08-08", "2024-08-09", "2024-08-12", "2024-08-13", "2024-08-14", "2024-08-15", "2024-08-16", "2024-08-19", "2024-08-20", "2024-08-21", "2024-08-22", "2024-08-23", "2024-08-26", "2024-08-27", "2024-08-28", "2024-08-29", "2024-08-30", "2024-09-02", "2024-09-03", "2024-09-04", "2024-09-05", "2024-09-06", "2024-09-09", "2024-09-10", "2024-09-11", "2024-09-12", "2024-09-13", "2024-09-18", "2024-09-19", "2024-09-20", "2024-09-23", "2024-09-24", "2024-09-25", "2024-09-26", "2024-09-27", "2024-09-30", "2024-10-08", "2024-10-09", "2024-10-10", "2024-10-11", "2024-10-14", "2024-10-15", "2024-10-16", "2024-10-17", "2024-10-18", "2024-10-21", "2024-10-22", "2024-10-23", "2024-10-24", "2024-10-25", "2024-10-28", "2024-10-29", "2024-10-30", "2024-10-31", "2024-11-01", "2024-11-04", "2024-11-05", "2024-11-06", "2024-11-07", "2024-11-08", "2024-11-11", "2024-11-12", "2024-11-13", "2024-11-14", "2024-11-15", "2024-11-18", "2024-11-19", "2024-11-20", "2024-11-21", "2024-11-22", "2024-11-25", "2024-11-26", "2024-11-27", "2024-11-28", "2024-11-29", "2024-12-02", "2024-12-03", "2024-12-04", "2024-12-05", "2024-12-06", "2024-12-09", "2024-12-10", "2024-12-11", "2024-12-12", "2024-12-13", "2024-12-16", "2024-12-17", "2024-12-18", "2024-12-19", "2024-12-20", "2024-12-23", "2024-12-24", "2024-12-25", "2024-12-26", "2024-12-27", "2024-12-30", "2024-12-31", "2025-01-02", "2025-01-03", "2025-01-06", "2025-01-07", "2025-01-08", "2025-01-09", "2025-01-10", "2025-01-13", "2025-01-14", "2025-01-15", "2025-01-16", "2025-01-17", "2025-01-20", "2025-01-21", "2025-01-22", "2025-01-23", "2025-01-24", "2025-01-27", "2025-02-05", "2025-02-06", "2025-02-07", "2025-02-10", "2025-02-11", "2025-02-12", "2025-02-13", "2025-02-14", "2025-02-17", "2025-02-18", "2025-02-19", "2025-02-20", "2025-02-21", "2025-02-24", "2025-02-25", "2025-02-26", "2025-02-27", "2025-02-28", "2025-03-03", "2025-03-04", "2025-03-05", "2025-03-06", "2025-03-07", "2025-03-10", "2025-03-11", "2025-03-12", "2025-03-13", "2025-03-14", "2025-03-17", "2025-03-18", "2025-03-19", "2025-03-20", "2025-03-21", "2025-03-24", "2025-03-25", "2025-03-26", "2025-03-27", "2025-03-28", "2025-03-31", "2025-04-01", "2025-04-02", "2025-04-03", "2025-04-07", "2025-04-08", "2025-04-09", "2025-04-10", "2025-04-11", "2025-04-14", "2025-04-15", "2025-04-16", "2025-04-17", "2025-04-18", "2025-04-21", "2025-04-22", "2025-04-23", "2025-04-24", "2025-04-25", "2025-04-28", "2025-04-29", "2025-04-30", "2025-05-06", "2025-05-07", "2025-05-08", "2025-05-09", "2025-05-12", "2025-05-13", "2025-05-14", "2025-05-15", "2025-05-16", "2025-05-19", "2025-05-20", "2025-05-21", "2025-05-22", "2025-05-23", "2025-05-26", "2025-05-27", "2025-05-28", "2025-05-29", "2025-05-30", "2025-06-03", "2025-06-04", "2025-06-05", "2025-06-06", "2025-06-09", "2025-06-10", "2025-06-11", "2025-06-12", "2025-06-13", "2025-06-16", "2025-06-17", "2025-06-18", "2025-06-19", "2025-06-20", "2025-06-23", "2025-06-24", "2025-06-25", "2025-06-26", "2025-06-27", "2025-06-30", "2025-07-01", "2025-07-02", "2025-07-03", "2025-07-04", "2025-07-07", "2025-07-08", "2025-07-09", "2025-07-10", "2025-07-11", "2025-07-14", "2025-07-15", "2025-07-16", "2025-07-17", "2025-07-18", "2025-07-21", "2025-07-22", "2025-07-23", "2025-07-24", "2025-07-25", "2025-07-28", "2025-07-29", "2025-07-30", "2025-07-31", "2025-08-01", "2025-08-04", "2025-08-05", "2025-08-06", "2025-08-07", "2025-08-08", "2025-08-11", "2025-08-12", "2025-08-13", "2025-08-14", "2025-08-15", "2025-08-18", "2025-08-19", "2025-08-20", "2025-08-21", "2025-08-22", "2025-08-25", "2025-08-26", "2025-08-27", "2025-08-28", "2025-08-29", "2025-09-01", "2025-09-02", "2025-09-03", "2025-09-04", "2025-09-05", "2025-09-08", "2025-09-09", "2025-09-10", "2025-09-11", "2025-09-12", "2025-09-15", "2025-09-16", "2025-09-17", "2025-09-18", "2025-09-19", "2025-09-22", "2025-09-23", "2025-09-24", "2025-09-25", "2025-09-26", "2025-09-29", "2025-09-30", "2025-10-09", "2025-10-10", "2025-10-13", "2025-10-14", "2025-10-15", "2025-10-16", "2025-10-17", "2025-10-20", "2025-10-21", "2025-10-22", "2025-10-23", "2025-10-24", "2025-10-27", "2025-10-28", "2025-10-29", "2025-10-30", "2025-10-31", "2025-11-03", "2025-11-04", "2025-11-05", "2025-11-06", "2025-11-07", "2025-11-10", "2025-11-11", "2025-11-12", "2025-11-13", "2025-11-14", "2025-11-17", "2025-11-18", "2025-11-19", "2025-11-20", "2025-11-21", "2025-11-24", "2025-11-25", "2025-11-26", "2025-11-27", "2025-11-28", "2025-12-01", "2025-12-02", "2025-12-03", "2025-12-04", "2025-12-05", "2025-12-08", "2025-12-09", "2025-12-10", "2025-12-11", "2025-12-12", "2025-12-15", "2025-12-16", "2025-12-17", "2025-12-18", "2025-12-19", "2025-12-22", "2025-12-23", "2025-12-24", "2025-12-25", "2025-12-26", "2025-12-29", "2025-12-30", "2025-12-31", "2026-01-05", "2026-01-06", "2026-01-07", "2026-01-08", "2026-01-09", "2026-01-12", "2026-01-13", "2026-01-14", "2026-01-15", "2026-01-16", "2026-01-19", "2026-01-20", "2026-01-21", "2026-01-22", "2026-01-23", "2026-01-26", "2026-01-27", "2026-01-28", "2026-01-29", "2026-01-30", "2026-02-02", "2026-02-03", "2026-02-04", "2026-02-05", "2026-02-06", "2026-02-09", "2026-02-10", "2026-02-11", "2026-02-12", "2026-02-13", "2026-02-24", "2026-02-25", "2026-02-26", "2026-02-27", "2026-03-02", "2026-03-03", "2026-03-04", "2026-03-05", "2026-03-06", "2026-03-09", "2026-03-10", "2026-03-11", "2026-03-12", "2026-03-13", "2026-03-16", "2026-03-17", "2026-03-18", "2026-03-19", "2026-03-20", "2026-03-23", "2026-03-24", "2026-03-25", "2026-03-26", "2026-03-27", "2026-03-30", "2026-03-31", "2026-04-01", "2026-04-02", "2026-04-03", "2026-04-07", "2026-04-08", "2026-04-09", "2026-04-10", "2026-04-13", "2026-04-14", "2026-04-15", "2026-04-16", "2026-04-17", "2026-04-20", "2026-04-21", "2026-04-22", "2026-04-23", "2026-04-24", "2026-04-27", "2026-04-28", "2026-04-29", "2026-04-30", "2026-05-06", "2026-05-07", "2026-05-08", "2026-05-11", "2026-05-12", "2026-05-13", "2026-05-14", "2026-05-15", "2026-05-18", "2026-05-19", "2026-05-20", "2026-05-21", "2026-05-22", "2026-05-25", "2026-05-26", "2026-05-27", "2026-05-28", "2026-05-29", "2026-06-01", "2026-06-02", "2026-06-03", "2026-06-04", "2026-06-05", "2026-06-08", "2026-06-09", "2026-06-10", "2026-06-11", "2026-06-12", "2026-06-15", "2026-06-16", "2026-06-17", "2026-06-18", "2026-06-22", "2026-06-23", "2026-06-24", "2026-06-25", "2026-06-26", "2026-06-29", "2026-06-30", "2026-07-01", "2026-07-02", "2026-07-03", "2026-07-06", "2026-07-07", "2026-07-08", "2026-07-09", "2026-07-10", "2026-07-13", "2026-07-14", "2026-07-15", "2026-07-16", "2026-07-17", "2026-07-20", "2026-07-21", "2026-07-22"], "cum": [0.0, 0.0, 0.0, 0.25, 0.25, 0.41, 0.64, 0.64, 0.88, 0.88, 0.88, 0.88, 1.1, 1.1, 1.1, 1.1, 1.1, 0.91, 0.91, 0.91, 0.91, 0.91, 1.17, 1.17, 1.17, 1.29, 1.29, 1.29, 1.49, 1.59, 1.59, 1.59, 1.59, 1.79, 1.79, 2.02, 2.02, 2.02, 2.25, 2.25, 2.25, 2.47, 2.47, 2.72, 2.72, 2.72, 2.9, 2.9, 3.17, 3.17, 3.17, 3.17, 3.32, 3.32, 3.48, 3.48, 3.6, 3.6, 3.6, 3.7, 3.7, 3.7, 3.7, 3.54, 3.54, 3.66, 3.76, 3.76, 3.76, 3.76, 3.76, 3.76, 3.76, 3.68, 3.68, 3.68, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.56, 3.56, 3.75, 3.75, 3.75, 3.75, 3.75, 3.75, 3.75, 3.75, 3.59, 3.59, 3.72, 3.72, 3.72, 3.72, 4.15, 4.15, 4.15, 4.15, 3.94, 4.04, 4.04, 4.25, 4.25, 4.5, 4.5, 4.5, 4.65, 4.65, 4.87, 4.87, 4.87, 5.03, 5.03, 5.03, 5.03, 5.03, 5.03, 5.3, 5.38, 5.38, 5.55, 5.55, 5.55, 5.75, 5.75, 5.84, 5.84, 5.9, 5.9, 6.02, 6.02, 6.12, 6.12, 6.38, 6.38, 6.48, 6.48, 6.61, 6.61, 6.75, 6.75, 6.87, 6.87, 6.87, 7.01, 7.1, 7.1, 7.1, 7.22, 7.22, 7.22, 7.38, 7.38, 7.5, 7.5, 7.5, 7.5, 7.5, 8.28, 8.28, 8.47, 8.47, 8.47, 8.72, 8.72, 8.9, 9.03, 9.03, 9.14, 9.14, 9.14, 9.14, 9.05, 9.05, 9.05, 9.05, 8.84, 9.15, 9.15, 9.38, 9.38, 9.38, 9.2, 9.2, 9.71, 9.71, 9.71, 9.71, 9.71, 9.54, 9.54, 9.54, 9.54, 9.54, 9.54, 9.54, 10.16, 10.16, 10.16, 10.16, 10.31, 10.31, 10.49, 10.49, 10.68, 10.68, 10.9, 10.9, 10.9, 10.9, 11.0, 11.0, 11.1, 11.1, 11.1, 11.1, 11.1, 11.1, 11.27, 11.39, 11.39, 11.39, 11.39, 11.39, 11.39, 11.25, 11.34, 11.34, 11.34, 11.34, 11.34, 11.46, 11.46, 11.56, 11.56, 11.65, 11.65, 11.74, 11.74, 11.74, 11.79, 11.79, 11.97, 11.97, 11.97, 11.97, 11.97, 11.97, 11.9, 11.9, 12.05, 12.05, 12.15, 12.15, 12.22, 12.3, 12.3, 12.3, 12.3, 12.45, 12.45, 12.56, 12.67, 12.67, 12.76, 12.76, 12.76, 12.76, 12.9, 12.9, 13.03, 13.03, 13.11, 13.11, 13.19, 13.19, 13.32, 13.32, 13.43, 13.51, 13.51, 13.51, 13.62, 13.62, 13.62, 13.62, 13.62, 13.62, 13.62, 13.5, 13.5, 13.61, 13.61, 13.76, 13.76, 13.76, 13.76, 13.76, 13.93, 13.93, 14.14, 14.14, 14.27, 14.27, 14.27, 14.27, 14.36, 14.44, 14.44, 14.44, 14.44, 14.44, 14.44, 14.44, 14.65, 14.71, 14.71, 14.71, 14.9, 14.9, 14.99, 15.06, 15.06, 15.06, 15.15, 15.15, 15.15, 15.15, 15.21, 15.21, 15.21, 15.21, 15.21, 15.36, 15.36, 15.47, 15.47, 15.47, 15.47, 15.35, 15.35, 15.35, 15.47, 15.47, 15.52, 15.52, 15.52, 15.52, 15.52, 15.52, 15.52, 15.52, 15.52, 15.52, 15.41, 15.47, 15.47, 15.47, 15.47, 15.55, 15.55, 15.55, 15.55, 15.55, 15.55, 15.75, 15.75, 15.75, 15.75, 15.6, 15.6, 15.6, 15.5, 15.5, 15.94, 15.94, 15.94, 16.46, 16.46, 16.66, 16.66, 16.66, 16.78, 16.78, 16.87, 16.87, 16.87, 16.87, 16.87, 17.03, 17.03, 17.29, 17.29, 17.29, 17.29, 17.29, 17.29, 17.35, 17.35, 17.57, 17.57, 17.57, 17.67, 17.67, 17.67, 17.67, 17.8, 17.8, 17.8, 17.8, 17.71, 17.71, 17.84, 17.84, 17.94, 17.94, 17.94, 17.94, 17.94, 18.08, 18.08, 18.18, 18.18, 18.41, 18.5, 18.5, 18.5, 18.79, 18.79, 18.79, 18.91, 18.91, 18.91, 18.99, 18.99, 18.99, 19.08, 19.08, 19.08, 19.08, 19.08, 19.08, 19.08, 19.4, 19.4, 19.46, 19.46, 19.56, 19.56, 19.62, 19.62, 19.74, 19.79, 19.79, 19.79, 19.79, 19.7, 19.7, 19.79, 19.79, 19.87, 19.87, 19.97, 19.97, 20.05, 20.1, 20.1, 20.21, 20.21, 20.21, 20.21, 20.17, 20.17, 20.27, 20.27, 20.27, 20.27, 20.27, 20.27, 20.16, 20.16, 20.23, 20.23, 20.23, 20.23, 20.23, 20.32, 20.42, 20.42, 20.49, 20.49, 20.49, 20.49, 20.67, 20.67, 20.67, 20.67, 20.67, 20.67, 20.67, 20.8, 20.8, 20.8, 20.74, 20.74, 20.86, 20.86, 20.86, 20.95, 20.95, 21.05, 21.05, 21.05, 21.05, 21.05, 21.26, 21.26, 21.26, 21.26, 21.26, 21.26, 21.26, 21.26, 21.18, 21.18, 21.3, 21.3, 21.41, 21.41, 21.49, 21.49, 21.49, 21.49, 21.67, 21.67, 21.67, 21.81, 21.81, 21.91, 21.96, 21.96, 22.01, 22.01, 22.08, 22.08, 22.08, 22.08, 22.1, 22.1, 22.1, 22.1, 22.1, 22.04, 22.04, 22.09, 22.16, 22.16, 22.16, 22.16, 22.06, 22.06, 22.12, 22.12, 22.12, 22.25, 22.25, 22.34, 22.34, 22.44, 22.44, 22.44, 22.4, 22.4, 22.4, 22.4, 22.4, 22.4, 22.4, 22.4, 22.58, 22.63, 22.63, 22.67, 22.67, 22.71, 22.71, 22.71, 22.71, 22.71, 22.83, 22.83, 22.88, 22.88, 22.88, 22.97, 22.97, 23.01, 23.04, 23.04, 23.04, 23.04, 23.04, 23.04, 23.11, 23.11, 23.11, 23.11, 23.15, 23.19, 23.26, 23.26, 23.26, 23.26], "events": [{"date": "2024-01-05", "cum": 0.25, "type": "profit"}, {"date": "2024-01-09", "cum": 0.41, "type": "profit"}, {"date": "2024-01-10", "cum": 0.64, "type": "profit"}, {"date": "2024-01-12", "cum": 0.88, "type": "profit"}, {"date": "2024-01-18", "cum": 1.1, "type": "profit"}, {"date": "2024-01-25", "cum": 0.91, "type": "lock3"}, {"date": "2024-02-01", "cum": 1.17, "type": "profit"}, {"date": "2024-02-06", "cum": 1.29, "type": "profit"}, {"date": "2024-02-19", "cum": 1.49, "type": "profit"}, {"date": "2024-02-20", "cum": 1.59, "type": "profit"}, {"date": "2024-02-26", "cum": 1.79, "type": "profit"}, {"date": "2024-02-28", "cum": 2.02, "type": "profit"}, {"date": "2024-03-04", "cum": 2.25, "type": "profit"}, {"date": "2024-03-07", "cum": 2.47, "type": "profit"}, {"date": "2024-03-11", "cum": 2.72, "type": "profit"}, {"date": "2024-03-14", "cum": 2.9, "type": "profit"}, {"date": "2024-03-18", "cum": 3.17, "type": "profit"}, {"date": "2024-03-22", "cum": 3.32, "type": "profit"}, {"date": "2024-03-26", "cum": 3.48, "type": "profit"}, {"date": "2024-03-28", "cum": 3.6, "type": "profit"}, {"date": "2024-04-02", "cum": 3.7, "type": "profit"}, {"date": "2024-04-10", "cum": 3.54, "type": "lock3"}, {"date": "2024-04-12", "cum": 3.66, "type": "profit"}, {"date": "2024-04-15", "cum": 3.76, "type": "profit"}, {"date": "2024-04-18", "cum": 3.76, "type": "lock3"}, {"date": "2024-04-24", "cum": 3.68, "type": "lock3"}, {"date": "2024-04-29", "cum": 3.86, "type": "profit"}, {"date": "2024-05-10", "cum": 3.56, "type": "lock3"}, {"date": "2024-05-14", "cum": 3.75, "type": "profit"}, {"date": "2024-05-17", "cum": 3.75, "type": "lock3"}, {"date": "2024-05-24", "cum": 3.59, "type": "lock3"}, {"date": "2024-05-28", "cum": 3.72, "type": "profit"}, {"date": "2024-06-03", "cum": 4.15, "type": "profit"}, {"date": "2024-06-07", "cum": 3.94, "type": "lock3"}, {"date": "2024-06-11", "cum": 4.04, "type": "profit"}, {"date": "2024-06-13", "cum": 4.25, "type": "profit"}, {"date": "2024-06-17", "cum": 4.5, "type": "profit"}, {"date": "2024-06-20", "cum": 4.65, "type": "profit"}, {"date": "2024-06-24", "cum": 4.87, "type": "profit"}, {"date": "2024-06-27", "cum": 5.03, "type": "profit"}, {"date": "2024-07-05", "cum": 5.3, "type": "profit"}, {"date": "2024-07-08", "cum": 5.38, "type": "profit"}, {"date": "2024-07-10", "cum": 5.55, "type": "profit"}, {"date": "2024-07-15", "cum": 5.75, "type": "profit"}, {"date": "2024-07-17", "cum": 5.84, "type": "profit"}, {"date": "2024-07-19", "cum": 5.9, "type": "profit"}, {"date": "2024-07-23", "cum": 6.02, "type": "profit"}, {"date": "2024-07-25", "cum": 6.12, "type": "profit"}, {"date": "2024-07-29", "cum": 6.38, "type": "profit"}, {"date": "2024-07-31", "cum": 6.48, "type": "profit"}, {"date": "2024-08-02", "cum": 6.61, "type": "profit"}, {"date": "2024-08-06", "cum": 6.75, "type": "profit"}, {"date": "2024-08-08", "cum": 6.87, "type": "profit"}, {"date": "2024-08-13", "cum": 7.01, "type": "profit"}, {"date": "2024-08-14", "cum": 7.1, "type": "profit"}, {"date": "2024-08-19", "cum": 7.22, "type": "profit"}, {"date": "2024-08-22", "cum": 7.38, "type": "profit"}, {"date": "2024-08-26", "cum": 7.5, "type": "profit"}, {"date": "2024-09-02", "cum": 8.28, "type": "profit"}, {"date": "2024-09-04", "cum": 8.47, "type": "profit"}, {"date": "2024-09-09", "cum": 8.72, "type": "profit"}, {"date": "2024-09-11", "cum": 8.9, "type": "profit"}, {"date": "2024-09-12", "cum": 9.03, "type": "profit"}, {"date": "2024-09-18", "cum": 9.14, "type": "profit"}, {"date": "2024-09-24", "cum": 9.05, "type": "lock3"}, {"date": "2024-09-30", "cum": 8.84, "type": "lock3"}, {"date": "2024-10-08", "cum": 9.15, "type": "profit"}, {"date": "2024-10-10", "cum": 9.38, "type": "profit"}, {"date": "2024-10-15", "cum": 9.2, "type": "lock3"}, {"date": "2024-10-17", "cum": 9.71, "type": "profit"}, {"date": "2024-10-24", "cum": 9.54, "type": "lock3"}, {"date": "2024-11-04", "cum": 10.16, "type": "profit"}, {"date": "2024-11-08", "cum": 10.31, "type": "profit"}, {"date": "2024-11-12", "cum": 10.49, "type": "profit"}, {"date": "2024-11-14", "cum": 10.68, "type": "profit"}, {"date": "2024-11-18", "cum": 10.9, "type": "profit"}, {"date": "2024-11-22", "cum": 11.0, "type": "profit"}, {"date": "2024-11-26", "cum": 11.1, "type": "profit"}, {"date": "2024-12-02", "cum": 11.1, "type": "lock3"}, {"date": "2024-12-04", "cum": 11.27, "type": "profit"}, {"date": "2024-12-05", "cum": 11.39, "type": "profit"}, {"date": "2024-12-13", "cum": 11.25, "type": "lock3"}, {"date": "2024-12-16", "cum": 11.34, "type": "profit"}, {"date": "2024-12-19", "cum": 11.34, "type": "lock3"}, {"date": "2024-12-23", "cum": 11.46, "type": "profit"}, {"date": "2024-12-25", "cum": 11.56, "type": "profit"}, {"date": "2024-12-27", "cum": 11.65, "type": "profit"}, {"date": "2024-12-31", "cum": 11.74, "type": "profit"}, {"date": "2025-01-06", "cum": 11.79, "type": "profit"}, {"date": "2025-01-08", "cum": 11.97, "type": "profit"}, {"date": "2025-01-13", "cum": 11.97, "type": "lock3"}, {"date": "2025-01-16", "cum": 11.9, "type": "lock3"}, {"date": "2025-01-20", "cum": 12.05, "type": "profit"}, {"date": "2025-01-22", "cum": 12.15, "type": "profit"}, {"date": "2025-01-24", "cum": 12.22, "type": "profit"}, {"date": "2025-01-27", "cum": 12.3, "type": "profit"}, {"date": "2025-02-10", "cum": 12.45, "type": "profit"}, {"date": "2025-02-12", "cum": 12.56, "type": "profit"}, {"date": "2025-02-13", "cum": 12.67, "type": "profit"}, {"date": "2025-02-17", "cum": 12.76, "type": "profit"}, {"date": "2025-02-21", "cum": 12.9, "type": "profit"}, {"date": "2025-02-25", "cum": 13.03, "type": "profit"}, {"date": "2025-02-27", "cum": 13.11, "type": "profit"}, {"date": "2025-03-03", "cum": 13.19, "type": "profit"}, {"date": "2025-03-05", "cum": 13.32, "type": "profit"}, {"date": "2025-03-07", "cum": 13.43, "type": "profit"}, {"date": "2025-03-10", "cum": 13.51, "type": "profit"}, {"date": "2025-03-13", "cum": 13.62, "type": "profit"}, {"date": "2025-03-24", "cum": 13.5, "type": "lock3"}, {"date": "2025-03-26", "cum": 13.61, "type": "profit"}, {"date": "2025-03-28", "cum": 13.76, "type": "profit"}, {"date": "2025-04-07", "cum": 13.93, "type": "profit"}, {"date": "2025-04-09", "cum": 14.14, "type": "profit"}, {"date": "2025-04-11", "cum": 14.27, "type": "profit"}, {"date": "2025-04-17", "cum": 14.36, "type": "profit"}, {"date": "2025-04-18", "cum": 14.44, "type": "profit"}, {"date": "2025-04-29", "cum": 14.65, "type": "profit"}, {"date": "2025-04-30", "cum": 14.71, "type": "profit"}, {"date": "2025-05-08", "cum": 14.9, "type": "profit"}, {"date": "2025-05-12", "cum": 14.99, "type": "profit"}, {"date": "2025-05-13", "cum": 15.06, "type": "profit"}, {"date": "2025-05-16", "cum": 15.15, "type": "profit"}, {"date": "2025-05-22", "cum": 15.21, "type": "profit"}, {"date": "2025-05-29", "cum": 15.36, "type": "profit"}, {"date": "2025-06-03", "cum": 15.47, "type": "profit"}, {"date": "2025-06-09", "cum": 15.35, "type": "lock3"}, {"date": "2025-06-12", "cum": 15.47, "type": "profit"}, {"date": "2025-06-16", "cum": 15.52, "type": "profit"}, {"date": "2025-06-19", "cum": 15.52, "type": "lock3"}, {"date": "2025-06-30", "cum": 15.41, "type": "lock3"}, {"date": "2025-07-01", "cum": 15.47, "type": "profit"}, {"date": "2025-07-07", "cum": 15.55, "type": "profit"}, {"date": "2025-07-10", "cum": 15.55, "type": "lock3"}, {"date": "2025-07-15", "cum": 15.75, "type": "profit"}, {"date": "2025-07-21", "cum": 15.6, "type": "lock3"}, {"date": "2025-07-24", "cum": 15.5, "type": "lock3"}, {"date": "2025-07-28", "cum": 15.94, "type": "profit"}, {"date": "2025-07-31", "cum": 16.46, "type": "profit"}, {"date": "2025-08-04", "cum": 16.66, "type": "profit"}, {"date": "2025-08-07", "cum": 16.78, "type": "profit"}, {"date": "2025-08-11", "cum": 16.87, "type": "profit"}, {"date": "2025-08-18", "cum": 17.03, "type": "profit"}, {"date": "2025-08-20", "cum": 17.29, "type": "profit"}, {"date": "2025-08-28", "cum": 17.35, "type": "profit"}, {"date": "2025-09-01", "cum": 17.57, "type": "profit"}, {"date": "2025-09-04", "cum": 17.67, "type": "profit"}, {"date": "2025-09-10", "cum": 17.8, "type": "profit"}, {"date": "2025-09-16", "cum": 17.71, "type": "lock3"}, {"date": "2025-09-18", "cum": 17.84, "type": "profit"}, {"date": "2025-09-22", "cum": 17.94, "type": "profit"}, {"date": "2025-09-29", "cum": 18.08, "type": "profit"}, {"date": "2025-10-09", "cum": 18.18, "type": "profit"}, {"date": "2025-10-13", "cum": 18.41, "type": "profit"}, {"date": "2025-10-14", "cum": 18.5, "type": "profit"}, {"date": "2025-10-17", "cum": 18.79, "type": "profit"}, {"date": "2025-10-22", "cum": 18.91, "type": "profit"}, {"date": "2025-10-27", "cum": 18.99, "type": "profit"}, {"date": "2025-10-30", "cum": 19.08, "type": "profit"}, {"date": "2025-11-10", "cum": 19.4, "type": "profit"}, {"date": "2025-11-12", "cum": 19.46, "type": "profit"}, {"date": "2025-11-14", "cum": 19.56, "type": "profit"}, {"date": "2025-11-18", "cum": 19.62, "type": "profit"}, {"date": "2025-11-20", "cum": 19.74, "type": "profit"}, {"date": "2025-11-21", "cum": 19.79, "type": "profit"}, {"date": "2025-11-27", "cum": 19.7, "type": "lock3"}, {"date": "2025-12-01", "cum": 19.79, "type": "profit"}, {"date": "2025-12-03", "cum": 19.87, "type": "profit"}, {"date": "2025-12-05", "cum": 19.97, "type": "profit"}, {"date": "2025-12-09", "cum": 20.05, "type": "profit"}, {"date": "2025-12-10", "cum": 20.1, "type": "profit"}, {"date": "2025-12-12", "cum": 20.21, "type": "profit"}, {"date": "2025-12-18", "cum": 20.17, "type": "lock3"}, {"date": "2025-12-22", "cum": 20.27, "type": "profit"}, {"date": "2025-12-30", "cum": 20.16, "type": "lock3"}, {"date": "2026-01-05", "cum": 20.23, "type": "profit"}, {"date": "2026-01-12", "cum": 20.32, "type": "profit"}, {"date": "2026-01-13", "cum": 20.42, "type": "profit"}, {"date": "2026-01-15", "cum": 20.49, "type": "profit"}, {"date": "2026-01-21", "cum": 20.67, "type": "profit"}, {"date": "2026-01-30", "cum": 20.8, "type": "profit"}, {"date": "2026-02-04", "cum": 20.74, "type": "lock3"}, {"date": "2026-02-06", "cum": 20.86, "type": "profit"}, {"date": "2026-02-11", "cum": 20.95, "type": "profit"}, {"date": "2026-02-13", "cum": 21.05, "type": "profit"}, {"date": "2026-03-02", "cum": 21.26, "type": "profit"}, {"date": "2026-03-06", "cum": 21.26, "type": "lock3"}, {"date": "2026-03-12", "cum": 21.18, "type": "lock3"}, {"date": "2026-03-16", "cum": 21.3, "type": "profit"}, {"date": "2026-03-18", "cum": 21.41, "type": "profit"}, {"date": "2026-03-20", "cum": 21.49, "type": "profit"}, {"date": "2026-03-26", "cum": 21.67, "type": "profit"}, {"date": "2026-03-31", "cum": 21.81, "type": "profit"}, {"date": "2026-04-02", "cum": 21.91, "type": "profit"}, {"date": "2026-04-03", "cum": 21.96, "type": "profit"}, {"date": "2026-04-08", "cum": 22.01, "type": "profit"}, {"date": "2026-04-10", "cum": 22.08, "type": "profit"}, {"date": "2026-04-16", "cum": 22.1, "type": "lock3"}, {"date": "2026-04-23", "cum": 22.04, "type": "lock3"}, {"date": "2026-04-27", "cum": 22.09, "type": "profit"}, {"date": "2026-04-28", "cum": 22.16, "type": "profit"}, {"date": "2026-05-07", "cum": 22.06, "type": "lock3"}, {"date": "2026-05-11", "cum": 22.12, "type": "profit"}, {"date": "2026-05-14", "cum": 22.25, "type": "profit"}, {"date": "2026-05-18", "cum": 22.34, "type": "profit"}, {"date": "2026-05-20", "cum": 22.44, "type": "profit"}, {"date": "2026-05-25", "cum": 22.4, "type": "lock3"}, {"date": "2026-06-04", "cum": 22.58, "type": "profit"}, {"date": "2026-06-05", "cum": 22.63, "type": "profit"}, {"date": "2026-06-09", "cum": 22.67, "type": "profit"}, {"date": "2026-06-11", "cum": 22.71, "type": "profit"}, {"date": "2026-06-18", "cum": 22.83, "type": "profit"}, {"date": "2026-06-23", "cum": 22.88, "type": "profit"}, {"date": "2026-06-26", "cum": 22.97, "type": "profit"}, {"date": "2026-06-30", "cum": 23.01, "type": "profit"}, {"date": "2026-07-01", "cum": 23.04, "type": "profit"}, {"date": "2026-07-09", "cum": 23.11, "type": "profit"}, {"date": "2026-07-15", "cum": 23.15, "type": "profit"}, {"date": "2026-07-16", "cum": 23.19, "type": "profit"}, {"date": "2026-07-17", "cum": 23.26, "type": "profit"}]};
|
||
var dates = raw.dates;
|
||
var cum = raw.cum;
|
||
var events = raw.events;
|
||
|
||
var profitMarks = [];
|
||
var lock3Marks = [];
|
||
events.forEach(function(e) {
|
||
var idx = dates.indexOf(e.date);
|
||
if (idx >= 0) {
|
||
if (e.type === 'profit') profitMarks.push({ coord: [e.date, e.cum] });
|
||
else lock3Marks.push({ coord: [e.date, e.cum] });
|
||
}
|
||
});
|
||
|
||
var chart = echarts.init(document.getElementById('chart'));
|
||
var option = {
|
||
backgroundColor: '#0f172a',
|
||
tooltip: {
|
||
trigger: 'axis',
|
||
backgroundColor: '#1e293b',
|
||
borderColor: '#334155',
|
||
textStyle: { color: '#e2e8f0', fontSize: 12 },
|
||
formatter: function(ps) {
|
||
return '<b>' + ps[0].axisValue + '</b><br/>累计已实现: <b style="color:#22c55e">' + (ps[0].value>=0?'+':'') + ps[0].value.toFixed(2) + '万</b>';
|
||
}
|
||
},
|
||
grid: { top: 30, right: 30, bottom: 30, left: 55 },
|
||
xAxis: {
|
||
type: 'category', data: dates,
|
||
axisLine: { lineStyle: { color: '#334155' } },
|
||
axisLabel: { color: '#475569', fontSize: 10 },
|
||
axisTick: { show: false },
|
||
splitLine: { show: false }
|
||
},
|
||
yAxis: {
|
||
type: 'value', name: '万元',
|
||
nameTextStyle: { color: '#64748b', fontSize: 11 },
|
||
axisLine: { show: false },
|
||
axisLabel: { color: '#64748b', fontSize: 10 },
|
||
splitLine: { lineStyle: { color: '#1e293b' } }
|
||
},
|
||
series: [
|
||
{
|
||
name: '累计已实现', type: 'line', data: cum,
|
||
smooth: false, symbol: 'none',
|
||
lineStyle: { color: '#22c55e', width: 2 },
|
||
areaStyle: {
|
||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||
{ offset: 0, color: 'rgba(34, 197, 94, 0.18)' },
|
||
{ offset: 1, color: 'rgba(34, 197, 94, 0.01)' }
|
||
])
|
||
},
|
||
markPoint: {
|
||
data: [
|
||
{ type: 'max', name: '峰值', symbol: 'pin', symbolSize: 28,
|
||
itemStyle: { color: '#fbbf24' },
|
||
label: { color: '#fbbf24', fontSize: 10, fontWeight: 600, formatter: '峰值\n{c}万' } },
|
||
{ coord: [dates[dates.length-1], cum[cum.length-1]], name: '最终', symbol: 'roundRect', symbolSize: [60, 22],
|
||
itemStyle: { color: '#22c55e', borderColor: '#0f172a', borderWidth: 2 },
|
||
label: { color: '#0f172a', fontSize: 11, fontWeight: 700, formatter: '最终\n{c}万' } }
|
||
]
|
||
},
|
||
markLine: {
|
||
silent: true, symbol: 'none',
|
||
lineStyle: { color: '#334155', type: 'dashed', width: 1 },
|
||
data: [{ yAxis: 0, label: { show: false } }]
|
||
}
|
||
}
|
||
]
|
||
};
|
||
chart.setOption(option);
|
||
window.addEventListener('resize', function() { chart.resize(); });
|
||
</script>
|
||
</body>
|
||
</html> |