Bioinformatics Final Question 2
This example displays the Italian flag as three vertical green, white, and red rectangles on an SVG canvas. It uses D3 v4’s data join to bind a JavaScript array of flag color and dimension objects to `rect` elements, setting each rectangle’s `x`, `y`, `width`, `height`, and `fill` attributes from the data. The visualization is built with `d3.select` and `.selectAll(...).data().enter().append()`, with a static, hard-coded data source in the script. No interaction or transitions are shown.