Test readme.
This file contains hidden or 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> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>animatEIGHTY</title> | |
| <style> | |
| body { | |
| font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
| width: 960px; | |
| height: 500px; |
This file contains hidden or 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
| d3.selectAll('.graph').each(function (d, i) { | |
| var graphEl = this, | |
| graphNo = i; | |
| var attrs = d3.values(this.attributes).slice(0, this.attributes.length); | |
| //not all attrs are those given by user, some are methods, but length does not include them | |
| var graphAttrs = attrs.map(function(e) { | |
| // console.log(e.nodeName); | |
| return d3.map(e.nodeName, e.nodeaValue) | |
| }); |
This file contains hidden or 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> | |
| <meta charset="utf-8"> | |
| <style> | |
| svg { | |
| float: left; | |
| border: solid 1px #aaa; | |
| } | |
| </style> |