inchardible

1.0.14 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i inchardible

      Weekly Downloads

      0

      Version

      1.0.14

      License

      ISC

      Unpacked Size

      7.59 kB

      Total Files

      3

      Last publish

      Collaborators

      • adigeweb