All examples By author By category About

Andrew-Reid

Arcs and Chevrons

This block uses d3.js v4 with a custom module.

A very basic modification of d3.arc() to produce an arc that ends with a chevron/point, d3.chevronArc. This block serves primarily as a proof of concept - and not as a demo of a decent module/plugin. It is based entirely off of the d3-shape module's (https://github.com/d3/d3-shape) arc function with few changes and a lot of code removed. In creating it, many or all of the checks for different cases or exceptions were removed.

Four methods are available for chevronArc(), these are:

All behave the same as with d3.arc().