You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

d3-transition-stroke

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-transition-stroke

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

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

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

Keywords

d3

FAQs

Package last updated on 29 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts