
tnJuly 1, 2016 at 7:04 am #6301
Ok thank you Tom.
I like how the visualization is handling the opacity of the negative nodes. If the node is negative it makes it more opaque. And I see how to change the opacity and colors in the theme/weightedtree.js
I am wondering about how to change the size of the nodes so that the radius is based on the absolute value of the value of the node. Currently the smaller the negative number, the smaller the node. I would like it so the more negative the number, the node would become larger. Does that make sense?
Looking at the radius code in viz/weightedtree.js:
//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)); }
How would I tell it to ignore the negative and take the absolute value of the negative for size? Perhaps this is not the right piece of code to be modifying. So far my attempts have not been fruitful.
Thank you,
TNYou must be logged in to reply to this topic.
© 2021 — vizuly.io