`d3` is required to be added in the global scope by includeing the following in your html.
This is the Javascript component of mpld3. Please visit [the GitHub page](https://github.com/mpld3/mpld3) for more information.