{"version":"1.0","type":"rich","title":"D3 Selectors","description":"This example demonstrates D3’s DOM selection and manipulation methods by directly targeting elements. It uses `d3.select` to modify the `h1` heading’s color, class, and text, then `d3.selectAll` to style all paragraphs blue. The code appends three new paragraphs to the body using chained `append` calls. It relies on D3 v7 and plain CSS/JavaScript, showing how selectors apply cascading changes to existing and newly created nodes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9f4a212d7e5543a3bbccaad1d2106e6b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}