Skip to content

Instantly share code, notes, and snippets.

@chrisirhc
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisirhc/8889dd642fd8d646c5b2 to your computer and use it in GitHub Desktop.
Save chrisirhc/8889dd642fd8d646c5b2 to your computer and use it in GitHub Desktop.
A Pen by Chris Chua.
var page = require('webpage').create();
page.open('http://codepen.io/chrisirhc/full/xfhbo', function() {
console.log('Script never gets here on PhantomJS 1.9.7');
phantom.exit();
});
var svg = d3.select(document.body).append("svg:svg")
.attr("width", 960)
.attr("height", 500)
;
var path = svg.append('svg:path')
// Comment out any of the following four lines
.attr('d', 'M448,25L801,25')
.style('stroke', '#666')
.style('stroke-width', 0)
.style('stroke-dasharray', '2 1')
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment