Skip to main content
100%

Pentagon

✓ Published0🌍 Public
CCurran Kelleher
Last edited Sep 26, 2017
Created on Sep 26, 2017

This example shows a pentagon drawn as a set of lines radiating from the center of an SVG canvas and connecting the five outer vertices. Built with d3.v4, it uses `d3.range` to generate five points based on angular calculations, then constructs and renders spokes and perimeter lines as SVG `<line>` elements with black strokes. The data source is a gist, and the rendering approach is static, with coordinates derived from the SVG’s width and height.

AI-generated description

Constructed in the video tutorial: The Pentagon. Inspired by a figure from chapter 5 of Tamara Munzner's excellent book "Visualization Analysis and Design".

Built with blockbuilder.org

mit Licensed

Similar vizzes