Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
forcedotcom avatar

Building Webapp Data Visualization

  • 4 installs
  • 787 repo stars
  • Updated August 5, 2026
  • forcedotcom/afv-library

Adds charts, stat cards, and KPI metrics to React pages using Recharts, choosing the right visualization type for the data.

About

Adds data visualization components (donut, pie, bar, line, area charts, and KPI stat cards) to React pages using Recharts. A developer uses it when building dashboards or analytics views in a Salesforce React web app.

  • Guides selecting the right chart type for the data
  • Builds Recharts charts and KPI stat cards for dashboards

Building Webapp Data Visualization by the numbers

  • 4 all-time installs (skills.sh)
  • Ranked #1,817 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/forcedotcom/afv-library --skill building-webapp-data-visualization

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs4
repo stars787
Last updatedAugust 5, 2026
Repositoryforcedotcom/afv-library

What it does

Adds charts, stat cards, and KPI metrics to React pages using Recharts, choosing the right visualization type for the data.

Files

SKILL.mdMarkdownGitHub ↗

Data Visualization

When to Use

Use this skill when:

  • Adding charts (donut, pie, bar, line, area) to a dashboard or analytics page
  • Displaying KPI/metric stat cards with trend indicators
  • Building a dashboard layout with mixed chart types and summary cards

---

Step 1 — Determine the visualization type

Identify what the user needs:

  • Donut / pie chart — categorical breakdown (e.g. issue types, status distribution)
  • Bar chart — comparison across categories or time periods
  • Line / area chart — trends over time
  • Stat card — single KPI metric with optional trend indicator
  • Combined dashboard — stat cards + one or more charts

If unclear, ask:

"What data should the chart display, and would a donut chart, bar chart, line chart, or stat cards work best?"

---

Step 2 — Install dependencies

All chart types in this skill use recharts. Install once from the web app directory:

npm install recharts

Recharts is built on D3 and provides declarative React components. No additional CSS is needed.

---

Step 3 — Choose implementation path

Read the corresponding guide:

  • Bar chart — read implementation/bar-line-chart.md (categorical data)
  • Line / area chart — read implementation/bar-line-chart.md (time-series data)
  • Donut / pie chart — read implementation/donut-chart.md
  • Stat card with trend — read implementation/stat-card.md
  • Dashboard layout — read implementation/dashboard-layout.md

---

Verification

Before completing:

1. Chart renders with correct data and colors. 2. Chart is responsive (resizes with container). 3. Legend labels match the data categories. 4. Stat card trends display correct positive/negative indicators. 5. Run from the web app directory:

cd force-app/main/default/webapplications/<appName> && npm run lint && npm run build
  • Lint: MUST result in 0 errors.
  • Build: MUST succeed.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.