-
vizulyJune 5, 2017 at 11:31 am #8002
Hi Vijay,
Okay, if you want to adjust both of those, then you may want to make the modifications in the core src/viz/weighted_tree.js file. You can modify the function below to use what ever logic you want for both node radius and path thickness, both the circle and links paths use this function to calculate their size.
//Used to calc our node radius for each node based on min/max values per depth. var nodeRadius = function (node) { //Set max size/2 for root node. if (node.depth == 0) return nodeScale.range()[1]/2; nodeScale.domain([minValues[node.depth],maxValues[node.depth]]); return nodeScale(scope.value(node)); }
Cheers,
Tom
You must be logged in to reply to this topic.
© 2024 — vizuly.io