0|
Tooltip
Documentation Index
Fetch the complete documentation index at: /llms.txt. Use this file to discover all available pages before exploring further.
Display interactive tooltips when hovering over chart data points
Usage
import { BeeBarChart, Bar, XAxis, Grid, Legend, Tooltip } from "@beecharts/bar-chart";
<BeeBarChart data={data} config={chartConfig} xDataKey="month" className="h-full w-full p-4">
<Grid />
<XAxis dataKey="month" />
<Legend />
<Tooltip variant="frosted-glass" roundness="lg" />
<Bar dataKey="desktop" />
<Bar dataKey="mobile" />
</BeeBarChart>Variants
Control the visual style with variant on <Tooltip /> ("default" or "frosted-glass").
Default
The default variant uses a solid background.
tooltipVariant='default'
Frosted Glass
The frosted-glass variant applies a semi-transparent background with a backdrop blur effect for a frosted-glass look.
tooltipVariant='frosted-glass'