gwtd3/gwt-d3 — pull request #65 by evshi (2013-08-19 21:40:02+00:00)
Title: Adding tree layout and collapsible tree demo

Transitions should also include a function that takes in a PathDataGenerator as an argument, as seen in M. Bostock demo: http://bl.ocks.org/mbostock/4339083. The function I've written is below, but I had trouble integrating it due to line ending issues.

/**
* Transitions the attributes with the specified name to the value returned
* by the {@link PathDataGenerator} for each selected element.
*

* This method should always been used with a selection containing a svg
* <path> element by specifying "d" for the name argument.
*

* The specified name may have a namespace prefix, such as xlink:href, to
* specify an "href" attribute in the XLink namespace. By default, D3
* supports svg, xhtml, xlink, xml, and xmlns namespaces. Additional
* namespaces can be registered by adding to d3.ns.prefix.
*

*
* @param name
* the name of the attribute
* @param value
* the {@link PathDataGenerator} used to compute the new value of the
* attribute
* @return the current transition
*/
public native final Transition attr(final String name,/PathDataGenerator value) /*-{
return this.attr(name, value);
}-*/;