\n  .attr(\"stroke-width\", strokeWidth);\n\n// Draw bottom of the glass\nglassGroup.append(\"line\")\n  .attr(\"x1\", glassX)\n  .attr(\"y1\", glassY + glassHeight)\n  .attr(\"x2\", glassX + glassWidth)\n  .attr(\"y2\", glassY + glassHeight)\n  .attr(\"stroke\", strokeColor)\n  .attr(\"stroke-width\", strokeWidth);\n\n// Calculate water height and position\nconst waterHeight = glassHeight * data;\nconst waterY = glassY + glassHeight - waterHeight;\n\n// Draw water\nglassGroup.append(\"rect\")\n  .attr(\"x\