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

echarts-radar-chart

evilcharts/echarts-radar-chart
FreeComponent

Radar chart component rendered with Apache ECharts

Install it

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

Source

src/registry/charts/echarts-radar-chart.tsxevilcharts.com/r/echarts-radar-chart.json · first 6 KB
1"use client";
2
3import {
4 resolveTooltipPosition,
5 roundnessClass,
6 tooltipIndicatorHtml,
7 tooltipRow,
8 tooltipVariantClass,
9 type TooltipPosition,
10 type TooltipRoundness,
11 type TooltipVariant,
12} from "@/registry/ui/echarts-tooltip";
13import {
14 Children,
15 isValidElement,
16 useCallback,
17 useEffect,
18 useId,
19 useMemo,
20 useRef,
21 useState,
22 type CSSProperties,
23 type FC,
24 type ReactNode,
25} from "react";
26import {
27 buildChartCss,
28 getColorsCount,
29 resolveColors,
30 withAlpha,
31 type ChartConfig,
32 type ResolvedColors,
33} from "@/registry/ui/echarts-chart";
34import {
35 RadarComponent,
36 TooltipComponent,
37 type RadarComponentOption,
38 type TooltipComponentOption,
39} from "echarts/components";
40import { dotStyle, sampleGradient, type DotVariant } from "@/registry/ui/echarts-dot";
41import { LegendOverlay, type LegendVariant } from "@/registry/ui/echarts-legend";
42import { RadarChart, type RadarSeriesOption } from "echarts/charts";
43import { motion, useReducedMotion } from "motion/react";
44import { CanvasRenderer } from "echarts/renderers";
45import type { ComposeOption } from "echarts/core";
46import * as echarts from "echarts/core";
47
48// Re-export the shared types that were previously declared inline here, so
49// existing consumers/examples keep importing them from the chart module.
50export type {
51 ChartConfig,
52 DotVariant,
53 LegendVariant,
54 TooltipPosition,
55 TooltipRoundness,
56 TooltipVariant,
57};
58
59// Modular registration keeps the bundle lean — only the pieces this chart needs.
60// `RadarComponent` is the polar coordinate system (indicators, rings, spokes);
61// `RadarChart` is the series that draws polygons inside it. No GraphicComponent —
62// this chart has no zrender overlays (the recharts twin has no brush).
63echarts.use([RadarChart, RadarComponent, TooltipComponent, CanvasRenderer]);
64
65type EChartsInstance = ReturnType<typeof echarts.init>;
66
67// The exact option surface this chart uses — radar series, the radar coordinate
68// component, and the tooltip. Narrower than echarts' full EChartsOption, so a
69// misspelled key fails the compile instead of silently reaching setOption. Radar
70// has no cartesian axes, so unlike the area chart there are no derived x/y types.
71type EChartsOption = ComposeOption<
72 RadarSeriesOption | RadarComponentOption | TooltipComponentOption
73>;
74
75// Single-item view of the radar component's array-or-single field, used where a
76// single radar coordinate system is built.
77type ArrayItem<T> = T extends readonly (infer U)[] ? U : T;
78// … truncated

What it pulls in

npm packages

  • echarts
  • motion

Other registry items

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

Files it writes

  • src/registry/charts/echarts-radar-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
yesterday

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