Authors and Publishers/Institutions
https://sf.relsci.com/Visualizations/davos (done with Raphael)
by Nivaldo
HTML
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/minified/jquery-ui.min.css">
<div id="_contentArea" style="background-color: #FFF;"></div>
<div style="width: 580px;"></div>
CSS
body {
font: normal 30px Tahome;
}
circle {
stroke-width: 0;
opacity: 0.8;
}
JavaScript
$(document).ready(function () {
var innerRad = 160.0;
var outerRad = 260.0;
var outerPad = 20.0;
var center = outerRad + outerPad;
var getPx = function (em) {
var scopeTest = jQuery('<div style="font-size: ' + em + 'em; margin: 0; padding:0; border:0; font-family: ProximaNova-Regular;">test</div>');
$('#_contentArea').append(scopeTest);
var scopeVal = scopeTest.height();
scopeTest.remove();
return scopeVal;
};
var raph = Raphael('_contentArea', 695, 695);
var centerFont = raph.raphael.svg ? '1.0em ProximaNova-Regular' : '20px ProximaNova-Regular';
var companyFont = raph.raphael.svg ? '.7em ProximaNova-Regular' : '14px ProximaNova-Regular';
var personFont = raph.raphael.svg ? '.7em ProximaNova-Regular' : '14px ProximaNova-Regular';
var typeFont = raph.raphael.svg ? '.6em ProximaNova-Regular' : '12px ProximaNova-Regular';
var centerPx = getPx(1.0);
var companyPx = getPx(0.7);
var personPx = getPx(0.7);
var typePx = getPx(0.6);
var data_array = [
{'Source':'Brewster, Smith R.','Target':'American Psychological Association', 'Weight':10,'Type':'Directed','Relationship':'On Board'},
{'Source':'Brewster, Smith R.','Target':'Oxford Press', 'Weight':10,'Type':'Directed','Relationship':'On Board'},
{'Source':'Brewster, Smith R.','Target':'Sage Publications', 'Weight':7,'Type':'Directed','Relationship':'Is Member'},
{'Source':'Brewster, Smith R.','Target':'Wiley', 'Weight':7,'Type':'Directed','Relationship':'Is Member'},
{'Source':'Sage Publications','Target':'Lillenfield, Scott', 'Weight':0.99996716794237,'Type':'Directed','Relationship':'On Board'},
{'Source':'American Psychological Association','Target':'Schmidt, John E.', 'Weight':0.99992339186553,'Type':'Directed','Relationship':'On Board'},
{'Source':'American Psychological Association','Target':'Brennan, Thomas',...