Renders a symbol from a set of predefined shapes based on D3 symbol types. The Symbols component provides various geometric shapes that can be used as markers in charts. Shapes include circles, squares, diamonds, triangles, stars, and more.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
Shape
The type of symbol to render. Options:
'circle'- Circle'cross'- Cross/plus sign'diamond'- Diamond'square'- Square'star'- Five-pointed star'triangle'- Triangle'wye'- Y-shape
Positioning
The x-coordinate of the symbol center in pixels.
The y-coordinate of the symbol center in pixels.
Size
The size of the symbol. The meaning depends on the
sizeType prop.How to interpret the
size prop:'area'- Size represents the area in square pixels'diameter'- Size represents the diameter/width in pixels
Appearance
CSS class name to apply to the symbol element.
SVG properties
This component accepts all standard SVG path element properties including:fill- Fill colorstroke- Stroke colorstrokeWidth- Stroke widthopacity- Opacity valuestyle- Inline styles