d3-gauge-writable
d3 gauge with a writable stream API so you can pipe into it.
Last updated 7 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install d3-gauge-writable 
SYNC missed versions from official npm registry.

d3-gauge-writable

testling badge

d3-gauge with a writable stream API so you can pipe into it.

var gaugeWritable = require('d3-gauge-writable')
  , numbers = require('./number-readable')

numbers({ to: 40, throttle: 500 })
  .pipe(gaugeWritable(el, { gauge: gaugeOpts }))

Note: please make sure to include the appropriate css in your page, otherwise all you'll see is a big black circle.

Installation

npm install d3-gauge-writable

API

###function GaugeWritable (el, opts)

Creates a writable stream that writes to a d3-gauge.

@name GaugeWritable @function params:

  • el DOMElement to attach the gauge to
  • opts Object passed to the Writable
    • gauge: property on the opts Object passed to d3-gauge

returns:

Stream a writable stream

Please review the example as well.

License

MIT

Current Tags

  • 0.1.1                                ...           latest (7 years ago)

2 Versions

  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |