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

Line Chart

Line chart for comparing trends across several series.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/line-chart

Usage

import { LineChart } from "@/components/ui/preskok-ui/line-chart"

const data = [
  { month: "January", sales: 186, profit: 80 },
  { month: "February", sales: 305, profit: 200 },
]

const config = {
  sales: { label: "Sales", color: "var(--chart-1)" },
  profit: { label: "Profit", color: "var(--chart-2)" },
} as const

export function LineChartDemo() {
  return <LineChart config={config} data={data} dataKey="month" />
}

Features

  • Several series with a shared crosshair and grouped tooltip
  • Curves through lineType
  • Compact sparklines with grid="hidden", xAxis={false}, and yAxis={false}

Bar Chart

Bar chart with rounded bars, stacking, percentage mode, and an interactive legend.

Pie Chart

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

On this page

Installation
Usage
Features
Dealership performance
Sales vs Leads per month
M1M2M3M4M5M6M7M8M9M10M11M1220406080100