{"version":"1.0","type":"rich","title":"38. D3 Scale Plot Padding","description":"This example shows a scatterplot of ten data points, with each point labeled by its coordinates in red text. The visualization demonstrates how to apply padding to D3 linear scales, using `d3.scaleLinear` to map the dataset's x and y values to positions within the SVG canvas, keeping points inside the chart boundaries. The `padding` variable reserves space on all sides, and circle radii are calculated as the square root of the height minus the y-value.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/445ffcfde4884b3ca6c259a6f5870904?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}