Chart component for Ink
Install
$ npm install ink-chart
Usage
;;; const data = key: 'A' value: 30 key: 'B' value: 10 key: 'C' value: 50 ; ;
API
<Chart/>
Besides the props below, it accepts props allowed in ansi-escapes
.
data
Type: array
List with the data to display.
type
Type: string
Type of the chart, e.g. 'bar', 'pie'.
License
MIT © Vít Stanislav