Skip to content

KeepCoolWithCoolidge/asciigraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asciigraph Linux Build Status (Travis)

Console ascii line graphs in pure Nim ╭┈╯.

Installation

nimble install asciigraph

Usage

Basic graph

import asciigraph

var data = @[3f64, 4, 9, 6, 2, 4, 5, 8, 5, 10, 2, 7, 2, 5, 6]
echo plot(data, caption="An example graph!")

Running this example renders the following graph:

 10.00 ┤        ╭╮     
  9.00 ┤ ╭╮     ││     
  8.00 ┤ ││   ╭╮││     
  7.00 ┤ ││   ││││╭╮   
  6.00 ┤ │╰╮  ││││││ ╭ 
  5.00 ┤ │ │ ╭╯╰╯│││╭╯ 
  4.00 ┤╭╯ │╭╯   ││││  
  3.00 ┼╯  ││    ││││  
  2.00 ┤   ╰╯    ╰╯╰╯  
          An example graph!

Acknowledgements

This package is nim port of library asciichart written by @kroitor.

Contributing

Feel free to make a pull request! :octocat:

About

Console ascii line graphs in pure Nim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages