D3 stock viz
Use this skill for D3.js (v6) force-directed bubble charts and linked data tables. Always use this when tasked with financial data visualization using D3.js.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill d3-stock-vizAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.1 KB, 249 tokens by cl100k_base, as published. Nobody here has run it
D3.js Financial Visualization Skill
Force-Directed Bubble Chart Guidelines
- Simulation: Use
d3.forceSimulation()withforceX,forceY(center by sector), andforceCollide(radius + padding). - Sizing: Size bubbles by
marketCap. Used3.scaleSqrt()for mappingmarketCaptoradius. - Coloring: Map
sectorto a categorical color scale liked3.scaleOrdinal(d3.schemeCategory10). - Interaction: Add
mouseover/mouseoutevents for tooltips. Addclickevents to sync with the data table.
Linked Data Table Guidelines
- Columns: "Ticker symbol", "Full company name", "Sector", "Market cap" (formatted as "1.64T").
- Linking: Use a common data join or ID mapping to link table rows with bubble chart circles. Highlight both on
clickorhover.
Data Handling
- Loading: Use
d3.csv()withd3.autoType. - Filtering/Cleaning: Filter out ETF entries (missing
marketCap). Ensure numbers are properly parsed.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.