New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jutsu

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jutsu

One-line graphs with Smolder support

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Jutsu

Jutsu is a very simple graphing library for the web, with support for Smolder built-in.

This means it can attempt to handle any data that's thrown at it, regardless of structure, and produce a graph.

To see examples, and read the documentation, check out this notebook.

Installation

npm install jutsu

Jutsu works fine on its own, but to get the automatic data reshaping, you'll need Smolder too.

npm install smolder

Usage

var Smolder = require('smolder');
var Jutsu = require('jutsu');

// graphElement is the DOM element where we want to put the graphs.
var graphs = Smolder(Jutsu(graphElement));

// We can then create a graph using, e.g.:
graphs.pieChart(data);

Graphs

The optional parameter [hints] is a string, or array of strings, which tells Jutsu which part of the data we are interested in.

pieChart(data, [hints])

barChart(data, xLabel, yLabel, [hints])

lineChart(data, xLabel, yLabel, [hints])

scatterPlot(data, xLabel, yLabel, [hints])

Each function will return the reshaped data.

Questions/feedback?

If you have any issues, please file an issue. If your problem is with the way the data is reshaped, please file your issue over at Reshaper, the library that does all the heavy lifting.

Jutsu is a part of my Master's project at Imperial College London, and as part of my evaluation I'd really love to hear any feedback you might have. Feel free to shoot me an email.

Keywords

graphs

FAQs

Package last updated on 15 May 2016

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