Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
"use client";
import { useChartPart } from "./chart-context";
export function YAxis({
tickFormatter,
tickCount = 4,
tickMargin = 8,
}: {
tickFormatter?: (value: number) => string;
tickCount?: number;
tickMargin?: number;
}) {
const ctx = useChartPart("YAxis");
if (!ctx.ready) return null;
return (
<g className="fill-current font-mono text-10px text-muted-foreground">
{ctx.y.ticks(tickCount).map((t) => (
<text
key={t}
x={-tickMargin}
y={ctx.y(t)}
textAnchor="end"
dominantBaseline="central"
fill="currentColor"
>
{tickFormatter ? tickFormatter(t) : t}
</text>
))}
</g>
);
}