"use client"; import { ChartHoverCard } from "@/components/charts/chart-hover-card"; import { ChartYAxis } from "@/components/charts/chart-y-axis"; import { barPath } from "@/lib/chart-path"; import { viewBoxPoint } from "@/lib/chart-readout"; import { CHART_HEIGHT, CHART_PADDING, CHART_PLOT_HEIGHT, CHART_WIDTH, axisTicks, countDomain, labelCapacity, plotLeft, } from "@/lib/chart-scale"; import type { ChartScope } from "@/lib/chart-period"; import type { ActivityBar } from "@/lib/dive-activity"; import { cn } from "@/lib/utils"; import { useChartReadout } from "@/hooks/useChartReadout"; import { useChartWidth } from "@/hooks/useChartWidth"; // Hand-rolled SVG, for the reasons `gas-use-chart.tsx` sets out at length: the // app ships a strict nonce-based CSP that a `