Skip to content
Snippets Groups Projects
Commit 279326a4 authored by Stahl, Merle's avatar Stahl, Merle
Browse files

doi anklickbar

parent 3ff7ebc0
No related branches found
No related tags found
2 merge requests!10Output,!9Main
...@@ -65,8 +65,7 @@ var g = svg.append("g") ...@@ -65,8 +65,7 @@ var g = svg.append("g")
* creates XAxis element * creates XAxis element
*/ */
var xAxis = d3.axisBottom() var xAxis = d3.axisBottom()
.tickFormat(function(d) {return d;}) .tickFormat(function(d) {return d;});
.ticks(10);
/** /**
* draw xAxis * draw xAxis
...@@ -123,7 +122,7 @@ function updateXAxis(nodes) { ...@@ -123,7 +122,7 @@ function updateXAxis(nodes) {
xscale = d3.scaleLinear() xscale = d3.scaleLinear()
.domain([d3.min(years), d3.max(years)]) .domain([d3.min(years), d3.max(years)])
.range([50, width-50]) .range([0, width])
xAxis.scale(xscale); xAxis.scale(xscale);
gX.call(xAxis); gX.call(xAxis);
...@@ -268,8 +267,8 @@ function firstauthor(authors){ ...@@ -268,8 +267,8 @@ function firstauthor(authors){
function textfunc(node){ function textfunc(node){
document.getElementById('textbox').innerHTML = "Title:" + '</br>' + node.name + document.getElementById('textbox').innerHTML = "Title:" + '</br>' + node.name +
'</br>' +'</br>'+"Author:"+ '</br>' +node.author+'</br>'+'</br>'+"Year:"+'</br>' '</br>' +'</br>'+"Author:"+ '</br>' +node.author+'</br>'+'</br>'+"Year:"+'</br>'
+node.year+'</br>'+'</br>'+"doi:"+'</br>'+node.doi+'</br>'+'</br>'+"Citations:" +node.year+'</br>'+'</br>'+"doi:"+'</br>'+'<a href="'+node.doi+ '">'+node.doi
+'</br>'+node.citations; +'</a>'+'</br>'+'</br>'+"Citations:"+'</br>'+node.citations;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment