{"version":"1.0","type":"rich","title":"D3_CookBook(v5)_Ch2 pt2","description":"Three HTML tables display financial transactions, with each table's rows styled differently through D3 selections. The example demonstrates raw DOM selection and manipulation using d3.select and .selectAll(\"tr\") to target table rows, then applying CSS classes like \"table-header\" and \"table-row-odd\" based on row index. It shows how to filter row elements via a selection's .select(function(d, i) { ... }) callback, checking an element's position before assigning class attributes. The code adapts older D3 v3 patterns to D3 v5, highlighting changes in how raw selections and element references are handled.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1ae5fbfccf424dceb466052429cc0c35?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}