Description
Goals: Practice using d3 to create SVG elements and set their aesthetic properties. Recognize
the effect of data transformations through direct data changes and through scale functions.
Practice working with color scales.
Your work should be in the form of an HTML file called index.html with one
element per
problem. Wrap any SVG code for each problem in a
element. For this homework we will be using d3.js. In the
section of your file, pleaseimport d3 using this tag:
Create a zip archive containing your HTML file and all associated data files (such as
diamonds.json) and upload it to CMS before the deadline. Submissions that do not include
data files may be penalized. Your submission will be graded using a Python web server run in
a parent directory containing your zip file contents (e.g. server started in ~/student_hw, with
your homework at ~/student_hw/your_netid/hw3/index.htm) – be sure that it works.
1. In your HTML, please create a 300×300 pixel SVG element. Then, select it using
d3.select() in the

