tcharts.js
TCharts.js is a Lightweight and fast terminal ASCII charts for nodejs and browser.
1. Install & Usage
npm i -S tcharts.js
Table
const TCharts = ;const Table = TCharts; const table = 02; // set gap rate = 0.2table;console;
Bar
const TCharts = ;const Bar = TCharts; const bar = ;bar;console;
HBar
const TCharts = ;const HBar = TCharts; const hbar = ;hbar;console;
Box
const TCharts = ;const Box = TCharts; const box = 60 20; // width, heightbox;console;
2. Supported charts
Bar
: bar chart, with x, y.HBar
: horizontal bar chart.Box
: box chart showing with a square.Table
: data table in terminal.
How to use them, you can see the testcases in __tests__
folder.
3. Build & Test
npm i
npm run build
npm test
Then you can see the result of test cases.
4. License
ISC@ProtoTeam.