gka / d3-jetpack

🚀 Nifty convenience wrappers that speed up your daily work with d3.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jetpack insert is breaking d3

opened this issue · comments

<!DOCTYPE html>
<meta charset="utf-8">
<style>

body {
  font: 14px sans-serif;
}

</style>
<body>
<script src="//d3js.org/d3.v4.min.js"></script>
<script src="//unpkg.com/d3-jetpack@2.0.0"></script>
<script>

var c = d3.conventions()
c.drawAxis()

</script>

screen shot 2017-03-31 at 1 32 15 pm

Same error when using only d3v4+jetpack.js

I have the exact same error, even without using the d3.conventions, but when trying to draw an axis.

the stack trace points to the d3.insert prototype override that jetpack does.

Whoops! That's what we get for porting over old functions without adding tests - thanks for the heads up.