Skip to main content

Variable: ChartTooltip

@arolariu/components


@arolariu/components / ChartTooltip

Variable: ChartTooltip

const ChartTooltip: (outsideProps) => Element = RechartsPrimitive.Tooltip

Defined in: components/ui/chart.tsx:234

Re-exports the Recharts tooltip primitive for use with shared chart helpers.

The Tooltip component displays a floating box with data values when hovering over or clicking on chart elements.

It can be configured to show information for individual data points or for all points at a specific axis coordinate. The appearance and content of the tooltip can be customized via props.

Parameters

outsideProps

TooltipProps<ValueType, NameType>

Returns

Element

See

Consumes

CartesianChartContext

Consumes

PolarChartContext

Consumes

TooltipEntrySettings

Remarks

  • Renders the Recharts tooltip container
  • Built on recharts

Example

<ChartTooltip content={<ChartTooltipContent />} />

See

Recharts Tooltip Docs

// was this page useful?