Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chart-maker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chart-maker

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

  • 0.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 04 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc