From the course: D3.js Essential Training for Data Scientists

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Rejecting polygons and polylines

Rejecting polygons and polylines - D3.js Tutorial

From the course: D3.js Essential Training for Data Scientists

Start my 1-month free trial

Rejecting polygons and polylines

- [Instructor] A polygon is a closed shape formed of connected straight lines. Triangles are polygons as are hexagons, star shapes, and dodecahedrons. A polyline is an open ended shape formed of connected straight lines. Both types of SVG shape can be added in D3, but it's usually quicker to use Path, which we're going to come on to. I've never used polygon or polyline in D3, and I've never seen anyone who has, but I wanted you to know that they are options.

Contents