1.0.1 • Published 4 years ago

ndjson-chart-cli v1.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

ndjson-chart-cli

Visualize newline-delimited JSON as an interactive line chart.

npm version build status ISC-licensed minimum Node.js version chat with me on Gitter support me on Patreon

Installation

npm install ndjson-chart-cli

Or use npx. ✨

Usage

Usage:
    cat data.ndjson | ndjson-to-chart >chart.html
Options:
	--x             Set the X axis of all fields to another field.
	--x:{field}     Set the X axis of {field} to another field.
	--type          Show all fields as a specific type of chart.
	                  see https://c3js.org/reference.html#data-type
	--type:{field}  Show {field} as a type of chart.
	                  see https://c3js.org/reference.html#data-type
Examples:
	ndjson-to-chart --x t <node_modules/ndjson-chart-cli/example.ndjson
	ndjson-to-chart --x:temperature time1 --type:temperature area-spline <measurements.ndjson

Related

  • chart-csv – Chart a comma separated list of numbers on a line-graph that can be viewed in a web browser.

Contributing

If you have a question or need support using ndjson-chart-cli, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.