0.1.2 • Published 9 years ago

tonic-plotly v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

tonic-plotly

Simple wrapper to render plot.ly on tonicdev

Example

const d3 = require('d3');
const plotly = require('tonic-plotly');

const x = d3.range(-5, 5, 0.1);  
const f = (x) => Math.sin(x);
const g = (x) => Math.cos(x);
const fdata = { x, y: x.map(f), type: 'scatter', name: 'f(x)' };
const gdata = { x, y: x.map(g), type: 'scatter', name: 'g(x)' };

plotly([fdata, gdata]);
0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago