Skip to main content
Public

Share visualization

Loading preview…

37. D3 Scale Plot Inverted

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

37. D3 Scale Plot Inverted

1
Aamakanju@nyit.edu
Last edited Feb 26, 2026
Created on Feb 9, 2026
Forked from 36. D3 Scale Plot

This example demonstrates an inverted linear scale plot using D3.js. Ten data points, each represented as a circle and a red text label, are positioned on a 500x100 pixel SVG canvas. The visualization shows how the y-axis is flipped by mapping the domain’s maximum value to the bottom of the range and the minimum to the top, using `d3.scaleLinear()`. The circle radius is calculated as the square root of the height minus the y-value, creating a size variation tied to the data.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed