Skip to content

Instantly share code, notes, and snippets.

@aendrew

aendrew/.block

Last active Sep 14, 2017
Embed
What would you like to do?
d3-bootloader extended config test
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script>
window.D3BootloaderConfig = {
map: {
'd3-jetpack': 'https://unpkg.com/d3-jetpack@2',
}
};
</script>
<script src="https://rawgit.com/ft-interactive/d3-bootloader/adding-global-config/dist/d3-bootloader.js" async></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<script>
</script>
</body>
import * as d3 from 'd3';
import 'd3-jetpack';
alert(d3.select('body').at !== undefined)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.