d3-transition-stroke
Interpolate a path using `stroke-dasharray`. Based on https://bl.ocks.org/mbostock/5649592
Last updated 4 years ago by emilbay .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install d3-transition-stroke 
SYNC missed versions from official npm registry.

d3-transition-stroke

Interpolate a path using stroke-dasharray. Based on https://bl.ocks.org/mbostock/5649592

Install

npm install d3-transition-stroke

Usage

var transitionStroke = require('d3-transition-stroke')

// ...

var sel = svg.selectAll('path')
    .data(data)

  // ENTER
  sel.enter().append('path')
    .attr('d', d => line(d))

  // ENTER + UPDATE
  sel.transition('stroke')
      .call(transitionStroke)

API

transitionStroke(selection)

selection

D3 Transition Selection

TODO

This module implicitly depends on D3 3.x, but should be updated to depend on the modules of D3 4.x.

License

ISC

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |