Created
December 2, 2012 05:51
-
-
Save captainwz/4187145 to your computer and use it in GitHub Desktop.
d3-2-demo1
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
<html> | |
<head> | |
<script src="d3-2-demo1-jsondata.js" type="text/javascript"> | |
</script> | |
<script type="text/javascript"> | |
alert(data.member[0].name); | |
</script> | |
</head> | |
<body></body> | |
</html> |
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
var data= | |
{ | |
"flight":815, | |
"member": | |
[{ | |
"name":"Jack", | |
"sex":"male", | |
}, | |
{ | |
"name":"Kate", | |
"sex":"female", | |
}, | |
{ | |
"name":"Sawyer", | |
"sex":"male", | |
}] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment