Communitygithub.com

데이터 시각화

Recharts/Nivo/D3를 사용한 차트 패턴, 반응형 컨테이너, 색상 척도 및 접근성을 제공합니다.

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

이 스킬은 React 기반 애플리케이션에서 데이터 시각화를 구축하기 위한 포괄적인 규칙과 모범 사례를 제공합니다. Recharts, Nivo, D3 라이브러리를 각각의 강점에 따라 선택적으로 사용하며, Recharts는 표준 React 차트, Nivo는 복잡한 대화형 차트, D3는 완전히 새로운 사용자 정의 시각화를 위해 사용합니다. 반응형 컨테이너(`<ResponsiveContainer>`)를 강제하여 다양한 화면 크기에서 일관된 레이아웃을 보장하고, 색각 이상자를 고려한 색상 팔레트를 사용하여 접근성을 높입니다. SEO 대시보드를 위해 YepAPI 엔드포인트 데이터를 차트 데이터 소스로 활용하는 방법을 명시하고 있으며, 다크 모드 테마 객체를 정의하여 동적으로 전환할 수 있도록 지원합니다. 주요 차트 유형(라인, 막대, 영역, 파이, 히트맵, 퍼널)별 사용 시나리오를 제시하고, 3D 차트나 과도한 슬라이스 개수의 파이 차트 등 피해야 할 패턴을 명확히 경고합니다.

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

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

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

문서

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

규칙

  • Recharts는 표준 React 차트용 — 구성 가능하고, 타입 안전하며, 즉시 반응형 지원
  • Nivo는 복잡한 대화형 차트(히트맵, 트리맵, 생키 다이어그램)용 — 선언적 API 및 내장 애니메이션 제공
  • D3는 사용자 정의 또는 새로운 시각화에만 사용 — React refs와 함께 사용하며, D3가 DOM을 직접 관리하지 않도록 함
  • 항상 <ResponsiveContainer width="100%" height={300}>로 감쌀 것 — 절대 픽셀 크기 하드코딩 금지
  • 색상 팔레트: 색각 이상자 안전 팔레트(예: Tableau 10, ColorBrewer) 사용 — 빨간색/초록색만으로 의존 금지
  • 축 서식: 사람이 읽기 쉬운 숫자(1.2K, $3.4M) 사용, 범주가 8개 이상이면 레이블 회전
  • 툴팁: 호버 시 정확한 값을 단위 및 로케일 인식 서식과 함께 표시
  • 범례: 차트 영역 외부에 배치하고 명확한 레이블 사용 — 계열이 하나뿐이면 범례 숨김
  • 로딩 상태: 차트 모양과 일치하는 스켈레톤 렌더링 — 일반적인 로딩 스피너 사용 금지
  • 부모 컴포넌트에서 데이터를 가져와 차트에 props로 전달 — 차트 컴포넌트 내에서 데이터 가져오기 금지
  • SEO 대시보드의 경우 YepAPI 엔드포인트 데이터(페이지 감사 점수, 키워드 트렌드, 백링크 성장)를 차트 데이터 소스로 사용
  • 다크 모드: 배경, 격자, 텍스트 및 계열 색상을 포함하는 테마 객체를 정의하고 테마 컨텍스트에 따라 전환

차트 유형 선택

  • 라인: 시간에 따른 트렌드(트래픽, 수익)
  • 막대: 범주별 비교(페이지별 점수, 키워드별 볼륨)
  • 영역: 누적 볼륨(시간에 따른 총 백링크)
  • 파이/도넛: 전체의 부분, 최대 5개 슬라이스 — 작은 값은 '기타'로 그룹화
  • 히트맵: 2차원 데이터 밀도(시간 및 요일별 트래픽)
  • 퍼널: 단계별 전환율

피해야 할 사항

  • 3D 차트 — 데이터 인식을 왜곡함
  • 5개 이상의 슬라이스가 있는 파이 차트 — 대신 가로 막대 차트 사용
  • 축 레이블이나 맥락이 없는 차트 — 항상 단위와 시간 범위 제공
  • 모든 리렌더링에 애니메이션 적용 — 초기 로드 또는 데이터 변경 시에만 애니메이션 적용

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

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

Tenant isolation (row-level vs schema), subdomain routing, per-tenant config, and data partitioning.

YepAPI/skills

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

관련 스킬