Renders a set of symbols representing individual data points in a Scatter chart.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.
Usage
Props
The source data which each element is an object.
The key or getter function of a group of data.
The fill color of symbols.
The stroke color of symbols.
The width of the stroke.
Determines the shape of individual data points.
- Can be one of the predefined shapes as a string: ‘circle’, ‘cross’, ‘diamond’, ‘square’, ‘star’, ‘triangle’, ‘wye’
- If set a ReactElement, the shape of point can be customized
- If set a function, the function will be called to render customized shape
This component is rendered when this graphical item is activated
(could be by mouse hover, touch, keyboard, programmatically).
Renders line connecting individual points.
Options:
false: no line is drawntrue: a default line is drawnReactElement: the option is the custom line elementfunction: the function will be called to render customized lineobject: the option is the props of Curve element
lineType prop which controls how is this line calculated.Determines calculation method of the line if the
line prop is set.
Options:'joint': line will be generated by connecting all the points'fitting': line will be generated by fitting algorithm (linear regression)
line prop is not set or is false.Determines the shape of joint line.
Same as
type prop on Curve, Line and Area components.Has no effect if line prop is not set or is false or if lineType is ‘fitting’.Renders one label for each data point. Options:
true: renders default labelsfalse: no labels are renderedobject: the props of LabelList componentReactElement: a custom label elementfunction: a render function of custom label
Hides the whole graphical element when true.Hiding an element is different from removing it from the chart:
Hidden graphical elements are still visible in Legend,
and can be included in axis domain calculations,
depending on
includeHidden props of your XAxis/YAxis.The name of data.
This option will be used in tooltip and legend to represent this graphical item.
If no value was set to this option, the value of dataKey will be used alternatively.
The id of XAxis which is corresponding to the data. Required when there are multiple XAxes.
The id of YAxis which is corresponding to the data. Required when there are multiple YAxes.
The id of ZAxis which is corresponding to the data. Required when there are multiple ZAxes.ZAxis does not render directly, has no ticks and no tick line.
It is used to control the size of each scatter point.
The type of icon in legend.
If set to ‘none’, no legend item will be rendered.
The type of tooltip item.
Animation props
If set false, animation of Scatter points will be disabled.
If set “auto”, the animation will be disabled in SSR and will respect the user’s prefers-reduced-motion system preference for accessibility.
Specifies when the animation should begin, the unit of this option is ms.
Specifies the duration of animation, the unit of this option is ms.
The type of easing function.
Layout props
Unique identifier of this component.
Used as an HTML attribute
id, and also to identify this element internally.If undefined, Recharts will generate a unique ID automatically.Z-Index of this component and its children. The higher the value,
the more on top it will be rendered.
Components with higher zIndex will appear in front of components with lower zIndex.
If undefined or 0, the content is rendered in the default layer without portals.@since 3.4
CSS class name for styling.
Source
https://github.com/recharts/recharts/blob/main/src/cartesian/Scatter.tsx