Skip to content
Snippets Groups Projects

Main

Merged Stahl, Merle requested to merge bax9187/projekt-cis-biochemie-2021-22:main into main
6 files
+ 849
146
Compare changes
  • Side-by-side
  • Inline

Files

+ 3
4
@@ -18,7 +18,7 @@ perc;
*/
var color = d3.scaleOrdinal()
.domain(["Citedby", "Input", "Reference"])
.range(['#01d7c0', '#8b90fe', '#a15eb2']),
.range(['#01d7c0', '#7fa9d4', '#a15eb2']),
y_scale = d3.scaleOrdinal()
.domain(["Citedby", "Input", "Reference"])
.range([0, 200, 400]),
@@ -54,7 +54,7 @@ var svg_legend = d3.select("svg.legendsvg"),
legend_position = [65,95,125],
arrow_legend_position = [0,25],
arrow_group_names = ["Citation","Self-Citation"],
group_names = ["Cited By","Input","Reference"],
group_names = ["Cited-by","Input","Reference"],
line_type = d3.scaleOrdinal()
.domain(["line","dotted"])
.range([("8,0"),("8,8")]),
@@ -120,7 +120,7 @@ var simulation = d3.forceSimulation()
else {return 70;}
}).strength(0.5))
.force("charge", d3.forceManyBody().strength(0.001))
.force("center", d3.forceCenter(width/2, height/2+20))
.force("center", d3.forceCenter(width/2-20, height/2+20))
.force("yscale", d3.forceY().strength(function(d) {
if (d.group == "Input") {return 300;}
else {return 200;}
@@ -567,4 +567,3 @@ function svg_string_to_image( svgString, width, height, format, callback ) {
image.src = imgsrc;
}
Loading