ming-codes / ember-cli-d3

An ember-cli addon to provide D3 integration into Ember app.
MIT License
43 stars 18 forks source link

`.call` should receive an empty selection #63

Open ming-codes opened 8 years ago

ming-codes commented 8 years ago

The current convention is that .call on component with d3-support receives a d3 selection of the container <g> element. This causes some flexibility issue where component must use a <g> element as parent.

If .call are to receive an empty selection, the component will have control over what type of element it want as parent. This makes putting things in <defs> much easier.

The downside is that this may break a lot of existing code. :frowning: