dartboard
v1.0.2
Published
Dartboard built with D3 using eventing for throws
Downloads
177
Readme
Dartboard
A library to add a dartboard to a web app. The board is built with D3 and fires events when a bed is clicked.
Usage
<script src="https://unpkg.com/dartboard/dist/dartboard.js"></script>
var dartboard = new Dartboard('#dartboard');
dartboard.render();
document.querySelector('#dartboard').addEventListener('throw', function(d) {
console.log(d.detail);
});