Renders a cross shape (plus sign) formed by intersecting horizontal and vertical lines. The Cross component is useful for marking specific points or creating crosshair indicators in charts.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/recharts/recharts/llms.txt
Use this file to discover all available pages before exploring further.
Props
Positioning
The x-coordinate of the vertical line of the cross in pixels.
The y-coordinate of the horizontal line of the cross in pixels.
Width of the cross (horizontal line length) in pixels.
Height of the cross (vertical line length) in pixels.
The y-coordinate of the top left point in the boundary box of the cross.
The x-coordinate of the top left point in the boundary box of the cross.
Appearance
CSS class name to apply to the cross element.
SVG properties
This component accepts all standard SVG path element properties including:stroke- Line colorstrokeWidth- Line widthopacity- Opacity valuestyle- Inline styles