Render with plotly on tonicdev.com
npm install tonic-plotlySimple 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]);
``