agentsclimarketplace

D3 stock viz

Skill cxcscmu/SkillLearnBench/skills/b4-skill-creator-gemini-3.1-flash-lite-preview/stock-data-visualization/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

Install
npx -y skills add cxcscmu/SkillLearnBench --skill d3-stock-viz

Assembled 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() with forceX, forceY (center by sector), and forceCollide (radius + padding).
  • Sizing: Size bubbles by marketCap. Use d3.scaleSqrt() for mapping marketCap to radius.
  • Coloring: Map sector to a categorical color scale like d3.scaleOrdinal(d3.schemeCategory10).
  • Interaction: Add mouseover/mouseout events for tooltips. Add click events 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 click or hover.

Data Handling

  • Loading: Use d3.csv() with d3.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.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.