import { defineChart, lineY } from "@tanstack/charts"
import { scaleLinear } from "@tanstack/charts/scales/linear"
import { scalePoint } from "@tanstack/charts/scales/point"
import { tooltip } from "@tanstack/charts/tooltip"
import { Chart, seriesTooltip } from "@/components/ui/tanstack-chart"
{ month: "January", revenue: 34 },
{ month: "February", revenue: 52 },
{ month: "March", revenue: 44 },
const definition = defineChart(
marks: [lineY(revenue, { x: "month", y: "revenue" })],
x: { scale: scalePoint },
y: { scale: scaleLinear, grid: true },
{ focus: "group-x", tooltip: { use: tooltip, content: seriesTooltip } },
export function RevenueChart() {
ariaLabel="Revenue by month, in thousands of dollars"