diff --git a/Output/cn.js b/Output/cn.js index cc331164574c10e34d62bdf55b0647e8fcf1ae24..d4ddeb22a76a63761fd7385a6488f8ae5d9824a0 100644 --- a/Output/cn.js +++ b/Output/cn.js @@ -65,8 +65,7 @@ var g = svg.append("g") * creates XAxis element */ var xAxis = d3.axisBottom() - .tickFormat(function(d) {return d;}) - .ticks(10); + .tickFormat(function(d) {return d;}); /** * draw xAxis @@ -123,7 +122,7 @@ function updateXAxis(nodes) { xscale = d3.scaleLinear() .domain([d3.min(years), d3.max(years)]) - .range([50, width-50]) + .range([0, width]) xAxis.scale(xscale); gX.call(xAxis); @@ -268,8 +267,8 @@ function firstauthor(authors){ function textfunc(node){ document.getElementById('textbox').innerHTML = "Title:" + '</br>' + node.name + '</br>' +'</br>'+"Author:"+ '</br>' +node.author+'</br>'+'</br>'+"Year:"+'</br>' - +node.year+'</br>'+'</br>'+"doi:"+'</br>'+node.doi+'</br>'+'</br>'+"Citations:" - +'</br>'+node.citations; + +node.year+'</br>'+'</br>'+"doi:"+'</br>'+'<a href="'+node.doi+ '">'+node.doi + +'</a>'+'</br>'+'</br>'+"Citations:"+'</br>'+node.citations; } /**