block by micahstubbs 391b2dd451189df324c68192e3e25848

es2015 d3 v4 curve interpolation comparison

Full Screen

lest you think I’ve abandoned modernity entirely, I present you with this ES2015 version of the bl.ock v4 curve interpolation comparison. the code found here follows the Airbnb JavaScript Style Guide, with the rule modifications described in this .eslintrc

{
  "extends": "airbnb",
  "rules": {
    "comma-dangle": "off",
    "no-param-reassign": "off",
    "no-restricted-syntax": "off",
    newline-per-chained-call: "off"
  }
}

this iteration also uses only inline styles, because reasons

a fork of this bl.ock which in turn is an iteration on @d3noob‘s’ v4 curve interpolation comparison


Original README.md:


This bl.ock demonstrates the range of interpolation curves available in v4 of d3.js.

You can click on any of the legend labels to toggle visibility of the lines.

Details of the curve can be found on the D3 wiki.

This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 4 of d3.js.

index.html

data-3.csv