Getting Started
To start using Chart.js, include the library in your HTML file and create a canvas element to render the chart.
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <canvas id="myChart"></canvas>
Chart Types
Chart.js supports various chart types, including line, bar, pie, and more.
- Line Chart:
type: 'line'