Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 803 Bytes

03-install.md

File metadata and controls

36 lines (26 loc) · 803 Bytes
title
Installation

You can install chart.xkcd via script tag in HTML or via npm

Via Script Tag

<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>

Via npm

Install

npm i chart.xkcd

Usage

import chartXkcd from 'chart.xkcd';
const myChart = new chartXkcd.Line(svg, {...});

Other ways