Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
ChartArea ChartBar ChartLine ChartPie ChartRadial ChartRadar ChartBar ListTrackerRecharts ChartsDeprecated
Async ImageAvatarCarouselPreskok Icon
Charts

Radial Chart

Concentric radial bars built on TanStack Charts with tracks, labels, legends, and tooltips.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/radial-chart

Usage

import { RadialChart } from "@/components/ui/preskok-ui/radial-chart"

const data = [
  { name: "Onboarding", value: 86 },
  { name: "Activation", value: 74 },
  { name: "Retention", value: 92 },
]

export function RadialChartDemo() {
  return (
    <RadialChart
      data={data}
      dataKey="value"
      nameKey="name"
      maxValue={100}
      centerLabel="Average"
      valueFormatter={(value) => `${Math.round(value)}%`}
      config={{
        Onboarding: { label: "Onboarding", color: "var(--chart-1)" },
        Activation: { label: "Activation", color: "var(--chart-2)" },
        Retention: { label: "Retention", color: "var(--chart-3)" },
      }}
    />
  )
}

Features

  • Concentric radial bars with optional background tracks
  • Explicit maximum for comparable progress and attainment values
  • Config-driven colors, labels, and interactive legend selection
  • Responsive center label with selected-ring values
  • Native TanStack tooltips with collision-aware placement
  • Full or partial circles through startAngle and endAngle

Use radial length for a compact status summary. Prefer an aligned bar chart when precise comparison is the primary task.

Pie Chart

Pie and donut chart with a center label that follows the selected slice.

Radar Chart

Single and comparative radar profiles built on TanStack Charts with polygon grids, labels, legends, points, and grouped tooltips.

On this page

Installation
Usage
Features
Customer journey health
Quarterly target attainment
84%Average
Retention is 7% above target
Select a ring or legend item to inspect a stage