Communitygithub.com

차트 및 데이터 시각화

Recharts/Chart.js 데이터 시각화 — 막대, 선, 영역, 원형 차트.

차트 및 데이터 시각화란 무엇인가요?

이 기술은 Recharts나 Chart.js를 활용한 데이터 시각화 작업을 위한 전문 가이드입니다. 개발자는 선 그래프(추세), 막대 그래프(비교), 영역 그래프(볼륨), 원형 그래프(전체 대비 비율, 최대 5개 항목) 등 데이터 유형에 맞는 차트 유형을 선택할 수 있습니다. 접근성을 위해 색맹 안전 팔레트를 사용하고, 모든 차트는 반응형 컨테이너로 감싸 고정 픽셀 너비를 피합니다. 축 레이블, 범례, 툴팁을 항상 표시하여 맥락을 제공하고, 로딩 상태에서는 스켈레톤 차트를 보여줍니다. 데이터 변경 시 올바른 재렌더링을 위해 동적 데이터에는 `key` prop을 사용하며, 데이터는 부모 컴포넌트에서 가져와 props로 전달해야 합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/charts

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

차트 및 데이터 시각화은(는) 무엇을 하나요?

규칙

  • React 프로젝트에는 Recharts 사용 — 구성 가능, 반응형, 타입 지원
  • 차트는 <ResponsiveContainer width="100%" height={300}>로 감싸기 — 고정 픽셀 너비 사용 금지
  • 접근 가능한 색상: 색맹 안전 팔레트 사용 (빨강/초록 구분에 의존하지 않음)
  • 축 레이블: 항상 두 축에 레이블을 표시하고, 읽기 쉬운 숫자 형식 사용 (1200이 아닌 1.2K)
  • 툴팁: 호버 시 정확한 값을 표시 — 단위 및 로케일 인식 숫자 형식 적용
  • 로딩 상태: 데이터 로딩 중 스켈레톤 차트 표시
  • 데이터 유형에 따른 차트 선택: 선 (시간 경과에 따른 추세), 막대 (비교), 영역 (볼륨), 원형 (전체 대비 비율 — 최대 5개 항목)
  • 동적 데이터에 key prop 사용 — 데이터가 변경될 때 Recharts가 올바르게 재렌더링됨

금지 사항

  • 3D 차트 — 인식을 왜곡하므로 항상 평면/2D 사용
  • 5-6개 이상의 항목을 가진 원형 차트 — 대신 가로 막대 차트 사용
  • 축 레이블이나 범례가 없는 차트 — 항상 맥락 제공
  • 차트 컴포넌트 내부에서 데이터 가져오기 — 부모에서 데이터를 가져와 props로 전달

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

관련 스킬