Skip to main content
100%

D3 Bookmarklet

✓ Published0🌍 Public
Mmbostock
Last edited Oct 31, 2015
Created on Jul 4, 2012

This example demonstrates a bookmarklet that injects D3.js into any webpage by appending a dynamically created script element to the document head. The code specifically loads D3 version 3 from the d3js.org CDN using the `document.createElement` and `document.head.appendChild` APIs. It shows how to enable D3 functionality on pages that do not already have it, making the library available for future interactions. The bookmarklet relies solely on this script injection mechanism, with no additional data or visualization logic included.

AI-generated description

Similar vizzes