policyengine-recharts

Standardize Recharts chart creation for PolicyEngine apps with SSR-friendly rules.

2|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/PolicyEngine/policyengine-skills --skill policyengine-recharts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: policyengine-recharts
Source: https://github.com/PolicyEngine/policyengine-skills/tree/main/skills/technical-patterns/policyengine-recharts-skill
Command: npx skills add https://github.com/PolicyEngine/policyengine-skills --skill policyengine-recharts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires .

What problem does it solve?

PolicyEngine charts often struggle with inconsistent styling and bloated front-ends. This Skill standardizes chart patterns using Recharts to deliver lightweight, maintainable visuals that align with design standards.

Core Features & Use Cases

  • 85% smaller bundle size compared to alternatives and native React Native SVG support
  • SSR-friendly integration with Next.js and Vite
  • Tree-shakeable components; import only what you use to minimize load
  • Use cases include line, area, bar charts for dashboards, analytics, and policy data visualization

Quick Start

Install Recharts in your project and begin building charts using the standard components and styling conventions.

Frequently Asked Questions about policyengine-recharts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Recharts styling for React data visualization?

You can standardize Recharts styling by enforcing rules like niceTicks, domain auto, and CSS variable-based colors, ensuring consistent visuals across React applications.

How do I make Recharts SSR-friendly with Next.js and Vite?

Make Recharts SSR-friendly by using tree-shakeable components and importing only what you use, which integrates smoothly with Next.js and Vite to minimize bundle bloat during server-side rendering.

Does Recharts support React Native SVG for mobile dashboards?

Yes, Recharts provides native React Native SVG support, allowing you to build lightweight charts and data visualization dashboards for mobile environments while reducing bundle size.

What is the best way to reduce chart bundle size in a React frontend?

The best way to reduce chart bundle size is using tree-shakeable Recharts components and importing only required parts, achieving an 85% smaller bundle compared to alternatives for frontend analytics panels.

Why does my Recharts component break server-side rendering in Next.js?

Recharts components break server-side rendering when not properly tree-shaken or when relying on non-SSR-friendly styling; using CSS variable-based colors and importing only necessary components fixes SSR integration.