chartexMaking sense of data, one character at a time, on any screen.
Supported Versions:
Add the required dependencies to your project:
npm i chartexHere's a simple example of how to use chartex:
- Create a file named
main.mjs. - Add the following code to
main.mjs:
import { bar } from "chartex";
const data = [
{ key: "A", value: 10, style: "#" },
{ key: "B", value: 20, style: "#" },
{ key: "C", value: 30, style: "#" },
];
const options = { width: 50, height: 10, style: "# " };
const chart = bar(data, options);
console.log(chart);- Run the application:
node main.jsContributions are welcome! Please feel free to submit a Pull Request.
|
TypeScript |
Released under MIT by @MetalbolicX.