Docs/Cartesian Components/ReferenceDot

ReferenceDot

ReferenceDot draws a circle (dot) at a data coordinate. Use it to highlight important individual points, thresholds, or events on the chart.

import { ReferenceDot, LineChart } from "solid-recharts";

<LineChart data={data}>
  <ReferenceDot x="Jan" y={4000} r={8} fill="#ff7300" />
</LineChart>;
ReferenceLine
reference-lines.tsxOpen ↗
Loading source...

Props

PropTypeDefaultDescription
xnumber | string—X-data coordinate (required)
ynumber | string—Y-data coordinate (required)
rnumber10Radius in pixels
fillstring"#fff"Fill color
strokestring"#ccc"Border color
strokeWidthnumber1Border thickness in pixels
labelstring | boolean | ReactNodefalseText label next to the dot
ifOverflow"discard" | "hidden" | "extendDomain""discard"Behavior when the dot exits the chart area
zIndexnumber—Stacking order (higher renders on top)

Notes

  • Both x and y are required.
  • Use r to control dot size; typical range is 5–15 pixels.
  • label renders as text near the dot; useful for marking specific events.
  • ifOverflow="hidden" clips the dot at the chart boundary.

See also