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

c3-chart-maker

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c3-chart-maker

A Node.js module and CLI tool for rendering a chart from a CSV file using a C3 spec.

  • 0.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-93.94%
Maintainers
1
Weekly downloads
 
Created
Source

Chart-maker

A Node.js module for rendering a chart from a CSV file using a C3 spec.

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 C3.

Use from command line

Installation

npm install -g c3-chart-maker

Usage

c3-chart-maker <input-file> --chart=<c3-chart-file> --out=<output-image-file> [--show]

Options

chart       Specifies the file that defines the chart.
out         Specifies the name of the image file to output for the chart.
show        Optional parameter that shows the browser that renders the chart.

Example

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

Use as a code library

Installation

npm install --save c3-chart-maker

Usage

const c3ChartMaker = require('c3-chart-maker');

var inputFilePath = "your-input-file.csv";
var chartTemplateFilePath = "my-chart-spec.json";
var outputFilePath = "your-chart-output-file.png";
var options: {
    show: true // Show browser used to render the chart.
};

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

TODO

Need to be able to merge multiple csv files.
Should be able to plug blanks in the chart template with command line parameters.
Need to be able to include CSS template for the chart so that it can be styled.

Keywords

FAQs

Package last updated on 17 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