@justinvdm/xy
v0.4.0
Published
draw a line chart from piped in json data in the command line
Downloads
12
Readme
xy
draw a line chart from piped in json data in the command line.
install
$ npm install -g @justinvdm/xy
usage
$ xy --help
Usage: xy [options]
Options:
--help Show help [boolean]
-n displays the last n datapoints [default: 0]
--slurp, -s read the entire input stream and draw just once [boolean]
--color, -c css color string to use for each set [default: null]
--set, -S declare a set by its key to match it to a color [default: []]
--time, -t format x values from unix epoch milliseconds to date strings [boolean]
--time-format, -T strftime format to use to format x values, implies --time [string]
-x property name for x values [default: "x"]
-y property name for y values [default: "y"]
--key, -k property name to identify the set each datum belongs to
--min, -m minimum y value [default: null]
--max, -M maximum y value [default: null]
--rate, -r number of new datapoints drawn per second [default: 10]