0.0.11 • Published 7 years ago

chart-maker v0.0.11

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Chart-maker

A Node.js module for rendering a chart from a CSV file using the Vega-Lite or Vega visualization grammar.

It can be used from the command line or as a code library. It's a great way to render server-side charts.

This library uses Data-Forge, Nightmare and Vega.

Use from command line

Installation

npm install -g chart-maker

Usage

chart-maker <input-file> --chart=<vega-chart-file> --out=<output-image-file>

Example

chart-maker myspreadsheet.csv --chart=mychartspec.json --out=mychart.png

Use as a code library

Installation

npm install --save chart-maker

Usage

const chartMaker = require('chart-maker');

var inputFilePath = "your-input-file.csv";
var chartTemplateFilePath = "my-chart-spec.json";
var outputFilePath = "your-chart-output-file.png";

chartMaker(inputFilePath, chartTemplateFilePath, outputFilePath)
    .then(() => { 
        console.log('Done');
    })
    .catch(err => {
        console.error(err);
    });

TODO

Need to be able to merge multiple csv files.
0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago