inchardible
v1.0.14
Published
Generate aesthetic charts with JS easily!
Downloads
4
Readme
Inchardible
A package to create different kinds of charts in your page, using just a single JS function.
Using The Package
Install
Run
npm i inchardible
in the terminal to import the package.
Generate a Chart
import Chart from "./node_modules/inchardible/index.js";
const data = [
{
name: "Apple",
value: 75,
color: "red" // Optional
},
{
name: "Banana",
value: 50,
color: "yellow" // Optional
},
{
name: "Grapes",
value: 40,
color: "purple" // Optional
}
];
// Creating a Pie Chart
new Chart().Pie("body", data);
// Creating a Bar Chart
new Chart().Bar("body", data, "vertical"); // The default value for the 3rd parameter is "horizontal"
Developer
Developed by @adigeweb