-
vizulyJune 5, 2017 at 10:21 am #8000
Hello Vijay,
You can override the default node radius settings in a few places. Perhaps the easiest is in the theme file. In src/theme/weightedtree.js you can alter the radius of the nodes in the applyTheme() function
selection.selectAll(".vz-weighted_tree-node circle") .style("stroke",function (d) { return skin.node_stroke(d) }) .style("stroke-opacity",function (d) { return skin.node_stroke_opacity(d) }) .style("fill",function (d) { return skin.node_fill(d) }) .style("fill-opacity", function (d) { return skin.node_fill_opacity(d)});
Just add something like:
.attr("r",function (d) { return myNewRadiusFunction(d));
And you can define myNewRadiusFunction() to use whatever logic you want.
I hope that helps.
Tom
You must be logged in to reply to this topic.
© 2024 — vizuly.io