From 9b8952f57606489f1090f86d1fa20b921e24966f Mon Sep 17 00:00:00 2001 From: Merle Stahl <merle.stahl@studium.uni-hamburg.de> Date: Wed, 12 Jan 2022 14:37:55 +0100 Subject: [PATCH] group Namen --- assets/cn.js | 11 ++--------- assets/cn2.js | 12 +++--------- output/graph/cn.js | 11 ++--------- output/graph/cn2.js | 12 +++--------- 4 files changed, 10 insertions(+), 36 deletions(-) diff --git a/assets/cn.js b/assets/cn.js index 557eb82..389935d 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 7d5afe1..dce918d 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 557eb82..389935d 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 7d5afe1..dce918d 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(); -- GitLab