Built with blockbuilder.org
Last active
September 14, 2017 15:05
-
-
Save aendra-rininsland/ee4f9ca6dad5143005d1f5c044767304 to your computer and use it in GitHub Desktop.
d3-bootloader extended config test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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