UX Improvements

This commit is contained in:
Brennan Wilkes (Text Groove) 2026-02-09 22:22:49 -08:00
parent 95abc44d36
commit a4f68eef3f

View file

@ -176,8 +176,14 @@ const StaticMarkerLinesPlugin = {
ctx.globalAlpha = 0.95;
ctx.fillStyle = String(m?.labelColor || labelColor);
ctx.textBaseline = "middle";
const axisX = y.left; // actual y-axis pixel
ctx.textAlign = "right";
ctx.fillText(text, left - axisInset, py);
ctx.textBaseline = "middle";
ctx.fillText(text, axisX - axisInset, py);
}
}