Skip to content

slaweet/ink-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

Chart component for Ink

Install

$ npm install ink-chart

Usage

import React from 'react';
import {render} from 'ink';
import Chart from 'ink-chart';

const data = [
  { key: 'A', value: 30 },
  { key: 'B', value: 10 },
  { key: 'C', value: 50 }
];

render(
	<Chart data={data} type'bar'/>
);

API

<Chart/>

data

Type: array

List with the data to display.

type

Type: string

Type of the chart, e.g. 'bar', 'pie', and other types supported by ervy

options

Type: object

Any options allowed in ervy

License

MIT © Vít Stanislav

About

Chart component for Ink 🌈

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published