Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 803 Bytes

File metadata and controls

29 lines (22 loc) · 803 Bytes
layout embed
title Embed
<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2F%7B%7B+site.baseurl+%7D%7D%2Fjs%2Flib%2Fd3.min.js"></script> <script src="proxy.php?url=https%3A%2F%2Fgithub.com%2F%7B%7B+site.baseurl+%7D%7D%2Fsrc%2Fpty.js"></script>
<script> d3.json('{{ site.baseurl }}/data/A.json', function(error, data) { if (error) { return error; } var width = 640, height = 480; var chart01 = pty.chart.network() .width(width) .height(height) .nodeRadius(15) .nodeBaseURL(function(d) { return '{{site.baseurl}}/data/' + d.id + '.json'; }); d3.select('div#chart01').data([data]).call(chart01); }); </script>