Polar Plot
A polar plot traces the parametric function sin(2t)cos(2t) as a red line on a circular coordinate grid, with radial circles and 30° angular ticks labeled from 0° to 330°. The visualization uses D3 v3’s `d3.svg.line.radial` for the curve, mapping the function’s time parameter to angle and its value to radius; angular positions are negated and offset by π/2 to align counterclockwise from 3 o’clock, differing from D3’s default clockwise-from-12 orientation. The SVG output includes axes, dashed grid lines, and a solid outermost circle, all styled via CSS classes.
AI-generated descriptionThis example demonstrates the construction of a polar plot of a parametric function, sin(2t)cos(2t). A d3.svg.line.radial is used to draw the red line. Note the definition of the line’s angle: D3’s radial lines and areas proceed clockwise starting at 12 o’clock, while this plot proceeds counterclockwise starting at 3 o’clock!