Skip to content

Commit

Permalink
曲线图增加
Browse files Browse the repository at this point in the history
  • Loading branch information
handayu committed Mar 8, 2024
1 parent 170fb71 commit b6d17b0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
35 changes: 35 additions & 0 deletions asstes_manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,41 @@ <h1>Fund Dashboard</h1>
</div>
</div>

<script>
// Get the canvas element
const canvas = document.getElementById('fundChart');
const ctx = canvas.getContext('2d');

// Chart data
const data = {
labels: ['January', 'February', 'March', 'April', 'May', 'June'],
datasets: [{
label: 'Data',
data: [10, 20, 30, 25, 35, 40],
backgroundColor: 'rgba(75, 192, 192, 0.2)',
borderColor: 'rgba(75, 192, 192, 1)',
borderWidth: 1
}]
};

// Chart options
const options = {
responsive: true,
scales: {
y: {
beginAtZero: true
}
}
};

// Create the chart
const chart = new Chart(ctx, {
type: 'line',
data: data,
options: options
});
</script>

<div class="row mt-5">
<div class="col">
<h2>持仓</h2>
Expand Down
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@
资产管理
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownPortfolio">
<a class="dropdown-item" href="asstes_manager.html">产品简介</a>
<a class="dropdown-item" href="asstes_manager.html">量化CTA - 波动率组合一号</a>
</div>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownPortfolio">
<a class="dropdown-item" href="asstes_manager.html">量化CTA - 全动量组合二号</a>
</div>
</li>

Expand Down

0 comments on commit b6d17b0

Please sign in to comment.