Chalk UI
Getting started
Customization
Dark Mode
CLI
Components
Accordion
Address Input
Alert
App Layout
Autocomplete
Avatar
Badge
Breadcrumbs
Button
Calendar
Card
Carousel
Chart (Area)
Chart (Bar)
Chart (Donut)
Chart (Line)
Checkbox
Checkbox Group
Collapsible
Combobox
Command
Currency Input
DataGrid
Date Picker
Date Range Picker
Disclosure
Drawer
Dropdown Menu
Form
Horizontal Draggable Scroll
Hover Card
Loading Spinner
Loading Overlay
Modal
Native Select
Navigation Menu
Number Input
Page Header
Pagination
Phone Input
Popover
Progress Bar
Radio Group
Scroll Area
Select
Separator
Simple Dropzone
Skeleton
Static Tabs
Stats
Switch
Table
Tabs
Text Input
Textarea
Timeline
Toaster
Tooltip
Vertical Menu

Area Chart

Line chart with the area between x-axis and line is emphasized with color. Inspired by Tremor.

Source

Installation

npx @rahimstack@latest add charts

API Reference

AreaChart

PropTypeDefault
data *
any[] | null | undefined
categories *
string[]
index *
string
colors
ChartColor[]
valueFormatter
ChartValueFormatter
startEndOnly
boolean
false
showXAxis
boolean
true
showYAxis
boolean
true
yAxisWidth
number
56
showAnimation
boolean
true
showTooltip
boolean
true
showLegend
boolean
true
showGridLines
boolean
true
autoMinValue
boolean
false
minValue
number
maxValue
number
allowDecimals
boolean
true
emptyDisplay
React.ReactElement
`<></>`
React.ComponentPropsWithoutRef<"div">
showGradient
boolean
true
stack
boolean
false
curveType
ChartCurveType
"linear"
connectNulls
boolean
false
showDots
boolean
true
angledLabels
boolean
false
intervalType
"preserveStart" | "preserveEnd" | "preserveStartEnd" | "equidistantPreserveStart"
"preserveStartEnd"

No styles

On This Page

  • Installation
  • API Reference