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-composed-chart

recharts-composed-chart

evilcharts/recharts-composed-chart
FreeComponent

Composed chart component combining bar and line charts

Install it

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

Source

src/registry/charts/recharts-composed-chart.tsxevilcharts.com/r/recharts-composed-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 Bar as RechartsBar,
20 CartesianGrid,
21 ComposedChart as RechartsComposedChart,
22 Line as RechartsLine,
23 XAxis as RechartsXAxis,
24 YAxis as RechartsYAxis,
25} from "recharts";
26import {
27 type ChartConfig,
28 ChartContainer,
29 getColorsCount,
30 getLoadingData,
31 LoadingIndicator,
32} from "@/registry/ui/recharts-chart";
33import {
34 ChartTooltip,
35 ChartTooltipContent,
36 type TooltipRoundness,
37 type TooltipVariant,
38} from "@/registry/ui/recharts-tooltip";
39import { ChartLegend, ChartLegendContent, type ChartLegendVariant } from "@/registry/ui/recharts-legend";
40import { Brush, EvilBrush, useEvilBrush, type BrushProps, type EvilBrushRange } from "@/registry/ui/recharts-brush";
41import { ChartDot, type DotVariant } from "@/registry/ui/recharts-dot";
42import { motion, useReducedMotion } from "motion/react";
43
44// Constants
45const STROKE_WIDTH = 2;
46const DEFAULT_BAR_RADIUS = 4;
47const LOADING_DATA_KEY = "loading";
48const LOADING_ANIMATION_DURATION = 2000; // in milliseconds
49const REVEAL_DURATION = 1; // line intro wipe length, in seconds
50const REVEAL_EASE: [number, number, number, number] = [0, 0.7, 0.5, 1]; // intro easing
51const BAR_GROW_DURATION = 0.5; // per-bar grow-in length, in seconds
52const BAR_STAGGER = 0.05; // delay between consecutive bars, in seconds
53
54type CurveType = ComponentProps<typeof RechartsLine>["type"];
55type LineDotProp = ComponentProps<typeof RechartsLine>["dot"];
56type LineActiveDotProp = ComponentProps<typeof RechartsLine>["activeDot"];
57type StrokeVariant = "solid" | "dashed" | "animated-dashed";
58type BarVariant = "default" | "hatched" | "duotone" | "duotone-reverse" | "gradient" | "stripped";
59
60/**
61 * Direction of the custom motion.dev intro. Recharts' own animation is
62 * permanently disabled — lines wipe in along this direction, while bars grow up
63 * from their baseline staggered in this same order.
64 *
65 * NOTE: the intro is a per-frame animation, heavier than a static chart.
66 * `"none"` opts out — as does a device with the OS "reduce motion" preference.
67 */
68type ComposedAnimationType = "none" | "left-to-right" | "right-to-left" | "center-out" | "edges-in";
69type RevealAnimationType = Exclude<ComposedAnimationType, "none">;
70
71// … 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-composed-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