Tooltip
Documentation Index
Fetch the complete documentation index at: /llms.txt. Use this file to discover all available pages before exploring further.
Tooltips that surface the values under the pointer as you hover a chart.
Usage
Add <EChartsAreaChart.Tooltip /> as a child of the chart root. It reads the chart's data and config from context — no props are required to get a working tooltip.
import { EChartsAreaChart } from "@/components/evilcharts/charts/echarts-area-chart";
<EChartsAreaChart data={data} config={chartConfig}>
<EChartsAreaChart.Tooltip variant="frosted-glass" roundness="md" position="fixed" />
</EChartsAreaChart>;Variants
Control the tooltip surface with the variant prop on the <Tooltip /> part.
Default
variant='default'
Frosted Glass
variant='frosted-glass'