For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Dots

Point markers for line, area, and composed charts.

ChartGPUPixiJS
PixiJS renderer

Usage

Compose a <Dot /> inside a <Line /> or <Area /> to render resting markers. Add <ActiveDot /> for the marker shown at the hovered point. Both read their series color from chart context.

import { ChartcnLineChart } from "@/components/chart/line-chart";
 
<ChartcnLineChart.Line dataKey="desktop">
  <ChartcnLineChart.Dot variant="border" />
  <ChartcnLineChart.ActiveDot variant="default" />
</ChartcnLineChart.Line>;

Variants

Control the marker style with the variant prop on either component.

Default

variant='default'

Border

variant='border'

Colored Border

variant='colored-border'

Ping

variant='ping'

ping renders a solid core wrapped in a translucent halo.

API Reference

Both <Dot /> and <ActiveDot /> accept the same props. Resting dots reveal with their series animation and are omitted automatically when the visible data density becomes too high.

PropTypeDefaultDescription
variant"default" | "border" | "colored-border" | "ping" | "none""default"Visual style of the point marker.