simple-bar-chart
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

Simple Bar Chart

This package is created for react project

A very simple bar chart that is created for react project.

Installation

npm install simple-bar-chart

Usage

import SimpleBarChart, { BarData } from "simple-bar-chart";

// Your codes

const [barData, setBarData] = useState<BarData[]>([]);

// Your codes

<SimpleBarChart data={barData} />;

Sample BarData

Each item in the BarData[] is structured as below, where;
name: The name of the item to show on the x-axis
amount: The amount that the bar will represent
threshold: The value of the line that will be shown on top of the bar

{ name: `Jan'25`, amount: 0, threshold: 0 }

Use at your own risk as this package is still under development

Created by AziziAziz

Readme

Keywords

none

Package Sidebar

Install

npm i simple-bar-chart

Weekly Downloads

12

Version

1.0.13

License

ISC

Unpacked Size

26.6 kB

Total Files

6

Last publish

Collaborators

  • aziziaziz