Skip to content

Instantly share code, notes, and snippets.

@aendra-rininsland
Last active September 14, 2017 15:05
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 aendra-rininsland/ee4f9ca6dad5143005d1f5c044767304 to your computer and use it in GitHub Desktop.
Save aendra-rininsland/ee4f9ca6dad5143005d1f5c044767304 to your computer and use it in GitHub Desktop.
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