diff --git a/assets/cn.js b/assets/cn.js index 557eb82641271febb93d2c924bc7f4e5aa5665ee..389935df5f1469ec2f152f0adc6995a72302fde7 100644 --- a/assets/cn.js +++ b/assets/cn.js @@ -1,5 +1,4 @@ /** - * Zeilen kürzen * creates a new zoom behavior */ var zoom = d3.zoom().on("zoom", handle_zoom); @@ -16,13 +15,12 @@ perc; /** * scale functions that return y coordinate/color of node depending on group -* genauer Erläutern! */ var color = d3.scaleOrdinal() - .domain(["height", "input", "depth"]) + .domain(["Citedby", "Input", "Reference"]) .range([' #01d7c0', ' #8b90fe ', ' #a15eb2 ']), y_scale = d3.scaleOrdinal() - .domain(["height", "input", "depth"]) + .domain(["Citedby", "Input", "Reference"]) .range([0, 200, 400]), to_remove; @@ -51,7 +49,6 @@ var rect = svg.append("rect") /** * creates svg object (legend) and associated attributes * transform -* mehr kommentare */ var svg_legend = d3.select("svg.legendsvg"), legend_position = [65,95,125], @@ -112,7 +109,6 @@ legend_arrow.append("text") * creates a new simulation * updates the positions of the links and nodes when the state of the layout has changed (simulation has advanced by a tick) - tertärer Operator */ var simulation = d3.forceSimulation() .force("link", d3.forceLink().id(function(d) {return d.doi;}).distance(50).strength(function(d) { @@ -140,7 +136,6 @@ var g = svg.append("g") /** * loads JSON data and calls the update function -Variable */ d3.json("json_text.json").then(function(graph) { update(graph.links, graph.nodes); @@ -268,7 +263,6 @@ function click_node(node) { /** * removes the highlights of the circles and their links -to_remove auch hier benutzen */ function click_rect() { fix_nodes(node); @@ -419,7 +413,6 @@ function handle_zoom() { /** * transforms svg so that the zoom is adapted to the size of the graph -zoom_start initial */ function zoom_to() { node_bounds = d3.selectAll("svg.graph").node().getBBox(); diff --git a/assets/cn2.js b/assets/cn2.js index 7d5afe16643d33782f67ddf460971ecbef57651f..dce918d24e11ba191318915544fd9c8179eb9414 100644 --- a/assets/cn2.js +++ b/assets/cn2.js @@ -1,5 +1,4 @@ /** - * Zeilen kürzen * creates a new zoom behavior */ var zoom = d3.zoom().on("zoom", handle_zoom); @@ -16,13 +15,12 @@ perc; /** * scale functions that return y coordinate/color of node depending on group -* genauer Erläutern! */ var color = d3.scaleOrdinal() - .domain(["height", "input", "depth"]) + .domain(["Citedby", "Input", "Reference"]) .range([' #01d7c0', ' #8b90fe ', ' #a15eb2 ']), y_scale = d3.scaleOrdinal() - .domain(["height", "input", "depth"]) + .domain(["Citedby", "Input", "Reference"]) .range([0, 200, 400]), to_remove; @@ -112,7 +110,6 @@ legend_arrow.append("text") * creates a new simulation * updates the positions of the links and nodes when the state of the layout has changed (simulation has advanced by a tick) - tertärer Operator */ var simulation = d3.forceSimulation() @@ -157,7 +154,6 @@ var gX = svg.append("g") /** * loads JSON data and calls the update function -Variable */ d3.json("json_text.json").then(function(graph) { update(graph.links, graph.nodes); @@ -197,7 +193,7 @@ function update(links, nodes) { } /** -* initializes and shows xAxis THISS +* initializes and shows xAxis * @param {object} nodes - nodes */ function updateXAxis(nodes) { @@ -304,7 +300,6 @@ function click_node(node) { /** * removes the highlights of the circles and their links -to_remove auch hier benutzen */ function click_rect() { fix_nodes(node); @@ -457,7 +452,6 @@ function handle_zoom() { /** * transforms svg so that the zoom is adapted to the size of the graph -zoom_start initial */ function zoom_to() { node_bounds = d3.selectAll("svg.graph").node().getBBox(); diff --git a/output/graph/cn.js b/output/graph/cn.js index 557eb82641271febb93d2c924bc7f4e5aa5665ee..389935df5f1469ec2f152f0adc6995a72302fde7 100644 --- a/output/graph/cn.js +++ b/output/graph/cn.js @@ -1,5 +1,4 @@ /** - * Zeilen kürzen * creates a new zoom behavior */ var zoom = d3.zoom().on("zoom", handle_zoom); @@ -16,13 +15,12 @@ perc; /** * scale functions that return y coordinate/color of node depending on group -* genauer Erläutern! */ var color = d3.scaleOrdinal() - .domain(["height", "input", "depth"]) + .domain(["Citedby", "Input", "Reference"]) .range([' #01d7c0', ' #8b90fe ', ' #a15eb2 ']), y_scale = d3.scaleOrdinal() - .domain(["height", "input", "depth"]) + .domain(["Citedby", "Input", "Reference"]) .range([0, 200, 400]), to_remove; @@ -51,7 +49,6 @@ var rect = svg.append("rect") /** * creates svg object (legend) and associated attributes * transform -* mehr kommentare */ var svg_legend = d3.select("svg.legendsvg"), legend_position = [65,95,125], @@ -112,7 +109,6 @@ legend_arrow.append("text") * creates a new simulation * updates the positions of the links and nodes when the state of the layout has changed (simulation has advanced by a tick) - tertärer Operator */ var simulation = d3.forceSimulation() .force("link", d3.forceLink().id(function(d) {return d.doi;}).distance(50).strength(function(d) { @@ -140,7 +136,6 @@ var g = svg.append("g") /** * loads JSON data and calls the update function -Variable */ d3.json("json_text.json").then(function(graph) { update(graph.links, graph.nodes); @@ -268,7 +263,6 @@ function click_node(node) { /** * removes the highlights of the circles and their links -to_remove auch hier benutzen */ function click_rect() { fix_nodes(node); @@ -419,7 +413,6 @@ function handle_zoom() { /** * transforms svg so that the zoom is adapted to the size of the graph -zoom_start initial */ function zoom_to() { node_bounds = d3.selectAll("svg.graph").node().getBBox(); diff --git a/output/graph/cn2.js b/output/graph/cn2.js index 7d5afe16643d33782f67ddf460971ecbef57651f..dce918d24e11ba191318915544fd9c8179eb9414 100644 --- a/output/graph/cn2.js +++ b/output/graph/cn2.js @@ -1,5 +1,4 @@ /** - * Zeilen kürzen * creates a new zoom behavior */ var zoom = d3.zoom().on("zoom", handle_zoom); @@ -16,13 +15,12 @@ perc; /** * scale functions that return y coordinate/color of node depending on group -* genauer Erläutern! */ var color = d3.scaleOrdinal() - .domain(["height", "input", "depth"]) + .domain(["Citedby", "Input", "Reference"]) .range([' #01d7c0', ' #8b90fe ', ' #a15eb2 ']), y_scale = d3.scaleOrdinal() - .domain(["height", "input", "depth"]) + .domain(["Citedby", "Input", "Reference"]) .range([0, 200, 400]), to_remove; @@ -112,7 +110,6 @@ legend_arrow.append("text") * creates a new simulation * updates the positions of the links and nodes when the state of the layout has changed (simulation has advanced by a tick) - tertärer Operator */ var simulation = d3.forceSimulation() @@ -157,7 +154,6 @@ var gX = svg.append("g") /** * loads JSON data and calls the update function -Variable */ d3.json("json_text.json").then(function(graph) { update(graph.links, graph.nodes); @@ -197,7 +193,7 @@ function update(links, nodes) { } /** -* initializes and shows xAxis THISS +* initializes and shows xAxis * @param {object} nodes - nodes */ function updateXAxis(nodes) { @@ -304,7 +300,6 @@ function click_node(node) { /** * removes the highlights of the circles and their links -to_remove auch hier benutzen */ function click_rect() { fix_nodes(node); @@ -457,7 +452,6 @@ function handle_zoom() { /** * transforms svg so that the zoom is adapted to the size of the graph -zoom_start initial */ function zoom_to() { node_bounds = d3.selectAll("svg.graph").node().getBBox();