chartex
v1.4.3
Published
A data visualization library for the terminal using ASCII characters.
Maintainers
Readme
chartex
chartexMaking sense of data, one character at a time, on any screen.
Supported Versions:
🚀 Quick Installation
Add the required dependencies to your project:
npm i chartex📊 Draw the First Chart
Here'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.js📚 Documentation
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Technologies used
License
Released under MIT by @MetalbolicX.
