d3 / d3-plugins

[DEPRECATED] A repository for sharing D3.js V3 plugins.

Home Page:https://github.com/d3/d3/wiki/Plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make plugins AMD modules.

dev-tim opened this issue · comments

It would be good to make d3 plugins defined as AMD modules to make it possible to use it with requirjs

I think that the idea of plugins is exactly to avoid this complexity. The problem is that the javascript community is divided about how to implement modules

I would personally prefer them to be commonJS

Or at the very least, allow "d3" to be an optional dependency instead of always requiring the "d3" object be global.