- Copy the
example-directive.js
file. - Include the file in the html.
<script src="your-directive.js"></script>
- Add an element to the html
<svg your-directive></svg.
- Add custom d3 code to the directive file. Loading an audio file url will populate it with peak data.