Creating simple geometry with D3.js.

There was a time when geometry was a way of exploring the world around us.

Setting the stage

Template HTML code, and the basics.

Points

Points; just like in elementary school, but this time powered up.

Line

Making a straight line with D3

Circle

Drawing a circle from the centre point

Mise en place

Wrapping what we have in to functions.

Measuring the length of a line

(aka, the distance between the two end points)