0.1.6 • Published 3 years ago

node-d3 v0.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

node-d3

Server-side D3 & Plot

Installation

❯ npm install node-d3 --save

or

❯ yarn add node-d3

Usage

const { Plot , drawer } = require('node-d3')

const chart = drawer(createSVG(500,500))

chart.append('circle').attr('cx',250).attr('cy',250).attr('r',100).attr('fill','#ccc')

console.log(chart.toSVGString())
const { Plot,drawer } = require('node-d3')
const chart = drawer(Plot.plot({
  marks: [Plot.barY(alphabet, { x: 'letter', y: 'frequency' })],
}));

console.log(chart.toSVGString())
0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago