Skip to content

mind4s/d3-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d3-ext

d3 extensions

arrow between two points

given tow points and width, calculate a polygon ended with an arrow.

arrow demo1 arrow demo2

var p = d3.polya().layout( [ 100, 100 ],[ 40, 40 ],  10 );

svg.append( "g")
    .attr( "transform", p.transform() )
    .append( "polygon")
    .attr( "points", p.points())
    .style( "fill", "gray" );

About

d3 extensions: d3 arrow by polygen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors