Bono Scale
This example demonstrates a D3.js threshold scale that maps the numbers 1, 2, 3, and 14 to discrete output ranges, visually represented as axis tick marks. It shows how threshold scales can be used to categorize continuous data into bins, here using a small array as the domain. The code creates an SVG with a linear x-scale and an axis, using `d3.scale.threshold` and `d3.svg.axis`. The rendering is minimal, with a styled axis and a caption, and the data source is a simple inline array. The visualization is a playful tribute to Bono’s Spanish skills, as the title suggests.