mgskjaeveland / sgvizler

Sgvizler: SPARQL result set visualisation javascript library
http://mgskjaeveland.github.io/sgvizler/
MIT License
31 stars 13 forks source link

Handle D3ForcheGraph Node color #76

Open freaksN opened 6 years ago

freaksN commented 6 years ago

I was wondering what would be the correct way to handle node colors in D3ForcheGraph because if you look at them they are slightly different shade of blue. I use the following method:

var Ad = new sgvizler.Query();

//Initialize sgvizler Query
Ad.query( " SELECT query")
  .endpointURL("http://example.org/snorqll")
  .endpointOutputFormat("jsonp")
   .chartFunction("sgvizler.visualization.D3ForceGraph")
   .chartHeight(max)
   .chartWidth(max)
   .draw("interactiveResults");

Should I just add .nodeColorStart("some color") and .nodeColorEnd(" some color") to change the color of the nodes, if so what is the correct way to do so ? Or is there something I should add inside sgvizler.js ?