1.0.0 • Published 1 year ago

graph-plot-dynamic v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

graph-plot-dynamic

Make animated graphs om the terminal.

Simply use any numerical array of length l. Then, you can choose what range you want to be seen, and how long for a frame. For example, an array of data can be of size 100, and you can display 50 at a time. So, in the first frame, 0-50 are used to plot, then 1-51.. and so on till 100. These frames are plotted one by one based on the time given, using reliable libraries.

Installation

You can install graph-plot-dynamic via npm:

npm install graph-plot-dynamic

Usage

To use graph-plot-dynamic in your project, require the module and call the clear function:

const clear = require('graph-plot-dynamic');
const frames = plotter(Range,ArrayOfData)
plotPlayer(frames,frameDuration)

API

clear()

Clears the console screen based on the current platform (Windows, macOS, or Linux).

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you would like to contribute to the project.

License

This project is licensed under the ISC License. Author : itsarnavsh