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> | |
| <head> | |
| <script src="https://ia902601.us.archive.org/18/items/javascriptlibrariesandtools/jwerty.js"></script> | |
| <script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/mathjs/1.4.0/math.min.js" type="text/javascript"></script> | |
| <style> | |
| @import "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"; | |
| </style> | |
| </head> |
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
| .node { | |
| cursor: pointer; | |
| } | |
| .node circle { | |
| fill: #fff; | |
| stroke: steelblue; | |
| stroke-width: 1.5px; | |
| } |
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> | |
| <head> | |
| <script type="text/javascript" src="//cdn.jsdelivr.net/g/d3js"></script> | |
| <script type="text/javascript" src="https://cdn.rawgit.com/newsdev/archieml-js/master/archieml.js"></script> | |
| <style> | |
| @import "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.95.3/css/materialize.min.css"; | |
| </style> | |
| </head> | |
| <body> |
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
| ;( function(){ | |
| // an extension for d3 that iterates over Javascript objects | |
| // to build a DOM derived from data. | |
| d3.ml = { | |
| // YAML templates that execute d3ml | |
| templates: {}, | |
| requests: {}, | |
| scripts: {}, | |
| build: | |
| function(s, template, state){ |
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
| display: | |
| palette: mount | |
| palette: | |
| mount: | |
| - append: $div.container | |
| - template: :svg.mount | |
| - call: | |
| - datum: | |
| y: 0 | |
| c: teal |
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
| display: | |
| svg-container: container | |
| svg-container: | |
| container: | |
| - append: $div.container | |
| - call: | |
| - template: :svg-container.svg | |
| - call: | |
| - template: :compress.two-squares |
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
| ;( function(){ | |
| // an extension for d3 that iterates over Javascript objects | |
| // to build a DOM derived from data. | |
| d3.ml = { | |
| // YAML templates that execute d3ml | |
| templates: {}, | |
| requests: {}, | |
| scripts: {}, | |
| build: | |
| function(s, template, state){ |
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
| display: | |
| - template: :d3templates.gist-list | |
| gist-list: | |
| - append: $div.row | |
| - selectAll: div.col | |
| - requests: | |
| gist.json: https://api.github.com/users/tonyfast/gists | |
| call: | |
| - data: :d3.requests.gist |
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
| display: | |
| - template: :d3.templates.foo | |
| foo: | |
| - append: $div.container | |
| - template: :d3.templates.other | |
| other: | |
| - requests: | |
| movies.csv: https://gist.githubusercontent.com/tonyfast/49e2e2cbab5cf92fbe9f/raw/e6f4a2bc5d37276522865b02065eba556d8b0e99/movies.csv |
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
| #{ create a button to explore nodes with datum} | |
| d3.select 'body' | |
| .append 'div' | |
| .style 'width', 60 | |
| .style 'height', 60 | |
| .style 'position', 'fixed' | |
| .style 'right', 0 | |
| .style 'top', 0 | |
| .style 'background-color', 'green' | |
| .style 'z-index',100 |