Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T19:32:38.000Z (almost 5 years ago)
- Last Synced: 2024-11-07T07:06:33.892Z (7 days 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.**
[![npm version](https://img.shields.io/npm/v/ndjson-chart-cli.svg)](https://www.npmjs.com/package/ndjson-chart-cli)
[![build status](https://api.travis-ci.org/derhuerst/ndjson-chart-cli.svg?branch=master)](https://travis-ci.org/derhuerst/ndjson-chart-cli)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/ndjson-chart-cli.svg)
![minimum Node.js version](https://img.shields.io/node/v/ndjson-chart-cli.svg)
[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](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