Looks nice but why create a whole new plotting library for this rather than adding it to one of the existing ones (eg. Chart.js)?

Thanks to d3, creating a new plotting library is not so hard

https://github.com/d3/d3-shape

You can regard this library as adding styles to d3 instead of chart.js