0.1.6 • Published 2 years ago

node-d3 v0.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

0.1.4

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago