title |
---|
Installation |
You can install chart.xkcd via script tag in HTML or via npm
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.xkcd.min.js" integrity="sha256-NkH6G4XRcQ5Bsfs7O6yh9mw1SJLEOJWCtWqko6VjF34=" crossorigin="anonymous"></script>
<script>
const myChart = new chartXkcd.Line(svg, {...});
</script>
Install
npm i chart.xkcd
Usage
import chartXkcd from 'chart.xkcd';
const myChart = new chartXkcd.Line(svg, {...});
Other ways
- React wrapper: chart.xkcd-react
- Vue wrapper: