{"version":"1.0","type":"rich","title":"turf: measurement","description":"This visualization measures the lengths of California streams using Turf.js, coloring each stream according to its distance in miles. A threshold color scale maps shorter streams to darker reds and greens, with longer streams shown in blue. The map renders on a Canvas element using d3.geo.path with a Mercator projection, drawing TopoJSON data loaded from a remote file. Turf.js’s `lineDistance` function calculates each feature’s length, while D3’s `d3.scale.threshold` assigns the stroke colors.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-a76bb1eb9e3172720c3b9bd090ace725?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}