Menu
  • HOME
  • TAGS

Specifying style of node through function

javascript,d3.js,dagre-d3,dagre

Just concat the result. Calling a function in a string has no effect here at all. g.setNode(0, { style: "fill: " + color(2) }); // **I suppose it works** ...