The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Don't draw horizontal grid line at bottom of chart area
Tim Wilson7a22282168cf
diff --git a/apps/web/ui/charts/y-axis.tsx b/apps/web/ui/charts/y-axis.tsxindex 0beac262a7..76987c491d 100644--- a/apps/web/ui/charts/y-axis.tsx+++ b/apps/web/ui/charts/y-axis.tsx@@ -97,18 +97,23 @@ export default function YAxis({{showGridLines && (<Group left={margin.left} top={margin.top}>{tickValues.length > 0 &&- tickValues.map((value) => (- <Line- key={value.toString()}- y1={yScale(value)}- y2={yScale(value)}- x1={0}- x2={width}- stroke="#00000026"- strokeWidth={1}- strokeDasharray={5}- />- ))}+ tickValues.map((value) => {+ const y = yScale(value);+ if (y === height) return undefined; // Don't draw grid line at bottom of chart area++ return (+ <Line+ key={value.toString()}+ y1={y}+ y2={y}+ x1={0}+ x2={width}+ stroke="#00000026"+ strokeWidth={1}+ strokeDasharray={5}+ />+ );+ })}</Group>)}</>