JSPM

jutsu

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q24961F
  • License MIT

One-line graphs with Smolder support

Package Exports

  • jutsu

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jutsu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.