BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/EvilCharts/echarts-area-chart

echarts-area-chart

evilcharts/echarts-area-chart
FreeComponent

Area chart component rendered with Apache ECharts

Install it

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

Source

src/registry/charts/echarts-area-chart.tsxevilcharts.com/r/echarts-area-chart.json · first 6 KB
1"use client";
2
3import {
4 tooltipBaseOption,
5 tooltipIndicatorHtml,
6 tooltipRow,
7 tooltipShell,
8 type TooltipPosition,
9 type TooltipRoundness,
10 type TooltipVariant,
11} from "@/registry/ui/echarts-tooltip";
12import {
13 Brush,
14 buildBrushDataZoom,
15 syncBrushOverlay,
16 type BrushGeometry,
17 type BrushOverlayElements,
18 type BrushProps,
19 type BrushRange,
20} from "@/registry/ui/echarts-brush";
21import {
22 DataZoomComponent,
23 GridComponent,
24 TooltipComponent,
25 type DataZoomComponentOption,
26 type GridComponentOption,
27 type TooltipComponentOption,
28} from "echarts/components";
29import {
30 buildChartCss,
31 flattenColor,
32 getColorsCount,
33 resolveColors,
34 seriesPaint,
35 withAlpha,
36 type ChartConfig,
37 type ResolvedColors,
38} from "@/registry/ui/echarts-chart";
39import {
40 Children,
41 isValidElement,
42 useCallback,
43 useEffect,
44 useId,
45 useMemo,
46 useRef,
47 useState,
48 type CSSProperties,
49 type FC,
50 type ReactNode,
51} from "react";
52import { dotItemStyle, dotStyle, sampleGradient, type DotVariant } from "@/registry/ui/echarts-dot";
53import { LegendOverlay, type LegendVariant } from "@/registry/ui/echarts-legend";
54import type { ComposeOption, ImagePatternObject } from "echarts/core";
55import { LineChart, type LineSeriesOption } from "echarts/charts";
56import { motion, useReducedMotion } from "motion/react";
57import { CanvasRenderer } from "echarts/renderers";
58import * as echarts from "echarts/core";
59
60// Re-export the shared types that were previously declared inline here, so
61// existing consumers/examples keep importing them from the chart module.
62export type {
63 ChartConfig,
64 DotVariant,
65 LegendVariant,
66 TooltipPosition,
67 TooltipRoundness,
68 TooltipVariant,
69};
70
71// Modular registration keeps the bundle lean — only the pieces this chart needs.
72// `DataZoomComponent` bundles both the slider (brush footer) and inside (wheel/drag)
73// zoom. The brush's frame/handles/labels are raw zrender elements, not the
74// graphic component — see syncBrushOverlay.
75echarts.use([LineChart, GridComponent, TooltipComponent, DataZoomComponent, CanvasRenderer]);
76
77type EChartsInstance = ReturnType<typeof echarts.init>;
78
79// The exact option surface this chart uses — line series, grid, tooltip, and
80// dataZoom, plus the axis options they pull in as dependencies. Narrower than
81// echarts' full EChartsOption, so a misspelled key fails the compile instead of
82// silently reaching setOption.
83type EChartsOption = ComposeOption<
84// … truncated

What it pulls in

npm packages

  • echarts
  • motion

Other registry items

  • @evilcharts/echarts-chart
  • @evilcharts/echarts-tooltip
  • @evilcharts/echarts-legend
  • @evilcharts/echarts-dot
  • @evilcharts/echarts-brush

Files it writes

  • src/registry/charts/echarts-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-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
echarts-pie-chartecharts-pie-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

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.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 KitGrade

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 KitGrade

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 KitGrade

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