GenerateStockVisualizerWebAssets
Creates the HTML and CSS files for the stock visualization app. The HTML provides the structure for the side-by-side layout (bubble chart and table), while the CSS handles styling, scrolling, and highlighting logic.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- GenerateStockVisualizerWebAssets
- description
- Creates the HTML and CSS files for the stock visualization app. The HTML provides the structure for the side-by-side layout (bubble chart and table), while the CSS handles styling, scrolling, and highlighting logic.
03 SKILL.md 正文
# Write HTML to /root/output/index.html
cat << 'EOF' > /root/output/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Stock Market Visualization</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="app-container">
<div id="viz-container">
<div id="bubble-chart"></div>
<div id="legend-container"></div>
</div>
<div id="table-container">
<table id="stock-table">
<thead>
<tr>
<th>Ticker</th>
<th>Name</th>
<th>Sector</th>
<th>Market Cap</th>
</tr>
</thead>
<tbody id="table-body"></tbody>
</table>
</div>
</div>
<div id="tooltip" class="hidden">
<p><strong id="tooltip-ticker"></strong></p>
<p id="tooltip-name"></p>
<p id="tooltip-sector"></p>
</div>
<script src="js/d3.v6.min.js"></script>
<script src="js/visualization.js"></script>
</body>
</html>
EOF
# Write CSS to /root/output/css/style.css
cat << 'EOF' > /root/output/css/style.css
body { font-family: sans-serif; margin: 0; padding: 20px; }
#app-container { display: flex; gap: 20px; height: 90vh; }
#viz-container { flex: 2; display: flex; flex-direction: column; border: 1px solid #ddd; }
#bubble-chart { flex-grow: 1; }
#legend-container { padding: 10px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; }
#table-container { flex: 1; overflow-y: auto; border: 1px solid #ddd; }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; background: #f4f4f4; padding: 8px; text-align: left; border-bottom: 2px solid #ccc; }
td { padding: 8px; border-bottom: 1px solid #eee; font-size: 13px; }
.highlight { background-color: #ffff99 !important; transition: background-color 0.3s; }
.bubble { cursor: pointer; stroke: #fff; stroke-width: 1.5px; }
.bubble:hover { stroke: #333; }
.label { pointer-events: none; text-anchor: middle; font-size: 10px; fill: #333; font-weight: bold; }
#tooltip {
position: absolute;
padding: 10px;
background: white;
border: 1px solid #ccc;
border-radius: 4px;
pointer-events: none;
box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
font-size: 12px;
}
.hidden { display: none; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-box { width: 12px; height: 12px; }
EOF
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.