hm0693_Q1
This example demonstrates how to create a pie chart using the D3.js library, visualizing the distribution of three Iris species, each with a count of 50. The chart is rendered as scalable vector graphics (SVG) with a legend displayed below. The code utilizes D3's `pie` function to compute arc data, `arc` for defining the pie slices, and `scaleOrdinal` with the `schemeCategory10` color palette. Percentage labels are positioned at the centroid of each arc, while a separate legend is constructed using HTML elements.