Axis types
AxisDomainTypeInput
The type of axis, provided by users in props.category- Treats data as distinct values. Each value is in the same distance from its neighbors, regardless of their actual numeric difference.number- Treats data as continuous range. Values that are numerically closer are placed closer together on the axis.auto- The type is inferred based on the chart layout.
AxisInterval
Defines how ticks are placed and whether/how tick collisions are handled.number- Show every nth tickpreserveStart- Keeps the left tick on collision, ensures first tick is always shownpreserveEnd- Keeps the right tick on collision, ensures last tick is always shownpreserveStartEnd- Keeps the left tick on collision, ensures first and last ticks always showequidistantPreserveStart- Selects a number N such that every nth tick will be shown without collisionequidistantPreserveEnd- Selects a number N such that every nth tick will be shown, ensuring the last tick is always visible
TickItem
Represents a single tick on an axis.value- The data value of this tickcoordinate- The pixel coordinate where this tick is renderedindex- The index of this tick in the ticks arrayoffset- How far this tick is offset from the start of a category band (always zero for non-band axes)
Scale types
ScaleType
String shortcuts for scale types.Dot and shape types
ActiveDotType
The type ofactiveDot prop on Area, Line, and Radar components.
boolean-trueorfalseturns the default active dot on or offfunction- Custom React component (should return an SVG element)object- Props appended to the default active dotReactElement- Element that will be cloned with new props
DotType
The type ofdot prop on Area, Line, and Radar components.
ActiveShape
Type for active shapes in Pie, RadialBar, and other components.Data types
DataKey
Extracts values from data objects.string- The name of the field in the data objectnumber- The index of the field in the datafunction- A function that receives the data object and returns the value
TooltipEventType
Determines how tooltip interacts with the chart.axis- All graphical items belonging to this axis tick will be highlighted, and all will be present in the tooltip. Tooltip displays when hovering on the chart background.item- Only the one graphical item being hovered will show in the tooltip. Tooltip displays when hovering over individual graphical items.