https://github.com/derhuerst/ndjson-chart-cli
Visualize newline-delimited JSON as an interactive line chart.
https://github.com/derhuerst/ndjson-chart-cli
c3js chart d3js json-ld jsonld ndjson
Last synced: 2 months ago
JSON representation
Visualize newline-delimited JSON as an interactive line chart.
- Host: GitHub
- URL: https://github.com/derhuerst/ndjson-chart-cli
- Owner: derhuerst
- License: isc
- Created: 2020-01-07T19:28:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T19:32:38.000Z (over 5 years ago)
- Last Synced: 2025-02-09T04:41:42.499Z (3 months ago)
- Topics: c3js, chart, d3js, json-ld, jsonld, ndjson
- Language: JavaScript
- Homepage: https://github.com/derhuerst/ndjson-chart-cli#ndjson-chart-cli
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# ndjson-chart-cli
**Visualize [newline-delimited JSON](http://ndjson.org/) as an interactive line chart.**
[](https://www.npmjs.com/package/ndjson-chart-cli)
[](https://travis-ci.org/derhuerst/ndjson-chart-cli)


[](https://gitter.im/derhuerst)
[](https://patreon.com/derhuerst)## Installation
```shell
npm install ndjson-chart-cli
```Or use [`npx`](https://npmjs.com/package/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