Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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