crimson-canvas-charts
v1.1.3
Published
A minimalistic charting library for web applications.
Downloads
5
Readme
Crimson Canvas Charts
A simple, lightweight charting library to render beautiful charts on canvas elements.
Installation
npm install crimson-canvas-charts
Usage
After installation, you can use it to create charts by providing a canvas element ID and data.
import createLineChart from 'crimson-canvas-charts';
const data = {
labels: ['January', 'February', 'March', 'April', 'May'],
datasets: [{
label: 'Demo Chart',
data: [65, 59, 80, 81, 56]
}]
};
createLineChart('myChartCanvas', data);
Ensure your HTML includes a canvas element with the id specified:
<canvas id="myChartCanvas" width="400" height="400"></canvas>
License
This project is licensed under the MIT License.