Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Handle D3ForcheGraph Node color #76

Open
freaksN opened this issue May 15, 2018 · 0 comments
Open

Handle D3ForcheGraph Node color #76

freaksN opened this issue May 15, 2018 · 0 comments

Comments

@freaksN
Copy link

freaksN commented May 15, 2018

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant