Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph visualization #8

Merged
merged 75 commits into from
Aug 23, 2022
Merged
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
2522710
Created 'Graph-Visualization' in 'own-modules'
jelenito Dec 30, 2019
6d6d21d
Added visual graph by d3.js
jelenito Jan 27, 2020
d3fd8cb
Added arrows
jelenito Jan 31, 2020
6c27373
Fixed bug
jelenito Jan 31, 2020
06e3331
Added Link to Graph Visualization in Module-Management
jelenito Feb 18, 2020
c2015ed
Resize svg when window resized
jelenito Feb 28, 2020
7d715f3
Added function to get data for ontology-visualization of each module
jelenito Mar 24, 2020
5a2ef68
Revert "Added function to get data for ontology-visualization of each…
jelenito Mar 24, 2020
620625f
Revert "Revert "Added function to get data for ontology-visualization…
jelenito Mar 24, 2020
f06b29b
Modified node-ID assignment. Modified comments
jelenito Mar 29, 2020
668d94f
Added new service for node creation
jelenito Apr 2, 2020
d375ec3
Visualization of chosen module-graph possible.
jelenito May 1, 2020
82da9f1
Modified some stylings
jelenito May 1, 2020
2458ff3
Adding nodes on doubleclick possible
jelenito May 27, 2020
84327c9
Modified some code
jelenito Jun 2, 2020
93d9c36
First step to fixing the graph visualization
aljoshakoecher May 14, 2021
4c73b8f
Added capability and skill graph visus
aljoshakoecher May 17, 2021
5517f35
Added types to graph visu component
aljoshakoecher May 19, 2021
54b244a
Created 'Graph-Visualization' in 'own-modules'
jelenito Dec 30, 2019
ccafb4b
Added visual graph by d3.js
jelenito Jan 27, 2020
0b2cde9
Added arrows
jelenito Jan 31, 2020
411376c
Fixed bug
jelenito Jan 31, 2020
637dbcb
Added Link to Graph Visualization in Module-Management
jelenito Feb 18, 2020
382bf4c
Resize svg when window resized
jelenito Feb 28, 2020
d3716e2
Added function to get data for ontology-visualization of each module
jelenito Mar 24, 2020
d65778e
Revert "Added function to get data for ontology-visualization of each…
jelenito Mar 24, 2020
6a972f5
Revert "Revert "Added function to get data for ontology-visualization…
jelenito Mar 24, 2020
50250d2
Modified node-ID assignment. Modified comments
jelenito Mar 29, 2020
4004e02
Added new service for node creation
jelenito Apr 2, 2020
1ded15d
Visualization of chosen module-graph possible.
jelenito May 1, 2020
2904f5b
Modified some stylings
jelenito May 1, 2020
9715b93
Adding nodes on doubleclick possible
jelenito May 27, 2020
e098189
Modified some code
jelenito Jun 2, 2020
fb29824
Added gitignore to ignore uploaded-files directory
aljoshakoecher Nov 5, 2021
00e4ad9
Minor formatting fixes
aljoshakoecher Aug 19, 2022
6d7b1f9
Added reflect-metadata back in
aljoshakoecher Aug 19, 2022
54fce1c
Created 'Graph-Visualization' in 'own-modules'
jelenito Dec 30, 2019
0c3a57f
Added visual graph by d3.js
jelenito Jan 27, 2020
709ce70
Added arrows
jelenito Jan 31, 2020
8dfde52
Fixed bug
jelenito Jan 31, 2020
8e1e233
Added Link to Graph Visualization in Module-Management
jelenito Feb 18, 2020
0055044
Resize svg when window resized
jelenito Feb 28, 2020
83f8bb4
Added function to get data for ontology-visualization of each module
jelenito Mar 24, 2020
d63a739
Revert "Added function to get data for ontology-visualization of each…
jelenito Mar 24, 2020
e8ff41b
Revert "Revert "Added function to get data for ontology-visualization…
jelenito Mar 24, 2020
a3a6433
Modified node-ID assignment. Modified comments
jelenito Mar 29, 2020
ae93758
Added new service for node creation
jelenito Apr 2, 2020
60fad8a
Visualization of chosen module-graph possible.
jelenito May 1, 2020
cfb1e74
Modified some stylings
jelenito May 1, 2020
35ceebf
Adding nodes on doubleclick possible
jelenito May 27, 2020
d036e9a
Modified some code
jelenito Jun 2, 2020
97d5752
First step to fixing the graph visualization
aljoshakoecher May 14, 2021
e21d728
Added capability and skill graph visus
aljoshakoecher May 17, 2021
902ce4a
Added types to graph visu component
aljoshakoecher May 19, 2021
a67d8b5
Created 'Graph-Visualization' in 'own-modules'
jelenito Dec 30, 2019
261708c
Added visual graph by d3.js
jelenito Jan 27, 2020
6ca0f9e
Added arrows
jelenito Jan 31, 2020
f8c9b6a
Fixed bug
jelenito Jan 31, 2020
6842b0b
Added Link to Graph Visualization in Module-Management
jelenito Feb 18, 2020
f09f59b
Resize svg when window resized
jelenito Feb 28, 2020
f11fac1
Added function to get data for ontology-visualization of each module
jelenito Mar 24, 2020
a1646df
Revert "Added function to get data for ontology-visualization of each…
jelenito Mar 24, 2020
a4a6555
Revert "Revert "Added function to get data for ontology-visualization…
jelenito Mar 24, 2020
eaad69f
Modified node-ID assignment. Modified comments
jelenito Mar 29, 2020
22ca411
Added new service for node creation
jelenito Apr 2, 2020
a3dcfb8
Visualization of chosen module-graph possible.
jelenito May 1, 2020
92f4ebe
Modified some stylings
jelenito May 1, 2020
346b690
Adding nodes on doubleclick possible
jelenito May 27, 2020
fba4314
Modified some code
jelenito Jun 2, 2020
4886ba0
Added gitignore to ignore uploaded-files directory
aljoshakoecher Nov 5, 2021
518c903
Brought graph visu up to date
aljoshakoecher Aug 20, 2022
2e645a4
Merge branch 'graph-visualization' of github.com:aljoshakoecher/Skill…
aljoshakoecher Aug 20, 2022
9aba47a
Finally fixed graph visualization
aljoshakoecher Aug 22, 2022
bec070a
Now fixed all minor issues with graph visualization as wel
aljoshakoecher Aug 23, 2022
c92d254
Fixes manual registration
aljoshakoecher Aug 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Modified some stylings
  • Loading branch information
jelenito authored and aljoshakoecher committed Oct 28, 2021
commit 2904f5be2b1f100784a6bd9e23b4b1309042e20c
Original file line number Diff line number Diff line change
Expand Up @@ -99,28 +99,16 @@ var data= this.nodeCreatorService.getAllNodes(this.moduleName); // load data cre
.data(data.nodes)
.enter()
.append("circle")
.attr("r", rad)
.on('mouseover', function(){ // function on mousover: increase radius
d3.select(this).transition()
.duration('2')
.attr('r', rad+6)
.attr("r",function(d){
if(d.group==1){return rad+8}
else{return rad}
})
.on('mouseout', function(){ // function on mousout: decrease radius to orgin
d3.select(this).transition()
.attr('r', rad)
})
.on('dblclick', function(d){ const node= { "id":30,
"name": "neighbor",
"group": 7}
data.nodes.push(node)
data.links.push({
"source": d.id,
"target":30
.on('mouseover', mouseover)
.on('mouseout', mouseout)
.style("fill", function(d){
if(d.group==1){return "black"}
else{return "whitesmoke"}
})

console.log(d);// function on doubleclick:
})
.style("fill", "white")
.style("stroke-width", nodeborder)
.style("stroke", function (d) { return colors(d.group); }) // set different node colours for each node-group
/*.append ("text")
Expand All @@ -137,7 +125,10 @@ var data= this.nodeCreatorService.getAllNodes(this.moduleName); // load data cre
.data(data.nodes)
.enter()
.append("text")

.attr("font-weight", function(d){
if(d.group==1){return "bold"}
else{return "normal"}
})
.text(function (d) { return d.name }); // get text from data

const linkText = svg // link text definitions
Expand All @@ -146,6 +137,7 @@ var data= this.nodeCreatorService.getAllNodes(this.moduleName); // load data cre
.enter()
.append("text")
.style("fill", "#999")
.attr("font-style", "italic")
.text(function (d) { return d.type }); // get link text from data


Expand Down Expand Up @@ -265,6 +257,25 @@ var data= this.nodeCreatorService.getAllNodes(this.moduleName); // load data cre
//d.fy = null;
}

function mouseover(d){ // function on mousover: increase radius
if(d.group==1){
d3.select(this).transition()
.duration('2')
.attr('r', rad+12)}
else{
d3.select(this).transition()
.duration('2')
.attr('r', rad+6)}
}
function mouseout(d){ // function on mousout: decrease radius to orgin
if(d.group==1){
d3.select(this).transition()
.attr('r', rad+8)
}
else{ d3.select(this).transition()
.attr('r', rad)}
}

}


Expand Down