Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Is This Height Comparison Up to Scale? How to Draw One Correctly in JavaScript and SVG

"I've always wondered what a height different between a 4'10 person and a 5'7 person would look like … I found this image but idk if it's up to scale or not." That question, posted to r/heightcomparison, is the whole genre in one sentence. People want to see a height gap, they find a picture, and then they have no way to tell whether the picture is honest. If you are building the tool that makes…

To create a height comparison chart that accurately represents the visual difference between two heights, there are two fundamental rules to follow. First, every figure's feet should be positioned on the same horizontal line, which is known as having a single ground line. If figures are vertically centered as in the second example, the visible height difference will be halved, with only half the difference being visible above the ground line.

For a comparison between a 4'10" individual and a 5'7" individual, the 11.4 cm difference becomes more noticeable as 22.9 cm when using a chart with a single ground line.

Second, the scale used to represent heights should be consistent and start at zero, meaning that pixels per centimeter should remain a single value throughout the entire chart. The zero point on the scale must align with the ground line, ensuring that the shorter person's height is not stretched or compressed compared to the taller one.

When the scale starts at an arbitrary point or varies along the axis, as seen in the first chart example, the visual representation becomes distorted. This can lead to exaggerated or minimized differences based on the arbitrary starting point, undermining the chart's integrity.

A common mistake in height comparisons is incorrectly scaling the heights, which inadvertently introduces biases. For instance, if the axis starts at 140 cm instead of zero, the shorter subject's height is shown as being significantly smaller than it truly is, skewing the perceived difference between the two heights. This type of truncation is akin to a bar chart that does not begin at zero, leading to misleading visual comparisons.

Thus, adhering to these two principles—having a shared ground line and maintaining a uniform scale starting from zero—is essential for presenting height differences in a truthful and intuitive manner.

Rewritten by urgent.news; may contain errors — check the original.

Read the original at dev.to →

Report a problem with this story

More in Tech

Customer Domain Support in Go: Why I Chose Apex Record Ownership

Retries belong behind a reconciliation check. For property managers publishing customer domains and mail authentication records, I would choose a documented apex A record and a www CNAME, accepting…

  • Apex A records and www CNAMEs recommended for customer domain support
  • Separate explanations for portal and mail readiness during onboarding
  • Capacity planning considers affected zones and retry budget

German e-invoicing for developers: XRechnung and ZUGFeRD via REST API and MCP

From 2027, many German businesses have to send structured e-invoices to other businesses, and from 2028 almost all of them. Receiving them has been mandatory since 1 January 2025.

  • German businesses must send e-invoices by 2028, starting 2027 for high-revenue firms
  • XRechnung is pure XML (UBL or CII syntax) format
  • ZUGFeRD combines PDF/A-3 with embedded XML

ILLA Builder's 92 Fingerprints Mark a Low-Code Control Plane With Data Connections

ILLA Builder's 92 Fingerprints Mark a Low-Code Control Plane With Data Connections ILLA Builder is designed to assemble internal tools from visual components, data sources, and actions. That makes the builder more consequential than a static dashboard.

  • ILLA Builder identified via 92 distinct fingerprints
  • Control plane connects to databases, APIs, MongoDB, Redis, Hugging Face
  • November 22, 2026: ZoomEye SDK finds 92 app name matches, 109 body content matches

More from Saturday 21 November →