CHANGES:
- Initialize `u.scaleY`, `u.em`, `u.emI` in `mesh.userData` so the lerp targets start at real numbers, eliminating NaN transforms on the first frame.
- Fix `makeLabel`: draw with the single DPR-scaled context and use a height-based scale (`(h/w)*aspect, aspect`) so sprites keep a correct aspect ratio instead of stretching.
- Move the Y-axis to `AXIS_X = -7.0` (just left of the first bar at −6.6) so it frames the chart.
- Lower the initial camera to `(13, 9, 20)` with target `(0, 3.2, 0)` for a three-quarter view that keeps the month labels visible above the grid.
- Tighten shadow quality: `normalBias = 0.015` and `bias = -0.0003` to avoid soft/dirty artifacts.
- Clear `pointerActive` on `pointerleave` and skip raycasting when no pointer has moved yet.

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Monthly Active Users · 2026</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<style>
  :root{
    --ink:#161a23;
    --ink-2:#4a5262;
    --ink-3:#8b93a3;
    --line:#e3e6ec;
    --line-2:#eef1f6;
    --panel:rgba(255,255,255,.74);
    --blue:#2563eb;
    --amber:#f59e0b;
    --sans:'Space Grotesk',system-ui,-apple-system,sans-serif;
    --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  html,body{height:100%;}
  body{
    font-family:var(--sans);
    color:var(--ink);
    background:
      radial-gradient(1200px 760px at 78% -12%, #ffffff 0%, rgba(255,255,255,0) 55%),
      radial-gradient(1000px 720px at 8% 112%, #eef1f8 0%, rgba(238,241,248,0) 52%),
      linear-gradient(180deg,#f6f7fb 0%, #eceff5 100%);
    overflow:hidden;
    -webkit-font-smoothing:antialiased;
  }
  #scene{position:fixed;inset:0;z-index:0;}
  #scene canvas{display:block;}

  .ui{position:fixed;z-index:10;pointer-events:none;}

  /* Header */
  .topbar{top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;
    padding:22px clamp(18px,3vw,40px);gap:24px;}
  .brand{pointer-events:auto;}
  .eyebrow{display:inline-flex;align-items:center;gap:9px;font-family:var(--mono);
    font-size:11px;letter-spacing:.26em;text-transform:uppercase;color:var(--ink-2);}
  .pulse{width:8px;height:8px;border-radius:50%;background:var(--amber);
    box-shadow:0 0 0 0 rgba(245,158,11,.55);animation:pulse 2.2s infinite;}
  @keyframes pulse{0%{box-shadow:0 0 0 0 rgba(245,158,11,.5);}70%{box-shadow:0 0 0 9px rgba(245,158,11,0);}100%{box-shadow:0 0 0 0 rgba(245,158,11,0);}}
  .title{font-weight:700;font-size:clamp(30px,5.2vw,62px);line-height:.92;letter-spacing:-.035em;
    margin-top:12px;color:var(--ink);}
  .title .yr{color:var(--blue);}
  .sub{margin-top:12px;max-width:44ch;font-size:14px;line-height:1.5;color:var(--ink-2);}
  .sub b{color:var(--ink);font-weight:600;}

  .meta{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
  .chip{pointer-events:auto;display:flex;flex-direction:column;gap:3px;
    background:var(--panel);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
    border:1px solid var(--line);border-radius:14px;padding:12px 16px;min-width:104px;
    box-shadow:0 10px 30px -18px rgba(20,26,40,.35);
    transition:transform .3s ease,box-shadow .3s ease;}
  .chip:hover{transform:translateY(-3px);box-shadow:0 16px 34px -18px rgba(20,26,40,.4);}
  .chip .k{font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);}
  .chip .v{font-size:22px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums;}
  .chip .v small{font-size:12px;color:var(--ink-3);font-weight:500;}

  /* Legend */
  .legend{left:clamp(18px,3vw,40px);bottom:26px;pointer-events:auto;
    background:var(--panel);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
    border:1px solid var(--line);border-radius:16px;padding:15px 17px;
    box-shadow:0 14px 34px -22px rgba(20,26,40,.4);max-width:290px;}
  .legend h4{font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;
    color:var(--ink-3);margin-bottom:11px;font-weight:500;}
  .grad{height:10px;border-radius:6px;background:linear-gradient(90deg,#2563eb,#f59e0b);}
  .grad-labels{display:flex;justify-content:space-between;margin-top:7px;
    font-family:var(--mono);font-size:10px;color:var(--ink-2);letter-spacing:.04em;}
  .hint{margin-top:12px;padding-top:11px;border-top:1px solid var(--line-2);
    font-size:11px;color:var(--ink-3);line-height:1.5;}
  .hint b{color:var(--ink-2);font-weight:600;}

  /* Tooltip */
  #tooltip{position:fixed;z-index:20;top:0;left:0;pointer-events:none;
    background:rgba(22,26,35,.94);color:#fff;border:1px solid rgba(255,255,255,.12);
    border-radius:11px;padding:10px 13px;min-width:118px;
    box-shadow:0 18px 40px -14px rgba(0,0,0,.5);
    opacity:0;transform:translateY(6px) scale(.96);transition:opacity .16s ease,transform .16s ease;
    backdrop-filter:blur(4px);}
  #tooltip.show{opacity:1;transform:translateY(0) scale(1);}
  #tooltip .t-month{font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#aeb6c6;}
  #tooltip .t-val{font-size:23px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums;margin-top:2px;}
  #tooltip .t-val small{font-size:12px;color:#c8cedb;font-weight:500;}
  #tooltip .t-bar{margin-top:8px;height:4px;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden;}
  #tooltip .t-bar i{display:block;height:100%;border-radius:3px;transition:width .2s ease;}

  /* Loader */
  #loader{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(180deg,#f6f7fb,#eceff5);transition:opacity .6s ease;}
  #loader.hide{opacity:0;pointer-events:none;}
  #loader .l-in{display:flex;flex-direction:column;align-items:center;gap:16px;}
  #loader .l-bar{width:190px;height:4px;border-radius:3px;background:var(--line);overflow:hidden;}
  #loader .l-bar i{display:block;height:100%;width:40%;border-radius:3px;
    background:linear-gradient(90deg,var(--blue),var(--amber));animation:load 1.1s ease-in-out infinite;}
  @keyframes load{0%{transform:translateX(-120%);}100%{transform:translateX(320%);}}
  #loader .l-txt{font-family:var(--mono);font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--ink-3);}

  @media (max-width:720px){
    .sub{display:none;}
    .meta .chip:nth-child(n+3){display:none;}
    .legend{max-width:220px;}
  }
</style>
</head>
<body>
  <div id="scene"></div>

  <header class="ui topbar">
    <div class="brand">
      <span class="eyebrow"><span class="pulse"></span>Analytics · Live model</span>
      <h1 class="title">Active Users <span class="yr">2026</span></h1>
      <p class="sub">Monthly active users across the calendar year, in thousands. <b>December</b> closes the year at a record <b>91k</b> — up <b>117%</b> from January.</p>
    </div>
    <div class="meta">
      <div class="chip"><span class="k">Peak</span><span class="v">91<small>k</small></span></div>
      <div class="chip"><span class="k">Low</span><span class="v">38<small>k</small></span></div>
      <div class="chip"><span class="k">Avg</span><span class="v">61.8<small>k</small></span></div>
      <div class="chip"><span class="k">Growth</span><span class="v">+117<small>%</small></span></div>
    </div>
  </header>

  <div class="ui legend">
    <h4>Users · thousands</h4>
    <div class="grad"></div>
    <div class="grad-labels"><span>38k</span><span>value</span><span>91k</span></div>
    <div class="hint"><b>Drag</b> to orbit · <b>Scroll</b> to zoom · <b>Hover</b> a bar for details</div>
  </div>

  <div id="tooltip">
    <div class="t-month"></div>
    <div class="t-val"></div>
    <div class="t-bar"><i></i></div>
  </div>

  <div id="loader">
    <div class="l-in">
      <div class="l-bar"><i></i></div>
      <div class="l-txt">Building scene</div>
    </div>
  </div>

  <script type="importmap">
{
  "imports": {
    "three": "https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.module.js",
    "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.180.0/examples/jsm/"
  }
}
  </script>

  <script type="module">
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

const DATA = [
  { month: 'Jan', value: 42 },
  { month: 'Feb', value: 38 },
  { month: 'Mar', value: 51 },
  { month: 'Apr', value: 47 },
  { month: 'May', value: 63 },
  { month: 'Jun', value: 58 },
  { month: 'Jul', value: 71 },
  { month: 'Aug', value: 69 },
  { month: 'Sep', value: 64 },
  { month: 'Oct', value: 77 },
  { month: 'Nov', value: 83 },
  { month: 'Dec', value: 91 },
];

const BAR_W = 0.8, BAR_D = 0.8, SPACING = 1.2;
const AXIS_X = -7.0;
const C = { blue: 0x2563eb, amber: 0xf59e0b };
const cLow = new THREE.Color(C.blue);
const cHigh = new THREE.Color(C.amber);

const values = DATA.map(d => d.value);
const minV = Math.min(...values);
const maxV = Math.max(...values);

/* ---------- renderer ---------- */
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.toneMappingExposure = 1.06;
document.getElementById('scene').appendChild(renderer.domElement);

/* ---------- scene / camera ---------- */
const scene = new THREE.Scene();
scene.background = new THREE.Color(0xeef1f6);

const camera = new THREE.PerspectiveCamera(42, window.innerWidth / window.innerHeight, 0.1, 200);
camera.position.set(13, 9, 20);

const controls = new OrbitControls(camera, renderer.domElement);
controls.enableDamping = true;
controls.dampingFactor = 0.06;
controls.target.set(0, 3.2, 0);
controls.minDistance = 10;
controls.maxDistance = 46;
controls.minPolarAngle = 0.12;
controls.maxPolarAngle = Math.PI / 2 - 0.05;
controls.update();

/* ---------- lights ---------- */
scene.add(new THREE.HemisphereLight(0xffffff, 0xdfe4ee, 0.85));
const ambient = new THREE.AmbientLight(0xffffff, 0.35);
scene.add(ambient);

const key = new THREE.DirectionalLight(0xfff6ec, 1.15);
key.position.set(9, 16, 12);
key.castShadow = true;
key.shadow.mapSize.set(2048, 2048);
key.shadow.camera.near = 1;
key.shadow.camera.far = 60;
key.shadow.camera.left = -15;
key.shadow.camera.right = 15;
key.shadow.camera.top = 15;
key.shadow.camera.bottom = -6;
key.shadow.bias = -0.0003;
key.shadow.normalBias = 0.015;
scene.add(key);

const fill = new THREE.DirectionalLight(0xdce7ff, 0.4);
fill.position.set(-12, 9, -8);
scene.add(fill);

/* ---------- ground + grid ---------- */
const ground = new THREE.Mesh(
  new THREE.PlaneGeometry(70, 70),
  new THREE.MeshStandardMaterial({ color: 0xe9ecf2, roughness: 1, metalness: 0 })
);
ground.rotation.x = -Math.PI / 2;
ground.position.y = -0.001;
ground.receiveShadow = true;
scene.add(ground);

const grid = new THREE.GridHelper(70, 70, 0xc3c9d6, 0xdde1ea);
grid.material.transparent = true;
grid.material.opacity = 0.9;
grid.position.y = 0.002;
scene.add(grid);

/* ---------- axis + ticks ---------- */
const axisMat = new THREE.LineBasicMaterial({ color: 0x9aa3b2, transparent: true, opacity: 0.85 });
const axisGeo = new THREE.BufferGeometry().setFromPoints([
  new THREE.Vector3(AXIS_X, 0, 0),
  new THREE.Vector3(AXIS_X, 10, 0),
]);
scene.add(new THREE.Line(axisGeo, axisMat));

[0, 20, 40, 60, 80, 100].forEach(v => {
  const y = v / 10;
  const g = new THREE.BufferGeometry().setFromPoints([
    new THREE.Vector3(AXIS_X, y, 0),
    new THREE.Vector3(AXIS_X + 0.35, y, 0),
  ]);
  scene.add(new THREE.Line(g, axisMat));
  const s = makeLabel(String(v), {
    font: 500, px: 26, color: '#5c6473', bg: 'rgba(255,255,255,0.9)',
    pad: 12, radius: 0.3, aspect: 0.5
  });
  s.position.set(AXIS_X - 0.7, y, 0);
  scene.add(s);
});

/* ---------- sprite labels ---------- */
function makeLabel(text, opts = {}) {
  const o = Object.assign({
    font: 600, px: 34, color: '#12151c', bg: null,
    pad: 16, radius: 0.35, aspect: 1.0
  }, opts);
  const dpr = Math.min(window.devicePixelRatio, 2);
  const c = document.createElement('canvas');
  const ctx = c.getContext('2d');
  const font = `${o.font} ${o.px}px 'Space Grotesk','IBM Plex Mono',sans-serif`;
  ctx.font = font;
  const tw = ctx.measureText(text).width;
  const w = Math.ceil(tw + o.pad * 2);
  const h = Math.ceil(o.px * 1.5 + o.pad);
  c.width = Math.ceil(w * dpr);
  c.height = Math.ceil(h * dpr);
  // Re-fetch the context after resizing so the DPR transform is applied,
  // then draw with this single (scaled) context.
  const x = c.getContext('2d');
  x.scale(dpr, dpr);
  if (o.bg) {
    x.fillStyle = o.bg;
    roundRect(x, 0, 0, w, h, o.radius * h);
    x.fill();
  }
  x.font = font;
  x.fillStyle = o.color;
  x.textAlign = 'center';
  x.textBaseline = 'middle';
  x.fillText(text, w / 2, h / 2 + 1);
  const tex = new THREE.CanvasTexture(c);
  tex.colorSpace = THREE.SRGBColorSpace;
  tex.anisotropy = 4;
  const mat = new THREE.SpriteMaterial({ map: tex, transparent: true, depthWrite: false });
  const sprite = new THREE.Sprite(mat);
  // Height-driven scale keeps the sprite's aspect ratio correct.
  sprite.scale.set((h / w) * o.aspect, o.aspect, 1);
  return sprite;
}

function roundRect(ctx, x, y, w, h, r) {
  r = Math.min(r, w / 2, h / 2);
  ctx.beginPath();
  ctx.moveTo(x + r, y);
  ctx.arcTo(x + w, y, x + w, y + h, r);
  ctx.arcTo(x + w, y + h, x, y + h, r);
  ctx.arcTo(x, y + h, x, y, r);
  ctx.arcTo(x, y, x + w, y, r);
  ctx.closePath();
}

/* ---------- bars ---------- */
const bars = [];
let hovered = null;

DATA.forEach((d, i) => {
  const x = (i - (DATA.length - 1) / 2) * SPACING;
  const targetH = d.value / 10;
  const t = (d.value - minV) / (maxV - minV);
  const color = new THREE.Color().copy(cLow).lerp(cHigh, t);

  const mat = new THREE.MeshStandardMaterial({
    color, roughness: 0.4, metalness: 0.06,
    emissive: color.clone(), emissiveIntensity: 0
  });
  const mesh = new THREE.Mesh(new THREE.BoxGeometry(BAR_W, 1, BAR_D), mat);
  mesh.position.set(x, targetH / 2, 0);
  mesh.castShadow = true;
  mesh.receiveShadow = true;
  mesh.userData = {
    index: i, month: d.month, value: d.value,
    targetH, baseColor: color.clone(),
    baseEmissive: 0.05, hoverEmissive: 0.5,
    baseEmissiveIntensity: 1.0, hoverEmissiveIntensity: 1.35,
    targetLift: 0, targetScaleY: 1, targetScaleXZ: 1,
    targetEm: 0.05, targetEmI: 1.0,
    // Initialize animated state so lerp() starts from real numbers.
    scaleY: 0.0001,
    scaleXZ: 1,
    lift: 0,
    em: 0.05,
    emI: 1.0
  };
  mesh.scale.set(1, 0.0001, 1);
  scene.add(mesh);
  bars.push(mesh);

  const monthLabel = makeLabel(d.month, {
    font: 600, px: 30, color: '#39414f', bg: 'rgba(255,255,255,0.92)',
    pad: 12, radius: 0.3, aspect: 0.55
  });
  monthLabel.position.set(x, -0.75, 0);
  scene.add(monthLabel);

  const valLabel = makeLabel(d.value + 'k', {
    font: 700, px: 34, color: '#12151c', bg: 'rgba(255,255,255,0.94)',
    pad: 14, radius: 0.3, aspect: 0.62
  });
  valLabel.position.set(x, targetH + 0.55, 0);
  scene.add(valLabel);

  mesh.userData.monthLabel = monthLabel;
  mesh.userData.valLabel = valLabel;
});

/* ---------- interaction ---------- */
const raycaster = new THREE.Raycaster();
const pointer = new THREE.Vector2();
let pointerActive = false;
const tooltip = document.getElementById('tooltip');
const tMonth = tooltip.querySelector('.t-month');
const tVal = tooltip.querySelector('.t-val');
const tFill = tooltip.querySelector('.t-bar i');

function setPointer(e) {
  pointer.x = (e.clientX / window.innerWidth) * 2 - 1;
  pointer.y = -(e.clientY / window.innerHeight) * 2 + 1;
  pointerActive = true;
}
renderer.domElement.addEventListener('pointermove', setPointer);
renderer.domElement.addEventListener('pointerleave', () => { pointerActive = false; });

function updateHover() {
  let hit = null;
  if (pointerActive) {
    raycaster.setFromCamera(pointer, camera);
    const found = raycaster.intersectObjects(bars, false);
    if (found.length) hit = found[0].object;
  }
  if (hit === hovered) {
    if (hit && pointerActive) positionTooltip();
    return;
  }
  if (hovered) setHovered(hovered, false);
  hovered = hit;
  if (hovered) {
    setHovered(hovered, true);
    const u = hovered.userData;
    tMonth.textContent = u.month;
    tVal.innerHTML = u.value + '<small>k</small>';
    tFill.style.width = ((u.value / 100) * 100) + '%';
    tFill.style.background = '#' + u.baseColor.getHexString();
    tooltip.classList.add('show');
    renderer.domElement.style.cursor = 'pointer';
    positionTooltip();
  } else {
    tooltip.classList.remove('show');
    renderer.domElement.style.cursor = 'default';
  }
}

function setHovered(mesh, on) {
  const u = mesh.userData;
  u.targetLift = on ? 0.45 : 0;
  u.targetScaleXZ = on ? 1.07 : 1;
  u.targetEm = on ? u.hoverEmissive : u.baseEmissive;
  u.targetEmI = on ? u.hoverEmissiveIntensity : u.baseEmissiveIntensity;
}

function positionTooltip() {
  const u = hovered.userData;
  const v = new THREE.Vector3(hovered.position.x, u.targetH + 0.4, 0).project(camera);
  const sx = (v.x * 0.5 + 0.5) * window.innerWidth;
  const sy = (-v.y * 0.5 + 0.5) * window.innerHeight;
  const w = tooltip.offsetWidth, h = tooltip.offsetHeight;
  let left = sx + 16;
  if (left + w > window.innerWidth - 10) left = sx - w - 16;
  let top = sy - h / 2;
  top = Math.max(10, Math.min(top, window.innerHeight - h - 10));
  tooltip.style.left = left + 'px';
  tooltip.style.top = top + 'px';
}

/* ---------- resize ---------- */
window.addEventListener('resize', () => {
  camera.aspect = window.innerWidth / window.innerHeight;
  camera.updateProjectionMatrix();
  renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
  renderer.setSize(window.innerWidth, window.innerHeight);
});

/* ---------- loop ---------- */
const clock = new THREE.Clock();
const lerp = (a, b, t) => a + (b - a) * t;
let firstFrame = true;

function animate() {
  requestAnimationFrame(animate);
  const dt = Math.min(clock.getDelta(), 0.05);
  const k = 1 - Math.pow(0.001, dt);

  for (const b of bars) {
    const u = b.userData;
    u.scaleY = lerp(u.scaleY, u.targetScaleY, k);
    u.scaleXZ = lerp(u.scaleXZ, u.targetScaleXZ, k);
    u.lift = lerp(u.lift, u.targetLift, k);
    u.em = lerp(u.em, u.targetEm, k);
    u.emI = lerp(u.emI, u.targetEmI, k);

    b.scale.set(u.scaleXZ, u.scaleY, u.scaleXZ);
    b.position.y = (u.targetH * u.scaleY) / 2 + u.lift;
    b.material.emissiveIntensity = u.emI;
    b.material.emissive.setScalar(u.em);

    u.valLabel.position.y = u.targetH * u.scaleY + u.lift + 0.55;
    u.valLabel.material.opacity = Math.min(1, u.scaleY * 1.4);
    u.monthLabel.material.opacity = Math.min(1, u.scaleY * 1.4);
  }

  updateHover();
  controls.update();
  renderer.render(scene, camera);

  if (firstFrame) {
    firstFrame = false;
    window.__sceneReady = true;
    const loader = document.getElementById('loader');
    setTimeout(() => loader.classList.add('hide'), 120);
  }
}

window.__app = { scene, camera, renderer, controls, bars };
animate();
  </script>
</body>
</html>
```