{"version":"1.0","type":"rich","title":"Untitled","description":"This example demonstrates how to create a D3 band scale with a specified domain and range, then output its computed bandwidth value to the console using `d3.scaleBand()` and the `bandwidth()` method. It shows how the scale’s range width is divided evenly across five discrete domain values, resulting in a bandwidth of 2. The page is minimal, consisting only of an HTML file that loads D3 v4 from a CDN and runs the scale logic inline in a script tag. A separate JavaScript file also shows importing `select` from D3 v6 to add text to the page body.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/32a5ee3ccc784045aa741ac5c32eea45?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}