BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/EvilCharts/recharts-area-chart

recharts-area-chart

evilcharts/recharts-area-chart
FreeComponent

Area chart component

Install it

npx shadcn@latest add https://evilcharts.com/r/recharts-area-chart.json

Source

src/registry/charts/recharts-area-chart.tsxevilcharts.com/r/recharts-area-chart.json · first 6 KB
1"use client";
2
3import {
4 Children,
5 createContext,
6 isValidElement,
7 use,
8 useCallback,
9 useId,
10 useMemo,
11 useRef,
12 useState,
13 type ComponentProps,
14 type FC,
15 type ReactElement,
16 type ReactNode,
17} from "react";
18import {
19 axisValueToPercentFormatter,
20 type ChartConfig,
21 ChartContainer,
22 getColorsCount,
23 getLoadingData,
24 LoadingIndicator,
25} from "@/registry/ui/recharts-chart";
26import {
27 Area as RechartsArea,
28 AreaChart as RechartsAreaChart,
29 CartesianGrid,
30 XAxis as RechartsXAxis,
31 YAxis as RechartsYAxis,
32} from "recharts";
33import {
34 ChartTooltip,
35 ChartTooltipContent,
36 type TooltipRoundness,
37 type TooltipVariant,
38} from "@/registry/ui/recharts-tooltip";
39import {
40 Brush,
41 EvilBrush,
42 useEvilBrush,
43 type BrushProps,
44 type EvilBrushRange,
45} from "@/registry/ui/recharts-brush";
46import {
47 ChartLegend,
48 ChartLegendContent,
49 type ChartLegendVariant,
50} from "@/registry/ui/recharts-legend";
51import { ChartDot, type DotVariant } from "@/registry/ui/recharts-dot";
52import { motion, useReducedMotion } from "motion/react";
53
54// Constants
55const STROKE_WIDTH = 0.8; // default series stroke — <Area strokeWidth> overrides it
56const LOADING_AREA_DATA_KEY = "loading";
57const LOADING_ANIMATION_DURATION = 2000; // in milliseconds
58const STACK_ID = "evil-stacked";
59const REVEAL_DURATION = 1; // intro wipe length, in seconds
60const REVEAL_EASE: [number, number, number, number] = [0, 0.7, 0.5, 1]; // intro wipe easing
61
62type CurveType = ComponentProps<typeof RechartsArea>["type"];
63type AreaDotProp = ComponentProps<typeof RechartsArea>["dot"];
64type AreaActiveDotProp = ComponentProps<typeof RechartsArea>["activeDot"];
65type AreaVariant = "gradient" | "gradient-reverse" | "solid" | "dotted" | "lines" | "hatched";
66type StrokeVariant = "solid" | "dashed" | "animated-dashed";
67type StackType = "default" | "expanded" | "stacked";
68
69/**
70 * Direction of the custom motion.dev intro reveal. Recharts' own area animation
71 * is permanently disabled (it drew the line after the dots had already popped
72 * in) — these reveals replace it.
73 *
74 * NOTE: a reveal is a per-frame animated SVG mask, so it is heavier than a
75 * static chart. `"none"` opts out entirely; it is also what a device with the
76 * OS "reduce motion" preference falls back to automatically.
77 */
78type AreaAnimationType = "none" | "left-to-right" | "right-to-left" | "center-out" | "edges-in";
79type RevealAnimationType = Exclude<AreaAnimationType, "none">;
80
81// … truncated

What it pulls in

npm packages

  • recharts
  • motion

Other registry items

  • @evilcharts/recharts-chart
  • @evilcharts/recharts-tooltip
  • @evilcharts/recharts-legend
  • @evilcharts/recharts-dot
  • @evilcharts/recharts-brush
  • @evilcharts/recharts-background

Files it writes

  • src/registry/charts/recharts-area-chart.tsx

Facts

Registry
EvilCharts
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

evilcharts.com legions-developer/evilcharts on GitHub Raw registry item This item as JSON

More from EvilCharts

All 271 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
echarts-area-chartecharts-area-chartEvilChartsComponentsFree2 deps
echarts-bar-chartecharts-bar-chartEvilChartsComponentsFree2 deps
echarts-brushecharts-brushEvilChartsComponentsFree1 dep
echarts-chartecharts-chartEvilChartsComponentsFree1 dep
echarts-composed-chartecharts-composed-chartEvilChartsComponentsFree2 deps
echarts-dotecharts-dotEvilChartsComponentsFree1 dep
echarts-legendecharts-legendEvilChartsComponentsFreeno deps
echarts-line-chartecharts-line-chartEvilChartsComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex