Skip to content

Commit

Permalink
Create dashboard.html
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 27, 2024
1 parent 1269b13 commit cec817b
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions data_analytics_platform/dashboard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pi Coin Real-Time Data Analytics</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/recharts.css">
</head>
<body>
<div id="root">
<h1>Pi Coin Real-Time Data Analytics</h1>
<div id="chart-container">
<LineChart width={800} height={400} data={data}>
<Line type="monotone" dataKey="price" stroke="#8884d8" />
<XAxis dataKey="date" />
<YAxis />
<CartesianGrid stroke="#ccc" />
<Tooltip />
</LineChart>
</div>
<div id="aggregated-data-container">
<h2>Aggregated Data</h2>
<table>
<thead>
<tr>
<th>Date</th>
<th>Mean Price</th>
<th>Sum Volume</th>
</tr>
</thead>
<tbody>
{aggregatedData.map((row, index) => (
<tr key={index}>
<td>{row.date}</td>
<td>{row.mean_price}</td>
<td>{row.sum_volume}</td>
</tr>
))}
</tbody>
</table>
</div>
<div id="listing-progress-container">
<h2>Listing Progress</h2>
<table>
<thead>
<tr>
<th>Listing Status</th>
<th>Count</th>
</tr>
</thead>
<tbody>
{listingProgress.map((row, index) => (
<tr key={index}>
<td>{row.listing_status}</td>
<td>{row.count}</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
<script src="frontend.js"></script>
</body>
</html>

0 comments on commit cec817b

Please sign in to comment.