logankoester / ink-chart

Chart component for Ink ๐ŸŒˆ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ๐ŸŒˆ

License:MIT License


Languages

Language:JavaScript 100.0%